/* ============================================================================================================= */
/*                                                 MAIN.CSS                                                    */
/* ============================================================================================================= */
/*
 * Hauptstildatei für die graphix Website
 * Version: 1.0.0
 * Letzte Aktualisierung: 2025-09-09 (Bereinigt für korrektes Theming)
 *
 * Dieses Stylesheet enthält globale Stile und Variablen für die gesamte Website im LIGHT MODE (Standard).
 * Es sollte KEINE Dark Mode spezifischen Overrides für :root oder data-theme="dark" enthalten.
 * ============================================================================================================= */

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

/* Root Variables (LIGHT MODE DEFAULTS) */
:root {
    /* Direkte Farben (können auch als Akzente dienen) */
    --bloodred: #A81802;
    --lowred: #A53942;
    --green: #5F7256;
    --grey: #1E1E1E; /* Eine allgemeine Graufarbe, nicht primär für Hintergründe */

    /* Theme Farben (LIGHT MODE Standardwerte) */
    --bg-primary: #ffffff; /* Primärer Hintergrund für Light Mode */
    --bg-secondary: #f0f2f5; /* Sekundärer Hintergrund für Light Mode (z.B. für Card-Header, Footer) */
    --text-primary: #1E1E1E; /* Primäre Textfarbe für Light Mode */
    --text-secondary: #666666; /* Sekundäre Textfarbe für Light Mode */
    --border-color: #e0e0e0; /* Randfarbe für Light Mode */
    --hover-bg: #f5f5f5; /* Hover-Hintergrund für Light Mode */

    /* Zusätzliche Akzentfarben (falls nicht bereits in graphix.css) */
    --accent-blue: #00BCD4;
    --accent-green: #4CAF50;
    --accent-yellow: #FFC107;
    --accent-red: #FF5722;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;

    /* Schatten */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);

    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;

    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.3s ease-in-out;
    --transition-slow: 0.4s ease-in-out;
}

/* Basis-Styles für HTML und Body */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    /* data-theme Attribut wird vom JavaScript gesteuert */
}

body {
    font-family: 'Roboto-Light', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary); /* Nutzt die Light Mode Theme-Variable */
    transition: background-color var(--transition-medium), color var(--transition-medium);
}

