/*
 * direktlokal.de – Material-Design-Feinschliff
 * Wird nach custom.css geladen. Markenfarben, Logo und Schriften bleiben,
 * dazu kommen Elevation (Schatten-Ebenen), runde Formen, Zustände und Übergänge.
 */

:root {
    --dl-primary: #5F7312;
    --dl-primary-rgb: 95, 115, 18;
    --dl-tertiary: #B35034;
    --dl-accent: #C8401F;
    --dl-surface: #ffffff;
    --dl-surface-variant: #f3f2ec;
    --dl-outline: #c9c6b8;
    --dl-on-surface: #33342e;

    --dl-radius-s: 8px;
    --dl-radius-m: 12px;
    --dl-radius-l: 16px;

    --dl-elevation-1: 0 1px 2px rgba(0, 0, 0, .18), 0 1px 3px 1px rgba(0, 0, 0, .08);
    --dl-elevation-2: 0 1px 2px rgba(0, 0, 0, .18), 0 2px 6px 2px rgba(0, 0, 0, .08);
    --dl-elevation-3: 0 1px 3px rgba(0, 0, 0, .18), 0 4px 8px 3px rgba(0, 0, 0, .10);

    --dl-motion: 200ms cubic-bezier(.2, 0, 0, 1);
}

body {
    color: var(--dl-on-surface);
    -webkit-font-smoothing: antialiased;
}

/* ---------- Elevation & Flächen ---------- */

.shadow {
    box-shadow: var(--dl-elevation-1) !important;
}

.custom-bg-container {
    border-radius: var(--dl-radius-l);
    box-shadow: var(--dl-elevation-1) !important;
    overflow: hidden;
}

.custom-box-white {
    border-radius: var(--dl-radius-l);
}

/* Handy: Inhaltsbox nicht bis an den Rand, damit die runden Ecken sichtbar sind */
@media (max-width: 575.98px) {
    .custom-bg-container {
        width: auto;
        margin-left: .5rem;
        margin-right: .5rem;
    }
}

/* ---------- Kopfzeile (Top App Bar) ---------- */

.custom-border-bottom {
    border-bottom-width: 3px;
    box-shadow: var(--dl-elevation-2) !important;
    position: relative;
    z-index: 1000;
}

.navbar .nav-link {
    border-radius: 999px;
    padding-left: .9rem !important;
    padding-right: .9rem !important;
    transition: background-color var(--dl-motion), color var(--dl-motion);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible,
.navbar .nav-link.show {
    background-color: rgba(var(--dl-primary-rgb), .10);
}

.dropdown-menu {
    border: 0;
    border-radius: var(--dl-radius-m);
    box-shadow: var(--dl-elevation-2);
    padding: .5rem 0;
    overflow: hidden;
}

.dropdown-menu .dropdown-item {
    padding: .5rem 1.25rem;
    text-transform: none;
    font-size: .95rem;
    transition: background-color var(--dl-motion);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(var(--dl-primary-rgb), .10);
}

/* Navigation im Benutzerbereich */
.nav-pills .nav-link {
    border-radius: 999px;
    text-transform: none;
    font-size: .95rem;
    transition: background-color var(--dl-motion);
}

.nav-pills .nav-link:hover,
.nav-pills .nav-link:focus {
    background-color: rgba(var(--dl-primary-rgb), .08);
    border-color: transparent;
}

.nav-pills .nav-link.active {
    background-color: rgba(var(--dl-primary-rgb), .16);
    border-color: transparent;
    font-weight: 600;
}

/* ---------- Buttons ---------- */

.btn {
    border-radius: 999px !important;
    text-transform: none;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .01em;
    padding: .5rem 1.5rem;
    min-height: 40px;
    transition: box-shadow var(--dl-motion), filter var(--dl-motion), transform var(--dl-motion);
}

.btn-sm {
    min-height: 32px;
    padding: .25rem 1rem;
    font-size: .85rem;
}

.btn:hover {
    box-shadow: var(--dl-elevation-1);
    filter: brightness(1.06);
}

.btn:active {
    box-shadow: none;
    filter: brightness(.94);
}

/* ---------- Karten ---------- */

.card {
    border-radius: var(--dl-radius-l) !important;
    box-shadow: var(--dl-elevation-1) !important;
    overflow: hidden;
    transition: box-shadow var(--dl-motion), transform var(--dl-motion);
}

.card:hover {
    box-shadow: var(--dl-elevation-3) !important;
    transform: translateY(-2px);
}

.card-img-top {
    transition: transform 400ms cubic-bezier(.2, 0, 0, 1);
}

.card:hover .card-img-top {
    transform: scale(1.03);
}

.card-title a {
    text-decoration: none;
}

.card-footer {
    background: transparent;
    border-top: 0;
    padding: 0 1rem 1rem;
}

/* Zähler an Kategorie-Kacheln: in der Ecke der Karte (Karten schneiden überstehende Teile ab) */
.card-title > .badge.start-100.translate-middle {
    transform: translate(-130%, 40%) !important;
    box-shadow: var(--dl-elevation-1);
}

/* ---------- Chips (Badges) ---------- */

.badge {
    border-radius: 999px;
    padding: .4em .8em;
    font-weight: 500;
    letter-spacing: .01em;
}

a > .badge {
    transition: filter var(--dl-motion), box-shadow var(--dl-motion);
}

a:hover > .badge {
    filter: brightness(1.08);
    box-shadow: var(--dl-elevation-1);
}

/* ---------- Eingabefelder (Filled Text Field) ---------- */

.form-control,
.form-select {
    background-color: var(--dl-surface-variant);
    border: 0;
    border-bottom: 1px solid var(--dl-outline);
    border-radius: var(--dl-radius-s) var(--dl-radius-s) 0 0;
    padding-top: .6rem;
    padding-bottom: .6rem;
    transition: border-color var(--dl-motion), background-color var(--dl-motion), box-shadow var(--dl-motion);
}

.form-control:hover,
.form-select:hover {
    background-color: #ecebe3;
}

.form-control:focus,
.form-select:focus {
    background-color: #ecebe3;
    border-bottom-color: var(--dl-primary);
    box-shadow: inset 0 -2px 0 var(--dl-primary);
}

/* Suche in der Kopfzeile: Suchleiste in Pillenform */
form[role="search"] .form-control {
    background-color: var(--dl-surface);
    border: 0;
    border-radius: 999px;
    padding-left: 1.25rem;
    box-shadow: var(--dl-elevation-1);
}

form[role="search"] .form-control:focus {
    box-shadow: var(--dl-elevation-2), 0 0 0 2px rgba(var(--dl-primary-rgb), .5);
}

/* ---------- Weitere Elemente ---------- */

.alert {
    border: 0;
    border-radius: var(--dl-radius-m);
}

.text-bg-light {
    border-radius: var(--dl-radius-m);
}

.img-fluid.shadow,
figure img {
    border-radius: var(--dl-radius-m);
}

#map,
.pin-map,
.leaflet-container {
    border-radius: var(--dl-radius-l);
    box-shadow: var(--dl-elevation-1);
}

.table {
    --bs-table-border-color: #e7e4da;
}

details > summary {
    cursor: pointer;
}

/* Merkliste auf der Anbieterseite */
.merkliste-merken > summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.merkliste-merken > summary::-webkit-details-marker {
    display: none;
}

.merkliste-box {
    background-color: var(--dl-surface-variant);
    border-radius: var(--dl-radius-m);
    padding: .75rem 1rem;
}

.merkliste-notiz {
    white-space: normal;
    color: var(--dl-on-surface);
}

/* Merkliste im Benutzerbereich */
.merkliste-map {
    height: 360px !important;
    border-radius: var(--dl-radius-l);
    box-shadow: var(--dl-elevation-1);
}

.merkliste-card,
.merkliste-card:hover {
    transform: none;
}

.merkliste-card:hover .card-img-top {
    transform: none;
}

.merkliste-card .card-footer {
    padding-bottom: .5rem;
}

.merkliste-entfernen,
.merkliste-entfernen:hover {
    box-shadow: none;
    min-height: 32px;
    padding: .25rem .6rem;
}

.merkliste-entfernen:hover {
    background-color: rgba(200, 64, 31, .12);
}

/* Benutzer-Dashboard */
.dashboard-karte {
    background-color: var(--dl-surface);
    border-radius: var(--dl-radius-l);
    box-shadow: var(--dl-elevation-1);
    padding: 1rem 1.15rem;
}

.dashboard-partner {
    border-left: 4px solid #F0C020;
}

.dashboard-kachel {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--dl-surface);
    border-radius: var(--dl-radius-l);
    box-shadow: var(--dl-elevation-1);
    padding: .9rem 1rem;
    text-decoration: none;
    color: var(--dl-on-surface) !important;
    transition: box-shadow var(--dl-motion), transform var(--dl-motion);
}

.dashboard-kachel:hover {
    box-shadow: var(--dl-elevation-3);
    transform: translateY(-2px);
}

.dashboard-kachel .bi {
    font-size: 1.4rem;
}

.dashboard-zahl {
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1.1;
    color: var(--dl-primary);
}

.dashboard-label {
    font-size: .85rem;
    color: #6b6a62;
}

.dashboard-liste li {
    padding: .4rem 0;
    border-bottom: 1px solid var(--dl-surface-variant);
}

.dashboard-liste li:last-child {
    border-bottom: 0;
}

.dashboard-liste li::after {
    content: "";
    display: table;
    clear: both;
}

.dashboard-pin {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    font-size: .85rem;
}

.dashboard-pin img,
.dashboard-pin-leer {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--dl-radius-s);
    margin-bottom: .3rem;
}

.dashboard-pin-leer {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dl-surface-variant);
    font-size: 1.6rem;
    color: var(--dl-outline);
}

.dashboard-pin-titel {
    font-weight: 600;
    line-height: 1.25;
}

.dashboard-schritt span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--dl-primary);
    color: #fff;
    font-weight: 700;
    margin-right: .35rem;
}

.merkliste-auswahl-check {
    margin-bottom: .25rem;
}

.merkliste-auswahl-leiste {
    position: sticky;
    bottom: .75rem;
    z-index: 900;
    margin-top: 1.25rem;
    background-color: var(--dl-surface);
    border-radius: var(--dl-radius-m);
    box-shadow: var(--dl-elevation-3);
    border: 2px solid rgba(var(--dl-primary-rgb), .35);
    padding: .6rem .9rem;
}

.merkliste-card:has([data-merkliste-auswahl]:checked) {
    box-shadow: 0 0 0 3px rgba(var(--dl-primary-rgb), .55), var(--dl-elevation-2) !important;
}

.merkliste-leer {
    background-color: var(--dl-surface);
    border-radius: var(--dl-radius-l);
    box-shadow: var(--dl-elevation-1);
}

@media (max-width: 575.98px) {
    .merkliste-map {
        height: 260px !important;
    }
}

/* Guides */
.guide-marker span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--dl-primary);
    color: #fff;
    font-weight: 700;
    border: 2px solid #fff;
    box-shadow: var(--dl-elevation-2);
}

.guide-station {
    display: flex;
    align-items: center;
    gap: .75rem;
    background-color: var(--dl-surface);
    border-radius: var(--dl-radius-m);
    box-shadow: var(--dl-elevation-1);
    padding: .6rem .75rem;
    margin-bottom: .6rem;
    scroll-margin-top: 1rem;
}

.guide-nummer {
    flex: 0 0 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--dl-primary);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-bild img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--dl-radius-s);
}

.guide-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.guide-aktionen {
    display: flex;
    flex: 0 0 auto;
}

.guide-aktionen .btn {
    min-height: 36px;
    padding: .25rem .5rem;
    box-shadow: none;
}

.guide-aktionen .btn:disabled {
    opacity: .25;
}

@media (max-width: 575.98px) {
    .guide-station {
        flex-wrap: wrap;
    }

    .guide-bild {
        display: none;
    }

    .guide-text {
        flex-basis: calc(100% - 50px);
    }

    .guide-aktionen {
        margin-left: auto;
    }
}

.guide-vorschau {
    display: grid;
    height: 160px;
    gap: 2px;
    background-color: var(--dl-surface-variant);
}

.guide-vorschau-2 {
    grid-template-columns: 1fr 1fr;
}

.guide-vorschau-3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.guide-vorschau-3 img:first-child {
    grid-row: span 2;
}

.guide-vorschau img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 0;
}

.guide-vorschau-leer {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--dl-outline);
}

