/* js/seiten/bechtle.css — Vorlage „bechtle“ (Co-Branding im Bechtle-CI, Vorbild bechtle.com).
   Gleiche Baustein-Struktur wie „evex“/„kampagne“, eigenes Kleid: weiße Kopfzeile mit Logos, Hero in
   Experience Green mit Future-Green-Akzenten, eckige Formen, Conversion Green für Buttons, Hellgrau-Wechsel.
   Alles unter .b-seite; Hauptfarbe kommt aus --b-akzent (Marke.farbe, Standard Experience Green #075033). */
.b-seite {
  --exp: var(--b-akzent); --exp-tief: color-mix(in srgb, var(--b-akzent) 78%, #000);
  --conv: #187E4B; --conv-hover: #13643C; --future: #2FFB95; --future-muted: #C1FED5; --logo-gruen: #23A96A; --blau: #244CA7;
  --ink: #000; --text: #2B2B2B; --muted: #5A5A5A; --grau: #F3F3F3; --grau-2: #E1E1E1; --weiss: #fff;
  --on-dark: #fff; --on-dark-2: #D9E7E0; --on-dark-3: #A9C4B7; --line: #E1E1E1;
  --r: 4px;
  --head: 'Inter', Aptos, 'Segoe UI', Arial, system-ui, sans-serif; --body: 'Inter', Aptos, 'Segoe UI', Arial, system-ui, sans-serif; --gutter: 20px;
  font-family: var(--body); color: var(--text); background: var(--weiss); line-height: 1.55; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
.b-seite *, .b-seite *::before, .b-seite *::after { box-sizing: border-box; }
.b-seite img, .b-seite svg { display: block; max-width: 100%; }
.b-seite a { color: inherit; text-decoration: none; }
.b-seite h1, .b-seite h2, .b-seite h3 { font-family: var(--head); font-weight: 700; line-height: 1.12; text-wrap: balance; letter-spacing: -.015em; margin: 0; color: var(--ink); }
.b-seite p { margin: 0; }
.b-seite .s-wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.b-seite mark { background: none; color: var(--exp); box-shadow: inset 0 -.32em 0 var(--future-muted); }
.b-seite .s-hero mark, .b-seite .s-cta mark { color: var(--future); box-shadow: none; }
.b-seite :focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; }
.b-seite .s-dz { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--exp); margin: 0; }
.b-seite .s-dz::before { content: ''; width: 24px; height: 3px; background: var(--logo-gruen); }
.b-seite .s-markiert { outline: 3px solid #0075FF; outline-offset: -3px; }

/* Kopf: weiß wie bechtle.com, Logos auf hellem Grund */
.b-kopf { position: sticky; top: 0; z-index: 50; background: var(--weiss); border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.b-kopf-in { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.b-cobrand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.b-seite .b-partner { height: 26px; width: auto; flex-shrink: 0; }
.b-partner-t { color: var(--exp); font-weight: 800; font-size: 1.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-seite .b-ehs { height: 32px; width: auto; flex-shrink: 0; }
.b-x { width: 1px; height: 28px; background: var(--grau-2); color: transparent; overflow: hidden; }
.b-kopf-cta { flex-shrink: 0; background: var(--conv); color: #fff !important; font-weight: 700; font-size: .9rem; padding: 10px 16px; border-radius: var(--r); transition: background .15s; }
.b-kopf-cta:hover { background: var(--conv-hover); }
@media (max-width: 420px) { .b-cobrand { gap: 9px; } .b-seite .b-partner { height: 19px; } .b-seite .b-ehs { height: 24px; } .b-kopf-cta { padding: 8px 11px; font-size: .82rem; } }

/* Abschnitte: Weiß und Hellgrau im Wechsel */
.b-seite .s-sec { padding: 72px 0; scroll-margin-top: 68px; background: var(--weiss); }
.b-seite .s-sec:nth-of-type(even) { background: var(--grau); }
.b-sec-head { max-width: 680px; margin-bottom: 36px; }
.b-seite .b-sec-head h2 { font-size: clamp(1.85rem, 6vw, 2.75rem); margin: 14px 0 12px; }
.b-seite .s-mitte .b-sec-head { margin-left: auto; margin-right: auto; text-align: center; }
.b-seite .s-mitte > .s-wrap > .s-dz, .b-seite .s-mitte .b-sec-head .s-dz { display: flex; justify-content: center; }
.b-sec-text { color: var(--muted); font-size: 1.06rem; }

/* Hero: Experience Green, Future-Green-Linien wie in der Bechtle-Bildsprache */
.b-seite .s-hero { background: var(--exp) !important; color: var(--on-dark); position: relative; overflow: hidden; padding: 48px 0 52px; }
.b-seite .s-hero::before { content: ''; position: absolute; right: -120px; top: -80px; width: 520px; height: 520px; border: 2px solid color-mix(in srgb, var(--future) 55%, transparent); transform: rotate(45deg); pointer-events: none; }
.b-seite .s-hero::after { content: ''; position: absolute; right: 40px; bottom: -160px; width: 360px; height: 360px; background: linear-gradient(135deg, color-mix(in srgb, var(--future) 30%, transparent), transparent 60%); transform: rotate(45deg); pointer-events: none; }
.b-hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; position: relative; z-index: 1; }
.b-hero-in > div { min-width: 0; }
.b-hero-in.b-hero-voll { grid-template-columns: 1fr !important; max-width: 780px; }
.b-seite .s-hero .s-dz { color: var(--future); }
.b-seite .s-hero .s-dz::before { background: var(--future); }
.b-seite .s-hero h1 { font-size: clamp(1.75rem, 7.4vw, 3.9rem); hyphens: auto; margin: 18px 0 18px; color: var(--on-dark); font-weight: 800; }
.b-lead { color: var(--on-dark-2); font-size: 1.12rem; max-width: 36em; }
.b-auswahl-t { margin: 30px 0 12px !important; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-3); }
.b-kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 480px; }
.b-kachel { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border-radius: var(--r); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.2); transition: border-color .15s, background .15s; }
.b-kachel:hover { border-color: var(--future); background: rgba(255,255,255,.12); }
.b-ic { width: 40px; height: 40px; border-radius: var(--r); display: grid; place-items: center; background: var(--future); color: var(--exp-tief); }
.b-ic svg { width: 22px; height: 22px; }
.b-kachel b { font-size: 1.02rem; line-height: 1.2; color: var(--on-dark); overflow-wrap: anywhere; hyphens: auto; }
.b-kachel > span:last-child:not(.b-ic) { font-size: .82rem; color: var(--on-dark-3); }
.b-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 24px 0 0; padding: 0; font-size: .9rem; color: var(--on-dark-2); }
.b-trust li { list-style: none; display: flex; align-items: center; gap: 7px; }
.b-trust svg { width: 16px; height: 16px; color: var(--future); flex-shrink: 0; }
.b-seite .s-hero .s-btn { margin-top: 26px; background: var(--future); color: var(--exp-tief); }
.b-seite .s-hero .s-btn:hover { background: #fff; }
.b-seite .b-hero-img { width: 100%; max-width: 540px; margin: 0 auto; }

/* Themenkarten: eckige Kacheln mit farbiger Oberkante */
.b-seite .s-karten { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 80%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 4px var(--gutter) 18px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; }
.b-seite .s-karten::-webkit-scrollbar { display: none; }
.b-seite .s-karte { scroll-snap-align: start; border-radius: var(--r); padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; background: var(--weiss); color: var(--text); border: 1px solid var(--line); border-top: 6px solid var(--exp); }
.b-seite .s-karte:nth-child(4n+2) { border-top-color: var(--logo-gruen); }
.b-seite .s-karte:nth-child(4n+3) { border-top-color: var(--future); }
.b-seite .s-karte:nth-child(4n) { border-top-color: var(--blau); }
.b-seite .s-karte:first-child { background: var(--exp); color: var(--on-dark); border-color: var(--exp); border-top-color: var(--future); }
.b-seite .s-karte:first-child h3 { color: var(--on-dark); }
.b-seite .s-karte:first-child p { color: var(--on-dark-2); }
.b-seite .s-etikett { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 2px; background: var(--grau); color: var(--exp); }
.b-seite .s-karte:first-child .s-etikett { background: var(--future); color: var(--exp-tief); }
.b-seite .s-stichwort { font-family: var(--head); font-weight: 800; font-size: clamp(1.9rem, 9vw, 2.5rem); line-height: 1; color: var(--exp); letter-spacing: -.02em; }
.b-seite .s-karte:first-child .s-stichwort { color: var(--future); }
.b-seite .s-karte h3 { font-weight: 700; font-size: 1.12rem; line-height: 1.25; }
.b-seite .s-karte p { font-size: .96rem; color: var(--muted); }

/* Ablauf */
.b-seite ol.s-ablauf { display: grid; gap: 12px; counter-reset: b-s; grid-template-columns: none; list-style: none; padding: 0; margin: 0; }
.b-seite ol.s-ablauf li { display: block; background: var(--weiss); border-radius: var(--r); padding: 22px 22px 22px 80px; position: relative; border: 1px solid var(--line); }
.b-seite ol.s-ablauf li::before { counter-increment: b-s; content: counter(b-s); position: absolute; left: 20px; top: 20px; width: 42px; height: 42px; border-radius: var(--r); background: var(--exp); color: #fff; font-weight: 800; font-size: 1.2rem; display: grid; place-items: center; }
.b-seite ol.s-ablauf li:nth-child(3n+2)::before { background: var(--conv); }
.b-seite ol.s-ablauf li:nth-child(3n)::before { background: var(--future); color: var(--exp-tief); }
.b-seite ol.s-ablauf b { display: block; font-size: 1.05rem; color: var(--ink); margin-bottom: 2px; font-weight: 700; }
.b-seite ol.s-ablauf span { color: var(--muted); font-size: .96rem; }

/* Finder */
.b-finder-karte { background: var(--weiss); border-radius: var(--r); box-shadow: 0 20px 50px -24px rgba(7,80,51,.35); overflow: hidden; border: 1px solid var(--line); margin: 0 calc(var(--gutter) * -1 + 8px); }
.b-finder-leiste { background: var(--exp); color: var(--on-dark); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.b-finder-leiste b { font-size: .95rem; display: flex; align-items: center; gap: 9px; }
.b-live { width: 8px; height: 8px; border-radius: 50%; background: var(--future); box-shadow: 0 0 0 4px rgba(47,251,149,.25); }
.b-finder-leiste small { color: var(--on-dark-3); font-size: .78rem; white-space: nowrap; }
@media (max-width: 420px) { .b-finder-leiste small { display: none; } }
.b-seite iframe.b-finder { display: block; width: 100%; min-height: 520px; height: 900px; border: 0; background: var(--grau); transition: height .2s; }
.b-finder-leer { height: 160px; display: grid; place-items: center; padding: 0 24px; text-align: center; color: var(--muted); background: var(--grau); }
.b-finder-note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 16px !important; }
.b-finder-note a { text-decoration: underline; text-underline-offset: 3px; }

/* Duo */
.b-duo { display: grid; gap: 12px; }
.b-duo-karte { border-radius: var(--r); padding: 28px 26px; }
.b-seite .b-duo-karte h3 { font-size: 1.4rem; margin: 12px 0 8px; }
.b-duo-karte p { font-size: .98rem; }
.b-seite .b-duo-p { background: var(--exp); color: var(--on-dark); }
.b-seite .b-duo-p .s-dz { color: var(--future); }
.b-seite .b-duo-p .s-dz::before { background: var(--future); }
.b-seite .b-duo-p h3 { color: var(--on-dark); }
.b-duo-p p { color: var(--on-dark-2); }
.b-seite .b-duo-e { background: var(--weiss); border: 1px solid var(--line); }
.b-duo-e p { color: var(--muted); }
.b-duo-plus { justify-self: center; width: 46px; height: 46px; border-radius: var(--r); background: var(--future); color: var(--exp-tief); display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; margin: -28px 0; position: relative; z-index: 1; line-height: 1; }

/* FAQ */
.b-seite .s-faq-l { display: grid; gap: 10px; max-width: 800px; }
.b-seite .s-mitte .s-faq-l { margin: 0 auto; }
.b-seite .s-faq-l details { padding: 0; margin: 0; background: var(--weiss); border-radius: var(--r); border: 1px solid var(--line); }
.b-seite .s-faq-l summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 700; color: var(--ink); position: relative; }
.b-seite .s-faq-l summary::-webkit-details-marker { display: none; }
.b-seite .s-faq-l summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: var(--r); background: var(--exp); color: #fff; display: grid; place-items: center; font-size: 1.15rem; }
.b-seite .s-faq-l details[open] summary::after { content: '–'; }
.b-seite .s-faq-l details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* Abschluss */
.b-seite .s-cta { background: var(--exp) !important; color: var(--on-dark); text-align: center; padding: 84px 0 76px; position: relative; overflow: hidden; }
.b-seite .s-cta::before { content: ''; position: absolute; left: -140px; bottom: -200px; width: 420px; height: 420px; border: 2px solid color-mix(in srgb, var(--future) 45%, transparent); transform: rotate(45deg); pointer-events: none; }
.b-seite .s-cta .s-wrap { position: relative; z-index: 1; }
.b-seite .s-cta .s-dz { color: var(--future); justify-content: center; }
.b-seite .s-cta .s-dz::before { background: var(--future); }
.b-seite .s-cta h2 { font-size: clamp(1.9rem, 6.5vw, 2.9rem); margin: 14px auto; max-width: 17em; color: var(--on-dark); }
.b-seite .s-cta p { color: var(--on-dark-2); max-width: 32em; margin: 0 auto 28px; }
.b-seite .s-cta .s-btn { background: var(--future); color: var(--exp-tief); }
.b-seite .s-cta .s-btn:hover { background: #fff; }
.b-seite .s-btn { display: inline-flex; align-items: center; justify-content: center; margin-top: 12px; border: 0; background: var(--conv); color: #fff; font-weight: 700; font-size: 1.05rem; padding: 16px 28px; border-radius: var(--r); transition: background .15s; }
.b-seite .s-btn:hover { background: var(--conv-hover); }

/* Fuß */
.b-fuss { background: var(--exp-tief); color: var(--on-dark-3); font-size: .85rem; padding: 24px 0 calc(96px + env(safe-area-inset-bottom)); }
.b-fuss-in { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; align-items: center; }
.b-fuss nav { display: flex; gap: 18px; }
.b-fuss a:hover { color: var(--on-dark); }

/* Start-Button (mobil, wird per Skript mit .show eingeblendet) */
.b-dock { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 12px; background: var(--exp-tief); border-radius: var(--r); padding: 8px 8px 8px 18px; color: var(--on-dark); box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); transform: translateY(150%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.b-dock.show { transform: none; }
.b-dock span { font-size: .9rem; font-weight: 600; flex: 1; line-height: 1.2; }
.b-dock small { display: block; color: var(--on-dark-3); font-weight: 500; font-size: .76rem; }
.b-dock a { background: var(--future); color: var(--exp-tief); font-weight: 700; padding: 12px 18px; border-radius: var(--r); font-size: .92rem; white-space: nowrap; }

@media (min-width: 560px) { .b-seite .b-partner { height: 30px; } .b-seite .b-ehs { height: 36px; } }
@media (min-width: 720px) {
  .b-seite { --gutter: 32px; }
  .b-seite .s-karten { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); overflow: visible; margin: 0; padding: 0; }
  .b-seite ol.s-ablauf { grid-template-columns: repeat(3, 1fr); }
  .b-seite .s-untereinander ol.s-ablauf { grid-template-columns: 1fr; max-width: 800px; }
  .b-seite .s-mitte.s-untereinander ol.s-ablauf { margin-left: auto; margin-right: auto; }
  .b-duo { grid-template-columns: 1fr auto 1fr; align-items: stretch; }
  .b-duo-plus { align-self: center; margin: 0 -28px; }
  .b-finder-karte { margin: 0; }
  .b-dock { display: none; }
  .b-fuss { padding-bottom: 28px; }
}
@media (min-width: 1000px) {
  .b-seite .s-hero { padding: 84px 0; }
  .b-hero-in { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; }
  .b-seite .s-karten { grid-template-columns: repeat(4, 1fr); }
  .b-seite .s-sec { padding: 96px 0; }
}
