/* Custom Cassiopeia modifications */

/* ==========================================================================
   CASSIOPEIA RESPONSIVE HORIZONTAL MENU
   ========================================================================== */

/* --- 1. EIGENE FARBEN DEFINIEREN --- */
:root {
    --cassiopeia-color-primary: #3c4b5a;    /* Dunkles Blau statt Violett */
    --cassiopeia-color-hover: #1a252f;      /* Hover-Farbe für Links/Buttons */
    --cassiopeia-color-link: #3498db;       /* Farbe für Text-Links 3498db */
    --footer-bg: #3c4b5a;                  /* Hintergrundfarbe Footer */
    --cassiopeia-header-gradient: linear-gradient(180deg, var(--cassiopeia-color-primary) 0%, #2c3e50 100%);
}

/* --- 2. HEADER & NAVIGATION ANPASSEN --- */
.container {
    max-width: 1200px; /* Der Inhalt wird nie breiter als 1200px */
    margin: 0 auto;    /* Zentriert den Container auf der Seite */
    padding: 20px;
}

/* --- Topbar --- */
.container-topbar {
    background-color: #f8f9fa;       /* Helle Hintergrundfarbe */
    border: 1px solid #dee2e6;       /* Dezenter Rahmen */
    border-radius: 0px;              /* Abrundung (Pillen-Design) */
    padding: 5px 10px;               /* Innenabstand */
    margin: 20px auto;               /* Abstand nach oben und Zentrierung */
    max-width: fit-content;          /* Rahmen passt sich der Inhaltsbreite an */
}

/* Header */
.header {
    display: flex;
    position: fixed;
    justify-content: space-between; /* Schiebt Logo nach links, Menü nach rechts */
    align-items: center; /* Zentriert beide vertikal zueinander */
    border-bottom: 1px solid var(--cassiopeia-color-primary);
    padding-bottom: 1rem;        /* Abstand zwischen Menüpunkten und Linie */
    margin-bottom: 0rem;         /* Abstand zwischen Linie und Inhalt darunter */
    margin: 50px 0px 0px 0px;   /* Abstand zum Body: top, right, bottom, left */
}

/* Trennlinie direkt unter dem Header */
header.header {
    /* border: 1.5px solid #dee2e6; /* Grauer Rahmen rundherum */
    border-top: 1.0px solid #dee2e6;
    border-left: 1.0px solid #dee2e6;
    border-right: 1.0px solid #dee2e6;
    border-bottom: 0px solid #FFFFCF; /* Akzentlinie unterhalb */
    margin-bottom: 0; /* Verhindert doppelten Abstand */
    box-shadow: 0 5px 10px rgba(0,0,0,0.2); /* Optionaler Schatten */
    border-radius: 0px;         /* Leicht abgerundete Ecken */
}

/* Header: mod.menu - innerhalb header - Hintergrundfarbe ändern */
.container-header .mod-menu {
    /* color: #FFFFCF; */
    color: #F5D033; /* Farbe Main Menu Links F5D033 */
    display: flex;
    align-items: left; /* Hamburger Menu öffnet links */
    margin: 25px 550px 25px 0px;  /* Main Menu Links: top, right, bottom, left */
}

/* Hover-Farbe für Menülinks */
.container-header .mod-menu a:hover {
    color: #ffffff;   /* deine Hover Farbe */
}

/* Farbe für aktiven Menülink */
.container-header .mod-menu .active > a {
    color: #e2b007;   /* gewünschte Farbe */
    font-weight: bold; /* optional: macht den aktiven Punkt besser sichtbar */
}


/* Richtet das Grid-Element der Navigation links aus */
.container-header .grid-child {
    justify-self: start;
    margin: 0px 0px 0px 0px; /* top, right, bottom, left */
}

/* Menüpunkte zentrieren (falls gewünscht) */
.container-nav {
    justify-content: center;
    width: 1050px;        /* feste Breite */
    max-width: 1050px;    /* verhindert Vergrößerung */
}

/* mobile devices 768 */
@media (max-width: 991.98px) {
  .ishome .container-header, /* only required if using the full screen image on the home page */
  .container-header {
      position: fixed !important;
      top: auto; /* Richtet die Oberkante des Elements an der Oberkante des Containers aus */
      bottom: 0; /* 0 -> Direkt an der Unterkante */
      width: 100%;
      height: 80px;
      padding: 0;
      background-color: #3c4b5a;
      background-image: unset;
  }
 .navbar-collapse {
      position: fixed;
      bottom: 80px;
      left: 0;
      padding-left: 15px;
      padding-right: 5px;
      padding-bottom: 5px;
      width: 100%;
      background: #3c4b5a;
      height: auto;
      overflow: auto;
  }
  .navbar-collapse.collapsing {
    height: auto;
    transition: left 0.3s ease;
    left: -100%;
  }
  .navbar-collapse.show {
    left: 0;
    transition: left 0.3s ease-in;
  }
 .navbar-toggler {
    position: fixed;
    bottom: 20px;
    z-index: 9999;
    display: block;
    width: 70px;
    height: 70px;
    background-color: #676d70; /* Farbe innen Kreis 004177 */
    border: 4px solid #F5D033 !important; /* Farbe Kreis ffff00 */
    border-radius: 40px;
    right: 10px;
  }
  .container-header img {
    max-width: 60%; /* Grösse Logo Mobilansicht */
  }
}

/* --- 3. TYPOGRAFIE --- */

html {
   /* background-color: #FFFFBF; Umrandung gelb */
    background-color: #F5D033; /* Farbe um den Rand, F5D033 */
}

/* Standard-Schriftgröße und Zeilenabstand im Content */
body {
    font-size: 16px; /* Einheitliche Basisgröße */
    line-height: 1.5; /* Einheitlicher Zeilenabstand */
    /* background-color: #FFFFBF; */ 
    background-color: transparent; /* Farbe über Header u. Footer */
    color: #333333;
    /* padding-top: 40px; /* Passt den Wert an die Höhe Ihres Headers an */
    padding-bottom: 40px; /* Passt den Wert an die Höhe Ihres Footers an */
    /* min-height: 100vh; /* Stellt sicher, dass der Rahmen die volle Höhe hat */
}

/* Body: Breite ändern */
body.site {
    max-width: 1200px; /* Feste Breite in Pixeln */
    /* height: 600px; /* Feste Höhe in Pixeln */
    margin: 0 auto; /* Zentriert die gesamte Website */
    overflow: scroll; /* erzwingt immer eine Scrollbar-Leiste */
}

/* Überschriften-Farbe anpassen */
/* h1, h2, h3 {
    color: var(--cassiopeia-color-primary);
    font-size: /* 1rem; Einheitliche Basis für Überschriften/Texte
    font-weight: 700;
} */

/* Schriftgrößen für Überschriften in Cassiopeia anpassen */
h1, .h1 { font-size: 2.5rem; }
h2, .h2 { font-size: 2.0rem; }
h3, .h3 { font-size: 1.75rem; }
h4, .h4 { font-size: 1.5rem; }

/* --- 4. LAYOUT-KORREKTUREN --- */

/* Abstand nach dem Header verringern */
.site-grid {
    width: 100%;
    margin-top: var(--header-height-desktop); /* 0rem */
    /* border: 1px solid #dee2e6; /* Solid: Ein durchgehender Strich und sehr hellgraue Farbe */
    /* min-height: 100vh; /* Stellt sicher, dass der Rahmen immer die volle Höhe hat */
    background-color: #FFFFFF; /* Hintergrundfarbe Textbereich innen */
    padding: 20px;
    flex: 1 0 auto; /* Sorgt dafür, dass der Main-Content den Platz ausfüllt und den Footer nach unten drückt */
    border-left: 1.0px solid #dee2e6;
    border-right: 1.0px solid #dee2e6;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2); /* Optionaler Schatten */
    border-radius: 0px; /* Leicht abgerundete Ecken */
   /* box-shadow: 0 0 15px rgba(0,0,0,0.05); /* Optional: Ein ganz softer Schatten */
}

/* Optional: bis 768px (größere Phones/Kleine Tablets) */
@media (max-width: 768px) {
    .site-grid {
        max-width: 100%;
        padding-inline: 16px;
    }
}

/* Smartphones (bis 576px) */
@media (max-width: 576px) {
    .site-grid {
        max-width: 100%;   /* oder z.B. 95% + padding */
        padding-inline: 12px; /* etwas seitlicher Innenabstand */
    }
}

@media (max-width: 400px) {
    .site-grid {
        padding-inline: 10px;
    }
}

/* Den Footer optisch absetzen */
.footer {
    display: flex;
    background: var(--footer-bg);
    /* color: #FFFFCF; */
    color: #F5D033; /* Farbe Links im Footer */
    height: 100px; /* Feste Höhe */
    padding: 0px 0px; /* Mehr Abstand oben/unten */
    margin: 0px 0px 50px 0px; /* top, right, bottom, left */
    text-align: right;
    /* border-top: 25px solid #ffffcf; /* Akzentlinie oberhalb */
    /* border: 1px solid #dee2e6; /* Grauer Rahmen rundherum */
    border-bottom: 1.0px solid #dee2e6;
    border-left: 1.0px solid #dee2e6;
    border-right: 1.0px solid #dee2e6;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Optionaler Schatten */
    border-radius: 0px; /* Leicht abgerundete Ecken */
}

/* Mobilansicht (z.B. unter 768px) */
@media (max-width: 768px) {
  .footer {
    padding: 20px 20px; /* Deutlich kompakter */
    margin: 0px 0px 80px 0px;
  }
}

/* Links im Footer ebenfalls anpassen, falls nötig */
.footer a {
    font-size: 0.9rem;
    text-decoration: none !important; /* Footer Impressum Link Unterstrich entfernen */
}

/* Den gesamten Footer-Container rechtsbündig ausrichten */
.footer .container-footer {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important; /* Schiebt den Inhalt nach rechts */
    text-align: right !important; /* Richtet den Text rechtsbündig aus */
}

/* Footer Links nach rechts*/
.footer .grid-child {
    display: flex;       /* Aktiviert Flexbox */
    flex-direction: row; /* Standard: Elemente werden nebeneinander platziert */
    justify-content: end !important; /* Schiebt Inhalt nach rechts */
    gap: 10px; /* Abstand zwischen den inneren Elementen */
    align-items: center; /* Vertikale Zentrierung der Inhalte */
}

.metismenu.mod-menu .metismenu-item {
    display: inline-block;
}

.metismenu.menu-horizontal {
    margin: 0px 0px 40px 0px;
}

@media (max-width: 768px) {
  .metismenu.menu-horizontal {
    margin: 0px 0px 80px 0px;
    padding: 10px 0px 0px 0px;
 }
}

/* --- 5. BUTTONS ANPASSEN --- */
/* Primäre Buttons (z.B. Absenden) */
.btn-primary {
    background-color: var(--cassiopeia-color-primary);
    border-color: var(--cassiopeia-color-primary);
    border-radius: 4px; /* Abgerundete Ecken */
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--cassiopeia-color-hover);
}

