/**
 * Ferienhaus Baude - Airbnb-Style Design
 * Modern, clean, and minimal
 */

/* ========================================
   CSS Custom Properties
   ======================================== */
:root {
    /* Airbnb-inspired Colors */
    --color-primary: #FF385C;
    --color-primary-dark: #E31C5F;
    --color-primary-light: #FF5A76;
    
    --color-text: #222222;
    --color-text-secondary: #595959; /* Verbessert für WCAG AA: 7:1 Kontrast */
    --color-text-muted: #767676; /* Verbessert für WCAG AA: 4.54:1 Kontrast */
    
    --color-bg: #FFFFFF;
    --color-bg-secondary: #F7F7F7;
    --color-bg-hover: #F0F0F0;
    
    --color-border: #DDDDDD;
    --color-border-light: #EBEBEB;
    
    --color-success: #008A05;
    --color-warning: #C13515;
    --color-error: #C13515;
    --color-info: #428BFF;
    
    /* Forest Green (Navbar) */
    --color-forest: rgba(45, 90, 61, 0.95);
    --color-forest-solid: #2D5A3D;
    --color-forest-light: rgba(60, 110, 75, 0.9);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.08);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-xl: 0 8px 28px rgba(0,0,0,0.16);
    --shadow-border: 0 0 0 1px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.08);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
    
    /* Layout */
    --container-max: 1280px;
    --container-narrow: 720px;
}

/* ========================================
   Font Face (Local Inter)
   ======================================== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Inter Regular'), local('Inter-Regular'),
         url('../fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: local('Inter Medium'), local('Inter-Medium'),
         url('../fonts/Inter-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local('Inter SemiBold'), local('Inter-SemiBold'),
         url('../fonts/Inter-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Inter Bold'), local('Inter-Bold'),
         url('../fonts/Inter-Bold.woff2') format('woff2');
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-bg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
}

ul, ol {
    list-style: none;
}

/* ========================================
   Accessibility - Skip Link
   ======================================== */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-4);
    z-index: 9999;
    padding: var(--space-3) var(--space-6);
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    font-size: var(--font-size-sm);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-4);
    outline: 3px solid var(--color-text);
    outline-offset: 2px;
}

/* ========================================
   Accessibility - Focus Styles
   ======================================== */
/* Entferne Standard-Outline und setze konsistente Focus-Stile */
:focus {
    outline: none;
}

:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* Spezifische Focus-Stile für verschiedene Elemente */
a:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

button:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.2);
}

/* Focus-Stile für Checkboxen und Radio-Buttons */
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* Kalender-Tage mit Fokus */
.calendar-day:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: -2px;
}

/* Logo Focus */
.logo:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

/* Mobile Menu Toggle Focus */
.mobile-menu-toggle:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* ========================================
   Icons
   ======================================== */
.icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-lg {
    width: 32px;
    height: 32px;
}

.icon-xl {
    width: 48px;
    height: 48px;
}

