:root {
    --bg-hero: #ffffff;
    --bg: #ffffff;
    --bg-alt: #f3f4f6; /* lichtgrijs */
    --bg-footer: #f8fafc;
    --card: #ffffff;
    --accent: #78a2a5;
    --accent-soft: rgba(120, 162, 165, 0.08);
    --text: #1f2933;
    --muted: #6b7280;
    --border-subtle: rgba(148, 163, 184, 0.25);
    --radius-lg: 18px;
    --radius-full: 999px;
    --shadow-soft: 0 4px 10px rgba(15, 23, 42, 0.05);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

html {
    scroll-padding-top: 1rem;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 3rem 0;
}

.section.alt {
    background: transparent;
    border-top: none;
    border-bottom: none;
}

.section h2 {
    font-size: 1.5rem;
    margin: 0 0 0.8rem;
}

.section p {
    margin: 0 0 0.7rem;
    /*color: var(--muted);*/
    font-size: 0.96rem;
}

ul li  {
    /*color: var(--muted);*/
    font-size: 0.96rem;
}

ul li + li {
    margin-top: 0.25rem;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr);
    gap: 2rem;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .two-column {
        grid-template-columns: minmax(0, 1fr);
    }

    .section {
        padding: 2rem 0;
    }
}

/* Header & Nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1001;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0.7rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-family: 'Amatic SC', cursive;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    font-size: 0.95rem;
}

.nav a {
    color: var(--muted);
    font-weight: 300;
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 0;
    height: 2px;
    border-radius: 4px;
    background: linear-gradient(to right, #78a2a5, #5a8a8d);
    transition: width 0.18s ease-out;
}

.nav a:hover {
    text-decoration: none;
}

.nav a:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.18s ease-out, border-color 0.18s ease-out,
    transform 0.12s ease-out, box-shadow 0.12s ease-out;
}

.btn.primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: none;
}

.btn.primary:hover {
    transform: translateY(-1px);
    background: #ea580c;
}

.btn.secondary {
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.7);
    color: var(--text);
}

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

.btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Hero */
.hero {
    background: var(--bg-hero);
    padding: 3.5rem 0 2.5rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-image {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 430px;
    border-radius: 24px;
    overflow: hidden;
    z-index: 1;
}

.hero-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    position: relative;
    z-index: 2;
    margin-left: -3.25rem;
    padding: 1.5rem 0 1.5rem 1.5rem;
    border-radius: 24px;
}

.hero-text h1 {
    font-size: clamp(2.3rem, 3vw, 2.7rem);
    line-height: 1.1;
    margin: 0 0 1.1rem;
}

.hero-text p {
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: 0.98rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    margin: 1.6rem 0 0.75rem;
}

.hero-sub {
    font-size: 0.9rem;
    color: var(--muted);
    max-width: 32rem;
}

.hero-card {
    border-radius: 26px;
    padding: 1.7rem 1.6rem;
    background: #ffffff;
    border: none;
    box-shadow: none;
}

.hero-card h2 {
    margin: 0 0 1.1rem;
    font-size: 1.1rem;
}

.hero-card ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.hero-card li + li {
    margin-top: 0.3rem;
}

/* Magische Queeste Hero */
.hero-magische-queeste {
    position: relative;
    background: var(--bg-hero);
    max-width: 1600px;
    margin-inline: auto;
    margin-bottom: 10vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    color: #4A4A4A;
    font-family: 'Montserrat', sans-serif;
}

