/* 🌿 Pferdehof Rube - Design System v1.0 */

:root {
    /* Colors */
    --wild-green: #1c2e1c;
    --meadow: #3d6e3d;
    --spring: #68b048;
    --dew: #c8e8a0;
    --sky: #f0f7e8;
    --paper: #fafdf6;
    --border: #d0e0c0;
    --muted: #5a7a5a;
    --err: #c0392b;
    --glow: rgba(104, 176, 72, 0.2);

    /* Fonts */
    --font-head: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-serif: 'Georgia', serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Spacing */
    --gap-sm: 1rem;
    --gap-md: 2rem;
    --gap-lg: 4rem;
    --container-max: 1100px;

    /* Transitions */
    --speed: 0.3s;
}

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

body {
    background-color: var(--paper);
    color: var(--wild-green);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 800;
}

.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

/* Layout */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gap-md);
}

.section {
    padding: var(--gap-lg) 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--speed) cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--wild-green);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(28, 46, 28, 0.15);
}

.btn-accent {
    background-color: var(--spring);
    color: white;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--glow);
}

.btn-ghost {
    background-color: transparent;
    border: 2px solid var(--spring);
    color: var(--spring);
}

/* Navigation */
nav {
    background: white;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--wild-green);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 600;
    transition: color var(--speed);
}

.nav-link:hover, .nav-link.active {
    color: var(--spring);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    border-bottom: 1px solid var(--border);
}

.hero-content {
    padding: var(--gap-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--paper);
}

.hero-image {
    background: var(--sky);
    position: relative;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--dew);
    color: var(--meadow);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero .highlight {
    color: var(--spring);
}

.hero p {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background-color: var(--wild-green);
    color: white;
    padding: var(--gap-lg) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--gap-md);
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: var(--dew);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--speed);
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    margin-top: var(--gap-lg);
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* 📱 Mobil-Optimierung */
@media (max-width: 900px) {
    :root {
        --gap-lg: 2.5rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    /* Navigation Mobile */
    .mobile-toggle {
        display: block !important;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--wild-green);
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--paper);
        flex-direction: column;
        padding: 2.5rem;
        gap: 2rem;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.15rem;
    }

    .nav-links .btn {
        margin-left: 0 !important;
        width: 100%;
        margin-top: 1rem;
    }

    /* Hero */
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-content {
        order: 2;
        padding: 3rem 1.25rem;
    }

    .hero-image {
        order: 1;
        height: 350px;
    }

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

    /* Sections / Grids */
    .section [style*="display: grid; grid-template-columns: 1fr 1fr;"],
    .section [style*="display: grid; grid-template-columns: 1.2fr 1fr;"] {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    /* Facts Bar auf Homepage */
    .section [style*="display: flex; overflow-x: auto;"] {
        flex-wrap: wrap;
    }
    .section [style*="flex: 1; min-width: 180px;"] {
        min-width: 50% !important;
        border-bottom: 1px solid var(--border);
    }
    .section [style*="flex: 1; min-width: 180px;"]:nth-child(even) {
        border-right: none !important;
    }

    /* Typography */
    .section h2 {
        font-size: 2rem !important;
    }
}
