:root {

    --cassiopeia-color-primary: #3A4E89;
    --cassiopeia-color-primary: #4CA1DA;
  }
.card {
    --card-border-color: none;
  }

  @media (max-width: 767px) {
        .onlydesktop {
            display: none;
        }
    }

.card-header {
    padding: var(--card-cap-padding-y) var(--card-cap-padding-x);
    color: var(--card-cap-color);
    background-color: white(--card-cap-bg);
    border-bottom: var(--card-border-width) solid var(--card-border-color);
    margin-bottom: 0;
}


/* ==============================================
   Cassiopeia – Aufgeräumtes Artikel-Layout
   ============================================== */

/* ---------- Basis-Artikelbereich ---------- */
.com-content-article__body {
  max-width: 1000px;
  margin: 0 auto 3rem auto; /* oben 0, rechts auto, unten 3rem, links auto */
  padding: 2rem 1.5rem;
  column-count: 1;       /* Standard: einspaltig */
  column-gap: 3rem;
  line-height: 1.65;
  font-size: 1.05rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
  width: 100%;
}

/* ---------- Fallweise Zweispaltigkeit ---------- */
@media (min-width: 1200px) {
  .com-content-article__body .zweispaltig {
    column-count: 2;
    column-gap: 3rem;
  }
}

/* ---------- Grid-Container (z. B. Klassenliste) ---------- */
.klassenliste {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  max-width: 100%;
  width: 100%;
}

@media (min-width: 768px) {
  .klassenliste {
    grid-template-columns: repeat(4, 1fr);  /* feste 4 Spalten */
    gap: 5rem;
  }
}

/* ---------- Bilder, Tabellen, Zitate ---------- */
.com-content-article__body img,
.com-content-article__body table,
.com-content-article__body blockquote {
  display: block;
  margin: 1.5rem auto;
  max-width: 100%;
  border-radius: 8px;
}

/* ---------- Mobile Ansicht ---------- */
@media (max-width: 992px) {
  .com-content-article__body {
    column-count: 1;
    max-width: 100%;
    box-shadow: none;
    border-radius: 0;
    padding: 1.2rem;
  }
}