/* ========================================
   Layout
   ======================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-narrow {
    max-width: var(--container-narrow);
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-text);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }

.text-sm { font-size: var(--font-size-sm); }
.text-xs { font-size: var(--font-size-xs); }
.text-muted { color: var(--color-text-secondary); }
.text-center { text-align: center; }

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: #fff;
}

.btn-secondary {
    background: var(--color-bg);
    color: var(--color-text);
    border-color: var(--color-text);
}

.btn-secondary:hover {
    background: var(--color-bg-secondary);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-text);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text);
}

.btn-ghost:hover {
    background: var(--color-bg-secondary);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    padding: var(--space-3);
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #FFFFFF;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-primary);
    font-weight: 600;
    font-size: var(--font-size-xl);
}

.logo:hover {
    color: var(--color-primary-dark);
}

.logo .icon {
    stroke: currentColor;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    color: var(--color-text);
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-links a:hover {
    background: var(--color-bg-secondary);
    color: var(--color-primary);
}

.nav-links .btn-primary {
    color: #fff;
}

.nav-links .btn-primary:hover {
    background: var(--color-primary-dark);
    color: #fff;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-3);
    border-radius: var(--radius-sm);
}

.mobile-menu-toggle:hover {
    background: var(--color-bg-secondary);
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition-base);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #FFFFFF;
        border-bottom: 1px solid var(--color-border);
        padding: var(--space-4);
        gap: var(--space-2);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        width: 100%;
        justify-content: center;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, #FFF5F5 0%, #FFF 100%);
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.hero-background::before {
    display: none;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 992px) {
    .hero {
        min-height: auto;
        padding: var(--space-12) 0;
    }
    
    .hero-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0.15;
    }
    
    .hero-background::before {
        display: none;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: linear-gradient(135deg, rgba(255,56,92,0.05) 0%, rgba(255,56,92,0.02) 100%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 640px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
}

.hero-notice {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-8);
}

.hero-notice .icon {
    flex-shrink: 0;
    color: var(--color-text-secondary);
}

.hero-notice p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin: 0;
}

.hero-notice strong {
    color: var(--color-text);
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: var(--space-16) 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-12);
}

.section-header h2 {
    margin-bottom: var(--space-4);
}

.section-header p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-lg);
}

/* ========================================
   Feature Cards
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.feature-card {
    padding: var(--space-6);
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.feature-card:hover {
    border-color: var(--color-border);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    color: var(--color-primary);
}

.feature-card h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-2);
}

.feature-card p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    margin: 0;
}

/* ========================================
   Content Grid
   ======================================== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-12);
    align-items: center;
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

.content-text h3 {
    margin-bottom: var(--space-4);
}

.content-text p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
}

.content-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--color-bg-secondary);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.content-image:hover img {
    transform: scale(1.03);
}

.content-image .icon {
    width: 64px;
    height: 64px;
    color: var(--color-border);
}

.feature-list {
    margin-top: var(--space-4);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    color: var(--color-text-secondary);
}

.feature-list .icon {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}

/* ========================================
   Image Gallery
   ======================================== */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-12);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-md);
}

.gallery-item-wide {
    grid-column: span 2;
    aspect-ratio: 21/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-4) var(--space-6);
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    font-size: var(--font-size-sm);
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-base);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 576px) {
    .image-gallery {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .gallery-item-wide {
        grid-column: span 1;
        aspect-ratio: 16/9;
    }
    
    .gallery-caption {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Calendar
   ======================================== */
.calendar-container {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.calendar-year {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    min-width: 100px;
    text-align: center;
}

.calendar-months {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: var(--space-4);
}

.calendar-month {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    min-width: 0; /* Prevents grid blowout */
}

.calendar-month-header {
    background: var(--color-bg-secondary);
    padding: var(--space-3);
    text-align: center;
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid var(--color-border-light);
}

.calendar-weekdays span {
    text-align: center;
    padding: clamp(4px, 1vw, 8px);
    font-size: clamp(0.6rem, 1.8vw, 0.75rem);
    font-weight: 500;
    color: var(--color-text-secondary);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: clamp(4px, 1vw, 8px);
    gap: clamp(1px, 0.5vw, 3px);
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.65rem, 2vw, 0.875rem);
    border-radius: var(--radius-full);
    min-width: 0;
}

.calendar-day.empty {
    background: transparent;
}

.calendar-day.available {
    background: #C8E6C9;
    color: #2E7D32;
}

.calendar-day.booked {
    background: #EF5350;
    color: #FFFFFF;
    font-weight: 500;
}

.calendar-day.blocked {
    background: #90A4AE;
    color: #FFFFFF;
    font-weight: 500;
}

.calendar-day.today {
    font-weight: 600;
    box-shadow: inset 0 0 0 2px var(--color-primary);
}

.calendar-day.past {
    opacity: 0.4;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    margin-top: var(--space-8);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
}

.legend-color.available { background: #C8E6C9; }
.legend-color.booked { background: #EF5350; }
.legend-color.blocked { background: #90A4AE; }

/* Calendar Disclaimer */
.disclaimer-notice {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-top: var(--space-8);
    padding: var(--space-4) var(--space-5);
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
}

.disclaimer-notice .icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.disclaimer-notice p {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-bg-secondary);
    padding: var(--space-16) 0 var(--space-8);
    border-top: 1px solid var(--color-border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.footer-col h4 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
    color: var(--color-text-secondary);
}

.footer-col p,
.footer-col address {
    font-style: normal;
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.8;
}

.footer-col ul li {
    margin-bottom: var(--space-2);
}

.footer-col a {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

.footer-col a:hover {
    color: var(--color-text);
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border-light);
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.footer-bottom a {
    color: var(--color-text-secondary);
}

/* ========================================
   Page Header
   ======================================== */
.page-header {
    padding: var(--space-12) 0;
    text-align: center;
}

.page-header h1 {
    margin-bottom: var(--space-4);
}

.page-header p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-lg);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Cards
   ======================================== */
.card {
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--color-border-light);
}

.card-header h3 {
    font-size: var(--font-size-lg);
    margin: 0;
}

.card-body {
    padding: var(--space-6);
}

/* ========================================
   Forms
   ======================================== */
.form-group {
    margin-bottom: var(--space-6);
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-2);
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-4);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-text);
    box-shadow: 0 0 0 1px var(--color-text);
}

.form-group input::placeholder {
    color: var(--color-text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group small {
    display: block;
    margin-top: var(--space-2);
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Custom Select
   ======================================== */
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23717171' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 48px;
    cursor: pointer;
}

.form-group select:hover {
    border-color: var(--color-text-secondary);
}

.form-group select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23222222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* ========================================
   Custom Checkbox
   ======================================== */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    font-weight: 400 !important;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 22px !important;
    height: 22px;
    min-width: 22px;
    border: 2px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-bg);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.checkbox-label input[type="checkbox"]:hover {
    border-color: var(--color-text-secondary);
}

.checkbox-label input[type="checkbox"]:checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.2);
}

.checkbox-label span {
    line-height: 1.5;
}

/* ========================================
   Custom Radio
   ======================================== */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.radio-group.horizontal {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.radio-label {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    user-select: none;
}

.radio-label input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-bg);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.radio-label input[type="radio"]:hover {
    border-color: var(--color-text-secondary);
}

.radio-label input[type="radio"]:checked {
    border-color: var(--color-primary);
    background: var(--color-bg);
}

.radio-label input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
}

