/**
 * Website-to-Go - Base Styles
 *
 * Diese Datei enthält Basis-Styles die von Claude erweitert werden.
 * Claude ÜBERSCHREIBT diese Datei komplett - aber die Struktur hier
 * dient als Vorlage für moderne Designs.
 *
 * WICHTIGE DESIGN-REGELN:
 * - JEDER Text braucht einen halbtransparenten Hintergrund (Lesbarkeit!)
 * - Transparenz: rgba() mit 0.7-0.85 alpha, NICHT über 0.9
 * - Border-radius: Maximal 8px, keine extremen Rundungen
 * - Navigation: Text-Shadow für Lesbarkeit auf Bildern
 * - Footer: Dunkler Hintergrund, heller Text mit gutem Kontrast
 */

/* ===== GOOGLE FONTS (Modern Stack) ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');
/* Inter für Fließtext, Outfit für Headlines - modern und gut lesbar */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Claude soll diese überschreiben */
    --color-primary: #b45309;
    --color-primary-rgb: 180, 83, 9;
    --color-secondary: #78350f;
    --color-accent: #dc2626;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-bg: #ffffff;
    --color-bg-rgb: 255, 255, 255;
    --color-bg-alt: #f8fafc;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Border Radius - MAXIMAL 8px, keine extremen Rundungen! */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-full: 8px; /* Nicht 9999px! */

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== STICKY FOOTER (NICHT ENTFERNEN!) ===== */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#content-container {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
}
/* ===== ENDE STICKY FOOTER ===== */

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Inter', sans-serif; /* Moderne Headline-Font */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

/* ===== NAVIGATION - Flexible Base ===== */
.site-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 1rem 0;
    background: transparent;
    transition: var(--transition-normal);
}

.site-navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.site-navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5); /* Lesbarkeit auf Bildern */
    transition: var(--transition-fast);
}

.site-navbar.scrolled .navbar-brand {
    color: var(--color-text);
}

.site-navbar .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5); /* Lesbarkeit auf Bildern */
    padding: 0.5rem 1rem;
    transition: var(--transition-fast);
}

.site-navbar.scrolled .nav-link {
    color: var(--color-text);
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: var(--color-primary);
}

/* Mobile Toggler */
.site-navbar .navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.site-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,1%29' stroke-linecap='round' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.site-navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2830,41,59,1%29' stroke-linecap='round' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== PAGE BACKGROUND (Fullscreen Hintergrundbild) ===== */
.page-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
}

.page-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.8) 100%);
    z-index: -2;
}

/* ===== HERO SECTION (NUR home.php, nach Navbar, vor Content) ===== */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 40vh;
    padding-top: calc(80px + 3rem); /* Navbar + Abstand */
    padding-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-title-box {
    background: rgba(var(--color-primary-rgb, 59, 130, 246), 0.75);
    backdrop-filter: blur(10px);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-xl);
    max-width: 90%;
}

.hero-title-box h1,
.hero-title-box .hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    margin: 0;
}

.hero-title-box p,
.hero-title-box .hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.95);
    margin: 0.5rem 0 0;
    font-weight: 500;
}

/* ===== PAGE CONTENT (Halbtransparentes Overlay mit Blur-Übergang) ===== */
.page-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding-top: 80px; /* Navbar-Höhe - nur wenn KEINE Hero-Section */
}

/* Content-Overlay: Sanft verschwommener Übergang mit Farbton */
.page-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.75) 5rem,
        rgba(255, 255, 255, 0.88) 15rem,
        rgba(255, 255, 255, 0.92) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: none;
    z-index: 0;
}

/* Wenn Hero-Section vorhanden: Kein zusätzliches padding-top */
.hero-section + .page-content {
    padding-top: 0;
}

/* Content-Children müssen über dem ::before Overlay liegen */
.page-content > * {
    position: relative;
    z-index: 1;
}

/* ===== BUTTONS ===== */
.btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    text-transform: none;
    letter-spacing: 0;
}

.btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light {
    border-width: 2px;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--space-xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

/* ===== CONTENT BOX - Halbtransparenter Hintergrund für Lesbarkeit ===== */
.content-box {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.content-box-dark {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    color: white;
}

/* ===== FOOTER - Dunkler Hintergrund, guter Kontrast! ===== */
.site-footer {
    background: #1a1a2e; /* Dunkler, einheitlicher Hintergrund */
    color: rgba(255, 255, 255, 0.9); /* Hellerer Text für bessere Lesbarkeit */
    padding: var(--space-lg) 0 var(--space-md);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition-fast);
}

.site-footer a:hover {
    color: white;
    text-decoration: underline;
}

/* ===== UTILITIES ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== SCROLL INDICATOR ===== */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: white;
    opacity: 0.7;
    font-size: 2rem;
    z-index: 10;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .section {
        padding: var(--space-lg) 0;
    }

    .hero-section {
        min-height: 50vh;
        padding-top: calc(80px + 2rem);
        padding-bottom: 2rem;
    }

    .hero-title-box {
        padding: var(--space-sm) var(--space-md);
    }
}

/* ===== ADMIN MODE ===== */
.cms-editable:hover {
    outline: 2px dashed var(--color-primary);
    outline-offset: 4px;
}

/*
 * CLAUDE DESIGN-ANWEISUNGEN:
 * 1. JEDER Textbereich braucht halbtransparenten Hintergrund (rgba 0.7-0.85)
 * 2. Nutze .content-box oder .content-box-dark für Lesbarkeit
 * 3. Border-radius MAXIMAL 8px - keine Pillen-Buttons oder extreme Rundungen
 * 4. Navigation: Text-Shadow beibehalten für Lesbarkeit auf Bildern
 * 5. Footer: Dunkler Hintergrund (#1a1a2e oder dunkler), heller Text
 * 6. Fonts: Outfit für Headlines, Inter für Body - nicht ändern!
 *
 * STRUKTUR:
 * - Hero-Section ist RELATIV (nicht fixed), kommt nach Navbar
 * - page-content hat padding-top: 0 wenn Hero vorhanden
 * - page-content::before erzeugt sanften Blur-Übergang von Hero
 * - RGB-Variablen nutzen: var(--color-primary-rgb), var(--color-bg-rgb)
 */
