/* TNC BAU – Farb- und Schriftsystem: Waldgrün, Akzentgrün, Naturweiß, Anthrazit */
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
:root {
  --forest: #153a2d;       /* Waldgrün */
  --forest-deep: #0f2a20;
  --lime: #91c95b;         /* Akzentgrün, nur für Buttons und wichtige Akzente */
  --lime-dark: #7eb848;
  --paper: #f5f3ed;        /* Naturweiß */
  --beige: #e6dfd1;        /* Naturbeige */
  --taupe: var(--beige);
  --taupe-dark: var(--forest);
  --taupe-light: #e4dfd5;
  --sand: var(--paper);
  --ink: #202722;          /* Anthrazit, Fließtext */
  --ink-deep: var(--forest);
  --muted: #5b625d;
  --white: #ffffff;
  --green: #3f7d3a;        /* gut lesbares Grün für Text und Linien */
  --green-dark: var(--forest);
  --green-light: #e9f2df;
  --green-bright: var(--lime);

  --radius: 14px;
  --shadow: 0 10px 30px rgba(21, 58, 45, .09);
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: var(--green-dark); }
h1, h2, h3 { color: var(--ink-deep); line-height: 1.18; letter-spacing: -.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 860px; }
.center { text-align: center; margin-top: 2.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--green); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.eyebrow { text-transform: uppercase; letter-spacing: .26em; font-size: .74rem; font-weight: 700; color: var(--muted); margin-bottom: .8em; }
.lead { font-size: 1.12rem; }

/* Buttons */
.btn {
  display: inline-block; padding: .85em 1.6em; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700; line-height: 1.2;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--lime); color: var(--forest); }
