/* ================= Tokens (plainshape-CI) ================= */
:root {
  --schwarz: #111111;
  --weiss: #ffffff;
  --beton: #f4f3f0;
  --birke: #e8dcc4;
  --kante: #b89a67;
  --stahl: #4b5054;
  --linie: #dcdad5;
  --f-head: "Oxanium", sans-serif;
  --f-text: "IBM Plex Sans", sans-serif;
  --rand: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1360px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { interpolate-size: allow-keywords; }
body { margin: 0; background: var(--weiss); color: var(--schwarz); font: 17px/1.65 var(--f-text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--kante); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--rand); }
h1, h2, h3 { font-family: var(--f-head); font-weight: 300; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.15; }


/* ================= Navigation ================= */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--linie); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav .logo img { height: 30px; width: auto; }
.nav ul { display: flex; gap: 2.2rem; list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.nav ul a:hover { color: var(--stahl); }
.sprache { display: flex; gap: .6rem; padding-left: 2.2rem; border-left: 1px solid var(--linie); }
.sprache a { color: var(--stahl); }
.sprache a[aria-current] { color: var(--schwarz); }

/* ================= Hero ================= */
.hero { padding: clamp(3.5rem, 10vh, 7rem) 0 0; }
.hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; align-items: end; }
.hero h1 { grid-column: 1 / span 6; font-size: clamp(2.8rem, 5.6vw, 5.4rem); line-height: 1.02; }
.hero-text { grid-column: 1 / span 5; margin: 2rem 0 0; font-size: 1.1rem; color: #2d2d2d; max-width: 34rem; }
.hero-links { grid-column: 1 / span 5; display: flex; gap: 2rem; margin-top: 2rem; font-size: .95rem; }
.linie { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; }

/* Rahmenlinie aus dem Logo: Linie unten, rechts nach oben geknickt */
.hero-bild { grid-column: 7 / -1; grid-row: 1 / span 3; position: relative; padding: 0 22px 22px 0; }
.hero-bild::after { content: ""; position: absolute; right: 0; bottom: 0; left: 12%; height: 42%; border-right: 2px solid var(--schwarz); border-bottom: 2px solid var(--schwarz); pointer-events: none; }
.hero-bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ================= Sektionen ================= */
.sektion { padding: clamp(5rem, 12vh, 8rem) 0 0; }
.kopf { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; margin-bottom: 2.5rem; align-items: end; }
.kopf h2 { grid-column: 1 / span 5; }
.kopf p { grid-column: 7 / span 5; margin: 0; color: var(--stahl); }

/* ================= Leistungen ================= */
.leistungen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.leistungen li { border-top: 2px solid var(--schwarz); padding-top: 1.1rem; }
.leistungen h3 { font-size: 1.3rem; font-weight: 400; margin-bottom: .5rem; }
.leistungen p { margin: 0; color: var(--stahl); font-size: .95rem; }

/* ================= Projektliste mit Akkordeon ================= */
.projekte { border-top: 2px solid var(--schwarz); }
.projekt { border-bottom: 1px solid var(--linie); }
.projekt summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 200px 1fr auto; gap: 2rem; align-items: center; padding: 1.4rem 0; }
.projekt summary::-webkit-details-marker { display: none; }
.projekt summary img { width: 200px; aspect-ratio: 4 / 3; object-fit: cover; }
.projekt .titel { display: flex; align-items: baseline; gap: 1.2rem; flex-wrap: wrap; }
.projekt h3 { font-size: 1.55rem; font-weight: 400; }
.projekt .jahr { font: 400 .9rem var(--f-head); color: var(--stahl); }
.projekt .kurz { margin: .45rem 0 0; color: var(--stahl); max-width: 60ch; font-size: .98rem; }
.projekt .schalter { width: 44px; height: 44px; border: 1.5px solid var(--schwarz); border-radius: 2px; position: relative; flex: none; transition: background .25s, color .25s; }
.projekt .schalter::before, .projekt .schalter::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .35s var(--ease); }
.projekt .schalter::after { transform: translate(-50%, -50%) rotate(90deg); }
.projekt > summary:hover .schalter, .projekt[open] > summary .schalter { background: var(--schwarz); color: var(--weiss); }
.projekt[open] > summary .schalter::after { transform: translate(-50%, -50%) rotate(0deg); }