/* ---------- Links ---------- */
a {
  color: #004080;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

a:hover, a:focus {
  color: #0066cc;
  text-decoration: underline;
}

/* ---------- Buttons im Fließtext ---------- */
a.button-link {
  display: inline-block;
  padding: 4px 10px;
  margin: 5px 0;
  background: #f0f6ff;
  border: 1px solid #cce0ff;
  border-radius: 8px;
  font-weight: 500;
}

a.button-link:hover {
  background: #e0f0ff;
  border-color: #99ccff;
  text-decoration: none;
}

/* ---------- Buttons im Fließtext ---------- */
a.button-link2 {
  display: inline-block;
  padding: 4px 10px;
  margin: 5px 0;
  background: linear-gradient(90deg,rgba(58, 78, 137, 1) 0%, rgba(76, 161, 218, 1) 100%);
  border: 1px solid #cce0ff;
  border-radius: 8px;
  font-weight: 500;
}

a.button-link2:hover {
  background: #e0f0ff;
  border-color: #99ccff;
  text-decoration: none;
}

/* ---------- Float-Bilder (optional) ---------- */
.float-left {
  float: left;
  margin-right: 1rem;
  margin-bottom: 1rem;
}

/* ---------- Überschriften ---------- */
.com-content-article__body h1,
.com-content-article__body h2,
.com-content-article__body h3 {
  line-height: 1.25;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  font-weight: 600;
  color: #111;
}

.com-content-article__body h1 { font-size: 1.8rem; }
.com-content-article__body h2 { font-size: 1.5rem; }
.com-content-article__body h3 { font-size: 1.25rem; }




/* Hauptmenüpunkte (Pfeil drehen) */
.metismenu .mm-toggler[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* Hauptmenüpunkte (oberste Ebene) */
.metismenu > li > a {
  color: #fff !important;
}

/* Untermenüpunkte (Dropdowns) */
.metismenu ul a,
.metismenu ul .mm-toggler {
  color: #3A4E89 !important;
  background: transparent;
}

/* Hover-Farbe für Untermenüpunkte */
.metismenu ul a:hover,
.metismenu ul .mm-toggler:hover {
  color: #2F3E70 !important; /* leicht dunklerer Blauton */
  background-color: rgba(58, 78, 137, 0.08); /* sanfte Hintergrundbetonung */
  border-radius: 0.4em;
  transition: all 0.2s ease-in-out;
}

/* Optional: Farbe des kleinen Dropdown-Pfeils */
.metismenu ul .mm-toggler::after {
  color: #3A4E89;
}

/* Standard: Bild ausgeblendet */
.only-desktop {
  display: none;
}

/* Ab Tabletgröße (z. B. 768px) sichtbar */
@media (min-width: 768px) {
  .only-desktop {
    display: block;  /* oder flex, je nach Layout */
  }
}

  .mail-icon, .phone-icon, .teacherroom-icon {
    font-size: 1.2em;
    margin-right: 0.3em;
    vertical-align: middle;
  }

/* Alle Links im Fließtext */
a {
  color: #004080;          /* dunkles Blau, harmonisch zu seriösen Seiten */
  text-decoration: none;   /* keine Unterstreichung standardmäßig */
  font-weight: 500;        /* etwas kräftiger als normal */
  transition: all 0.2s ease;
}

a:hover, a:focus {
  color: #0066cc;          /* heller beim Hover */
  text-decoration: underline;  /* Unterstrich nur beim Hover */
}

/* Nur für spezielle Klassen wie Kontakt oder Download 
<a href="formular.pdf" class="button-link">Download Formular</a>*/

a.button-link {
  display: inline-block;
  padding: 4px 10px;
  margin-top: 5px;
  margin-bottom: 5px;
  background: #f0f6ff;   /* sehr helles Blau, kaum dominant */
  border: 1px solid #cce0ff;
  border-radius: 8px;
  font-weight: 500;
}

a.button-link:hover {
  background: #e0f0ff;
  border-color: #99ccff;
  text-decoration: none; /* keine Unterstreichung im Button */
}

/* Kontaktbox (rahmenlos, abgerundet, umgekehrter Verlauf) */
.contact-pill {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px; /* komplett rund */
  background: linear-gradient(90deg,rgba(58, 78, 137, 1) 0%, rgba(76, 161, 218, 1) 100%);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: none;
  box-shadow: 0 6px 18px rgba(26, 39, 78, 0.25);
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

/* Hover-Effekt mit Glanz */
.contact-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(26, 39, 78, 0.32);
  filter: brightness(1.15); /* leicht heller */
  color: #fefefe; /* sanft aufgehellt */
}

/* Klick-Feedback */
.contact-pill:active {
  transform: translateY(-1px);
}

/* Tastaturfokus sichtbar machen */
.contact-pill:focus {
  outline: 3px solid rgba(255, 255, 255, 0.18);
  outline-offset: 3px;
}

/* Responsives Verhalten (optional) */
@media (max-width: 480px) {
  .contact-pill {
    padding: 6px 12px;
    font-size: 14px;
  }
}

/* ===== TOPBAR ===== */
.topbar {
  display: flex;
  align-items: center;              /* Logo & Buttons vertikal zentrieren */
  justify-content: space-between;   /* Logo links, Buttons rechts */
  flex-wrap: wrap;                  /* Umbrechen bei wenig Platz */
  padding: 10px 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Linke Seite: Logo + Schriftzug */
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-left img {
  height: 50px;
  width: auto;
}

/* Rechte Seite: Kontakt & Telefonnummer */
.topbar-buttons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

/* --- Mobile Ansicht --- */
@media (max-width: 600px) {
  .topbar {
    flex-wrap: nowrap;             /* verhindert unnötige Zeilenumbrüche */
  }

  .topbar-left {
    flex: 1;                       /* Logo nimmt linke Seite ein */
  }

  .topbar-buttons {
    display: flex;
    flex-direction: column;        /* Telefonnummer unter Kontakt */
    align-items: flex-end;         /* rechtsbündig */
  }

  .topbar-buttons .contact-pill:first-child {
    order: 1;                      /* Kontakt oben */
  }

  .topbar-buttons .contact-pill:last-child {
    order: 2;                      /* Telefonnummer darunter */
  }
}

/* ===== Banner Responsive Image Map ===== */

.kooperationsbanner {
  position: relative;
  text-align: center;
  max-width: 100%;
  margin: 0 auto;
}

.kooperationsbanner img.responsive-map {
  width: 100%;
  height: auto;
  display: block;
}


/* === NEUSTE BEITRÄGE – MODERNES, RUHIGES DESIGN === */

/* Kartencontainer */
.bottom-a.card {
  border: none;
  background: none;
  margin-top: 3rem;
}

/* Überschrift */
.bottom-a.card .card-header {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--igs-blue-dark, #1e4d8b);
  background: transparent;
  border-bottom: none;
  margin-bottom: 0rem;
}

/* UL-Container (Grid-Layout) */
.mod-articles-items.mod-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Einzelne Karte */
.mod-articles-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Hover-Effekt – subtil und ruhig */
.mod-articles-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Bild */
.mod-articles-item figure {
  margin: 0;
  line-height: 0;
}

.mod-articles-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 10px;
}

/* Titel */
.mod-articles-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.8rem 1rem 0.4rem;
}

.mod-articles-title a {
  color: var(--igs-blue-dark, #1e4d8b);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mod-articles-title a:hover {
  color: var(--igs-blue-light, #4da6ff);
}

/* Beschreibungstext */
.mod-articles-item-content p {
  color: #333;
  line-height: 1.5;
  margin: 0 1rem 0.8rem;
}

/* "Weiterlesen"-Button */
.mod-articles-item .readmore {
  margin-top: auto;
  padding: 0 1rem 1rem;
}

.mod-articles-item .readmore a {
  display: inline-block;
  background: var(--igs-blue-light, #4da6ff);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.35rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
}

.mod-articles-item .readmore a:hover {
  background: var(--igs-blue-dark, #1e4d8b);
}

/* Mobile: Abstand & Schrift anpassen */
@media (max-width: 768px) {
  .mod-articles-items.mod-articles-grid {
    gap: 1rem;
  }

  .mod-articles-title {
    font-size: 1rem;
  }

  .mod-articles-item .readmore a {
    font-size: 0.85rem;
  }
}


/* Kennzeichnung externer Links */
a[href^="http"]:not([href*="igsaurich.de"])::after {
  content: " (extern)";
  font-size: 0.9em;
  margin-left: 2px;
  color: #666;
}

/* Externe Links markieren 
a[href^="http"]:not([href*="igsaurich.de"])::after {
  content: "";
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-left: 0.3em;
  background-image: url("../images/icons/icons8-external-link.svg");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: text-bottom;
}*/