/* erpinar.de – schlanke statische Version */
@font-face {
  font-family: "Murecho";
  src: url("fonts/Murecho-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Murecho";
  src: url("fonts/Murecho-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --primaer: #012619;
  --sekundaer: #F3F5F8;
  --text: #254036;
  --akzent: #8DA69D;
  --akzent-dunkel: #6E8A7F;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Murecho", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; width: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Kopf */
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 24px; flex-wrap: wrap; }
.logo img { width: 300px; max-width: 70vw; height: auto; }
.hauptmenue { display: flex; gap: 28px; }
.hauptmenue a { text-decoration: none; color: var(--text); padding-bottom: 4px; font-size: 14px; font-weight: 300; }
.hauptmenue a:hover, .hauptmenue a.aktiv { color: var(--primaer); border-bottom: 2px solid var(--akzent); }

main { padding-top: 24px; padding-bottom: 64px; }

/* Typografie */
h1 { color: var(--akzent-dunkel); font-weight: 600; font-size: 2.2rem; line-height: 1.25; margin: 24px 0; }
h2, h3, h4 { color: var(--akzent-dunkel); font-weight: 600; margin: 32px 0 12px; }
h4 { font-size: 1.05rem; margin-bottom: 4px; }
p { margin: 12px 0; }
.zurueck { margin-top: 8px; }
.zurueck a, .post-nav a { text-decoration: none; color: var(--akzent); font-weight: 500; }
.zurueck a:hover, .post-nav a:hover { color: var(--primaer); }

/* Beitrag */
.beitrag figure, .beitrag img { margin: 24px auto; }
.beitrag ul, .beitrag ol { margin: 12px 0 12px 24px; }
.bild-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.bild-grid figure, .bild-grid img { margin: 0; }
.bild-grid img { width: 100%; height: 100%; object-fit: cover; }
.post-nav { display: flex; justify-content: space-between; margin-top: 48px; border-top: 1px solid var(--sekundaer); padding-top: 16px; }

/* Galerie-Tabs / Filter */
.galerie-titel { text-align: center; font-size: 1.3rem; margin: 40px 0 0; }
.kunden { color: var(--akzent); font-size: .95rem; font-weight: 500; }
.kategorien { margin-top: 32px; text-align: center; font-size: .95rem; }
.galerie-tabs { display: flex; justify-content: center; gap: 32px; margin: 40px 0 24px; flex-wrap: wrap; }
.galerie-tabs button {
  font: 300 14px/1.4 "Murecho", sans-serif; color: var(--primaer);
  background: none; border: none; border-bottom: 2px solid transparent;
  padding: 0 2px 6px; cursor: pointer;
}
.galerie-tabs button:hover { color: var(--akzent); }
.galerie-tabs button.aktiv { color: var(--akzent); border-bottom-color: var(--akzent); }

/* Galerie (Masonry über CSS-Spalten) */
.galerie { columns: 4 260px; column-gap: 15px; }
.galerie-item { display: block; break-inside: avoid; margin-bottom: 15px; position: relative; overflow: hidden; }
.galerie-item img { width: 100%; transition: transform .4s ease; }
.galerie-item:hover img { transform: scale(1.05); }
.galerie-text {
  position: absolute; inset: auto 0 0 0; padding: 40px 12px 10px;
  background: linear-gradient(transparent, rgba(1, 38, 25, .75));
  color: #fff; font-size: 13px; line-height: 1.4;
  opacity: 0; transition: opacity .3s ease;
}
.galerie-item:hover .galerie-text { opacity: 1; }
.galerie-item[hidden] { display: none; }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.portfolio-item { position: relative; display: block; overflow: hidden; }
.portfolio-item img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s ease; }
.portfolio-item:hover img { transform: scale(1.03); }
.portfolio-titel {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 16px; text-align: center; text-transform: uppercase; letter-spacing: .5px;
  background: rgba(1, 38, 25, .55); color: #fff; font-weight: 600; font-size: 1.1rem;
  opacity: 0; transition: opacity .3s ease;
}
.portfolio-item:hover .portfolio-titel { opacity: 1; }
.portfolio-item[hidden] { display: none; }

/* Kategorie-Archiv */
.archiv { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; }
.archiv-item img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.archiv-item h2 { font-size: 1.2rem; margin: 12px 0 4px; }
.archiv-item a { text-decoration: none; }
.archiv-item p { font-size: .95rem; }

/* Kontakt */
.eyebrow { text-transform: uppercase; letter-spacing: 1.5px; font-size: .8rem; color: var(--akzent); font-weight: 600; margin: 24px 0 0; }
.kontakt-bereich h1 { margin-top: 32px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 56px 0 32px; }
.contact-card { display: flex; flex-direction: column; gap: 6px; padding: 28px 24px; background: var(--sekundaer); text-decoration: none; border: 1px solid transparent; transition: border-color .3s ease; }
.contact-card:hover { border-color: var(--akzent); }
.contact-label, .meta-list dt { text-transform: uppercase; letter-spacing: 1px; font-size: .8rem; color: var(--akzent); font-weight: 600; }
.contact-value { font-size: 1.25rem; font-weight: 600; color: var(--primaer); overflow-wrap: anywhere; }
.contact-cta { color: var(--akzent); font-weight: 500; }
.meta-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0 0; }
.meta-list dt { margin-bottom: 4px; }

/* Sozial + Fuß */
.sozial { display: flex; justify-content: flex-end; margin: 40px 0 8px; }
.sozial a { color: var(--primaer); border-radius: 50%; padding: 10px; display: grid; place-items: center; }
.sozial a:hover { color: var(--akzent); }
.fuss { background: var(--akzent); padding: 10px 0; text-align: center; color: #fff; font-size: 14px; font-weight: 300; }
.fuss a { color: #fff; font-size: 14px; font-weight: 300; text-decoration: none; }
.fuss a:hover { text-decoration: underline; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50; display: none;
  background: rgba(51, 51, 51, .95); color: #fff;
  align-items: center; justify-content: center; flex-direction: column; padding: 24px;
}
.lightbox.offen { display: flex; }
.lightbox img { max-width: min(1200px, 92vw); max-height: 78vh; width: auto; height: auto; }
.lightbox figcaption { max-width: 800px; text-align: center; margin: 14px auto 0; font-size: 16px; font-weight: 300; }
.lightbox button {
  position: absolute; background: none; border: none; color: #fff;
  font-size: 40px; line-height: 1; cursor: pointer; padding: 12px; opacity: .8;
}
.lightbox button:hover { opacity: 1; }
.lb-zu { top: 12px; right: 16px; }
.lb-vor { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-rueck { left: 8px; top: 50%; transform: translateY(-50%); }

@media (max-width: 800px) {
  .portfolio-grid, .archiv, .bild-grid, .contact-grid, .meta-list { grid-template-columns: 1fr; }
  .galerie-tabs { gap: 20px; }
  h1 { font-size: 1.6rem; }
}
