/* Branchen landing page specifics — extracted from webroot/redesign/branche-erste-hilfe.html. */

/* ---------- Hero: branch head variant ---------- */
.ghero .eyebrow { color: var(--g-yellow); margin-bottom: 0; }
.ghero .hero-ic { width: 64px; height: 64px; border-radius: 18px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); display: inline-flex; align-items: center; justify-content: center; font-size: 1.7rem; color: #fff; margin-bottom: 1.2rem; }
.ghero h1 { font-family: var(--g-display); font-weight: 400; text-transform: uppercase; font-size: var(--g-t-hero); line-height: 1.06; letter-spacing: .01em; margin-top: 1rem; max-width: 14ch; color: #fff; }
.ghero h1 b { font-family: var(--g-display-bold); font-weight: 400; color: var(--g-yellow); }
.ghero-sub { color: #e6edf8; font-size: 1.15rem; margin-top: 1.1rem; max-width: 46ch; line-height: 1.6; }
.ghero-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 30px; }

/* ---------- Modules: bento grid (final.html grammar) ---------- */
.mod-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; }
.mod { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 28px; padding: 28px 26px; background: linear-gradient(145deg, #fff, #EAF1FB); text-decoration: none; box-shadow: var(--sh-sm); transition: transform .25s var(--ease), box-shadow .25s; min-height: 230px; }
.mod:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.mod--big { grid-row: span 2; min-height: 478px; background: linear-gradient(145deg, #fff, #D9E6F8); }
.mod--wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; gap: 24px; }
.mod--wide .ic { margin-bottom: 0; flex: 0 0 auto; }
.mod--wide .mod-text { flex: 1; }
.mod--wide h3 { margin-bottom: 2px; }
.mod--wide .sub { margin-bottom: 4px; }
.mod--wide .pill { margin: 0; white-space: nowrap; }
@media (max-width: 980px) { .mod--wide { flex-direction: column; align-items: flex-start; } }
.mod .ic { width: 56px; height: 56px; border-radius: 16px; background: var(--white); color: var(--yellow-dark); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 18px; }
.mod h3 { font-size: 1.3rem; margin-bottom: 6px; }
.mod--big h3 { font-size: 1.7rem; }
.mod .sub { color: var(--yellow-dark); font-family: var(--f-body-bold); font-size: .88rem; margin-bottom: 10px; }
.mod p { color: var(--text-mid); font-size: .94rem; line-height: 1.5; }
.mod ul { list-style: none; margin: 14px 0 0; padding: 0; }
.mod li { position: relative; padding: 4px 0 4px 26px; color: var(--text-mid); font-size: .94rem; }
.mod li::before { content: "\f00c"; font-family: "Font Awesome 5 Pro"; font-weight: 900; position: absolute; left: 0; top: 4px; color: var(--success); font-size: .8rem; }
.mod .pill { margin-top: auto; align-self: flex-start; background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 7px 16px; font-family: var(--f-body-bold); font-size: .85rem; color: var(--ink); }
.mod .pill i { color: var(--yellow-dark); margin-left: 6px; transition: transform .2s var(--ease); }
.mod:hover .pill i { transform: translateX(4px); }
.mod > *:nth-last-child(2) { margin-bottom: 18px; }
@media (max-width: 980px) { .mod-grid { grid-template-columns: 1fr; } .mod--big { grid-row: auto; min-height: 0; } }

/* ---------- Customer example: voice cards ---------- */
.voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.voice { background: var(--white); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--sh-sm); transition: transform .25s var(--ease), box-shadow .25s; display: flex; flex-direction: column; }
.voice:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.voice .banner { position: relative; height: 150px; background: linear-gradient(145deg, #E9F0FB, #CFDFF5); }
.voice .banner img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .3s var(--ease); }
.voice:hover .banner img { filter: grayscale(.3); }
.voice .banner .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.voice .banner .play span { width: 46px; height: 46px; border-radius: 50%; background: var(--blue-dark); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .7rem; padding-left: 3px; box-shadow: 0 10px 26px rgba(45, 80, 153, .4); transition: transform .2s var(--ease); }
.voice:hover .banner .play span { transform: scale(1.1); }
.voice .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex-grow: 1; }
.voice h3 { font-size: 1.05rem; letter-spacing: 0; }
.voice .meta { margin-top: 4px; color: var(--muted); font-size: .85rem; }
.voice .meta i { color: var(--yellow); margin-right: 4px; }
.voice .link { margin-top: auto; padding-top: 14px; font-family: var(--f-body-bold); color: var(--blue-dark); font-size: .92rem; }
@media (max-width: 980px) { .voice-grid { grid-template-columns: 1fr; } }

/* ---------- SEO copy ---------- */
.seo-copy { max-width: 72ch; }
.seo-copy p { color: var(--text-mid); font-size: 1.05rem; line-height: 1.7; }
.seo-copy p + p { margin-top: 16px; }

/* ---------- FAQ cards (GEO) ---------- */
.faq-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.faq { background: var(--white); border: 1px solid var(--border); border-radius: 24px; padding: 28px 26px; box-shadow: var(--sh-sm); }
.faq h3 { font-size: 1.08rem; margin-bottom: 10px; }
.faq p { color: var(--text-mid); font-size: .96rem; line-height: 1.6; }
@media (max-width: 860px) { .faq-list { grid-template-columns: 1fr; } }

/* ---------- Benefit points in a shared box ---------- */
.benefit-box {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 28px; padding: 14px;
    box-shadow: var(--sh-sm);
}
.benefit-box-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.benefit-box .benefit { background: transparent; border: none; box-shadow: none; border-radius: 0; }
.benefit-box .benefit:hover { transform: none; box-shadow: none; }
.benefit-box .benefit:nth-child(odd) { border-right: 1px solid var(--border); }
.benefit-box .benefit:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
@media (max-width: 860px) {
    .benefit-box-grid { grid-template-columns: 1fr; }
    .benefit-box .benefit { border-right: none !important; border-bottom: 1px solid var(--border); }
    .benefit-box .benefit:last-child { border-bottom: none; }
}
.benefit { padding: 26px 24px; }
.benefit .ic { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--yellow-soft); color: var(--yellow-dark); font-size: 1.35rem; margin-bottom: 14px; }
.benefit h3 { font-size: 1.1rem; margin-bottom: 8px; }
.benefit p { color: var(--text-mid); font-size: .94rem; line-height: 1.55; }

/* ---------- CTA: yellow-glow variant (background differs from base) ---------- */
.cta-box { background: radial-gradient(circle at 86% 10%, rgba(245, 184, 0, .22), transparent 34%), linear-gradient(160deg, #5E7EB1, #48679C); }

/* ---------- Hero: eyebrow/icon row above H1 ---------- */
.hero-ic-row { display: block; margin-top: 1.2rem; }

/* ---------- Content sections: tight head + check lists ---------- */
.sec-head--tight { margin-bottom: 24px; }
.content-svg { width: 100%; height: auto; }
.check-list { list-style: none; margin: 18px 0 0; padding: 0; }
.check-list li { position: relative; padding: 4px 0 4px 26px; color: var(--text-mid); font-size: .98rem; }
.check-list li::before { content: "\f00c"; font-family: "Font Awesome 5 Pro"; font-weight: 900; position: absolute; left: 0; top: 4px; color: var(--success); font-size: .8rem; }
.check-list + .check-list, .seo-copy .lead + .check-list { margin-top: 14px; }
.seo-copy .lead { margin-top: 4px; }

/* ---------- Modules: even 3-column grid (feature overview) ---------- */
.mod-grid--even { grid-template-columns: repeat(3, 1fr); }
.mod-grid--even .mod { min-height: 0; }
.mod-footnote { margin-top: 18px; color: var(--muted); font-size: .82rem; }
.mod-footnote sup { color: var(--muted); }
@media (max-width: 980px) { .mod-grid--even { grid-template-columns: 1fr; } }

/* ---------- Branch overview (/branchen/): 3-column card grid ---------- */
.branchen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.branchen-grid .mod { min-height: 0; }
 /* contact card lives inside the grid, filling the two cells next to the
   last branch card (10 branches -> row 4 = card + this spanning card) */
.branchen-grid .branchen-other { grid-column: span 2; background: var(--white); border-style: dashed; min-height: 0; }
@media (max-width: 980px) { .branchen-grid { grid-template-columns: 1fr; } .branchen-grid .branchen-other { grid-column: auto; } }

/* ---------- Voice cards: grid cells + video banner ---------- */
.voice-grid > .voice-cell > .voice { height: 100%; }
.voice .banner--video { height: auto; }
.voice .banner--video video { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.voice .body h3 { font-size: 1.05rem; letter-spacing: 0; }
.voice a.meta { text-decoration: none; }
.voice a.meta:hover { color: var(--ink); }
.voice-rest { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 9px; }
.voice-rest a {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 999px; padding: 8px 16px;
    font-family: var(--f-body-bold); font-size: .85rem; color: var(--text-mid);
    text-decoration: none; transition: border-color .2s, color .2s;
}
.voice-rest a:hover { border-color: var(--ink); color: var(--ink); }
.reviews-more { margin-top: 32px; text-align: center; }

/* ---------- Logo row ---------- */
.sec--logos { padding-top: 0; }
.logo-row { text-align: center; }
.logo-row h3 { font-size: .95rem; letter-spacing: .08em; color: var(--muted); margin-bottom: 24px; }
.logo-row .logos { display: flex; gap: 44px; justify-content: center; align-items: center; flex-wrap: wrap; }
.logo-row img { height: 44px; width: auto; filter: grayscale(1) opacity(.6); transition: filter .2s; }
.logo-row img:hover { filter: none; }

/* ---------- Customer map: country switch chips + map card ---------- */
.country-switch { display: flex; gap: 9px; margin-top: 26px; flex-wrap: wrap; }
.country-map-switch {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 999px; padding: 9px 20px;
    font-family: var(--f-body-bold); font-size: .9rem; color: var(--text-mid);
    cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.country-map-switch:hover { border-color: var(--ink); color: var(--ink); }
.country-map-switch.btn-accent { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.map-card .map-container { height: 380px; }

/* ---------- FAQ module: static open cards (SEO) ----------
   matches the FAQ card look of the generated Funktionsseiten
   (legacy-bridge.css): chevron before the question, compact typo,
   equal card heights per grid row.
   Single source of truth for BOTH rendering contexts: the selectors carry
   the extra .accordion level on purpose so they match or beat the legacy
   rules on bridge pages (.legacy-content .accordion … in legacy-bridge.css,
   [data-toggle=collapse] chevrons + .btn typography in styles.css) — this
   file loads last in the bridge block of app/Layouts/kutego.tpl.php. */
.faq-module .accordion { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.faq-module .accordion .card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 16px; padding: 22px 24px; box-shadow: var(--sh-sm);
    height: 100%; margin: 0; overflow: visible;
}
.faq-module .accordion .card-header { background: none; border: none; padding: 0; }
.faq-module .accordion .card-header a.card-title {
    display: block; text-align: left; white-space: normal;
    position: relative; margin: 0; padding: 0 0 0 24px;
    font-family: var(--f-body-bold); font-weight: 400;
    text-transform: uppercase; letter-spacing: 1.45px;
    font-size: 1.08rem; line-height: 1.25;
    color: var(--ink); text-decoration: none;
    pointer-events: none; /* cards stay open — no accordion toggling */
}
/* two-tone section headline like on the generated Funktionsseiten:
   light lead words + bold <b> part */
#faq .sec-head h2 { font-family: var(--f-body-light); font-weight: 300; }
#faq .sec-head h2 b { font-family: var(--f-body-bold); font-weight: 700; }
/* transform/transition/margin reset neutralises the legacy accordion chevron
   ([data-toggle=collapse].collapsed:before rotates -90deg in styles.css) */
.faq-module .accordion .card-header a.card-title::before {
    content: "\f054"; font-family: "Font Awesome 5 Pro"; font-weight: 900;
    position: absolute; left: 0; top: 4px; font-size: .8rem; color: var(--blue-dark);
    margin: 0; line-height: 1.25; transform: none; transition: none;
}
.faq-module .accordion .collapse { display: block; }
.faq-module .accordion .card-body { padding: 10px 0 0 24px; color: var(--text-mid); font-size: .96rem; line-height: 1.6; }
@media (max-width: 860px) { .faq-module .accordion { grid-template-columns: 1fr; } }

/* ---------- Google reviews slider: token-based card styling ---------- */
.google-reviews-section .google-reviews-header { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.google-reviews-section .google-reviews-stars i { color: var(--yellow); }
.google-reviews-section .google-reviews-rating { font-family: var(--f-body-bold); color: var(--ink); }
.google-reviews-section .google-reviews-count { color: var(--muted); font-size: .9rem; }
.google-reviews-section .google-review-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 24px; padding: 24px 22px; margin: 0 10px;
    box-shadow: var(--sh-sm);
}
.google-reviews-section .google-review-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.google-reviews-section .google-review-avatar,
.google-reviews-section .google-review-avatar-placeholder {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--yellow-soft); color: var(--yellow-dark);
    display: flex; align-items: center; justify-content: center;
}
.google-reviews-section .google-review-author-name { font-family: var(--f-body-bold); color: var(--ink); text-decoration: none; }
.google-reviews-section .google-review-time { display: block; color: var(--muted); font-size: .82rem; }
.google-reviews-section .google-review-card-stars i { color: var(--yellow); font-size: .85rem; }
.google-reviews-section .google-review-text { color: var(--text-mid); font-size: .94rem; line-height: 1.55; margin-top: 8px; }

/* video review cards: grey poster filter + centered play button
   (markup injected by kutego.js handleVideos into every .embed-responsive,
   visual grammar taken from the old kutego.css .reviews rules) */
.voice .banner--video video { filter: grayscale(100%); transition: filter .3s var(--ease); }
.voice .banner--video video:hover,
.voice .banner--video video.hover { filter: grayscale(0%); }
.voice .play-video {
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 50%;
    margin: -2.4em 0 0 -2.4em;
    pointer-events: none;
}
.voice .play-video .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.8em;
    height: 4.8em;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--ink);
    opacity: .8;
    box-shadow: var(--sh-md);
    transition: opacity .2s;
}
.voice:hover .play-video .btn { opacity: 1; }
.voice .play-video .fas { font-size: 1.6em; margin-left: .2em; }

/* Inline partner logo inside seo-copy (e.g. Würzburger on /kursversicherung/) */
.seo-copy .inline-logo { max-height: 1.5em; max-width: 11em; vertical-align: middle; }

/* ---------- Milestone timeline (/ueber-uns/) ---------- */
.tl { position: relative; max-width: 720px; margin: 0 auto; }
.tl::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); border-radius: 2px; }
.tl-item { position: relative; padding: 0 0 40px 40px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px var(--yellow-soft); }
.tl-date { display: block; font-family: var(--f-body-bold); font-size: .85rem; color: var(--yellow-dark); text-transform: uppercase; letter-spacing: .06em; }
.tl-item h3 { font-size: 1.15rem; margin: 6px 0 8px; }
.tl-item h3 a { color: inherit; text-decoration: none; }
.tl-item h3 a:hover { color: var(--blue-dark); }
.tl-item p { color: var(--text-mid); font-size: .96rem; line-height: 1.6; }
.tl-logo { display: block; max-height: 36px; width: auto; max-width: 200px; margin: 10px 0 4px; }

/* ---------- Partner cards (/partner/) ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.partner-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: 24px; padding: 26px 24px; box-shadow: var(--sh-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.partner-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.partner-card .partner-logo { display: flex; align-items: center; height: 56px; margin-bottom: 16px; }
.partner-card .partner-logo img { max-height: 44px; max-width: 180px; width: auto; }
.partner-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.partner-card p { color: var(--text-mid); font-size: .94rem; line-height: 1.55; }
.partner-card .partner-link { margin-top: auto; padding-top: 16px; font-family: var(--f-body-bold); color: var(--blue-dark); font-size: .92rem; text-decoration: none; }
.partner-card .partner-link i { margin-left: 6px; font-size: .8rem; }
@media (max-width: 980px) { .partner-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .partner-grid { grid-template-columns: 1fr; } }


/* ---------- Support: card lists + bottom-aligned button row ---------- */
.partner-card ul { margin: 0 0 12px; padding-left: 20px; color: var(--text-mid); font-size: .94rem; line-height: 1.55; }
.partner-card .partner-link-row { margin-top: auto; padding-top: 16px; margin-bottom: 0; }
.partner-card .partner-link-row .btn i { margin-right: 8px; }

/* ---------- Presse: fact icons, logo download cards, embed code ---------- */
.partner-card .ic { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--yellow-soft); color: var(--yellow-dark); font-size: 1.35rem; margin-bottom: 14px; }
.press-logo-card .partner-logo { height: auto; min-height: 104px; justify-content: center; padding: 22px; background: var(--cream-band); border-radius: 16px; }
.press-logo-card .partner-logo img { max-height: 56px; max-width: 100%; }
.press-logo-card--dark .partner-logo { background: var(--ink); }
.press-dl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }
.press-dl a { display: inline-flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-family: var(--f-body-bold); font-size: .85rem; color: var(--blue-dark); text-decoration: none; transition: border-color .2s; }
.press-dl a:hover { border-color: var(--blue-dark); }
.press-dl a i { color: var(--yellow-dark); font-size: .8rem; }
.press-embed { background: var(--white); border: 1px solid var(--border); border-radius: 24px; padding: 26px 24px; box-shadow: var(--sh-sm); }
.press-embed + .press-embed { margin-top: 20px; }
.press-embed h3 { font-size: 1.08rem; margin-bottom: 14px; }
.press-embed .preview { display: block; margin-bottom: 18px; text-decoration: none; color: var(--text-mid); font-family: var(--f-body-bold); }
.press-embed .preview img { max-width: 100%; height: auto; display: block; margin-bottom: 8px; }
.press-embed pre { background: var(--cream-band); border-radius: 14px; padding: 16px 18px; font-size: .82rem; line-height: 1.5; color: var(--text-mid); overflow-x: auto; margin: 0; }

/* ---------- Branch favourites ("Das schätzen unsere …") ---------- */
/* 2x3 like the design reference */
.fav-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.fav-grid .mod { min-height: 0; }
.fav-grid .mod h3 { font-size: 1.15rem; }
.fav-grid .mod .pill { margin-top: 18px; }
.fav-muffel { display: flex; justify-content: center; margin-top: 28px; }
/* size by height so wide motifs (e.g. schwimmschule) match the others */
.fav-muffel img { height: 280px; width: auto; max-width: 90vw; }
@media (max-width: 640px) { .fav-grid { grid-template-columns: 1fr; } .fav-muffel img { height: 200px; } }

/* customer teaser banner: logo instead of the play icon when available */
.voice .banner .play--logo img {
    max-height: 72px;
    max-width: 65%;
    width: auto;
    filter: drop-shadow(0 8px 18px rgba(22, 35, 61, .18));
}

/* favourites headline: yellow accent like the design reference */
#lieblingsfunktionen .sec-head h2 b { color: var(--yellow); }