.btn-accent:hover { background: var(--lime-dark); }
.btn-dark { background: var(--forest); color: var(--white); }
.btn-dark:hover { background: var(--forest-deep); }
.hl { color: var(--green); }
.btn-ghost { border-color: rgba(255,255,255,.8); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink-deep); }
.btn-outline { border-color: var(--green); color: var(--green-dark); background: transparent; }
.btn-outline:hover { background: var(--forest); border-color: var(--forest); color: var(--white); }
.btn-light { background: var(--lime); color: var(--forest); }
.btn-sm { padding: .55em 1.2em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fcfbf8; height: var(--header-h); border-bottom: 1px solid rgba(21,58,45,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; }
.nav a:not(.btn):hover { color: var(--green); }
/* aktueller Menüpunkt: grün mit Unterstrich */
.nav > a[aria-current]:not(.btn), .has-sub > a[aria-current] { background: var(--lime); color: var(--forest); padding: .55em 1.2em; margin-inline: -.6em; border-radius: 999px; }
.has-sub .sub a[aria-current] { background: var(--green-light); color: var(--forest); font-weight: 700; }
.nav > a[aria-current]:not(.btn):hover, .has-sub > a[aria-current]:hover { color: var(--forest); background: var(--lime-dark); }
.nav a.btn { color: var(--white); }
.nav-tel { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(21,58,45,.25); color: var(--forest); }
.nav-tel svg { width: 18px; height: 18px; fill: currentColor; }
.nav-tel:hover { background: var(--green-light); border-color: var(--green-light); }
.tel-mobile { display: none; color: var(--forest); background: var(--green-light); border-color: transparent; width: 46px; height: 46px; margin-left: auto; margin-right: .6rem; }
.nav-tel-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.has-sub { position: relative; display: flex; }
.has-sub .sub {
  position: absolute; top: 100%; left: -1rem; min-width: 280px; padding: .6rem 0; margin-top: .6rem;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.has-sub .sub::before { content: ""; position: absolute; top: -.8rem; left: 0; right: 0; height: .8rem; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub .sub a { display: block; padding: .5rem 1.2rem; color: var(--ink); font-weight: 500; }
.has-sub .sub a:hover { background: var(--sand); color: var(--green-dark); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--forest); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* Brotkrümel */
.breadcrumb { background: var(--sand); font-size: .88rem; padding: .7rem 0; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb span[aria-current] { color: var(--ink-deep); font-weight: 600; }

/* Hero Startseite */
@font-face { font-family: "Barlow Semi Condensed"; src: url("../fonts/barlow-semi-condensed-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
.hero { position: relative; min-height: min(calc(100vh - var(--header-h)), 760px); display: flex; color: var(--white); background: var(--forest-deep); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero-overlay { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(15,42,32,.88) 0%, rgba(15,42,32,.72) 26%, rgba(15,42,32,.32) 46%, rgba(15,42,32,0) 64%),
  linear-gradient(0deg, rgba(15,42,32,.55) 0%, rgba(15,42,32,0) 30%); }
.hero-content { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 9vh, 6rem) 0 clamp(4.5rem, 10vh, 6rem); }
.hero-text { max-width: 560px; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .32em; font-size: .78rem; font-weight: 600; margin-bottom: 1.1rem; }
.hero h1 { color: var(--white); }
.hero-title { font-family: "Barlow Semi Condensed", "Arial Narrow", sans-serif; font-weight: 800; text-transform: uppercase; line-height: .95; letter-spacing: -.005em; margin: 0 0 1.1rem; }
.hero-line { display: block; font-size: clamp(3rem, 6.4vw, 5.6rem); }
.hero-line-intro { color: var(--white); }
.hero-line-accent { color: var(--lime); }
.hero-letter { display: inline-block; opacity: 0; transform: translateY(.35em); transition: opacity .1s ease-out, transform .1s ease-out; }
.hero-letter.on { opacity: 1; transform: none; }
.hero-block { opacity: 0; transform: translateY(.5em) scale(.94); transition: opacity .8s ease-out, transform .8s cubic-bezier(.2,.8,.2,1); }
.hero-block.on { opacity: 1; transform: none; }
.hero-sub { font-size: clamp(1.25rem, 1.9vw, 1.55rem); line-height: 1.3; margin-bottom: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero .btn { display: inline-flex; align-items: center; justify-content: center; gap: .9rem; padding: .95em 1.65em; }
.btn-pfeil { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.hero .btn:hover .btn-pfeil { transform: translateX(3px); }
.hero .btn-ghost { border-width: 1.5px; }
.hero-features { list-style: none; margin: 3.2rem 0 0; padding: 0; display: flex; }
.hero-features li { display: flex; align-items: flex-start; gap: .9rem; padding: 0 1.6rem; max-width: 250px; }
.hero-features li:first-child { padding-left: 0; }
.hero-features li + li { border-left: 1px solid rgba(255,255,255,.28); }
.hero-features strong { display: block; font-size: .9rem; line-height: 1.3; margin-bottom: .5rem; }
.hero-features span:not(.hero-icon) { display: block; font-size: .78rem; line-height: 1.45; color: rgba(255,255,255,.82); }
.hero-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(15,42,32,.85); box-shadow: inset 0 0 0 1px rgba(145,201,91,.25); }
.hero-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--lime); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-icon svg.fill { fill: var(--lime); stroke: none; }
.hero-down { position: absolute; left: 50%; bottom: 1.1rem; translate: -50% 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.85); color: var(--white); transition: background .2s; }
.hero-down:hover { background: rgba(255,255,255,.15); }
.hero-down svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Vertrauensleiste */
.trust { background: var(--paper); border-bottom: 1px solid var(--taupe-light); }
.trust-list { list-style: none; margin: 0; padding: 1.6rem 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.trust-list li { display: flex; align-items: center; gap: .85rem; }
.trust-list svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--white); fill: none; stroke: var(--forest); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; box-shadow: 0 0 0 1px rgba(21,58,45,.08); }
.trust-list strong { display: block; color: var(--forest); font-size: .95rem; line-height: 1.3; }
.trust-list span { display: block; color: var(--muted); font-size: .84rem; line-height: 1.4; }

/* Ausgewählte Referenzen als große Bildkarten */
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.section-head-row .section-head { margin-bottom: 0; }
.section-head-row + * { margin-top: 2.6rem; }
.featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.feat { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: var(--white); text-decoration: none; background: var(--forest); aspect-ratio: 4 / 5; isolation: isolate; }
.feat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.feat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,42,32,0) 25%, rgba(15,42,32,.65) 52%, rgba(15,42,32,.95) 100%); }
.feat:hover img { transform: scale(1.05); }
.feat-year { position: absolute; top: 1.1rem; left: 1.1rem; background: rgba(255,255,255,.92); color: var(--forest); font-weight: 700; font-size: .8rem; padding: .3em .8em; border-radius: 999px; }
.feat-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem; }
.feat-place { margin: 0 0 .3rem; font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--lime); }
.feat h3 { color: var(--white); font-size: 1.45rem; margin-bottom: .35em; }
.feat-leistung { margin: 0 0 .8rem; font-size: .9rem; color: rgba(255,255,255,.85); }
.feat-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1.1rem; }
.feat-tags span { font-size: .74rem; font-weight: 700; padding: .25em .75em; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); }
.feat-more { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .92rem; }
.feat-more .btn-pfeil { transition: transform .2s; }
.feat:hover .feat-more .btn-pfeil { transform: translateX(3px); }
.ref-list li:target { background: var(--green-light); border-radius: 10px; padding-inline: 1rem; }
.btn .btn-pfeil { margin-left: .5rem; vertical-align: -.2em; }

