:root {
    /* Flyer-inspired palette, but with a mostly white layout */
    --black: #153f19;
    --soft-black: #1f5c25;
    --white: #ffffff;

    --page-bg: #ffffff;
    --surface: #ffffff;
    --surface-soft: #fbfbf8;

    --paper: #ffffff;
    --paper-2: #f4f4ef;
    --green: #2f7a2f;
    --green-dark: #0f4a18;
    --green-soft: #f3f8ef;

    --yellow: #eaff68;
    --orange: #8f7535;
    --red: #e00000;

    --ink: #17351a;
    --muted: #55704c;
    --line: rgba(21, 63, 25, 0.14);
    --shadow: 0 22px 58px rgba(21, 63, 25, 0.10);
    --soft-shadow: 0 14px 34px rgba(21, 63, 25, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--page-bg);
    min-height: 100vh;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 26px rgba(21, 63, 25, 0.06);
}

.site-header .container {
    max-width: 1180px;
}

.logo-img {
    height: 58px;
    width: auto;
}

.site-title {
    margin: 0;
    color: var(--black);
    font-size: clamp(1.55rem, 4vw, 2.45rem);
    font-weight: 950;
    letter-spacing: -0.08em;
    line-height: 0.95;
    text-transform: uppercase;
}

.site-subtitle {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-headline {
    position: relative;
}

.header-pop-img {
    display: none;
}

/* Language switcher */
.lang-switcher .btn-group {
    border: 1px solid var(--black);
    border-radius: 0;
}

.lang-switcher .btn {
    border-radius: 0 !important;
    border: none;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    padding: 0.45rem 0.62rem;
    text-transform: uppercase;
}

.lang-switcher .btn-primary {
    background: var(--black);
    color: var(--white);
}

.lang-switcher .btn-outline-primary {
    background: var(--white);
    color: var(--black);
}

.lang-switcher .btn-outline-primary:hover {
    background: var(--yellow);
    color: var(--black);
}

/* Main layout */
.main-content {
    min-height: calc(100vh - 140px);
    background: #ffffff;
}

.main-content > .container {
    max-width: 1180px;
    background: #ffffff;
}

/* Tabs */
.nav-tabs {
    display: flex;
    gap: 0;
    border: 0;
    margin-top: 1.5rem;
    background: var(--black);
    box-shadow: var(--soft-shadow);
    overflow-x: auto;
    scrollbar-width: thin;
}

.nav-tabs .nav-item {
    flex: 0 0 auto;
}

.nav-tabs .nav-link {
    color: rgba(255, 255, 255, 0.78);
    background: var(--black);
    border: 0;
    border-radius: 0;
    padding: 1rem 1.15rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.82rem;
    transition: background 0.16s ease, color 0.16s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--white);
    background: var(--soft-black);
}

.nav-tabs .nav-link.active {
    color: var(--black);
    background: var(--yellow);
}

/* Content shell */
.tab-content {
    background: #ffffff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.tab-pane {
    padding: clamp(1.25rem, 4vw, 3rem);
    background: #ffffff;
}

/* Hero */
.hero {
    position: relative;

    width: 100vw;
    left: 50%;
    margin-left: -50vw;

    margin-top: calc(clamp(1.25rem, 4vw, 3rem) * -1);
    margin-bottom: clamp(1.75rem, 4vw, 3rem);

    min-height: clamp(450px, 62vh, 650px);

    padding-block: clamp(3.25rem, 7vw, 6rem);
    padding-inline: max(
        clamp(2rem, 7vw, 5.5rem),
        calc((100vw - 1180px) / 2 + 3rem)
    );

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--white);

    background-image:
        linear-gradient(90deg, rgba(10, 35, 15, 0.78) 0%, rgba(10, 35, 15, 0.58) 42%, rgba(10, 35, 15, 0.16) 100%),
        linear-gradient(0deg, rgba(10, 35, 15, 0.35), rgba(10, 35, 15, 0.08)),
        url("/static/registrations/garten.91024515a302.jpeg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(45deg, transparent 0 48%, rgba(234,255,104,0.08) 49% 51%, transparent 52%),
        linear-gradient(-45deg, transparent 0 48%, rgba(255,255,255,0.04) 49% 51%, transparent 52%);
    background-size: 54px 54px;
    opacity: 0.22;
    pointer-events: none;
}

