/* ==========================================================================
   Datei: komponenten.css
   Zweck: Bausteine, die auf mehreren Seiten vorkommen (Startseite und Unterseiten).
   Inhalt:
     1. Abschnitte und Abschnittsköpfe
     2. Karte und Video nach Klick (verschwommene Karten-Vorschau)
     3. Großansicht für Bilder (js/main.js, Abschnitt 4)
     4. Seitenkopf der Unterseiten und Brotkrumen
     5. Leistungen als Fotokacheln
     6. Textkacheln (Ratgeber, Unterseiten-Listen)
     7. News-Karten
     8. Hakenliste und Infokarten
   Typische Änderungen: Abstände der Abschnitte -> 1.; Kachelgröße -> 5./6.
   ========================================================================== */

/* === 1. Abschnitte und Abschnittsköpfe === */
.abschnitt { padding-block: var(--abstand); }
.abschnitt-flaeche { background: var(--flaeche); }
.abschnitt-eng { padding-block: clamp(2.5rem, 6vw, 4rem); }
.abschnitt-kopf { max-width: 44rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.abschnitt-kopf h2 { font-size: clamp(1.75rem, 4.2vw, 2.6rem); margin-bottom: .7rem; }
.abschnitt-kopf p { color: var(--tinte-leise); }

/* === 2. Karte und Video nach Klick === */
.einbettung {
    position: relative; display: grid; place-items: center; min-height: 20rem;
    border-radius: var(--rund-karte); overflow: hidden; background: var(--flaeche-tief);
}
/* Verschwommene Karte als Hintergrund (bilder/karte-vorschau.webp, aus OpenStreetMap), leicht aufgehellt */
.einbettung-karte { background: url("/bilder/karte-vorschau.webp") center / cover; }
.einbettung-karte::before { content: ""; position: absolute; inset: 0; background: rgb(255 255 255 / .25); }
.einbettung-vorschau { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); }
.einbettung-inhalt {
    position: relative; display: grid; gap: .8rem; justify-items: center; max-width: 24rem; margin: 1rem;
    padding: 1.4rem 1.6rem; text-align: center; font-size: .9rem; color: var(--tinte-leise);
    background: rgb(255 255 255 / .93); border-radius: 16px; box-shadow: var(--schatten);
}
.einbettung-inhalt strong { color: var(--tinte); font-size: 1rem; }
.einbettung-quelle { position: absolute; right: .6rem; bottom: .35rem; font-size: .7rem; color: var(--tinte-leise); }
.einbettung-video { aspect-ratio: 16 / 9; min-height: 0; }
.einbettung.geladen { display: block; }
.einbettung.geladen::before { content: none; }
.einbettung iframe { display: block; width: 100%; height: 100%; min-height: 20rem; border: 0; }
.einbettung-video iframe { min-height: 0; }

/* === 3. Großansicht für Bilder === */
.grossansicht { max-width: min(92vw, 60rem); padding: 0; border: 0; border-radius: 16px; background: #0f1b28; color: #fff; }
.grossansicht::backdrop { background: rgb(10 20 30 / .8); }
.grossansicht img { width: 100%; max-height: 80vh; object-fit: contain; }
.grossansicht-text { padding: .7rem 1rem; font-size: .9rem; }
.grossansicht-schliessen, .grossansicht-blaettern {
    position: absolute; z-index: 1; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%;
    background: rgb(255 255 255 / .9); color: var(--tinte); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.grossansicht-schliessen { top: .6rem; right: .6rem; }
.grossansicht-blaettern { top: 45%; }
.grossansicht-zurueck { left: .6rem; }
.grossansicht-weiter { right: .6rem; }

/* === 4. Seitenkopf der Unterseiten und Brotkrumen === */
.seitenkopf { padding-block: clamp(1.25rem, 4vw, 3rem) clamp(2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--linie); }
.seitenkopf-raster { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.seitenkopf h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: .8rem; }
.seitenkopf-zusatz { max-width: 36em; color: var(--tinte-leise); font-size: 1.08rem; }
.seitenkopf-knoepfe { margin-top: 1.4rem; }
.seitenkopf-bild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 28px; box-shadow: var(--schatten); }
.brotkrumen { margin-bottom: 1rem; font-size: .9rem; color: var(--tinte-leise); }
.brotkrumen ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem .5rem; }
.brotkrumen li { display: inline-flex; align-items: center; gap: .5rem; }
.brotkrumen li + li::before { content: "/"; color: var(--linie); }
.brotkrumen a { color: var(--blau); text-underline-offset: .2em; }
@media (min-width: 900px) { .seitenkopf-mit-bild .seitenkopf-raster { grid-template-columns: 1.15fr 1fr; } }
@media (max-width: 599px) {
    .seitenkopf-zusatz { font-size: 1rem; }
    .seitenkopf-knoepfe .knopf { flex: 1 1 100%; }
}

