/* ================= Tokens (beschriftart-CI) ================= */
:root {
  --orange: #fbb03b;
  --orange-text: #9a5b00;
  --orange-weich: #fff4e0;
  --grau: #999999;
  --grau-dunkel: #5c5c5c;
  --anthrazit: #1f1f1f;
  --hg: #f5f5f5;
  --linie: #e3e3e3;
  --f-head: "Poppins", sans-serif;
  --f-text: "Nunito Sans", sans-serif;
  --radius: 12px;
  --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: #fff; color: var(--anthrazit); font: 400 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(--orange); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--rand); }
h1, h2, h3 { font-family: var(--f-head); margin: 0; }
h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.linie { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; padding-bottom: 3px; }

/* ================= Navigation ================= */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(31,31,31,.96); backdrop-filter: blur(12px); color: #fff; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav .logo img { height: 38px; width: auto; }
.nav ul { display: flex; gap: 2.2rem; list-style: none; margin: 0; padding: 0; font-size: .95rem; font-weight: 600; }
.nav ul a:hover { color: var(--orange); }
.sprache { display: flex; gap: .6rem; padding-left: 2.2rem; border-left: 1px solid #3a3a3a; }
.sprache a { color: var(--grau); }
.sprache a[aria-current] { color: #fff; }

/* ================= Hero: dunkel, LED-Raster ================= */
.hero { background-color: var(--anthrazit); background-image: radial-gradient(circle, rgba(251,176,59,.13) 1.4px, transparent 2px); background-size: 14px 14px; color: #fff; }
.hero .wrap { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; align-items: center; padding-top: clamp(3.5rem, 9vh, 6rem); padding-bottom: clamp(3.5rem, 9vh, 6rem); }
.hero-text { grid-column: 1 / span 6; }
.hero h1 { font-size: clamp(3rem, 6vw, 5.8rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.hero p { margin: 1.8rem 0 0; font-size: 1.15rem; color: #cfcfcf; max-width: 32rem; }
.hero-links { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; padding: .85rem 1.4rem; border-radius: 10px; font: 600 .95rem var(--f-head); transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn-p { background: var(--orange); color: var(--anthrazit); }
.btn-s { border: 2px solid #fff; color: #fff; }
.hero-bild { grid-column: 7 / -1; }
.hero-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }

/* ================= 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(--grau-dunkel); }

.leistungen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.leistungen li { background: var(--hg); border-radius: var(--radius); padding: 1.8rem 1.6rem; border-top: 4px solid var(--orange); }
.leistungen h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: .5rem; }
.leistungen p { margin: 0; color: var(--grau-dunkel); font-size: .95rem; }

/* ================= Projekte: Liste mit Akkordeon ================= */
.projekte { border-top: 2px solid var(--anthrazit); }
.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; border-radius: 10px; }
.projekt .titel { display: flex; align-items: baseline; gap: 1.2rem; flex-wrap: wrap; }
.projekt h3 { font-size: 1.4rem; font-weight: 600; letter-spacing: -.01em; }
.projekt .jahr { font-size: .9rem; color: var(--grau-dunkel); font-weight: 600; }
.projekt .kurz { margin: .4rem 0 0; color: var(--grau-dunkel); max-width: 60ch; font-size: .98rem; }
.projekt .schalter { width: 46px; height: 46px; border-radius: 12px; background: var(--hg); position: relative; flex: none; transition: background .25s; }
.projekt .schalter::before, .projekt .schalter::after { content: ""; position: absolute; left: 50%; top: 50%; width: 15px; height: 2px; background: var(--anthrazit); 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(--orange); }
.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; border-radius: 10px; cursor: zoom-in; background: var(--hg); }
.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: 3 / 4; }
.galerie.zwei img { aspect-ratio: 3 / 4; }
.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; }
.beschreibung li::marker { color: var(--orange-text); }
.fakten { margin: 0; font-size: .93rem; background: var(--hg); border-radius: var(--radius); padding: 1.2rem 1.4rem .2rem; align-self: start; }
.fakten dt { font: 600 .78rem var(--f-head); color: var(--orange-text); }
.fakten dd { margin: .1rem 0 1rem; }

.lightbox { position: fixed; inset: 0; background: rgba(31,31,31,.95); 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; border-radius: 10px; }

/* ================= Kontakt ================= */
.kontakt { margin-top: clamp(6rem, 14vh, 9rem); background: var(--orange); color: var(--anthrazit); padding: clamp(4.5rem, 11vh, 7rem) 0 2.5rem; }
.kontakt h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 700; line-height: 1.02; letter-spacing: -.03em; max-width: 14ch; }
.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; }
.kontakt .mail { grid-column: 7 / -1; justify-self: end; font: 600 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 rgba(31,31,31,.25); font-size: .88rem; }
.fuss nav { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.fuss a:hover { text-decoration: underline; }

@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: an 1.4s .2s ease-out both; }
}
@media (prefers-reduced-motion: reduce) { .projekt::details-content { transition: none; } }
@keyframes hoch { from { opacity: 0; transform: translateY(24px); } }
/* LED-Wall "schaltet sich ein" */
@keyframes an { 0% { opacity: 0; filter: brightness(3) saturate(0); } 40% { opacity: 1; } 100% { filter: none; } }

@media (max-width: 900px) {
  .nav .logo img { height: 30px; }
  .nav ul { gap: 1.1rem; font-size: .88rem; }
  .nav ul li.optional { display: none; }
  .sprache { padding-left: 1.1rem; }
  .hero .wrap, .kopf, .kontakt-grid, .beschreibung { grid-template-columns: 1fr; gap: 1.2rem; }
  .hero .wrap > *, .kopf > *, .kontakt-grid > * { grid-column: 1 / -1 !important; justify-self: start !important; }
  .hero-bild { width: 100%; margin-top: 1rem; }
  .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.15rem; }
  .projekt .kurz { display: none; }
  .detail { grid-template-columns: 1fr; }
  .galerie, .beschreibung { grid-column: 1; }
}