.guide-auswahl {
    display: flex;
    align-items: center;
    gap: .75rem;
    background-color: var(--dl-surface);
    border-radius: var(--dl-radius-m);
    box-shadow: var(--dl-elevation-1);
    padding: .6rem .9rem;
    cursor: pointer;
    height: 100%;
    transition: box-shadow var(--dl-motion), background-color var(--dl-motion);
}

.guide-auswahl:hover {
    box-shadow: var(--dl-elevation-2);
}

.guide-auswahl:has(input:checked) {
    background-color: rgba(var(--dl-primary-rgb), .10);
    box-shadow: inset 0 0 0 2px var(--dl-primary);
}

/* Text-Editor (Guide-Beschreibung) */
.dl-editor-rahmen {
    background-color: var(--dl-surface-variant);
    border-radius: var(--dl-radius-s) var(--dl-radius-s) 0 0;
    border-bottom: 1px solid var(--dl-outline);
    transition: border-color var(--dl-motion), box-shadow var(--dl-motion);
}

.dl-editor-rahmen:focus-within {
    border-bottom-color: var(--dl-primary);
    box-shadow: inset 0 -2px 0 var(--dl-primary);
}

.dl-editor.is-invalid .dl-editor-rahmen {
    border-bottom-color: var(--bs-danger, #C8401F);
}

.dl-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    padding: .3rem .4rem;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.dl-editor-toolbar button {
    border: 0;
    background: transparent;
    border-radius: var(--dl-radius-s);
    width: 32px;
    height: 32px;
    color: var(--dl-on-surface);
    transition: background-color var(--dl-motion);
}

.dl-editor-toolbar button:hover {
    background-color: rgba(var(--dl-primary-rgb), .10);
}

.dl-editor-toolbar button.aktiv {
    background-color: rgba(var(--dl-primary-rgb), .18);
    color: var(--dl-primary);
}

.dl-editor-trenner {
    width: 1px;
    height: 20px;
    background-color: var(--dl-outline);
    margin: 0 .25rem;
}

.dl-editor-flaeche {
    min-height: 110px;
    max-height: 400px;
    overflow-y: auto;
    padding: .6rem .75rem;
    outline: none;
    overflow-wrap: anywhere;
}

.dl-editor-flaeche.ist-leer::before {
    content: attr(data-placeholder);
    color: #6B6A62;
    pointer-events: none;
    position: absolute;
}

.dl-editor-flaeche p,
.guide-beschreibung p {
    margin-bottom: .5rem;
}

.dl-editor-flaeche ul,
.dl-editor-flaeche ol,
.guide-beschreibung ul,
.guide-beschreibung ol {
    margin-bottom: .5rem;
    padding-left: 1.4rem;
}

.dl-editor-flaeche blockquote,
.guide-beschreibung blockquote {
    border-left: 3px solid var(--dl-outline);
    padding-left: .75rem;
    color: #6b6a62;
}

.guide-beschreibung > :last-child {
    margin-bottom: 0;
}

.guide-offline {
    background-color: #fff8e1;
    border-left: 3px solid #F0C020;
    border-radius: var(--dl-radius-m);
    padding: .75rem 1rem;
}

/* Redaktioneller Zwischentext zwischen zwei Stationen */
.guide-zwischentext {
    position: relative;
    margin: .4rem 0 .7rem calc(16px + .75rem);
    padding: .2rem 0 .2rem 1.1rem;
    border-left: 3px dashed rgba(var(--dl-primary-rgb), .45);
    color: var(--dl-on-surface);
    font-size: .95rem;
}

.guide-zwischentext > :last-child {
    margin-bottom: 0;
}

.guide-zwischentext p {
    margin-bottom: .5rem;
}

/* Anbieterdetails in der Station (Guide-Seiten) */
.guide-station {
    flex-wrap: wrap;
}

.guide-station-details,
.guide-station-mehr {
    flex: 1 1 100%;
    min-width: 0;
}

.guide-station-details {
    border-top: 1px solid var(--dl-surface-variant);
    padding-top: .75rem;
    margin-top: .25rem;
    overflow-wrap: anywhere;
}

.guide-station-mehr > summary {
    color: var(--dl-primary);
    padding-left: calc(32px + .75rem);
}

.guide-station-mehr[open] > summary {
    margin-bottom: .25rem;
}

.guide-station-teaser {
    margin-bottom: .4rem;
}

.guide-station-teaser > :last-child {
    margin-bottom: 0;
}

.guide-info-titel {
    font-weight: 600;
    color: var(--dl-primary);
    font-size: .9rem;
    margin-bottom: .25rem;
}

.guide-info-liste {
    font-size: .875rem;
}

.guide-info-liste th {
    font-weight: 400;
    color: #6b6a62;
    padding: 0 .9rem .2rem 0;
    white-space: nowrap;
    vertical-align: top;
}

.guide-info-liste td {
    padding: 0 0 .2rem 0;
}

.guide-info-liste .bi {
    font-size: 1.05rem;
    margin-right: .35rem;
}

@media (min-width: 768px) {
    .guide-station-details {
        margin-left: calc(32px + .75rem);
    }
}

.guide-station-notiz {
    background-color: #fff8e1;
    border-radius: var(--dl-radius-s);
    padding: .3rem .6rem;
    margin-top: .35rem;
    font-size: .875rem;
}

/* Tourplanung im Guide */
.guide-planung {
    background-color: var(--dl-surface);
    border-radius: var(--dl-radius-m);
    box-shadow: var(--dl-elevation-1);
    padding: .6rem .9rem;
}

.guide-planung .form-select {
    width: auto;
    min-width: 190px;
}

.guide-strecke {
    font-weight: 600;
}

.guide-etappe {
    font-size: .8rem;
    color: #6B6A62;
    padding: 0 0 .35rem 1.05rem;
    margin-top: -.25rem;
}

.guide-status {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    border-radius: 999px;
    padding: .1rem .6rem;
    font-weight: 500;
}

.guide-status-offen {
    background-color: rgba(var(--dl-primary-rgb), .14);
    color: #4f6110;
}

.guide-status-zu {
    background-color: rgba(200, 64, 31, .14);
    color: #b2381f;
}

.guide-status-unbekannt {
    background-color: var(--dl-surface-variant);
    color: #6b6a62;
}

.guide-teilen {
    background-color: var(--dl-surface);
    border-radius: var(--dl-radius-m);
    box-shadow: var(--dl-elevation-1);
    padding: .75rem 1rem;
}

.guide-auswahl .form-check-input {
    margin: 0;
    flex: 0 0 auto;
}

/* Tastaturfokus: deutlich sichtbar (dunkles Grün, Kontrast > 3:1 auf allen Hintergründen) */
:focus-visible {
    outline: 3px solid #4a5a0e;
    outline-offset: 2px;
}

.btn:focus-visible {
    outline: 3px solid #4a5a0e !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #fff !important;
}

/* Eingabefelder zeigen den Fokus über die Unterstreichung */
.form-control:focus-visible {
    outline: none;
}

/* „Zum Inhalt springen“: erst bei Tastaturfokus sichtbar */
.sprunglink {
    position: absolute;
    left: .75rem;
    top: -4rem;
    z-index: 2000;
    padding: .6rem 1rem;
    border-radius: var(--dl-radius-m);
    background-color: #33342e;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
}

.sprunglink:focus {
    top: .75rem;
}

main:focus {
    outline: none;
}

/* Kontrast: Überschriften, Linkfarbe beim Darüberfahren, helle Abzeichen mit dunkler Schrift */
h2 {
    color: #5F7312 !important;
}

a:hover {
    color: #5F7312 !important;
}

/* Knöpfe als Link: beim Überfahren die Textfarbe des Knopfs behalten, nicht die grüne Link-Farbe */
a.btn:not(.btn-link):hover,
a.btn:not(.btn-link):focus-visible {
    color: var(--bs-btn-hover-color, var(--dl-on-surface)) !important;
}

a.btn-warning:hover,
a.btn-warning:focus-visible,
a.btn-light:hover,
a.btn-light:focus-visible {
    color: #33342e !important;
}

.text-success {
    color: #5F7312 !important;
}

.badge.bg-success,
.badge.bg-warning,
.btn-warning {
    color: #33342e !important;
}

/* Bewegungen abschalten, wenn das System es wünscht */
@media (prefers-reduced-motion: reduce) {
    .card,
    .card-img-top,
    .btn,
    .navbar .nav-link {
        transition: none;
    }

    .card:hover,
    .card:hover .card-img-top {
        transform: none;
    }
}

/* News: wichtige Meldungen mit Ausrufezeichen hervorheben */
.news-badge-wichtig {
    background-color: var(--dl-accent);
    color: #fff;
    font-weight: 600;
    margin-right: .35rem;
}

.card.news-wichtig {
    box-shadow: 0 0 0 2px var(--dl-accent), var(--dl-elevation-1) !important;
}

.news-wichtig-icon {
    color: var(--dl-accent);
    font-size: .85em;
    vertical-align: .05em;
}

.merkliste-box.news-wichtig {
    border-left: 4px solid var(--dl-accent);
}

.news-inhalt h2,
.news-inhalt h3 {
    margin-top: 1.5rem;
}

.news-badge-neu {
    background-color: var(--dl-primary);
    color: #fff;
    font-weight: 600;
    margin-right: .35rem;
}

/* News-Karten: Bild im festen Format, ohne Bild ein schmales Band */
.news-karte-bild {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--dl-radius-l) var(--dl-radius-l) 0 0;
    background-color: var(--dl-surface-variant);
}

.news-karte-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-karte-band,
.news-aufmacher-band {
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    height: 3.25rem;
    border-radius: var(--dl-radius-l) var(--dl-radius-l) 0 0;
    background: linear-gradient(120deg, rgba(var(--dl-primary-rgb), .16), rgba(var(--dl-primary-rgb), .05));
    color: var(--dl-primary);
    font-size: 1.4rem;
    text-decoration: none;
}

.news-karte.news-wichtig .news-karte-band,
.news-aufmacher.news-wichtig .news-aufmacher-band {
    background: linear-gradient(120deg, rgba(200, 64, 31, .18), rgba(200, 64, 31, .05));
    color: var(--dl-accent);
}

.news-karte .card-title a,
.news-aufmacher .card-title a {
    color: inherit;
    text-decoration: none;
}

.news-karte:hover .card-title a,
.news-aufmacher:hover .card-title a {
    color: var(--dl-primary);
}

/* Aufmacher in der Übersicht */
.news-aufmacher-bild {
    width: 100%;
    height: 100%;
    min-height: 16rem;
    object-fit: cover;
    border-radius: var(--dl-radius-l) 0 0 var(--dl-radius-l);
}

.news-aufmacher-band {
    height: 100%;
    min-height: 6rem;
    justify-content: center;
    font-size: 3.5rem;
    border-radius: var(--dl-radius-l) 0 0 var(--dl-radius-l);
}

@media (max-width: 767.98px) {
    .news-aufmacher-bild {
        min-height: 12rem;
        max-height: 16rem;
        border-radius: var(--dl-radius-l) var(--dl-radius-l) 0 0;
    }

    .news-aufmacher-band {
        min-height: 4rem;
        font-size: 2rem;
        border-radius: var(--dl-radius-l) var(--dl-radius-l) 0 0;
    }
}

/* Einzelseite: angenehme Zeilenlänge */
.news-artikel {
    max-width: 46rem;
}

article.news-artikel {
    padding: 1.75rem;
    border-radius: var(--dl-radius-l);
    background-color: var(--dl-surface);
    box-shadow: var(--dl-elevation-1);
}

article.news-artikel.news-wichtig {
    border-left: 4px solid var(--dl-accent);
}

.news-artikel-titel {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    margin-bottom: .6rem;
}

.news-artikel-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 1rem;
    row-gap: .35rem;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--dl-surface-variant);
}

.news-artikel-meta .news-meta {
    margin-bottom: 0 !important;
}

.news-artikel-bild img {
    border-radius: var(--dl-radius-m);
}

.news-artikel .news-inhalt {
    font-size: 1.05rem;
    line-height: 1.7;
}

.news-blaettern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--dl-surface-variant);
}

