/* ═══════════════════════════════════════════════════════
   Regla e.V. — Shared Stylesheet
   ═══════════════════════════════════════════════════════ */

:root {
    --cream:       #FAF8F4;
    --ink:         #1C1917;
    --ink-soft:    #57534E;
    --ink-faint:   #A8A29E;
    --green:       #367056;
    --green-mid:   #52b788;
    --green-light: #b3cfc0;
    --green-pale:  #e8f5ee;
    --rose:        #C1666B;
    --peach:       #FDF6F0;
    --nav-h:       108px; /* notice strip (36px) + main nav row (72px) */
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 16px;
    color: var(--ink);
    background: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ── Typography helpers ─────────────────────────────── */
.font-serif { font-family: 'DM Serif Display', Georgia, serif; }

/* ═══════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Formation notice strip */
.nav-notice {
    width: 100%;
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.nav--dark  .nav-notice { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.45); }
.nav--light .nav-notice { background: var(--green-pale); color: var(--green); border-color: rgba(54,112,86,0.15); }
.nav--cream .nav-notice { background: var(--green-pale); color: var(--green); border-color: rgba(54,112,86,0.15); }

/* Main nav row */
.nav-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 3.5rem;
}
@media (max-width: 768px) { .nav-main { padding: 1.1rem 2rem; } }

.nav-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}
.nav-logo span { color: var(--green); }

/* On dark hero — logo white */
.nav--dark .nav-logo { color: #fff; }
.nav--dark .nav-logo span { color: var(--green-mid); }

/* After scrolling past hero */
.nav--light {
    background: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(28,25,23,0.08);
}
.nav--light .nav-logo { color: var(--ink); }

/* Cream nav for sub-pages */
.nav--cream {
    background: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(28,25,23,0.08);
}
.nav--cream .nav-logo { color: var(--ink); }

/* Lang switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.07);
    border-radius: 100px;
    padding: 3px;
    gap: 2px;
}
.nav--dark .lang-switcher { background: rgba(255,255,255,0.12); }

.lang-btn {
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.nav--dark .lang-btn { color: rgba(255,255,255,0.6); }
.lang-btn.active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
    background: var(--ink);
    padding: 3.5rem 3.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem 2rem;
}
@media (max-width: 768px) { .footer { padding: 3rem 2rem; } }

.footer-brand { display: flex; align-items: baseline; gap: 0.5rem; }
.footer-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.25rem;
    color: #fff;
}
.footer-logo span { color: var(--green-mid); }
.footer-sub { font-size: 0.75rem; color: rgba(255,255,255,0.3); }
.footer-note { font-size: 0.875rem; color: rgba(255,255,255,0.35); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.35);
    transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.7); }

/* ═══════════════════════════════════════════════════════
   BUTTONS / CTAs
   ═══════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.875rem 1.75rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
}
.btn:hover { opacity: 0.85; }

.btn-green  { background: var(--green);     color: #fff; }
.btn-green-mid { background: var(--green-mid); color: var(--ink); }
.btn-rose   { background: var(--rose);      color: #fff; }
.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.22);
    color: rgba(255,255,255,0.65);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.5); color: #fff; opacity: 1; }

/* ═══════════════════════════════════════════════════════
   SECTION EYEBROW
   ═══════════════════════════════════════════════════════ */
.eyebrow {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--ink);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 5rem 3.5rem 5rem;
    overflow: hidden;
}
@media (max-width: 768px) { .hero { padding: 5rem 2rem 4rem; } }

.hero-glow {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 55%;
    background: radial-gradient(ellipse 60% 65% at 65% 50%,
        rgba(82,183,136,0.1) 0%, rgba(54,112,86,0.05) 40%, transparent 70%);
    pointer-events: none;
}

.hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        #1C1917 35%,
        rgba(28,25,23,0.88) 52%,
        rgba(28,25,23,0.3) 70%,
        transparent 85%
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 680px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--green-mid);
    margin-bottom: 1.75rem;
}

.hero-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(3.2rem, 8.5vw, 7rem);
    color: #fff;
    line-height: 0.93;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}
.hero-title em {
    font-style: italic;
    color: var(--green-mid);
}

.hero-sub {
    font-size: 1.05rem;
    line-height: 1.72;
    color: rgba(179,207,192,0.75);
    max-width: 420px;
    margin-bottom: 2.75rem;
}

.hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.scroll-hint {
    position: absolute;
    bottom: 2.25rem;
    right: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
@media (max-width: 768px) { .scroll-hint { display: none; } }

.scroll-line {
    width: 1px;
    height: 52px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3));
}
.scroll-label {
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    writing-mode: vertical-rl;
}

