/* ==========================================================================
   Design System Tokens & Basic Reset
   ========================================================================== */
:root {
    /* Colors */
    --color-primary: #1F4D3A;   /* Tannengrün */
    --color-secondary: #8B6B3E; /* Holzton */
    --color-accent: #D7A65A;    /* Akzent Gold */
    --color-bg: #F7F6F2;        /* Off-White Hintergrund */
    --color-surface: #FFFFFF;   /* Flächen/Karten */
    --color-text: #1E2328;      /* Text dunkel */
    --color-muted: #68707A;     /* Text sekundär */
    --color-border: #D9DCE1;    /* Rahmen */
    --color-success: #2F7A4C;   /* Erfolg */

    /* Typography */
    --font-heading: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    --font-body: "Inter", "Segoe UI", Arial, sans-serif;
    
    /* Spacing & Container */
    --container-width: min(1120px, 92vw);
    --padding-section: clamp(4rem, 8vw, 6rem);
    
    /* Radius & Shadows */
    --radius-btn: 12px;
    --radius-card: 16px;
    --radius-hero: 20px;
    --shadow-soft: 0 8px 24px rgba(30, 35, 40, 0.08);
    --shadow-hover: 0 12px 28px rgba(31, 77, 58, 0.16);
    --shadow-header: 0 4px 20px rgba(0, 0, 0, 0.05);

    /* Transitions */
    --transition-short: 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-default: 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-long: 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* für sticky header */
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.65;
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    overflow-x: hidden;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
}

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

h2.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

h3.card-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.text-accent {
    color: var(--color-accent);
}

.text-center {
    text-align: center;
}

p.section-description {
    color: var(--color-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

.text-center .section-description {
    margin-left: auto;
    margin-right: auto;
}

.container {
    width: var(--container-width);
    margin: 0 auto;
}

.container-narrow {
    max-width: 800px;
}

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

.alt-bg {
    background-color: var(--color-surface);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px;
    z-index: 9999;
    text-decoration: none;
}
.skip-link:focus {
    top: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-default);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-sm {
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.95rem;
}

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

.btn-primary:hover {
    background-color: #163c2c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--color-surface);
    color: var(--color-primary);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

a, button {
    outline-offset: 4px;
}
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--color-accent);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(247, 246, 242, 0.85); /* background with glass */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(217, 220, 225, 0.5);
    transition: all var(--transition-default);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-header);
    padding: 8px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: height var(--transition-default);
}

.site-header.scrolled .header-container {
    height: 64px;
}

.logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

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

.nav-link {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color var(--transition-short);
    position: relative;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-default);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
}

.hamburger, 
.hamburger::before, 
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    position: absolute;
    transition: all var(--transition-short);
    left: 8px;
}

.hamburger {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger::before {
    content: '';
    top: -8px;
}

.hamburger::after {
    content: '';
    bottom: -8px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding-top: 140px;
    padding-bottom: var(--padding-section);
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(215, 166, 90, 0.1) 0%, rgba(247, 246, 242, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-container {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(31, 77, 58, 0.1);
    color: var(--color-primary);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 1.5vw, 1.35rem);
    color: var(--color-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Leistungen Cards
   ========================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--color-surface);
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: all var(--transition-default);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.card-image-wrap {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
}

.card-list {
    list-style: none;
}

.card-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-muted);
}

.card-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* ==========================================================================
   Vorteile (Features)
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: var(--color-bg);
    border-radius: var(--radius-card);
    transition: transform var(--transition-short);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-title {
    margin-bottom: 1rem;
}

/* ==========================================================================
   Ablauf Steps
   ========================================================================== */
.wrapper-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.steps-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(31, 77, 58, 0.2);
}

.step-text h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.step-text p {
    color: var(--color-muted);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.accordion-item {
    background: var(--color-bg);
    border-radius: var(--radius-btn);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-short);
}

.accordion-header:hover {
    background-color: rgba(0,0,0,0.02);
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform var(--transition-default);
    color: var(--color-accent);
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-default);
}

.accordion-content p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--color-muted);
}

/* ==========================================================================
   Kontakt & Footer
   ========================================================================== */
.contact-box {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
}

.contact-method {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-label {
    font-size: 0.9rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    margin-bottom: 0.5rem;
}

.contact-value {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.contact-value:hover {
    color: var(--color-accent);
}

.site-footer {
    background: #141618;
    color: #ffffff;
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: #A0A5AA;
}

.footer-links h4 {
    color: white;
    margin-bottom: 1.5rem;
}

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

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

.footer-links a {
    color: #A0A5AA;
    text-decoration: none;
    transition: color var(--transition-short);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: #A0A5AA;
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--delay, 0ms);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 900px) {
    .wrapper-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--color-surface);
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        clip-path: circle(0% at top right);
        transition: clip-path 0.4s ease-in-out;
    }
    
    .main-nav.active {
        clip-path: circle(150% at top right);
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .header-actions .btn {
        display: none;
    }
    
    .hamburger.active {
        background: transparent;
    }
    .hamburger.active::before {
        top: 0;
        transform: rotate(45deg);
    }
    .hamburger.active::after {
        bottom: 0;
        transform: rotate(-45deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   Rechtstexte (Impressum / Datenschutz)
   ========================================================================== */
.page-legal main {
    padding-top: 120px;
    padding-bottom: var(--padding-section);
    min-height: 60vh;
}

.page-legal .legal-content {
    max-width: 720px;
}

.page-legal .legal-content h1 {
    font-size: clamp(1.8rem, 3vw, 2.25rem);
    margin-bottom: 1.5rem;
}

.page-legal .legal-content h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.page-legal .legal-content p,
.page-legal .legal-content li {
    color: var(--color-muted);
}

.page-legal .legal-content p {
    margin-bottom: 1rem;
}

.page-legal .legal-content ul {
    margin: 0 0 1rem 1.25rem;
    padding: 0;
    color: var(--color-muted);
}

.page-legal .legal-content ul li {
    margin-bottom: 0.5rem;
}

.page-legal .legal-content .back-link {
    display: inline-block;
    margin-top: 2rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.page-legal .legal-content .back-link:hover {
    color: var(--color-accent);
}

.page-legal .legal-content .contact-value {
    font-size: 1rem;
    font-weight: 600;
}