.news-blaettern-link {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .75rem 1rem;
    border-radius: var(--dl-radius-m);
    background-color: var(--dl-surface-variant);
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.news-blaettern-link:hover {
    background-color: rgba(var(--dl-primary-rgb), .12);
}

.news-blaettern-neuer {
    grid-column: 2;
    text-align: right;
}

@media (max-width: 575.98px) {
    article.news-artikel {
        padding: 1.25rem;
    }

    .news-blaettern {
        grid-template-columns: 1fr;
    }

    .news-blaettern-neuer {
        grid-column: 1;
    }
}

.news-inhalt img {
    max-width: 100%;
    height: auto;
}

/* Benutzerbereich: Passwort-Regeln live abhaken */
.passwort-regeln li {
    color: var(--dl-outline);
    margin-bottom: .2rem;
    transition: color var(--dl-motion);
}

.passwort-regeln li.erfuellt {
    color: var(--dl-primary);
}

.passwort-regeln li i {
    margin-right: .35rem;
}

/* Local-Partner: Übersicht und Detailseite */
.dashboard-kachel-statisch:hover {
    box-shadow: var(--dl-elevation-1);
    transform: none;
}

.partner-karte {
    position: relative;
    padding-top: 2.75rem;
}

.partner-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--dl-surface-variant);
    border: 3px solid var(--dl-surface);
    box-shadow: var(--dl-elevation-1);
    color: var(--dl-primary);
    font-weight: 700;
    font-size: 1.6rem;
    text-decoration: none;
}

.partner-karte .partner-avatar {
    position: absolute;
    top: -36px;
    left: 1rem;
}

.partner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-avatar-gross {
    width: 120px;
    height: 120px;
    flex: none;
    font-size: 2.6rem;
}

.partner-kopf {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.partner-region {
    background-color: rgba(var(--dl-primary-rgb), .12);
    color: var(--dl-primary);
    font-weight: 500;
    margin: 0 .25rem .25rem 0;
}

.partner-karte-map #map {
    height: 420px;
}

@media (max-width: 575.98px) {
    .partner-kopf {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .partner-kopf .d-flex {
        justify-content: center;
    }

    .partner-karte-map #map {
        height: 320px;
    }
}

/* Bewertungen: Sterne, Kurzanzeige in Kacheln, Formular und Liste */
.bewertung-sterne {
    color: #E8A317;
    white-space: nowrap;
    letter-spacing: .05em;
}

.bewertung-kurz {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .875rem;
    text-decoration: none;
    color: var(--dl-on-surface) !important;
}

.bewertung-kurz:hover .bewertung-schnitt {
    text-decoration: underline;
}

.bewertung-schnitt {
    font-weight: 600;
}

.bewertung-anzahl {
    color: #6b6a62;
}

.bewertung-gesamt .bewertung-sterne {
    font-size: 1.15rem;
}

.sterne-auswahl {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: .15rem;
}

.sterne-auswahl input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sterne-auswahl label {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--dl-outline);
    cursor: pointer;
    transition: color var(--dl-motion), transform var(--dl-motion);
}

/* gewählter Stern und alle davor (row-reverse: „davor“ = nachfolgende Geschwister) */
.sterne-auswahl input:checked ~ label,
.sterne-auswahl label:hover,
.sterne-auswahl label:hover ~ label {
    color: #E8A317;
}

.sterne-auswahl label:hover {
    transform: scale(1.12);
}

.sterne-auswahl input:focus-visible + label {
    outline: 2px solid var(--dl-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.bewertung-eintrag {
    border-top: 1px solid var(--dl-surface-variant);
    padding: .75rem 0;
}

.bewertung-eintrag:first-child {
    border-top: 0;
}

.bewertung-war-da {
    background-color: rgba(var(--dl-primary-rgb), .12);
    color: var(--dl-primary);
    font-weight: 500;
}

.bewertung-eigene-pruefung {
    border: 1px dashed var(--dl-outline);
    border-radius: var(--dl-radius-m);
    padding: .6rem .9rem;
}

/* Meine Bewertungen */
.meine-bewertung-bild img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--dl-radius-m);
}

.min-w-0 {
    min-width: 0;
}

@media (max-width: 575.98px) {
    .meine-bewertung-bild img {
        width: 52px;
        height: 52px;
    }
}

/* Anbieterseite (Detailansicht) */
.anbieter-status {
    font-weight: 600;
    padding: .4em .7em;
    text-decoration: none;
}

.anbieter-status-offen {
    background-color: rgba(var(--dl-primary-rgb), .15);
    color: var(--dl-primary) !important;
}

.anbieter-status-zu {
    background-color: rgba(179, 80, 52, .12);
    color: var(--dl-tertiary) !important;
}

.anbieter-badges .badge {
    margin: 0 .2rem .3rem 0;
}

.anbieter-aktionen {
    display: grid;
    gap: .6rem;
}

.anbieter-aktionen .merkliste-merken > summary {
    display: flex;
}

.anbieter-karte {
    height: 300px !important;
    border-radius: 0;
    box-shadow: none;
}

.anbieter-zeiten th,
.anbieter-zeiten td {
    background: transparent !important;
    border: 0;
    padding: .2rem 0;
    font-weight: 400;
}

.anbieter-zeiten .anbieter-heute th,
.anbieter-zeiten .anbieter-heute td {
    font-weight: 700;
    color: var(--dl-primary);
}

.anbieter-infos {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 1rem;
    row-gap: .45rem;
}

.anbieter-infos dt {
    font-weight: 500;
    color: #6b6a62;
}

.anbieter-infos dd {
    margin: 0;
    min-width: 0;
}

.anbieter-social a {
    font-size: 1.25rem;
    margin-right: .5rem;
}

.anbieter-bild {
    border-radius: var(--dl-radius-m);
}

.anbieter-teaser {
    font-size: 1.1rem;
}

.anbieter-text img {
    max-width: 100%;
    height: auto;
}

@media (min-width: 992px) {
    .anbieter-seitenleiste {
        position: sticky;
        top: 1rem;
    }
}

@media (max-width: 575.98px) {
    .anbieter-infos {
        grid-template-columns: 1fr;
        row-gap: 0;
    }

    .anbieter-infos dd {
        margin-bottom: .5rem;
    }
}

/* Anbieter-Kachel (überall) */
.anbieter-kachel-bild {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background-color: var(--dl-surface-variant);
    overflow: hidden;
}

.anbieter-kachel-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dl-motion);
}

.anbieter-kachel:hover .anbieter-kachel-bild img {
    transform: scale(1.04);
}

.anbieter-kachel-leer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 2.6rem;
    color: var(--dl-outline);
}

.anbieter-kachel-chips {
    position: absolute;
    top: .6rem;
    left: .6rem;
    right: .6rem;
    display: flex;
    gap: .35rem;
    pointer-events: none;
}

.anbieter-kachel-chips .badge {
    box-shadow: var(--dl-elevation-1);
    backdrop-filter: blur(4px);
}

.anbieter-kachel-chips .anbieter-status-offen {
    background-color: rgba(255, 255, 255, .92);
}

.anbieter-kachel-chips .anbieter-status-zu {
    background-color: rgba(255, 255, 255, .92);
}

.anbieter-kachel-tipp-badge {
    background-color: #F0C020;
    color: #3d3300;
    font-weight: 600;
}

.anbieter-kachel-tipp {
    box-shadow: 0 0 0 2px #F0C020, var(--dl-elevation-1) !important;
}

.anbieter-kachel-titel {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.anbieter-kachel-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #55554d;
}

.anbieter-kachel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
}

.anbieter-chip {
    background-color: var(--dl-surface-variant);
    color: var(--dl-on-surface) !important;
    font-weight: 500;
    text-decoration: none;
}

a.anbieter-chip:hover {
    background-color: rgba(var(--dl-primary-rgb), .15);
}

.anbieter-chip-mehr {
    color: #6b6a62 !important;
}

/* Filter-/Sortierleiste über dem Raster */
.anbieter-leiste {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.25rem;
    background-color: var(--dl-surface);
    border-radius: var(--dl-radius-l);
    box-shadow: var(--dl-elevation-1);
    padding: .7rem 1rem;
}

.anbieter-leiste-suche {
    position: relative;
    flex: 1 1 240px;
    max-width: 360px;
}

.anbieter-leiste-suche .bi {
    position: absolute;
    left: .7rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8a897f;
}

.anbieter-leiste-suche input {
    padding-left: 2rem;
}

.anbieter-leiste-sortierung {
    width: auto;
}

/* Kategorie-Seiten */
.kategorie-bild {
    border-radius: var(--dl-radius-l);
    max-height: 280px;
    object-fit: cover;
}

.kategorie-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.kategorie-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background-color: var(--dl-surface);
    border: 1px solid var(--dl-surface-variant);
    border-radius: 999px;
    padding: .3rem .8rem .3rem .35rem;
    text-decoration: none;
    color: var(--dl-on-surface) !important;
    box-shadow: var(--dl-elevation-1);
    transition: box-shadow var(--dl-motion), transform var(--dl-motion);
}

.kategorie-chip:hover {
    box-shadow: var(--dl-elevation-2);
    transform: translateY(-1px);
}

.kategorie-chip img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.kategorie-chip > .bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(var(--dl-primary-rgb), .12);
    color: var(--dl-primary);
}

.kategorie-chip-zahl {
    font-size: .75rem;
    font-weight: 600;
    background-color: var(--dl-surface-variant);
    border-radius: 999px;
    padding: .05rem .45rem;
}

.kategorie-chip-tipp {
    border-color: #F0C020;
}

/* Anbieterseite: mehrere Bilder als Galerie, Klick vergrößert */
.anbieter-galerie {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .5rem;
}

.anbieter-galerie-bild {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--dl-radius-m, 12px);
    background-color: var(--dl-surface-variant);
}

.anbieter-galerie-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dl-motion);
}

.anbieter-galerie-bild:hover img {
    transform: scale(1.04);
}

.galerie-dialog {
    border: 0;
    padding: 0;
    max-width: min(96vw, 1200px);
    max-height: 92vh;
    background: transparent;
    overflow: visible;
}

.galerie-dialog::backdrop {
    background: rgba(20, 20, 18, .88);
}

.galerie-dialog img {
    display: block;
    max-width: min(96vw, 1200px);
    max-height: 82vh;
    margin: 0 auto;
    border-radius: 8px;
}

.galerie-dialog figcaption {
    color: #ffffff;
    text-align: center;
    font-size: .9rem;
    margin-top: .5rem;
}

.galerie-dialog-zu,
.galerie-dialog-pfeil {
    position: fixed;
    border: 0;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, .9);
    color: #1f201c;
    font-size: 1.25rem;
}

.galerie-dialog-zu {
    top: 1rem;
    right: 1rem;
}

.galerie-dialog-pfeil {
    top: 50%;
    transform: translateY(-50%);
}

.galerie-dialog-zurueck {
    left: 1rem;
}

.galerie-dialog-weiter {
    right: 1rem;
}

