/* ========================================================= */
/* DESIGN-VARIABLEN                                          */
/* ========================================================= */

:root {
    /* Farbpalette */
    --primary-color: #A31F34; /* Dunkelrot/Bordeaux - Akzent */
    --secondary-color: #333333; /* Dunkelgrau/Fast Schwarz - Textbasis */
    --background-color: #F8F4F0; /* Off-White/Sehr Hellbeige - Seitenhintergrund */
    --text-color: var(--secondary-color);
    --headline-color: #A31F34; 
    --metallic-gold: #B8860B; /* Für Metallic Gold im Button Text (WCAG-taugliche Farbwahl) */
    --button-bg: var(--primary-color);
    --button-hover-bg: #D4394E;
    --tip-box-bg: #FFF0E6; /* Helles Orange/Beige für Tipps */

    /* Schriftgrößen (Basis für Barrierefreiheit/Sehbehinderung) */
    /* Mobile/Default */
    --fs-base: 1.1rem; 
    --fs-h1: 2.5rem;
    --fs-h2: 2.1rem;
    --fs-h3: 1.8rem;

    /* Desktop/Tablet (größere Bildschirme) */
    @media (min-width: 992px) {
        --fs-base: 1.15rem;
        --fs-h1: 3.5rem;
        --fs-h2: 2.5rem;
        --fs-h3: 2.2rem;
    }
    
    /* Abstände und Hierarchie */
    --line-height-base: 1.8; /* Großzügiger Zeilenabstand (Lesbarkeit) */
    --section-spacing: 5rem;
}

/* ========================================================= */
/* BASIS STYLING (A: A11Y/Barrierefreiheit)*/
/* ========================================================= */

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: var(--line-height-base);
    font-size: var(--fs-base); /* Basis-Schriftgröße setzen */
}

/* Schriftgrößen aus Variablen anwenden */
p, .text-content, .custom-list {
    font-size: var(--fs-base);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--headline-color);
    line-height: 1.2; 
    margin-top: 2rem; /* Abstand nach oben für klare Hierarchie */
    margin-bottom: 1rem;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

/* Alle Hyperlinks als Text immer in Textfarbe */
a:not(.btn) {
    color: var(--primary-color); /* Primärfarbe für Textlinks zur Kennzeichnung */
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:not(.btn):hover {
    color: var(--secondary-color);
}

/* ========================================================= */
/* HEADER & NAVIGATION                                       */
/* ========================================================= */

.custom-navbar {
    background-color: rgba(255, 255, 255, 0.95); /* Leicht transparentes Weiß/Off-White */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px); /* Für einen modernen, "schwebenden" Effekt */
    padding: 0.5rem 0; /* Etwas kompakter */
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--secondary-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
    text-decoration: underline;
}

/* Navbar-Icon Farbe angepasst (wird aus SVG-Daten generiert) */
.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='%23A31F34' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========================================================= */
/* HERO SECTION - Optische Optimierung                       */
/* ========================================================= */

.hero-section {
    position: relative;
    height: 100vh;
    /* Bild wird als Background geladen (besser für Responsivität und Overlay) */
    background-image: url('https://i.postimg.cc/NFpLBbZs/1024_1536_hero_hochkant.webp'); 
    background-size: cover;
    background-position: center; /* Wichtiger: center, nicht nur center top */
    background-attachment: fixed; /* Parallax-Effekt */
    color: white; 
    padding-top: 56px;
    /* Damit das Overlay funktioniert, muss Position: relative gesetzt sein */
    /* Ist durch .hero-section bereits gegeben */
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

/* Semi-transparenter Overlay für bessere Lesbarkeit des Textes (OPTIMIERUNG) */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dunklere Tönung (50%) */
    z-index: 1;
}

.hero-text-box {
    /* Textbox für Kontrast */
    background-color: rgba(255, 255, 255, 0.95); /* Heller, fast undurchsichtig */
    color: var(--secondary-color);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* Flex-Box-Ausrichtung, um es auf großen Screens oben links zu halten */
    align-self: flex-start;
}

.hero-text-box .headline {
    color: var(--primary-color);
    text-shadow: none;
}

.hero-text-box .subline {
    font-size: calc(var(--fs-base) * 1.2);
    font-weight: 400;
}

/* Anpassung für kleinere Bildschirme (Textbox zentrieren) */
@media (max-width: 991.98px) {
    .hero-text-box {
        text-align: center;
        padding: 2rem;
        width: 100%; 
        max-width: 450px; /* Optional: Maximale Breite für bessere Lesbarkeit auf Tablets */
        margin: auto;
    }
}

/* ========================================================= */
/* HAUPTINHALT & GALERIEN                                    */
/* ========================================================= */

.section-title {
    /* OPTIMIERUNG: Dicke untere Linie zur optischen Trennung */
    border-bottom: 4px solid var(--metallic-gold); 
    padding-bottom: 0.5rem;
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0 auto 3rem auto !important;
}

.sub-section-title {
    color: var(--secondary-color);
    font-weight: 600;
    /* OPTIMIERUNG: Goldener linker Trenner */
    border-left: 5px solid var(--metallic-gold);
    padding-left: 1rem;
    margin-top: 3rem; /* Etwas mehr Abstand nach oben */
}

.small-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: calc(var(--fs-base) * 1.2);
    margin-top: 1rem;
}

.custom-tip-box {
    background-color: var(--tip-box-bg);
    border-left: 5px solid var(--primary-color);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-style: italic; /* Optische Aufwertung */
}

.custom-list {
    list-style: none; /* Entfernt Standard-Bullets */
    padding-left: 0;
}

.custom-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem; /* Platz für das Bullet */
    position: relative;
}

.custom-list li::before {
    /* OPTIMIERUNG: Benutzerdefiniertes, farbiges Bullet */
    content: '★'; /* Alternativ: '▶' oder ein SVG-Icon */
    color: var(--metallic-gold); 
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* **Galerie Styling** */

.gallery-grid .custom-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.gallery-grid .custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); /* Stärkerer Hover-Effekt */
}

/* Bilder Galerie: Bei allen Bildschirmgrößen immer quadratisch (OPTIMIERUNG) */
.gallery-grid .image-container {
    width: 100%;
    padding-top: 100%; /* Erzeugt das quadratische Seitenverhältnis (1:1) */
    position: relative;
    overflow: hidden;
}

.gallery-grid .card-img-top {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
}

.gallery-grid .card-body {
    padding: 1.5rem;
}

/* **Button Styling** */
.custom-button {
    background-color: var(--button-bg);
    border: 5px solid var(--metallic-gold); /* Gold-Rand als Akzent */
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 0.75rem 1rem;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.1s;
    width: 100%;
}

.custom-button:hover {
    background-color: var(--button-hover-bg);
    border-color: var(--metallic-gold);
    transform: scale(1.01);
}

/* Alle Hyperlinks als Text im Button immer in Metallic Gold */
.text-metallic-gold {
    color: var(--metallic-gold) !important;
}

/* Lazy Loading Transition: Sanfteres Erscheinen der Bilder */
img[data-src] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img.lazyloaded {
    opacity: 1;
}

/* ========================================================= */
/* SCROLL-TO-TOP BUTTON                                      */
/* ========================================================= */

.custom-scroll-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1030;
    background-color: var(--metallic-gold);
    color: var(--secondary-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: none; 
    transition: background-color 0.3s, transform 0.3s;
}

.custom-scroll-button:hover {
    background-color: #DDAA00; 
    transform: scale(1.1);
}

.custom-scroll-button svg {
    fill: var(--primary-color); 
}