/* -- Hamburger Menu -- */
/* Change the color of the Hamburger Menu */
.container-header .navbar-toggler {
    color: #F5D033; /* Farbe Hamburger FFFFBF*/
    border: 1px solid #0088cc;
}

/* Menüpunkte linksbündig */
.navbar-collapse.show .navbar-nav {
    text-align: left;
    align-items: flex-start;
}

/* Tabellen responsive */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: block;
}

.table-responsive table {
  width: 100%;
  border-collapse: collapse;
}

/* ==========================================================================
   MENU - HOME
   ========================================================================== */
/* ---------- Bereich Home ---------- */
.welcome {
    text-align: center;
    margin: 30px auto;
}

.welcome-logo img {
    display: block;
    margin: 20px auto;
}

/* Sanfter Hover-Effekt für das Willkommens-Logo */
.welcome-logo img {
  display: block;
  margin: 20px auto;
  transition: transform 0.25s ease;
}

.welcome-logo img:hover {
  transform: scale(1.08); /* etwas stärker */
}

/* ==========================================================================
   MENU - DIE-CORPS
   ========================================================================== */
/* ---------- Bereich Die Corps - Wappen ---------- */
.corps-wappen {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: left;
    align-items: left;
    margin: 20px 0;
}

.corps-wappen a {
    display: block;
}