/* Kopf bleibt beim Scrollen stehen – mit der oberen Zeile (Konto, Merkliste, Guides) */
.seitenkopf {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.seitenkopf .dl-logo {
    transition: max-width var(--dl-motion);
}

.seitenkopf .navbar {
    transition: padding var(--dl-motion);
}

.seitenkopf-kompakt .navbar {
    padding-top: .15rem;
    padding-bottom: .15rem;
}

.seitenkopf .topbar {
    transition: padding var(--dl-motion);
}

.seitenkopf-kompakt .topbar {
    padding-top: .15rem !important;
    padding-bottom: .15rem !important;
}

.seitenkopf-kompakt .navbar .dl-logo {
    max-width: 170px;
}

@media (max-width: 991.98px) {
    .seitenkopf-kompakt .navbar .dl-logo {
        max-width: 120px;
    }
}

/* Sprungmarken (#oeffnungszeiten …) nicht unter dem festen Kopf verstecken */
html {
    scroll-padding-top: calc(var(--seitenkopf-hoehe, 80px) + .75rem);
}

/* Umrandete Knöpfe: beim Überfahren in den Markenfarben (statt Bootstrap-Grau/-Blau), Text gut lesbar */
.btn-outline-secondary {
    --bs-btn-hover-bg: #5F7312;
    --bs-btn-hover-border-color: #5F7312;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-active-bg: #4d5d0e;
    --bs-btn-active-border-color: #4d5d0e;
    --bs-btn-active-color: #ffffff;
}

.btn-outline-primary {
    --bs-btn-color: #B35034;
    --bs-btn-border-color: #B35034;
    --bs-btn-hover-bg: #B35034;
    --bs-btn-hover-border-color: #B35034;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-active-bg: #96432b;
    --bs-btn-active-border-color: #96432b;
    --bs-btn-active-color: #ffffff;
}

.btn-outline-danger {
    --bs-btn-color: #B33A1C;
    --bs-btn-border-color: #C8401F;
    --bs-btn-hover-bg: #B33A1C;
    --bs-btn-hover-border-color: #B33A1C;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-active-bg: #9a3118;
    --bs-btn-active-border-color: #9a3118;
    --bs-btn-active-color: #ffffff;
}

.btn-outline-success {
    --bs-btn-color: #5F7312;
    --bs-btn-border-color: #5F7312;
    --bs-btn-hover-bg: #5F7312;
    --bs-btn-hover-border-color: #5F7312;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-active-bg: #4d5d0e;
    --bs-btn-active-border-color: #4d5d0e;
    --bs-btn-active-color: #ffffff;
}

/* helles Grün mit weißer Schrift war kaum lesbar */
.btn-success {
    color: #33342e !important;
}

/* Lade-Platzhalter: Bildfläche bleibt in Seitenfarbe (mit leichtem Schimmer), das Bild blendet nach dem Laden ein */
.bilder-js :is(.anbieter-kachel-bild, .anbieter-der-woche-bild, .anbieter-der-woche-klein-bild, .guide-vorschau) img {
    opacity: 0;
    transition: opacity .35s ease, transform var(--dl-motion);
}

.bilder-js :is(.anbieter-kachel-bild, .anbieter-der-woche-bild, .anbieter-der-woche-klein-bild, .guide-vorschau) img.geladen {
    opacity: 1;
}

.bilder-js :is(.anbieter-kachel-bild, .anbieter-der-woche-bild, .anbieter-der-woche-klein-bild, .guide-vorschau):has(img:not(.geladen)) {
    background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: bild-schimmer 1.4s linear infinite;
}

@keyframes bild-schimmer {
    from { background-position: 150% 0; }
    to { background-position: -50% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .bilder-js :is(.anbieter-kachel-bild, .anbieter-der-woche-bild, .anbieter-der-woche-klein-bild, .guide-vorschau):has(img:not(.geladen)) {
        animation: none;
    }

    .bilder-js :is(.anbieter-kachel-bild, .anbieter-der-woche-bild, .anbieter-der-woche-klein-bild, .guide-vorschau) img {
        transition: none;
    }
}

/* Anbieterseite am Handy: Zeiten · Anrufen · Route direkt unter dem Kopf */
.anbieter-schnellleiste {
    display: flex;
    gap: .5rem;
}

.anbieter-schnellleiste a {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    padding: .5rem .25rem;
    border: 1px solid var(--dl-surface-variant);
    border-radius: 12px;
    background-color: var(--dl-surface);
    color: var(--dl-on-surface);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
}

.anbieter-schnellleiste a .bi {
    font-size: 1.15rem;
    color: var(--dl-primary);
}

/* Orte und Regionen gruppiert: Bundesland, darunter Landkreise und (kleiner) Orte */
.regionen-baum {
    display: grid;
    gap: 1rem;
}

.regionen-baum-titel {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    color: var(--dl-on-surface);
    text-decoration: none;
}

.regionen-baum-titel:hover {
    text-decoration: underline;
}

.regionen-baum-titel .bi {
    color: var(--dl-primary);
}

.regionen-baum .kategorie-chip {
    padding-left: .8rem;
}

.regionen-baum .kategorie-chip-klein {
    font-size: .85rem;
    box-shadow: none;
}

.kategorie-karte #map {
    height: 420px;
}

@media (max-width: 575.98px) {
    .anbieter-leiste-suche {
        max-width: none;
        flex-basis: 100%;
    }

    .kategorie-karte #map {
        height: 300px;
    }
}

/* Startseite */
.startseite-intro h1 {
    margin-bottom: .75rem;
}

.startseite-suche {
    background-color: var(--dl-surface-variant);
    border-radius: var(--dl-radius-l);
    padding: 1.1rem 1.2rem;
}

.startseite-suche .form-control,
.suche-formular .form-control {
    font-size: 1.05rem;
}

/* Suchfeld und Button als eine durchgehende Pille (Startseite, Suchseite) */
.startseite-suche .input-group > .btn,
.suche-formular .input-group > .btn {
    border-radius: 0 999px 999px 0 !important;
    padding-inline: 1.1rem 1.3rem;
}

.startseite-zahl {
    display: flex;
    flex-direction: column;
    background-color: var(--dl-surface);
    border-radius: var(--dl-radius-m);
    box-shadow: var(--dl-elevation-1);
    padding: .5rem .25rem;
    text-decoration: none;
    color: var(--dl-on-surface) !important;
}

.startseite-zahl b {
    font-size: 1.5rem;
    line-height: 1.1;
    color: var(--dl-primary);
}

.startseite-zahl span {
    font-size: .8rem;
    color: #6b6a62;
}

.startseite-kategorie {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--dl-surface);
}

.startseite-abschnitt-icon {
    color: var(--dl-primary);
    font-size: .85em;
}

/* In deiner Nähe: Entfernung auf der Kachel */
.anbieter-entfernung {
    background-color: rgba(255, 255, 255, .92);
    color: var(--dl-on-surface);
    font-weight: 600;
}

/* Anbieter der Woche */
.anbieter-der-woche {
    background-color: var(--dl-surface);
    border-radius: var(--dl-radius-l);
    box-shadow: 0 0 0 2px #F0C020, var(--dl-elevation-2);
    overflow: hidden;
}

.anbieter-der-woche-bild {
    display: block;
    height: 100%;
    min-height: 240px;
    background-color: var(--dl-surface-variant);
}

.anbieter-der-woche-bild img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    max-height: 380px;
    object-fit: cover;
}

.anbieter-der-woche-text {
    padding: 1.4rem 1.6rem;
}

.anbieter-der-woche-badge {
    background-color: #F0C020;
    color: #3d3300;
    font-weight: 700;
    padding: .45em .75em;
}

@media (max-width: 767.98px) {
    .anbieter-der-woche-bild,
    .anbieter-der-woche-bild img {
        min-height: 0;
        max-height: 220px;
    }

    .anbieter-der-woche-text {
        padding: 1rem 1.1rem 1.2rem;
    }
}

.anbieter-der-woche-klein {
    display: flex;
    gap: .9rem;
    align-items: stretch;
    background-color: var(--dl-surface);
    border-radius: var(--dl-radius-l);
    box-shadow: 0 0 0 1px #F0C020, var(--dl-elevation-1);
    overflow: hidden;
    text-decoration: none;
    color: var(--dl-on-surface) !important;
    transition: box-shadow var(--dl-motion), transform var(--dl-motion);
}

.anbieter-der-woche-klein:hover {
    box-shadow: 0 0 0 2px #F0C020, var(--dl-elevation-2);
    transform: translateY(-2px);
}

.anbieter-der-woche-klein-bild {
    flex: 0 0 38%;
    min-height: 130px;
    background-color: var(--dl-surface-variant);
}

.anbieter-der-woche-klein-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.anbieter-der-woche-klein-text {
    padding: .8rem .9rem .8rem 0;
    min-width: 0;
}

/* Anbieterseite: Kurzlink-Feld mit Kopieren-Knopf */
.anbieter-kurzlink .form-control {
    min-width: 0;
    font-size: .85rem;
    background-color: var(--dl-surface-variant);
}

.anbieter-kurzlink .btn {
    white-space: nowrap;
}

/* Guides: Abschlusstext nach allen Stationen */
.guide-abschluss {
    background-color: var(--dl-surface-variant);
    border-left: 4px solid var(--dl-primary);
    border-radius: var(--dl-radius-m);
    padding: 1rem 1.2rem;
}

.guide-abschluss-titel {
    font-weight: 600;
    color: var(--dl-primary);
    margin-bottom: .4rem;
}

.guide-abschluss > :last-child {
    margin-bottom: 0;
}

/* Suchseite: Zusammenfassung der Treffer als Sprungmarken */
.suche-zusammenfassung {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.suche-zusammenfassung .badge {
    font-size: .85rem;
    font-weight: 600;
}

#suche-themen,
#suche-anbieter,
#suche-guides,
#suche-news {
    scroll-margin-top: 1rem;
}

/* Produktseiten: „Fehlt ein Produkt?“ */
.produkt-vorschlag-box > summary {
    list-style: none;
    cursor: pointer;
}

.produkt-vorschlag-box > summary::-webkit-details-marker {
    display: none;
}

.kategorie-chip.kategorie-chip-vorschlag {
    border-style: dashed;
    border-color: var(--dl-outline, #b9b9a8);
    box-shadow: none;
    background-color: transparent;
    padding-left: .45rem;
}

.produkt-vorschlag-box[open] > summary {
    box-shadow: var(--dl-elevation-1);
    background-color: var(--dl-surface);
}

#produkt-vorschlag {
    scroll-margin-top: 1rem;
}

/* Öffnungsstatus „öffnet/schließt bald“ und 24/7 */
.anbieter-status-bald {
    background-color: rgba(240, 192, 32, .22);
    color: #6b5300 !important;
}

.anbieter-status-247 {
    background-color: #2f3b52;
    color: #fff !important;
}

.anbieter-kachel-chips .anbieter-status-bald {
    background-color: rgba(255, 246, 214, .95);
}

/* Umkreissuche: Ort, Umkreis und Button in einer Pille */
.umkreis-formular .umkreis-km {
    flex: 0 0 6.5rem;
    border-radius: 0 !important;
}

.umkreis-hinweis {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    background-color: var(--dl-surface-variant);
    border-radius: var(--dl-radius-l);
    padding: .6rem .9rem;
}

.umkreis-hinweis .kategorie-chip {
    padding: .25rem .8rem;
}

.umkreis-formular-klein {
    width: 15rem;
    max-width: 100%;
}

.umkreis-formular-klein .form-control {
    font-size: .95rem;
}

/* Saisonkalender */
.saison-monate {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.saison-monat {
    min-width: 3.1rem;
    text-align: center;
    padding: .3rem .6rem;
    border-radius: 999px;
    background-color: var(--dl-surface);
    border: 1px solid var(--dl-surface-variant);
    color: var(--dl-on-surface) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
}

.saison-monat.heute {
    border-color: var(--dl-primary);
}

.saison-monat.aktiv {
    background-color: var(--dl-primary);
    border-color: var(--dl-primary);
    color: #fff !important;
}

.saison-chip > .bi {
    color: var(--dl-primary);
}

.saison-chip-leer {
    opacity: .7;
}

.saison-hinweis {
    border-radius: var(--dl-radius-m);
    padding: .6rem .9rem;
    height: 100%;
}

.saison-hinweis-neu {
    background-color: rgba(var(--dl-primary-rgb), .12);
}

.saison-hinweis-ende {
    background-color: rgba(240, 192, 32, .2);
}

.saison-tabelle th[scope="row"] {
    white-space: nowrap;
    font-weight: 500;
    padding-left: .8rem;
}

.saison-tabelle thead th {
    font-size: .8rem;
}

.saison-gruppe th {
    background-color: var(--dl-surface-variant) !important;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding-left: .8rem;
}

.saison-zelle {
    min-width: 2.2rem;
}

.saison-zelle.an {
    background-color: rgba(var(--dl-primary-rgb), .55) !important;
    box-shadow: inset 0 0 0 2px #fff;
    border-radius: 6px;
}

.saison-spalte-aktiv {
    background-color: rgba(240, 192, 32, .16) !important;
}

.saison-zelle.an.saison-spalte-aktiv {
    background-color: var(--dl-primary) !important;
}

.saison-badge {
    background-color: rgba(var(--dl-primary-rgb), .15);
    color: var(--dl-primary) !important;
    font-weight: 600;
}

.kategorie-chip.saison-jetzt {
    border-color: rgba(var(--dl-primary-rgb), .6);
}

/* Aktuelles vom Hof */
.hof-aktuell {
    background-color: #fff8e1;
    border-left: 4px solid #F0C020;
    border-radius: var(--dl-radius-m);
    padding: .9rem 1.1rem;
}

.hof-aktuell h2 {
    color: #6b5300;
}

.hof-aktuell-eintrag + .hof-aktuell-eintrag {
    border-top: 1px dashed rgba(107, 83, 0, .25);
    margin-top: .6rem;
    padding-top: .6rem;
}

.hof-aktuell-karte {
    background-color: var(--dl-surface);
    border-radius: var(--dl-radius-l);
    box-shadow: var(--dl-elevation-1);
    padding: .9rem 1rem;
    border-top: 3px solid #F0C020;
}

.hof-aktuell-kopf {
    display: flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    color: var(--dl-on-surface) !important;
}

.hof-aktuell-kopf img,
.hof-aktuell-leer {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 44px;
}

.hof-aktuell-leer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dl-surface-variant);
}

