/* Nur fuer preview.php: Routenplaner, "Mehr Alpenstrasse"-Kacheln, erweiterter
   Footer. main.css bleibt unangetastet (wird auch von preview.php/index.php
   genutzt). */

/* ---------- Routenplaner neben der Karte ---------- */

.karte__layout {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 62rem) {
    .karte__layout {
        grid-template-columns: minmax(0, 21rem) minmax(0, 1fr);
        align-items: stretch;
    }

    .karte__layout .karte__map {
        height: auto;
        min-height: 34rem;
    }
}

.rp {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--color-surface);
    border: 1px solid oklch(0.96 0.004 252 / 0.08);
    border-radius: 0.75rem;
}

.rp__title {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--color-ink);
}

.rp__fields {
    display: grid;
    gap: 0.75rem;
}

.rp__field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.rp__field select {
    width: 100%;
    padding: 0.55rem 0.7rem;
    font: inherit;
    font-size: 0.95rem;
    color: var(--color-ink);
    background: var(--color-bg);
    border: 1px solid oklch(0.96 0.004 252 / 0.18);
    border-radius: 0.4rem;
    color-scheme: dark;
}

.rp__field select:focus-visible,
.rp__tausch:focus-visible,
.rp__stopp:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.rp__tausch {
    align-self: flex-start;
    padding: 0.3rem 0.7rem;
    font: inherit;
    font-size: 0.8rem;
    color: var(--color-muted);
    background: none;
    border: 1px solid oklch(0.96 0.004 252 / 0.18);
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s var(--ease-out-quart), border-color 0.2s var(--ease-out-quart);
}

.rp__tausch:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.rp__summe {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-ink);
}

.rp__summe strong {
    color: var(--color-accent);
    font-weight: 600;
}

.rp__hinweis,
.rp__fuss {
    margin: 0;
    font-size: 0.78rem;
    color: var(--color-muted);
}

.rp__stopps {
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 17rem;
    overflow-y: auto;
    border-top: 1px solid oklch(0.96 0.004 252 / 0.08);
}

.rp__stopp {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.1rem 0.6rem;
    width: 100%;
    padding: 0.5rem 0.15rem;
    font: inherit;
    text-align: left;
    color: var(--color-ink);
    background: none;
    border: 0;
    border-bottom: 1px solid oklch(0.96 0.004 252 / 0.06);
    cursor: pointer;
}

.rp__stopp:hover .rp__stopp-name {
    color: var(--color-accent);
}

.rp__stopp-name {
    flex: 1 1 auto;
    transition: color 0.2s var(--ease-out-quart);
}

.rp__stopp-meta {
    font-size: 0.78rem;
    color: var(--color-muted);
}

/* Auf der Karte: Route heller, Orte ausserhalb der Route zurueckgenommen. */
.karte__map--route .karte__marker:not(.karte__marker--route):not(.karte__marker--hotel) {
    opacity: 0.35;
}

/* ---------- "Mehr von der Deutschen Alpenstrasse" ---------- */

.mehr {
    padding-top: clamp(3.5rem, 8vw, 6.5rem);
    padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

.mehr__grid {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 40rem) {
    .mehr__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.mehr__kachel {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 17rem;
    overflow: hidden;
    border-radius: 0.75rem;
    color: var(--color-ink);
    text-decoration: none;
    background: var(--color-surface);
}

.mehr__kachel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-quart);
}

.mehr__kachel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, oklch(0.10 0 0 / 0.88) 0%, oklch(0.10 0 0 / 0.35) 55%, oklch(0.10 0 0 / 0) 100%);
}

.mehr__text {
    position: relative;
    z-index: 1;
    padding: 1.25rem 1.4rem;
}

.mehr__titel {
    margin: 0 0 0.25rem;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(1.4rem, 2.4vw, 1.75rem);
    line-height: 1.2;
}

.mehr__beschr {
    margin: 0;
    max-width: 32rem;
    font-size: 0.92rem;
    color: oklch(0.96 0.004 252 / 0.85);
}

