:root {
    /* Diese Werte werden dynamisch durch PHP überschrieben */
    --bg-color: #f8fafc;
    --accent-color: #00E5FF;
    --text-color: #ffffff;
    --font-size-base: 12px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: var(--font-size-base);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background 0.3s, color 0.3s;
}

.gradient-text {
    color: #02143e;
    background: linear-gradient(135deg, #02143e 0%, #6d28d9 50%, #be185d 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.body-link {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent-color);
}

.main-text-content {

}

/* ==========================================================================
   CMS GLOBALE EINSTELLUNGEN & RESET (LIGHT MODE)
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f8fafc; /* Ein extrem sauberes, ganz helles Slate-Weiß aus dem Bild */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #334155; /* Dunkelgrauer Basistext für perfekte Lesbarkeit */
  margin: 0;
  padding: 0;
}


/* ==========================================================================
   GLOBALES ÜBERSCHRIFTEN-STYLING (H1 & H2)
   ========================================================================== */
h1 {
    color: #02143e; /* Tiefes, edles Indigo-Dunkelblau */
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
}

h2 {
    color: #1e1b4b; /* Etwas dunkleres Violett-Schwarz */
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 15px;
    padding-left: 20px;
    padding-right: 20px;
}

/* DER HIGH-END FARBVERLAUF AUS DEN BILDERN (Blau zu Violett-Pink) */
.gradient-text {
    background: linear-gradient(135deg, #02143e 0%, #8b5cf6 50%, #ec4899 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ==========================================================================
   CMS HEADER BANNER BILD-OPTIMIERUNG (PC)
   ========================================================================== */
.site-header {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 0; 
}

.header-banner {
  width: 100%;
  /* ERHÖHT: Von 220px auf 320px für mehr Bildpräsenz auf dem PC */
  height: 280px; 
  
  object-fit: cover;
  object-position: center; 
  display: block;
  border-bottom: 1px solid #0095f5; 
}



/* ==========================================================================
   EINFACHER TEXT IN DUNKELGRAU (.text-dunkel) FÜR HELLEN HINTERGRUND
   ========================================================================== */
.text-dunkel {
    color: #334155; /* Elegantes Indigo-Dunkelgrau aus den Vorlagen */
    font-size: 16px;
    line-height: 1.8; /* Etwas mehr Zeilenabstand für flüssiges Lesen */
    font-weight: 400;
    width: 100%;
}

/* Falls im CMS-Text normale HTML-Links vorkommen, werden diese hierdurch blau */
.text-dunkel a {
    color: #02143e;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.text-dunkel a:hover {
    color: #8b5cf6;
}





/* ==========================================================================
   EINLEITUNGSTEXT (INTRO-SECTION)
   ========================================================================== */
.intro-section {
    width: 100%;
    padding: 120px 20px 20px 20px;
    box-sizing: border-box;
}

.intro-container {
    max-width: 1000px;
    margin: 0 auto;
}

.intro-badge {
    color: #6d28d9;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.intro-container p {
    color: #475569; /* Perfekt lesbarer Schiefer-Grauton für Fließtexte */
    font-size: 16px;
    line-height: 1.7;
}

/* ==========================================================================
   CMS DASHBOARD-KACHELN (PULSIERENDER HELL-LOOK)
   ========================================================================== */
.zwei-textkarten-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); 
    gap: 25px;
    max-width: 1400px;
    margin: 30px auto 100px auto; 
    padding: 0 20px;
    box-sizing: border-box;
}

.textkarte {
    display: flex;
    flex-direction: column;
    background-color: #ffffff; /* Reines, strahlendes Weiß für die Kacheln */
    border: 1px solid #e2e8f0; /* Sehr cleaner, heller Standard-Rahmen */
    border-radius: 12px; /* Moderne, etwas rundere Ecken wie im Bild */
    padding: 30px; 
    text-decoration: none;
    color: #334155;             
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01); /* Super softer Schatten */
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.textkarte h3 {
    color: #02143e; /* Kacheltitel in Indigo-Dunkelblau */
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.textkarte p {
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
}

/* HOVER-EFFEKT: Genau wie auf der Vorlage (Sanftes Abheben mit blau/violettem Schein) */
.textkarte:hover {
    transform: translateY(-5px); 
    border-color: #02143e; /* Der Rand wechselt beim Hover zu Elektro-Blau */
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.1), 0 10px 10px -5px rgba(139, 92, 246, 0.04); /* Weicher, blau-violetter Tiefenschatten */
}

.textkarte:hover h3 {
    color: #02143e; /* Titel wechselt beim Hover ebenfalls elegant zu Blau */
}

/* Reine Info-Karten ohne Link */
.textkarte.infokarte {
    cursor: default; 
}
.textkarte.infokarte:hover {
    transform: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    border-color: #e2e8f0;
}
.textkarte.infokarte:hover h3 {
    color: #02143e;
}

/* ==========================================================================
   EINFACHE TEXTLINKS & GLOBALE LISTEN
   ========================================================================== */