.corps-wappen img {
    max-width: 110px;
    height: auto;
    display: block;
    transition: transform 0.15s ease-in-out;
}

.corps-wappen img:hover {
    transform: scale(1.05);
}

/* Corps in Boxen */
.wappen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.wappen-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  padding: 1rem;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.wappen-text {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #000;      /* <-- SCHWARZ */
  line-height: 1.2;
}

.wappen-box img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}

.wappen-box .wappen-text {
  white-space: nowrap;   /* ❗ kein Zeilenumbruch */
}

.wappen-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* ==========================================================================
   MENU - KONTAKT
   ========================================================================== */
/* ---------- Bereich Kontakt-Vorstand ---------- */
/*
.vorstand-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 16px 0 32px;
  list-style: none;
  padding: 0;
  margin-inline-start: 0;
}


.vorstand-cards .card {
  flex: 1 1 calc(50% - 20px);
  min-width: 260px;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
} 

.vorstand-cards .card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  background: #fff;
}

*/

/* ---------- Elegante Vorstand-Boxen (Variante C) ---------- */
.vorstand-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center; /* zentriert die 2 Boxen schön */
  overflow: visible; /* wichtig, falls irgendwo hidden gesetzt war */
}

.vorstand-cards .card {
  flex: 0 1 calc(50% - 24px);  /* genau 2 Boxen nebeneinander */
  min-width: 260px;
  background: #ffffff;
  border-radius: 14px;
  padding: 26px 28px;
  border: 1px solid rgba(226, 176, 7, 0.45);   /* ÄUSSERE Goldlinie */
  /* box-shadow: none; /* 0 6px 14px rgba(0,0,0,0.06) */ 
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);  /* ✨ Schatten analog zur Kontaktbox */
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; /* WICHTIG für die Innen-Linie */
  z-index: 0;
}