.anbieter-status-aktuell {
    background-color: #fff3c4;
    color: #6b5300 !important;
}

.anbieter-kachel-chips .anbieter-status-aktuell {
    background-color: rgba(255, 243, 196, .95);
}

/* ==========================================================================
   Guides im Magazin-Layout
   ========================================================================== */
.mag-seite {
    --mag-serif: Georgia, "Noto Serif", "Times New Roman", serif;
    --mag-ink: #1f201c;
    --mag-akzent: #B35034;
    --mag-linie: #dcd6c8;
}

.mag-kicker,
.mag-rubrik {
    font-family: "Miranda Sans", sans-serif;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .72rem;
    font-weight: 700;
    color: var(--mag-akzent);
    margin-bottom: .6rem;
}

.mag-rubrik {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1rem;
}

.mag-rubrik span {
    color: #6B6A62;
}

.mag-rubrik a {
    color: var(--mag-akzent);
    text-decoration: none;
}

.mag-kopf {
    max-width: 52rem;
    margin: 1rem auto 2rem;
    text-align: center;
}

.mag-kopf .mag-rubrik,
.mag-kopf .d-flex {
    justify-content: center;
}

.mag-h1 {
    font-family: var(--mag-serif) !important;
    font-weight: 400;
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -.01em;
    color: var(--mag-ink);
    margin-bottom: 1.2rem;
}

.mag-vorspann {
    font-family: var(--mag-serif);
    font-size: 1.2rem;
    line-height: 1.6;
    font-style: italic;
    color: #4a4b44;
}

.mag-vorspann p {
    margin-bottom: .6rem;
}

.mag-titelbild {
    margin: 0 0 2.5rem;
}

.mag-titelbild img {
    width: 100%;
    max-height: 70vh;
    object-fit: cover;
    border-radius: 2px;
}

.mag-titelbild figcaption,
.mag-zwischen-figur figcaption {
    font-size: .78rem;
    color: #6B6A62;
    margin-top: .4rem;
    font-style: italic;
}

/* Inhalt und Route */
.mag-route {
    border-top: 1px solid var(--mag-linie);
    border-bottom: 1px solid var(--mag-linie);
    padding: 1.6rem 0;
    margin-bottom: 1.5rem;
}

.mag-inhalt ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mag-inhalt li + li {
    border-top: 1px solid var(--mag-linie);
}

.mag-inhalt a {
    display: flex;
    gap: .9rem;
    align-items: baseline;
    padding: .55rem 0;
    text-decoration: none;
    color: var(--mag-ink) !important;
}

.mag-inhalt a:hover b {
    color: var(--mag-akzent);
}

.mag-inhalt-nr {
    font-family: var(--mag-serif);
    font-size: 1.4rem;
    color: var(--mag-akzent);
    min-width: 2rem;
}

.mag-inhalt b {
    font-family: var(--mag-serif);
    font-weight: 400;
    font-size: 1.05rem;
    display: block;
}

.mag-inhalt small {
    color: #6B6A62;
    font-size: .78rem;
}

/* Stationen */
.mag-station {
    padding: 3rem 0;
    scroll-margin-top: 1rem;
}

.mag-station + .mag-station {
    border-top: 1px solid var(--mag-linie);
}

.mag-titel {
    font-family: var(--mag-serif) !important;
    font-weight: 400;
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    line-height: 1.1;
    margin-bottom: .8rem;
}

.mag-titel a {
    color: var(--mag-ink) !important;
    text-decoration: none;
}

.mag-titel a:hover {
    color: var(--mag-akzent) !important;
}

.mag-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .3rem 1rem;
    margin-bottom: .4rem;
}

.mag-lead {
    font-family: var(--mag-serif);
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--mag-ink);
    margin: 1rem 0 .8rem;
}

.mag-lead::first-letter {
    float: left;
    font-size: 3.6em;
    line-height: .82;
    padding: .06em .1em 0 0;
    color: var(--mag-akzent);
    font-family: var(--mag-serif);
}

.mag-fliesstext {
    font-size: .95rem;
    line-height: 1.7;
    color: #4a4b44;
}

@media (min-width: 992px) {
    .mag-zweispaltig {
        column-count: 2;
        column-gap: 2.5rem;
    }
}

.mag-nummer {
    position: absolute;
    left: 1rem;
    bottom: .4rem;
    font-family: var(--mag-serif);
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    line-height: 1;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
    pointer-events: none;
}

.mag-nummer-text {
    position: static;
    display: block;
    color: var(--mag-akzent);
    text-shadow: none;
    margin-bottom: .2rem;
}

.mag-aufmacher-bild,
.mag-bild {
    position: relative;
    margin: 0;
}

.mag-aufmacher-bild {
    margin-bottom: 2rem;
}

.mag-aufmacher-bild > a img {
    display: block;
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    border-radius: 2px;
}

.mag-bild > a img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 4.4;
    object-fit: cover;
    border-radius: 2px;
}

/* zweites Bild als Einklinker mit weißem Rahmen */
.mag-einklinker {
    position: absolute;
    width: 38%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 6px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    right: -1.2rem;
    bottom: -1.6rem;
}

.mag-aufmacher-bild .mag-einklinker {
    width: 22%;
    right: 1.5rem;
    bottom: -2rem;
}

.mag-rechts .mag-einklinker {
    right: auto;
    left: -1.2rem;
}

@media (max-width: 767.98px) {
    .mag-aufmacher-bild > a img {
        aspect-ratio: 4 / 3;
    }

    .mag-einklinker,
    .mag-rechts .mag-einklinker {
        right: .6rem;
        left: auto;
        bottom: -1.2rem;
        width: 34%;
    }
}

.mag-text {
    position: relative;
}

.mag-aufmacher .mag-text,
.mag-ohnebild .mag-text {
    max-width: 52rem;
    margin: 0 auto;
}

.mag-tipp {
    margin: 1rem 0;
    padding: .2rem 0 .2rem 1rem;
    border-left: 3px solid #F0C020;
    font-family: var(--mag-serif);
    font-style: italic;
}

.mag-tipp span {
    display: block;
    font-family: "Miranda Sans", sans-serif;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .68rem;
    font-weight: 700;
    color: #8a6d00;
}

.mag-aktionen {
    margin-top: 1.2rem;
}

.mag-mehr {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .75rem;
    font-weight: 700;
    color: var(--mag-ink) !important;
    text-decoration: none;
    border-bottom: 2px solid var(--mag-akzent);
    padding-bottom: .15rem;
}

.mag-mehr:hover {
    color: var(--mag-akzent) !important;
}

.mag-details {
    margin-top: 1rem;
    border-top: 1px solid var(--mag-linie);
    padding-top: .6rem;
}

.mag-details summary {
    font-size: .82rem;
    color: #6b6a62;
    cursor: pointer;
}

.mag-details[open] summary {
    margin-bottom: .6rem;
}

/* Etappe zwischen den Stationen */
.mag-etappe {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #6B6A62;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    padding: .4rem 0;
}

.mag-etappe::before,
.mag-etappe::after {
    content: "";
    flex: 1;
    border-top: 1px dashed var(--mag-linie);
}

/* Zwischentexte als redaktionelle Elemente */
.mag-zwischen {
    padding: 3rem 0;
    border-top: 1px solid var(--mag-linie);
}

.mag-zwischen-text {
    font-family: var(--mag-serif);
    font-size: 1.12rem;
    line-height: 1.7;
    color: var(--mag-ink);
}

.mag-zwischen:not(.mag-zwischen-bild) .mag-zwischen-text {
    max-width: 44rem;
    margin: 0 auto;
    text-align: center;
}

.mag-ornament {
    display: block;
    color: var(--mag-akzent);
    font-size: 1.2rem;
    margin-bottom: .8rem;
}

.mag-zwischen-text h2,
.mag-zwischen-text h3 {
    font-family: var(--mag-serif) !important;
    font-weight: 400;
    color: var(--mag-ink);
    line-height: 1.15;
}

.mag-zwischen-text h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    margin-bottom: 1rem;
}

.mag-zwischen-text h3 {
    font-size: 1.35rem;
    font-style: italic;
    margin-bottom: .7rem;
}

.mag-zwischen-text blockquote {
    margin: 1.6rem 0;
    padding: 1.2rem 0;
    border-top: 2px solid var(--mag-ink);
    border-bottom: 2px solid var(--mag-ink);
    font-size: clamp(1.35rem, 2.6vw, 1.8rem);
    line-height: 1.35;
    font-style: italic;
}

.mag-zwischen-text blockquote::before {
    content: "\201C";
    display: block;
    font-size: 4rem;
    line-height: .6;
    color: var(--mag-akzent);
    margin-bottom: .4rem;
}

.mag-zwischen-text blockquote p:last-child,
.mag-zwischen-text > :last-child {
    margin-bottom: 0;
}

.mag-zwischen-figur {
    margin: 0;
}

.mag-zwischen-figur img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 2px;
}

/* Abschluss */
.mag-abschluss {
    max-width: 44rem;
    margin: 2rem auto 0;
    padding: 2.5rem 0 1rem;
    border-top: 2px solid var(--mag-ink);
    text-align: center;
}

.mag-abschluss-text {
    font-family: var(--mag-serif);
    font-size: 1.15rem;
    line-height: 1.7;
}

.mag-signatur {
    font-family: var(--mag-serif);
    font-style: italic;
    color: #6b6a62;
    margin-top: 1rem;
}

/* globale Überschriftenfarben im Magazin überschreiben */
.mag-seite .mag-h1,
.mag-seite .mag-zwischen-text h2 {
    color: var(--mag-ink) !important;
}

.mag-seite .mag-zwischen-text h3 {
    color: var(--mag-akzent) !important;
}

/* ==========================================================================
   Mobile Navigation (App-Gefühl): Leiste unten und Menü von unten
   ========================================================================== */
@media (max-width: 991.98px) {
    body.custom-bg-body {
        padding-bottom: calc(4.4rem + env(safe-area-inset-bottom));
    }
}

.mobil-leiste {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    background-color: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e3e0d4;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, .07);
    padding: .25rem .25rem calc(.25rem + env(safe-area-inset-bottom));
}

.mobil-tab {
    position: relative;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .1rem;
    min-height: 3.5rem;
    padding: .2rem 0;
    border: 0;
    background: none;
    border-radius: 14px;
    color: #6b6a62 !important;
    text-decoration: none;
    font-size: .68rem;
    font-weight: 600;
    -webkit-tap-highlight-color: transparent;
}

.mobil-tab .bi {
    font-size: 1.35rem;
    line-height: 1;
}

.mobil-tab.aktiv {
    color: var(--dl-primary) !important;
}

.mobil-tab.aktiv::before {
    content: "";
    position: absolute;
    top: .15rem;
    width: 2.6rem;
    height: 1.9rem;
    border-radius: 999px;
    background-color: rgba(var(--dl-primary-rgb), .14);
    z-index: -1;
}

.mobil-tab:active {
    transform: scale(.94);
}

.mobil-zahl {
    position: absolute;
    top: .15rem;
    left: calc(50% + .45rem);
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 .25rem;
    border-radius: 999px;
    background-color: #C8401F;
    color: #fff;
    font-size: .62rem;
    line-height: 1.1rem;
    text-align: center;
}

/* Menü von unten */
.mobil-menue.offcanvas-bottom {
    height: auto;
    max-height: 88vh;
    border-radius: 22px 22px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobil-menue .offcanvas-header {
    position: relative;
    padding-top: 1.4rem;
}

.mobil-griff {
    position: absolute;
    top: .55rem;
    left: 50%;
    width: 2.6rem;
    height: .3rem;
    margin-left: -1.3rem;
    border-radius: 999px;
    background-color: #d9d5c7;
}

.mobil-kacheln {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
}

.mobil-kacheln a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    padding: .7rem .2rem;
    border-radius: 14px;
    background-color: var(--dl-surface-variant);
    color: var(--dl-on-surface) !important;
    text-decoration: none;
    font-size: .72rem;
    font-weight: 600;
    text-align: center;
    hyphens: manual;
}

.mobil-kacheln .bi {
    font-size: 1.4rem;
    color: var(--dl-primary);
}

.mobil-gruppe {
    border-bottom: 1px solid #ece9df;
}

.mobil-gruppe summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .8rem .2rem;
    list-style: none;
    cursor: pointer;
    font-weight: 600;
}

.mobil-gruppe summary::-webkit-details-marker {
    display: none;
}