.hero::after {
    content: "";
}

.hero > * {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero h2 {
    margin: 0 0 1.15rem;
    color: var(--white);
    font-size: clamp(2.85rem, 7.4vw, 5.9rem);
    font-weight: 1000;
    letter-spacing: -0.105em;
    line-height: 0.88;
    text-transform: uppercase;
    text-shadow: 0 7px 32px rgba(0, 0, 0, 0.55);
}

.hero h2::after {
    content: "";
    display: block;
    width: 82px;
    height: 7px;
    margin-top: 0.95rem;
    background: var(--yellow);
}

.hero .meta {
    margin: 0;
    max-width: 680px;
    color: var(--white);
    font-size: clamp(1rem, 1.55vw, 1.2rem);
    font-weight: 650;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
    text-shadow: 0 4px 22px rgba(0, 0, 0, 0.62);
}

.hero .badge-inclusive {
    display: inline-flex;
    align-items: center;
    background: var(--yellow);
    color: var(--black);
    border-radius: 0;
    border: 0;
    padding: 0.72rem 1rem;
    font-size: 0.88rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
}

/* Typography */
h2,
h3,
h4,
.card-title {
    letter-spacing: -0.035em;
}

.text-primary {
    color: var(--black) !important;
}

h3.text-primary,
h2.text-primary {
    position: relative;
    display: inline-block;
    margin-top: 1rem;
    color: var(--black) !important;
    font-weight: 1000;
    text-transform: uppercase;
}

h3.text-primary::after,
h2.text-primary::after {
    content: "";
    display: block;
    width: 72px;
    height: 8px;
    margin-top: 0.45rem;
    background: var(--yellow);
}

p,
li,
.rich-text,
.mb-4 {
    font-size: 1.04rem;
    line-height: 1.7;
}

.text-muted {
    color: var(--muted) !important;
}

.welcome-intro {
    max-width: 900px;
    margin-inline: auto;
    text-align: left;
    font-size: clamp(1.05rem, 1.55vw, 1.22rem);
    line-height: 1.65;
}

/* Quick facts */
.camp-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: clamp(1.25rem, 3vw, 2rem) auto clamp(2rem, 4vw, 3rem);
}

.camp-fact {
    position: relative;
    padding: 1.15rem 1.25rem;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 26px rgba(21, 63, 25, 0.055);
}

.camp-fact::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 7px;
    background: var(--black);
}

.camp-fact span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 950;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.camp-fact strong {
    display: block;
    color: var(--black);
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 1000;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

/* Full-width story rows */
.story-split {
    position: relative;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;

    min-height: clamp(300px, 42vh, 450px);
    margin-top: clamp(1.75rem, 4vw, 3rem);
    margin-bottom: clamp(1.75rem, 4vw, 3rem);
    background: #ffffff;
}

.story-image-wrap {
    min-height: clamp(300px, 42vh, 450px);
    overflow: hidden;
}

.story-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: clamp(300px, 42vh, 450px);
    object-fit: cover;
    object-position: center;
}

.story-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: clamp(2rem, 4.5vw, 4rem);
    padding-inline: clamp(2rem, 7vw, 6rem);
    background: #ffffff;
}

