/* ===== Schriftarten ===== */
@font-face {
    font-family: 'LifeSavers';
    src: url('../fonts/LifeSavers-ExtraBold.woff2') format('woff2'),
         url('../fonts/LifeSavers-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bellota';
    src: url('../fonts/Bellota-Regular.woff2') format('woff2'),
         url('../fonts/Bellota-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Red Hat Text';
    src: url('../fonts/RedHatText-VariableFont_wght.woff2') format('woff2'),
         url('../fonts/RedHatText-VariableFont_wght.woff') format('woff');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

/* ===== Reset & Basis ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --coral: #e66970;
    --coral-light: #f09096;
    --gold: #f7b852;
    --gold-light: #f9cb7d;
    --teal: #7CBFBF;
    --teal-light: #B5DEDE;
    --green: #8DB600;
    --cream: #FFFDF8;
    --text-dark: #526464;
    --text-medium: #6B7D7D;
    --text-light: #8A9A9A;
    --white: #FFFFFF;
    --border: #E8E4DF;
    --shadow: rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Bellota', 'Georgia', 'Times New Roman', serif;
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.7;
    font-size: 17px;
    overflow-x: hidden;
}

/* ===== Typografie ===== */
h1, h2, h3 {
    font-weight: normal;
    line-height: 1.2;
}

a {
    color: var(--coral);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold);
}

/* ===== Layout ===== */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* ===== Dekorative Illustrationen ===== */
.deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

.deco img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== Header / Hero ===== */
.hero {
    position: relative;
    text-align: center;
    padding: 80px 24px 50px;
    overflow: hidden;
}

.hero__title {
    font-family: 'LifeSavers', 'Georgia', serif;
    font-weight: 800;
    font-size: clamp(3rem, 10vw, 5.5rem);
    color: var(--gold);
    letter-spacing: 4px;
    line-height: 1.05;
    margin-bottom: 16px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.hero__subtitle {
    font-size: clamp(1rem, 3vw, 1.35rem);
    color: var(--coral);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

/* Hero Deko */
.deco-hero-zweig {
    top: 8px;
    left: 50%;
    transform: translateX(-10%);
    width: 100px;
}

.deco-hero-ei {
    top: 15px;
    right: 18%;
    width: 50px;
    transform: rotate(10deg);
}

.deco-hero-blume-l {
    bottom: 20px;
    left: 5%;
    width: 40px;
}

.deco-hero-narzisse {
    bottom: 10px;
    right: 8%;
    width: 65px;
}

/* ===== Sections ===== */
section {
    position: relative;
    padding: 50px 0;
}

/* ===== Programm / Details ===== */
.details {
    text-align: center;
    position: relative;
}

.details__block {
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

.details__block h3 {
    font-size: 1.2rem;
    color: var(--coral);
    margin-bottom: 12px;
    font-style: italic;
}

.details__block ul {
    list-style: none;
    padding: 0;
}

.details__block ul li {
    padding: 4px 0;
    color: var(--text-medium);
    font-size: 1rem;
    font-family: 'Red Hat Text', 'Helvetica Neue', Arial, sans-serif;
}

.details__block ul li::before {
    content: "- ";
    color: var(--coral-light);
}

.details__date {
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.details__date h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--coral);
    line-height: 1.3;
}

.details__date p {
    font-size: 1.1rem;
    color: var(--coral-light);
    margin-top: 4px;
}

.details__price {
    display: inline-block;
    margin-top: 24px;
    font-size: 1.15rem;
    color: var(--coral);
    letter-spacing: 3px;
    font-style: italic;
    position: relative;
    z-index: 1;
    background: var(--cream);
    padding: 6px 20px;
    border: 1px solid var(--coral-light);
    border-radius: 30px;
}

/* Deko im Details-Bereich */
.deco-details-blume {
    top: 20px;
    right: -40px;
    width: 50px;
    opacity: 0.5;
}

.deco-details-zweig {
    bottom: 40px;
    left: -30px;
    width: 60px;
    opacity: 0.45;
    transform: rotate(-15deg);
}

/* ===== Illustrationsband (3 Reihen, Flyer-Stil) ===== */
.illu-band {
    position: relative;
    width: 100%;
    padding: 20px 0 40px;
    overflow: hidden;
}

.illu-band__row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: -6px;
    position: relative;
}

.illu-band__row img {
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.9;
}

/* Reihe 1: schmal, gemischte Größen */
.illu-band__row--1 {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    gap: 18px;
    z-index: 1;
}

.illu-band__row--1 img:nth-child(1) { height: 55px; transform: rotate(-5deg); }
.illu-band__row--1 img:nth-child(2) { height: 70px; transform: rotate(4deg); }
.illu-band__row--1 img:nth-child(3) { height: 40px; transform: rotate(-10deg); }
.illu-band__row--1 img:nth-child(4) { height: 30px; transform: rotate(6deg); }

/* Reihe 2: breiter, abwechslungsreich groß/klein */
.illu-band__row--2 {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    gap: 6px;
    z-index: 2;
}

.illu-band__row--2 img:nth-child(1) { height: 35px; transform: rotate(5deg); }
.illu-band__row--2 img:nth-child(2) { height: 75px; transform: rotate(-6deg); }
.illu-band__row--2 img:nth-child(3) { height: 55px; transform: rotate(8deg); }
.illu-band__row--2 img:nth-child(4) { height: 42px; transform: rotate(-4deg); }
.illu-band__row--2 img:nth-child(5) { height: 65px; transform: rotate(3deg); }
.illu-band__row--2 img:nth-child(6) { height: 50px; transform: rotate(-7deg); }
.illu-band__row--2 img:nth-child(7) { height: 38px; transform: rotate(10deg); }

/* Reihe 3: volle Breite, dicht, gemischte Größen */
.illu-band__row--3 {
    max-width: 100%;
    gap: 2px;
    z-index: 3;
    padding: 0 3%;
}

.illu-band__row--3 img:nth-child(1) { height: 55px; transform: rotate(5deg); }
.illu-band__row--3 img:nth-child(2) { height: 72px; transform: rotate(-4deg); }
.illu-band__row--3 img:nth-child(3) { height: 85px; transform: rotate(3deg); }
.illu-band__row--3 img:nth-child(4) { height: 55px; transform: rotate(-8deg); }
.illu-band__row--3 img:nth-child(5) { height: 95px; transform: rotate(6deg); }
.illu-band__row--3 img:nth-child(6) { height: 90px; transform: rotate(-3deg); }
.illu-band__row--3 img:nth-child(7) { height: 65px; transform: rotate(7deg); }
.illu-band__row--3 img:nth-child(8) { height: 40px; transform: rotate(-6deg); }

/* ===== Ort ===== */
.location {
    text-align: center;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.location h2 {
    font-family: 'LifeSavers', 'Georgia', serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--teal);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.location p {
    color: var(--text-medium);
    font-size: 1rem;
}

.location .location__note {
    margin-top: 24px;
    font-size: 0.95rem;
    color: var(--coral);
    font-style: italic;
}

/* ===== Anmeldeformular ===== */
.registration {
    text-align: center;
}

.registration h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.registration p.reg-info {
    color: var(--text-medium);
    margin-bottom: 16px;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.plaetze-info {
    font-size: 0.95rem;
    color: var(--gold);
    margin-bottom: 24px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.plaetze-info.wenig {
    color: var(--coral);
    font-weight: bold;
}

.ausgebucht-hinweis {
    background: var(--white);
    border: 2px solid var(--coral);
    border-radius: 8px;
    padding: 28px 32px;
    margin: 0 auto 32px;
    max-width: 520px;
    position: relative;
    z-index: 1;
}

.ausgebucht-hinweis p {
    color: var(--text-medium);
    margin-bottom: 8px;
    font-size: 1rem;
}

.ausgebucht-hinweis p:last-child {
    margin-bottom: 0;
}

/* Deko im Formular-Bereich */
.deco-form-ei {
    top: 10px;
    right: 5%;
    width: 45px;
    opacity: 0.45;
    transform: rotate(15deg);
}

.deco-form-narzisse {
    top: 80px;
    left: 2%;
    width: 60px;
    opacity: 0.4;
    transform: rotate(-8deg);
}

.deco-form-zweig {
    top: 40%;
    right: 0;
    width: 65px;
    opacity: 0.35;
    transform: rotate(12deg);
}

.deco-form-blume {
    bottom: 180px;
    left: 5%;
    width: 35px;
    opacity: 0.4;
    transform: rotate(5deg);
}

.deco-form-pinsel {
    bottom: 100px;
    right: 3%;
    width: 70px;
    opacity: 0.35;
    transform: rotate(-20deg);
}

.deco-form-ei2 {
    bottom: 40px;
    left: 8%;
    width: 42px;
    opacity: 0.4;
    transform: rotate(10deg);
}

.form-wrapper {
    max-width: 520px;
    margin: 0 auto;
    text-align: left;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.form-group label .required {
    color: var(--coral);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    caret-color: var(--text-dark);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group select {
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B6B' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Checkbox Group - Fix Klickbarkeit */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    accent-color: var(--coral);
    cursor: pointer;
    -webkit-appearance: auto;
    appearance: auto;
}

.checkbox-group label {
    font-size: 0.85rem;
    color: var(--text-medium);
    line-height: 1.5;
    margin-bottom: 0;
    cursor: pointer;
}

.checkbox-group label a {
    text-decoration: underline;
}

#datenschutz-error {
    display: none;
    color: var(--coral);
    font-size: 0.8rem;
    margin-top: -12px;
    margin-bottom: 16px;
}

#datenschutz-error.show {
    display: block;
}

.btn-submit {
    display: inline-block;
    width: 100%;
    padding: 14px 32px;
    font-family: inherit;
    font-size: 1.1rem;
    color: var(--white);
    background: var(--coral);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
}

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

.btn-submit:active {
    transform: translateY(0);
}

/* ===== Logos ===== */
.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 40px 24px;
    flex-wrap: wrap;
}

.logos a {
    display: block;
    transition: opacity 0.3s ease;
}

.logos a:hover {
    opacity: 0.7;
}

.logos img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 30px 24px;
    border-top: 1px solid var(--border);
    background: var(--white);
}

.footer__links {
    margin-bottom: 12px;
}

.footer__links a {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin: 0 12px;
}

.footer__links a:hover {
    color: var(--coral);
}

.footer__copy {
    font-size: 0.8rem;
    color: var(--text-light);
}

.footer__instagram {
    margin-bottom: 16px;
}

.footer__instagram a {
    color: var(--text-medium);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 20px var(--shadow);
    padding: 20px 24px;
    z-index: 1000;
    display: none;
}

.cookie-banner.visible {
    display: block;
}

.cookie-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-inner p {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-medium);
    min-width: 250px;
    line-height: 1.5;
}

.cookie-inner p a {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 24px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--white);
    background: var(--coral);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.cookie-btn:hover {
    background: #d4555c;
}

.cookie-btn--decline {
    background: transparent;
    color: var(--text-medium);
    border: 1px solid var(--border);
}

.cookie-btn--decline:hover {
    background: var(--cream);
    color: var(--text-dark);
}

/* ===== Danke-Seite ===== */
.thankyou {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
}

.thankyou h1 {
    font-size: 2.5rem;
    color: var(--coral);
    margin-bottom: 16px;
}

.thankyou p {
    color: var(--text-medium);
    font-size: 1.1rem;
    max-width: 480px;
    margin-bottom: 12px;
}

.thankyou .back-link {
    margin-top: 30px;
    display: inline-block;
    padding: 12px 28px;
    border: 1px solid var(--coral);
    border-radius: 6px;
    color: var(--coral);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.thankyou .back-link:hover {
    background: var(--coral);
    color: var(--white);
}

/* ===== Rechtstexte (Impressum, Datenschutz) ===== */
.legal {
    padding: 60px 0 80px;
}

.legal h1 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 32px;
    text-align: center;
}

.legal h2 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal h3 {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-top: 20px;
    margin-bottom: 8px;
}

.legal p, .legal ul {
    color: var(--text-medium);
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal ul {
    padding-left: 24px;
}

.legal a {
    text-decoration: underline;
}

/* ===== Fade-in Animation ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Formular Fehlerzustände ===== */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(212, 114, 106, 0.2);
}

.form-group .error-msg {
    color: var(--coral);
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
}

.form-group .error-msg.show {
    display: block;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .illu-band__row--1 img:nth-child(1) { height: 42px; }
    .illu-band__row--1 img:nth-child(2) { height: 55px; }
    .illu-band__row--1 img:nth-child(3) { height: 32px; }
    .illu-band__row--1 img:nth-child(4) { height: 24px; }

    .illu-band__row--2 img:nth-child(1) { height: 28px; }
    .illu-band__row--2 img:nth-child(2) { height: 58px; }
    .illu-band__row--2 img:nth-child(3) { height: 42px; }
    .illu-band__row--2 img:nth-child(4) { height: 34px; }
    .illu-band__row--2 img:nth-child(5) { height: 50px; }
    .illu-band__row--2 img:nth-child(6) { height: 38px; }
    .illu-band__row--2 img:nth-child(7) { height: 30px; }

    .illu-band__row--3 img:nth-child(1) { height: 42px; }
    .illu-band__row--3 img:nth-child(2) { height: 55px; }
    .illu-band__row--3 img:nth-child(3) { height: 65px; }
    .illu-band__row--3 img:nth-child(4) { height: 42px; }
    .illu-band__row--3 img:nth-child(5) { height: 72px; }
    .illu-band__row--3 img:nth-child(6) { height: 68px; }
    .illu-band__row--3 img:nth-child(7) { height: 50px; }
    .illu-band__row--3 img:nth-child(8) { height: 32px; }

    .logos img {
        height: 55px;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    .hero {
        padding: 50px 16px 35px;
    }

    .hero__title {
        letter-spacing: 2px;
    }

    section {
        padding: 36px 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .logos {
        gap: 24px;
        padding: 30px 16px;
    }

    .logos img {
        height: 50px;
    }

    .illu-band { padding-bottom: 30px; }

    .illu-band__row--1 { gap: 10px; }
    .illu-band__row--1 img:nth-child(1) { height: 32px; }
    .illu-band__row--1 img:nth-child(2) { height: 42px; }
    .illu-band__row--1 img:nth-child(3) { height: 24px; }
    .illu-band__row--1 img:nth-child(4) { height: 18px; }

    .illu-band__row--2 { gap: 3px; }
    .illu-band__row--2 img:nth-child(1) { height: 22px; }
    .illu-band__row--2 img:nth-child(2) { height: 45px; }
    .illu-band__row--2 img:nth-child(3) { height: 32px; }
    .illu-band__row--2 img:nth-child(4) { height: 26px; }
    .illu-band__row--2 img:nth-child(5) { height: 40px; }
    .illu-band__row--2 img:nth-child(6) { height: 30px; }
    .illu-band__row--2 img:nth-child(7) { height: 22px; }

    .illu-band__row--3 img:nth-child(1) { height: 32px; }
    .illu-band__row--3 img:nth-child(2) { height: 42px; }
    .illu-band__row--3 img:nth-child(3) { height: 52px; }
    .illu-band__row--3 img:nth-child(4) { height: 34px; }
    .illu-band__row--3 img:nth-child(5) { height: 56px; }
    .illu-band__row--3 img:nth-child(6) { height: 52px; }
    .illu-band__row--3 img:nth-child(7) { height: 38px; }
    .illu-band__row--3 img:nth-child(8) { height: 24px; }

    .cookie-inner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    /* Deko auf Mobil ausblenden */
    .deco {
        display: none;
    }

    .details__price {
        font-size: 1rem;
        padding: 5px 16px;
    }
}

@media (max-width: 380px) {
    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 0.9rem;
        letter-spacing: 3px;
    }

    .illu-band__row--1 img:nth-child(1) { height: 24px; }
    .illu-band__row--1 img:nth-child(2) { height: 32px; }
    .illu-band__row--2 img:nth-child(2) { height: 35px; }
    .illu-band__row--2 img:nth-child(5) { height: 30px; }
    .illu-band__row--3 img:nth-child(3) { height: 40px; }
    .illu-band__row--3 img:nth-child(5) { height: 44px; }
    .illu-band__row--3 img:nth-child(6) { height: 40px; }
}