.radio-label input[type="radio"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.2);
}

.radio-label span {
    line-height: 1.5;
}

/* ========================================
   Toggle Switch
   ======================================== */
.toggle-label {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    user-select: none;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 28px;
    background: var(--color-border);
    border-radius: 14px;
    transition: background var(--transition-fast);
}

.toggle-label input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform var(--transition-fast);
}

.toggle-label input[type="checkbox"]:checked + .toggle-switch {
    background: var(--color-primary);
}

.toggle-label input[type="checkbox"]:checked + .toggle-switch::after {
    transform: translateX(20px);
}

.toggle-label input[type="checkbox"]:focus + .toggle-switch {
    box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.2);
}

/* ========================================
   Booking Form
   ======================================== */
.booking-form-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--space-8);
    align-items: start;
}

@media (max-width: 992px) {
    .booking-form-container {
        grid-template-columns: 1fr;
    }
}

.form-section {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
}

.form-section-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border-light);
}

/* ========================================
   Sidebar
   ======================================== */
.booking-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
}

.sidebar-card h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.steps-list {
    counter-reset: steps;
}

.steps-list li {
    counter-increment: steps;
    position: relative;
    padding-left: var(--space-10);
    padding-bottom: var(--space-4);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.steps-list li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    width: 24px;
    height: 24px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Alerts
   ======================================== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-6);
}

.alert .icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.alert-success {
    background: #E8F5E9;
    color: var(--color-success);
}

.alert-error {
    background: #FFEBEE;
    color: var(--color-error);
}

.alert-warning {
    background: #FFF8E1;
    color: #F57C00;
}

.alert-info {
    background: #E3F2FD;
    color: var(--color-info);
}

/* ========================================
   Notice Box
   ======================================== */
.notice {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    margin: var(--space-6) 0;
}

.notice .icon {
    flex-shrink: 0;
    color: var(--color-text-secondary);
}

.notice p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin: 0;
}

/* ========================================
   Private Notice (Familie & Freunde)
   ======================================== */
