/* =========================================================================
   Seitenkoepfe ausserhalb des Katalogs (17.10.2026, Inhaber)

   Zwei Bausteine, beide aus der Bildsprache der Kategorieseiten
   (/license-plates, public/css/ksa-category.css):

   .kph  Landingpages (Blog-Uebersicht, Guide, FAQ, About, Sicherheit, Markt,
         Rechner, Autor): Riad-Foto mit gruenem Verlauf, EINE Breadcrumb
         zentriert ueber der H1. Komponente: <x-page-hero>.
   .bph  Blogbeitraege: das Beitragsbild IST der Kopf. Desktop als Karte, Titel
         linksbuendig darunter und genauso breit wie das Bild; Handy randlos.

   Die sichtbare Breadcrumb kommt aus Crumbs::trail() mit denselben Eingaben
   wie die BreadcrumbList des Layouts (Schalter 'heroCrumbs' blendet nur den
   Streifen oben aus) -- sichtbarer Pfad und Auszeichnung bleiben gleich.

   Statische Datei statt Tailwind: das Bundle ist seit 23.08. eingefroren.
   Logische Eigenschaften, damit ar/ur ohne zweites Regelwerk laufen.
   ========================================================================= */

/* ------------------------------------------------------------ Breadcrumb */
.kph-crumbs, .bph-crumbs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
    margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.4; min-width: 0;
}
.kph-crumbs li, .bph-crumbs li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.kph-crumbs .sep, .bph-crumbs .sep { opacity: .6; }
.bph-crumbs .here, .kph-crumbs .here {
    font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch;
}

