:root {
    --green-dark: #285d49;
    --green: #39755d;
    --green-light: #dff2e7;
    --yellow: #ffd66b;
    --cream: #fffaf0;
    --ink: #20332c;
    --muted: #607269;
    --white: #ffffff;
    --red: #a83c3c;
    --red-light: #fff0f0;
    --shadow: 0 16px 40px rgba(34, 72, 57, 0.12);
}

 { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 1.25rem 5.75rem;
    color: var(--white);
    background: linear-gradient(135deg, #285d49 0%, #4c8d70 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: min(100%, 880px);
    margin: 0 auto;
}

.hero a,
.hero a:visited {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.35);
}

.hero a:hover {
    border-bottom-color: rgba(255,255,255,0.9);
}
``

.stone {
    display: grid;
    flex: 0 0 auto;
    width: 92px;
    height: 92px;
    place-items: center;
    border: 4px solid rgba(255, 255, 255, 0.7);
    border-radius: 46% 54% 50% 44%;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    font-size: 2.8rem;
    transform: rotate(-5deg);
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: .45rem; font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.07; }
h2 { margin-bottom: .45rem; font-size: clamp(1.45rem, 4vw, 2rem); line-height: 1.2; }
.subtitle { max-width: 680px; margin-bottom: 0; font-size: 1.08rem; opacity: .94; }
.eyebrow { margin-bottom: .3rem; font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.landscape {
    position: absolute;
    right: -5%;
    bottom: -70px;
    left: -5%;
    height: 120px;
    border-radius: 50% 50% 0 0;
    background: var(--cream);
    transform: rotate(-1deg);
}

.page {
    position: relative;
    z-index: 3;
    width: min(calc(100% - 2rem), 880px);
    margin: -2rem auto 0;
}

.card {
    margin-bottom: 1.5rem;
    padding: clamp(1.25rem, 4vw, 2.25rem);
    border: 1px solid rgba(40, 93, 73, 0.12);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.motivation { display: flex; gap: 1.25rem; align-items: flex-start; }
.card__icon {
    display: grid;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 18px;
    background: var(--green-light);
    font-size: 1.8rem;
}
.motivation p { margin-bottom: 0; color: var(--muted); }

.section-heading { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.section-heading h2, .section-heading p { margin-bottom: 0; }
.step {
    display: grid;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    color: var(--green-dark);
    background: var(--yellow);
    font-size: 1.3rem;
    font-weight: 900;
}

.field { margin-bottom: 1.35rem; }
label { display: block; margin-bottom: .2rem; font-size: 1.07rem; font-weight: 800; }
.hint { margin-bottom: .55rem; color: var(--muted); font-size: .93rem; }

input, textarea {
    display: block;
    width: 100%;
    border: 2px solid #cbd9d2;
    border-radius: 14px;
    color: var(--ink);
    background: #fbfefd;
    font: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
input { max-width: 250px; padding: .85rem 1rem; font-size: 1.35rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
textarea { min-height: 130px; padding: .9rem 1rem; resize: vertical; }
input:focus, textarea:focus { border-color: var(--green); background: var(--white); box-shadow: 0 0 0 4px rgba(57, 117, 93, .14); }
.counter { margin-top: .35rem; color: var(--muted); text-align: right; font-size: .85rem; }

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    min-height: 52px;
    padding: .85rem 1.4rem;
    border: 0;
    border-radius: 14px;
    color: var(--white);
    background: var(--green);
    box-shadow: 0 8px 18px rgba(40, 93, 73, .2);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s, background .15s;
}
button:hover { background: var(--green-dark); transform: translateY(-1px); }
button:focus-visible { outline: 4px solid var(--yellow); outline-offset: 3px; }

.message { margin-bottom: 1.4rem; padding: 1rem 1.1rem; border-radius: 14px; }
.message strong, .message span { display: block; }
.message ul { margin-bottom: 0; padding-left: 1.25rem; }
.message--success { border: 1px solid #94c9aa; background: var(--green-light); }
.message--error { border: 1px solid #e0aaaa; color: #6e2626; background: var(--red-light); }

.privacy-note {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    margin: 1rem 0 2.5rem;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    background: #fff2c8;
}
.privacy-note p { margin: 0; }

footer { padding: 1.25rem; color: var(--muted); text-align: center; }
footer p { margin: 0; }

@media (max-width: 600px) {
    .hero { padding-top: 2.25rem; }
    .hero__content { align-items: flex-start; }
    .stone { width: 62px; height: 62px; border-width: 3px; font-size: 1.9rem; }
    .motivation { display: block; }
    .card__icon { margin-bottom: 1rem; }
    button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
     { scroll-behavior: auto !important; transition: none !important; }
}


.map-introduction > p {
    margin-bottom: 1.25rem;
    color: var(--muted);
}

.map-statistics {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.map-statistics > div {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 210px;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: var(--green-light);
}

.map-statistics strong {
    color: var(--green-dark);
    font-size: 1.55rem;
    line-height: 1;
}

.map-statistics span {
    color: var(--ink);
    font-size: 0.92rem;
}

.map-card {
    padding: clamp(0.75rem, 2vw, 1.25rem);
    overflow: hidden;
}

#wanderstein-map {
    width: 100%;
    height: min(70vh, 680px);
    min-height: 480px;
    border: 1px solid rgba(40, 93, 73, 0.18);
    border-radius: 18px;
    background: var(--green-light);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.map-hint {
    margin: 0.9rem 0 0.1rem;
    color: var(--muted);
    text-align: center;
    font-size: 0.9rem;
}

.stone-popup {
    min-width: 190px;
    color: var(--ink);
    line-height: 1.45;
}

.stone-popup strong {
    display: block;
    margin-bottom: 0.18rem;
    color: var(--green-dark);
    font-size: 1rem;
}

.stone-popup__step {
    display: inline-block;
    margin-bottom: 0.45rem;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    color: var(--green-dark);
    background: var(--green-light);
    font-size: 0.78rem;
    font-weight: 800;
}

.stone-popup p {
    margin-bottom: 0.45rem;
}

.stone-popup small {
    display: block;
    color: var(--muted);
}

.stone-popup__accuracy {
    margin-top: 0.25rem;
    font-style: italic;
}

.empty-map {
    padding: 3rem 1.25rem;
    text-align: center;
}

.empty-map > span {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 3rem;
}

.empty-map h2 {
    margin-bottom: 0.5rem;
}

.empty-map p {
    max-width: 520px;
    margin: 0 auto;
    color: var(--muted);
}

.page-actions {
    display: flex;
    justify-content: center;
    margin: 0 0 2.5rem;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 52px;
    padding: 0.85rem 1.4rem;
    border-radius: 14px;
    color: var(--white);
    background: var(--green);
    box-shadow: 0 8px 18px rgba(40, 93, 73, 0.2);
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.15s, background 0.15s;
}

.button-link:hover {
    color: var(--white);
    background: var(--green-dark);
    transform: translateY(-1px);
}

.button-link:focus-visible {
    outline: 4px solid var(--yellow);
    outline-offset: 3px;
}

footer a {
    color: var(--green-dark);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: var(--white);
}

.leaflet-popup-content-wrapper {
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.leaflet-control-zoom a {
    color: var(--green-dark);
}

@media (max-width: 600px) {
    #wanderstein-map {
        height: 65vh;
        min-height: 420px;
        border-radius: 14px;
    }

    .map-statistics {
        display: grid;
        grid-template-columns: 1fr;
    }

    .map-statistics > div {
        min-width: 0;
    }

    .map-card {
        padding: 0.6rem;
    }

    .page-actions .button-link {
        width: 100%;
    }
}

#wanderstein-map {
    position: relative;
    width: 100%;
    height: 650px;
    min-height: 480px;
    overflow: hidden;
    border: 1px solid rgba(40, 93, 73, 0.18);
    border-radius: 18px;
    background: var(--green-light);
}

#wanderstein-map img {
    max-width: none;
}

.stone-popup__overlap {
    display: block;
    margin-top: 0.6rem;
    padding-top: 0.5rem;
    border-top: 1px solid #d9e5df;
    color: #39755d;
    font-weight: 600;
}

/*
 * Kartenlink auf der Startseite
 */
 .map-teaser {
    align-items: flex-start;
}

.map-teaser__content {
    flex: 1;
}

.map-teaser__content p {
    margin-bottom: 1rem;
    color: var(--muted);
}

.map-teaser__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    padding: 0.8rem 1.3rem;

    border-radius: 999px;

    background: var(--green);
    color: var(--white);

    font-weight: 700;
    text-decoration: none;
}

.map-teaser__button:hover {
    background: var(--green-dark);
    color: var(--white);
}

/*
 * Mobile Darstellung
 */
@media (max-width: 680px) {
    .map-teaser__link {
        grid-texplate-columns: auto minmax(0, 1fr);
        gap: 1rem;

        padding: 1.25rem;
    }

    .map-teaser_logo {
        width: 62px;
       height: 62px;

        font-size: 2.25rem;
        border-radius: 10px;
    }

    .map-teaser__content strong {
        font-size: 1.15rem;
    }

    .map-teaser__description {
        font-size: 0.94rem;
   }

    .map-teaser__button {
       grid-column: 1 / -1;

       width: 100%;
        margin-top: 0.25rem;
    }
}