/* =============================================
   Systemchen – Landingpage CSS
   Farben: Naturnahe Töne (Grün, Braun, Creme)
   ============================================= */

:root {
    --green-dark: #2d5016;
    --green: #4a7c23;
    --green-light: #7ab648;
    --brown: #6b4226;
    --brown-light: #a67c52;
    --cream: #faf6ee;
    --cream-dark: #f0e8d8;
    --text: #2c2c2c;
    --text-light: #5a5a5a;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 246, 238, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--cream-dark);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--green-dark);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--green);
}

.nav-btn {
    background: var(--green);
    color: var(--white) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    transition: background 0.2s !important;
}

.nav-btn:hover {
    background: var(--green-dark) !important;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(45, 80, 22, 0.5) 0%,
        rgba(45, 80, 22, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding: 2rem;
    max-width: 700px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: var(--green-light);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-btn:hover {
    background: var(--white);
    color: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Sections */
.section {
    padding: 5rem 2rem;
}

.section-alt {
    background: var(--cream-dark);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.2rem;
    color: var(--green-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.section-intro {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Two-column layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.col-text p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

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

.col-text ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.05rem;
}

.col-text ul li::before {
    /* Lucide "sprout" (ISC), als Maske eingefärbt */
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 1.05rem;
    height: 1.05rem;
    background: var(--green);
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M14%209.536V7a4%204%200%200%201%204-4h1.5a.5.5%200%200%201%20.5.5V5a4%204%200%200%201-4%204%204%204%200%200%200-4%204c0%202%201%203%201%205a5%205%200%200%201-1%203%27%2F%3E%3Cpath%20d%3D%27M4%209a5%205%200%200%201%208%204%205%205%200%200%201-8-4%27%2F%3E%3Cpath%20d%3D%27M5%2021h14%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M14%209.536V7a4%204%200%200%201%204-4h1.5a.5.5%200%200%201%20.5.5V5a4%204%200%200%201-4%204%204%204%200%200%200-4%204c0%202%201%203%201%205a5%205%200%200%201-1%203%27%2F%3E%3Cpath%20d%3D%27M4%209a5%205%200%200%201%208%204%205%205%200%200%201-8-4%27%2F%3E%3Cpath%20d%3D%27M5%2021h14%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
}

/* Gallery */
.section-gallery {
    background: var(--white);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.3s;
    box-shadow: 0 4px 15px var(--shadow);
}

.gallery img:hover {
    transform: scale(1.03);
}

/* Module Cards */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.module-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.module-active {
    border: 2px solid var(--green-light);
}

.module-level {
    display: inline-block;
    background: var(--cream-dark);
    color: var(--brown);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.module-card h3 {
    font-size: 1.4rem;
    color: var(--green-dark);
    margin-bottom: 0.8rem;
}

.module-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.module-card img {
    margin-top: 1rem;
    border: 1px solid var(--cream-dark);
}

.module-status {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.status-active {
    background: var(--green-light);
    color: var(--white);
}

.status-coming {
    background: var(--cream-dark);
    color: var(--brown-light);
}

/* Video Grid */
.section-video {
    background: var(--green-dark);
    color: var(--white);
}

.section-video h2 {
    color: var(--white);
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.video-grid video {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Country Cards */
.country-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.country-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 4px 15px var(--shadow);
    text-align: center;
}

.country-flag {
    width: 3.2rem;
    height: 3.2rem;
    margin: 0 auto 0.7rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.flag-at { background: linear-gradient(#c8102e 0 33.3%, #fff 33.3% 66.6%, #c8102e 66.6%); color: #2c2c2c; text-shadow: none; }
.flag-de { background: linear-gradient(#222 0 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6%); }
.flag-ch { background: #d52b1e; }

/* Icons (Lucide, lokales Sprite app/img/icons.svg) */
.icon { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex-shrink: 0; display: inline-block; }
.brand-leaf { color: var(--green-light); width: 1.1em; height: 1.1em; margin-right: 0.35rem; vertical-align: -0.15em; }

.country-card h3 {
    color: var(--green-dark);
    margin-bottom: 0.3rem;
}

.country-card h4 {
    color: var(--brown-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 400;
    font-style: italic;
}

.country-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    text-align: left;
    margin-bottom: 0.5rem;
}

.sachunterricht-note {
    margin-top: 2rem;
    background: var(--white);
    border-left: 4px solid var(--green);
    padding: 1.5rem 2rem;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.sachunterricht-note p {
    color: var(--text);
}

/* Footer */
.footer {
    background: var(--green-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 2rem 1.5rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-logo {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    color: var(--white);
}

.footer-brand p {
    margin-top: 0.3rem;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 900px) {
    .two-col {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .country-grid {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 600px) {
    .nav-links a:not(.nav-btn) {
        display: none;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3rem 1.2rem;
    }

    .section h2 {
        font-size: 1.7rem;
    }
}

/* Logo: Filz-Erde + Vektor-Schriftzug (app/img/logo/) */
.nav-logo, .footer-logo { display: inline-flex; align-items: center; gap: 0.5rem; }
.nav-logo .brand-erde { height: 44px; width: auto; }
.nav-logo .brand-wort { height: 30px; width: auto; }
.footer-logo .brand-erde { height: 38px; width: auto; }
.footer-logo .brand-wort { height: 26px; width: auto; }
.hero h1 { line-height: 0; }
/* Startseite: Schriftzug schwarz mit weißem Schein (Thomas 1.11.) */
.hero-wordmark { width: min(560px, 84vw); height: auto; margin-bottom: 1rem;
    filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 6px rgba(255,255,255,.95)) drop-shadow(0 0 16px rgba(255,255,255,.8)) drop-shadow(0 0 32px rgba(255,255,255,.55)); }
/* Startseite: drei Module */
.modules-grid.modules-3 { grid-template-columns: repeat(3, 1fr); }
.module-head { display: flex; gap: 1rem; align-items: center; margin-bottom: .8rem; }
.module-head h3 { margin-bottom: 0; }
.module-head .module-level { margin-bottom: .3rem; }
.module-card img.module-felt { width: 76px; height: 76px; margin: 0; border: 0; object-fit: contain; flex-shrink: 0; }
.module-card img.module-shot { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; margin: 0 0 1rem; }
.module-card .module-status { margin: 0 .3rem .3rem 0; }
@media (max-width: 960px) { .modules-grid.modules-3 { grid-template-columns: 1fr; } }
.module-free { display: flex; gap: .6rem; align-items: flex-start; max-width: 46rem; margin: -1rem auto 2rem; padding: .9rem 1.2rem; background: var(--white); border-radius: var(--radius); border-left: 4px solid var(--green-light); color: var(--text); }
.module-free .icon { width: 1.3em; height: 1.3em; flex-shrink: 0; color: var(--green); margin-top: .1rem; }
.module-try { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1rem; padding: .65rem 1.4rem; background: var(--green); color: var(--white); border-radius: 50px; font-weight: 700; text-decoration: none; }
.module-try:hover { background: var(--green-dark); }
.module-try .icon { width: 1em; height: 1em; }
.module-card { display: flex; flex-direction: column; }
.module-card .module-try { align-self: flex-start; margin-top: auto; }
.module-card .module-status + .module-try, .module-card .module-status ~ .module-try { margin-top: 1rem; }
.hero-btn-alt { background: transparent; border: 2px solid rgba(255,255,255,.8); margin-left: .6rem; }
.module-card .module-status { align-self: flex-start; }
@media (max-width: 600px) {
    .hero-btn-alt { margin-left: 0; margin-top: .7rem; }
    .nav-logo .brand-erde { height: 36px; }
    .nav-logo .brand-wort { height: 22px; }
}
/* Rechtliche Seiten: lange Einzelwörter (Barrierefreiheitserklärung) am Handy trennen; Fußzeilen-Logo nicht stauchen */
.legal-head h1 { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.footer-logo { flex-shrink: 0; }
@media (max-width: 760px) {
    .footer-inner { flex-direction: column; gap: 1.2rem; text-align: center; }
}
/* Sehr schmale Handys (320 px): Logo nicht stauchen, Knopf kleiner */
.nav-logo { flex-shrink: 0; }
@media (max-width: 360px) {
    .nav-logo .brand-erde { height: 30px; }
    .nav-logo .brand-wort { height: 19px; }
    .nav-links .nav-btn { padding: .45rem .8rem; font-size: .9rem; }
}
