/* ==========================================================================
   1. GRUNDEINSTELLUNGEN, FARBEN & TYPOGRAFIE
   ========================================================================== */
:root {
  --bg-dark-blue: #143f54;
  --bg-light-yellow: #fbf8e6;
  --text-dark: #1f2937;
  --text-light: #fbf8e6;
  
  /* Die verbindlichen MGV-Gold/Gelb-Töne */
  --accent-yellow: #453e1d; 
  --accent-yellow: #e6d162; 
  --accent-yellow-dark: #f7f1cf;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  /* Lokale Roboto Einbindung */
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background-color: var(--bg-dark-blue);
}

/* Überschriften: Roboto Black */
h1, h2, h3, h4, h5, h6, .site-title {
  font-family: "Roboto", system-ui, -apple-system, sans-serif;
  font-weight: 900;
}

/* Untertitel / Slogans: Roboto Italic */
.site-tagline {
  font-size: 1.6rem;
  font-weight: 600;
  font-family: "Roboto", system-ui, -apple-system, sans-serif;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.2;
  margin-top: 0.25rem;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* ==========================================================================
   2. HEADER & LOGO
   ========================================================================== */
.site-header {
  background-color: var(--bg-dark-blue);
  color: var(--text-light);
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.logo {
  height: 90px;
  width: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--accent-yellow);
}

/* ==========================================================================
   3. HAUPTBEREICH (MAIN CONTENT - STARTSEITE & RECHTSSEITEN)
   ========================================================================== */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
}

/* Standard-Box für die Startseite (Zentriert) */
.content-box {
  background-color: var(--bg-light-yellow);
  border-radius: 12px;
  border-bottom-right-radius: 50px;
  padding: 3.5rem 2.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  text-align: center;
  width: 100%;
}

.content-box h1 {
  color: var(--bg-dark-blue);
  margin-top: 0;
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.content-box p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-dark);
  max-width: 620px;
  margin: 0 auto 2.25rem auto;
}

.status-badge {
  display: inline-block;
  background-color: var(--bg-dark-blue);
  color: var(--accent-yellow);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   3.1 RECHTSSEITEN (Impressum & Datenschutz - Linksbündig & Breiter)
   ========================================================================== */
.content-box-recht {
  background-color: var(--bg-light-yellow);
  border-radius: 12px;
  padding: 3.5rem 3rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  text-align: left;
  width: 100%;
  color: var(--text-dark);
}

/* Überschriften-Hierarchie für juristische Texte */
.content-box-recht h1 {
  color: var(--bg-dark-blue);
  font-size: 2.2rem;
  font-weight: 900;
  margin-top: 0;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(14, 55, 82, 0.15);
  padding-bottom: 0.75rem;
}

.content-box-recht h2 {
  color: var(--bg-dark-blue);
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.content-box-recht h3 {
  color: var(--bg-dark-blue);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.content-box-recht h4, 
.content-box-recht h5 {
  color: var(--bg-dark-blue);
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Fließtext und Listen in den Rechtstexten */
.content-box-recht p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.content-box-recht ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.content-box-recht li {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.content-box-recht hr {
  border: 0;
  height: 1px;
  background: rgba(14, 55, 82, 0.2);
  margin: 2rem 0;
}

/* ==========================================================================
   LINKS IN DEN RECHTSSEITEN (DSGVO / IMPRESSUM)
   ========================================================================== */
.content-box-recht a {
  color: var(--bg-dark-blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(14, 55, 82, 0.4); /* Dezentere Unterstreichung */
  text-underline-offset: 3px;                     /* Etwas Abstand zum Text */
  transition: all 0.2s ease-in-out;
}

.content-box-recht a:hover {
  color: var(--accent-yellow-dark);
  text-decoration-color: var(--accent-yellow-dark);
}

/* AUTOMATISCHE ICONS VORBEREITUNG (Für spätere Bootstrap-Icons / FontAwesome) */

/* Externe Links (öffnen in neuem Tab) */
.content-box-recht a[target="_blank"]::after,
.content-box-recht a[href^="http"]:not([href*="mgv-gs.de"])::after {
  content: " ↗"; /* Platzhalter für Bootstrap Icon bi-box-arrow-up-right */
  font-size: 0.85em;
  display: inline-block;
  margin-left: 3px;
}

/* Mailto Links */
.content-box-recht a[href^="mailto:"]::before {
  content: "✉ "; /* Platzhalter für Bootstrap Icon bi-envelope */
  font-size: 0.9em;
}

/* Tel Links */
.content-box-recht a[href^="tel:"]::before {
  content: "📞 "; /* Platzhalter für Bootstrap Icon bi-telephone */
  font-size: 0.9em;
}

/* ==========================================================================
   4. FOOTER & SILHOUETTE
   ========================================================================== */
.site-footer {
  position: relative;
  background-color: var(--bg-dark-blue);
  color: var(--text-light);
  padding: 2rem 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  overflow: visible;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-links a {
  color: var(--text-light);
  margin-right: 1.5rem;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-yellow);
  text-decoration: underline; /* Korrigiert! */
}

.footer-silhouette {
  bottom: -1.5rem;
  width: clamp(250px, 28vw, 450px); 
  height: clamp(70px, 9vh, 120px);
  background-image: url('../images/silhouette.webp');
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: contain;
  pointer-events: none;
  z-index: 1;
  transform: translateY(0); 
  transition: all 0.2s ease-in-out;
  flex-shrink: 0; /* Verhindert, dass sie gestaucht wird */
}

/* ==========================================================================
   5. RESPONSIVE ANPASSUNGEN (HÖHEN- & MOBIL-SCHUTZ)
   ========================================================================== */
@media (min-width: 769px) and (max-height: 700px) {
  .footer-silhouette {
    width: clamp(180px, 20vw, 300px);
    height: 60px;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .header-container {
    justify-content: center;
  }

  .brand {
    flex-direction: column;
    text-align: center;
  }

  .logo {
    height: 75px;
  }

  .content-box {
    padding: 2rem 1.25rem;
  }

  .content-box h1 {
    font-size: 1.5rem;
  }

  .footer-silhouette {
    display: none;
  }

  .footer-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}