/* weiches Aufklappen (moderne Browser), sonst sofort */
.projekt::details-content { block-size: 0; overflow: hidden; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
.projekt[open]::details-content { block-size: auto; }

.detail { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; padding: .4rem 0 2.6rem; }
.galerie { grid-column: 2; display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.galerie img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--beton); cursor: zoom-in; }
.galerie img:first-child { grid-row: span 2; aspect-ratio: auto; }
.galerie.zwei { grid-template-columns: 1fr 1fr; }
.galerie.zwei img:first-child { grid-row: auto; aspect-ratio: 4 / 3; }
.galerie.eins { grid-template-columns: 1fr; max-width: 640px; }
.galerie.eins img:first-child { grid-row: auto; aspect-ratio: 4 / 3; }
.beschreibung { grid-column: 2; display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; margin-top: 1.8rem; }
.beschreibung p { margin: 0 0 1rem; max-width: 62ch; }
.beschreibung ul { margin: 0; padding-left: 1.1rem; }
.beschreibung li { margin-bottom: .45rem; }
.fakten { margin: 0; font-size: .92rem; }
.fakten dt { font-family: var(--f-head); color: var(--stahl); font-size: .85rem; }
.fakten dd { margin: 0 0 1rem; }

/* ================= Lightbox ================= */
.lightbox { position: fixed; inset: 0; background: rgba(17,17,17,.94); display: none; align-items: center; justify-content: center; z-index: 50; padding: 2rem; cursor: zoom-out; }
.lightbox.offen { display: flex; }
.lightbox img { max-height: 90vh; max-width: 92vw; object-fit: contain; }

/* ================= Kontakt ================= */
.kontakt { margin-top: clamp(6rem, 14vh, 9rem); background: var(--beton); padding: clamp(4.5rem, 11vh, 7rem) 0 2.5rem; }
.kontakt h2 { font-size: clamp(2.4rem, 4.8vw, 4.2rem); line-height: 1.05; max-width: 16ch; }
.kontakt-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; margin-top: 2.5rem; align-items: end; }
.kontakt-grid p { grid-column: 1 / span 5; margin: 0; color: var(--stahl); }
.kontakt .mail { grid-column: 7 / -1; justify-self: end; font: 400 clamp(1.4rem, 2.6vw, 2.1rem) var(--f-head); }
.fuss { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: clamp(4rem, 10vh, 6rem); padding-top: 1.4rem; border-top: 1px solid var(--linie); font-size: .85rem; color: var(--stahl); }
.fuss nav { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.fuss a:hover { color: var(--schwarz); }

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-text, .hero-links { animation: hoch 1s var(--ease) both; }
  .hero-text { animation-delay: .1s; } .hero-links { animation-delay: .18s; }
  .hero-bild img { animation: auf 1.3s .15s var(--ease) both; }
  .hero-bild::after { animation: linie 1s .9s var(--ease) both; }
}
@media (prefers-reduced-motion: reduce) { .projekt::details-content { transition: none; } }
@keyframes hoch { from { opacity: 0; transform: translateY(24px); } }
@keyframes auf { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes linie { from { opacity: 0; } }

@media (max-width: 900px) {
  .nav ul { gap: 1.1rem; font-size: .88rem; }
  .nav ul li:not(.sprache):nth-child(2) { display: none; }
  .sprache { padding-left: 1.1rem; }
  .hero-grid, .kopf, .kontakt-grid, .beschreibung { grid-template-columns: 1fr; gap: 1.2rem; }
  .hero-grid > *, .kopf > *, .kontakt-grid > * { grid-column: 1 / -1 !important; grid-row: auto !important; justify-self: start !important; }
  .hero-bild { margin-top: 2rem; }
  .leistungen { grid-template-columns: 1fr 1fr; }
  .projekt summary { grid-template-columns: 96px 1fr auto; gap: 1rem; }
  .projekt summary img { width: 96px; }
  .projekt h3 { font-size: 1.2rem; }
  .projekt .kurz { display: none; }
  .detail { grid-template-columns: 1fr; }
  .galerie, .beschreibung { grid-column: 1; }
}