.story-copy h2 {
    max-width: 520px;
    margin: 0;
    color: var(--black);
    font-size: clamp(1.45rem, 2.7vw, 2.45rem);
    font-weight: 950;
    line-height: 1.06;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.story-copy h2::after {
    content: "";
    display: block;
    width: 68px;
    height: 7px;
    margin-top: 0.95rem;
    background: var(--yellow);
}

/* On the first row, align the text with the centered page content */
.story-split-left-image .story-copy {
    padding-right: max(clamp(2rem, 7vw, 6rem), calc((100vw - 1180px) / 2 + 3rem));
}

/* On the second row, align the text with the centered page content */
.story-split-right-image .story-copy {
    padding-left: max(clamp(2rem, 7vw, 6rem), calc((100vw - 1180px) / 2 + 3rem));
}

/* WWF-style image cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 4rem);
    margin: clamp(2rem, 5vw, 3.25rem) 0 clamp(0.75rem, 2vw, 1.25rem);
    background: #ffffff;
}

.feature-card {
    position: relative;
    min-height: auto;
    padding-bottom: 0.75rem;
    background: #ffffff;
}

.feature-image {
    display: block;
    width: 100%;
    height: 310px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 10px 30px rgba(21, 63, 25, 0.08);
}

/* Textbox on image */
.feature-copy {
    position: relative;
    z-index: 2;
    width: 86%;
    margin: -4.25rem auto 0;
    padding: clamp(1.25rem, 2.5vw, 1.85rem);

    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(21, 63, 25, 0.10);
    backdrop-filter: blur(3px);

    text-align: left;
}

.feature-copy::after {
    content: "";
    display: block;
    width: 68px;
    height: 7px;
    margin: 1rem 0 0;
    background: var(--yellow);
}

.feature-kicker {
    color: var(--orange);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
}

.feature-copy h3 {
    margin: 0 0 0.75rem;
    color: var(--black);
    font-size: clamp(1.35rem, 2.25vw, 1.9rem);
    font-weight: 1000;
    line-height: 1.05;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.feature-copy p {
    margin: 0;
    color: var(--ink);
    font-size: 0.96rem;
    line-height: 1.56;
}

/* Info cards */
.info-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: 0 10px 26px rgba(21, 63, 25, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    overflow: hidden;
}

.info-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 8px;
    background: var(--black);
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(21, 63, 25, 0.10);
    background: #ffffff;
}

.info-card .card-title {
    margin-bottom: 0.45rem;
    color: var(--black);
    font-size: 1.15rem;
    font-weight: 1000;
    text-transform: uppercase;
}

/* Question / CTA card */
.question-card {
    margin-top: clamp(0.75rem, 2vw, 1.25rem);
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem) !important;
    padding: 0;
}

.question-card::before {
    width: 10px;
}

.question-card-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.25rem;
    padding: clamp(1.15rem, 2.5vw, 1.65rem);
}

.question-copy p {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.5;
}

.question-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Registration and contact panels */
.registration-panel {
    max-width: 650px;
}

.contact-panel {
    max-width: 980px;
}

/* Program tab */
#programm ul {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

#programm li {
    position: relative;
    margin-bottom: 0.75rem !important;
    padding: 1rem 1rem 1rem 1.25rem;
    background: #ffffff;
    border-left: 8px solid var(--black);
    box-shadow: 0 10px 24px rgba(21, 63, 25, 0.05);
}

#programm li strong {
    color: var(--black);
    font-weight: 1000;
    text-transform: uppercase;
}

/* Forms */
form {
    width: 100%;
}

.form-label {
    color: var(--black);
    font-size: 0.82rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control,
.form-select,
textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"] {
    border-radius: 0 !important;
    border: 2px solid var(--black) !important;
    padding: 0.78rem 0.9rem !important;
    box-shadow: none !important;
    background: #ffffff;
}

.form-control:focus,
.form-select:focus,
textarea:focus,
input:focus {
    border-color: var(--orange) !important;
    box-shadow: 0 0 0 0.22rem rgba(143, 117, 53, 0.24) !important;
}

/* Buttons */
.btn {
    border-radius: 0 !important;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.btn-primary {
    background: var(--black);
    border: 2px solid var(--black);
    color: var(--white);
    padding: 0.8rem 1.25rem;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--yellow) !important;
    border-color: var(--yellow) !important;
    color: var(--black) !important;
    transform: translateY(-2px);
    box-shadow: none !important;
}

.btn-outline-primary {
    color: var(--black);
    border: 2px solid var(--black);
    background: transparent;
    padding: 0.65rem 1rem;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background: var(--black) !important;
    border-color: var(--black) !important;
    color: var(--white) !important;
}

/* Success */
.success-box {
    background: var(--green-soft);
    border: 2px solid var(--green);
    border-radius: 0;
    color: var(--green-dark);
    font-weight: 800;
}

/* Contact */
#kontakt a {
    color: var(--black);
    font-weight: 900;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

#kontakt a:hover {
    color: var(--orange);
}

.contact-people-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
}

.contact-person-card {
    padding: 0;
}

.contact-person-card::before {
    width: 8px;
    z-index: 2;
    pointer-events: none;
}

.contact-person-image {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center;
}

