/* =========================================================================
   HOLZBAU Plan+Werk GmbH — Konzept-Vorschau
   Vanilla CSS, CSS-Variablen, Mobile-first.
   Lokale Webfonts (DSGVO): Open Sans (Variable 400-700) laut Styleguide
   ========================================================================= */

/* ---------- Webfonts (lokal) ---------- */
@font-face {
  font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-stretch: 75% 100%;
  font-display: swap; src: url("../assets/fonts/open-sans-wdth.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+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-stretch: 75% 100%;
  font-display: swap; src: url("../assets/fonts/open-sans-wdth-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design Tokens ----------
   Zentral in css/tokens.css (VOR dieser Datei laden) — Farben, Typografie,
   Abstände, Radien, Schatten, Buttons. Legende: /styleguide.html */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; color: var(--anthracite); }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--light { background: var(--light); }
.section--dark  { background: var(--anthracite); color: #ece9e7; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  font-family: var(--font-head); font-weight: 500; font-size: var(--fs-xs);
  letter-spacing: .22em; text-transform: uppercase; color: var(--wood);
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--wood); display: inline-block; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.55; color: #565452; }
.section--dark .lead { color: #c9c6c3; }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-weight: 500; font-size: .95rem;
  padding: .85rem 1.5rem; border-radius: var(--radius); border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--primary { background: var(--anthracite); color: #fff; }
.btn--primary:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn--ghost { border-color: currentColor; color: var(--anthracite); }
.btn--ghost:hover { background: var(--anthracite); color: #fff; border-color: var(--anthracite); }
.section--dark .btn--ghost { color: #fff; }
.section--dark .btn--ghost:hover { background: #fff; color: var(--anthracite); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.link-more {
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--anthracite);
  display: inline-flex; align-items: center; gap: .5rem; border-bottom: 1px solid var(--green);
  padding-bottom: 2px; transition: gap .2s var(--ease), color .2s var(--ease);
}
.link-more:hover { gap: .85rem; color: var(--green-deep); }

/* =========================================================================
   Header / Nav
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { height: 38px; width: auto; }
.brand__txt { font-family: var(--font-head); font-weight: 500; font-size: 1rem; line-height: 1.1; letter-spacing: -.01em; }
.brand__txt b { color: var(--green-deep); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--anthracite);
  position: relative; padding-block: 4px;
}
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--green); transition: width .25s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav__cta { margin-left: .25rem; }
/* CTA-Button: weiße Schrift sicherstellen (sonst überschreibt .nav a die Btn-Farbe) */
.nav__cta a.btn--primary { color: #fff; }
.nav__cta a.btn--primary:hover { color: #fff; }
.nav__cta a::after { content: none; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--anthracite); margin: 5px 0; transition: .25s var(--ease); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h, 77px) 0 auto 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: #fff; padding: 1rem var(--gutter) 2rem; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg);
  }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav__cta { width: 100%; margin: 1rem 0 0; }
  .nav .btn { width: 100%; justify-content: center; }
}

/* =========================================================================
   HERO (Home)
   ========================================================================= */
/* Finales Hero (ehem. Variante 2): Video vollflächig im Hintergrund,
   links leichtes dunkelgraues Overlay, Text linksbündig mittig. */
.hero { position: relative; overflow: hidden; background: var(--anthracite); color: #fff; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video { width: 100%; height: 100%; object-fit: cover; }
/* Zweiteilung (Kundenwunsch): links solides Anthrazit für den Text, weicher
   Übergang zur rechten Hälfte, in der das Video frei läuft */
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(43,42,41,.97) 0%, rgba(43,42,41,.93) 30%, rgba(43,42,41,.62) 50%, rgba(43,42,41,.12) 70%, rgba(43,42,41,0) 86%); }
.hero__inner { position: relative; z-index: 1; display: flex; align-items: center; min-height: clamp(520px, 78vh, 800px); padding-block: clamp(3rem, 8vh, 6rem); }
.hero__content { max-width: 680px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); color: #fff; font-weight: 500; margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--wood-soft); }
.hero__sub { font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: #e6e3e0; max-width: 56ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 1; color: #fff; font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase; font-family: var(--font-head); opacity: .8; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hero__scroll::after { content: ""; width: 1px; height: 34px; background: rgba(255,255,255,.6); animation: scrollpulse 1.8s var(--ease) infinite; }
@keyframes scrollpulse { 0%,100%{ transform: scaleY(.4); opacity:.4; } 50%{ transform: scaleY(1); opacity:1; } }
@media (max-width: 860px) { .hero__scroll { display: none; } }
@media (max-width: 720px) {
  .hero__media::after { background: linear-gradient(180deg, rgba(43,42,41,.60), rgba(43,42,41,.85)); }
}

/* =========================================================================
   Section Heading block
   ========================================================================= */
.head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; max-width: none; flex-wrap: wrap; }
.head h2 { font-size: var(--fs-h2); margin-bottom: .9rem; }
.head--center { margin-inline: auto; text-align: center; }
.head--center .eyebrow { justify-content: center; }

/* =========================================================================
   Über uns / Intro
   ========================================================================= */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
/* „Warum HPW" — Aussagen mit grünem Haken statt Zahlen-Kacheln (Feedback 07/2026) */
.about__points { list-style: none; margin: 0; padding: clamp(1.4rem, 2.5vw, 2rem) clamp(1.4rem, 2.5vw, 2rem); display: flex; flex-direction: column; gap: 1.15rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.about__points li { position: relative; padding-left: 34px; font-size: 1.04rem; line-height: 1.55; color: var(--ink-soft, #4a4846); }
.about__points li::before { content: ""; position: absolute; left: 4px; top: .48em; width: 7px; height: 13px; border: 2px solid var(--green-deep); border-top: 0; border-left: 0; transform: rotate(40deg); border-radius: 1px; }
.about__points li b { color: var(--anthracite); font-weight: 700; }
.about p + p { margin-top: 1.1rem; }
@media (max-width: 780px) { .about { grid-template-columns: 1fr; } }

/* =========================================================================
   Leistungen
   ========================================================================= */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service__img { aspect-ratio: 4/3; overflow: hidden; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.service:hover .service__img img { transform: scale(1.05); }
.service__body { padding: 1.4rem 1.5rem 1.7rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.service__num { font-family: var(--font-head); font-size: var(--fs-sm); color: var(--green-deep); font-weight: 500; letter-spacing: .1em; }
.service h2, .service h3 { font-size: var(--fs-h3); }
.service p { font-size: var(--fs-sm); color: #5e5c5a; }

/* Variante 2: Leistungen als editoriale Liste */
body[data-variant="2"] .services { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
body[data-variant="2"] .service {
  flex-direction: row; align-items: stretch; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; background: transparent;
}
body[data-variant="2"] .service:hover { transform: none; box-shadow: none; background: var(--light); }
body[data-variant="2"] .service__img { flex: 0 0 clamp(140px, 26%, 320px); aspect-ratio: auto; }
body[data-variant="2"] .service__body { padding: clamp(1.5rem, 3vw, 2.4rem) clamp(1.2rem, 3vw, 2.4rem); justify-content: center; }
body[data-variant="2"] .service h3 { font-size: clamp(1.3rem, 2.4vw, 2rem); }
body[data-variant="2"] .service p { font-size: var(--fs-body); max-width: 60ch; }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  /* Leistungen quer wischen statt lang scrollen (Feedback 07/2026) */
  .services {
    display: flex; grid-template-columns: none; gap: 1rem;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 1.1rem; scrollbar-width: none;
  }
  .services::-webkit-scrollbar { display: none; }
  .service { flex: 0 0 84%; scroll-snap-align: center; }
}

/* =========================================================================
   Referenzen-Teaser (Home)
   ========================================================================= */
.ref-teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ref-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4;
  display: flex; align-items: flex-end; color: #fff; isolation: isolate;
}
.ref-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.ref-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(43,42,41,0) 30%, rgba(43,42,41,.88) 100%); }
.ref-card:hover img { transform: scale(1.06); }
.ref-card__body { padding: 1.5rem; }
.ref-card__tag { font-family: var(--font-head); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--wood-soft); }
.ref-card h3 { color: #fff; font-size: var(--fs-h3); margin-top: .35rem; }
.ref-card__ort { font-size: var(--fs-sm); color: #d8d5d2; margin-top: .2rem; }
/* V2: erstes Teaser-Element groß */
body[data-variant="2"] .ref-teaser { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; }
body[data-variant="2"] .ref-card:first-child { grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 860px) { .ref-teaser, body[data-variant="2"] .ref-teaser { grid-template-columns: 1fr 1fr; } body[data-variant="2"] .ref-card:first-child { grid-row: auto; aspect-ratio: 3/4; } }
@media (max-width: 560px) { .ref-teaser, body[data-variant="2"] .ref-teaser { grid-template-columns: 1fr; } }

/* =========================================================================
   Netzwerk / Verbände
   ========================================================================= */
.verbaende { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(2rem, 6vw, 5rem); }
.verbaende img { height: auto; max-height: clamp(46px, 7vw, 66px); max-width: clamp(200px, 32vw, 320px); width: auto; object-fit: contain; opacity: .65; filter: grayscale(1); transition: opacity .3s var(--ease), filter .3s var(--ease); }
.verbaende img:hover { opacity: 1; filter: grayscale(0); }

/* =========================================================================
   Kontakt-CTA
   ========================================================================= */
.cta { text-align: center; }
.cta h2 { font-size: var(--fs-h1); color: #fff; margin-bottom: 1rem; }
.cta p { color: #c9c6c3; max-width: 52ch; margin: 0 auto 2rem; }
.cta__actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* =========================================================================
   Footer — clean & reduziert (Feedback 07/2026):
   Zeile 1: Logo + kompakte Navigation · Zeile 2: Kontakt-Essentials
   Zeile 3: © · „Dresden · Uhrzeit"-Gimmick (Live-Uhr, app.js) · Rechtliches
   ========================================================================= */
.site-footer { background: var(--anthracite-900); color: #b8b5b2; padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.6rem; }
.site-footer a { color: #d8d5d2; transition: color .15s var(--ease); }
.site-footer a:hover { color: var(--wood-soft); }

.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; flex-wrap: wrap; padding-bottom: 1.6rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-top img { height: 36px; filter: brightness(0) invert(1); opacity: .9; display: block; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; font-family: var(--font-head); font-weight: 500; font-size: var(--fs-sm); }

.footer-meta { display: flex; flex-wrap: wrap; gap: .5rem 2rem; padding: 1.4rem 0; font-size: var(--fs-sm); color: #a5a2a0; }
.footer-meta a { color: var(--wood-soft); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.3rem; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .6rem 1.5rem; font-size: var(--fs-xs); color: #8d8a87; }


@media (max-width: 600px) {
  .footer-top, .footer-meta, .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* =========================================================================
   Page-Header (Unterseiten)
   ========================================================================= */
.page-hero { background: var(--anthracite); color: #fff; padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(2.5rem, 6vw, 4rem); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; top: -40%; right: -10%; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(112,169,50,.20), transparent 70%); }
.page-hero h1 { color: #fff; font-size: var(--fs-h1); max-width: 18ch; position: relative; }
.page-hero p { color: #cfccc9; max-width: 56ch; margin-top: 1.1rem; position: relative; }
.page-hero .eyebrow { color: var(--wood-soft); }
.page-hero .eyebrow::before { background: var(--wood-soft); }

/* page-hero mit Titelbild (dunkles Overlay hält den Text lesbar) */
.page-hero--photo { background-size: cover; background-position: center; background-repeat: no-repeat; }
.page-hero--photo::after { content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, rgba(29,28,26,.94) 0%, rgba(29,28,26,.74) 52%, rgba(29,28,26,.42) 100%); }
.page-hero--photo .container { position: relative; z-index: 1; }
@media (max-width: 640px){ .page-hero--photo::after { background: linear-gradient(180deg, rgba(29,28,26,.82), rgba(29,28,26,.9)); } }

/* =========================================================================
   Referenzen-Seite: Karte
   ========================================================================= */
.map-wrap { position: relative; }
#karte {
  width: 100%; height: clamp(420px, 60vh, 620px); background: var(--light);
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); z-index: 1;
}
.map-legend {
  position: absolute; left: 16px; bottom: 16px; z-index: 500;
  background: rgba(255,255,255,.94); backdrop-filter: blur(6px); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .7rem .9rem; font-size: var(--fs-xs); box-shadow: var(--shadow);
  display: flex; align-items: center; gap: .55rem; font-family: var(--font-head);
}
.map-legend .pin-dot { width: 16px; height: 16px; border-radius: 50% 50% 50% 0; background: var(--anthracite); transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); }

/* Projekt-Grid */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.project {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; scroll-margin-top: 96px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.project:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.project__img { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.project:hover .project__img img { transform: scale(1.05); }
.project__tag { position: absolute; top: 12px; left: 12px; background: rgba(61,60,59,.92); color: #fff; font-family: var(--font-head); font-size: var(--fs-xs); letter-spacing: .08em; padding: .35rem .7rem; border-radius: 3px; }
.project__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.project h3 { font-size: var(--fs-h3); }
.project__ort { font-size: var(--fs-sm); color: var(--wood); font-weight: 500; }
.project__meta { font-size: var(--fs-sm); color: #5e5c5a; margin-top: .35rem; }
.project__meta b { color: var(--anthracite); font-weight: 600; }

/* V2: Referenz-Liste, größere alternierende Zeilen */
body[data-variant="2"] .projects { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
body[data-variant="2"] .project {
  flex-direction: row; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent;
}
body[data-variant="2"] .project:hover { transform: none; box-shadow: none; background: var(--light); }
body[data-variant="2"] .project__img { flex: 0 0 clamp(180px, 34%, 420px); aspect-ratio: 5/4; }
body[data-variant="2"] .project__body { padding: clamp(1.5rem, 3vw, 2.6rem); justify-content: center; gap: .6rem; }
body[data-variant="2"] .project h3 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); }
body[data-variant="2"] .project:nth-child(even) { flex-direction: row-reverse; }
@media (max-width: 960px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .projects { grid-template-columns: 1fr; }
  body[data-variant="2"] .project, body[data-variant="2"] .project:nth-child(even) { flex-direction: column; }
  body[data-variant="2"] .project__img { flex-basis: auto; aspect-ratio: 16/9; }
}

/* =========================================================================
   Team
   ========================================================================= */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; align-items: stretch; }
.member {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.member:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.member__img { aspect-ratio: 1/1; overflow: hidden; background: var(--light); }
.member__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15); transition: transform .5s var(--ease), filter .4s var(--ease); }
.member:hover .member__img img { transform: scale(1.04); filter: grayscale(0); }
.member__body { padding: 1.4rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.member__role { font-family: var(--font-head); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--wood); }
.member h3 { font-size: var(--fs-h3); margin: .35rem 0 .5rem; }
.member__qual { font-size: var(--fs-sm); color: #5e5c5a; display: flex; align-items: flex-start; gap: .5rem; }
.member__qual svg { flex: 0 0 16px; margin-top: 3px; color: var(--wood); }

/* Platzhalter-Karte (Team-Komposition, keine erfundenen Personen) */
.member--placeholder { background: var(--anthracite); color: #ece9e7; border-color: var(--anthracite); display: flex; flex-direction: column; }
.member--placeholder:hover { transform: translateY(-5px); }
.member--placeholder .member__body { padding: clamp(1.6rem, 3vw, 2.2rem); display: flex; flex-direction: column; height: 100%; }
.member--placeholder h3 { color: #fff; }
.member--placeholder ul { margin-top: auto; padding-top: 1.2rem; }
.member--placeholder li { font-size: var(--fs-sm); color: #cfccc9; padding: .5rem 0; border-top: 1px solid rgba(255,255,255,.12); display: flex; gap: .6rem; align-items: center; }
.member--placeholder li::before { content: ""; width: 6px; height: 6px; background: var(--wood); border-radius: 50%; flex: none; }

/* V2: Team als breite Zeilen (Foto links) */
body[data-variant="2"] .team { grid-template-columns: 1fr; gap: 1.5rem; }
body[data-variant="2"] .member { display: flex; align-items: stretch; }
body[data-variant="2"] .member__img { flex: 0 0 clamp(160px, 32%, 300px); aspect-ratio: 4/5; }
body[data-variant="2"] .member__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.6rem, 3vw, 2.6rem); }
body[data-variant="2"] .member h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
body[data-variant="2"] .member--placeholder { grid-column: 1 / -1; }
body[data-variant="2"] .member--placeholder .member__body { flex-direction: row; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: center; }
body[data-variant="2"] .member--placeholder ul { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2rem; flex: 1; min-width: 280px; }
@media (max-width: 980px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .team { grid-template-columns: 1fr; }
  body[data-variant="2"] .member { flex-direction: column; }
  body[data-variant="2"] .member__img { flex-basis: auto; aspect-ratio: 4/3; }
  body[data-variant="2"] .member--placeholder ul { grid-template-columns: 1fr; }
}

/* =========================================================================
   Leaflet / Karte: Custom-Pins + Cluster (Anthrazit) + Popup
   ========================================================================= */
.leaflet-container { font-family: var(--font-body); background: var(--light); }
.hb-pin {
  width: 30px; height: 30px; background: var(--anthracite); border: 2px solid #fff;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  box-shadow: 0 3px 8px rgba(0,0,0,.35); display: grid; place-items: center;
  transition: transform .15s var(--ease), background .15s var(--ease);
}
.hb-pin:hover { background: var(--green); }
.hb-pin svg { width: 14px; height: 14px; transform: rotate(45deg); color: #fff; }
/* Bürostandort HPW — dauerhaft grün (Meeting 07/2026) */
.hb-pin--hpw, .hb-pin--hpw:hover { background: var(--green-deep); }

.hb-cluster { background: transparent; }
.hb-cluster div {
  width: 42px; height: 42px; border-radius: 50%; background: var(--anthracite); color: #fff;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 500; font-size: .95rem;
  border: 3px solid rgba(255,255,255,.85); box-shadow: 0 3px 10px rgba(0,0,0,.3);
}
.hb-cluster:hover div { background: var(--green); }

.leaflet-popup-content-wrapper { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 0; overflow: hidden; }
.leaflet-popup-content { margin: 0; width: 260px !important; }
.leaflet-popup-tip { box-shadow: var(--shadow-lg); }
.hb-pop__img { aspect-ratio: 16/10; background: var(--light) center/cover no-repeat; }
.hb-pop__body { padding: .95rem 1.1rem 1.1rem; }
.hb-pop__ort { font-family: var(--font-head); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--wood); }
.hb-pop__title { font-family: var(--font-head); font-weight: 500; font-size: 1.15rem; color: var(--anthracite); margin: .2rem 0 .5rem; line-height: 1.2; }
.hb-pop__leistung { font-size: var(--fs-sm); color: #5e5c5a; line-height: 1.45; }
/* Leaflet-spezifisch, um dessen blaue Link-Farbe (.leaflet-container a) zu überschreiben */
.leaflet-popup-content a.hb-pop__cta { display: inline-flex; align-items: center; gap: .4rem; margin-top: .85rem; font-family: var(--font-head); font-weight: 500; font-size: .85rem; color: var(--green-deep); border-bottom: 1px solid var(--green); padding-bottom: 2px; transition: gap .2s var(--ease), color .2s var(--ease); }
.leaflet-popup-content a.hb-pop__cta:hover { gap: .7rem; color: var(--green); }
.leaflet-popup-content a.hb-pop__cta .arr { transition: transform .2s var(--ease); }
.leaflet-popup-content a.hb-pop__cta:hover .arr { transform: translateX(3px); }
.leaflet-bar a, .leaflet-bar a:hover { color: var(--anthracite); }
.leaflet-control-zoom a { border-radius: 0 !important; }

/* Flash-Highlight beim Sprung aus dem Popup zur Listenkarte */
.project--flash { animation: projflash 1.6s var(--ease); }
@keyframes projflash { 0%,100% { box-shadow: var(--shadow); } 25% { box-shadow: 0 0 0 3px var(--wood); } }

/* =========================================================================
   Team — Aktions-Buttons (Lebenslauf / Kontakt) + Lebenslauf-Modal
   ========================================================================= */
.member__actions { display: flex; flex-wrap: nowrap; gap: .5rem; margin-top: auto; padding-top: 1.2rem; }
.member__actions button, .member__actions a { flex: 1 1 0; justify-content: center; text-align: center; white-space: nowrap; font-family: var(--font-head); font-weight: 500; font-size: .85rem; padding: .6rem .7rem; border-radius: var(--radius); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); display: inline-flex; align-items: center; gap: .4rem; }
.btn-cv { background: none; border: 1px solid var(--line); color: var(--anthracite); }
.btn-cv:hover { border-color: var(--anthracite); }
.btn-contact { background: var(--green-deep); border: 1px solid var(--green-deep); color: #fff; }
.btn-contact:hover { background: var(--green); border-color: var(--green); }
.member--placeholder .member__actions .btn-contact { background: var(--green); border-color: var(--green); }

.cv-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(28,27,25,.6); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.cv-modal.open { display: flex; }
.cv-modal__panel { background: #fff; border-radius: var(--radius-lg); max-width: 600px; width: 100%; max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.cv-modal__close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); background: #fff; border-radius: 50%; cursor: pointer; font-size: 0; color: transparent; transition: background .2s var(--ease), border-color .2s var(--ease); }
.cv-modal__close::before, .cv-modal__close::after { content: ""; position: absolute; top: 50%; left: 50%; width: 15px; height: 2px; border-radius: 2px; background: var(--anthracite); transition: background .2s var(--ease); }
.cv-modal__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.cv-modal__close::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.cv-modal__close:hover { background: var(--anthracite); border-color: var(--anthracite); }
.cv-modal__close:hover::before, .cv-modal__close:hover::after { background: #fff; }
.cv-modal__head { flex: 0 0 auto; display: flex; gap: 1.2rem; align-items: center; padding: 1.6rem 3.4rem 1.6rem 1.8rem; border-bottom: 1px solid var(--line); }
.cv-modal__head img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; background: var(--light); }
.cv-modal__head .role { font-family: var(--font-head); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--wood); }
.cv-modal__head h3 { font-size: 1.5rem; margin: .2rem 0; }
.cv-modal__head .qual { font-size: var(--fs-sm); color: #5e5c5a; }
.cv-modal__body { flex: 1 1 auto; overflow-y: auto; padding: 1.5rem 1.8rem 2rem; }
.cv-modal__body .label { font-family: var(--font-head); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 1.1rem; }
.cv-timeline { position: relative; padding-left: 1.4rem; }
.cv-timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 8px; width: 2px; background: var(--line); }
.cv-item { position: relative; padding: 0 0 1.05rem; }
.cv-item:last-child { padding-bottom: 0; }
.cv-item::before { content: ""; position: absolute; left: -1.4rem; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.cv-item .year { font-family: var(--font-head); font-weight: 500; font-size: .85rem; color: var(--anthracite); }
.cv-item .what { font-size: var(--fs-sm); color: #5e5c5a; line-height: 1.5; }
.cv-modal__foot { flex: 0 0 auto; padding: 1.2rem 1.8rem 1.8rem; display: flex; flex-wrap: wrap; gap: .7rem; border-top: 1px solid var(--line); }
body.modal-lock { overflow: hidden; }

/* =========================================================================
   Vollbild-Karte (karte.html) — Karte über volle Breite + Karte/Liste-Toggle
   ========================================================================= */
.mapscreen { position: relative; width: 100%; height: calc(100vh - var(--header-h, 77px)); min-height: 480px; overflow: hidden; background: var(--light); }
/* z-index:1 → eigener Stacking-Context, kapselt die Leaflet-Controls (z 1000) ein,
   damit die Listen-Ansicht sauber darüber liegt. */
#karte-full { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; background: var(--light); }

/* Info-Box oben links: beschreibt, was man auf der Karte sieht & tun kann */
.mapscreen__hint {
  position: absolute; top: 16px; left: 16px; z-index: 2; width: 270px; max-width: calc(100% - 32px);
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1rem 1.1rem; box-shadow: var(--shadow-lg);
}
.mapscreen__hint h1, .mapscreen__hint h2 { font-size: 1.05rem; margin-bottom: .35rem; display: flex; align-items: center; gap: .5rem; }
.mapscreen__hint p { font-size: var(--fs-sm); color: #5e5c5a; line-height: 1.5; }
.mapscreen__hint .pin-dot { width: 14px; height: 14px; }
@media (max-width: 560px) { .mapscreen__hint { width: auto; right: 16px; top: 12px; padding: .7rem .85rem; } .mapscreen__hint p { font-size: var(--fs-xs); } }

/* =========================================================================
   Home: Karten-Vorschau (klickbar → Vollbild-Karte)
   ========================================================================= */
.map-preview {
  position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); margin-bottom: 1.75rem; background: var(--light);
  isolation: isolate; /* Overlay-z-index bleibt in der Komponente — nie über dem Sticky-Header */
}
.map-preview__map { height: clamp(280px, 40vh, 460px); pointer-events: none; }
.map-preview__overlay {
  position: absolute; inset: 0; z-index: 10; display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding: clamp(1.1rem, 3vw, 1.8rem);
  background: linear-gradient(180deg, rgba(43,42,41,0) 45%, rgba(43,42,41,.55) 100%);
}
.map-preview__label { color: #fff; }
.map-preview__label .eyebrow { color: var(--wood-soft); margin-bottom: .4rem; }
.map-preview__label .eyebrow::before { background: var(--wood-soft); }
.map-preview__label strong { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.1rem, 2vw, 1.5rem); display: block; }
.map-preview__cta {
  display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 500;
  font-size: .95rem; background: #fff; color: var(--anthracite); padding: .8rem 1.3rem; border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.map-preview:hover .map-preview__cta { background: var(--green-deep); color: #fff; transform: translateY(-2px); }
.map-preview__cta .arr { transition: transform .2s var(--ease); }
.map-preview:hover .map-preview__cta .arr { transform: translateX(4px); }

.listscreen {
  position: absolute; inset: 0; z-index: 3; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--light); padding: clamp(1.5rem, 4vw, 3rem) 0 7rem; display: none;
}
.listscreen.active { display: block; }

/* Toggle-Pill (analog HKS-Bottom-Bar) */
.viewtoggle {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 800;
  display: flex; gap: 4px; background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 100px; padding: 5px; box-shadow: var(--shadow-lg);
}
.viewtoggle button {
  border: 0; background: transparent; font-family: var(--font-head); font-weight: 500; font-size: .95rem;
  color: var(--anthracite); padding: .7rem 1.4rem; border-radius: 100px; cursor: pointer;
  display: inline-flex; align-items: center; gap: .5rem; transition: background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.viewtoggle button.active { background: var(--anthracite); color: #fff; }
.viewtoggle button:not(.active):hover { color: var(--wood); }
.viewtoggle svg { width: 16px; height: 16px; }
@media (max-width: 480px) {
  .viewtoggle button { padding: .65rem 1.1rem; font-size: .85rem; }
}

/* =========================================================================
   Referenz-Detail (Variante 1/2) — datengetrieben über ?projekt=<slug>
   ========================================================================= */
.detail { padding-block: clamp(1.75rem, 4vw, 3rem) clamp(3rem, 7vw, 6rem); }
.detail__back { font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--anthracite); display: inline-flex; gap: .5rem; align-items: center; border-bottom: 1px solid var(--green); padding-bottom: 2px; transition: gap .2s var(--ease), color .2s var(--ease); }
.detail__back:hover { gap: .85rem; color: var(--green-deep); }
.detail__head { margin: 1.6rem 0; max-width: 62ch; }
.detail__head h1 { font-size: var(--fs-h1); margin: .55rem 0 .45rem; }
.detail__sub { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--wood); }
.detail__hero { aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; background: var(--light); border: 1px solid var(--line); }
.detail__hero img { width: 100%; height: 100%; object-fit: cover; }
.detail__cols { display: grid; grid-template-columns: 1fr 340px; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; margin-top: clamp(2rem, 4vw, 3rem); }
.detail__text { font-size: 1.0625rem; line-height: 1.75; color: #4a4846; }
.detail__text p + p { margin-top: 1rem; }
.detail__facts { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: 96px; }
.detail__facts .row { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); }
.detail__facts .row:last-child { border-bottom: 0; }
.detail__facts .k { font-family: var(--font-head); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); flex: none; padding-top: 2px; }
.detail__facts .v { font-size: var(--fs-sm); font-weight: 500; color: var(--anthracite); text-align: right; }
@media (max-width: 820px) { .detail__cols { grid-template-columns: 1fr; } .detail__facts { position: static; } }

/* Projektgalerie — Masonry (CSS-Columns) */
.detail__gallery { column-count: 3; column-gap: 14px; }
.detail__gallery .gallery__item { display: block; width: 100%; padding: 0; border: 0; background: none; margin: 0 0 14px; cursor: zoom-in; break-inside: avoid; border-radius: var(--radius-lg); overflow: hidden; line-height: 0; }
.detail__gallery img { width: 100%; height: auto; display: block; transition: transform .4s var(--ease), filter .3s var(--ease); }
.detail__gallery .gallery__item:hover img { transform: scale(1.04); filter: brightness(1.04); }
@media (max-width: 820px) { .detail__gallery { column-count: 2; } }
@media (max-width: 480px) { .detail__gallery { column-count: 1; } }

/* Lightbox („Lightroom") */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(28,27,25,.95); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox__img { max-width: 90vw; max-height: 86vh; object-fit: contain; border-radius: 4px; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.lightbox__nav, .lightbox__close { border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .15s var(--ease); }
.lightbox__nav:hover, .lightbox__close:hover { background: var(--green-deep); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; font-size: 2rem; line-height: 1; }
.lightbox__prev { left: clamp(10px, 3vw, 32px); }
.lightbox__next { right: clamp(10px, 3vw, 32px); }
.lightbox__close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%; font-size: 1.5rem; }
.lightbox__count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-family: var(--font-head); font-size: .9rem; letter-spacing: .05em; background: rgba(0,0,0,.4); padding: .4rem .9rem; border-radius: 100px; }
body.lb-lock { overflow: hidden; }
@media (max-width: 560px) { .lightbox__nav { width: 44px; height: 44px; font-size: 1.5rem; } .lightbox__close { top: 12px; right: 14px; } }

.rd-eyebrow, .refov__eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.rd-eyebrow span.line, .refov__eyebrow span.line { width: 22px; height: 1.5px; background: var(--clay); }
.rd-eyebrow span.txt, .refov__eyebrow span.txt { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--clay); }

/* =========================================================================
   Referenz-Detail — Container-Query-Layout (referenz.html)
   Frame A (≥1480cq): 3 Spalten, „In der Nähe"-Leiste, Ein-Screen, Footer per Scroll
   Frame B (880–1479cq): 2 Spalten + „Weitere Referenzen"-Streifen + Footer
   Frame C (<880cq): 1 Spalte gestapelt + Streifen + Footer
   Responsivität ausschließlich über @container / container-type — kein JS.
   ========================================================================= */
body.rd-page { margin: 0; }
.rd-container { container-type: inline-size; height: auto; background: #fff; color: var(--ink); }
/* Fixe (nicht scrollende) Blöcke im rechten Datenblatt dürfen in der scrollenden Spalte nicht schrumpfen */
.rd-right > .rd-eyebrow, .rd-right > .rd-quelle, .rd-right > .rd-cta { flex: 0 0 auto; }
.rd-root { height: auto; overflow: visible; }
.rd-screen1 { display: flex; flex-direction: column; height: auto; }
.rd-container a { text-decoration: none; }

/* Header (eigener, kompakter Detail-Header) */
.rd-header { flex: 0 0 auto; height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; border-bottom: 1px solid var(--hairline); background: #fff; }
.rd-brand { display: flex; align-items: center; gap: 11px; }
.rd-brand__bars { display: flex; flex-direction: column; gap: 3px; width: 25px; }
.rd-brand__bars span { height: 4px; border-radius: 1px; background: var(--green-b); width: 100%; }
.rd-brand__bars span:nth-child(2) { width: 62%; }
.rd-brand__name { line-height: 1.05; }
.rd-brand__name b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 16px; letter-spacing: .04em; color: var(--ink); }
.rd-brand__name small { font-weight: 600; font-size: 11px; color: var(--ink-soft); }
.rd-nav { display: none; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.rd-nav a { color: var(--ink-soft); }
.rd-nav a.active { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--green-b); padding-bottom: 4px; }
.rd-nav a.rd-nav__cta { background: var(--ink); color: #fff; font-weight: 600; padding: 10px 18px; border-radius: 5px; }
.rd-burger { display: flex; flex-direction: column; gap: 5px; width: 24px; border: 0; background: none; padding: 0; cursor: pointer; }
.rd-burger span { height: 2px; background: var(--ink); }
/* Mobile Menü: Burger klappt die rd-nav als Panel unter dem Header aus */
.rd-header { position: relative; }
.rd-nav.open {
  display: flex; position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
  flex-direction: column; align-items: flex-start; gap: 16px;
  background: #fff; border-bottom: 1px solid var(--hairline); padding: 20px 30px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .08);
}
.rd-nav.open a.rd-nav__cta { margin-top: 4px; }

/* Grid */
.rd-main { display: grid; grid-template-columns: 1fr; flex: 0 0 auto; overflow: visible; min-height: 0; }

/* Links — „In der Nähe"-Leiste (nur Frame A) */
.rd-left { display: none; flex-direction: column; gap: 16px; border-right: 1px solid var(--hairline); padding: 26px 20px; overflow: hidden; min-height: 0; }
.rd-back { font-size: 14px; font-weight: 600; color: var(--ink); width: fit-content; border-bottom: 2px solid var(--green-b); padding-bottom: 3px; transition: color .15s var(--ease); }
.rd-back:hover { color: var(--green-bd); }
.rd-near__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rd-near__count { font-size: 12px; font-weight: 600; color: var(--ink); }
.rd-near__sliderhead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.rd-near__sliderhead .lbl { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted2); }
.rd-near__sliderhead .val { font-family: var(--font-head); font-size: 14px; font-weight: 600; color: var(--ink); }
.rd-near input[type=range] { width: 100%; accent-color: var(--green-b); cursor: pointer; }
.rd-near__map { position: relative; flex: 0 0 auto; height: 190px; border-radius: 6px; overflow: hidden; border: 1px solid var(--hairline);
  background: repeating-linear-gradient(0deg,#E8E9E5 0 1px,transparent 1px 30px), repeating-linear-gradient(90deg,#E8E9E5 0 1px,transparent 1px 30px), var(--surface); }
.rd-near__band { position: absolute; left: -8%; top: 70%; width: 118%; height: 26px; background: rgba(110,135,90,.13); transform: rotate(-7deg); }
.rd-near__circle { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); border: 1.5px dashed var(--green-b); border-radius: 50%; background: rgba(107,161,43,.09); transition: width .18s, height .18s; }
.rd-near__pin { position: absolute; width: 11px; height: 11px; border-radius: 50% 50% 50% 0; transform: translate(-50%,-100%) rotate(-45deg); background: #26271F; border: 1.5px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,.28); }
.rd-near__center { position: absolute; left: 50%; top: 50%; display: flex; flex-direction: column; align-items: center; transform: translate(-50%,-100%); z-index: 5; }
.rd-near__center .pin { width: 17px; height: 17px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--green-b); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.rd-near__center .lbl { margin-top: 5px; font-size: 10px; font-weight: 700; color: var(--ink); background: rgba(255,255,255,.85); padding: 2px 6px; border-radius: 3px; }
.rd-near__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin: 0 -4px; padding: 2px 4px; }
.rd-near__list a { display: flex; gap: 11px; align-items: center; color: var(--ink); padding: 7px; border-radius: 8px; border: 1px solid transparent; }
.rd-near__list a:hover { border-color: var(--hairline); background: #FAFAF8; }
.rd-near__thumb { flex: 0 0 auto; width: 58px; height: 48px; border-radius: 5px; overflow: hidden; background: #EDEEEA; }
.rd-near__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-near__meta { flex: 1 1 auto; min-width: 0; }
.rd-near__meta .n { display: block; font-family: var(--font-head); font-weight: 600; font-size: 14px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-near__meta .p { display: block; font-size: 12px; color: var(--muted2); font-weight: 500; margin-top: 2px; }
.rd-near__dist { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: var(--green-b); }

/* Mitte — Galerie */
.rd-center { display: flex; flex-direction: column; min-height: 0; min-width: 0; padding: 22px; gap: 20px; overflow: visible; }
.rd-head-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.rd-backinline { display: inline-block; font-size: 14px; font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--green-b); padding-bottom: 2px; }
.rd-title { font-family: var(--font-head); font-weight: 700; font-size: 30px; line-height: .98; letter-spacing: -.025em; color: var(--ink); }
.rd-sub { font-size: 18px; color: var(--clay); font-weight: 500; margin-top: 9px; }
.rd-hero { position: relative; flex: 1 1 auto; min-height: 230px; border-radius: 6px; overflow: hidden; border: 1px solid var(--hairline); background: var(--surface); cursor: zoom-in; }
.rd-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-hero .cap { position: absolute; left: 18px; bottom: 16px; font-size: 12px; font-weight: 600; color: var(--ink); background: rgba(255,255,255,.9); padding: 6px 12px; border-radius: 4px; max-width: 70%; }
.rd-hero .cnt { position: absolute; right: 18px; top: 16px; font-size: 13px; font-weight: 600; color: var(--ink); background: rgba(255,255,255,.9); padding: 5px 10px; border-radius: 4px; }
.rd-thumbs { flex: 0 0 auto; display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; }
.rd-thumbs button { flex: 0 0 auto; width: 108px; height: 70px; border-radius: 4px; border: 1px solid var(--hairline); overflow: hidden; padding: 0; cursor: pointer; background: var(--surface); transition: border-color .15s var(--ease); }
.rd-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-thumbs button.active { border: 2px solid var(--green-b); }

/* Rechts — Datenblatt */
.rd-right { padding: 30px 26px; display: flex; flex-direction: column; gap: 24px; overflow-y: auto; min-width: 0; border-top: 1px solid var(--hairline); }
.rd-stats { flex: 0 0 auto; display: flex; border: 1px solid var(--hairline); border-radius: 6px; overflow: hidden; }
.rd-stats > div { flex: 1; padding: 15px 17px; }
.rd-stats > div + div { border-left: 1px solid var(--hairline); }
.rd-stats .big { font-family: var(--font-head); font-weight: 600; font-size: 28px; line-height: 1; letter-spacing: -.01em; color: var(--ink); }
.rd-stats .big span { font-size: 15px; font-weight: 600; color: var(--muted2); }
.rd-stats .lbl { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted2); margin-top: 7px; }
.rd-groups { display: flex; flex-direction: column; gap: 20px; }
.rd-group__title { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); padding-bottom: 6px; border-bottom: 2px solid var(--ink); margin-bottom: 2px; }
.rd-group .row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--hairline); }
.rd-group .k { flex: 0 0 auto; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted2); padding-top: 3px; max-width: 120px; }
.rd-group .v { text-align: right; font-size: 15px; font-weight: 400; line-height: 1.4; color: var(--ink); max-width: 230px; }
.rd-quelle { font-size: 11px; line-height: 1.6; color: #A6A99F; }
.rd-cta { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 9px; background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 14px; padding: 15px; border-radius: 5px; transition: background .15s var(--ease); }
.rd-cta:hover { background: var(--green-bd); }

/* „Weitere Referenzen"-Streifen (Frame B / C) */
.rd-bottomrefs { display: block; flex: 0 0 auto; border-top: 1px solid var(--hairline); background: #FAFAF8; padding: 26px 34px 30px; }
.rd-bottomrefs__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.rd-bottomrefs__all { font-size: 13px; font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--green-b); padding-bottom: 2px; white-space: nowrap; }
.rd-bottomrefs__row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 4px; }
.rd-refcard { flex: 0 0 auto; width: 230px; color: var(--ink); border: 1px solid var(--hairline); border-radius: 8px; overflow: hidden; background: #fff; transition: border-color .15s var(--ease); }
.rd-refcard:hover { border-color: var(--green-b); }
.rd-refcard__img { height: 120px; overflow: hidden; background: #EDEEEA; }
.rd-refcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-refcard__body { padding: 12px 14px 14px; }
.rd-refcard__cat { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); margin-bottom: 5px; }
.rd-refcard__name { font-family: var(--font-head); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.rd-refcard__place { font-size: 13px; color: var(--muted2); font-weight: 500; margin-top: 2px; }

/* Footer */
.rd-footer { background: var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 48px 40px 30px; }
.rd-footer__cols { display: flex; flex-wrap: wrap; gap: 44px 64px; }
.rd-footer__brand { flex: 1 1 260px; min-width: 220px; }
.rd-footer__lead { font-size: 14px; line-height: 1.6; color: #B7BBB0; max-width: 280px; margin-top: 4px; }
.rd-footer__col { flex: 0 0 auto; display: flex; flex-direction: column; gap: 10px; font-size: 14px; font-weight: 500; color: #E4E5E1; }
.rd-footer__col h4 { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #6E7268; margin: 0 0 4px; }
.rd-footer__col a { color: inherit; }
.rd-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; color: var(--muted2); }
.rd-footer__bottom > div { display: flex; gap: 22px; }

/* ---- Frame B (≥880cq): 2 Spalten ---- */
@container (min-width: 880px) {
  .rd-main { grid-template-columns: minmax(0,1fr) 392px; }
  .rd-nav { display: flex; }
  .rd-burger { display: none; }
  .rd-title { font-size: 38px; }
  .rd-hero { min-height: 300px; }
  .rd-center { padding: 30px 34px; }
  .rd-right { border-left: 1px solid var(--hairline); border-top: none; }
}
/* ---- Frame A (≥1480cq): 3 Spalten, Ein-Screen ---- */
@container (min-width: 1480px) {
  .rd-main { grid-template-columns: 250px minmax(0,1fr) 400px; align-items: start; }
  .rd-bottomrefs { display: none; } /* links läuft die „In der Nähe"-Leiste — nicht doppelt */
  .rd-left { display: flex; position: sticky; top: var(--header-h, 77px); max-height: calc(100vh - var(--header-h, 77px)); overflow-y: auto; }
  .rd-right { position: sticky; top: var(--header-h, 77px); max-height: calc(100vh - var(--header-h, 77px)); overflow-y: auto; }
  .rd-backinline { display: none; }
  .rd-title { font-size: 48px; }
  .rd-hero { min-height: 0; }
}

/* =========================================================================
   Referenz-Übersicht — Karte + synchrone Liste (referenzen.html)
   ========================================================================= */
.refov { display: flex; flex-direction: column; height: calc(100dvh - var(--header-h)); background: #fff; color: var(--ink); }
.refov__head { flex: 0 0 auto; padding: 14px 30px; border-bottom: 1px solid var(--hairline); display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; }
.refov__head h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--ink); letter-spacing: -.01em; }
.refov__filter { display: flex; gap: 8px; flex-wrap: wrap; }
.refov__filter button { font-family: var(--font-body); font-size: 13px; font-weight: 600; padding: 8px 15px; border-radius: 24px; border: 1px solid var(--hairline); background: #fff; color: var(--ink-soft); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: all .15s var(--ease); }
.refov__filter button .c { font-size: 11px; color: var(--muted2); }
.refov__filter button.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.refov__filter button.active .c { color: rgba(255,255,255,.6); }

.refov__body { position: relative; flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 1.3fr 1fr; }
.refov__left { overflow-y: auto; padding: 20px; }
.refov__map { position: relative; background: var(--surface); border-left: 1px solid var(--hairline); }
#ov-map { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Galerie-/Listen-Ansicht — [hidden] muss display:grid/flex schlagen */
.ov-gallery[hidden], .ov-listview[hidden] { display: none; }
/* Galerie-Ansicht */
.ov-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ov-tile { border: 2px solid var(--hairline); border-radius: 8px; overflow: hidden; cursor: pointer; background: #fff; transition: border-color .15s var(--ease); }
.ov-tile:hover, .ov-tile.hot { border-color: var(--green-b); }
.ov-tile__img { height: 150px; overflow: hidden; background: var(--surface); }
.ov-tile__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.ov-tile:hover .ov-tile__img img { transform: scale(1.04); }
.ov-tile__body { padding: 12px 14px 14px; }
.ov-tile__kicker { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--clay); }
.ov-tile__name { font-family: var(--font-head); font-weight: 600; font-size: 19px; color: var(--ink); margin: 5px 0 3px; line-height: 1.1; }
.ov-tile__ort { font-size: 12px; color: var(--muted2); font-weight: 500; }

/* Listen-Ansicht — Standard-Ansicht, Einträge ~30 % größer (Meeting 07/2026) */
.ov-listview { display: flex; flex-direction: column; }
.ov-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center; padding: 16px 10px; border-bottom: 1px solid var(--hairline); cursor: pointer; border-radius: 8px; transition: background .15s var(--ease); }
.ov-row:hover, .ov-row.hot { background: var(--surface); }
.ov-row__img { width: 96px; height: 72px; border-radius: 6px; overflow: hidden; background: var(--surface); }
.ov-row__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ov-row__kicker { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); }
.ov-row__name { font-family: var(--font-head); font-weight: 600; font-size: 21px; color: var(--ink); margin: 3px 0 2px; line-height: 1.1; }
.ov-row__ort { font-size: 15px; color: var(--muted2); font-weight: 500; }
.ov-row__arr { font-size: 22px; color: var(--muted2); transition: color .15s var(--ease), transform .15s var(--ease); }
.ov-row:hover .ov-row__arr, .ov-row.hot .ov-row__arr { color: var(--green-bd); transform: translateX(3px); }

/* Schwebender Galerie/Liste-Switcher (mittig unter der linken 40 %-Spalte) */
.ov-switch { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 30; display: flex; background: #fff; border-radius: 30px; box-shadow: 0 12px 30px rgba(26,27,23,.18); padding: 4px; }
.ov-switch button { border: 0; background: none; font-family: var(--font-body); font-weight: 600; font-size: 14px; padding: 9px 22px; border-radius: 26px; color: var(--ink-soft); cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease); }
.ov-switch button.active { background: var(--ink); color: #fff; }

/* =========================================================================
   Referenz-Übersicht v2 (Frame G) — Intro-Hero + Explorer + Kontakt-CTA
   ========================================================================= */
.refpage { background: #fff; color: var(--ink); }
.refpage__in { padding-inline: clamp(24px, 3.5vw, 48px); }
/* Referenz-Seiten: Header über volle Breite (Logo bündig zum Intro) */
.refpage-body .site-header .container { max-width: none; padding-inline: clamp(24px, 3.5vw, 48px); }

/* Eyebrow im Referenzen-Intro-Modal */
.refintro__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--clay); }
.btn-dark { display: inline-flex; align-items: center; gap: 9px; background: var(--ink); color: #fff; font-family: var(--font-body); font-weight: 600; font-size: 14px; padding: 13px 20px; border-radius: 5px; transition: background .15s var(--ease); }
.btn-dark:hover { background: var(--green-bd); }
.btn-outline { display: inline-flex; align-items: center; gap: 9px; background: #fff; color: var(--ink); font-family: var(--font-body); font-weight: 600; font-size: 14px; padding: 12px 20px; border-radius: 5px; border: 1px solid var(--hairline); transition: border-color .15s var(--ease); }
.btn-outline:hover { border-color: var(--ink); }

.explorer { padding: 8px clamp(24px, 3.5vw, 48px) 48px; scroll-margin-top: 84px; }
.explorer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 14px 2px; }
.explorer__head h1, .explorer__head h2 { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--ink); }
.explorer__count { font-size: 13px; font-weight: 600; color: var(--muted2); margin-left: 12px; }
.explorer__count b { color: var(--ink); }
/* Höhe an den Viewport gekoppelt; die Ergebnisliste links scrollt bei mehr
   Projekten intern (.refov__left { overflow-y:auto }).
   Spaltenteilung lt. Meeting 07/2026: Liste 40 % / Karte 60 %. */
.explorer__body { position: relative; height: clamp(420px, calc(100vh - 190px), 880px); display: grid; grid-template-columns: 2fr 3fr; border: 1px solid var(--hairline); border-radius: 10px; overflow: hidden; }

/* Vollhöhen-Explorer ohne Intro: Kopfzeile + Liste/Karte = zusammen 100vh */
.explorer--full { height: calc(100dvh - var(--header-h)); display: flex; flex-direction: column; padding-bottom: 20px; scroll-margin-top: 0; }
.explorer--full .explorer__head { flex: 0 0 auto; }
.explorer--full .explorer__body { flex: 1 1 auto; min-height: 0; height: auto; }
@media (max-width: 900px) { .explorer--full { height: auto; } }

.refcta { background: #FAFAF8; border-top: 1px solid var(--hairline); text-align: center; padding: clamp(3rem, 6vw, 5rem) 30px; }
.refcta h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 3vw, 34px); color: var(--ink); }
.refcta p { font-size: 17px; color: var(--ink-soft); max-width: 46ch; margin: 12px auto 26px; }
.refcta__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 900px) {
  /* Referenzen mobil: Karte oben kompakt, darunter nur die Liste, randlos,
     kein Umschalter, minimales Padding (Feedback 07/2026) */
  .explorer.explorer--full { padding: 0; height: auto; }
  .explorer--full .explorer__head { padding: 14px 14px 12px; }
  .explorer__body { display: flex; flex-direction: column; height: auto; border: none; border-radius: 0; overflow: visible; }
  .explorer__body .refov__map { height: 40vh; order: -1; border-left: none; border-bottom: 1px solid var(--hairline); }
  .explorer__body .refov__left { max-height: none; overflow: visible; padding: 6px 10px 26px; }
  .ov-switch { display: none; }
  .ov-gallery { display: none !important; }
  .ov-listview { display: flex !important; }
}

/* Pin-Highlight (Hover-Sync, Airbnb-Prinzip) */
.hb-pin.hot { background: var(--green-b); transform: rotate(-45deg) scale(1.4); z-index: 900; }

@media (max-width: 900px) {
  .refov { height: auto; }
  .refov__body { grid-template-columns: 1fr; }
  .refov__map { height: 46vh; order: -1; border-left: none; border-bottom: 1px solid var(--hairline); }
  .ov-gallery { grid-template-columns: 1fr 1fr; }
  .ov-switch { left: 50%; transform: translateX(-50%); }
}
@media (max-width: 520px) { .ov-gallery { grid-template-columns: 1fr; } }

/* =========================================================================
   Reveal-Animation
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero__scroll::after { animation: none; }
}

/* =========================================================================
   Finales Gesamtdesign (Meeting 07/2026)
   ========================================================================= */

/* ---- „Projekte in Ihrer Nähe" — Kacheln im V3-Stil (Bild · Trennlinie ·
   Gewerk · Bezeichnung), aber mit den organischen Rundungen von V1/2 ---- */
.near-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 2.6rem 0 1.1rem; }
.near-head .eyebrow { margin-bottom: 0; }
.near-head__hint { font-size: var(--fs-xs); color: var(--muted); font-family: var(--font-head); letter-spacing: .04em; }
.near-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.near-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.near-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green); }
.near-card__img { height: 200px; overflow: hidden; background: var(--light); }
.near-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.near-card:hover .near-card__img img { transform: scale(1.05); }
.near-card__body { padding: 1.15rem 1.3rem 1.4rem; }
.near-card__line { display: block; width: 30px; height: 2px; background: var(--green); margin-bottom: .7rem; }
.near-card__cat { font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--green-deep); }
.near-card__name { font-family: var(--font-head); font-weight: 500; font-size: 1.3rem; color: var(--anthracite); margin: .35rem 0 .15rem; line-height: 1.15; }
.near-card__ort { font-size: var(--fs-sm); color: var(--muted); }
.near-card__ort b { color: var(--green-deep); font-weight: 600; }
@media (max-width: 900px) { .near-cards { grid-template-columns: 1fr; } .near-card__img { height: 180px; } }

/* ---- Social Media (LinkedIn/Instagram — Einbindung via Elfsight) ---- */
.social-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.social-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .8rem; }
.social-card__head { display: flex; align-items: center; gap: .75rem; }
.social-card__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--anthracite); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: .8rem; flex: none; }
.social-card__meta b { display: block; font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--anthracite); }
.social-card__meta span { font-size: var(--fs-xs); color: var(--muted); }
.social-card__net { margin-left: auto; font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .08em; color: var(--green-deep); }
.social-card p { font-size: var(--fs-sm); line-height: 1.6; color: #565452; }
.social-card__img { border-radius: var(--radius); overflow: hidden; height: 150px; background: var(--light); }
.social-card__img img { width: 100%; height: 100%; object-fit: cover; }
.social-note { margin-top: 1.3rem; font-size: var(--fs-xs); color: var(--muted); text-align: center; }
@media (max-width: 900px) { .social-cards { grid-template-columns: 1fr; } }

/* ---- Leistungs-Teaser (kompakt, verlinkt auf leistungen.html) ---- */
/* Leistungs-Teaser als Prozess-Zeilen — bewusster Kontrast zur Kachel-Optik
   der Nachbar-Sektionen (Feedback 07/2026: „wirkt sonst immer gleich") */
.services-teaser { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.service-mini {
  display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: center; gap: clamp(1rem, 2.5vw, 2rem);
  padding: 1.15rem .35rem; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  transition: background .2s var(--ease), padding .2s var(--ease);
}
.service-mini:hover { background: #fff; padding-inline: .85rem; }
.service-mini__num { font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--green-deep); }
.service-mini h3 { font-size: 1.12rem; font-weight: 550; transition: color .2s var(--ease); }
.service-mini:hover h3 { color: var(--green-deep); }
.service-mini p { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; margin: 0; }
.service-mini::after { content: "\2192"; font-family: var(--font-head); color: var(--muted); transition: transform .2s var(--ease), color .2s var(--ease); }
.service-mini:hover::after { transform: translateX(5px); color: var(--green-deep); }
@media (max-width: 700px) {
  .service-mini { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .service-mini p { display: none; }
}

/* ---- Kundenstimmen ---- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.7rem 1.6rem 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 1rem; position: relative; }
.quote::before { content: "\201E"; font-family: var(--font-head); font-size: 3.4rem; line-height: 0; color: var(--green); position: absolute; top: 1.9rem; left: 1.4rem; }
.quote p { font-size: var(--fs-sm); line-height: 1.65; color: #4a4846; padding-left: 1.6rem; font-style: italic; }
.quote footer { padding-left: 1.6rem; display: flex; flex-direction: column; gap: .1rem; }
.quote footer b { font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--anthracite); }
.quote footer span { font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ---- Referenzen: Intro-Modal-Variante (referenzen-modal.html) ---- */
.ref-intro-modal { position: fixed; inset: 0; z-index: 1500; display: none; align-items: center; justify-content: center; padding: 1.5rem; background: rgba(43,42,41,.45); backdrop-filter: blur(6px); }
.ref-intro-modal.open { display: flex; }
.ref-intro-modal__panel { background: #fff; border-radius: 14px; max-width: 620px; width: 100%; padding: clamp(1.8rem, 4vw, 3rem); box-shadow: var(--shadow-lg); position: relative; }
.ref-intro-modal__close { position: absolute; top: 14px; right: 16px; border: 0; background: none; font-size: 1.7rem; line-height: 1; color: var(--muted); }
.ref-intro-modal__close:hover { color: var(--anthracite); }
.ref-intro-modal__panel h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: .6rem 0 1rem; }
.ref-intro-modal__panel .lead { margin-bottom: 1.6rem; }

/* =========================================================================
   Mobil-Lesbarkeit (Feedback 07/2026): Festpixel-Kleintexte anheben,
   enge 50 %-Spalten auf volle Breite stellen.
   Token-Bump (--fs-xs/-sm/-body) siehe tokens.css.
   ========================================================================= */
@media (max-width: 600px) {
  /* Detailseite — Datenblatt & Labels */
  .rd-eyebrow span.txt, .refov__eyebrow span.txt { font-size: 13px; }
  .rd-group__title { font-size: 13px; }
  .rd-group .k { font-size: 13px; max-width: 130px; }
  .rd-group .v { font-size: 16px; }
  .rd-stats .lbl { font-size: 13px; }
  .rd-quelle { font-size: 13px; }
  .rd-sub { font-size: 16px; }
  .rd-hero .cap { font-size: 13px; }
  .rd-near__dist { font-size: 13px; }
  .rd-refcard__cat { font-size: 12px; }
  .rd-bottomrefs__all { font-size: 14px; }

  /* Explorer — Listenzeilen */
  .ov-row__kicker { font-size: 14px; }
  .ov-tile__kicker { font-size: 13px; }
  .ov-tile__ort, .ov-row__ort { font-size: 14px; }

  /* Karten-Popups */
  .hb-pop__ort { font-size: 13px; }

  /* 50 % → 100 %: enge Doppelspalten stapeln */
  .about__facts { grid-template-columns: 1fr; }
  .rd-stats { flex-direction: column; }
  .rd-stats > div + div { border-left: 0; border-top: 1px solid var(--hairline); }
}

/* Team ohne Foto: Initialen-Platzhalter (Team.docx liefert nicht für alle Bilder) */
.member__img--empty { display: grid; place-items: center; background: var(--c-surface); aspect-ratio: 1 / 1; }
.member__img--empty span { font-family: var(--font-head); font-weight: 500; font-size: 3.4rem; color: var(--c-green); letter-spacing: .04em; }
.member__qual span { display: inline-block; vertical-align: top; }

/* Leistungen: Claim-Zeile + Intro-Block (Inhalte von holzbauplanwerk.de) */
.service__claim { font-family: var(--font-head); font-weight: 500; color: var(--c-green-deep); margin: .1rem 0 .55rem; font-size: 1.02rem; }
.leistungen-intro { max-width: 820px; }
.leistungen-intro p { margin-bottom: 1.1rem; }
.leistungen-intro ul { margin: 0 0 1.1rem 1.2rem; list-style: none; }
.leistungen-intro li { position: relative; padding-left: 1.1rem; margin-bottom: .45rem; }
.leistungen-intro li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--c-green); }

/* Team: dunkle Recruiting-Kachel („Wir suchen") — Initiativbewerbung */
.member--recruit { background: var(--c-anthracite); border-color: var(--c-anthracite); color: #e7e4e1; }
.member--recruit:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.member--recruit .member__body { justify-content: center; padding: clamp(1.6rem, 3vw, 2.2rem); }
.member--recruit .member__role { color: var(--c-green-soft); }
.member--recruit h3 { color: #fff; }
.member--recruit p { font-size: var(--fs-sm); color: #c7c4c1; line-height: 1.6; margin: .6rem 0 0; }
.member--recruit .member__actions .btn-contact { background: var(--c-green-deep); border-color: var(--c-green-deep); }
.member--recruit .member__actions .btn-contact:hover { background: #fff; color: var(--c-anthracite); border-color: #fff; }

/* =========================================================================
   Karriere — Stellen-Karten + Detailseite
   ========================================================================= */
.jobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.job-card { display: flex; flex-direction: column; gap: .9rem; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 1.7rem 1.8rem 1.6rem; box-shadow: var(--shadow); color: inherit; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--c-green); }
.job-card__badge { display: inline-block; align-self: flex-start; font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--c-green-deep); background: #eef5e6; padding: .3rem .7rem; border-radius: 100px; margin-bottom: .3rem; }
.job-card h3 { font-size: 1.35rem; line-height: 1.2; }
.job-card__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: var(--fs-sm); color: var(--c-muted); margin-top: .4rem; }
.job-card__meta span { position: relative; }
.job-card__meta span + span::before { content: "·"; position: absolute; left: -.7rem; }
.job-card__teaser { font-size: var(--fs-sm); color: #5e5c5a; line-height: 1.6; flex: 1; }
.job-card__link { font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--c-green-deep); display: inline-flex; align-items: center; gap: .4rem; }
.job-card:hover .job-card__link .arr { transform: translateX(4px); }
.job-card__link .arr { transition: transform .2s var(--ease); }
@media (max-width: 720px) { .jobs { grid-template-columns: 1fr; } }

/* Detailseite */
.job-back { font-family: var(--font-head); font-weight: 500; font-size: var(--fs-sm); color: var(--c-green-deep); }
.job-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1rem; font-size: var(--fs-body); color: var(--c-ink-soft); }
.job-meta b { color: var(--c-anthracite); font-weight: 600; }
.job-detail { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
.job-detail__body { font-size: var(--fs-body); line-height: 1.7; color: #4a4846; }
.job-detail__body h2, .job-detail__body h3 { font-family: var(--font-head); margin: 1.8rem 0 .8rem; color: var(--c-anthracite); }
.job-detail__body h3 { font-size: 1.3rem; }
.job-detail__body ul { list-style: none; margin: 0 0 1.2rem; }
.job-detail__body li { position: relative; padding-left: 1.4rem; margin-bottom: .6rem; }
.job-detail__body li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--c-green); }
.job-detail__body p { margin-bottom: 1.1rem; }
.job-apply-box { position: sticky; top: 100px; background: var(--c-anthracite); color: #e7e4e1; border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow-lg); }
.job-apply-box .eyebrow { color: var(--c-green-soft); }
.job-apply-box h3, .job-apply-box__title { color: #fff; font-size: 1.3rem; font-weight: 600; margin-bottom: .5rem; }
.job-apply-box p { font-size: var(--fs-sm); color: #c7c4c1; line-height: 1.6; margin-bottom: 1.2rem; }
.job-apply-box .btn { width: 100%; justify-content: center; }
.job-apply-box__contact { display: flex; flex-direction: column; gap: .3rem; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.14); font-size: var(--fs-sm); }
.job-apply-box__contact a { color: var(--c-green-soft); }
@media (max-width: 840px) { .job-detail { grid-template-columns: 1fr; } .job-apply-box { position: static; } }

/* =========================================================================
   Aktuelles — News-Karten (Übersicht) + Einzelbeitrag
   ========================================================================= */
.social-card { color: inherit; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
a.social-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); color: inherit; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--c-green); }
.news-card__img { height: 200px; overflow: hidden; background: var(--c-surface); }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.news-card:hover .news-card__img img { transform: scale(1.05); }
.news-card__body { padding: 1.3rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.news-card__meta { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--fs-xs); font-family: var(--font-head); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--c-green-deep); }
.news-card__meta span:last-child { color: var(--c-muted); }
.news-card h2 { font-size: 1.3rem; line-height: 1.2; }
.news-card p { font-size: var(--fs-sm); color: #5e5c5a; line-height: 1.6; flex: 1; }
.news-card__link { font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--c-green-deep); }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }
.news-pager { margin-top: 2rem; display: flex; justify-content: center; }
.news-pager .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.news-pager a, .news-pager .current { padding: .5rem .9rem; border-radius: var(--radius); border: 1px solid var(--c-line); font-family: var(--font-head); font-size: .9rem; color: var(--c-ink); }
.news-pager .current { background: var(--c-anthracite); color: #fff; border-color: var(--c-anthracite); }

.news-single { max-width: 760px; margin: 0 auto; }
.news-single__img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; }
.news-single__img img { width: 100%; height: auto; display: block; }
.news-single__body { font-size: var(--fs-body); line-height: 1.75; color: #3a3836; }
.news-single__body p { margin-bottom: 1.2rem; }
.news-single__body a { color: var(--c-green-deep); }
.news-single__source { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--c-line); }
.news-single__source a { font-family: var(--font-head); font-weight: 500; color: var(--c-green-deep); }

/* =========================================================================
   Statische Seiten (page.php: Impressum, Datenschutz, 404 …) + Editor-Listen
   ========================================================================= */
.page-content { max-width: 760px; font-size: var(--fs-body); line-height: 1.75; color: #3a3836; }
.page-content h2 { font-size: 1.35rem; margin: 2.2rem 0 .8rem; }
.page-content h3 { font-size: 1.1rem; margin: 1.8rem 0 .6rem; }
.page-content p { margin-bottom: 1.1rem; }
.page-content a { color: var(--c-green-deep); text-decoration: underline; text-underline-offset: 2px; }
/* Der globale ul-Reset nimmt Editor-Listen die Punkte — hier gezielt zurückholen */
.page-content ul, .news-single__body ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1.1rem; }
.page-content ol, .news-single__body ol { list-style: decimal; padding-left: 1.4rem; margin-bottom: 1.1rem; }
.page-content li, .news-single__body li { margin-bottom: .35rem; }

/* =========================================================================
   Tastatur-Fokus — sichtbarer Zustand für alle interaktiven Elemente
   ========================================================================= */
a:focus-visible, button:focus-visible, input:focus-visible,
.ov-row:focus-visible, .ov-tile:focus-visible, [tabindex="0"]:focus-visible {
  outline: 2px solid var(--c-green-deep, #4E7A34);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible, .rd-cta:focus-visible, .nav__cta a:focus-visible { outline-offset: 3px; }

/* =========================================================================
   Buttons — EIN System (Feedback 07/2026, Runde 2):
   Standard = Grün, weiße Schrift → Hover: Anthrazit + 2px anheben.
   Auf dunklem Grund invertiert der Hover zu Weiß (dunkel auf dunkel geht nicht).
   Outline nur noch als bewusste Zweit-Aktion neben einem grünen Button.
   EIN Hover-Verhalten überall: Farbe wechselt UND der Button hebt sich leicht.
   ========================================================================= */
.btn--primary { background: var(--green-deep); color: #fff; }
.btn--primary:hover { background: var(--anthracite); color: #fff; }
.section--dark .btn--primary:hover,
.hero .btn--primary:hover,
.job-apply-box .btn--primary:hover,
.member--recruit .btn--primary:hover { background: #fff; color: var(--anthracite); }

.hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.hero .btn--ghost:hover { background: #fff; color: var(--anthracite); border-color: #fff; }

.btn-dark { background: var(--green-deep); }
.btn-dark:hover { background: var(--anthracite); }
.rd-cta { background: var(--green-deep); }
.rd-cta:hover { background: var(--anthracite); }

/* Team-Karten: Grün mit weißer Schrift (Feedback: Outline wirkte „verloren") */
.btn-cv, .btn-contact { background: var(--green-deep); border: 1px solid var(--green-deep); color: #fff; }
.btn-cv:hover, .btn-contact:hover { background: var(--anthracite); border-color: var(--anthracite); color: #fff; }
.member--recruit .member__actions .btn-contact { background: var(--c-green-deep); border-color: var(--c-green-deep); color: #fff; } /* AA: #6EA826 + Weiß = 2,9 : 1 → green-deep 4,8 : 1 */
.member--recruit .member__actions .btn-contact:hover { background: #fff; border-color: #fff; color: var(--c-anthracite); }

.btn-outline:hover { background: var(--anthracite); color: #fff; border-color: var(--anthracite); }
.map-preview:hover .map-preview__cta { background: var(--anthracite); color: #fff; }

/* EIN Hover-Verhalten: alle Buttons heben sich beim Hover um 2px */
.btn-dark, .btn-outline, .btn-cv, .btn-contact, .rd-cta {
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover, .btn-dark:hover, .btn-outline:hover, .btn-cv:hover, .btn-contact:hover, .rd-cta:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn-dark:hover, .btn-outline:hover, .btn-cv:hover, .btn-contact:hover, .rd-cta:hover { transform: none; }
}

/* =========================================================================
   Leistungen — Prozess-Ansicht: links feststehende Schritt-Navigation
   (mit Mitlauf-Markierung), rechts ruhige Inhalts-Blöcke. Kein Overlap,
   Anker-Sprünge funktionieren in beide Richtungen.
   (unter 620px bleibt der Karten-Querswipe — Feedback 07/2026)
   ========================================================================= */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

@media (min-width: 621px) {
  .services-layout { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: clamp(2.4rem, 5vw, 5rem); align-items: start; }

  .services-sidebar { position: sticky; top: calc(var(--header-h, 77px) + 32px); }
  .services-sidebar nav { display: flex; flex-direction: column; margin-top: 1rem; border-left: 2px solid var(--line); }
  .services-sidebar a {
    display: flex; align-items: baseline; gap: .65rem;
    font-family: var(--font-head); font-size: .95rem; font-weight: 550; color: var(--muted);
    padding: .62rem .9rem; margin-left: -2px; border-left: 2px solid transparent;
    transition: color .2s var(--ease), border-color .2s var(--ease);
  }
  .services-sidebar a span { font-size: .74rem; font-weight: 700; color: var(--green-deep); }
  .services-sidebar a:hover { color: var(--anthracite); }
  .services-sidebar a.is-active { color: var(--anthracite); border-left-color: var(--green-deep); }

  .services { display: flex; flex-direction: column; gap: clamp(3rem, 6vw, 5rem); }
  .service {
    background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible;
    display: block; padding: 0;
    scroll-margin-top: calc(var(--header-h, 77px) + 32px);
  }
  .service + .service { border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 5rem); }
  .service:hover { transform: none; box-shadow: none; }
  .service__img { aspect-ratio: 21 / 9; border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; margin-bottom: clamp(1.4rem, 2.5vw, 2rem); }
  .service__body { padding: 0; display: flex; flex-direction: column; gap: .55rem; }
  .service__num { position: static; font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-deep); opacity: 1; }
  .service h2, .service h3 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); letter-spacing: -.01em; }
  .service__claim { font-size: 1.04rem; }
  .service p { font-size: 1rem; max-width: 68ch; }
}
@media (min-width: 621px) and (max-width: 900px) {
  /* schmalere Screens: Navigation als sticky Pillen-Zeile oben statt Spalte */
  .services-layout { grid-template-columns: 1fr; }
  .services-sidebar { position: sticky; top: var(--header-h, 77px); z-index: 40; background: rgba(245, 244, 240, .94); backdrop-filter: blur(8px); padding-block: .6rem; }
  .services-sidebar .eyebrow { display: none; }
  .services-sidebar nav { flex-direction: row; gap: .45rem; overflow-x: auto; border-left: 0; margin-top: 0; scrollbar-width: none; }
  .services-sidebar nav::-webkit-scrollbar { display: none; }
  .services-sidebar a { flex: none; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: .45rem .9rem; margin-left: 0; white-space: nowrap; }
  .services-sidebar a.is-active { border-color: var(--green-deep); }
  .service { scroll-margin-top: calc(var(--header-h, 77px) + 70px); }
}
@media (max-width: 620px) {
  .services-sidebar { display: none; } /* Mobile: Karten-Querswipe übernimmt */
}


/* =========================================================================
   Leistungspakete — Planungstiefe Werkstatt- und Montageplanung
   Die Balken-Bildmarke aus dem Styleguide dient als Stufen-Indikator:
   je höher das Paket, desto mehr Balken sind grün.
   ========================================================================= */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Prozesskette */
.pak-kette { list-style: none; display: flex; flex-wrap: wrap; align-items: stretch; gap: .5rem; margin: 0 0 clamp(2rem, 4vw, 3rem); padding: 0; counter-reset: kette; }
.pak-kette li {
  counter-increment: kette; position: relative; flex: 1 1 180px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--c-anthracite); color: #fff; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; padding: 1rem 1.2rem;
}
.pak-kette li.is-start { background: var(--c-green-deep); }
.pak-kette li + li::before {
  content: ""; position: absolute; left: -.5rem; top: 50%; width: .5rem; height: 2px;
  background: var(--c-green); transform: translateY(-50%);
}
.pak-kern {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.35; color: var(--c-anthracite); max-width: 44ch;
  border-left: 4px solid var(--c-green); padding: .3rem 0 .3rem 1.3rem;
}

/* Regelpakete — Stufen */
.pak-stufen { display: flex; flex-direction: column; gap: clamp(1rem, 2vw, 1.4rem); }
.pak-stufe {
  display: grid; grid-template-columns: 38px minmax(0, .85fr) minmax(0, 1.25fr);
  grid-template-rows: auto 1fr; gap: .9rem clamp(1.2rem, 3vw, 2.4rem);
  align-items: start; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.6vw, 1.9rem); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.pak-stufe__marke { grid-column: 1; grid-row: 1; }
.pak-stufe__kopf  { grid-column: 2; grid-row: 1; }
.pak-stufe__body  { grid-column: 3; grid-row: 1 / -1; }
.pak-nutzen       { grid-column: 2; grid-row: 2; align-self: start; }
.pak-stufe:hover { border-color: var(--c-green); box-shadow: var(--shadow); }
/* Balken-Bildmarke als Stufenanzeige */
.pak-stufe__marke { display: flex; flex-direction: column; gap: 3px; width: 34px; padding-top: .35rem; }
.pak-stufe__marke span { height: 5px; border-radius: 1px; background: var(--c-line); }
.pak-stufe__marke span.on { background: var(--c-green); }
.pak-stufe__marke span:nth-child(even) { width: 68%; }
.pak-stufe__nr { font-family: var(--font-head); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-green-deep); }
.pak-stufe__kopf h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin: .2rem 0 .3rem; }
.pak-stufe__unter { font-family: var(--font-head); font-weight: 600; color: var(--c-green-deep); font-size: 1rem; }
.pak-stufe__body p { font-size: var(--fs-sm); color: var(--c-ink-soft); margin-bottom: .7rem; }
.pak-liste { list-style: none; display: flex; flex-direction: column; gap: .42rem; padding: 0; margin: 0; }
.pak-liste li { position: relative; padding-left: 20px; font-size: var(--fs-sm); color: var(--c-ink-soft); line-height: 1.5; }
.pak-liste li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--c-green); }
.pak-liste--klein li { font-size: .86rem; }
.pak-nutzen { background: #f2f7ea; border-radius: var(--radius-md); padding: .95rem 1.15rem; }
.pak-nutzen span { display: block; font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-green-deep); margin-bottom: .35rem; }
.pak-nutzen p { font-size: var(--fs-sm); font-weight: 600; color: var(--c-anthracite); line-height: 1.45; }

/* Vergleichstabelle */
.pak-tabelle { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--radius-lg); }
.pak-tabelle table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: var(--fs-sm); }
.pak-tabelle th, .pak-tabelle td { padding: .8rem 1rem; border-bottom: 1px solid var(--c-line); text-align: left; }
.pak-tabelle thead th { background: var(--c-anthracite); color: #fff; font-family: var(--font-head); font-size: .8rem; font-weight: 700; }
.pak-tabelle thead th:not(:first-child) { text-align: center; }
.pak-tabelle tbody th { font-weight: 500; color: var(--c-anthracite); }
.pak-tabelle tbody tr:nth-child(even) { background: var(--c-paper); }
.pak-tabelle tbody tr:last-child th, .pak-tabelle tbody tr:last-child td { border-bottom: 0; }
.pak-tabelle td { text-align: center; font-size: 1.05rem; }
.pak-tabelle td.ja { color: var(--c-green-deep); font-weight: 700; }
.pak-tabelle td.nein { color: #c3c3c1; }
.pak-hinweis { margin-top: .9rem; font-size: var(--fs-xs); color: var(--c-muted); }

/* Sonderpakete */
.pak-sonder { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.1rem; }
.pak-karte { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.pak-karte:hover { border-color: var(--c-green); transform: translateY(-3px); }
.pak-karte h3 { font-size: 1.1rem; }
.pak-karte__unter { font-size: var(--fs-sm); color: var(--c-green-deep); font-weight: 600; }
.pak-karte__einsatz { margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--c-line); font-size: var(--fs-xs); color: var(--c-muted); }
.pak-karte__einsatz b { color: var(--c-anthracite); }

/* Entscheidungshilfe */
.pak-hilfe { display: flex; flex-direction: column; gap: .5rem; margin: 0; }
.pak-hilfe > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--radius-md); padding: .95rem 1.3rem; }
.pak-hilfe dt { font-weight: 600; color: var(--c-anthracite); font-size: var(--fs-sm); }
.pak-hilfe dd { margin: 0; font-family: var(--font-head); font-weight: 700; color: var(--c-green-deep); font-size: var(--fs-sm); white-space: nowrap; }

@media (max-width: 860px) {
  .pak-stufe { grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto auto auto; }
  .pak-stufe__body { grid-column: 2; grid-row: 2; }
  .pak-nutzen { grid-column: 2; grid-row: 3; }
}
@media (max-width: 560px) {
  .pak-stufe { grid-template-columns: 1fr; }
  .pak-stufe__marke, .pak-stufe__kopf, .pak-stufe__body, .pak-nutzen { grid-column: 1; grid-row: auto; }
  .pak-stufe__marke { flex-direction: row; width: auto; gap: 4px; }
  .pak-stufe__marke span { width: 22px; height: 5px; }
  .pak-stufe__marke span:nth-child(even) { width: 22px; }
  .pak-hilfe > div { grid-template-columns: 1fr; gap: .3rem; }
  .pak-hilfe dd { white-space: normal; }
}

/* =========================================================================
   Feedback 11/2026 (Call K. Lubner 27.11.2026 + Änderungsliste v4)
   ========================================================================= */

/* ---- Startseite: Einstiege je Zielgruppe (1.03) ---- */
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.group-card {
  display: flex; flex-direction: column; gap: .6rem; background: #fff;
  border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 1.4rem 1.3rem 1.25rem;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.group-card:hover { border-color: var(--c-green); transform: translateY(-3px); box-shadow: var(--shadow); }
.group-card h3 { font-size: 1.1rem; font-weight: 600; }
.group-card p { font-size: var(--fs-sm); line-height: 1.55; color: var(--c-ink-soft); margin: 0; }
.group-card__more { margin-top: auto; padding-top: .5rem; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); color: var(--c-green-deep); display: inline-flex; gap: .4rem; }
.group-card:hover .group-card__more .arr { transform: translateX(4px); }
.group-card__more .arr { transition: transform .2s var(--ease); }

/* ---- Stimmen: Website-/Projekt-Links unter dem Namen ---- */
.quote__links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .35rem; font-size: var(--fs-xs); }
.quote__links a { color: var(--c-green-deep); font-weight: 600; border-bottom: 1px solid currentColor; }

/* ---- Fester Kontakt-Reiter ---- */
.contact-dock { position: fixed; z-index: 900; right: 0; top: 50%; transform: translateY(-50%); display: flex; align-items: center; flex-direction: row-reverse; }
.contact-dock__toggle {
  display: inline-flex; align-items: center; gap: .55rem; cursor: pointer;
  writing-mode: vertical-rl; transform: rotate(180deg);
  background: var(--c-green-deep); color: #fff; border: 0; border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem .6rem; font: 600 .85rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase;
  box-shadow: var(--shadow); transition: background .2s var(--ease), padding .2s var(--ease);
}
.contact-dock__toggle svg { transform: rotate(90deg); }
.contact-dock__toggle:hover, .contact-dock.is-open .contact-dock__toggle { background: var(--c-anthracite); padding-right: .8rem; }
.contact-dock__toggle:focus-visible { outline: 2px solid var(--c-anthracite); outline-offset: 2px; }
.contact-dock__panel {
  width: min(300px, calc(100vw - 5rem)); margin-right: .6rem; background: #fff; color: var(--c-ink);
  border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.2rem 1.25rem 1rem;
}
.contact-dock__title { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--c-anthracite); margin: 0 0 .3rem; }
.contact-dock__text { font-size: var(--fs-sm); color: var(--c-ink-soft); line-height: 1.5; margin: 0 0 .8rem; }
.contact-dock__link { display: flex; align-items: center; gap: .6rem; padding: .6rem 0; border-top: 1px solid var(--c-line); font-weight: 600; color: var(--c-anthracite); font-size: .95rem; }
.contact-dock__link svg { color: var(--c-green-deep); flex: 0 0 18px; }
.contact-dock__link:hover { color: var(--c-green-deep); }
@media (max-width: 760px) {
  .contact-dock { top: auto; bottom: 1rem; right: 1rem; transform: none; flex-direction: column-reverse; align-items: flex-end; }
  .contact-dock__toggle { writing-mode: horizontal-tb; transform: none; border-radius: var(--radius-pill); padding: .8rem 1.15rem; box-shadow: var(--shadow-lg); }
  .contact-dock__toggle svg { transform: none; }
  .contact-dock__toggle:hover, .contact-dock.is-open .contact-dock__toggle { padding-right: 1.15rem; }
  .contact-dock__panel { margin: 0 0 .6rem; }
}
@media print { .contact-dock { display: none; } }

/* ---- Team: Gruppen Ingenieure / Konstrukteure (5.04) ---- */
.team-group__title { font-size: 1.25rem; font-weight: 600; margin: clamp(2rem, 4vw, 2.8rem) 0 1.1rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; }
.team-group__title span { font-size: var(--fs-sm); font-weight: 500; color: var(--c-ink-soft); }
.head + .team-group__title { margin-top: 0; }

/* ---- Lebenslauf-Modal: Pirmin-Jung-Gliederung (6.01–6.03) ---- */
.cv-modal__body { padding: 1.4rem 1.8rem 1.6rem; display: flex; flex-direction: column; gap: 1.15rem; }
.cv-block h4.label { font-family: var(--font-head); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--c-green-deep); font-weight: 600; margin: 0 0 .45rem; }
.cv-block p, .cv-block li { font-size: var(--fs-sm); color: var(--c-ink); line-height: 1.55; margin: 0; }
.cv-block ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
.cv-block a { color: var(--c-green-deep); border-bottom: 1px solid currentColor; }
.cv-block-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.2rem; }
.cv-stations { margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--c-line); }
.cv-stations > div { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--c-line); }
.cv-stations dt { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); color: var(--c-anthracite); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cv-stations dd { margin: 0; font-size: var(--fs-sm); color: var(--c-ink); line-height: 1.5; }
.cv-modal__foot { background: #fff; position: relative; z-index: 2; }
@media (max-width: 560px) {
  .cv-block-row { grid-template-columns: 1fr; }
  .cv-stations > div { grid-template-columns: 1fr; gap: .1rem; }
}

/* ---- Karriere / Stelle (7.02, 7.04, 7.07) ---- */
.page-hero .job-meta { color: rgba(255, 255, 255, .88); }
.page-hero .job-meta b { color: #fff; }
.page-hero .job-back { color: var(--c-green-soft); }
.job-apply-box__privacy { font-size: var(--fs-xs); margin-top: .9rem; opacity: .9; }
.job-apply-box__privacy a { text-decoration: underline; }
.contact-person { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 1rem 1.2rem; margin-top: 1rem; max-width: 520px; }
.contact-person__img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.contact-person > div { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.contact-person__label { font-family: var(--font-head); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--c-green-deep); font-weight: 600; }
.contact-person__name { font-family: var(--font-head); font-size: 1.1rem; color: var(--c-anthracite); }
.contact-person__role { font-size: var(--fs-sm); color: var(--c-ink-soft); }
.contact-person__links { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin-top: .3rem; font-size: var(--fs-sm); font-weight: 600; }
.contact-person__links a { color: var(--c-anthracite); border-bottom: 1px solid var(--c-green); overflow-wrap: anywhere; }

/* ---- Leistungen: Referenz-Links unter den Texten (2.04) ---- */
.service__refs { display: block; font-size: var(--fs-sm); color: var(--c-ink-soft); padding-top: .8rem; border-top: 1px solid var(--c-line); }
.service__refs a { color: var(--c-green-deep); font-weight: 600; border-bottom: 1px solid currentColor; }

/* =========================================================================
   Leistungspakete — zwei Wege (Paketentwurf v3, Abstimmung 27.11.2026)
   ========================================================================= */
.b-tw  { --blk: var(--c-anthracite); --blk-fg: #fff; }
.b-bs  { --blk: var(--c-green-deep); --blk-fg: #fff; }
.b-wmp { --blk: var(--c-green-soft); --blk-fg: var(--c-anthracite); }

/* Sprungleiste im Hero */
.pak-jump { position: relative; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.pak-jump a { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: var(--radius-pill); padding: .45rem .95rem; transition: background .2s var(--ease), color .2s var(--ease); }
.pak-jump a:hover { background: #fff; color: var(--c-anthracite); }

/* Weg 1 — Karten */
.weg1-karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.pak-karte--weg { gap: .4rem; }

/* Aufklapp-Details (kompakt + aufklappbar) */
.pak-details { margin-top: .6rem; }
.pak-details > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); color: var(--c-green-deep); padding: .25rem 0; }
.pak-details > summary::-webkit-details-marker { display: none; }
.pak-details > summary::after { content: "+"; display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; border: 1px solid currentColor; border-radius: 50%; font-size: .9rem; line-height: 1; transition: transform .2s var(--ease); }
.pak-details[open] > summary::after { content: "–"; }
.pak-details > summary:focus-visible { outline: 2px solid var(--c-green-deep); outline-offset: 3px; border-radius: 3px; }
.pak-details[open] > *:not(summary) { margin-top: .7rem; }
.pak-details--block { margin-top: clamp(1.5rem, 3vw, 2.2rem); background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: .9rem 1.3rem; }
.section--light .pak-details--block { background: #fff; }
.pak-details--block > summary { font-size: 1rem; color: var(--c-anthracite); width: 100%; justify-content: space-between; }

/* Weg 2 — Stufen */
.weg2-stufen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: none; }
.weg2-stufe { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 1.4rem 1.4rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; }
.weg2-stufe:hover { border-color: var(--c-green); }
.weg2-stufe__marke { display: flex; gap: 4px; margin-bottom: .4rem; }
.weg2-stufe__marke span { width: 26px; height: 5px; border-radius: 1px; background: var(--c-line); }
.weg2-stufe__marke span.on { background: var(--c-green); }
.weg2-stufe__nr { font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-green-deep); }
.weg2-stufe h3 { font-size: 1.2rem; line-height: 1.25; }
.weg2-stufe__unter { font-family: var(--font-head); font-weight: 600; color: var(--c-green-deep); font-size: var(--fs-sm); }
.weg2-stufe__nutzen { font-size: var(--fs-sm); color: var(--c-ink); line-height: 1.55; background: #f2f7ea; border-radius: var(--radius-md); padding: .75rem .9rem; margin-top: .4rem; }
.weg2-stufe .pak-details { margin-top: auto; padding-top: .5rem; }
.weg2-stufe__liste { margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.weg2-stufe__liste dt { font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-anthracite); }
.weg2-stufe__liste dd { margin: 0; font-size: var(--fs-sm); color: var(--c-ink-soft); line-height: 1.5; }
.pak-tabelle--stufen table { min-width: 520px; }
.pak-tabelle td.txt { font-size: var(--fs-sm); font-weight: 600; color: var(--c-anthracite); }

/* Zusatzpaket */
.pak-zusatz { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; align-items: center; background: var(--c-anthracite); color: #e7e4e1; border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem); }
.pak-zusatz .eyebrow { color: var(--c-green-soft); margin-bottom: .6rem; }
.pak-zusatz .eyebrow::before { background: var(--c-green-soft); }
.pak-zusatz h3 { color: #fff; font-size: 1.35rem; margin-bottom: .5rem; }
.pak-zusatz p { color: #d3d0cd; font-size: var(--fs-sm); line-height: 1.6; margin: 0; }
.pak-zusatz .pak-liste li { color: #e7e4e1; }
.pak-zusatz .pak-liste li::before { background: var(--c-green-soft); }

/* WMP: Kette mit Paket-Kurznamen, fünf Kacheln = fünf Regelpakete (3.03) */
.pak-kette li { flex-direction: column; gap: .2rem; flex: 1 1 150px; }
.pak-kette li small { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-green-soft); }
.pak-kette li.is-start small { color: #fff; opacity: .85; }
.pak-regel { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.pak-regel__karte { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 1.3rem 1.2rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; }
.pak-regel__karte:hover { border-color: var(--c-green); }
.pak-regel__karte .pak-stufe__marke { flex-direction: row; width: auto; gap: 3px; padding: 0 0 .4rem; }
.pak-regel__karte .pak-stufe__marke span, .pak-regel__karte .pak-stufe__marke span:nth-child(even) { width: 18px; }
.pak-regel__karte h3 { font-size: 1.1rem; }
.pak-regel__nutzen { font-size: var(--fs-sm); color: var(--c-ink); line-height: 1.5; }
.pak-regel__karte .pak-details { margin-top: auto; padding-top: .4rem; }
.pak-regel__karte .pak-details p { font-size: var(--fs-sm); color: var(--c-ink-soft); }
.head--sub { margin: clamp(2.5rem, 5vw, 3.5rem) 0 1.2rem; }
.head--sub h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: .4rem; }
.head--sub p { color: var(--c-ink-soft); }

/* Lesbarkeit (3.03): Listen, „Sinnvoll, wenn …", Hinweise größer und kontraststärker */
.pak-liste--klein li { font-size: var(--fs-sm); }
.pak-liste li { color: var(--c-ink); }
.pak-karte__einsatz { font-size: var(--fs-sm); color: var(--c-ink); line-height: 1.5; background: #f2f7ea; border-top: 0; border-radius: var(--radius-md); padding: .65rem .8rem; margin-top: .3rem; }
.pak-karte__einsatz b { color: var(--c-green-deep); }
.pak-hinweis { font-size: var(--fs-sm); color: var(--c-ink-soft); }
.pak-tabelle table { font-size: .95rem; }
.pak-tabelle thead th { font-size: .85rem; }
.pak-tabelle td.nein { color: #9a9a97; }

/* Mobil: Tabelle wischbar, erste Spalte bleibt stehen */
.pak-tabelle__hinweis { display: none; font-size: var(--fs-xs); color: var(--c-ink-soft); margin: 0 0 .4rem; }
.pak-tabelle--wmp tbody th, .pak-tabelle--wmp thead th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--c-line); }
.pak-tabelle--wmp thead th:first-child { background: var(--c-anthracite); }
.pak-tabelle--wmp tbody tr:nth-child(even) th { background: var(--c-paper); }

@media (max-width: 980px) {
  .weg1-karten, .weg2-stufen { grid-template-columns: 1fr; }
  .pak-zusatz { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pak-tabelle__hinweis { display: block; }
  .pak-tabelle--wmp table { min-width: 560px; }
  .pak-tabelle--wmp th, .pak-tabelle--wmp td { padding: .65rem .7rem; }
  .pak-tabelle--wmp tbody th { min-width: 9.5rem; max-width: 11rem; font-size: var(--fs-sm); }
}

/* ---- Referenzen: Kopfzeile mit Einleitung (4.03), Umschalter in der Karte (4.07) ---- */
.explorer__titel { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.explorer__intro { font-size: 13.5px; color: var(--c-ink-soft); margin: 0; line-height: 1.45; max-width: 70ch; }
.explorer__intro .explorer__count { margin-left: 6px; white-space: nowrap; }
/* Umschalter gehört zur Karte, nicht zum Viewport → nie mehr unter/hinter der Fußzeile */
.mapscreen .viewtoggle { position: absolute; }
/* Kontakt-Reiter auf Kartenseiten mobil über den Umschalter heben */
@media (max-width: 760px) {
  body.refpage-body .contact-dock, body.page-template-template-karte .contact-dock { bottom: 5.4rem; }
}

/* =========================================================================
   Profil-Popup Geschäftsführung (Feedback 12/2026) — nach Referenz pirminjung.de.
   Breit statt hoch: Seitenspalte (Foto + Kontakt mit QR) | Name + zwei Spalten
   (Qualifikation … Adresse | Wichtige Stationen). Ziel: auf 13–14"-Laptops
   (ca. 1440 × 800 px sichtbar) ohne Scrollen.
   ========================================================================= */
.pf-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: clamp(.75rem, 2.5vw, 1.75rem); background: rgba(28, 27, 25, .62); backdrop-filter: blur(4px); }
.pf-modal.open { display: flex; animation: pf-fade .22s var(--ease); }
.pf-modal__panel { position: relative; width: min(1240px, 100%); max-height: calc(100vh - 2rem); background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; display: flex; outline: none; animation: pf-rise .28s var(--ease); }
.pf-modal__scroll { overflow-y: auto; overscroll-behavior: contain; width: 100%; }
@keyframes pf-fade { from { opacity: 0; } }
@keyframes pf-rise { from { opacity: 0; transform: translateY(14px) scale(.985); } }

.pf-modal__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--c-line); background: rgba(255,255,255,.95); cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease); }
.pf-modal__close::before, .pf-modal__close::after { content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 2px; border-radius: 2px; background: var(--c-anthracite); transform: translate(-50%, -50%) rotate(45deg); }
.pf-modal__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.pf-modal__close:hover { background: var(--c-anthracite); border-color: var(--c-anthracite); }
.pf-modal__close:hover::before, .pf-modal__close:hover::after { background: #fff; }
.pf-modal__close:focus-visible { outline: 2px solid var(--c-green-deep); outline-offset: 2px; }

.pf-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: 100%; }

/* Seitenspalte */
.pf-side { background: var(--c-light); display: flex; flex-direction: column; }
.pf-side__foto { background: linear-gradient(180deg, #fff 0%, var(--c-light) 100%); display: flex; justify-content: center; }
.pf-side__foto img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center top; display: block; }
.pf-contact { padding: 1.3rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .9rem; margin-top: auto; }
.pf-contact__title { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.2; color: var(--c-anthracite); margin: 0; }
.pf-contact__row { display: flex; align-items: center; gap: 1rem; }
.pf-contact__qr { flex: 0 0 88px; width: 88px; height: 88px; background: #fff; border-radius: var(--radius-md); padding: 5px; border: 1px solid var(--c-line); }
.pf-contact__qr svg { width: 100%; height: 100%; display: block; }
.pf-contact__links { display: flex; flex-direction: column; gap: .15rem; font-size: .88rem; min-width: 0; }
.pf-contact__links a { color: var(--c-anthracite); font-weight: 600; overflow-wrap: anywhere; }
.pf-contact__links a:hover { color: var(--c-green-deep); }
.pf-contact__dl { margin-top: .3rem; color: var(--c-green-deep) !important; border-bottom: 1px solid currentColor; align-self: flex-start; }

/* Hauptbereich */
.pf-main { display: flex; flex-direction: column; min-width: 0; }
.pf-head { padding: 1.9rem 4.5rem 1.3rem 2.3rem; border-bottom: 1px solid var(--c-line); }
.pf-head__eyebrow { font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--c-green-deep); margin: 0 0 .45rem; }
.pf-head__name { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.05; letter-spacing: -.015em; color: var(--c-anthracite); margin: 0; }
.pf-head__role { font-family: var(--font-head); font-weight: 400; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--c-green-deep); margin: .35rem 0 0; }

.pf-body { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); flex: 1; }
.pf-facts { padding: 1.4rem 1.6rem 1.6rem 2.3rem; display: flex; flex-direction: column; gap: 1rem; border-right: 1px solid var(--c-line); }
.pf-stations { padding: 1.4rem 2.3rem 1.6rem 1.8rem; }
.pf-block h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--c-anthracite); margin: 0 0 .3rem; letter-spacing: 0; }
.pf-block p, .pf-block li { font-size: .9rem; line-height: 1.5; color: var(--c-ink-soft); margin: 0; }
.pf-block ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
.pf-stations__list { list-style: none; margin: .2rem 0 0; padding: 0; display: flex; flex-direction: column; }
.pf-stations__list li { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); gap: .9rem; padding: .42rem 0; border-bottom: 1px solid var(--c-line); font-size: .9rem; line-height: 1.45; color: var(--c-ink); }
.pf-stations__list li:first-child { border-top: 1px solid var(--c-line); }
.pf-year { font-family: var(--font-head); font-weight: 700; color: var(--c-green-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Niedrige Bildschirme (z. B. Windows-Laptops mit 125–150 % Skalierung): kompakter, damit es ohne Scrollen passt */
@media (min-width: 1081px) and (max-height: 760px) {
  .pf-grid { grid-template-columns: 240px minmax(0, 1fr); }
  .pf-modal__panel { max-height: calc(100vh - 1.2rem); }
  .pf-modal { padding-block: .6rem; }
  .pf-head { padding: 1.2rem 4.5rem .9rem 2rem; }
  .pf-head__name { font-size: 2rem; }
  .pf-head__role { font-size: 1.05rem; margin-top: .2rem; }
  .pf-facts { padding: 1rem 1.3rem 1.1rem 2rem; gap: .7rem; }
  .pf-stations { padding: 1rem 2rem 1.1rem 1.5rem; }
  .pf-block p, .pf-block li, .pf-stations__list li { font-size: .85rem; line-height: 1.4; }
  .pf-stations__list li { padding: .3rem 0; grid-template-columns: 5.2rem minmax(0, 1fr); }
  .pf-contact { padding: 1rem 1.2rem 1.2rem; gap: .6rem; }
  .pf-contact__title { font-size: 1rem; }
  .pf-contact__qr { flex-basis: 76px; width: 76px; height: 76px; }
}

/* Mittlere Breiten: Seitenspalte wird zur Kopfzeile (Foto | Kontakt) */
@media (max-width: 1080px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-side { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: end; }
  .pf-contact { margin-top: 0; padding-right: 4.5rem; }
}
@media (max-width: 760px) {
  .pf-body { grid-template-columns: 1fr; }
  .pf-facts { border-right: 0; border-bottom: 1px solid var(--c-line); }
}
@media (max-width: 600px) {
  .pf-modal { padding: 0; align-items: stretch; }
  .pf-modal__panel { max-height: none; height: 100%; border-radius: 0; }
  .pf-side__foto img { max-width: 240px; }
  .pf-contact { padding: 1.2rem 1.25rem; }
  .pf-head { padding: 1.3rem 1.25rem 1.1rem; }
  .pf-facts { padding: 1.3rem 1.25rem; }
  .pf-stations { padding: 1.3rem 1.25rem 2rem; }
  .pf-stations__list li { grid-template-columns: 1fr; gap: .1rem; }
  /* Reihenfolge mobil: Foto → Name + Inhalte → Kontakt */
  .pf-grid { display: flex; flex-direction: column; }
  .pf-side { display: contents; }
  .pf-side__foto { order: 1; background: var(--c-light); }
  .pf-main { order: 2; }
  .pf-contact { order: 3; background: var(--c-light); padding-bottom: 2rem; }
}
@media (prefers-reduced-motion: reduce) { .pf-modal.open, .pf-modal__panel { animation: none; } }

/* GF-Karten: ganzes Foto öffnet das Profil */
.member__img--cv { cursor: pointer; border: 0; padding: 0; background: none; width: 100%; display: block; }
.member__img--cv:focus-visible { outline: 2px solid var(--c-green-deep); outline-offset: 3px; }

/* =========================================================================
   Leistungspakete — steuerbare Abläufe Weg 1 / Weg 2 (Feedback 12/2026)
   Untereinander, Autoplay im Sichtbereich in Schleife, Pause/Abspielen,
   Schritte anklickbar. Logik: app.js [data-player].
   ========================================================================= */
.wp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: clamp(1.2rem, 2.5vw, 1.8rem); }
.wp--2 { border-color: var(--c-green); box-shadow: 0 0 0 1px var(--c-green) inset; }
.wp__text { padding: clamp(1.4rem, 3vw, 2.2rem); display: flex; flex-direction: column; gap: .9rem; border-right: 1px solid var(--c-line); }
.wp__nr { font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-green-deep); }
.wp__titel { font-size: clamp(1.25rem, 2.1vw, 1.55rem); line-height: 1.2; margin: -.4rem 0 .2rem; }
.wp .link-more { align-self: flex-start; margin-top: auto; }

.wp__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.wp__step { width: 100%; display: flex; align-items: center; gap: .75rem; text-align: left; background: transparent; border: 1px solid transparent; border-radius: var(--radius-md); padding: .55rem .7rem; font: 500 .95rem/1.35 var(--font-body); color: var(--c-ink-soft); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.wp__step:hover { background: var(--c-light); color: var(--c-anthracite); }
.wp__step:focus-visible { outline: 2px solid var(--c-green-deep); outline-offset: 2px; }
.wp__dot { flex: 0 0 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font: 700 .8rem/1 var(--font-head); color: var(--c-ink-soft); border: 1.5px solid var(--c-line); background: #fff; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.wp__step.is-done .wp__dot { background: #eaf3dc; border-color: #cfe3b4; color: var(--c-green-deep); }
.wp__step.is-current { background: #f2f7ea; border-color: #d6e8bf; color: var(--c-anthracite); font-weight: 600; }
.wp__step.is-current .wp__dot { background: var(--c-green-deep); border-color: var(--c-green-deep); color: #fff; }

.wp__controls { display: flex; align-items: center; gap: .9rem; }
.wp__play { display: inline-flex; align-items: center; gap: .55rem; min-height: 40px; padding: .5rem 1rem .5rem .8rem; border-radius: var(--radius-pill); border: 1px solid var(--c-line); background: #fff; font: 600 .88rem/1 var(--font-head); color: var(--c-anthracite); cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease); }
.wp__play:hover { border-color: var(--c-anthracite); }
.wp__play:focus-visible { outline: 2px solid var(--c-green-deep); outline-offset: 2px; }
.wp__play-icon { width: 12px; height: 12px; position: relative; }
.wp__play-icon::before, .wp__play-icon::after { content: ""; position: absolute; top: 0; width: 4px; height: 12px; border-radius: 1px; background: var(--c-green-deep); }
.wp__play-icon::before { left: 1px; } .wp__play-icon::after { right: 1px; }
.wp__play.is-paused .wp__play-icon::before { left: 2px; width: 0; height: 0; border-radius: 0; background: none; border-left: 10px solid var(--c-green-deep); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.wp__play.is-paused .wp__play-icon::after { display: none; }
.wp__bar { flex: 1; height: 4px; border-radius: 2px; background: var(--c-line); overflow: hidden; }
.wp__bar i { display: block; height: 100%; width: 0; background: var(--c-green-deep); transition: width .5s var(--ease); }

/* Bühne */
.wp__stage { position: relative; background: linear-gradient(180deg, #fbfbf9 0%, var(--c-light) 100%); padding: clamp(1.4rem, 3vw, 2.2rem); display: flex; flex-direction: column; justify-content: center; gap: 1rem; min-height: 360px; }
.wp__caption { margin: 0; min-height: 3em; font-size: var(--fs-sm); line-height: 1.5; color: var(--c-ink); background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-md); padding: .7rem .9rem; }
.wp__caption:empty { visibility: hidden; }

/* gemeinsame Bausteine */
.b-tw  { --blk: var(--c-anthracite); --blk-fg: #fff; }
.b-bs  { --blk: var(--c-green-deep); --blk-fg: #fff; }
.b-wmp { --blk: var(--c-green-soft); --blk-fg: var(--c-anthracite); }
.wp-node { font: 700 .78rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--c-anthracite); background: #fff; border: 1.5px solid var(--c-anthracite); border-radius: var(--radius-pill); padding: .55rem .9rem; white-space: nowrap; align-self: center; }
.wp-box { background: var(--blk); color: var(--blk-fg); border-radius: var(--radius-md); padding: .8rem 1rem; font: 600 .98rem/1.25 var(--font-head); display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.wp-box small { font-weight: 500; font-size: .75rem; opacity: .85; }
.wp-fazit { font-size: var(--fs-sm); color: var(--c-ink); background: #fff; border-radius: var(--radius-pill); padding: .5rem 1rem; align-self: flex-start; border: 1px solid var(--c-line); }
.wp-fazit b { color: var(--c-green-deep); font-size: 1.05em; }

/* Ein-/Ausblenden der Schritte — vor dem Start als blasse Vorschau sichtbar */
.wp.is-ready [data-s] { opacity: .14; transform: translateY(6px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.wp.is-ready [data-s].is-on { opacity: 1; transform: none; }

/* Weg 1: Auftraggeber verteilt drei getrennte Aufträge */
.wp1 { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: .9rem 0; align-items: center; }
.wp1 .wp-fazit { grid-column: 1 / -1; }
.wp1__rows { display: flex; flex-direction: column; }
.wp1__row { display: flex; align-items: center; }
.wp1__line { flex: 0 0 34px; height: 2px; background: var(--c-anthracite); position: relative; }
.wp1__line::after { content: ""; position: absolute; right: -1px; top: -4px; border-left: 7px solid var(--c-anthracite); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.wp1__naht { height: 34px; margin-left: 34px; display: flex; align-items: center; justify-content: center; position: relative; }
.wp1__naht::before { content: ""; position: absolute; left: 50%; top: 3px; bottom: 3px; border-left: 2px dashed #c25b3b; }
.wp1__naht span { position: relative; background: #fff; border: 1px solid #e2b8a9; color: #9a3d22; border-radius: var(--radius-pill); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .6rem; }
.wp1__naht.is-current span { animation: wp-pulse 1.1s var(--ease) 2; }
@keyframes wp-pulse { 50% { box-shadow: 0 0 0 7px rgba(194, 91, 59, .18); } }

/* Weg 2: eine Klammer, drei wachsende Stufen, Übergabe */
.wp2 { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem 0; align-items: center; }
.wp2 .wp-fazit { grid-column: 1 / -1; }
.wp2__main { display: flex; flex-direction: column; gap: .6rem; padding-left: 34px; position: relative; }
.wp2__main::before { content: ""; position: absolute; left: 0; top: 50%; width: 34px; height: 2px; background: var(--c-green-deep); }
.wp2__klammer { border: 1.5px solid var(--c-green-deep); border-bottom: 0; border-radius: var(--radius-md) var(--radius-md) 0 0; height: 18px; position: relative; margin: 0 4.5rem 0 0; }
.wp2__klammer span { position: absolute; left: 50%; top: -.7rem; transform: translateX(-50%); background: #fbfbf9; padding: 0 .5rem; font: 700 .72rem/1.3 var(--font-head); letter-spacing: .04em; color: var(--c-green-deep); white-space: nowrap; }
.wp2__stufen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 4.5rem; gap: .6rem; align-items: end; min-height: 250px; }
.wp2__stufe { display: flex; flex-direction: column; gap: .45rem; }
.wp2__stack { display: flex; flex-direction: column-reverse; gap: 3px; transform-origin: bottom; }
.wp2__stack span { display: flex; align-items: center; justify-content: center; text-align: center; height: calc(var(--h) * 2.3rem); background: var(--blk); color: var(--blk-fg); border-radius: 4px; font: 600 .72rem/1.1 var(--font-head); padding: 0 .25rem; overflow: hidden; }
.wp.is-ready .wp2__stufe[data-s] { transform: none; }
.wp.is-ready .wp2__stufe .wp2__stack { transform: scaleY(.12); transition: transform .6s var(--ease); }
.wp.is-ready .wp2__stufe.is-on .wp2__stack { transform: scaleY(1); }
.wp2__label { display: flex; flex-direction: column; text-align: center; border-top: 2px solid var(--c-anthracite); padding-top: .35rem; }
.wp2__label span { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-green-deep); }
.wp2__label b { font: 600 .9rem/1.2 var(--font-head); color: var(--c-anthracite); }
.wp2__weiter { align-self: center; display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; font-size: .72rem; font-weight: 600; line-height: 1.25; color: var(--c-ink-soft); }
.wp2__weiter .arr { font-size: 1.6rem; color: var(--c-green-deep); line-height: 1; }

.wege-legende { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: var(--fs-sm); color: var(--c-ink-soft); }
.wege-legende li { display: inline-flex; align-items: center; gap: .5rem; }
.wege-legende span { width: 14px; height: 14px; border-radius: 3px; background: var(--blk); display: inline-block; }
.wege-legende__hinweis { color: var(--c-ink-soft); font-style: italic; }

@media (max-width: 980px) {
  .wp { grid-template-columns: 1fr; }
  .wp__text { border-right: 0; border-bottom: 1px solid var(--c-line); }
  .wp .link-more { margin-top: .2rem; }
}
@media (max-width: 600px) {
  .wp__stage { padding: 1.1rem; min-height: 0; }
  .wp1, .wp2 { grid-template-columns: 1fr; }
  .wp-node { justify-self: start; }
  .wp2__main { padding-left: 0; }
  .wp2__main::before { display: none; }
  .wp2__klammer { margin-right: 0; }
  .wp2__klammer span { white-space: normal; text-align: center; width: 88%; }
  .wp2__stufen { grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 0; }
  .wp2__weiter { grid-column: 1 / -1; flex-direction: row; justify-content: center; }
  .wp2__stack span { font-size: .62rem; height: calc(var(--h) * 1.9rem); }
  .wp1__line { flex-basis: 18px; }
  .wp1__naht { margin-left: 18px; }
  .wp-box { padding: .65rem .8rem; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .wp.is-ready [data-s], .wp.is-ready .wp2__stufe .wp2__stack, .wp__bar i { transition: none; }
  .wp1__naht.is-current span { animation: none; }
}
/* Weg 1: Verteilerlinie Auftraggeber → alle drei Aufträge */
.wp1__rows { position: relative; margin-left: 24px; }
.wp1__rows::before { content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; border-left: 2px solid var(--c-anthracite); }
.wp1__rows::after { content: ""; position: absolute; left: -24px; top: 50%; width: 24px; border-top: 2px solid var(--c-anthracite); }
.wp1__line { flex-basis: 26px; }
.wp1__naht { margin-left: 26px; }
@media (max-width: 600px) {
  .wp1__rows { margin-left: 14px; }
  .wp1__rows::after { display: none; }
  .wp1__line { flex-basis: 16px; }
  .wp1__naht { margin-left: 16px; }
}

/* ---- Startseite: Zielgruppen mit Symbolen, Leistungspakete-Teaser (Feedback 12/2026) ---- */
.group-card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #eef5e6; color: var(--c-green-deep); margin-bottom: .2rem; transition: background .2s var(--ease), color .2s var(--ease); }
.group-card__icon svg { width: 24px; height: 24px; }
.group-card:hover .group-card__icon { background: var(--c-green-deep); color: #fff; }
.group-card h3 { font-size: 1.08rem; line-height: 1.25; }

.section--tint { background: #f2f7ea; }
.wege-teaser { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.wege-teaser__karte { display: flex; flex-direction: column; gap: 1rem; background: #fff; border: 1px solid #dbe9c8; border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.wege-teaser__karte:hover { transform: translateY(-3px); border-color: var(--c-green); box-shadow: var(--shadow); }
.wege-teaser__karte p { margin: 0; font-size: var(--fs-sm); color: var(--c-ink); line-height: 1.55; }
.wege-teaser__karte--2 { border-color: var(--c-green); }
.wt1 { display: flex; align-items: center; gap: .35rem; min-height: 96px; }
.wt1 span { flex: 1; height: 44px; border-radius: 6px; background: var(--blk); color: var(--blk-fg); display: grid; place-items: center; font: 600 .78rem/1 var(--font-head); }
.wt1 i { font-style: normal; font-size: .58rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #9a3d22; writing-mode: vertical-rl; transform: rotate(180deg); border-left: 2px dashed #c25b3b; padding-left: .2rem; }
.wt2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; align-items: end; min-height: 96px; }
.wt2__stack { display: flex; flex-direction: column; gap: 2px; }
.wt2__stack span { height: calc(var(--h) * 11px); background: var(--blk); border-radius: 3px; }
.wt2__stack small { margin-top: .3rem; text-align: center; font: 700 .68rem/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--c-green-deep); }
@media (max-width: 760px) { .wege-teaser { grid-template-columns: 1fr; } }
/* Kontaktblock Seitenspalte: Mail/Telefon volle Breite, darunter QR + Speichern (kein Umbruch der Mailadresse) */
.pf-contact__links { font-size: .92rem; }
.pf-contact__links a { overflow-wrap: normal; white-space: nowrap; }
.pf-contact__save { display: flex; flex-direction: column; gap: .3rem; min-width: 0; font-size: .85rem; }
.pf-contact__save .pf-contact__dl { margin-top: 0; font-weight: 600; }
.pf-contact__hint { font-size: .78rem; line-height: 1.35; color: var(--c-ink-soft); }