.text-link, p a {
    color: #02143e; /* Elektro-Blau für Links */
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.text-link:hover, p a:hover {
    color: #8b5cf6; /* Wechselt beim Drüberfahren zu Violett */
}

ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

li {
    color: #475569;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 8px;
}

/* Violette Aufzählungspunkte passend zur Bildästhetik */
li::marker {
    color: #8b5cf6; 
    font-size: 1.1em;
}



/* ==========================================================================
   VOLLFLÄCHIGER INHALTSBLOCK (FÜR FLIESS- UND EDITORTEXTE)
   ========================================================================== */
.content-block {
    max-width: 1000px; /* Perfekte Lesebreite für längere CMS-Texte */
    margin: 30px auto 60px auto; /* Zentriert die Box mit Abstand nach oben/unten */
    padding: 0 20px; /* Verhindert das Ankleben am Bildschirmrand bei Handys */
    box-sizing: border-box;
}

.text-dunkel {
    background-color: #ffffff; /* Weißer Kartenhintergrund aus dem Bild */
    border: 1px solid #e2e8f0; /* Heller, cleaner Rahmen */
    border-radius: 12px; /* Moderne, runde Ecken */
    padding: 40px; /* Viel Platz zum Atmen für den Text im Inneren */
    color: #334155; /* Elegantes Indigo-Dunkelgrau */
    font-size: 16px;
    line-height: 1.8;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.02), 0 8px 10px -6px rgba(15, 23, 42, 0.02); /* Minimaler Schatten */
}

/* Falls Sie Überschriften direkt IM Textfeld (z.B. aus der Datenbank) haben */
.text-dunkel h2, .text-dunkel h3 {
    padding-left: 0;
    padding-right: 0;
    margin-top: 25px;
    margin-bottom: 15px;
    color: #02143e;
}

/* Optimierung für Smartphones */
@media (max-width: 768px) {
    .text-dunkel {
        padding: 25px; /* Kompakter auf dem Handy */
        font-size: 15px;
    }
}

#header h1 {
        font-size: 1.5rem;
    }

    #header h2 {
        margin-top: 0.75rem;
        margin-bottom: 1.5rem;
    }



/* ==========================================================================
   MOBILE BURGER-MENÜ FORMATIERUNG (Inklusive Animation zum X)
   ========================================================================== */
@media (max-width: 400px) {

  /* Macht den Burger-Button auf dem Smartphone sichtbar */
  .burger-menu {
    display: flex;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    padding: 0;
    z-index: 1100; /* Stellt sicher, dass der Button immer ganz oben liegt */
  }

  /* Gestaltet die 3 einzelnen Querstriche im neuen Weiss */
  .burger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: #0095f5; 
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); /* Seidenweiche Animation */
  }

  /* Navigation wird auf dem Handy zum ausklappbaren Dropdown-Menü */
.nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: #0f172a;
    padding: 20px 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

  /* Wenn das Menü per JavaScript geöffnet wird (Klasse .active) */
  .nav-links.active {
    display: flex;
    animation: fadeInDown 0.3s ease forwards;
  }

  .nav-links li {
    margin: 5px 0;
    text-align: center;
    margin-left: 0; /* PC-Abstand auf dem Handy zurücksetzen */
  }

.nav-links a {
    font-size: 18px;
    display: block;
    width: 100%;
    color: #ffffff;
}

  /* ==========================================================================
     ANIMATION: Die 3 blauen Striche verwandeln sich bei Klick in ein X
     ========================================================================== */
  .burger-menu.open .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .burger-menu.open .bar:nth-child(2) {
    opacity: 0; /* Der mittlere Strich blendet sich aus */
  }

  .burger-menu.open .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}



@media (max-width: 400px) {
  
  /* ==========================================================================
     CMS HEADER BANNER BILD-OPTIMIERUNG (MOBILE)
     ========================================================================== */
  .header-banner {
    /* GRÖSSE: Auf kleinen Handy-Bildschirmen kompakt halten */
    height: 200px; /* Reduziert von 250px auf 180px für mehr Fokus auf den Content */
    width: 100%;
    object-fit: cover;
    
    /* POSITION: Perfekt zentriert ausrichten */
    object-position: center center !important; 
    
    /* DESIGN: Passend zum neuen, abgerundeten Karten-Look */
    border-radius: 0 0 12px 12px; /* Rundet nur die unteren Ecken des Banners ab */
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04); /* Sehr feiner Schatten nach unten */
  }

  /* ... Hier folgt Ihr restlicher Mobile-CSS-Code für das Burger-Menü ... */
}









/* ==========================================================================
   FOOTER STYLING (PASSENDER HELLER FINISH)
   ========================================================================== */
.site-footer {
  background-color: #01248a; /* Dezentes Hellgrau für den Footer */
  border-top: 1px solid #e2e8f0;
  padding: 40px 20px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #cccccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff; /* Wechselt beim Drüberfahren zu Elektro-Blau */
}

.footer-copy {
  color: #e2e8f0; /* Helles, klares Weißgrau (> 10:1 Kontrast auf #01248a) */
  font-size: 13px;
  text-align: center;
}

.footer-copy a {
  color: #ffffff;
  text-decoration: underline; /* Pflicht für Links innerhalb von Fließtext */
  text-underline-offset: 3px;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.footer-copy a:hover {
  opacity: 0.85;
}