.vorstand-cards .card:hover {
  transform: translateY(0px); /* Minus nach oben */
  box-shadow: none; /* 0 14px 28px rgba(0,0,0,0.12) */
  border-color: #e5e5e5; /* verhindert, dass die Linie verschwindet */
  z-index: 2; /* hebt die Karte über die Nachbarn -> nichts wirkt „abgeschnitten“ */
}

/* Innen-Mini-Linie */
.vorstand-cards .card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(226, 176, 7, 0.45); /* dezentes Gold */
  border-radius: 12px;
  pointer-events: none;
  transition: border-color .25s ease;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #003366;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.card-text {
  font-size: 1.07rem;
  line-height: 1.5;
  color: #444;
}

/* Tablet-Range (optional feinjustiert): 
   lässt 2 Spalten bestehen, aber erlaubt etwas flexiblere Breiten */
@media (max-width: 1024px) {
  .vorstand-cards { gap: 20px; }
  .vorstand-cards .card { flex: 1 1 calc(50% - 20px); }
}

/* Unter 700px: 1 Spalte */
@media (max-width: 700px) {
  .vorstand-cards .card {
    flex: 1 1 100%;
    min-width: 0;        /* verhindert horizontales Scrollen */
  }
}

/* Bewegungsreduktion respektieren */
@media (prefers-reduced-motion: reduce) {
  .vorstand-cards .card {
    transition: border-color .25s ease;
  }
  .vorstand-cards .card:hover {
    transform: none;
  }
}

/* ---------- Bereich Kontakt ---------- */
.kontakt-section {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  background: #ffffff;
  width: 100%;
}

/* Kontakt-Box im Card-Stil – jetzt mit goldener Linie */
.kontakt-box {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 25px 30px;
  background: #ffffff; /* Farbe Kontakt-Box fafafa */
  border: 1px solid rgba(226, 176, 7, 0.45); /* ✨ Goldene Linie */
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);   /* Schatten */
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.kontakt-box h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #003366;
}

/* Kontakt-Mail */
.kontakt-mail {
  margin: 15px 0;
}

.kontakt-mail a {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 600;
  color: #0a2c5a; /* Schriftfarbe Email-Box 0a2c5a */
  text-decoration: none;
  padding: 8px 18px;
  border: 1px solid rgba(226, 176, 7, 0.45);    /* ✨ Goldene Linie statt blau */
  border-radius: 6px;
  background: #ffffff;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  letter-spacing: 0.3px;
}

/* Link Hover mit Goldakzent */
.kontakt-mail a:hover,
.kontakt-mail a:focus-visible {
  color: #F5D033;  /* Schriftfarbe Email-Box beim Hover fff4b0 */
  background: #0a2c5a;
  border: 1px solid rgba(226, 176, 7, 0.45);   /* ✨ Goldene Linie statt blau */
  transform: translateY(-2px);
  outline: none;
  text-decoration: none;
}

.kontakt-mail a:focus-visible {
  box-shadow: 0 0 0 3px rgba(14,110,253,0.35);
}

.kontakt-hinweis {
  font-size: 0.95rem;
  color: #555;
  margin-top: 10px;
}

/* Bewegungsreduktion */
@media (prefers-reduced-motion: reduce) {
  .vorstand-cards .card,
  .kontakt-mail a {
    transition: none;
  }

  .vorstand-cards .card:hover,
  .kontakt-mail a:hover,
  .kontakt-mail a:focus-visible {
    transform: none;
  }
}

/* Kontakt-Box Hover abgeschaltet */
.kontakt-box:hover {
  transform: none;
  box-shadow: none;
  background: #fafafa; /* Farbe Kontakt-Box #fafafa */
  border-color: rgba(226, 176, 7, 0.45); /* Gold bleibt */
}

/* Style Namen in Kontakt-Box */
.person-name {
  font-weight: 700;
  color: #0a2c5a; /* Standard-Dunkelblau */
  transition: color .2s ease;
}

.person-name:hover {
  color: #bfa66b; /* sehr softes, gedecktes Gold, kaum sichtbar */
}