.private-notice {
    display: flex;
    align-items: flex-start;
    gap: var(--space-6);
    padding: var(--space-8);
    background: linear-gradient(135deg, #FFF5F7 0%, #FEE2E8 100%);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-8);
}

.private-notice-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--color-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.private-notice-icon .icon {
    width: 28px;
    height: 28px;
}

.private-notice-content h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-2);
}

.private-notice-content p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 576px) {
    .private-notice {
        flex-direction: column;
        text-align: center;
        padding: var(--space-6);
    }
    
    .private-notice-icon {
        margin: 0 auto;
    }
}

/* ========================================
   Success Message
   ======================================== */
.success-message {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    padding: var(--space-8);
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #E8F5E9;
    color: var(--color-success);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
}

.success-icon .icon {
    width: 32px;
    height: 32px;
}

.success-message h1 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-4);
}

.success-message p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
}

.booking-code-box {
    background: var(--color-bg-secondary);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin: var(--space-6) 0;
}

.booking-code-box p {
    margin-bottom: var(--space-2);
    font-size: var(--font-size-sm);
}

.booking-code-box strong {
    display: block;
    font-size: var(--font-size-2xl);
    font-family: monospace;
    color: var(--color-text);
    letter-spacing: 0.05em;
}

.button-group {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-6);
}

/* ========================================
   Status Page
   ======================================== */
.status-card {
    max-width: 560px;
    margin: 0 auto;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.status-header {
    padding: var(--space-8);
    text-align: center;
    color: #fff;
}

.status-header.success { background: var(--color-success); }
.status-header.warning { background: #F57C00; }
.status-header.error { background: var(--color-error); }
.status-header.info { background: var(--color-info); }

.status-icon {
    margin-bottom: var(--space-4);
}

.status-icon .icon {
    width: 48px;
    height: 48px;
}

.status-label {
    font-size: var(--font-size-xl);
    font-weight: 600;
}

.status-body {
    padding: var(--space-8);
}

.status-message {
    text-align: center;
    padding: var(--space-4);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-6);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

.booking-details h3 {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border-light);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
}

.detail-label {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

.detail-value {
    font-weight: 500;
}

.detail-value code {
    background: var(--color-bg-secondary);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
}

/* ========================================
   Legal Content
   ======================================== */
.legal-content {
    background: var(--color-bg);
    padding: var(--space-8);
}

.legal-content h1 {
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border-light);
}

.legal-content section {
    margin-bottom: var(--space-8);
}

.legal-content h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-4);
}

.legal-content h3 {
    font-size: var(--font-size-lg);
    margin: var(--space-6) 0 var(--space-3);
}

.legal-content p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
}

.legal-content ul {
    margin: var(--space-4) 0;
    padding-left: var(--space-6);
    list-style: disc;
}

.legal-content li {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
}

.legal-content address {
    font-style: normal;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

/* ========================================
   Date Picker
   ======================================== */
.date-picker-container {
    margin-bottom: var(--space-8);
}

.date-picker-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
    padding: var(--space-2) 0;
}

.date-picker-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    background: var(--color-bg);
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.date-picker-nav-btn:hover:not(:disabled) {
    background: var(--color-bg-secondary);
    border-color: var(--color-text);
}

.date-picker-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.date-picker-nav-title {
    font-weight: 600;
    font-size: var(--font-size-lg);
    color: var(--color-text);
}

@media (max-width: 600px) {
    .date-picker-nav-title {
        font-size: var(--font-size-base);
    }
}