.contact-person-copy {
    padding: 1.25rem 1.35rem 1.35rem;
    padding-left: calc(1.35rem + 8px);
}

.contact-person-copy h3 {
    margin: 0 0 0.75rem;
    color: var(--black);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 1000;
    letter-spacing: -0.04em;
}

.contact-person-copy p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Footer */
.site-footer {
    margin-top: 1.75rem !important;
    background: var(--black);
    color: var(--white);
    border-top: 12px solid var(--yellow);
}

.site-footer p {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* RTL */
/* Mirror the full-bleed break-out for RTL.
   The LTR trick (left: 50%; margin-left: -50vw) shifts the wrong way in RTL,
   because an overflowing block aligns its right edge to the container. */
[dir="rtl"] .hero,
[dir="rtl"] .story-split {
    left: auto;
    right: 50%;
    margin-left: 0;
    margin-right: -50vw;
}

[dir="rtl"] .info-card::before {
    left: auto;
    right: 0;
}

[dir="rtl"] #programm li {
    border-left: 0;
    border-right: 8px solid var(--black);
}

[dir="rtl"] .contact-person-copy {
    padding-left: 1.35rem;
    padding-right: calc(1.35rem + 8px);
}

/* Mobile */
@media (max-width: 767.98px) {
    .site-header {
        position: relative;
    }

    .logo-img {
        height: 48px;
    }

    .site-title {
        font-size: 1.7rem;
    }

    .site-subtitle {
        font-size: 0.72rem;
    }

    .lang-switcher {
        width: 100%;
    }

    .lang-switcher form,
    .lang-switcher .btn-group {
        width: 100%;
    }

    .lang-switcher .btn {
        flex: 1;
    }

    .nav-tabs {
        margin-top: 0.8rem;
    }

    .nav-tabs .nav-link {
        padding: 0.85rem 0.9rem;
        font-size: 0.76rem;
    }

    .hero {
        min-height: 490px;
        width: 100vw;
        left: 50%;
        margin-left: -50vw;
        margin-top: -1.25rem;
        margin-bottom: 1.75rem;
        padding: 3rem 1.25rem;
        background-position: center;
        justify-content: center;
    }

    .hero h2 {
        font-size: clamp(2.65rem, 14vw, 4.4rem);
        margin-bottom: 1rem;
    }

    .hero .meta {
        font-size: 0.98rem;
        line-height: 1.42;
    }

    .hero .badge-inclusive {
        width: 100%;
        justify-content: center;
    }

    .welcome-intro {
        text-align: left;
        font-size: 1.05rem;
    }

    .camp-facts {
        grid-template-columns: 1fr;
        margin: 1.25rem 0 2rem;
    }

    .story-split {
        grid-template-columns: 1fr;
        min-height: auto;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .story-split-right-image .story-copy {
        order: 2;
    }

    .story-split-right-image .story-image-wrap {
        order: 1;
    }

    .story-image-wrap,
    .story-image {
        min-height: 280px;
    }

    .story-copy {
        padding: 1.75rem 1.25rem;
    }

    .story-split-left-image .story-copy,
    .story-split-right-image .story-copy {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .story-copy h2 {
        font-size: clamp(1.45rem, 7.5vw, 2.35rem);
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 2rem 0 1rem;
        background: #ffffff;
    }

    .feature-card {
        min-height: auto;
        padding-bottom: 0;
        background: #ffffff;
    }

    .feature-image {
        height: 260px;
    }

    .feature-copy {
        width: calc(100% - 1.5rem);
        margin-top: -3.5rem;
        padding: 1.25rem;
        text-align: left;
        background: rgba(255, 255, 255, 0.94);
    }

    .feature-copy::after {
        margin-left: 0;
        margin-right: auto;
    }

    .feature-copy h3 {
        font-size: 1.5rem;
    }

    .question-card-inner {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .question-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .question-actions .btn {
        width: 100%;
        text-align: center;
    }

    .contact-panel {
        max-width: 100%;
    }

    .contact-people-grid {
        grid-template-columns: 1fr;
    }

    .contact-person-image {
        height: 300px;
    }

    .tab-pane {
        padding: 1.25rem;
    }

    p,
    li,
    .rich-text,
    .mb-4 {
        font-size: 1rem;
    }

    .site-footer {
        margin-top: 1.25rem !important;
    }
}
