/* Zukunft.digital — Stylesheet (Redesign 2026, nach Claude-Design-Vorlage) */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  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: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
}

:root {
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --stone: #F1F0EE;
  --ink: #1A1A1F;
  --green: #1B6B52;
  --green-dark: #123F30;
  --mint: #9BCDB8;
  --mint-soft: #CFE6DC;
  --text-muted: rgba(26, 26, 31, .68);
  --text-soft: #55555C;
  --text-meta: #5A5A61;
  --label: #5C5C63;
  --line: rgba(26, 26, 31, .08);
  --line-soft: rgba(26, 26, 31, .06);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;
  --ease: cubic-bezier(.16, .84, .16, 1);
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3, p, figure, blockquote { margin: 0; overflow-wrap: break-word; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; }
.section { padding: 88px 32px; }
.h2 {
  font-size: clamp(26px, 4.5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}
.eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--green); color: #fff; padding: 10px 16px; border-radius: 999px;
  font-weight: 600; font-size: 14px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  color: #fff;
  background: var(--green);
  padding: 15px 30px;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.btn:hover { background: var(--green-dark); color: #fff; }
.btn--sm { font-size: 13px; padding: 10px 20px; }
.btn--mint { color: var(--green-dark); background: var(--mint); padding: 15px 32px; }
.btn--mint:hover { background: #fff; color: var(--green-dark); }
.btn--ghost {
  color: var(--green); background: transparent; border: 1px solid rgba(27, 107, 82, .4);
  font-size: 14px; padding: 11px 22px;
}
.btn--ghost:hover { background: var(--mint-soft); color: var(--green); }
.link-arrow {
  font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; padding: 15px 4px;
}
.link-arrow:hover { color: var(--green); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 249, .93);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(26, 26, 31, .07);
}
.site-header__inner {
  max-width: 1184px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px 32px;
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand__word { font-weight: 800; font-size: 16px; color: var(--ink); }
.brand__word span { font-weight: 600; color: var(--green); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav__links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__link { font-size: 13.5px; font-weight: 500; color: rgba(26, 26, 31, .65); text-decoration: none; }
.nav__link:hover { color: var(--green); }
.nav__link[aria-current="page"] { font-weight: 600; color: var(--green); }
.nav__toggle {
  display: none; width: 40px; height: 40px; border-radius: 999px; border: none;
  background: var(--stone); cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle svg { display: block; }

/* ---------- Hero ---------- */
.hero { padding: 100px 32px 88px; }
.hero__row { display: flex; align-items: center; gap: 72px; }
.hero__text { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero__title {
  font-size: clamp(40px, 6.4vw, 62px);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance;
}
.hero__lead { font-size: 21px; line-height: 1.55; color: var(--text-muted); max-width: 540px; text-wrap: pretty; }
.hero__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.hero__logo { flex: none; display: flex; align-items: center; justify-content: center; }

/* ---------- Leistungen ---------- */
.band { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section__head { margin-bottom: 44px; }
.section__head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__head--split a { font-size: 14px; font-weight: 600; text-decoration: none; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 30px;
  display: flex; flex-direction: column; gap: 14px;
}
.service h3 { font-size: 17px; font-weight: 700; line-height: 1.35; }
.service p { font-size: 14px; line-height: 1.6; color: rgba(26, 26, 31, .62); }

/* ---------- Ablauf (dunkel) ---------- */
.dark { background: var(--ink); color: var(--bg); }
.dark .wrap { display: flex; flex-direction: column; gap: 48px; }
.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(250, 250, 249, .3);
  list-style: none; margin: 0; padding: 0;
}
.step { padding: 24px 24px 0; border-left: 1px solid rgba(250, 250, 249, .18); display: flex; flex-direction: column; gap: 10px; }
.step:first-child { padding-left: 0; border-left: none; }
.step:last-child { padding-right: 0; }
.step__meta { font-family: var(--mono); font-size: 13px; color: var(--mint); }
.step h3 { font-size: 20px; font-weight: 700; }
.step p { font-size: 15px; line-height: 1.55; color: rgba(250, 250, 249, .78); text-wrap: pretty; }

/* ---------- Projektkarten ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: border-color .3s ease, box-shadow .4s var(--ease), transform .4s var(--ease);
}
a.card:hover { border-color: var(--green); color: inherit; }
.card__media { position: relative; aspect-ratio: 16 / 10; background: var(--stone); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.card__body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-size: 19px; font-weight: 700; line-height: 1.3; }
.card__text { font-size: 14px; line-height: 1.6; color: var(--text-soft); text-wrap: pretty; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 72px; align-items: start; }
.faq__intro { display: flex; flex-direction: column; gap: 16px; }
.faq__intro p { font-size: 16.5px; color: var(--text-muted); max-width: 380px; }
.faq__list { border-top: 1px solid rgba(26, 26, 31, .12); }
.faq__item { border-bottom: 1px solid rgba(26, 26, 31, .12); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; font-size: 17px; font-weight: 700; line-height: 1.4;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--green); }
.faq__icon {
  flex: none; width: 30px; height: 30px; border-radius: 999px; background: var(--stone);
  display: flex; align-items: center; justify-content: center; transition: transform .45s var(--ease), background .3s ease;
}
.faq__item[open] .faq__icon { transform: rotate(180deg); background: var(--green); }
.faq__item[open] .faq__icon path { stroke: #fff; }
.faq__answer { padding: 0 50px 24px 0; font-size: 15.5px; line-height: 1.65; color: var(--text-muted); text-wrap: pretty; }

/* ---------- CTA ---------- */
.cta { background: var(--green-dark); padding: 80px 32px; }
.cta__inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.cta h2 { color: #fff; }
.cta p { font-size: 16.5px; line-height: 1.6; color: rgba(255, 255, 255, .72); max-width: 520px; text-wrap: pretty; }
.cta .btn { margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); padding: 40px 32px; border-top: 1px solid rgba(26, 26, 31, .07); }
.site-footer__inner { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer__meta { font-size: 13px; color: var(--text-meta); }
.site-footer__links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-footer__links a { font-size: 13px; color: var(--text-meta); text-decoration: none; }
.site-footer__links a:hover { color: var(--green); }
.site-footer__links a.site-footer__mail { color: var(--green); }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.page-head { padding: 88px 32px 44px; }
.page-head .wrap { display: flex; flex-direction: column; gap: 20px; }
.page-title { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; font-size: clamp(32px, 5.5vw, 46px); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.page-lead { font-size: 18px; line-height: 1.6; color: rgba(26, 26, 31, .65); max-width: 560px; text-wrap: pretty; }

/* ---------- Referenzen ---------- */
.refs { padding: 0 32px 88px; }
.ref-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ref-card {
  border-radius: 20px; cursor: pointer; box-shadow: 0 1px 2px rgba(26, 26, 31, .04);
  text-align: left; padding: 0; font: inherit; color: inherit; width: 100%;
}
.ref-card:hover { box-shadow: 0 18px 48px rgba(26, 26, 31, .12); transform: translateY(-3px); }
.ref-card.is-open { border-color: var(--green); box-shadow: 0 0 0 3px rgba(27, 107, 82, .15); transform: none; }
.ref-card .card__body { padding: 24px 26px 26px; }
.ref-card .card__title { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.ref-card .card__text { font-size: 14.5px; }
.pill {
  position: absolute; top: 14px; font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 999px; pointer-events: none;
}
.pill--light { left: 14px; color: var(--ink); background: rgba(255, 255, 255, .92); }
.pill--dark { right: 14px; color: #fff; background: rgba(26, 26, 31, .72); }
.ref-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; }
.ref-card__label { font-size: 13.5px; font-weight: 600; color: var(--green); }
.ref-card__btn {
  width: 34px; height: 34px; border-radius: 999px; background: var(--stone); border: none; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .45s var(--ease), background .3s ease;
}
.ref-card__btn path { stroke: var(--green); }
.ref-card.is-open .ref-card__btn { transform: rotate(180deg); background: var(--green); }
.ref-card.is-open .ref-card__btn path { stroke: #fff; }

@keyframes zdRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.panel {
  grid-column: 1 / -1;
  background: var(--surface); border: 1px solid rgba(27, 107, 82, .3); border-radius: 20px;
  padding: 36px; box-shadow: 0 22px 60px rgba(26, 26, 31, .10);
  display: flex; flex-direction: column; gap: 30px;
  order: var(--o3, 0);
}
/* Ohne JavaScript bleiben alle Projektdetails sichtbar (auch für Suchmaschinen & KI-Crawler). */
.js .panel:not(.is-open) { display: none; }
.js .panel.is-open { animation: zdRise .5s var(--ease) both; }
.panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel__titles { display: flex; flex-direction: column; gap: 6px; }
.panel__title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.panel__meta { font-size: 13.5px; color: var(--text-meta); }
.panel__meta a { font-weight: 600; text-decoration: none; }
.panel__meta a:hover { text-decoration: underline; }
.panel__close {
  font-size: 13px; font-weight: 600; color: var(--green); background: var(--stone); border: none; border-radius: 999px;
  padding: 10px 18px; cursor: pointer; white-space: nowrap;
}
.panel__close:hover { background: var(--mint-soft); }
.no-js .panel__close { display: none; }

.gallery { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 14px; }
.gallery__stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--stone); border-radius: 14px; overflow: hidden; }
.gallery__slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .5s ease; margin: 0; }
.gallery__slide.is-active { opacity: 1; pointer-events: auto; }
.gallery__slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 999px; border: none; background: rgba(255, 255, 255, .92);
  color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(26, 26, 31, .15);
  display: flex; align-items: center; justify-content: center;
}
.gallery__nav:hover { background: #fff; color: var(--green); }
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }
.gallery__count {
  position: absolute; right: 14px; bottom: 14px; font-size: 12px; font-weight: 600; color: #fff;
  background: rgba(26, 26, 31, .72); padding: 6px 11px; border-radius: 999px;
}
.gallery__thumbs { display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; }
.gallery__thumbs li { flex: 1; display: flex; }
.gallery__thumb {
  position: relative; flex: 1; min-height: 60px; border-radius: 10px; overflow: hidden; background: var(--stone);
  cursor: pointer; border: none; padding: 0; opacity: .7;
  outline: 2px solid transparent; outline-offset: 2px; transition: opacity .2s ease;
}
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb.is-active { opacity: 1; outline-color: var(--green); }
.gallery__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* Ohne JS: Galerie als einfache Bildliste */
.no-js .gallery { grid-template-columns: 1fr 1fr; }
.no-js .gallery__stage { aspect-ratio: auto; display: contents; }
.no-js .gallery__slide { position: static; opacity: 1; }
.no-js .gallery__nav, .no-js .gallery__count, .no-js .gallery__thumbs { display: none; }

.panel__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.panel__col { display: flex; flex-direction: column; gap: 8px; }
.panel__col h4 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--label); }
.panel__col p { font-size: 15px; line-height: 1.65; color: var(--text-muted); text-wrap: pretty; }

.quote {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px;
}
.quote__mark { flex: none; }
.quote blockquote p {
  font-size: 19px; font-weight: 600; line-height: 1.45; letter-spacing: -0.01em; color: var(--ink); text-wrap: pretty;
}
.quote figcaption { margin-top: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--green); }

/* ---------- Kontakt ---------- */
.contact { padding: 88px 32px; min-height: calc(100vh - 170px); }
.contact__row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: 20px; }
.contact__info .page-lead { max-width: 440px; color: var(--text-muted); }
.rule { height: 1px; background: rgba(26, 26, 31, .1); margin: 4px 0; }
.contact__item { display: flex; flex-direction: column; gap: 6px; }
.contact__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--label); }
.contact__value { font-size: 16px; font-weight: 600; text-decoration: none; }
address.contact__value { font-style: normal; }
.contact__value--plain { color: var(--ink); font-weight: 500; font-size: 15px; line-height: 1.55; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 36px; box-shadow: 0 8px 30px rgba(26, 26, 31, .05); }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; }
.field label span { font-weight: 400; color: var(--label); }
.field input, .field textarea {
  font-family: var(--font); font-size: 14.5px; line-height: 1.55; color: var(--ink);
  background: var(--bg); border: 1px solid rgba(26, 26, 31, .14); border-radius: 10px; padding: 13px 15px;
  outline: none; width: 100%; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px rgba(27, 107, 82, .12); }