/* ═══════════════════════════════════════════════════════
   BOX MOCKUP
   ═══════════════════════════════════════════════════════ */
.box-anchor {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
@media (max-width: 768px) {
    .box-anchor {
        position: relative;
        width: 100%;
        height: 220px;
        margin-bottom: 2rem;
    }
}

.box-scene {
    position: relative;
    width: 200px;
    height: 290px;
}

.box-shadow {
    position: absolute;
    bottom: -22px; left: 50%;
    transform: translateX(-50%);
    width: 160px; height: 28px;
    background: rgba(82,183,136,0.15);
    border-radius: 50%;
    filter: blur(18px);
}

.box-3d { position: absolute; inset: 0; }

@media (prefers-reduced-motion: no-preference) {
    .box-3d {
        animation: boxFloat 5s ease-in-out infinite;
    }
}
@keyframes boxFloat {
    0%,100% { transform: translateY(0) rotate(-0.5deg); }
    50%      { transform: translateY(-14px) rotate(0.5deg); }
}

.box-top {
    position: absolute;
    top: -12px; left: 20px;
    width: 162px; height: 24px;
    background: #203d30;
    border-radius: 6px 6px 0 0;
    transform: skewX(-0.8deg);
}
.box-side {
    position: absolute;
    top: 9px; left: 0;
    width: 26px; height: 242px;
    background: #172e24;
    border-radius: 4px 0 0 4px;
    transform: skewY(-1.8deg);
}
.box-front {
    position: absolute;
    top: 0; left: 22px;
    width: 162px; height: 252px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow:
        0 0 0 1px rgba(82,183,136,0.18),
        0 28px 72px rgba(0,0,0,0.55),
        0 0 80px rgba(82,183,136,0.07);
}
.box-ad-zone {
    flex: 0 0 56%;
    background: var(--green-pale);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.1rem;
    border-bottom: 1px solid rgba(54,112,86,0.12);
}
.box-brand-mark {
    font-family: 'DM Serif Display', serif;
    font-size: 0.58rem;
    color: var(--green);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 0.25rem;
}
.box-brand-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.75rem;
    color: var(--green);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 0.2rem;
}
.box-brand-logo span { font-style: italic; color: var(--green-mid); }
.box-brand-tagline {
    font-size: 0.46rem;
    color: var(--green);
    opacity: 0.5;
    letter-spacing: 0.07em;
}
.box-product-zone {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    gap: 0.45rem;
}
.box-tampons { display: flex; gap: 7px; margin-bottom: 2px; }
.tampon-pill {
    width: 8px; height: 24px;
    background: var(--green-light);
    border-radius: 5px;
}
.box-product-name {
    font-size: 0.6rem; font-weight: 600;
    color: var(--ink); letter-spacing: 0.07em; text-transform: uppercase;
}
.box-product-detail {
    font-size: 0.48rem;
    color: var(--ink-faint);
    letter-spacing: 0.04em;
}
.box-free-badge {
    background: var(--green); color: #fff;
    font-size: 0.48rem; font-weight: 600;
    padding: 3px 11px; border-radius: 100px;
    letter-spacing: 0.1em; text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════════ */
.how { background: var(--cream); }

.how-header {
    padding: 5.5rem 3.5rem 4rem;
}
@media (max-width: 768px) { .how-header { padding: 4rem 2rem 3rem; } }

.how-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.1;
    max-width: 28rem;
    margin-top: 0.75rem;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(28,25,23,0.07);
}
@media (max-width: 860px)  { .how-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px)  { .how-grid { grid-template-columns: 1fr; } }

.how-step {
    padding: 2.5rem 2rem 3rem;
    border-right: 1px solid rgba(28,25,23,0.07);
    border-bottom: 1px solid rgba(28,25,23,0.07);
}
.how-step:last-child { border-right: none; }

.step-num {
    display: block;
    font-family: 'DM Serif Display', serif;
    font-size: clamp(4rem, 7vw, 6.5rem);
    line-height: 1;
    color: var(--green-pale);
    -webkit-text-stroke: 1.5px var(--green-mid);
    text-stroke: 1.5px var(--green-mid);
    margin-bottom: 1.75rem;
    user-select: none;
}
.step-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.15rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}
.step-body { font-size: 0.875rem; line-height: 1.72; color: var(--ink-soft); }

/* ═══════════════════════════════════════════════════════
   PATHS SPLIT
   ═══════════════════════════════════════════════════════ */
.paths { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 768px) { .paths { grid-template-columns: 1fr; } }

