/* =========================
   BASIS
   ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple: #9b6bc4;
    --purple-dark: #8153aa;
    --purple-light: #eee4f5;
    --purple-extra-light: #f7f1fa;

    --text: #302936;
    --text-light: #6e6573;

    --white: #ffffff;
    --border: #e9e2eb;

    --shadow:
        0 10px 35px rgba(76, 52, 87, 0.09);
}

html {
    scroll-behavior: smooth;
}

body {
    background: #fffdfd;
    color: var(--text);
    line-height: 1.6;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================
   HERO
   ========================= */

.understand-hero {
    min-height: 570px;

    position: relative;

    display: flex;
    align-items: center;

    padding: 80px 7%;

    background-image:
        url("../Bilder/verstehen.jpg");

    background-size: cover;
    background-position: 60% 25%;

    overflow: hidden;
}

.understand-hero .hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(40, 31, 43, 0.84) 0%,
            rgba(40, 31, 43, 0.60) 42%,
            rgba(40, 31, 43, 0.10) 76%
        );
}

.understand-hero .hero-content {
    max-width: 680px;

    position: relative;
    z-index: 2;

    padding: 0;

    color: white;
}

.eyebrow,
.small-title {
    display: inline-block;

    font-size: 13px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1.8px;

    color: var(--purple);
}

.understand-hero .eyebrow {
    color: #ddc6ee;
}

.understand-hero .hero-content h1 {
    margin-top: 15px;
    margin-bottom: 25px;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(55px, 7vw, 91px);
    font-weight: 600;

    line-height: 0.92;
}

.heart {
    color: #d6b7eb;
    font-weight: 400;
}

.understand-hero .hero-content p {
    max-width: 560px;

    margin-top: 0;
    margin-bottom: 34px;

    font-size: 19px;
    line-height: 1.6;

    color: rgba(255, 255, 255, 0.92);
}


/* =========================
   BUTTON
   ========================= */

.primary-button {
    min-height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 15px;

    padding: 14px 28px;

    border-radius: 12px;

    background: var(--purple);
    color: white;

    font-size: 15px;
    font-weight: 700;

    box-shadow:
        0 9px 25px rgba(155, 107, 196, 0.28);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.primary-button:hover {
    background: var(--purple-dark);

    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(155, 107, 196, 0.38);
}


/* =========================
   WRAPPER
   ========================= */

.section-wrapper {
    width: min(1150px, 88%);

    margin: auto;
}

.section-heading {
    max-width: 720px;

    margin-bottom: 42px;
}

.section-heading h2,
.intro-text h2,
.cta-box h2 {
    margin-top: 8px;
    margin-bottom: 16px;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(39px, 5vw, 59px);
    font-weight: 600;

    line-height: 1;
}

.section-heading p,
.intro-text p,
.cta-box p {
    color: var(--text-light);
}


/* =========================
   EINLEITUNG
   ========================= */

.intro-section {
    padding: 100px 0;
}

.intro-grid {
    display: grid;

    grid-template-columns: 1.35fr 0.65fr;

    gap: 70px;

    align-items: center;
}

.intro-text p {
    margin-bottom: 17px;
}

.intro-highlight {
    padding: 35px;

    border-radius: 24px;

    background: var(--purple-extra-light);

    border: 1px solid #eadff0;
}

.highlight-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 22px;

    border-radius: 50%;

    background: white;

    color: var(--purple);

    font-size: 24px;
}

.intro-highlight strong {
    display: block;

    margin-bottom: 12px;

    font-family: "Cormorant Garamond", serif;

    font-size: 27px;

    line-height: 1.1;
}

.intro-highlight p {
    font-size: 14px;

    color: var(--text-light);
}


/* =========================
   MYTHEN & FAKTEN
   ========================= */

.myths-section {
    padding: 100px 0;

    background:
        linear-gradient(
            180deg,
            #faf6fb,
            #fffdfd
        );

    scroll-margin-top: 30px;
}

.myths-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;
}

.myth-card {
    padding: 30px;

    background: white;

    border: 1px solid var(--border);
    border-radius: 21px;

    box-shadow: var(--shadow);
}

.myth-top {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 17px;

    color: var(--purple-dark);

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.myth-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--purple-light);

    color: var(--purple);
}

.myth-card h3 {
    margin-bottom: 23px;

    font-family: "Cormorant Garamond", serif;

    font-size: 27px;

    line-height: 1.15;
}

.fact {
    padding: 18px 20px;

    border-radius: 14px;

    background: var(--purple-extra-light);
}

.fact span {
    display: block;

    margin-bottom: 5px;

    color: var(--purple);

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.fact p {
    color: var(--text-light);

    font-size: 14px;
}


/* =========================
   WISSEN
   ========================= */

.knowledge-section {
    padding: 100px 0;
}

.knowledge-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 23px;
}

.knowledge-card {
    padding: 31px;

    background: white;

    border: 1px solid var(--border);
    border-radius: 22px;

    box-shadow: var(--shadow);
}

.knowledge-icon {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: 50%;

    background: var(--purple-light);

    color: var(--purple);

    font-size: 21px;
}

.knowledge-card h3 {
    margin-bottom: 8px;

    font-family: "Cormorant Garamond", serif;

    font-size: 27px;
}

.knowledge-card p {
    color: var(--text-light);

    font-size: 14px;
}


/* =========================
   ABSCHLUSS CTA
   ========================= */

.understanding-cta {
    padding: 0 0 100px;
}

.cta-box {
    padding: 45px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    border-radius: 25px;

    background:
        linear-gradient(
            135deg,
            #f1e6f7,
            #faf5fc
        );

    border: 1px solid #e8d9ef;
}

