/* =====================================================================
   TM24 Hybrid B2B – Darstellungsschicht fuer /b2b/ (body.page-b2b)
   Zuletzt geladen in b2b/index.php. Inhalte, Formularfelder, IDs der
   Uebersetzung (b2b-i18n.js), Registrierung und Rechtstexte unveraendert.
   Keine neuen Mindestmengen, Konditionen, Fristen oder Rabatte.
   ===================================================================== */

@font-face {
    font-family: "Archivo";
    src: url("../fonts/archivo-latin-var.woff2") format("woff2");
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
}

:root {
    --hy-navy: #06122E;
    --hy-deep: #0A1F4D;
    --hy-electric: #0039E8;
    --hy-blue: #003B8F;
    --hy-ice: #EAF3FF;
    --hy-ink: #0B1533;
    --hy-muted: #4E5A78;
    --hy-line: #DCE5F5;
    --hy-line-strong: #C3D2EC;
    --hy-stop: #B4231B;
    --hy-r: 16px;
    --hy-r-s: 12px;
    --hy-ring: 0 0 0 3px rgba(0, 57, 232, .18);
    --hy-display: "Archivo", "Figtree", system-ui, sans-serif;
    --tm-bg: #FFFFFF !important;
}

html body.page-b2b { background: #fff; color: var(--hy-ink); -webkit-font-smoothing: antialiased; }
html body.page-b2b ::selection { background: var(--hy-electric); color: #fff; }
html body.page-b2b :focus-visible { outline: 3px solid var(--hy-electric); outline-offset: 2px; }
html body.page-b2b :is(h1, h2) { font-family: var(--hy-display); letter-spacing: -.02em; text-wrap: balance; }

/* ---------- Kopf: gemeinsamer Vertrag mit Verkaufen und Shop (Logo | Insel | Aktionen) ----------
   Gleiche Geometrie wie live /verkaufen/: Desktop Raster 1120 px, Rand 24 px, Zeile 72 px, Insel 44 px
   bei y 14; Handy Zeile 58 px, Logo 26 px, Insel 40 px bei y 9. B2B-Aktionen: Sprache und Anmelden.
   Die Hinweisleiste steht unter dem Kopf (b2b/index.php). :is(#tm24-home-header, header) traegt wie in
   css/tm24-header-tokens.css ID-Gewicht, damit dessen !important-Regeln unveraendert zuruecktreten. */
html body.page-b2b :is(#tm24-home-header, header).b2b-header { background: #fff !important; border-bottom: 1px solid #E1E8F5 !important; padding: 0 !important; }
html body.page-b2b :is(#tm24-home-header, header).b2b-header > .tm24-header-grid {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    grid-template-rows: none !important;
    grid-template-areas: "left center right" !important;
    align-items: center !important;
    column-gap: 24px !important;
    row-gap: 0 !important;
    max-width: 1120px !important;
    height: auto !important;
    min-height: 72px !important;
    padding: 0 24px !important;
    position: relative !important;
}
html body.page-b2b :is(#tm24-home-header, header).b2b-header > .tm24-header-grid > .tm24-header-left { grid-area: left !important; display: flex !important; flex-wrap: nowrap !important; align-items: center !important; gap: 16px !important; }
html body.page-b2b :is(#tm24-home-header, header).b2b-header > .tm24-header-grid > .tm24-header-left::after { content: none !important; display: none !important; }
html body.page-b2b :is(#tm24-home-header, header).b2b-header > .tm24-header-grid > .tm24-header-center { grid-area: center !important; min-height: 0 !important; }
html body.page-b2b :is(#tm24-home-header, header).b2b-header > .tm24-header-grid > .tm24-header-right { grid-area: right !important; position: static !important; display: flex !important; align-items: center !important; justify-self: end !important; gap: 12px !important; margin: 0 !important; }
html body.page-b2b :is(#tm24-home-header, header).b2b-header > .tm24-header-grid > .tm24-header-left > a.b2b-logo { order: 0 !important; flex: 0 0 auto !important; margin: 0 !important; line-height: 0; }
html body.page-b2b :is(#tm24-home-header, header).b2b-header > .tm24-header-grid > .tm24-header-left > a.b2b-logo > img { height: 34px !important; max-height: none !important; width: auto !important; }
html body.page-b2b :is(#tm24-home-header, header).b2b-header > .tm24-header-grid > .tm24-header-left > .tm24-pill-nav { order: 1 !important; margin: 0 !important; }
/* Insel: gleiche Kapsel wie Verkaufen */
/* :is mit ID-Variante: tm24-pills-master.css setzt Rahmen mit demselben ID-Gewicht */
html body.page-b2b :is(.tm24-pill-nav, #tm24-home-header .tm24-header-left .tm24-pill-nav) { --tm-bg: var(--hy-ice); background: var(--hy-ice) !important; border: 0 !important; border-radius: 999px !important; padding: 3px !important; gap: 2px !important; box-shadow: none !important; }
html body.page-b2b :is(#tm24-home-header, header).b2b-header .tm24-pill { height: 38px !important; min-height: 38px !important; padding: 0 15px !important; font-size: 14px !important; font-weight: 800 !important; color: var(--hy-blue) !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
html body.page-b2b :is(#tm24-home-header, header).b2b-header .tm24-pill.is-active { background: var(--hy-navy) !important; color: #fff !important; }
html body.page-b2b :is(#tm24-home-header, header).b2b-header > .tm24-header-grid > .tm24-header-right > .b2b-burger-btn { width: 44px !important; height: 42px !important; min-height: 0 !important; align-items: center !important; justify-content: center !important; border: 1px solid var(--hy-line-strong) !important; border-radius: 12px !important; background: #fff !important; color: var(--hy-ink) !important; }
/* Hinweisleiste unter dem Kopf: gleiche Inhalte, ruhig, nur ab Tablet */
html body.page-b2b .b2b-topbar { background: #F5F8FE !important; color: var(--hy-blue) !important; border-bottom: 1px solid #E1E8F5; }
html body.page-b2b .b2b-topbar .b2b-topbar-inner { justify-content: center; gap: 6px 28px; font-weight: 700; color: var(--hy-blue) !important; }
html body.page-b2b .b2b-topbar .b2b-topbar-inner :is(span, i) { color: inherit !important; }

@media (max-width: 767.98px) {
    /* Handy: Logo | Insel | Menue wie Verkaufen; darunter die Sprachwahl. Anmelden steht im Menue. */
    html body.page-b2b :is(#tm24-home-header, header).b2b-header > .tm24-header-grid {
        grid-template-columns: auto minmax(0, 1fr) auto !important;
        grid-template-areas: "logo nav menu" "lang lang lang" !important;
        column-gap: 8px !important;
        row-gap: 6px !important;
        min-height: 58px !important;
        padding: 8px 12px !important;
    }
    html body.page-b2b :is(#tm24-home-header, header).b2b-header > .tm24-header-grid > :is(.tm24-header-left, .tm24-header-right) { display: contents !important; }
    html body.page-b2b :is(#tm24-home-header, header).b2b-header > .tm24-header-grid > .tm24-header-center { display: none !important; }
    html body.page-b2b :is(#tm24-home-header, header).b2b-header > .tm24-header-grid > .tm24-header-left > a.b2b-logo { grid-area: logo !important; }
    html body.page-b2b :is(#tm24-home-header, header).b2b-header > .tm24-header-grid > .tm24-header-left > a.b2b-logo > img { height: 26px !important; max-width: 96px !important; }
    html body.page-b2b :is(#tm24-home-header, header).b2b-header > .tm24-header-grid > .tm24-header-left > .tm24-pill-nav { grid-area: nav !important; justify-self: center !important; padding: 2px !important; }
    html body.page-b2b :is(#tm24-home-header, header).b2b-header .tm24-pill { height: 36px !important; min-height: 36px !important; padding: 7px 10px !important; font-size: 13px !important; line-height: 1.1 !important; gap: 0 !important; }
    html body.page-b2b :is(#tm24-home-header, header).b2b-header .tm24-pill i { display: none !important; }
    html body.page-b2b :is(#tm24-home-header, header).b2b-header > .tm24-header-grid > .tm24-header-right > .b2b-burger-btn { grid-area: menu !important; display: inline-flex !important; justify-self: end !important; }
    html body.page-b2b :is(#tm24-home-header, header).b2b-header > .tm24-header-grid > .tm24-header-right > .b2b-icon-link { display: none !important; }
    html body.page-b2b :is(#tm24-home-header, header).b2b-header > .tm24-header-grid > .tm24-header-right > .b2b-lang-switch { grid-area: lang !important; justify-self: start !important; margin: 0 !important; }
    html body.page-b2b :is(#tm24-home-header, header).b2b-header .b2b-lang-switch .lang-text { display: inline !important; }
    html body.page-b2b .b2b-topbar { display: none !important; }
}
@media (max-width: 359px) {
    html body.page-b2b :is(#tm24-home-header, header).b2b-header .tm24-pill-nav { width: max-content !important; }
    html body.page-b2b :is(#tm24-home-header, header).b2b-header .tm24-pill { padding: 7px 5px !important; font-size: 12px !important; }
}

/* ---------- Hero: Navy-Buehne, Schrift links, ein klarer Weg ---------- */
html body.page-b2b .b2b-hero {
    background:
        radial-gradient(120% 90% at 85% 0%, rgba(0, 57, 232, .55) 0%, rgba(0, 57, 232, 0) 60%),
        linear-gradient(160deg, var(--hy-deep) 0%, var(--hy-navy) 70%);
    padding: clamp(48px, 8vw, 96px) 0 clamp(48px, 7vw, 88px);
    text-align: left;
}
html body.page-b2b .b2b-hero::before { display: none; }
html body.page-b2b .b2b-hero .container { max-width: 1120px; }
html body.page-b2b .b2b-hero__icon { display: none; }
html body.page-b2b .b2b-hero h1 {
    font-size: clamp(34px, 5.4vw, 64px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.03em;
    max-width: 16ch;
    margin: 0 0 18px;
}
html body.page-b2b .b2b-hero__sub {
    margin: 0 0 28px;
    max-width: 56ch;
    font-size: clamp(16px, 1.4vw, 19px);
    color: rgba(255, 255, 255, .86);
}
html body.page-b2b .b2b-hero__cta {
    min-height: 52px;
    padding: 0 28px;
    border-radius: var(--hy-r-s);
    background: #fff;
    color: var(--hy-navy);
    box-shadow: none;
}
html body.page-b2b .b2b-hero__cta:hover,
html body.page-b2b .b2b-hero__cta:focus-visible { background: var(--hy-ice); color: var(--hy-navy); }

/* Leiste unter dem Hero: sachliche Hinweise als ruhige Zeile */
html body.page-b2b .b2b-clarity-bar { background: var(--hy-navy); border-top: 1px solid rgba(255, 255, 255, .08); }
html body.page-b2b .b2b-clarity-inner { max-width: 1120px; }
html body.page-b2b .b2b-clarity-badge { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); border-radius: 999px; }
html body.page-b2b .b2b-clarity-points span { color: rgba(255, 255, 255, .86); }

/* ---------- Abschnitte: weisser Grund, Trennung ueber Abstand und Linie ---------- */
html body.page-b2b :is(.b2b-services, .b2b-steps, .b2b-audience, .b2b-contact, .b2b-faq) {
    background: #fff !important;
    padding: clamp(48px, 7vw, 88px) 0;
}
html body.page-b2b :is(.b2b-steps, .b2b-audience, .b2b-contact, .b2b-faq) { border-top: 1px solid var(--hy-line); }
html body.page-b2b .b2b-section-title { max-width: 1120px; margin: 0 auto clamp(24px, 4vw, 40px); text-align: left; }
html body.page-b2b .b2b-section-title h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; color: var(--hy-ink); margin-bottom: 8px; }
html body.page-b2b .b2b-section-title p { color: var(--hy-muted); font-size: 17px; margin: 0; max-width: 60ch; }

/* Services: drei Zeilen mit Symbolflaeche statt gleich hoher Schaukarten */
html body.page-b2b .b2b-services-grid { max-width: 1120px; margin: 0 auto; gap: 16px; }
html body.page-b2b .b2b-service-card {
    background: #fff;
    border: 1px solid var(--hy-line);
    border-radius: var(--hy-r);
    box-shadow: none;
    text-align: left;
    padding: 24px;
}
html body.page-b2b .b2b-service-card:hover { border-color: var(--hy-electric); box-shadow: none; transform: none; }
html body.page-b2b :is(.b2b-service-icon, .b2b-audience-icon, .b2b-step-icon) {
    width: 48px; height: 48px;
    border-radius: var(--hy-r-s);
    background: var(--hy-ice);
    color: var(--hy-electric);
    margin: 0 0 16px;
    box-shadow: none;
}
html body.page-b2b .b2b-service-card h3,
html body.page-b2b .b2b-audience-card h3,
html body.page-b2b .b2b-step h3 { font-size: 18px; font-weight: 800; color: var(--hy-ink); margin-bottom: 6px; }
html body.page-b2b :is(.b2b-service-card, .b2b-audience-card, .b2b-step) p { color: var(--hy-muted); font-size: 15px; line-height: 1.55; }

/* Ablauf: nummerierte Reihe mit Verbindungslinie */
html body.page-b2b .b2b-steps-grid { max-width: 1120px; margin: 0 auto; position: relative; gap: 24px; }
html body.page-b2b .b2b-step { text-align: left; padding: 0; background: transparent; }
html body.page-b2b .b2b-step-number {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--hy-navy);
    color: #fff;
    font-family: var(--hy-display);
    font-weight: 800;
    margin: 0 0 14px;
    box-shadow: 0 0 0 6px #fff;
    position: relative;
    z-index: 1;
}
html body.page-b2b .b2b-step .b2b-step-icon { display: none; }
@media (min-width: 900px) {
    html body.page-b2b .b2b-steps-grid::before {
        content: "";
        position: absolute;
        left: 18px; right: 18px; top: 18px;
        height: 2px;
        background: var(--hy-line);
    }
}

/* Zielgruppen: kompakte Kacheln */
html body.page-b2b .b2b-audience-grid { max-width: 1120px; margin: 0 auto; gap: 12px; }
html body.page-b2b .b2b-audience-card {
    background: #fff;
    border: 1px solid var(--hy-line);
    border-radius: var(--hy-r);
    box-shadow: none;
    text-align: left;
    padding: 20px;
}
html body.page-b2b .b2b-audience-card:hover { border-color: var(--hy-electric); transform: none; box-shadow: none; }

/* ---------- Registrierung: ein Formularblatt, Felder wie im Checkout ---------- */
html body.page-b2b .b2b-form-box {
    max-width: 760px;
    background: #fff;
    border: 1px solid var(--hy-line);
    border-radius: var(--hy-r);
    box-shadow: 0 1px 2px rgba(6, 18, 46, .05), 0 16px 40px rgba(6, 18, 46, .06);
    padding: clamp(20px, 4vw, 36px);
}
html body.page-b2b #b2b-kontakt .b2b-section-title { max-width: 760px; }
html body.page-b2b .b2b-form-group label { color: var(--hy-ink); font-weight: 700; font-size: 14px; }
html body.page-b2b .b2b-form-group :is(input, select, textarea) {
    min-height: 48px;
    border: 1.5px solid var(--hy-line-strong);
    border-radius: var(--hy-r-s);
    background: #fff;
    color: var(--hy-ink);
    font-size: 16px;
    box-shadow: none;
}
html body.page-b2b .b2b-form-group textarea { min-height: 120px; }
html body.page-b2b .b2b-form-group :is(input, select, textarea):focus { border-color: var(--hy-electric); box-shadow: var(--hy-ring); outline: none; }
html body.page-b2b .b2b-form-group :is(input, textarea)::placeholder { color: #7A869F; }
html body.page-b2b .b2b-form-group :is(input, select, textarea):user-invalid { border-color: var(--hy-stop); }
html body.page-b2b .b2b-privacy-label { color: var(--hy-muted); }
html body.page-b2b .b2b-privacy-label input { accent-color: var(--hy-electric); width: 20px; height: 20px; }
html body.page-b2b .b2b-form-submit {
    min-height: 56px;
    border-radius: var(--hy-r-s);
    background: var(--hy-electric);
    font-size: 17px;
    box-shadow: none;
}
html body.page-b2b .b2b-form-submit:hover,
html body.page-b2b .b2b-form-submit:focus-visible { background: var(--hy-blue); }
html body.page-b2b .b2b-form-note { color: var(--hy-muted); }
html body.page-b2b .b2b-form-error { border-radius: var(--hy-r-s); }
html body.page-b2b .b2b-login-btn {
    border-radius: var(--hy-r-s);
    background: #fff;
    color: var(--hy-electric);
    border: 1.5px solid var(--hy-electric);
    min-height: 44px;
}
html body.page-b2b .b2b-login-btn:hover { background: var(--hy-ice); }
html body.page-b2b .b2b-direct-contact { background: var(--hy-ice); border: 0; border-radius: var(--hy-r); }
html body.page-b2b .b2b-direct-link { border-radius: var(--hy-r-s); border-color: var(--hy-line-strong); color: var(--hy-ink); }

/* ---------- FAQ: Liste mit Linien, Bedienung per Tastatur ---------- */
html body.page-b2b .b2b-faq-list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--hy-line); }
html body.page-b2b .b2b-faq .b2b-section-title { max-width: 760px; }
html body.page-b2b .b2b-faq-item { background: transparent; border: 0; border-bottom: 1px solid var(--hy-line); border-radius: 0; box-shadow: none; margin: 0; }
html body.page-b2b button.b2b-faq-question {
    width: 100%;
    background: transparent;
    border: 0;
    text-align: left;
    font: inherit;
    font-weight: 700;
    font-size: 17px;
    color: var(--hy-ink);
    padding: 20px 4px;
    cursor: pointer;
}
html body.page-b2b button.b2b-faq-question:hover { color: var(--hy-electric); background: transparent; }
html body.page-b2b .b2b-faq-answer { color: var(--hy-muted); font-size: 16px; line-height: 1.6; padding-left: 4px; padding-right: 4px; }

@media (prefers-reduced-motion: reduce) {
    html body.page-b2b * { transition: none !important; animation: none !important; }
}

/* ---------- K28/K30/K31 (17.10. Videoanalyse) ---------- */
/* K28: unter "Jetzt registrieren" die zwei weiteren vorhandenen Wege (Anmelden, Direktkontakt) */
html body.page-b2b .b2b-hero__paths { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 16px 0 0; color: rgba(255, 255, 255, .86); font-size: 15px; }
html body.page-b2b .b2b-hero__paths a { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
html body.page-b2b .b2b-hero__paths a:hover, html body.page-b2b .b2b-hero__paths a:focus-visible { color: var(--hy-ice); }
html body.page-b2b .b2b-hero__paths-sep { color: rgba(255, 255, 255, .5); }
html body.page-b2b #b2b-direkt { scroll-margin-top: calc(var(--tm24-shop-header-height, 96px) + 16px); }
/* K30: Registrierung in Gruppen (Unternehmen, Ansprechpartner, Zugang, Bedarf, Anschrift) und naechste Schritte */
html body.page-b2b .b2b-form-section { margin: 0 0 20px; padding: 0 0 4px; border: 0; border-bottom: 1px solid var(--hy-line); min-width: 0; }
html body.page-b2b .b2b-form-section:last-of-type { border-bottom: 0; }
html body.page-b2b .b2b-form-legend { width: auto; margin: 0 0 12px; padding: 0; font-size: 17px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; color: var(--hy-navy); }
html body.page-b2b .b2b-form-next { margin: 4px 0 16px; padding: 12px 14px; border-radius: var(--hy-r-s); background: var(--hy-ice); color: var(--hy-ink); font-size: 14px; line-height: 1.5; }
/* K31: WhatsApp-Knopf verdeckt waehrend der Eingabe keine Felder; Telefon, WhatsApp und E-Mail bleiben im
   Formular (#b2b-direkt) und im Fuss erreichbar. */
html body.page-b2b .b2b-whatsapp { transition: transform .18s ease, opacity .18s ease, visibility .18s; }
html body.page-b2b:has(#b2b-form :is(input, select, textarea):focus) .b2b-whatsapp { opacity: 0; visibility: hidden; pointer-events: none; }
