/* ================= Tokens (mimag-CI) ================= */
:root {
  --schwarz: #000;
  --weiss: #fff;
  --flaeche: #f2f2f2;
  --text-2: #5c5c5c;
  --linie: #dedede;
  --akzent: #059669;
  --akzent-text: #047857;
  --f-head: "Outfit", sans-serif;
  --f-text: "Inter", sans-serif;
  --rand: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1400px;
  --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.6 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(--akzent); 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: 500; margin: 0; }
h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -.02em; }
.linie { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .4s var(--ease); }
.linie:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ================= 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 svg { height: 24px; width: auto; display: block; }
.nav ul { display: flex; gap: 2.2rem; list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.nav ul a:hover { color: var(--text-2); }
.sprache { display: flex; gap: .6rem; padding-left: 2.2rem; border-left: 1px solid var(--linie); }
.sprache a { color: var(--text-2); }
.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: center; }
.hero-text { grid-column: 1 / span 6; }
.hero h1 { font-size: clamp(2.8rem, 5.4vw, 5.2rem); line-height: 1; letter-spacing: -.04em; }
.hero p { margin: 2rem 0 0; font-size: 1.1rem; color: #2b2b2b; max-width: 34rem; }
.hero-links { display: flex; gap: 2rem; margin-top: 2rem; font-size: .95rem; }
.hero-bild { grid-column: 8 / -1; background: #000; }
.hero-bild img { width: 100%; aspect-ratio: 1; 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(--text-2); }

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

/* ================= Eigene Produkte (eigene Domain) ================= */
.produkte { background: var(--flaeche); margin-top: clamp(5rem, 12vh, 8rem); padding: clamp(4.5rem, 11vh, 7rem) 0; }
.produkte .sektion-innen { padding: 0; }
.produkt-raster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem 1.5rem; }
.produkt a { display: block; }
.produkt .bild { background: var(--weiss); aspect-ratio: 16 / 11; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.produkt .bild img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.produkt .bild.enthalten img { object-fit: contain; padding: 8%; }
.produkt a:hover .bild img { transform: scale(1.03); }
.produkt .zeile1 { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1.1rem; }
.produkt h3 { font-size: 1.4rem; letter-spacing: -.01em; }
.produkt .status { font-size: .82rem; color: var(--text-2); white-space: nowrap; }
.produkt .status.live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--akzent); margin-right: .4rem; vertical-align: 1px; }
.produkt p { margin: .35rem 0 .8rem; color: var(--text-2); font-size: .93rem; min-height: 3em; }
.produkt .domain { font-weight: 500; font-size: .95rem; }

/* ================= Projektliste mit Akkordeon ================= */
.projekte { border-top: 1px 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; background: var(--flaeche); }
.projekt .titel { display: flex; align-items: baseline; gap: 1.2rem; flex-wrap: wrap; }
.projekt h3 { font-size: 1.5rem; letter-spacing: -.01em; }
.projekt .jahr { font-size: .9rem; color: var(--text-2); }
.projekt .kurz { margin: .45rem 0 0; color: var(--text-2); max-width: 60ch; font-size: .98rem; }
.projekt .schalter { width: 44px; height: 44px; border: 1.5px solid var(--schwarz); border-radius: 50%; 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); }
.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(--flaeche); cursor: zoom-in; }
.galerie img:first-child { grid-row: span 2; aspect-ratio: auto; }
.galerie.eins { grid-template-columns: 1fr; max-width: 680px; }
.galerie.eins img:first-child { grid-row: auto; aspect-ratio: 16 / 10; }
.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 { color: var(--text-2); font-size: .85rem; }
.fakten dd { margin: 0 0 1rem; }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.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(--schwarz); color: var(--weiss); padding: clamp(4.5rem, 11vh, 7rem) 0 2.5rem; }
.kontakt h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.02; letter-spacing: -.04em; max-width: 15ch; }
.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: #a3a3a3; }
.kontakt .mail { grid-column: 7 / -1; justify-self: end; font: 500 clamp(1.4rem, 2.8vw, 2.2rem) var(--f-head); letter-spacing: -.02em; }
.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 #262626; font-size: .85rem; color: #a3a3a3; }
.fuss nav { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.fuss a:hover { color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: hoch 1s var(--ease) both; }
  .hero-text > *:nth-child(2) { animation-delay: .1s; } .hero-text > *:nth-child(3) { animation-delay: .18s; }
  .hero-bild img { animation: auf 1.3s .15s 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); } }

@media (max-width: 1000px) { .produkt-raster { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .nav ul { gap: 1.1rem; font-size: .88rem; }
  .nav ul li.optional { 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; justify-self: start !important; }
  .hero-bild { margin-top: 1.5rem; width: 100%; }
  .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; }
}
@media (max-width: 560px) { .produkt-raster { grid-template-columns: 1fr; } }