.date-picker-months {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.date-picker-month {
    min-width: 0; /* Prevents grid blowout */
}

@media (max-width: 600px) {
    .date-picker-months {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
}

.date-picker-month .calendar-day:not(.empty):not(.booked):not(.blocked):not(.past) {
    cursor: pointer;
}

.date-picker-month .calendar-day:not(.empty):not(.booked):not(.blocked):not(.past):hover {
    background: var(--color-primary-light);
    color: #fff;
}

.date-picker-month .calendar-day.selected {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.date-picker-month .calendar-day.selected.start-date {
    border-radius: var(--radius-full) 0 0 var(--radius-full);
}

.date-picker-month .calendar-day.selected.end-date {
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

.date-picker-month .calendar-day.in-range {
    background: var(--color-primary);
    color: #fff;
    font-weight: 500;
    border-radius: 0;
}

.date-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.selected-period {
    grid-column: span 2;
    padding: var(--space-4);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    text-align: center;
}

/* ========================================
   Mobile Touch Optimizations
   ======================================== */
@media (max-width: 768px) {
    /* Touch-freundliche Button-Größen */
    .btn {
        min-height: 44px;
        padding: var(--space-3) var(--space-5);
    }
    
    /* Formulare auf Mobile */
    input, select, textarea {
        font-size: 16px; /* Verhindert Zoom auf iOS */
    }
    
    /* Footer responsive */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Kalender responsive */
    .calendar-months {
        grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
        gap: var(--space-3);
    }
    
    .calendar-month-header {
        padding: var(--space-2);
        font-size: var(--font-size-xs);
    }
    
    .calendar-day {
        font-size: clamp(0.6rem, 3vw, 0.8rem);
    }
    
    .calendar-legend {
        gap: var(--space-4);
        flex-direction: column;
        align-items: center;
    }
}

/* Extra kleine Bildschirme */
@media (max-width: 400px) {
    .calendar-months {
        grid-template-columns: 1fr;
    }
    
    .calendar-days {
        padding: 2px;
        gap: 1px;
    }
    
    .calendar-day {
        font-size: 0.7rem;
    }
    
    .calendar-weekdays span {
        font-size: 0.55rem;
        padding: 4px 2px;
    }
}

/* ========================================
   Utilities
   ======================================== */
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.hidden { display: none !important; }

/* ========================================
   Main Content
   ======================================== */
.main-content {
    min-height: calc(100vh - 200px);
    padding: var(--space-8) 0;
}

/* ========================================
   Booking Confirmation
   ======================================== */
.booking-confirmation {
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-6) 0;
}

.confirmation-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-8);
    text-align: center;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
}

.confirmation-icon.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: var(--color-success);
}

.confirmation-icon .icon {
    width: 40px;
    height: 40px;
}

.confirmation-card h1 {
    font-size: var(--font-size-2xl);
    color: var(--color-success);
    margin-bottom: var(--space-4);
}

.confirmation-intro {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.booking-code-box {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2a5d4a 100%);
    color: white;
    border-radius: var(--radius-md);
    padding: var(--space-6);
    margin: var(--space-6) 0;
}

.booking-code-box .code-label {
    display: block;
    font-size: var(--font-size-sm);
    opacity: 0.9;
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.booking-code-box .code-value {
    display: block;
    font-size: var(--font-size-3xl);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-3);
}

.booking-code-box .code-hint {
    font-size: var(--font-size-xs);
    opacity: 0.8;
    margin: 0;
}

.confirmation-details {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    margin: var(--space-6) 0;
    text-align: left;
}

.confirmation-details h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-4);
    text-align: center;
}

.confirmation-details .detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.confirmation-details .detail-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.confirmation-details .detail-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.confirmation-details .detail-value {
    font-weight: 600;
    color: var(--color-text);
}

.confirmation-next-steps {
    margin: var(--space-8) 0;
    text-align: left;
}

.confirmation-next-steps h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-4);
    text-align: center;
}

.confirmation-next-steps .steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.confirmation-next-steps .steps-list li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border);
    counter-increment: step-counter;
}

.confirmation-next-steps .steps-list li:last-child {
    border-bottom: none;
}

.confirmation-next-steps .steps-list li::before {
    content: counter(step-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.confirmation-next-steps .steps-list li .icon {
    display: none;
}

.confirmation-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-6);
}

.confirmation-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.confirmation-actions .btn .icon {
    width: 18px;
    height: 18px;
}

@media (max-width: 600px) {
    .confirmation-card {
        padding: var(--space-6);
    }
    
    .confirmation-card h1 {
        font-size: var(--font-size-xl);
    }
    
    .booking-code-box .code-value {
        font-size: var(--font-size-2xl);
    }
    
    .confirmation-details .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
    
    .confirmation-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