/* Über uns: Arbeitsweise und Ansprechpartner */
.ueber-media { position: relative; }
.ueber-media .media-frame img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 85%; width: 100%; }
.how { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1.1rem; counter-reset: how; }
.how li { display: grid; grid-template-columns: 2.4rem 1fr; gap: .2rem 1rem; }
.how li::before { counter-increment: how; content: "0" counter(how); grid-row: span 2; font-weight: 800; color: var(--green); font-size: .95rem; padding-top: .1rem; }
.how strong { color: var(--forest); }
.how span { color: var(--muted); font-size: .94rem; }
.kontakt-box { margin-top: 2rem; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; padding: 1.3rem 1.4rem; background: var(--white); border-radius: var(--radius); box-shadow: 0 0 0 1px rgba(21,58,45,.08); }
.kontakt-box p { margin: 0; flex: 1 1 200px; font-size: .94rem; color: var(--muted); }
.kontakt-box strong { display: block; color: var(--forest); font-size: 1.02rem; }
.kontakt-box .btn { padding: .7em 1.3em; }
.galerie-mehr { text-align: center; margin-top: 1.6rem; }

/* Unterseiten-Kopf */
.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.page-hero-plain .container > * { max-width: 900px; }
.media-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--taupe-light); }
.media-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Kennzahlen */
.stats { background: var(--ink-deep); color: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2rem 1.5rem; border-left: 1px solid rgba(255,255,255,.1); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-size: 1.7rem; color: var(--green-bright); line-height: 1.2; }
.stat span { font-size: .92rem; color: #cfccc6; }

/* Abschnitte */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tight { padding-top: 0; }
.section-alt { background: var(--sand); }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }

/* Leistungskarten */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.service { background: var(--white); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(21,58,45,.04), 0 8px 24px rgba(21,58,45,.07); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.service:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(21,58,45,.14); }
.service-media { position: relative; display: block; overflow: hidden; }
.service-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.service:hover .service-media img { transform: scale(1.04); }
.service-icon { position: absolute; left: 1.1rem; bottom: 1.1rem; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--forest); box-shadow: 0 4px 14px rgba(15,42,32,.3); }
.service-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--lime); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-body { padding: 1.4rem 1.5rem 1.5rem; position: relative; display: flex; flex-direction: column; flex: 1; }
.service h2, .service h3 { font-size: 1.15rem; margin-bottom: .4em; }
.service h2 a, .service h3 a { color: inherit; text-decoration: none; }
.service p { color: var(--muted); font-size: .94rem; }
.service .more { margin-top: auto; font-weight: 700; font-size: .94rem; text-decoration: none; color: var(--green); }
.service .more:hover { color: var(--forest); }
.service-cta { background: var(--forest); justify-content: center; }
.service-cta h3 { color: var(--white); border-color: var(--white); }
.service-cta p { color: rgba(255,255,255,.8); margin-bottom: 1.4rem; }
.service-cta .btn { align-self: flex-start; }