.hero-magische-queeste .hero-inner {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-magische-queeste .hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-magische-queeste h1 {
    font-family: 'Amatic SC', cursive;
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #4A4A4A;
}

.hero-magische-queeste .subtext {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.hero-magische-queeste .cta-scan {
    font-weight: bold;
    margin-bottom: 2.5rem;
}

.hero-magische-queeste .hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-magische-queeste .btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.hero-magische-queeste .btn-primary {
    background-color: #78A2A5;
    color: white;
    border: 2px solid #78A2A5;
}

.hero-magische-queeste .btn-primary:hover {
    background-color: #5a7d80;
    border-color: #5a7d80;
    transform: translateY(-2px);
}

.hero-magische-queeste .btn-outline {
    background-color: transparent;
    color: #78A2A5;
    border: 2px solid #78A2A5;
}

.hero-magische-queeste .btn-outline:hover {
    background-color: #78A2A5;
    color: white;
    transform: translateY(-2px);
}

.hero-magische-queeste .hero-image-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 55%;
    height: auto;
    will-change: transform;
}

.hero-magische-queeste.not-found  {
    min-height: 100vh;
}

.hero-magische-queeste .hero-image-float {
    max-width: 100%;
    height: auto;
}

/* Cards & Lists */
.map-card {
    position: relative;
    border-radius: 24px;
    border: none;
    background: #ffffff;
    padding: 1.2rem 1.1rem 1rem;
    box-shadow: none;
}

.expand-map-btn {
    position: absolute;
    bottom: 2.5rem;
    right: 1.5rem;
    z-index: 1000;
    gap: 0.5rem;
    background: white;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

.expand-map-btn svg {
    margin-right: 0.5rem;
}

.expand-map-btn:hover {
    background: var(--bg-alt);
    border-color: var(--accent);
}

.map-card.expanded {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    padding: 0;
    border-radius: 0;
}

.map-card.expanded #map {
    height: 100vh !important;
    border-radius: 0 !important;
}

.map-card.expanded .expand-map-btn {
    bottom: 1.5rem;
    right: .5rem;
}

body.map-expanded {
    overflow: hidden;
}

.map-placeholder {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: var(--accent-soft);
    padding: 1.4rem 1.1rem;
}

.map-placeholder p {
    margin: 0;
    text-align: center;
}

.map-sub {
    max-width: 100%;
    height: 350px;
    margin-top: 0.5rem !important;
    font-size: 0.8rem;
    color: var(--muted);
}

.map-marker-container svg {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.2s ease-out;
}

.map-marker-container:hover svg {
    transform: scale(1.1);
}

.map-card .leaflet-popup-content-wrapper {
    background: rgb(255 255 255 / 0.75);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.photo-card {
    margin: 0;
}

.photo-placeholder {
    border-radius: 18px;
    height: 180px;
    background-image: linear-gradient(
            135deg,
            #78a2a5,
            #5a8a8d
    );
    position: relative;
    overflow: hidden;
}

.photo-card figcaption {
    margin-top: 0.5rem;
    font-size: 0.86rem;
    color: var(--muted);
    text-align: center;
}

.info-card {
    border-radius: 24px;
    padding: 1.4rem 1.3rem;
    background: var(--accent-soft);
    border: none;
    box-shadow: none;
}

.info-card h3 {
    margin: 0 0 0.7rem;
    font-size: 1.05rem;
    color: var(--text);
}

.info-card ul {
    margin: .5rem 0;
    padding-left: 1.1rem;
    font-size: 0.93rem;
    color: var(--text);
}

.info-card li + li {
    margin-top: 0.25rem;
}

.tips li + li {
    margin-top: 0.5rem;
}

/* Play/Audio Page */
.play-body {
    background: radial-gradient(circle at top, #e5edf5, #f8fafc 52%, #ffffff 100%);
}

.play-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.8rem 1rem 2.4rem;
}

.play-card {
    width: 100%;
    max-width: 640px;
    border-radius: 26px;
    padding: 1.6rem 1.5rem 1.4rem;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

.play-hero {
    width: 100%;
    max-width: 200px;
    margin: 1rem auto;
}

.play-hero img {
    width: 100%;
    height: auto;
}

.play-meta {
    margin-bottom: 0.8rem;
}

.play-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.7rem;
    color: var(--muted);
    margin: 0 0 0.2rem;
}

.play-meta h1 {
    margin: 0 0 0.1rem;
    font-size: 1.3rem;
}

.play-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.play-description {
    margin-top: 0.8rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.audio-wrapper {
    margin-top: 1.4rem;
    padding: 0.85rem 0.85rem 0.9rem;
    border-radius: 18px;
    background: var(--bg-alt);
    border: 1px solid rgba(148, 163, 184, 0.6);
}

audio {
    width: 100%;
}

.play-status {
    margin-top: 1rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.play-error {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #991b1b;
    background: #fee2e2;
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
}

.play-back-link {
    display: block;
    text-align: center;
    margin-top: 1.1rem;
    font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--border-subtle);
    padding: 1rem 0;
    z-index: 1001;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
}

.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Footer */
.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-footer);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0.7rem;
    font-size: 0.86rem;
    color: var(--muted);
}

.footer-inner a {
    font-size: 0.86rem;
}

.footer-inner a + a {
    margin-left: 0.8rem;
}

/* Responsive Media Queries (General Components) */
@media (max-width: 1400px) {
    .hero-magische-queeste {
        flex-direction: row-reverse;
        align-items: center;
        padding: 1rem 0;
        margin-bottom: 0;
    }

    .hero-magische-queeste .hero-image-container {
        position: relative;
        width: 100%;
    }
}

@media (max-width: 992px) {
    .hero-magische-queeste .hero-inner {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .hero-magische-queeste h1 {
        font-size: 3.5rem;
    }

    .hero-magische-queeste .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-card {
        order: -1;
    }

    .hero-text {
        margin-left: 0;
        padding: 0;
        background: transparent;
    }

    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (max-width: 700px) {
    .header-inner {
        padding: 0.7rem .5rem;
    }

    .nav {
        display: none;
    }

    .hero {
        padding-top: 2.5rem;
    }

    .play-card {
        padding: 1.3rem 1.2rem 1.2rem;
    }

    .hero-magische-queeste {
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }

    .hero-magische-queeste .hero-image-container {
        width: 65%;
    }
}

@media (max-width: 520px) {
    .photo-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-inner {
        padding: 0.7rem 0.5rem;
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: .5rem;
    }

    .cookie-buttons {
        flex-direction: column;
        gap: 1rem;
    }
}

