/* ==============================================================
   1. VARIABLEN & RESET
   ============================================================== */
:root {
   

    /* Fluid Typo & Maße */
  /*  --font-size-base:   clamp(0.1rem, 0.7rem + 0.5vw, 1.0rem); */
    --header-height:    80px;
    --max-width:        1400px;
    --sidebar-width:    280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
   font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9em;
    line-height: 1.6;
    overflow-x: hidden;
    background: #f8f9fa;
    color: #000000;
   
}

h1 {
            font-size: 2.5em;
            text-align: center;
            margin-bottom: 10px;
    }


/* ==============================================================
   2. LAYOUT STRUKTUR
   ============================================================== */
#wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    flex: 1;
    width: 100%;
}

#main { grid-column: 2; padding: 120px 0 40px 0; } /* Padding oben für Fixierte Pille */

.inside {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}


/* --- Full-Width Utility --- */
#main .inside.full-width {
    max-width: 100% !important;
    padding: 0 !important;
}

/* ==============================================================
   3. NAVIGATION (DIE MENÜPILLE)
   ============================================================== */
.nav-wrapper {
    position: fixed;
    top: 20px; /* Schwebend */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.menu-pille {
    background: linear-gradient(135deg, #2c5f2d 0%, #1a3a1b 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.reg-logo .text {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--white);
}

.nav-main-container ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-main-container a, 
.nav-main-container strong {
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.nav-main-container a:hover { color: var(--reg-cyan); }

.nav-cta-btn {
    background: var(--reg-cyan);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: 0 0 15px rgba(204, 255, 102, 0.4);
    transition: transform 0.2s;
}

.nav-cta-btn:hover { transform: scale(1.05); }

/* ==============================================================
   4. ARTIKEL GRID (KWG)
   ============================================================== */
/* Korrektur: Wir sprechen das innere Div von Contao an */
.kwg .mod_article__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 50px 0;
}

.kwg .mod_article__inner {
    display: grid;
    /* Erzeugt Spalten, die min. 300px und max. 500px groß sind */
    grid-template-columns: repeat(3, minmax(300px, 500px)); 
    gap: 30px;
    padding: 50px 0;
    justify-content: center; /* Zentriert die Karten, wenn Platz übrig ist */
}

/* ==============================================================
   5. DIE "GEILEN" BOXEN (CARDREG & BP-KLASSEN)
   ============================================================== */
.cardreg {
    position: relative;
    overflow: hidden;
    min-height: 350px;
    padding: 40px;
    border-radius: 5px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 8px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cardreg:hover {
   
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.cardreg h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--reg-cyan);
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* BP-1: Sonnig & Gepunktet */
.bp-1 { background: linear-gradient(135deg, rgba(149, 212, 116, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%); }
.bp-1::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* BP-2: Tech-Stripe */
.bp-2 { background: rgba(45, 110, 58, 0.3); border-left: 6px solid var(--reg-cyan); }
.bp-2::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background-image: repeating-linear-gradient(45deg, rgba(204, 255, 102, 0.03) 0px, rgba(204, 255, 102, 0.03) 1px, transparent 1px, transparent 10px);
}

/* BP-3: Glow-Effekt */
.bp-3 { background: radial-gradient(circle at top left, rgba(106, 191, 75, 0.5) 0%, rgba(30, 46, 26, 0.2) 100%); }
.bp-3::after {
    content: ''; position: absolute; bottom: -20px; right: -20px; width: 100px; height: 100px;
    background: var(--reg-cyan); filter: blur(50px); opacity: 0.3; z-index: -1;
}

/* BP-4: Deep Forest */
.bp-4 { background: rgba(30, 46, 26, 0.7); 
         border: 1px solid var(--reg-cyan);
         color: #ffffff; }
         
         
         
/* Galerie Grund-Styling */
.content-gallery {
    margin: 2rem 0;
    padding: 0;
}

/* ==============================================================
    Galerie
   ============================================================== */
.content-gallery--cols-4 ul, .content-gallery--cols-6 ul, .content-gallery--cols-8 ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px; /* Abstand zwischen den Bildern */
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ==============================================================
   6. MOBILE ANPASSUNG
   ============================================================== */
@media (max-width: 1024px) {
    #container { grid-template-columns: 1fr; }
    .nav-wrapper { top: 0; }
    .menu-pille { border-radius: 0; width: 100%; gap: 15px; padding: 10px; }
    .nav-main-container { display: none; } /* Hamburger hier einbauen */
}

@media (max-width: 768px) {
    .kwg .mod_article__inner { grid-template-columns: 1fr; }
}