.cta-box h2 {
    margin-bottom: 10px;
}

.cta-box .primary-button {
    flex-shrink: 0;
}


/* =========================
   TAUBE GEFUNDEN BALKEN
   ========================= */

.emergency-bottom {
    background:
        linear-gradient(
            90deg,
            #eee1f6,
            #f7effa
        );

    border-top: 1px solid #e5d9eb;
}

.emergency-bottom-inner {
    width: min(1000px, 90%);

    min-height: 72px;

    margin: auto;

    display: flex;
    align-items: center;

    gap: 15px;

    color: var(--purple-dark);

    font-size: 18px;
    font-weight: 600;
}

.emergency-icon {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: white;

    font-size: 25px;
}

.emergency-bottom-inner a {
    margin-left: auto;

    font-size: 20px;

    transition: transform 0.2s ease;
}

.emergency-bottom-inner a:hover {
    transform: translateX(4px);
}


/* =========================
   TABLET
   NUR SEITENINHALT
   ========================= */

@media (max-width: 900px) {

    .intro-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .knowledge-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        flex-direction: column;

        align-items: flex-start;
    }

}


/* =========================
   HANDY
   NUR SEITENINHALT

   Header und Footer kommen
   vollständig aus ../style.css
   ========================= */

@media (max-width: 700px) {

    /* HERO */

    .understand-hero {
        min-height: 570px;

        align-items: flex-end;

        padding: 90px 7% 62px;

        background-position: 62% center;
    }

    .understand-hero .hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(32, 24, 36, 0.10) 0%,
                rgba(32, 24, 36, 0.62) 44%,
                rgba(32, 24, 36, 0.90) 100%
            );
    }

    .understand-hero .hero-content h1 {
        font-size: 51px;
    }

    .understand-hero .hero-content p {
        font-size: 16px;
    }

    .primary-button {
        width: 100%;
    }


    /* CONTENT */

    .intro-section,
    .myths-section,
    .knowledge-section {
        padding: 72px 0;
    }

    .section-wrapper {
        width: 89%;
    }

    .section-heading {
        margin-bottom: 32px;
    }

    .section-heading h2,
    .intro-text h2,
    .cta-box h2 {
        font-size: 39px;
    }

    .myths-grid {
        grid-template-columns: 1fr;
    }

    .myth-card {
        padding: 24px;
    }

    .intro-highlight {
        padding: 27px 24px;
    }

    .knowledge-card {
        padding: 26px;
    }

    .cta-box {
        padding: 31px 22px;
    }

    .understanding-cta {
        padding-bottom: 72px;
    }

    .emergency-bottom-inner {
        min-height: 68px;

        font-size: 16px;
    }

    .emergency-icon {
        width: 40px;
        height: 40px;

        font-size: 22px;
    }

}

/* ========================================
   STADTTAUBEN VERSTEHEN – ANIMATIONEN
   ======================================== */


/* LINKS */

.reveal-from-left {
    opacity: 0;
    transform: translateX(-70px);

    transition:
        opacity 1.25s ease,
        transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-from-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}


/* RECHTS */

.reveal-from-right {
    opacity: 0;
    transform: translateX(70px);

    transition:
        opacity 1.25s ease,
        transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-from-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}


/* VON UNTEN */

.reveal-up {
    opacity: 0;
    transform: translateY(55px);

    transition:
        opacity 1.2s ease,
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ========================================
   MYTHOS-KARTEN
   ======================================== */

.myth-reveal {
    opacity: 0;

    transform:
        translateY(65px)
        scale(0.94);

    transition:
        opacity 1.2s ease,
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease;

    transition-delay: var(--reveal-delay, 0ms);
}

.myth-reveal.is-visible {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


/* Fakt erscheint innerhalb der Karte */

.myth-reveal .fact {
    opacity: 0;
    transform: translateY(15px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;

    transition-delay: 0.45s;
}

.myth-reveal.is-visible .fact {
    opacity: 1;
    transform: translateY(0);
}


/* Hover */

.myth-reveal.is-visible:hover {
    transform: translateY(-7px);

    box-shadow:
        0 20px 50px rgba(155, 107, 196, 0.16);
}


/* ========================================
   WISSENS-KARTEN
   ======================================== */

.knowledge-reveal {
    opacity: 0;

    transform:
        translateY(60px)
        scale(0.95);

    transition:
        opacity 1.15s ease,
        transform 1.15s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease;

    transition-delay: var(--reveal-delay, 0ms);
}

.knowledge-reveal.is-visible {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


/* Icon poppt leicht rein */

.knowledge-reveal .knowledge-icon {
    transform: scale(0.55) rotate(-12deg);

    transition:
        transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);

    transition-delay: 0.3s;
}

.knowledge-reveal.is-visible .knowledge-icon {
    transform: scale(1) rotate(0deg);
}


.knowledge-reveal.is-visible:hover {
    transform: translateY(-7px);

    box-shadow:
        0 20px 50px rgba(155, 107, 196, 0.16);
}


/* ========================================
   ABSCHLUSS-CTA
   ======================================== */

.cta-reveal {
    opacity: 0;

    transform:
        translateY(70px)
        scale(0.96);

    transition:
        opacity 1.3s ease,
        transform 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta-reveal.is-visible {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


/* ========================================
   REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {

    .reveal-from-left,
    .reveal-from-right,
    .reveal-up,
    .myth-reveal,
    .knowledge-reveal,
    .cta-reveal,
    .myth-reveal .fact,
    .knowledge-reveal .knowledge-icon {

        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

}