.mobil-gruppe[open] summary .bi {
    transform: rotate(180deg);
}

.mobil-gruppe-liste {
    display: flex;
    flex-direction: column;
    padding: 0 0 .6rem .4rem;
}

.mobil-gruppe-liste a {
    padding: .45rem 0;
    color: var(--dl-on-surface) !important;
    text-decoration: none;
}

.mobil-konto {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.mobil-konto a,
.mobil-konto .btn-link {
    color: var(--dl-on-surface) !important;
    text-decoration: none;
    text-transform: none;
    font: inherit;
}

.mobil-app {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem;
    border-radius: 16px;
    background-color: #fff8e1;
}

.mobil-app.d-none {
    display: none !important;
}

.mobil-app img {
    border-radius: 10px;
    background-color: #F5F5DC;
}

/* Hinweis „Als App installieren“ am Handy, über der unteren Leiste */
.app-hinweis {
    position: fixed;
    left: .75rem;
    right: .75rem;
    bottom: calc(4.6rem + env(safe-area-inset-bottom));
    z-index: 1039;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "bild text zu" "bild knopf zu";
    align-items: center;
    column-gap: .7rem;
    row-gap: .45rem;
    padding: .7rem .8rem;
    border-radius: 16px;
    background-color: #fff8e1;
    border: 1px solid #efe3b8;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .15);
    animation: app-hinweis-ein .3s ease-out;
}

.app-hinweis img {
    grid-area: bild;
    align-self: start;
    border-radius: 10px;
    background-color: #F5F5DC;
}

.app-hinweis > div {
    grid-area: text;
}

.app-hinweis [data-app-knopf] {
    grid-area: knopf;
    justify-self: start;
}

.app-hinweis .btn-close {
    grid-area: zu;
    align-self: start;
}

/* Tablet quer: ohne untere Leiste, daher unten rechts */
@media (min-width: 992px) {
    .app-hinweis {
        left: auto;
        right: 1rem;
        bottom: calc(1rem + env(safe-area-inset-bottom));
        width: 24rem;
    }
}

@keyframes app-hinweis-ein {
    from { transform: translateY(1rem); opacity: 0; }
    to { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .app-hinweis { animation: none; }
}

/* „Als App installieren“ in der Fußzeile */
.footer-app {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.footer-app.d-none {
    display: none !important;
}

/* als installierte App: etwas mehr Platz oben (Statusleiste) */
@media (display-mode: standalone) {
    .topbar {
        display: none !important;
    }
}

/* ==========================================================================
   Termine
   ========================================================================== */
.termin-karte {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .75rem;
    background-color: var(--dl-surface);
    border-radius: var(--dl-radius-l);
    box-shadow: var(--dl-elevation-1);
    color: var(--dl-on-surface) !important;
    text-decoration: none;
    transition: box-shadow var(--dl-motion), transform var(--dl-motion);
}

.termin-karte:hover {
    box-shadow: var(--dl-elevation-2);
    transform: translateY(-1px);
}

/* Kalenderblatt */
.termin-blatt {
    flex: 0 0 3.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid #e3e0d4;
    line-height: 1.1;
}

.termin-blatt-monat {
    width: 100%;
    text-align: center;
    background-color: #C8401F;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .15rem 0;
}

.termin-blatt-tag {
    font-family: "Marvel", sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--dl-on-surface);
    padding-top: .1rem;
}

.termin-blatt-wochentag {
    font-size: .68rem;
    color: #6B6A62;
    padding-bottom: .2rem;
}

.termin-inhalt {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.termin-art {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #B35034;
}

.termin-titel {
    font-weight: 600;
    line-height: 1.25;
}

.termin-meta {
    font-size: .8rem;
    color: #6b6a62;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.termin-bild {
    flex: 0 0 4.2rem;
    width: 4.2rem;
    height: 4.2rem;
    object-fit: cover;
    border-radius: 12px;
}

.termin-monat {
    text-transform: capitalize;
    border-bottom: 1px solid #dcd6c8;
    padding-bottom: .4rem;
    margin-bottom: .9rem;
}

.termin-fakten {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.termin-fakten > div {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
}

.termin-fakten .bi {
    font-size: 1.2rem;
    color: var(--dl-primary);
    line-height: 1.3;
}

.termin-beschreibung > :last-child {
    margin-bottom: 0;
}

.termin-anbieter-bild {
    width: 3.6rem;
    height: 3.6rem;
    object-fit: cover;
    border-radius: 50%;
}

.kategorie-chip.kategorie-chip-aktiv {
    background-color: var(--dl-primary);
    border-color: var(--dl-primary);
    color: #fff !important;
}

.kategorie-chip.kategorie-chip-aktiv > .bi {
    background-color: transparent;
    color: #fff;
}

/* Fotos zu Bewertungen */
.bewertung-fotos {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.bewertung-foto img,
.bewertung-foto-auswahl img {
    width: 5.5rem;
    height: 5.5rem;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--dl-elevation-1);
    transition: transform var(--dl-motion);
}

.bewertung-foto:hover img {
    transform: scale(1.04);
}

.bewertung-foto-auswahl {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    font-size: .75rem;
    cursor: pointer;
}

.foto-lichtkasten {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: 94vw;
    max-height: 92vh;
}

.foto-lichtkasten::backdrop {
    background: rgba(20, 20, 18, .85);
}

.foto-lichtkasten img {
    display: block;
    max-width: 94vw;
    max-height: 92vh;
    border-radius: 10px;
}

.foto-lichtkasten .btn-close {
    position: absolute;
    top: .6rem;
    right: .6rem;
    z-index: 2;
    background-color: rgba(0, 0, 0, .45);
    border-radius: 50%;
    padding: .7rem;
    opacity: 1;
}

/* ==========================================================================
   Entdecken-Karte (/karte/)
   ========================================================================== */
.karte-seite {
    display: flex;
    min-height: 420px;
    margin-top: 0;
    background-color: var(--dl-surface);
}

.karte-flaeche {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.karte-leaflet {
    position: absolute;
    inset: 0;
}

@media (min-width: 992px) {
    .karte-panel {
        flex: 0 0 23rem;
        width: 23rem;
        border-right: 1px solid #e3e0d4;
        background-color: var(--dl-surface);
        overflow: hidden;
    }

    .karte-panel .offcanvas-body {
        height: 100%;
        overflow-y: auto;
    }
}

@media (max-width: 991.98px) {
    .karte-panel.offcanvas-bottom {
        height: 78vh;
        border-radius: 22px 22px 0 0;
    }
}

.karte-panel-inhalt {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.karte-filter {
    padding-bottom: .8rem;
    border-bottom: 1px solid #ece9df;
}

.karte-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.karte-chip {
    border: 1px solid #dcd8c9;
    background-color: #fff;
    border-radius: 999px;
    padding: .25rem .7rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--dl-on-surface);
}

.karte-chip.aktiv {
    background-color: var(--dl-primary);
    border-color: var(--dl-primary);
    color: #fff;
}

.karte-schalter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .3rem .8rem;
    font-size: .85rem;
}

.karte-liste-kopf {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: .7rem .1rem .4rem;
    font-weight: 600;
    font-size: .9rem;
}

.karte-liste-kopf .btn-link {
    text-transform: none;
    font-weight: 400;
}

.karte-liste {
    list-style: none;
    padding: 0;
    margin: 0;
}

.karte-liste li {
    display: flex;
    gap: .7rem;
    align-items: center;
    padding: .5rem .4rem;
    border-radius: 12px;
    cursor: pointer;
}

.karte-liste li:hover,
.karte-liste li.aktiv {
    background-color: var(--dl-surface-variant);
}

.karte-liste img,
.karte-liste-leer {
    flex: 0 0 3.2rem;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 10px;
    object-fit: cover;
}

.karte-liste-leer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dl-surface-variant);
    color: #6B6A62;
}

.karte-liste-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    gap: .1rem;
}

.karte-liste-text b {
    font-weight: 600;
    line-height: 1.2;
}

.karte-liste-text small {
    color: #6b6a62;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.karte-liste-text .badge {
    font-size: .68rem;
}

/* Knöpfe über der Karte */
.karte-knoepfe {
    position: absolute;
    right: .8rem;
    bottom: 1.6rem;
    z-index: 500;
    display: flex;
    gap: .5rem;
}

.karte-knopf {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border: 0;
    border-radius: 999px;
    padding: .55rem .9rem;
    background-color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
    font-weight: 600;
    font-size: .88rem;
    color: var(--dl-on-surface);
}

.karte-knopf b {
    background-color: var(--dl-primary);
    color: #fff;
    border-radius: 999px;
    padding: 0 .45rem;
    font-size: .75rem;
}

/* Punkte auf der Karte */
.karte-punkt-huelle {
    background: none;
    border: 0;
}

.karte-punkt {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
    background-color: #B35034;
    transition: transform .15s;
}

.karte-punkt-offen {
    background-color: #5F7312;
}

.karte-punkt-rund {
    background-color: #2f3b52;
}

.karte-punkt-zu {
    background-color: #a8a49a;
}

.karte-punkt-tipp {
    box-shadow: 0 0 0 3px #F0C020, 0 2px 6px rgba(0, 0, 0, .35);
}

.karte-punkt-aktiv {
    transform: scale(1.45);
}

.karte-popup {
    display: flex;
    gap: .6rem;
}

.karte-popup img {
    width: 4.2rem;
    height: 4.2rem;
    object-fit: cover;
    border-radius: 10px;
}

.karte-popup-art {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #B35034;
}

.karte-popup-titel {
    display: block;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dl-on-surface) !important;
    text-decoration: none;
}

.karte-popup-meta {
    font-size: .78rem;
    color: #6b6a62;
    margin: .15rem 0 .3rem;
}

.karte-popup .btn {
    font-size: .75rem;
}

/* Link von der Startseiten-Karte zur großen Karte */
.kategorie-karte {
    position: relative;
}

.karte-vollbild-link {
    position: absolute;
    right: .8rem;
    bottom: 1.6rem;
    z-index: 500;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem .9rem;
    border-radius: 999px;
    background-color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
    font-weight: 600;
    font-size: .85rem;
    color: var(--dl-on-surface) !important;
    text-decoration: none;
}

/* Bootstrap setzt bei .offcanvas-lg .offcanvas-body den Innenabstand auf 0 – hier gezielt wieder setzen */
.karte-seite .karte-panel .karte-panel-inhalt {
    display: flex;
    flex-direction: column;
    padding: 1.1rem 1.25rem 1.25rem;
}

.karte-schalter .form-check {
    padding-left: 2.6em;
    min-height: 1.6rem;
}

.karte-schalter .form-check .form-check-input {
    margin-left: -2.6em;
}

/* Konto-Navigation als Kacheln (Desktop eine Reihe, sonst 3 Spalten) */
.konto-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
}

@media (min-width: 992px) {
    .konto-nav {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
    }
}

.konto-kachel-form {
    margin: 0;
    display: contents;
}

.konto-kachel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    width: 100%;
    min-height: 5.25rem;
    padding: .75rem .5rem .65rem;
    background-color: var(--dl-surface);
    border: 1px solid transparent;
    border-radius: var(--dl-radius-l);
    box-shadow: var(--dl-elevation-1);
    color: var(--dl-on-surface) !important;
    text-decoration: none;
    text-align: center;
    font: inherit;
    line-height: 1.2;
    transition: box-shadow var(--dl-motion), transform var(--dl-motion), border-color var(--dl-motion);
}

.konto-kachel:hover,
.konto-kachel:focus-visible {
    box-shadow: var(--dl-elevation-3);
    transform: translateY(-2px);
}

.konto-kachel .bi {
    font-size: 1.45rem;
    color: var(--dl-primary);
}

.konto-kachel-label {
    font-size: .85rem;
    font-weight: 600;
}

.konto-kachel-zahl {
    position: absolute;
    top: .45rem;
    right: .5rem;
    min-width: 1.4rem;
    padding: .05rem .4rem;
    border-radius: 999px;
    background-color: var(--dl-surface-variant);
    color: #6b6a62;
    font-size: .72rem;
    font-weight: 700;
}

.konto-kachel.active {
    background-color: var(--dl-primary);
    border-color: var(--dl-primary);
    color: #fff !important;
}

.konto-kachel.active .bi {
    color: #fff;
}

.konto-kachel.active .konto-kachel-zahl {
    background-color: rgba(255, 255, 255, .25);
    color: #fff;
}

.konto-kachel-abmelden .bi {
    color: #B35034;
}