/* === 5. Leistungen als Fotokacheln === */
.leistungen { list-style: none; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.leistung a {
    display: flex; flex-direction: column; height: 100%; overflow: hidden; text-decoration: none;
    border-radius: var(--rund-karte); background: #fff; border: 1px solid var(--linie);
    transition: box-shadow .25s, transform .25s;
}
.leistung a:hover { box-shadow: var(--schatten); transform: translateY(-2px); }
.leistung img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.leistung-text { display: grid; gap: .4rem; padding: 1.1rem 1.25rem 1.35rem; color: var(--tinte-leise); font-size: .98rem; }
.leistung-titel { display: flex; align-items: center; gap: .5rem; font-family: var(--schrift-titel); font-size: 1.15rem; font-weight: 700; color: var(--tinte); }
.leistung-titel .symbol { color: var(--blau); }

/* === 6. Textkacheln (Ratgeber, Unterseiten-Listen) === */
.kacheln { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.kacheln a {
    display: grid; gap: .45rem; align-content: start; height: 100%; padding: 1.4rem 1.5rem; text-decoration: none;
    background: #fff; border: 1px solid var(--linie); border-radius: var(--rund-karte); transition: border-color .2s;
}
.kacheln a:hover { border-color: var(--blau); }
.kacheln .symbol { width: 1.7rem; height: 1.7rem; color: var(--blau); }
.kacheln strong { font-family: var(--schrift-titel); font-size: 1.12rem; }
.kacheln span { color: var(--tinte-leise); font-size: .96rem; }

/* === 7. News-Karten === */
.beitraege { list-style: none; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.beitrag a { display: flex; flex-direction: column; height: 100%; overflow: hidden; text-decoration: none; background: #fff; border: 1px solid var(--linie); border-radius: var(--rund-karte); transition: box-shadow .25s; }
.beitrag a:hover { box-shadow: var(--schatten); }
.beitrag img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.beitrag-text { display: grid; gap: .35rem; padding: 1rem 1.25rem 1.3rem; }
.beitrag time { font-size: .88rem; color: var(--tinte-leise); }
.beitrag strong { font-family: var(--schrift-titel); font-size: 1.1rem; line-height: 1.25; }
.beitrag-text > span { color: var(--tinte-leise); font-size: .96rem; }

/* === 8. Hakenliste und Infokarten === */
.haken-liste { list-style: none; padding: 0; display: grid; gap: .55rem; }
.haken-liste li { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; }
.haken-liste .symbol { color: var(--offen); margin-top: .2em; }
.info-karte { display: grid; gap: .35rem; align-content: start; padding: 1.4rem 1.5rem; border: 1px solid var(--linie); border-radius: var(--rund-karte); background: #fff; }
.info-karte h2, .info-karte h3 { font-size: 1.1rem; }
.info-karte p { color: var(--tinte-leise); }
.info-symbol { width: 1.6rem; height: 1.6rem; color: var(--blau); margin-bottom: .35rem; }
.info-karte-notdienst .info-symbol { color: var(--rot); }
.info-nummer { font-family: var(--schrift-titel); font-size: 1.35rem; font-weight: 700; color: var(--rot-dunkel); text-decoration: none; }
.info-nummer:hover { text-decoration: underline; }
