:root {
    --color-green: #4a7c3f;
    --color-green-light: #e8f5e9;
    --color-orange: #e8a025;
    --color-cream: #fefcf6;
    --color-text: #3d3d3d;
    --font-heading: 'Comic Neue', cursive, sans-serif;
    --font-body: 'Nunito', sans-serif;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-cream);
    margin: 0;
}

/* Uniform heading font and sizes */
h1 { font-family: var(--font-heading); font-weight: 700; font-size: 2.6rem; line-height: 1.25; }
h2 { font-family: var(--font-heading); font-weight: 700; font-size: 2rem; }
h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1.6rem; }
h4 { font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem; }
h5 { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; }
h6 { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; }

/* ── Legal Pages (Datenschutz / Impressum) ────────────── */
.legal-page h2 {
    font-size: 32px;
}

.legal-page p {
    font-size: 16px;
    line-height: 1.6;
}

/* ── Header / Navbar ──────────────────────────────────── */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-family: var(--font-body);
}

.site-brand {
    margin-top: 4px;
    margin-bottom: -26px;
}

.site-logo {
    height: 153px;
    width: auto;
    display: block;
}

.site-header .nav-link {
    color: var(--color-green);
    font-weight: 600;
    padding: 0.5rem 1.35rem;
    font-size: 0.95rem;
}

.site-header .nav-link:hover {
    color: #3d6b34;
}