@media (max-width: 575.98px) {
    .konto-nav {
        gap: .45rem;
    }

    .konto-kachel {
        min-height: 4.4rem;
        padding: .6rem .3rem .5rem;
    }

    .konto-kachel .bi {
        font-size: 1.25rem;
    }

    .konto-kachel-label {
        font-size: .76rem;
    }

    .konto-kachel-zahl {
        top: .3rem;
        right: .3rem;
        font-size: .66rem;
    }
}

/* Merkmale: Anbieterseite, Filter-Chips im Anbieter-Raster und auf der Karte */
.anbieter-merkmale {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
    gap: .35rem .75rem;
}

.anbieter-merkmale a {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .9rem;
    color: var(--dl-on-surface);
    text-decoration: none;
}

.anbieter-merkmale a:hover {
    color: var(--dl-primary);
}

.anbieter-merkmale .bi {
    color: var(--dl-primary);
    font-size: 1.05rem;
}

.anbieter-merkmal-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
}

.merkmal-chip {
    padding: .25rem .75rem;
    font: inherit;
    font-size: .82rem;
    cursor: pointer;
}

.merkmal-chip .bi {
    color: var(--dl-primary);
}

.merkmal-chip[aria-pressed="true"] {
    background-color: var(--dl-primary);
    border-color: var(--dl-primary);
    color: #fff !important;
}

.merkmal-chip[aria-pressed="true"] .bi,
.merkmal-chip[aria-pressed="true"] .text-muted {
    color: #fff !important;
}

.karte-merkmale summary {
    cursor: pointer;
}

.karte-chip .bi {
    margin-right: .15rem;
}

/* Newsletter-Anmeldung im Footer */
.footer-newsletter {
    max-width: 30rem;
}

.footer-newsletter .form-label {
    color: var(--dl-on-surface);
    font-weight: 600;
}

/* „Heute frisch“-Ampel */
.heute-frisch {
    background-color: var(--dl-surface);
    border-radius: var(--dl-radius-l);
    box-shadow: var(--dl-elevation-1);
    border-left: 4px solid #2e9d4f;
    padding: .9rem 1.1rem;
}

.heute-frisch h2 .bi {
    color: #e0a800;
}

.heute-frisch-liste {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .6rem;
}

.heute-frisch-liste li {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .75rem;
    border-radius: 999px;
    background-color: var(--dl-surface-variant);
}

.heute-frisch-liste a {
    font-weight: 600;
    color: var(--dl-on-surface);
    text-decoration: none;
}

.heute-frisch-punkt {
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
    flex: none;
    background-color: #9a998f;
}

.heute-frisch-gruen .heute-frisch-punkt { background-color: #2e9d4f; }
.heute-frisch-gelb .heute-frisch-punkt { background-color: #e0a800; }
.heute-frisch-rot .heute-frisch-punkt { background-color: #d2452c; }
.heute-frisch-rot a { color: #6B6A62; text-decoration: line-through; }

.heute-frisch-pflegen summary {
    cursor: pointer;
}

.heute-frisch-zeile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .35rem .75rem;
    padding: .45rem 0;
    border-bottom: 1px solid var(--dl-surface-variant);
}

.heute-frisch-produkt {
    font-weight: 600;
    font-size: .92rem;
}

.heute-frisch-wahl {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
}

.heute-frisch-knopf {
    padding: .3rem .7rem;
    border: 1px solid #dcd8c9;
    border-radius: 999px;
    background-color: #fff;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.btn-check:checked + .heute-frisch-knopf-gruen { background-color: #2e9d4f; border-color: #2e9d4f; color: #fff; }
.btn-check:checked + .heute-frisch-knopf-gelb { background-color: #e0a800; border-color: #e0a800; color: #1f201c; }
.btn-check:checked + .heute-frisch-knopf-rot { background-color: #d2452c; border-color: #d2452c; color: #fff; }
.btn-check:checked + .heute-frisch-knopf-grau { background-color: var(--dl-surface-variant); border-color: #9a998f; }
.btn-check:focus-visible + .heute-frisch-knopf { outline: 2px solid var(--dl-primary); outline-offset: 2px; }

.anbieter-status-frisch {
    background-color: #dff3e4;
    color: #1f6b35 !important;
}

/* Tour-Vorschlag */
.karte-tour-link {
    right: auto;
    left: .8rem;
}

.tour-karte {
    height: 360px;
}

.tour-stationen > li {
    position: relative;
}

.tour-start {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .25rem;
}

.tour-weg {
    display: block;
    margin: .3rem 0 .3rem 2.6rem;
    padding-left: .6rem;
    border-left: 2px dashed #c9c4b3;
}

.tour-nr {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--dl-primary);
    color: #fff;
    font-weight: 700;
}

.tour-karte-station {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    background-color: var(--dl-surface);
    border-radius: var(--dl-radius-l);
    box-shadow: var(--dl-elevation-1);
    padding: .75rem;
}

.tour-bild {
    flex: none;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: var(--dl-radius-m);
    overflow: hidden;
    background-color: var(--dl-surface-variant);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tour-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-text {
    min-width: 0;
}

.tour-zeit {
    font-weight: 700;
    color: var(--dl-primary);
    font-size: .9rem;
}

.tour-titel {
    display: block;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--dl-on-surface);
    text-decoration: none;
}

.tour-start-marker span {
    background-color: #B35034 !important;
}

@media (max-width: 575.98px) {
    .tour-bild {
        width: 4rem;
        height: 4rem;
    }
}

/* Suche in der Navigation: Lupe, Feld klappt auf */
.nav-suche-knopf {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
}

.nav-suche-knopf .bi {
    font-size: 1.1rem;
}

.nav-suche-panel {
    width: min(26rem, 90vw);
    padding: .75rem;
    border: 0;
    border-radius: var(--dl-radius-l);
    box-shadow: var(--dl-elevation-3);
    /* die Vorschlagsliste ragt unter dem Panel heraus – nicht abschneiden (Dropdowns sonst overflow: hidden) */
    overflow: visible;
}

.nav-suche-links {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1rem;
    margin-top: .6rem;
    padding: 0 .3rem;
}

.nav-suche-links a {
    color: #6b6a62;
    text-decoration: none;
}

.nav-suche-links a:hover {
    color: var(--dl-primary);
}

/* Merkliste: Listenansicht (gleiche Einträge, kompakt nebeneinander statt Kacheln) */
.merkliste-bild-leer {
    display: none;
}

.merkliste-als-liste .merkliste-card {
    flex-direction: row;
    align-items: center;
    min-height: 0;
}

.merkliste-als-liste .merkliste-bild {
    flex: none;
    width: 6rem;
    align-self: stretch;
    min-height: 5.5rem;
    overflow: hidden;
    border-radius: var(--dl-radius-l) 0 0 var(--dl-radius-l);
    background-color: var(--dl-surface-variant);
}

.merkliste-als-liste .merkliste-bild .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.merkliste-als-liste .merkliste-bild-leer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 1.5rem;
    color: #b9b5a6;
}

.merkliste-als-liste .card-body {
    flex: 1 1 auto;
    min-width: 0;
    padding: .55rem .9rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 1rem;
    align-items: center;
}

.merkliste-als-liste .card-body > * {
    grid-column: 1;
    margin-bottom: 0 !important;
}

.merkliste-als-liste .card-title {
    font-size: 1rem;
    margin: 0;
}

.merkliste-als-liste .merkliste-auswahl-check {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin: 0;
}

.merkliste-als-liste .merkliste-auswahl-check .form-check-label {
    display: none;
}

.merkliste-als-liste .merkliste-kategorien,
.merkliste-als-liste .merkliste-guides,
.merkliste-als-liste .merkliste-notiz-box details,
.merkliste-als-liste .merkliste-keine-notiz,
.merkliste-als-liste .merkliste-datum {
    display: none !important;
}

.merkliste-als-liste .merkliste-notiz-box {
    background: none;
    padding: 0;
    margin-top: .15rem !important;
}

.merkliste-als-liste .merkliste-notiz {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.merkliste-als-liste .merkliste-aktionen {
    flex: none;
    flex-wrap: nowrap !important;
    border-top: 0;
    background: none;
    padding: .55rem .9rem .55rem 0;
}

@media (max-width: 767.98px) {
    .merkliste-als-liste .merkliste-card {
        flex-wrap: wrap;
    }

    .merkliste-als-liste .merkliste-bild {
        width: 4.5rem;
        min-height: 4.5rem;
    }

    .merkliste-als-liste .card-body {
        flex-basis: calc(100% - 4.5rem);
    }

    .merkliste-als-liste .merkliste-aktionen {
        width: 100%;
        padding: 0 .9rem .55rem;
    }
}

/* Einheitliche Marker (public/cdn/js/karte.js): Ziel-Punkt, nummerierte Stationen, Cluster */
.karte-punkt-ziel {
    width: 30px;
    height: 30px;
    border-width: 4px;
}

.karte-nummer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
    background-color: #5F7312;
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    line-height: 1;
}

.karte-nummer-start {
    background-color: #B35034;
}

.karte-cluster-huelle {
    background: none;
    border: 0;
}

.karte-cluster {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(179, 80, 52, .92);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    border: 3px solid #fff;
    box-shadow: 0 0 0 5px rgba(179, 80, 52, .25), 0 2px 8px rgba(0, 0, 0, .3);
    transition: transform .15s;
}

.karte-cluster-huelle:hover .karte-cluster {
    transform: scale(1.08);
}

/* Konto: Checkliste „Erste Schritte“ und Hilfe-Seite */
.erste-schritte {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: .6rem 1.25rem;
}

.erste-schritte li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
}

.erste-schritte-haken {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--dl-surface-variant);
    color: var(--dl-primary);
}

.erste-schritte-erledigt .erste-schritte-haken {
    background-color: var(--dl-primary);
    color: #fff;
}

.erste-schritte-erledigt .erste-schritte-text {
    color: #6B6A62;
    text-decoration: line-through;
    padding-top: .3rem;
}

.erste-schritte-text a {
    color: var(--dl-on-surface);
    text-decoration: none;
}

.erste-schritte-text a:hover {
    color: var(--dl-primary);
}

.hilfe-inhalt {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.hilfe-kapitel section {
    scroll-margin-top: 6rem;
}

.hilfe-liste {
    padding-left: 1.1rem;
    margin-bottom: .75rem;
}

.hilfe-liste li {
    margin-bottom: .4rem;
}

.hilfe-knoepfe {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.hilfe-frage {
    border-bottom: 1px solid var(--dl-surface-variant);
    padding: .55rem 0;
}

.hilfe-frage summary {
    cursor: pointer;
    font-weight: 600;
}

.hilfe-frage p {
    margin: .4rem 0 0;
}

kbd {
    background-color: var(--dl-surface-variant);
    color: var(--dl-on-surface);
    border-radius: 4px;
    padding: .05rem .35rem;
    font-size: .8em;
}

/* Eintrag ergänzen (Anbieter ohne Konto) */
.ergaenzen-gruppe {
    border-bottom: 1px solid var(--dl-surface-variant);
    padding: .4rem 0;
}

.ergaenzen-gruppe summary {
    cursor: pointer;
}

.ergaenzen-auswahl {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: .15rem .75rem;
    padding: .4rem 0;
}

.ergaenzen-absenden {
    position: sticky;
    top: 6rem;
}

/* Startseite: neuer Kopf mit großer Suche und Schnellzugriffen */
.startseite-kopf {
    padding: 2.25rem 1.25rem 1.5rem;
    text-align: center;
}

.startseite-titel {
    font-size: clamp(2rem, 5vw, 3.1rem);
    margin-bottom: .35rem;
}

.startseite-unterzeile {
    font-size: 1.05rem;
    color: #6b6a62;
    max-width: 40rem;
    margin: 0 auto 1.25rem;
}

.startseite-suche-gross {
    max-width: 42rem;
    margin: 0 auto;
}

.startseite-suche-gross .form-control {
    font-size: 1.1rem;
    padding-left: 1.4rem;
    box-shadow: var(--dl-elevation-1);
}

.startseite-schnell {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .4rem;
    margin: .9rem auto 0;
    max-width: 48rem;
}

.startseite-schnell .kategorie-chip {
    padding: .3rem .85rem;
    font-size: .88rem;
}

.startseite-aktionen {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .6rem;
    max-width: 66rem;
    margin: 1.5rem auto 0;
}

@media (min-width: 992px) {
    .startseite-aktionen {
        grid-template-columns: repeat(var(--kacheln, 7), 1fr);
    }
}

.startseite-aktion {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    min-height: 5rem;
    padding: .7rem .5rem;
    border-radius: var(--dl-radius-l);
    background-color: var(--dl-surface);
    box-shadow: var(--dl-elevation-1);
    color: var(--dl-on-surface) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    line-height: 1.2;
    transition: box-shadow var(--dl-motion), transform var(--dl-motion);
}

.startseite-aktion:hover {
    box-shadow: var(--dl-elevation-3);
    transform: translateY(-2px);
}

.startseite-aktion .bi {
    font-size: 1.4rem;
    color: var(--dl-primary);
}

.startseite-aktion-bereich .bi {
    color: #B35034;
}

.startseite-aktion small {
    font-weight: 400;
    color: #6B6A62;
}

.startseite-zahlen {
    margin: 1.1rem 0 0;
    font-size: .88rem;
    color: #6b6a62;
}

/* Newsletter-Box auf der Startseite */
.startseite-newsletter {
    display: grid;
    grid-template-columns: auto 1fr minmax(18rem, 26rem);
    gap: 1rem 1.5rem;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--dl-surface-variant);
    border-radius: var(--dl-radius-l);
    scroll-margin-top: 5rem;
}

.startseite-newsletter-icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--dl-primary);
    color: #fff;
    font-size: 1.6rem;
}

.startseite-newsletter .newsletter-anmeldung .form-label {
    /* Überschrift und Text stehen schon daneben */
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

@media (max-width: 991.98px) {
    .startseite-newsletter {
        grid-template-columns: auto 1fr;
    }

    .startseite-newsletter-formular {
        grid-column: 1 / -1;
    }
}

/* in schmalen Spalten (News-Einzelseite): Formular unter dem Text */
@media (min-width: 576px) {
    .news-artikel .startseite-newsletter {
        grid-template-columns: auto 1fr;
    }

    .news-artikel .startseite-newsletter-formular {
        grid-column: 2;
    }
}

@media (max-width: 575.98px) {
    .startseite-newsletter {
        grid-template-columns: 1fr;
        padding: 1.25rem;
    }

    .startseite-newsletter-icon {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.25rem;
    }
}

.startseite-ueber {
    border-top: 1px solid var(--dl-surface-variant);
    padding-top: 1.5rem;
    color: #6b6a62;
    font-size: .92rem;
}

@media (max-width: 575.98px) {
    .startseite-kopf {
        padding: 1.5rem .9rem 1.1rem;
    }

    /* Handy: Karte, Nähe, Tour als erste Reihe, darunter die Bereiche gleichmäßig verteilt */
    .startseite-aktionen {
        grid-template-columns: repeat(12, 1fr);
        gap: .45rem;
    }

    .startseite-aktion {
        grid-column: span 4;
    }

    .startseite-aktion-bereich {
        grid-column: span var(--bereich-spalten, 4);
    }

    .startseite-aktion {
        min-height: 4.4rem;
        font-size: .76rem;
    }

    .startseite-aktion .bi {
        font-size: 1.2rem;
    }

    /* steht am Handy im Menü – so bleibt es bei 3 × 2 */
    .startseite-aktion-saison {
        display: none;
    }
}

/* Startseite: Karte als Mittelpunkt direkt unter dem Kopf */
.startseite-karte .kategorie-karte #map {
    height: 560px;
}

.startseite-karte-legende {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1.1rem;
    margin: .6rem .2rem 0;
    font-size: .8rem;
    color: #6b6a62;
}

.startseite-karte-legende span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.startseite-karte-legende .karte-punkt {
    width: 14px;
    height: 14px;
    border-width: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}

.karte-cluster-legende {
    width: 20px;
    height: 20px;
    font-size: .65rem;
    font-style: normal;
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(179, 80, 52, .25);
}

@media (max-width: 991.98px) {
    .startseite-karte .kategorie-karte #map {
        height: 460px;
    }
}

@media (max-width: 575.98px) {
    .startseite-karte .kategorie-karte #map {
        height: 380px;
    }
}