/* ============================================================== .kph */
.kph {
    position: relative; overflow: hidden; color: #fff; background: #0D1A12;
    display: flex; align-items: center; justify-content: center; text-align: center;
    min-height: 420px;
}
.kph-bg { position: absolute; inset: 0; }
.kph-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kph-shade {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(9,16,12,.58) 0%, rgba(9,16,12,.38) 45%, rgba(0,60,30,.62) 100%);
}
.kph-in {
    position: relative; width: 100%; max-width: 900px;
    padding: 52px 24px 84px; display: flex; flex-direction: column; align-items: center;
}
.kph--overlap .kph-in { padding-bottom: 128px; }
.kph-crumbs { justify-content: center; color: rgba(255,255,255,.75); }
.kph-crumbs a { color: rgba(255,255,255,.75); text-decoration: none; }
.kph-crumbs a:hover { color: #fff; }
.kph-crumbs .here { color: #fff; }
.kph-badge {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
    padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #fff;
    backdrop-filter: blur(6px);
}
.kph-h1 {
    font-size: 56px; line-height: 1.04; letter-spacing: -.035em; font-weight: 800;
    margin: 18px 0 0; color: #fff; text-wrap: balance;
}
.kph-h1 em, .kph-h1 .accent { font-style: normal; color: #3DDC84; }
.kph-sub { margin: 16px 0 0; max-width: 660px; font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.88); }
.kph-meta {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
    margin: 20px 0 0; padding: 0; list-style: none; font-size: 14px; color: rgba(255,255,255,.88);
}
.kph-meta li { display: flex; align-items: center; gap: 8px; }
.kph-meta svg { color: #3DDC84; flex: 0 0 auto; }
.kph-extra { margin-top: 26px; width: 100%; display: flex; justify-content: center; }

/* Der erste Inhaltsblock schiebt sich ueber die Unterkante (wie die
   Filterleiste der Kategorien). Die Seite haengt die Klasse an ihren Block. */
.kph-lift { position: relative; z-index: 2; margin-top: -84px !important; }

@media (max-width: 767px) {
    .kph { min-height: 0; }
    .kph-in { padding: 26px 16px 46px; }
    .kph--overlap .kph-in { padding-bottom: 92px; }
    .kph-crumbs { font-size: 12.5px; }
    .kph-h1 { font-size: 34px; margin-top: 14px; }
    .kph-sub { font-size: 15.5px; margin-top: 12px; }
    .kph-meta { gap: 8px 16px; font-size: 13px; margin-top: 16px; }
    .kph-lift { margin-top: -56px !important; }
}

/* ============================================================== .bph */
.bph { background: linear-gradient(180deg, #EEF5F0 0%, #F7F8F7 80%); padding: 22px 16px 0; }
.bph-col { max-width: 1040px; margin: 0 auto; }
.bph-crumbs { color: #6B7079; }
.bph-crumbs a { color: #6B7079; text-decoration: none; }
.bph-crumbs a:hover { color: #006C35; text-decoration: underline; }
.bph-crumbs .here { color: #18181B; }
.bph-fig { position: relative; margin: 16px 0 0; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px rgba(9,24,16,.22); background: #0b1712; }
.bph-fig img { display: block; width: 100%; height: auto; }
.bph-txt { margin-top: 32px; padding-bottom: 26px; border-bottom: 1px solid #E4E7E5; text-align: start; }
.bph-h1 { font-size: 52px; line-height: 1.07; letter-spacing: -.03em; font-weight: 800; color: #18181B; margin: 0; text-wrap: balance; }
.bph-meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; color: #52575E; }
.bph-meta li { display: flex; align-items: center; gap: 7px; }
.bph-meta svg { color: #006C35; flex: 0 0 auto; }
.bph-meta a { color: #52575E; text-decoration: none; }
.bph-meta a:hover { color: #006C35; text-decoration: underline; }

/* Rumpf: Text an derselben Kante wie Bild und Titel, rechts das Inhaltsverzeichnis */
.bpw { padding: 36px 16px 48px; }
.bpg { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 0 56px; align-items: start; }
.bpg--solo { grid-template-columns: minmax(0, 760px); }
.bpm { min-width: 0; grid-column: 1; grid-row: 1; }
.bpt {
    grid-column: 2; grid-row: 1; position: sticky; top: 96px;
    background: #fff; border-radius: 16px; box-shadow: inset 0 0 0 1px #ECEEED; padding: 18px 16px 14px;
    max-height: calc(100vh - 120px); overflow: auto;
}
.bpt-h { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #006C35; margin: 0 0 10px; padding-inline: 10px; }
.bpt ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.bpt a { display: block; font-size: 13.5px; line-height: 1.35; color: #3F3F46; padding: 6px 10px; border-radius: 8px; text-decoration: none; }
.bpt a:hover, .bpt a.is-on { background: #EEF5F0; color: #006C35; }

@media (max-width: 1023px) {
    .bpg, .bpg--solo { grid-template-columns: minmax(0, 1fr); max-width: 1040px; }
    .bpt { display: none; }
    .bph-h1 { font-size: 40px; }
}
@media (max-width: 767px) {
    .bph { padding: 0; background: #F7F8F7; }
    .bph-col { display: flex; flex-direction: column; }
    /* Handy: Bild randlos, voller Breite; kurzer Verlauf nur an der Unterkante,
       weil die Beitragsbilder unten eigenen Text tragen. */
    .bph-fig { order: -1; margin: 0; border-radius: 0; box-shadow: none; }
    .bph-fig::after { content: ""; position: absolute; inset: auto 0 0 0; height: 7%; background: linear-gradient(180deg, rgba(247,248,247,0) 0%, #F7F8F7 100%); }
    .bph-crumbs { padding: 0 18px; margin-top: 10px; font-size: 12.5px; }
    .bph-crumbs .here { max-width: 22ch; }
    .bph-txt { margin: 12px 18px 0; padding-bottom: 18px; }
    .bph-h1 { font-size: 29px; line-height: 1.12; letter-spacing: -.02em; }
    .bph-meta { font-size: 13px; gap: 6px 16px; margin-top: 12px; }
    .bpw { padding: 22px 16px 32px; }
}

/* Kompakte Variante (Rechner): auf dem Handy muss das Werkzeug sofort im Bild
   sein -- vorher war die H1 dort bewusst nur 20 px gross. */
@media (max-width: 767px) {
    .kph--compact .kph-in { padding: 14px 16px 40px; }
    .kph--compact.kph--overlap .kph-in { padding-bottom: 72px; }
    .kph--compact .kph-badge { margin-top: 10px; padding: 4px 11px; font-size: 11.5px; }
    .kph--compact .kph-h1 { font-size: 26px; line-height: 1.1; margin-top: 10px; }
    .kph--compact .kph-sub { font-size: 14px; margin-top: 8px; }
    .kph--compact .kph-meta { margin-top: 10px; gap: 4px 14px; font-size: 12px; }
}