.btn-kennenlernen {
    background-color: var(--color-orange);
    color: #fff;
    border-radius: 50px;
    padding: 0.55rem 1.4rem;
    font-weight: 700;
    border: none;
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-kennenlernen:hover {
    background-color: #d08a1a;
    color: #fff;
}

.btn-heart-img {
    width: 20px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
}

/* ── Hero Section ─────────────────────────────────────── */
.hero-section {
    background-color: var(--color-cream);
    overflow: hidden;
}

/* Mobile: text block above images */
.hero-section > .hero-center-text {
    padding: 2rem 1.5rem 0.5rem;
    text-align: center;
}

/* Three-column row: left image | center text | right image */
.hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.hero-side {
    flex: 0 0 30%;
    max-width: 30%;
    display: flex;
    align-items: flex-end;
}

.hero-left {
    justify-content: flex-start;
}

.hero-right {
    justify-content: flex-end;
}

.hero-side-img {
    width: auto;
    height: clamp(200px, 24vw, 360px);
    display: block;
    object-fit: contain;
    object-position: bottom;
    max-width: 100%;
}

.hero-center-text {
    flex: 1;
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--color-green);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.entdecken-colored {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    display: inline;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 1.8rem;
    color: #555;
    line-height: 1.6;
}

.hero-heart-img {
    width: 40px;
    height: 35px;
    vertical-align: middle;
    margin-left: 4px;
    position: relative;
    top: -3px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.hero-buttons .btn-outline-secondary {
    border-radius: 50px;
    padding: 0.55rem 1.4rem;
    font-weight: 600;
    border-color: var(--color-text);
    color: var(--color-text);
}

.hero-buttons .btn-outline-secondary:hover {
    background-color: var(--color-text);
    color: #fff;
}

/* Responsive hero */
@media (max-width: 991px) {
    .hero-inner {
        justify-content: center;
    }

    .hero-side {
        flex: 0 0 48%;
        max-width: 48%;
    }

    .hero-side-img {
        height: clamp(140px, 30vw, 230px);
    }
}

/* ── Features Section ─────────────────────────────────── */
.features-section {
    padding: 3rem 0 2.5rem;
    background-color: #fff;
}

.feature-icon {
    width: 84px;
    height: 84px;
    margin-bottom: 0.7rem;
    object-fit: contain;
}

.feature-title {
    font-weight: 700;
    color: var(--color-green);
    margin-bottom: 0.4rem;
    font-size: 1.15rem;
}

.feature-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* ── Activities Section ───────────────────────────────── */
.activities-section {
    padding: 4rem 0;
    background-color: var(--color-green-light);
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-green);
    font-size: 2rem;
}

/* Spielen / Staunen / Wachsen logo colors */
.color-spielen { color: #7ab648; }
.color-staunen { color: #f5c842; }
.color-wachsen { color: #7FABB8; }

.title-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    vertical-align: middle;
    margin-left: 0.2rem;
    position: relative;
    top: -2px;
}

.section-heart-img {
    width: 32px;
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

.activity-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    height: 100%;
}

.activity-card h5 {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-green);
}

.activity-card p {
    color: #555;
    font-size: 0.95rem;
}

/* ── About Preview Section ────────────────────────────── */
.about-preview-section {
    position: relative;
    overflow: hidden;
    padding: 2.8rem 0 0;
    background-color: #fff;
    text-align: center;
}

.about-content {
    position: relative;
    z-index: 1;
    margin-bottom: 0.75rem;
}

.about-visual-row {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
    width: 100%;
    min-height: clamp(230px, 26vw, 360px);
}

.about-side-pair {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: nowrap;
    width: max-content;
}

.about-side-image {
    flex: 0 0 auto;
    width: clamp(280px, 34vw, 620px);
    height: auto;
    display: block;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.about-main-image {
    width: clamp(230px, 26vw, 360px);
    height: auto;
    display: block;
    box-shadow: none;
    border: none;
    background: transparent;
    border-radius: 16px;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 2;
}

@media (max-width: 767px) {
    .about-side-image {
        width: clamp(210px, 40vw, 300px);
    }

    .about-main-image {
        width: clamp(170px, 34vw, 240px);
    }

    .about-visual-row {
        min-height: clamp(170px, 34vw, 240px);
    }
}

/* ── Über mich page ───────────────────────────────────── */
.uebermich-hero-section {
    padding: 2rem 0 2.5rem;
    background: linear-gradient(180deg, #fff 0%, var(--color-cream) 100%);
}

.uebermich-title {
    color: var(--color-green);
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.joanna-colored {
    display: inline-block;
}

.uebermich-hero-section p {
    font-size: 1.1rem;
    line-height: 1.65;
    color: #2f3c45;
    margin-bottom: 1rem;
}

.portrait-wrap {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    overflow: hidden;
}

.portrait-image {
    width: 100%;
    height: auto;
    display: block;
}

.geschichte-section {
    background: #fff;
    padding: 0.5rem 0 2.5rem;
}

.geschichte-grid {
    padding-top: 0.2rem;
}

.geschichte-item {
    text-align: left;
    height: 100%;
}

.geschichte-icon {
    width: 86px;
    height: 86px;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.75rem;
}

.geschichte-item p {
    font-size: 1rem;
    line-height: 1.58;
    margin: 0;
}

.wichtig-section {
    background: var(--color-green-light);
    padding: 1.5rem 0 2.8rem;
}

.wichtig-grid {
    padding-top: 0.2rem;
}

.wichtig-item {
    height: 100%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    padding: 1rem;
}

.wichtig-title {
    color: var(--color-green);
    font-size: 1.45rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.wichtig-image {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    margin-bottom: 0.9rem;
}

.wichtig-item p {
    font-size: 1.02rem;
    line-height: 1.58;
    margin-bottom: 0;
}

.ort-section {
    background: #fff;
    padding: 1rem 0 0;
}

.ort-text {
    font-size: 16px;
    line-height: 1.7;
    color: #1f3342;
    margin-bottom: 0.9rem;
    font-family: var(--font-body);
}

.ort-visual-row {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
    width: 100%;
    margin-top: 0;
    min-height: clamp(170px, 20vw, 270px);
}

.ort-side-pair {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: nowrap;
    width: max-content;
}

.ort-side-image {
    flex: 0 0 auto;
    width: clamp(280px, 34vw, 620px);
    height: auto;
    display: block;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.ort-main-image {
    width: clamp(220px, 24vw, 340px);
    height: auto;
    display: block;
    background: transparent;
    border-radius: 16px;
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    z-index: 2;
}

@media (max-width: 991px) {
    .wichtig-item {
        padding: 1rem;
    }

    .site-header .navbar-collapse {
        margin-top: 1.4rem;
    }
}

@media (max-width: 767px) {
    .uebermich-hero-section {
        padding-top: 1rem;
    }

    .portrait-wrap {
        height: 320px;
        max-width: 100%;
    }

    .portrait-wrap-mobile {
        margin-bottom: 0.8rem;
    }

    .portrait-image {
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: right center;
    }

    .uebermich-title {
        margin-top: 0.3rem;
    }

    .geschichte-item {
        display: block;
        text-align: left;
    }

    .wichtig-title {
        font-size: 1.3rem;
    }

    .ort-side-image {
        width: clamp(210px, 40vw, 300px);
    }

    .ort-main-image {
        width: clamp(160px, 33vw, 230px);
    }

    .ort-visual-row {
        min-height: clamp(130px, 30vw, 190px);
        margin-top: 0;
    }
}

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
    background-color: #C3D084;
    border-top: 1px solid #a8b96d;
    font-size: 0.92rem;
}

.site-footer,
.site-footer a {
    color: #3f5e2a;
}

/* ── Focus / form styles ──────────────────────────────── */
.btn:focus, .btn:active:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}