.path-panel {
    padding: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 5vw, 4.5rem);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.path-venue   { background: var(--green-pale); }
.path-sponsor { background: var(--peach); }

.path-icon { width: 2rem; height: 2rem; margin-bottom: 0.25rem; }

.path-eyebrow { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }

.path-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    line-height: 1.08;
    max-width: 17rem;
}
.path-body { font-size: 0.95rem; line-height: 1.75; color: var(--ink-soft); max-width: 28rem; }

.path-list { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.25rem; }
.path-list li {
    display: flex; gap: 0.6rem; align-items: flex-start;
    font-size: 0.875rem; line-height: 1.55; color: var(--ink-soft);
}
.path-arrow { font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ═══════════════════════════════════════════════════════
   FORMS (PUBLIC)
   ═══════════════════════════════════════════════════════ */
.form-page {
    min-height: 100vh;
    background: var(--cream);
    padding-top: var(--nav-h);
}

.form-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

.form-eyebrow { margin-bottom: 1rem; }

.form-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.form-subtitle {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink-soft);
    max-width: 46ch;
    margin-bottom: 2.5rem;
}

.form-card {
    background: #fff;
    border-radius: 1.25rem;
    border: 1px solid rgba(28,25,23,0.07);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 0.4rem; }

.form-field label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink-soft);
    letter-spacing: 0.01em;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid rgba(28,25,23,0.12);
    border-radius: 0.625rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9375rem;
    color: var(--ink);
    background: #fff;
    transition: border-color 0.2s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(54,112,86,0.1);
}
.form-field textarea { resize: vertical; min-height: 110px; }

.form-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2357534E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.slot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
@media (max-width: 400px) { .slot-grid { grid-template-columns: 1fr; } }

.slot-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid rgba(28,25,23,0.1);
    border-radius: 0.625rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    font-size: 0.875rem;
    color: var(--ink-soft);
}
.slot-item:hover { border-color: var(--rose); background: rgba(193,102,107,0.04); }
.slot-item input[type="checkbox"] {
    width: 1rem; height: 1rem;
    accent-color: var(--rose);
    border: none; padding: 0;
    border-radius: 3px;
    flex-shrink: 0;
    cursor: pointer;
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.5rem;
}

.form-submit {
    padding: 0.9rem 2rem;
    font-size: 0.9375rem;
}

/* Success state */
.success-banner {
    display: none;
    background: var(--green-pale);
    border: 1px solid rgba(54,112,86,0.2);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    font-size: 0.9375rem;
    color: var(--green);
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.success-banner.visible { display: block; }

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--ink-faint);
    margin-bottom: 2.5rem;
    transition: color 0.2s;
}
.back-link:hover { color: var(--ink); }

/* ═══════════════════════════════════════════════════════
   LEGAL PAGES (Impressum / Datenschutz)
   ═══════════════════════════════════════════════════════ */
.legal-page {
    min-height: 100vh;
    background: var(--cream);
    padding-top: var(--nav-h);
}
.legal-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}
.legal-container h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    margin-bottom: 2.5rem;
}
.legal-container h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}
.legal-container h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
}
.legal-container p {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--ink-soft);
    margin-bottom: 0.75rem;
}
.legal-container ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}
.legal-container ul li {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--ink-soft);
    margin-bottom: 0.25rem;
}
.legal-container a { color: var(--green); }
.legal-container a:hover { text-decoration: underline; }
.legal-notice {
    background: var(--green-pale);
    border: 1px solid rgba(54,112,86,0.2);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
}
.legal-notice p {
    color: var(--green);
    font-size: 0.875rem;
    margin: 0;
}
.legal-placeholder {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 0.4rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.8rem;
    color: #856404;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════
   THANK YOU PAGE
   ═══════════════════════════════════════════════════════ */
.thankyou-page {
    min-height: 100vh;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}
.thankyou-card {
    max-width: 480px;
}
.thankyou-icon {
    width: 56px; height: 56px;
    background: var(--green-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}
.thankyou-title {
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.thankyou-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink-soft);
    margin-bottom: 2rem;
}

/* ═══════════════════════════════════════════════════════
   ANIMATIONS (respects prefers-reduced-motion)
   ═══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
    .fade-up { opacity: 0; animation: fadeUp 0.65s ease both; }
    .delay-1 { animation-delay: 0.05s; }
    .delay-2 { animation-delay: 0.18s; }
    .delay-3 { animation-delay: 0.32s; }
    .delay-4 { animation-delay: 0.46s; }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .fade-up { opacity: 1; }
}
