* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff4747;
    --accent: #244578;
    --light: #e8d6bc;
    --text: #1a1a1a;
    --text-light: #666;
    --nav-height: 60px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    letter-spacing: 2px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 0.9;
}

/* Main Content */
main {
    min-height: calc(100vh - var(--nav-height));
}

/* Banner */
.banner img {
    width: 100%;
    display: block;
    max-height: 300px;
    object-fit: cover;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--light) 0%, #f0e4d9 100%);
    padding: 30px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.2rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero .lead {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(36, 69, 120, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(36, 69, 120, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--light);
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 80px 0;
    background: white;
}

.about h2,
.cta h2 {
    font-size: 2rem;
    color: var(--accent);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Shared card base — used by .feature-card and .cta-card */
.card {
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.feature-card {
    background: var(--light);
    border-left: 4px solid var(--accent);
    overflow: hidden;
    padding: 2rem;
}

.feature-card h3 {
    color: var(--primary);
    margin: 0 0 1rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f4f0 0%, var(--light) 100%);
}

.cta-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cta-card {
    position: relative;
    background-color: white;
    background-size: cover;
    background-position: center;
    padding: 2.5rem;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Beige (CI) gradient overlay: stronger at top (where the text is), lighter at bottom so the image shows through */
.cta-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(232, 214, 188, 0.9) 0%, rgba(232, 214, 188, 0.62) 100%);
    z-index: 0;
}

.cta-card > * {
    position: relative;
    z-index: 1;
}

/* Per-box background images */
.cta-card--sichtweisen {
    background-image: url("../img/sichtweisen.jpg");
}

.cta-card--gefuehle {
    background-image: url("../img/Gef%C3%BChle.jpg");
}

.cta-card--verbindungen {
    background-image: url("../img/verbindungen.jpg");
}

.cta-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(36, 69, 120, 0.15);
    transform: translateY(-8px);
}

.cta-card:hover::before {
    background: linear-gradient(180deg, rgba(232, 214, 188, 0.78) 0%, rgba(232, 214, 188, 0.48) 100%);
}

.cta-card h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.cta-card p {
    color: var(--accent);
    font-weight: 600;
    flex-grow: 1;
}

.cta-card .credit {
    position: absolute;
    bottom: 0.5rem;
    right: 0.75rem;
    z-index: 1;
    font-size: 0.75rem;
    color: var(--accent);
    opacity: 0.85;
}

/* Footer */
.footer {
    background: var(--accent);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-top: 3rem;
}

.footer p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

/* Page Header */
.page-header {
    background: var(--primary);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--accent);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.page-header .lead {
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0;
}

/* Page Content */
.page-content {
    padding: 60px 0;
    background: white;
}

.page-content article {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.page-content h2 {
    color: var(--accent);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    border-bottom: 3px solid var(--accent);
    padding-bottom: 0.5rem;
}

.page-content h3 {
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.page-content h4 {
    color: var(--accent);
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* RT Elements */
.rt-elements {
    margin: 2rem 0;
    display: grid;
    gap: 1.2rem;
}

/* Shared box base — used by .rt-element, .principles-list li, .info-box */
.info-block {
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    transition: all 0.3s ease;
    text-align: center;
}

.info-block:hover {
    box-shadow: 0 4px 12px rgba(36, 69, 120, 0.1);
}

.rt-element {
    background: linear-gradient(135deg, rgba(244, 243, 241, 0.8) 0%, rgba(232, 214, 188, 0.4) 100%);
    border-left-color: var(--primary);
    padding: 1.1rem 1.5rem;
    text-align: left;
}

.rt-element:hover {
    border-left-color: var(--accent);
    transform: translateX(5px);
}

.rt-element h4 {
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.rt-element p {
    margin-bottom: 0;
}

.page-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.page-content p a {
    color: var(--accent);
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-content p a:hover {
    color: var(--primary);
}

/* Section Divider — thin CI line with a small round image medallion.
   Used where a new h2 section begins after an h3 (about, how-it-works). */
.section-divider {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin: 3.5rem 0 2.5rem;
}

.section-divider::before,
.section-divider::after {
    content: "";
    flex: 1;
    height: 2px;
    background: rgba(36, 69, 120, 0.2);
}

.section-divider img {
    width: 110px;
    height: auto;
    flex-shrink: 0;
}

/* Image Gallery — boxed photo grid in the card look with beige CI overlay (e.g. before "Ein RT-Abend") */
.rt-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.8rem;
    margin: 2.5rem 0 3rem;
}

.rt-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Beige (CI) overlay over each photo */
.rt-gallery-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(232, 214, 188, 0.5) 0%, rgba(232, 214, 188, 0.3) 100%);
    pointer-events: none;
}

.rt-gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.rt-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.rt-gallery-item:hover::before {
    background: linear-gradient(180deg, rgba(232, 214, 188, 0.32) 0%, rgba(232, 214, 188, 0.15) 100%);
}

.page-content ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.page-content li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: var(--text-light);
}

.page-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Principles List */
.principles-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.principles-list li {
    background: var(--light);
    list-style: none;
    text-align: left;
}

.principles-list li:before {
    display: none;
}

.principles-list strong {
    color: var(--primary);
}

/* Contact Card — light boxes to structure the contact info blocks */
.contact-card {
    background: var(--light);
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    max-width: 640px;
    padding: 1.5rem 2rem;
    margin: 1rem 0 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-card h3 {
    color: var(--primary);
    margin-top: 0;
}

.contact-card p {
    margin-bottom: 0.6rem;
}

.contact-card p:last-child {
    margin-bottom: 0;
}

.contact-card .links-list {
    margin: 0;
}

/* Term Box — term explanation on a verwurzelungen background with beige CI overlay */
.term-box {
    position: relative;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    background-image: url("../img/verwurzelungen.jpg");
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.term-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(232, 214, 188, 0.9) 0%, rgba(232, 214, 188, 0.72) 100%);
    pointer-events: none;
    z-index: 0;
}

.term-box > * {
    position: relative;
    z-index: 1;
}

.term-box h3 {
    margin-top: 0;
}

.term-box p {
    color: var(--accent);
    font-weight: 600;
}

.term-box p:last-child {
    margin-bottom: 0;
}

/* QR Box — QR code on a schichtungen background with beige CI overlay */
.qr-box {
    position: relative;
    display: inline-block;
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    background-image: url("../img/schichtungen.png");
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.qr-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(232, 214, 188, 0.5) 0%, rgba(232, 214, 188, 0.3) 100%);
    pointer-events: none;
}

.qr-box img {
    position: relative;
    z-index: 1;
    display: block;
    border-radius: 8px;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #fff9f0 0%, #fff5e6 100%);
    margin: 2rem 0;
    text-align: left;
}

.info-box h3 {
    color: var(--accent);
    margin-top: 0;
}

.info-box p {
    color: var(--text-light);
    margin: 0;
}

/* CTA Simple */
.cta-simple {
    background: linear-gradient(135deg, var(--light) 0%, #faf7f4 100%);
    padding: 60px 0;
    text-align: center;
}

.cta-simple h2 {
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-simple p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero .lead {
        font-size: 1.1rem;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .nav-menu a {
        padding: 0.4rem 0.8rem;
    }

    .button-group {
        gap: 0.8rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .content-grid,
    .cta-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about,
    .cta,
    .page-content {
        padding: 60px 0;
    }

    .about h2,
    .cta h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .principles-list {
        grid-template-columns: 1fr;
    }
}