/* Copyright (c) 2026 Florentius Bohn. All Rights Reserved. The content of this website is protected by copyright and may not be reproduced without permission. */

/* CSS Reset und Basis-Konfiguration */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Custom Properties für bessere Wartbarkeit */
:root {
    --primary-color: #008b8b;
    --secondary-color: #333;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #ffffff;
    --bg-dark: #f5f5f5;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.8s ease;
    --font-primary: 'century_schoolbookbold', serif;
    --font-size-base: 16px;
    --max-width: 1200px;
}

/* Webfont Definition */
@font-face {
    font-family: 'century_schoolbookbold';
    src: url('schlbkb-webfont.woff2') format('woff2'),
         url('schlbkb-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Basis-Styles */
html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    min-height: 100vh;
    padding-top: 60px; /* Adjust based on navbar height */
}

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

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* Parallax Hero Section */
.parallax-section {
    position: relative;
    top: -60px; /* Counteract body padding-top for fixed background */
    background-image: url('bgSpeis.JPG');
    height: 100vh; 
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
}

/* Mobile Optimierung - Parallax deaktivieren */
@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll;
        height: 70vh;
    }
}
            
/* Logo */
.logo {
    max-width: 250px;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    transition: var(--transition-fast);
}

.logo:hover {
    transform: scale(1.05);
}

/* Hero Content */
.hero-content {
    text-align: center;
    color: var(--text-light);
    z-index: 5;
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    font-weight: normal;
}

/* Main Content */
.main-content {
    background-color: var(--bg-light);
    padding: 60px 20px;
    min-height: 600px;
}

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

.impressum-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.contact-info,
.legal-info {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.contact-details h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

address {
    font-style: normal;
    margin-bottom: 25px;
    line-height: 1.8;
}

.phone-link,
.email-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.phone-link:hover,
.email-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.social-links h4 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.social-list {
    list-style: none;
    padding: 0;
}

.social-list li {
    margin-bottom: 8px;
}

.social-list a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-list a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.legal-section {
    margin-bottom: 30px;
}

.legal-section h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin-bottom: 15px;
    margin-top: 25px;
}

.legal-section p {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.7;
}


/* Scroll-Indikator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    cursor: pointer;
    transition: var(--transition-fast);
}

.scroll-indicator:hover {
    bottom: 25px;
}

.scroll-arrow {
    width: 25px;
    height: 25px;
    border: solid white;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) rotate(45deg);
    }
    40% {
        transform: translateX(-50%) translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateX(-50%) translateY(-5px) rotate(45deg);
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-list a {
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .reservation-link {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
    
    .logo {
        max-width: 150px; /* Smaller logo on mobile */
        position: relative; /* Change to relative to flow with content */
        top: auto; /* Remove absolute positioning */
        left: auto; /* Remove absolute positioning */
        margin: 10px auto; /* Center logo */
    }
    
    .page-title {
        font-size: 2.5rem;
        margin-top: 20px; /* Add top margin to prevent overlap with logo */
    }
    
    .impressum-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .main-content {
        padding: 40px 15px;
    }
    
    .contact-info,
    .legal-info {
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .parallax-section {
        background-attachment: scroll;
        height: 60vh;
    }
    
    .contact-info,
    .legal-info {
        padding: 15px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .contact-details h3,
    .legal-section h3 {
        font-size: 1.2rem;
    }
}

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

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}