.mehr__kachel:hover .mehr__titel,
.mehr__kachel:focus-visible .mehr__titel {
    color: var(--color-accent);
}

.mehr__kachel:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
    .mehr__kachel:hover img {
        transform: scale(1.04);
    }
}

.mehr__alle {
    margin: 1.5rem 0 0;
}

.mehr__alle a {
    color: var(--color-accent);
}

/* ---------- Footer mit Linkspalten ---------- */

.site-footer--gross {
    padding-top: clamp(2.5rem, 5vw, 3.5rem);
}

.site-footer__cols {
    display: grid;
    gap: 2rem;
    padding-bottom: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid oklch(0.96 0.004 252 / 0.08);
}

@media (min-width: 48rem) {
    .site-footer__cols {
        grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    }
}

.site-footer__logo {
    display: block;
    height: 5rem;
    width: auto;
    margin-bottom: 1rem;
    border-radius: 0.4rem;
}

.site-footer__claim {
    margin: 0;
    max-width: 24rem;
    color: var(--color-muted);
}

.site-footer__heading {
    margin: 0 0 0.75rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-ink);
}

.site-footer__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.site-footer__list a {
    color: var(--color-muted);
    text-decoration: none;
    transition: color 0.2s var(--ease-out-quart);
}

.site-footer__list a:hover {
    color: var(--color-accent);
}

/* ---------- Text-Varianten nach Bildschirmbreite ---------- */

.nur-mobil {
    display: none;
}

@media (max-width: 47.99rem) {
    .ab-tablet {
        display: none;
    }

    .nur-mobil {
        display: inline;
    }
}

/* ---------- Hero-Logo am Seitenraster ---------- */

/* Logo sitzt im selben Container wie Titel, Sprungnav und Sektionen und
   steht damit buendig mit deren linker Kante (statt mit eigenem Abstand). */
.hero__brand {
    position: absolute;
    top: clamp(1.25rem, 3vw, 2rem);
    left: 0;
    right: 0;
    z-index: 2;
    pointer-events: none;
}

.hero__brand .brand-mark {
    position: static;
    pointer-events: auto;
}

/* ---------- Gewinnspiel-Box: leichter Gold-Verlauf ---------- */

/* Sehr dezent: oben links etwas heller, unten rechts etwas satter, damit die
   Fläche nicht flach wirkt. Kontrast der dunklen Schrift bleibt weit ueber AA. */
.gewinnspiel__box {
    background:
        radial-gradient(110% 80% at 0% 0%, oklch(0.87 0.05 91 / 0.75) 0%, transparent 62%),
        linear-gradient(160deg, oklch(0.82 0.056 89) 0%, oklch(0.76 0.062 87) 100%);
}

.mehr__credit {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: var(--color-muted);
}

/* ---------- Gut unterwegs im Winter ---------- */

.fahren {
    padding-top: clamp(3.5rem, 8vw, 6.5rem);
    padding-bottom: 0;
}

.fahren__liste {
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 62rem) {
    .fahren__liste {
        margin-top: 0.5rem;
    }
}

.fahren__punkt {
    padding: 1.25rem 0;
    border-top: 1px solid oklch(0.96 0.004 252 / 0.12);
}

.fahren__punkt:last-child {
    border-bottom: 1px solid oklch(0.96 0.004 252 / 0.12);
}

.fahren__titel {
    margin: 0 0 0.35rem;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(1.35rem, 2.2vw, 1.6rem);
    line-height: 1.25;
    color: var(--color-ink);
}

.fahren__text {
    margin: 0 0 0.6rem;
    max-width: 38rem;
    color: var(--color-muted);
}

.fahren__link {
    font-size: 0.9rem;
    color: var(--color-accent);
}

.fahren__link:hover,
.fahren__link:focus-visible {
    color: var(--color-ink);
}

.fahren__trenner {
    margin: 0 0.4rem;
    color: var(--color-muted);
}