/* Über uns / Split */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-top { align-items: start; }
.values { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.values li { display: flex; gap: .9rem; align-items: flex-start; }
.dot { flex: none; width: 14px; height: 14px; margin-top: .35rem; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 6px var(--green-light); }
.values strong { display: block; color: var(--ink-deep); }
.values span { font-size: .93rem; color: var(--muted); }

/* Listen, Schritte, FAQ */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.checklist li { position: relative; padding: .9rem 1rem .9rem 3rem; background: var(--white); border-radius: 8px; box-shadow: 0 2px 8px rgba(40,38,34,.06); }
.checklist li::before { content: ""; position: absolute; left: 1.1rem; top: 1.15rem; width: 14px; height: 8px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.text-blocks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.4rem 3.2rem; }
.text-blocks h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin: 0 0 .7rem; }
.text-blocks p { margin: 0; color: var(--muted); line-height: 1.75; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; counter-reset: s; }
.step { padding: 1.6rem; border-top: 4px solid var(--green); background: var(--sand); border-radius: 0 0 var(--radius) var(--radius); }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font-weight: 800; color: var(--taupe-dark); margin-bottom: .4rem; }
.step p { margin: 0; color: var(--muted); }
.faq { border-top: 1px solid var(--taupe-light); }
.faq details { border-bottom: 1px solid var(--taupe-light); }
.faq summary { cursor: pointer; padding: 1.35rem 3.6rem 1.35rem 0; font-weight: 700; font-size: 1.08rem; line-height: 1.45; color: var(--ink-deep); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.faq summary::before { width: 36px; height: 36px; border-radius: 50%; background: var(--forest); transition: background .2s; }
.faq summary::after { right: 11px; width: 14px; height: 14px; background: linear-gradient(var(--lime), var(--lime)) center / 14px 2px no-repeat, linear-gradient(var(--lime), var(--lime)) center / 2px 14px no-repeat; transition: transform .25s; }
.faq details[open] summary::after { background: linear-gradient(var(--lime), var(--lime)) center / 14px 2px no-repeat; }
.faq summary:hover::before { background: var(--green); }
.faq details p { padding: 0 3.6rem 1.4rem 0; margin: 0; color: var(--muted); line-height: 1.75; }
.ablauf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.ablauf-step { display: flex; flex-direction: column; gap: 1.1rem; padding: 1.6rem; background: var(--white); border: 1px solid var(--taupe-light); border-radius: var(--radius); }
.ablauf-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--forest); flex: none; }
.ablauf-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--lime); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ablauf-nr { margin: 0 0 .3rem; font-size: .76rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--green); }
.ablauf-step h3 { margin: 0 0 .5rem; font-size: 1.2rem; }
.ablauf-step p:last-child { margin: 0; color: var(--muted); line-height: 1.7; }
@media (max-width: 980px) { .ablauf { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ablauf { grid-template-columns: minmax(0,1fr); } .ablauf-step { flex-direction: row; align-items: flex-start; } }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.link-list a { display: block; padding: 1rem 1.2rem; border: 1px solid var(--taupe-light); border-radius: 8px; font-weight: 700; text-decoration: none; color: var(--ink-deep); }
.link-list a:hover { border-color: var(--green); color: var(--green-dark); }

/* Band (CTA) */
.band { background: var(--taupe-dark); color: var(--white); padding: 3.5rem 0; }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.band h2 { color: var(--white); font-size: clamp(1.4rem, 2.6vw, 2rem); }
.band p { margin: 0; color: rgba(255,255,255,.82); max-width: 62ch; }
.band-actions { display: flex; flex-wrap: wrap; gap: .8rem; flex: none; }

/* Referenzen */
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.ref-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; }
.ref-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(40,38,34,.16); }
.ref-card-media { position: relative; }
.ref-card-media img, .ref-card-ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ref-card-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; background: linear-gradient(135deg, var(--taupe-dark), var(--taupe)); color: #fff; font-weight: 600; font-size: .9rem; text-align: center; padding: 1rem; }
.ref-card-ph img { width: 45%; max-width: 170px; height: auto; aspect-ratio: auto; opacity: .95; }
.ref-card-year { position: absolute; left: 1rem; bottom: 1rem; background: var(--taupe-dark); color: #fff; font-weight: 700; font-size: .85rem; padding: .3em .8em; border-radius: 6px; }
.ref-card-body { padding: 1.3rem 1.5rem 1.5rem; }
.ref-card-body h3 { margin-bottom: .2em; }
.ref-card-body p { margin: 0 0 .5em; color: var(--muted); font-size: .95rem; }
.ref-card-body .ref-place { color: var(--green-dark); font-weight: 600; font-size: .88rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.ref-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--taupe-light); }
.ref-list li { display: grid; grid-template-columns: 140px 1fr minmax(0, 30%); gap: 1.5rem; align-items: center; padding: 1.4rem 0; border-bottom: 1px solid var(--taupe-light); }
.ref-thumb { position: relative; }
.ref-thumb img { display: block; width: 140px; height: 100px; object-fit: cover; border-radius: 8px; }
.ref-thumb .ref-year { position: absolute; left: .4rem; bottom: .4rem; pointer-events: none; }
.ref-thumb a.lightbox { position: relative; display: block; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.ref-thumb a.lightbox img { transition: transform .3s; }
.ref-thumb a.lightbox:hover img { transform: scale(1.06); }
.ref-zoom { position: absolute; top: .35rem; right: .35rem; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--forest); }
.ref-zoom svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ref-ohne-foto { display: grid; place-items: center; width: 140px; height: 100px; border-radius: 8px; background: var(--green-light); color: var(--green); }
.ref-ohne-foto svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .9rem; }
.ref-year { display: inline-block; justify-self: start; background: var(--taupe-dark); color: #fff; font-weight: 700; font-size: .85rem; padding: .3em .8em; border-radius: 6px; }
.ref-main h2, .ref-main h3 { font-size: 1.15rem; margin-bottom: .15em; }
.ref-main p { margin: 0; color: var(--muted); font-size: .95rem; }
.ref-main .ref-place { color: var(--green-dark); font-weight: 600; font-size: .88rem; margin-bottom: .3em; }
.ref-list .tags { margin-top: 0; justify-content: flex-end; }
.ref-tag { font-size: .78rem; font-weight: 700; color: var(--green-dark); background: var(--green-light); border-radius: 999px; padding: .3em .8em; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 0 0 1.5rem; }
.facts div { border-left: 3px solid var(--green); padding-left: .8rem; }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; color: var(--ink-deep); }
.h-small { font-size: 1rem; margin-top: 1.5rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a { display: inline-block; padding: .45em 1em; border-radius: 999px; background: var(--green-light); color: var(--green-dark); font-weight: 700; text-decoration: none; font-size: .9rem; }
.chips a:hover { background: var(--green); color: #fff; }

/* Foto-Rondell */
.rondell { overflow-x: clip; }
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { font: inherit; font-size: .9rem; font-weight: 600; padding: .5em 1.05em; border-radius: 999px; border: 1px solid var(--taupe); background: transparent; color: var(--ink); cursor: pointer; }
.chip span { color: var(--muted); font-weight: 400; }
.chip.active { background: var(--forest); border-color: var(--forest); color: #fff; }
.chip.active span { color: var(--lime); }
.r-stage { position: relative; height: clamp(260px, 42vw, 520px); perspective: 1400px; outline-offset: 6px; touch-action: pan-y; user-select: none; }
.r-item { position: absolute; top: 4%; left: 50%; width: min(58%, 720px); height: 92%; margin: 0; border-radius: 18px; overflow: hidden; background: var(--taupe-light); transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .5s, filter .5s; will-change: transform; cursor: pointer; }
.r-item[hidden] { display: none; }
.r-item a { display: block; height: 100%; }
.r-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.r-item.is-active { cursor: zoom-in; box-shadow: 0 24px 50px rgba(35,35,31,.22); }
.r-item:not(.is-active) { filter: saturate(.6) brightness(.85); }
.r-ctrl { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 1.6rem; }
.r-btn { flex: none; width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--ink-deep); background: transparent; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.r-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--ink-deep); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.r-btn:hover { background: var(--ink-deep); }
.r-btn:hover svg { stroke: #fff; }
.r-info { text-align: center; min-width: 0; max-width: 560px; }
.r-cap { margin: 0; font-weight: 600; color: var(--ink-deep); min-height: 1.6em; }
.r-count { font-weight: 700; color: var(--green); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(20,20,18,.94); display: flex; align-items: center; justify-content: center; padding: 3rem 4rem; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb img { max-height: calc(100vh - 9rem); width: auto; border-radius: 6px; }
.lb figcaption { color: #ddd; margin-top: .8rem; text-align: center; font-size: .95rem; }
.lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; padding: .5rem 1rem; line-height: 1; }
.lb-close { top: .5rem; right: .5rem; }
.lb-prev { left: .3rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .3rem; top: 50%; transform: translateY(-50%); }

/* Kontakt */
.split-contact { align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; font-size: 1.05rem; }
.contact-list svg { flex: none; width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--forest); fill: var(--lime); }
.contact-list a { color: var(--ink-deep); text-decoration: none; font-weight: 700; }
.contact-list a:hover { color: var(--green); }
.contact-form { background: var(--sand); padding: 2rem; border-radius: var(--radius); display: grid; gap: 1rem; }
.field-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1rem; }
.contact-form label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 600; color: var(--ink-deep); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; padding: .75em .9em; min-width: 0; width: 100%;
  border: 1px solid var(--taupe-light); border-radius: 8px; background: var(--white); color: var(--ink);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--green); border-color: transparent; }