/* Kopfzeile für Eingeloggte: Admin-Knopf, Merkliste und Guides mit Zahl, Konto-Menü */
.konto-leiste {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .35rem .9rem;
}

.konto-leiste-admin,
.konto-leiste-knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 30px;
    padding-top: 0;
    padding-bottom: 0;
}

.konto-leiste-admin {
    padding-left: .8rem;
    padding-right: .8rem;
    font-size: .95rem;
}

.konto-leiste-symbol {
    text-decoration: none;
    white-space: nowrap;
}

.konto-leiste-knopf {
    padding-left: .4rem;
    padding-right: .4rem;
    font-size: inherit;
    text-transform: none;
    color: var(--dl-on-surface);
    border: 0;
}

.konto-leiste-menue {
    min-width: 15rem;
    font-size: 1.05rem;
}

.konto-leiste-menue .dropdown-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--dl-on-surface) !important;
}

.konto-leiste-menue .dropdown-item.active,
.konto-leiste-menue .dropdown-item:active {
    background-color: rgba(var(--dl-primary-rgb), .14);
}

/* „Im Admin bearbeiten“ auf Detailseiten – nur für Admins und Partner mit Rechten */
.bearbeiten-leiste {
    background-color: var(--dl-surface-variant);
    border-bottom: 1px solid var(--dl-outline);
    font-size: 1rem;
}

.bearbeiten-leiste .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .4rem 1rem;
    padding-top: .45rem;
    padding-bottom: .45rem;
}

/* Handy-Menü: Kontobereich oben */
.mobil-konto-bereich {
    background-color: var(--dl-surface-variant);
    border-radius: var(--dl-radius-m);
    padding: .75rem;
}

/* Konto-Menü klappt über die Navigationsleiste (die liegt mit z-index 1000 darunter im Code) */
.topbar {
    position: relative;
    z-index: 1031;
}

/* Hauptnavigation zwischen 992 und 1199 px: Logo und alle Menüpunkte passen sonst nicht nebeneinander */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar .dl-logo {
        max-width: 150px;
    }

    .navbar .navbar-nav .nav-link {
        padding-left: .45rem !important;
        padding-right: .45rem !important;
        font-size: 12px;
    }

    .navbar .dropdown-toggle::after {
        margin-left: .2em;
    }
}

/* Anmelden, Registrieren, Passwort vergessen */
.anmelde-karte {
    padding: 1.5rem 1.5rem 1.35rem;
}

.anmelde-wechsel {
    border-top: 1px solid var(--dl-outline);
    padding-top: 1rem;
}

.anmelde-vorteile li {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    margin-bottom: .9rem;
}

.anmelde-vorteile li > .bi {
    flex: 0 0 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(var(--dl-primary-rgb), .12);
    color: var(--dl-primary);
    font-size: 1.15rem;
}

.anmelde-erfolg {
    text-align: center;
    padding: .5rem 0;
}

.anmelde-erfolg > .bi {
    display: block;
    font-size: 2.6rem;
    color: var(--dl-primary);
    margin-bottom: .5rem;
}

/* „Anmelden“ / „Hallo …“ oben rechts: beim Überfahren dunkle Schrift auf hellgrüner Fläche */
a.konto-leiste-knopf:hover,
a.konto-leiste-knopf:focus-visible,
.konto-leiste-knopf:hover {
    color: var(--dl-on-surface) !important;
    background-color: rgba(var(--dl-primary-rgb), .12);
}

/* Merkliste ohne Konto */
.gast-merkliste-hinweis {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1rem;
}

.gast-merkliste-hinweis > .bi {
    font-size: 1.8rem;
    color: var(--dl-primary);
}

.gast-merkliste-entfernen {
    margin-top: .5rem;
}

/* Anbieterseite: „Fehler melden“ im Kontakt-Kasten */
.anbieter-melden {
    border-top: 1px solid var(--dl-outline);
    margin-top: .75rem;
    padding-top: .6rem;
    font-size: 1rem;
}

.anbieter-melden > summary {
    cursor: pointer;
    color: var(--dl-on-surface);
}

/* Suchfeld: Vorschläge beim Tippen */
.suche-mit-vorschlaegen {
    position: relative;
}

.suche-vorschlaege {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1060;
    max-height: min(70vh, 26rem);
    overflow-y: auto;
    background-color: var(--dl-surface);
    border-radius: var(--dl-radius-m);
    box-shadow: var(--dl-elevation-3);
    padding: .35rem 0;
    text-align: left;
}

.suche-vorschlaege-gruppe {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6B6A62;
    padding: .5rem 1rem .2rem;
}

.suche-vorschlag {
    display: flex;
    align-items: baseline;
    gap: .55rem;
    width: 100%;
    padding: .45rem 1rem;
    border: 0;
    background: none;
    text-align: left;
    text-decoration: none;
    font-size: 1rem;
    color: var(--dl-on-surface) !important;
}

.suche-vorschlag:hover,
.suche-vorschlag.aktiv {
    background-color: rgba(var(--dl-primary-rgb), .12);
    color: var(--dl-on-surface) !important;
}

.suche-vorschlag .bi {
    color: var(--dl-primary);
}

.suche-vorschlag-zusatz {
    margin-left: auto;
    font-size: .85rem;
    color: #6B6A62;
    white-space: nowrap;
}

.suche-vorschlag-alle {
    border-top: 1px solid var(--dl-outline);
    margin-top: .3rem;
    font-weight: 600;
}

/* Anbieterseite: „Mehr entdecken“ */
.entdecken-links {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.entdecken-links a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .55rem .45rem .95rem;
    border-radius: 999px;
    background-color: var(--dl-surface);
    box-shadow: var(--dl-elevation-1);
    text-decoration: none;
    font-size: 1rem;
    color: var(--dl-on-surface) !important;
}

.entdecken-links a:hover {
    box-shadow: var(--dl-elevation-2);
    background-color: rgba(var(--dl-primary-rgb), .08);
}

.entdecken-links .bi {
    color: var(--dl-primary);
}

.entdecken-zahl {
    min-width: 1.8rem;
    padding: .05rem .5rem;
    border-radius: 999px;
    background-color: rgba(var(--dl-primary-rgb), .14);
    font-size: .85rem;
    text-align: center;
}

.website-button > summary {
    cursor: pointer;
}

.website-button textarea {
    font-family: var(--bs-font-monospace);
    font-size: .8rem;
}

/* Startseite: häufige Fragen */
.startseite-fragen {
    display: grid;
    gap: .6rem;
}

.startseite-frage {
    background-color: var(--dl-surface);
    border-radius: var(--dl-radius-m);
    box-shadow: var(--dl-elevation-1);
    padding: .8rem 1.1rem;
}

.startseite-frage > summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.startseite-frage > summary::-webkit-details-marker {
    display: none;
}

.startseite-frage > summary::after {
    content: "\F282";
    font-family: "bootstrap-icons";
    color: var(--dl-primary);
    transition: transform var(--dl-motion);
}

.startseite-frage[open] > summary::after {
    transform: rotate(180deg);
}

.startseite-frage[open] > summary {
    margin-bottom: .5rem;
}

/* Kategorie- und Regionsseiten: Brotkrumen */
.kategorie-brotkrumen ol {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.kategorie-brotkrumen li + li::before {
    content: "›";
    margin-right: .25rem;
    color: #6B6A62;
}

/* Schnellerfassung unterwegs */
.schnellerfassung .btn {
    min-height: 48px;
}

.schnellerfassung-vorschau {
    display: block;
    max-width: 100%;
    max-height: 260px;
    border-radius: var(--dl-radius-m);
    object-fit: cover;
}

/* Mein Betrieb (Anbieter-Zugang) */
.betrieb-kachel {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--dl-on-surface) !important;
}

.betrieb-kachel img {
    border-radius: var(--dl-radius-s);
    object-fit: cover;
}

.betrieb-kachel > .bi:first-child {
    font-size: 2rem;
    color: var(--dl-primary);
}

.betrieb-aktionen {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.betrieb-zahlen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: .75rem;
}

.betrieb-zahlen .dashboard-karte {
    display: flex;
    flex-direction: column;
}

.betrieb-zahl {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dl-primary);
    line-height: 1.1;
}

.betrieb-verlauf {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 7rem;
}

.betrieb-verlauf span {
    flex: 1;
    background-color: rgba(var(--dl-primary-rgb), .55);
    border-radius: 2px 2px 0 0;
}

.betrieb-verlauf span:hover {
    background-color: var(--dl-primary);
}

.anbieter-zugang {
    margin-top: .6rem;
    color: #6B6A62;
}
