:root {
  /* Primärfarben (Blau-Verlauf) */
  --oag-blue-dark: #003366;    /* Dunkles Blau (Basis des Quadrats) */
  --oag-blue-medium: #4a90e2;  /* Mittleres Blau */
  --oag-blue-light: #a4c8e1;   /* Hellblau (oberes Element) */
  
  /* Text & Akzente */
  --oag-gray-text: #575756;    /* Dunkelgrau für "OAG" */
  --oag-gray-light: #9d9d9c;   /* Helles Grau für Untertitel */
  --oag-white: #ffffff;        /* Hintergrundweiß */

  /* Breite nach Wunsch: 1400px (87.5rem) oder 1600px (100rem) */
  --content-max-width: 100rem; 
  --header-bg: #ffffff;
  --border-color: rgba(44, 95, 153, 0.2);
  --shadow: 0 10px 30px -5px rgba(44, 95, 153, 0.15);
}

html ::selection {
    background-color: #1e293b !important; 
    color: #38bdf8 !important;
}

html ::-moz-selection {
    background-color: #1e293b !important;
    color: #38bdf8 !important;
}

body {
  background-color: var(--oag-white);
}

/* --- 1. RESET --- */
*, *::before, *::after {
    box-sizing: border-box;
}

/* --- 2. LAYOUT WRAPPER (Monitorbreite) --- */
#top-custom,
#header,
#container,
#footer {
    width: 100%;       /* Volle Monitorbreite */
    position: relative;
}

/* --- 3. INSIDE-CONTAINER (Zentrierung & Max-Width) --- */
#top-custom .inside,
#header .inside,
#main .inside,
#footer .inside,
.mod_article__inner {
    max-width: var(--content-max-width);
    margin-inline: auto;   /* Zentriert den Block */
    width: 100%;
}

/* --- 4. TOP-CUSTOM (Sticky Bereich) --- */
#top-custom {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

#top-custom .inside {
    display: flex;
    justify-content: space-between; 
    align-items: center;           
    padding-block: 1rem;           
}

/* --- 5. HEADER --- */
#header {
    height: auto;
    background-color: #fcfcfc; 
}

#header .inside {
    padding-block: 2rem; 
}

/* --- 6. MAIN CONTENT AREA --- */
#main {
    flex: 1 0 auto; 
}

/* --- 7. GRID-UNTERSTÜTZUNG --- */
.grid-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* --- 8. MOBILE OPTIMIERUNG --- */
@media (max-width: 768px) {
    #top-custom .inside {
        flex-direction: column; 
        gap: 1rem;
    }
    
    #header .inside, 
    #main .inside {
        padding-inline: 1rem;
    }
}

.prefooter, .header-image {
    border-bottom: 1px solid rgba(44, 95, 153, 0.1);
    box-shadow: 0 10px 20px -5px rgba(44, 95, 153, 0.15);
}

.nav-toggle .icon-line,
.nav-toggle .icon-line:before,
.nav-toggle .icon-line:after {
    background: var(--oag-blue-dark);
}
 
.button-primary, form .submit {
  background-color: var(--oag-blue-medium);
  padding: 10px 20px;
  border: none;
}

.footer-text {
  color: #000;
  font-size: 0.8rem;
  text-transform: uppercase;
}

#footer {
  background-color: #014385; 
  background-image: radial-gradient(rgba(0, 0, 0, 0.2) 15%, transparent 16%);
  background-size: 8px 8px;
  background-attachment: fixed;
  box-shadow: inset 0 20px 30px -10px rgba(0,0,0,0.3);
  padding: 40px 20px;
  color: #ffffff;
  text-align: center;
  font-family: sans-serif;
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-top: 10px;
}

.box--blue, .box--gray-light {
    background: #fff; /* Fix: var(--white) zu #fff falls nicht definiert */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 30px -5px rgba(44, 95, 153, 0.15);
    transition: 0.2s ease;
    border: 1px solid rgba(44, 95, 153, 0.2); 
}

/* --- BUTTONS & EFFEKTE --- */
.button-primary, form .submit, .button-secondary, .more a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    position: relative; 
    overflow: hidden;    
    transition: all 0.3s ease;
}

.button-primary, form .submit {
    background: #1e293b;
    color: #ffffff;
    border: 1px solid #0f172a;
}

.button-primary::before, form .submit::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    transform: skewX(-20deg);
}

.button-primary:hover::before, form .submit:hover::before {
    left: 150%;
    transition: left 0.6s ease-in-out;
}

.button-primary:hover, form .submit:hover {
    background: #2d3e54;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.button-secondary, .box--gray-light .more a, .layout_short .more a {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e2e8f0;
    color: #475569;
}

.button-secondary:hover, .more a:hover {
    border-color: #38bdf8;
    color: #1e293b;
    background: #ffffff;
}