.contact-form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.contact-form .check input { margin-top: .3em; width: auto; flex: none; accent-color: var(--forest); }
.contact-form .btn { justify-self: start; }
.form-note { margin: 0; font-size: .9rem; }
.form-note.error { color: #a33a2a; }

/* Footer */
.site-footer { background: var(--forest-deep); color: #cdd6d0; padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: #cdd6d0; text-decoration: none; }
.site-footer a:hover { color: var(--green-bright); }
.site-footer h2 { color: var(--white); font-size: 1rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-inner img { height: 60px; width: auto; margin-bottom: 1rem; }
.footer-copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .85rem; }

/* Rechtstexte */
.legal { padding: 4rem 0 6rem; max-width: 820px; }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.todo { background: #fff4d6; border-left: 4px solid #e0a800; padding: .1em .4em; }

/* Einblend-Animation */
.reveal { opacity: 0; translate: 0 18px; transition: opacity .6s ease, translate .6s ease, transform .25s, box-shadow .25s; }
.reveal.visible { opacity: 1; translate: none; }
@media (prefers-reduced-motion: reduce) {
  .r-item { transition: none; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; transition: none; }
}

/* Responsive */
@media (max-width: 1100px) {
  .nav { gap: 1.1rem; }
}
@media (max-width: 980px) {
  .services, .ref-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .trust-list { grid-template-columns: 1fr 1fr; }
  .featured { grid-template-columns: minmax(0, 1fr); }
  .feat { aspect-ratio: 16 / 10; }
}
@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .brand img { height: 44px; }
  .ref-list li { grid-template-columns: 96px 1fr; gap: .5rem 1rem; align-items: start; }
  .ref-thumb img, .ref-ohne-foto { width: 96px; height: 72px; }
  .ref-ohne-foto svg { width: 28px; height: 28px; margin-bottom: 1rem; }
  .nav > a[aria-current]:not(.btn) { margin-inline: 0; padding: .8rem 1.2rem; margin-block: .3rem; border-bottom: 0; }
  .has-sub > a[aria-current] { margin-inline: 0; align-self: flex-start; margin-block: .3rem; }
  .has-sub .sub a[aria-current] { background: none; color: var(--green); }
  .ref-thumb .ref-year { font-size: .72rem; left: .3rem; bottom: .3rem; }
  .ref-list .tags { grid-column: 2; justify-content: flex-start; }
  .nav-toggle { display: block; }
  .tel-mobile { display: inline-grid; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0; background: #fcfbf8;
    padding: .5rem 20px 1.5rem; box-shadow: 0 10px 20px rgba(0,0,0,.1); display: none;
  }
  .nav.open { display: flex; }
  .nav a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--taupe-light); }
  .nav .nav-tel { display: flex; align-items: center; gap: .6rem; width: auto; height: auto; border: 0; border-radius: 0; border-bottom: 1px solid var(--taupe-light); }
  .nav .nav-tel:hover { background: none; }
  .nav-tel-text { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .nav a.btn { margin-top: 1rem; text-align: center; border-bottom: 0; }
  .has-sub .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; margin: 0; padding: 0 0 0 1rem; min-width: 0; }
  .has-sub .sub a { color: var(--muted); padding: .6rem 0; }
  .has-sub .sub a:hover { background: none; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .split, .steps, .text-blocks { grid-template-columns: minmax(0,1fr); }
  .r-item { width: 78%; }
  .band-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .hero { min-height: 0; }
  .hero-media, .hero-overlay { bottom: auto; height: min(150vw, 700px); }
  .hero-media img { object-position: 42% 50%; }
  .hero-overlay { background: linear-gradient(180deg, rgba(15,42,32,0) 0%, rgba(15,42,32,.08) 30%, rgba(15,42,32,.55) 50%, rgba(15,42,32,.86) 68%, var(--forest-deep) 100%); }
  .hero-content { width: min(100% - 40px, 480px); justify-content: flex-end; padding: min(66vw, 320px) 0 4.6rem; }
  .hero-eyebrow { font-size: .68rem; letter-spacing: .3em; margin-bottom: .6rem; white-space: nowrap; }
  .hero-line { font-size: clamp(2.6rem, 13.4vw, 4rem); }
  .hero-title { margin-bottom: .8rem; }
  .hero-sub { font-size: 1.22rem; margin-bottom: .9rem; }
  .hero-actions { flex-direction: column; gap: .7rem; margin-top: 1.4rem; }
  .hero .btn { width: 100%; padding: .9em 1.4em; }
  .hero .btn-lime { font-size: 1.06rem; padding: .95em 1.4em; }
  .hero-features { flex-direction: column; gap: 1.3rem; margin-top: 2.2rem; }
  .hero-features li { padding: 0; max-width: none; align-items: center; gap: 1.1rem; }
  .hero-features li + li { border-left: 0; }
  .hero-features strong { font-size: .95rem; margin-bottom: .15rem; }
  .hero-features span:not(.hero-icon) { font-size: .85rem; }
  .hero-icon { width: 52px; height: 52px; }
  .hero-icon svg { width: 26px; height: 26px; }
  .hero-down { width: 34px; height: 34px; bottom: 1.3rem; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .trust-list { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1.4rem 0; }
  .ueber-media .media-frame img { aspect-ratio: 4 / 3; }
  .feat { aspect-ratio: 4 / 3.4; }
  .feat h3 { font-size: 1.3rem; }
  .services { gap: 1.4rem; }
  .kontakt-box .btn { flex: 1 1 100%; text-align: center; }
  .services, .ref-grid, .values { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: minmax(0,1fr); }
  .r-stage { height: 300px; }
  .r-item { width: 84%; }
  .r-btn { width: 46px; height: 46px; }
  .r-ctrl { gap: .8rem; }
  .r-cap { font-size: .9rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .stat { padding: 1.4rem 1rem; }
  .stat strong { font-size: 1.35rem; }
  .lb { padding: 3rem .5rem; }
}

/* Karriere */
.btn-tel svg, .hero-actions .btn > svg:first-child { width: 1.05em; height: 1.05em; fill: currentColor; margin-right: .5rem; vertical-align: -.15em; }
.jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem; }
.job { display: flex; flex-direction: column; padding: 1.8rem 1.6rem; background: var(--white); border-radius: var(--radius); border-top: 4px solid var(--lime); box-shadow: 0 1px 0 rgba(21,58,45,.04), 0 8px 24px rgba(21,58,45,.07); scroll-margin-top: calc(var(--header-h) + 1rem); }
.job:target { box-shadow: 0 0 0 2px var(--green), 0 8px 24px rgba(21,58,45,.1); }
.job-bereich { margin: 0 0 .5rem; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.job h3 { font-size: 1.3rem; margin-bottom: .5em; }
.job-kurz { color: var(--muted); font-size: .95rem; }
.job h4 { margin: 1.1rem 0 .5rem; font-size: .9rem; color: var(--forest); }
.job-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .93rem; }
.job-liste li { position: relative; padding-left: 1.5rem; }
.job-liste li::before { content: ""; position: absolute; left: .15rem; top: .5em; width: 9px; height: 5px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.job-actions { margin-top: auto; padding-top: 1.5rem; display: grid; gap: .6rem; }
.job-actions .btn { text-align: center; }
@media (max-width: 980px) { .jobs { grid-template-columns: minmax(0, 1fr); max-width: 640px; } }
@media (max-width: 620px) { .job { padding: 1.5rem 1.2rem; } }

/* Slogan und kompakte Leistungsliste */
.slogan { font-family: "Barlow Semi Condensed", var(--font); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; color: var(--green); margin: -.2rem 0 1.2rem; }
.footer-slogan { color: var(--green-bright); font-weight: 700; font-size: 1.05rem; margin: 0 0 .8rem; }
.alle-leistungen { position: relative; overflow: hidden; margin-top: 2.8rem; padding: clamp(1.6rem, 4vw, 3rem); background: var(--paper); border: 1px solid var(--beige); border-radius: var(--radius); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr); gap: clamp(1.6rem, 4vw, 3rem); align-items: center; }
.alle-leistungen::before { content: ""; position: absolute; left: 0; top: clamp(1.6rem, 4vw, 3rem); bottom: clamp(1.6rem, 4vw, 3rem); width: 4px; border-radius: 0 4px 4px 0; background: var(--lime); }
.alle-text .eyebrow { color: var(--green); margin-bottom: .7rem; }
.alle-text h3 { font-size: clamp(1.35rem, 2.3vw, 1.75rem); font-weight: 800; margin: 0 0 .8rem; }
.alle-text p { margin: 0; color: var(--muted); }
.alle-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--beige); border: 1px solid var(--beige); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.alle-liste li { background: var(--white); display: flex; align-items: center; gap: .75rem; padding: .9rem .9rem; font-weight: 600; font-size: .9rem; line-height: 1.3; color: var(--forest); transition: background .2s; }
.alle-liste li:hover { background: var(--green-light); }
.alle-name { min-width: 0; overflow-wrap: break-word; }
.alle-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--green-light); }
.alle-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--green); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.alle-liste li.mehr { padding: 0; background: var(--forest); }
.alle-liste li.mehr:hover { background: var(--forest-deep); }
.alle-liste li.mehr a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; height: 100%; padding: .9rem 1rem; color: var(--white); font-weight: 700; text-decoration: none; }
.alle-liste li.mehr .btn-pfeil { stroke: var(--lime); }
.alle-liste li.mehr a:hover .btn-pfeil { transform: translateX(3px); }
.alle-liste li.mehr a:focus-visible { outline: 3px solid var(--lime); outline-offset: -3px; }
@media (max-width: 1020px) { .alle-leistungen { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .alle-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .alle-leistungen { padding: 1.5rem 1.1rem; } .alle-leistungen::before { top: 1.5rem; bottom: auto; height: 3.2rem; } .alle-liste { grid-template-columns: minmax(0, 1fr); } .alle-liste li { padding: .65rem .9rem; gap: .7rem; font-size: .92rem; } .alle-icon { width: 30px; height: 30px; border-radius: 8px; } .alle-icon svg { width: 17px; height: 17px; } }