.field input::placeholder, .field textarea::placeholder { color: rgba(26, 26, 31, .35); }
.form .btn { margin-top: 4px; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form__note { font-size: 11.5px; line-height: 1.5; color: var(--label); }
.form__error { font-size: 13.5px; line-height: 1.5; color: #9B2C2C; background: #FBEDEC; border-radius: 10px; padding: 12px 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px 0; }
.sent h2 { font-size: 21px; font-weight: 700; }
.sent p { font-size: 15px; line-height: 1.65; color: rgba(26, 26, 31, .62); }

/* ---------- Rechtstexte ---------- */
.legal { padding: 0 32px 88px; }
.legal__body { max-width: 760px; display: flex; flex-direction: column; gap: 36px; }
.legal__body section { display: flex; flex-direction: column; gap: 12px; }
.legal__body h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.legal__body h3 { font-size: 16px; font-weight: 700; margin: 6px 0 0; }
.legal__body p, .legal__body li { font-size: 15.5px; line-height: 1.7; color: var(--text-muted); }
.legal__body ul { margin: 0; padding-left: 20px; }
.legal__stand { font-family: var(--mono); font-size: 12.5px; color: var(--label); }

/* ---------- 404 ---------- */
.notfound { padding: 120px 32px; min-height: calc(100vh - 170px); }
.notfound .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.notfound__code { font-family: var(--mono); font-size: 14px; color: var(--green); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: none; column-gap: 32px; row-gap: 28px; }
  .step, .step:first-child { border-left: none; padding: 20px 0 0; border-top: 1px solid rgba(250, 250, 249, .25); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero__row { flex-direction: column; gap: 40px; align-items: flex-start; }
  .hero__logo { display: none; }
  .ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { order: var(--o2, 0); }
  .faq { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .dark { padding: 64px 24px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .contact__row { grid-template-columns: 1fr; gap: 40px; }
  .nav__toggle { display: flex; }
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid rgba(26, 26, 31, .07); padding: 8px 24px 16px;
    box-shadow: 0 16px 30px rgba(26, 26, 31, .06);
  }
  .nav__links.is-open { display: flex; }
  .nav__link { display: block; padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line-soft); }
  .nav { gap: 12px; }
  .no-js .nav__links { display: flex; position: static; flex-direction: row; box-shadow: none; border: 0; padding: 0; background: none; gap: 14px; }
  .no-js .nav__toggle { display: none; }
}
@media (max-width: 680px) {
  .ref-grid { grid-template-columns: 1fr; }
  .panel { order: var(--o1, 0); padding: 22px; gap: 22px; border-radius: 16px; }
  .panel__cols { grid-template-columns: 1fr; gap: 22px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__thumbs { flex-direction: row; }
  .gallery__thumb { min-height: 0; height: 58px; }
  .panel__head { flex-direction: column-reverse; align-items: flex-start; gap: 14px; }
  .quote { flex-direction: column; gap: 12px; padding: 22px; }
  .quote blockquote p { font-size: 17px; }
  .form-card { padding: 24px; }
}
@media (max-width: 600px) {
  .section, .cta, .refs, .legal, .page-head, .contact, .site-footer { padding-left: 20px; padding-right: 20px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .page-head { padding-top: 56px; }
  .contact { padding-top: 56px; }
  .site-header__inner { padding: 12px 20px; }
  .hero { padding: 48px 24px 60px; }
  .hero__row { gap: 32px; }
  .hero__title { font-size: 33px; line-height: 1.12; letter-spacing: -0.02em; }
  .hero__lead { font-size: 17px; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .btn--sm { padding: 9px 16px; }
  .brand__word { font-size: 15px; }
}
@media (max-width: 440px) {
  .nav > .btn--sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Projektbilder als ruhige Browser-Rahmen ---------- */
.card__media { padding: 26px 26px 0; background: linear-gradient(160deg, #EEF4F1 0%, #E2EDE7 100%); display: flex; flex-direction: column; }
.card__media::before {
  content: ""; flex: none; height: 18px; border: 1px solid rgba(26, 26, 31, .08); border-bottom-color: rgba(26, 26, 31, .05);
  border-radius: 8px 8px 0 0;
  background:
    radial-gradient(circle at 12px 9px, #D9D9D6 3px, transparent 3.5px),
    radial-gradient(circle at 23px 9px, #D9D9D6 3px, transparent 3.5px),
    radial-gradient(circle at 34px 9px, #D9D9D6 3px, transparent 3.5px), #fff;
}
.card__media img {
  flex: 1; min-height: 0; border: 1px solid rgba(26, 26, 31, .08); border-top: 0;
  box-shadow: 0 10px 28px rgba(18, 63, 48, .12);
}
.card__media .pill { display: none; }

/* ---------- Galerie: Screenshots klar abgegrenzt ---------- */
.gallery__stage { background: linear-gradient(160deg, #EEF4F1 0%, #E2EDE7 100%); }
.gallery__slide { display: flex; align-items: center; justify-content: center; padding: 22px 70px 52px; cursor: zoom-in; }
.gallery__slide img {
  width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 8px; border: 1px solid rgba(26, 26, 31, .10); box-shadow: 0 12px 32px rgba(18, 63, 48, .16); background: #fff;
}
.gallery__thumb { border: 1px solid rgba(26, 26, 31, .12); }
.gallery__zoom {
  position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: #fff; background: rgba(26, 26, 31, .72); border: none;
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
}
.gallery__zoom:hover { background: var(--green); }
.no-js .gallery__zoom { display: none; }
.no-js .gallery__slide { padding: 0; cursor: default; }
@media (max-width: 680px) {
  .gallery__slide { padding: 12px 12px 44px; }
  .gallery__nav { width: 36px; height: 36px; top: auto; bottom: 8px; transform: none; font-size: 18px; }
  .gallery__nav--prev { left: auto; right: 100px; }
  .gallery__nav--next { right: 58px; }
  .gallery__count { bottom: 12px; right: 12px; padding: 5px 9px; }
  .gallery__zoom { left: 10px; bottom: 11px; }
}

/* ---------- Vollbild-Ansicht ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(18, 20, 22, .94);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 72px 72px;
  animation: lbIn .2s ease both;
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox[hidden] { display: none !important; }
.lightbox__img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); background: #fff; touch-action: pan-y pinch-zoom;
}
.lightbox__btn {
  position: absolute; width: 48px; height: 48px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 24px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .24); }
.lightbox__close { top: 14px; right: 14px; font-size: 20px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; color: rgba(255, 255, 255, .8); font-size: 13.5px; padding: 0 20px; }
body.lb-open { overflow: hidden; }
@media (max-width: 680px) {
  .lightbox { padding: 60px 8px 96px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
  .lightbox__caption { bottom: 74px; }
}
@media (max-width: 680px) {
  .gallery__stage { aspect-ratio: 4 / 3; }
  .gallery__slide { padding: 10px 10px 54px; }
}
.lightbox { background: rgba(14, 16, 18, .97); }
