/* ========================================
   Turza – Gemeinsame Styles
   ======================================== */

:root {
    --color-primary: #1a3d2e;
    --color-primary-light: #2d5a45;
    --color-secondary: #c9a962;
    --color-secondary-light: #e0c78a;
    --color-accent: #8b2635;
    --color-cream: #faf8f3;
    --color-warm-white: #fffef9;
    --color-text: #2c2c2c;
    --color-text-light: #666;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, sans-serif;
    --shadow-soft: 0 4px 20px rgba(26, 61, 46, 0.08);
    --shadow-medium: 0 8px 40px rgba(26, 61, 46, 0.12);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ========================================
   Skip-Link (Accessibility)
   ======================================== */

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 10000;
    background: var(--color-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 4px 4px;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* ========================================
   Focus-Visible (Accessibility)
   ======================================== */

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

/* ========================================
   Form Status Messages
   ======================================== */

/* Honeypot (Anti-Spam) */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.form-status {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.form-status.success {
    background: rgba(34, 139, 34, 0.1);
    color: #166534;
    border: 1px solid rgba(34, 139, 34, 0.25);
}

.form-status.error {
    background: rgba(220, 38, 38, 0.1);
    color: #991b1b;
    border: 1px solid rgba(220, 38, 38, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-warm-white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ========================================
   Navigation
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 254, 249, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 61, 46, 0.08);
    transition: var(--transition-smooth);
}

.nav.scrolled {
    box-shadow: var(--shadow-soft);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-smooth);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: var(--transition-smooth);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--color-primary);
}

.nav-cta {
    background: var(--color-primary);
    color: white !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 4px;
    font-weight: 600 !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--color-primary-light);
    color: white !important;
    transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    min-width: 48px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-smooth);
}

/* ========================================
   Page Header
   ======================================== */

.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    padding: 10rem 2rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>');
    background-size: 60px 60px;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
    position: relative;
}

.page-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* ========================================
   Common Layout
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 1rem;
    position: relative;
}

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

.btn-light:hover {
    background: var(--color-secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--color-primary);
    color: white;
    padding: 5rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-brand-logos {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.footer-brand-logos img {
    height: 120px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.footer-brand-logos img:hover {
    opacity: 1;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

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

.footer-col li {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

.footer-maps-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-secondary-light) !important;
    font-size: 0.9rem;
}

.footer-maps-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.footer-maps-link:hover {
    color: var(--color-secondary) !important;
}

.footer-hours {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.25rem;
}

.footer-hours-title {
    font-weight: 600;
    color: var(--color-secondary);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.footer-status {
    margin-top: 0.6rem;
    list-style: none;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    animation: statusFadeIn 0.6s ease;
}

.status-badge.open {
    background: rgba(34, 139, 34, 0.2);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.status-badge.closed {
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-badge.open .status-dot {
    background: #4ade80;
    animation: statusPulse 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
}

.status-badge.closed .status-dot {
    background: #f87171;
    box-shadow: 0 0 4px rgba(248, 113, 113, 0.4);
    animation: statusPulseClosed 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 6px rgba(74, 222, 128, 0.6); }
    50% { opacity: 0.6; transform: scale(0.85); box-shadow: 0 0 12px rgba(74, 222, 128, 0.9); }
}

@keyframes statusPulseClosed {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 4px rgba(248, 113, 113, 0.4); }
    50% { opacity: 0.5; transform: scale(0.85); box-shadow: 0 0 10px rgba(248, 113, 113, 0.8); }
}

@keyframes statusFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.footer-social-link:hover {
    background: var(--color-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 61, 46, 0.3);
}

.footer-bottom {
    max-width: 1200px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.7;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-legal a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-legal a:hover {
    color: var(--color-secondary);
}

.footer-legal-divider {
    opacity: 0.5;
}

.footer-credit {
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.footer-credit a {
    color: var(--color-secondary-light);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-credit a:hover {
    color: var(--color-secondary);
}

/* ========================================
   Back to Top
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-medium);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-primary-light);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        height: 70px;
        padding: 0 1rem;
    }

    .logo-img {
        height: 50px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-warm-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: flex;
    }

    .page-header {
        padding: 8rem 1.5rem 4rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand-logos {
        flex-wrap: wrap;
    }

    .footer-brand-logos img {
        height: 50px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal {
        order: -1;
    }
}