/* Globale Transitions für alle Elemente (für sanften Theme-Wechsel) */
* {
    transition: background-color var(--transition-medium), color var(--transition-medium), border-color var(--transition-medium), box-shadow var(--transition-medium);
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

/* Farbwelt-Klassen (Direkte Farbzuweisung, kann von Theme-Variablen abweichen) */
.bloodred-bg { background-color: var(--bloodred); }
.lowred-bg { background-color: var(--lowred); }
.green-bg { background-color: var(--green); }
.grey-bg { background-color: var(--grey); }

.bloodred { color: var(--bloodred); }
.lowred { color: var(--lowred); }
.green { color: var(--green); }
.grey { color: var(--grey); }

/* Header-Leiste (Beispiel - diese sollten in navigation.css / header.css sein) */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 2px solid var(--bloodred);
    background-color: var(--bg-primary); /* Nutzt Theme-Variable */
    color: var(--text-primary);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

/* Header Links (Beispiel - diese sollten in navigation.css sein) */
.header-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.header-links a {
    color: var(--bloodred);
    text-decoration: none;
    font-family: 'JosefinSlab-SemiBold', serif;
    transition: all var(--transition-medium);
}

.header-links a:hover {
    color: var(--lowred);
}

/* Action Buttons (Beispiel - diese sollten in components.css sein) */
.action-button {
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 2px solid var(--bloodred);
    border-radius: var(--border-radius-md);
    background: transparent;
    color: var(--bloodred);
    font-family: 'JosefinSlab-SemiBold', serif;
    cursor: pointer;
    transition: all var(--transition-medium);
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-button.print {
    border-color: var(--grey);
    color: var(--grey);
}

.action-button.top {
    border-color: var(--bloodred);
    color: var(--bloodred);
}

.action-button:hover {
    background: var(--bloodred);
    color: var(--bg-primary);
}

/* Footer (Beispiel - diese sollten in footer.css sein) */
.footer-navigation {
    margin-top: auto;
    padding: var(--spacing-md);
    border-top: 2px solid var(--grey);
    background: var(--bg-primary); /* Nutzt Theme-Variable */
    color: var(--text-primary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    color: var(--bloodred);
    text-decoration: none;
    font-family: 'JosefinSlab-SemiBold', serif;
    transition: all var(--transition-medium);
}

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

/* Cookie Banner (Beispiel - diese sollten in cookies.css sein) */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary); /* Nutzt Theme-Variable */
    border-top: 2px solid var(--bloodred);
    padding: var(--spacing-md);
    z-index: 9999;
    display: none; /* Standardmäßig versteckt */
    color: var(--text-primary);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.cookie-text {
    font-family: 'Roboto-Light', sans-serif;
    color: var(--text-primary);
}

.cookie-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.cookie-button {
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 2px solid;
    border-radius: var(--border-radius-md);
    font-family: 'JosefinSlab-SemiBold', serif;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.cookie-button.accept {
    border-color: var(--green);
    color: var(--green);
}

.cookie-button.reject {
    border-color: var(--bloodred);
    color: var(--bloodred);
}

/* Besucherzähler-Stil (Beispiel - sollte in einer allgemeinen components.css sein) */
.visitor-counter {
    background-color: var(--bloodred);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: default;
    font-size: 14px;
    transition: all var(--transition-medium);
}

.visitor-counter:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

#count {
    font-weight: bold;
    margin-left: 4px;
}

/* page-title-section (Beispiel - sollte in einer spezifischeren CSS sein, z.B. graphix.css) */
.page-title-section {
    text-align: center;
    padding: 50px 20px;
    background-color: var(--bg-primary); /* Nutzt Theme-Variable */
    color: var(--text-primary);
}

.page-title-section h1.page-main-title {
    font-family: 'JosefinSlab-SemiBold', serif;
    font-size: 2.8em;
    color: var(--bloodred);
    margin-bottom: 15px;
}

.page-title-section h1.page-main-title .red-text {
     color: var(--lowred);
}

.page-title-section p.page-intro {
    font-size: 1.1em;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 20px auto;
    line-height: 1.6;
}

/* Responsive Design (global) */
@media (max-width: 1200px) {
    .container { max-width: 960px; }
}
@media (max-width: 992px) {
    .container { max-width: 720px; }
}
@media (max-width: 768px) {
    .container { max-width: 540px; }
    html { font-size: 14px; }
    .main-title h1 { font-size: 2em; }
    .main-title h2 { font-size: 1.8em; }
    /* .service-grid { grid-template-columns: 1fr; }  Diese Regel gehört in eine spezifischere Datei */
    /* #winter-game { height: 300px; } Diese Regel gehört in eine spezifischere Datei */
    /* .utility-links { flex-direction: column; align-items: flex-end; } Diese Regel gehört in eine spezifischere Datei */
    /* .header-links { flex-direction: column; align-items: flex-start; } Diese Regel gehört in navigation.css / header.css */
    .footer-container { flex-direction: column; align-items: center; text-align: center; gap: var(--spacing-md); }
}
@media (max-width: 480px) {
    .cookie-content { flex-direction: column; text-align: center; }
    .footer-links { flex-direction: column; align-items: center; }
    /* .nav-links li a, .service-link, .preview-button, .contact-button, .social-link, .action-button { padding: 10px 16px; } Diese Regel gehört in navigation.css / components.css */
    /* .footer-actions button { min-height: 44px; } Diese Regel gehört in footer.css / components.css */
    p, li, .date, .instructor { font-size: 16px; line-height: 1.5; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
    h4 { font-size: 18px; }
}
