/*
Theme Name: Netzwerk Bildung und Familie
Theme URI: https://bildungundfamilie.ch
Author: Andreas Wyss
Author URI: https://socialthink.ch
Description: Ein WordPress-Theme für das Netzwerk
Version: 0.1
*/


:root {
  /* Definiere deine neue Primärfarbe */
  --bs-primary: #AD1A73; /* Dein Farbwert */

  /* WICHTIG: Definiere auch die RGB-Version für Transparenz */
  --bs-primary-rgb: 173, 26, 115; /* R, G, B Werte deiner Farbe */

  --bs-link-hover-color: #871048; /* Beispiel: Dunklerer Pinkton */
  --bs-link-hover-color-rgb: 135, 16, 72; /* RGB für den dunkleren Ton */
}



/* ==============================
   Fonts
============================== */
@font-face {
  font-family: 'Fira Sans';
  src: url('fonts/FiraSans-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Quicksand';
  src: url('fonts/Quicksand-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Quicksand';
  src: url('fonts/Quicksand-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

/* ==============================
 General Styles
============================== */
body {
  background-color: #fff;
  font-family: 'Quicksand', sans-serif;
  font-weight: 300;
  font-size: calc(1rem + 0.1vw);
}

a {
  color: #C6027D;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

main {
  position: relative; /* Wichtig für die Positionierung der Kreise */
  overflow: visible;
}

/* ==============================
 Header Styles
============================== */
.header-top {
  background-color: #C6027D;
  color: #fff;
  font-weight: 300;
}

.header-top a {
  color: #fff !important;
  fill: #fff !important;
  text-decoration: none;
}

.header-top a:hover {
  text-decoration: underline !important;
}

.header-top .btn {
  background-color: white !important;
  border: 1px solid white !important;
  color: #C6027D !important;
}

.header-top .btn svg {
  fill: #C6027D !important;
}

.header-top .btn.btn-secondary:hover {
  background-color: #C6027D !important;
  border: 1px solid #fff !important;
  color: white !important;
}

.header-top .btn:hover svg {
  fill: white !important;
}

.header-top .dropdown-menu .dropdown-item {
  color: #C6027D !important;
}

.header-top .dropdown-menu .dropdown-item:hover {
  background-color: #C6027D !important;
  color: white !important;
  text-decoration: none;

}

.header-nav {
  background-color: #fff !important;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
}

.header-nav .navbar-brand,
.header-nav .nav-link {
  color: #C6027D !important;
}

.header-nav .nav-link:hover {
  color: #a00663 !important;
}

/* ==============================
 Typography
============================== */
h1, h2, h3 {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  font-size: calc(1.4rem + 0.8vw);
  color: #004F9F;
}

h2 {
  font-size: calc(1.2rem + 0.8vw);
  margin-top: 40px;
  margin-bottom: 20px;
  color: #515151;
}

h3 {
  font-size: calc(1.1rem + 0.3vw);
  margin-top: 30px;
  color: #515151;
}

/* ==============================
 Grid Layout Fokus
============================== */
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  z-index: 2;
}

.grid-container a.grid-item {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 150px;
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: 20px;
}
.grid-item {
  --overlay-opacity: 0.4; /* beim Hover wird’s weißer */
}
.grid-item:hover {
  --overlay-opacity: 0; /* beim Hover wird’s weißer */
}


/* Responsive Grid */
@media (max-width: 768px) {
  .grid-container {
      grid-template-columns: 2fr;
  }
}

.marker-container {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  z-index: 3;
}

.marker-text {
  background-color: white;
  color: #004F9F;;
  font-family: 'Fira Sans', sans-serif;
  font-size: 1rem;
  font-weight: bold;
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 1px 4px;
  z-index: 4;
  border-radius: 3px;
}

/* ==============================
 Margins
============================== */
.custom-margin-70 {
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .custom-margin-70 {
      margin-bottom: 20px;
  }
}

.custom-margin-40 {
  margin-bottom: 40px;
}

/* ==============================
 Buttons
============================== */
.custom-menu-link-small {
  font-size: 1.2rem;
  font-weight: bold;
  color: #a00663;
}

.floating-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 80px;
  height: 80px;
  background-color: #a00663;
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 9999;
}

.floating-btn:hover {
  background-color: #7a004a;
}

.floating-btn svg {
  width: 40px;
  height: 40px;
  fill: white;
}

/* Responsive Floating Button */
@media (max-width: 768px) {
  .floating-btn {
      bottom: 20px;
      right: 20px;
      width: 60px;
      height: 60px;
  }
}

/* ==============================
 Map
============================== */
#map {
  height: 450px;
}

.leaflet-attribution-flag {
  display: none !important;
}

#titel-karte {
  position: absolute;
  width: 80%;
  top: 5px;
  left: 5px;
  z-index: 1000;
  padding: 5px;
  border-radius: 5px;

      /* Standardzustand: Sichtbar */
      opacity: 1;

      /* Übergang für das WIEDER ERSCHEINEN (wenn Hover endet) */
      transition-property: opacity;
      transition-duration: 0.5s; /* Dauer des Einblendens */
      transition-timing-function: ease-in;
      /* HIER IST DIE VERZÖGERUNG, BIS ES WIEDER KOMMT: */
      transition-delay: 10s; /* Wartet 1 Sekunde, bevor es wieder einblendet */
}

#titel-karte:hover {
  opacity: 0;

      /* Übergang für das AUSBLENDEN (beim Hovern) */
      transition-property: opacity;
      transition-duration: 0.3s; /* Dauer des Ausblendens */
      transition-timing-function: ease-out;
      /* Keine Verzögerung beim Ausblenden gewünscht */
      transition-delay: 0s;


}






/* ==============================
 Modals
============================== */
@media (min-width: 768px) {
  .modal-dialog {
      max-width: 800px;
  }

  .modal.show .modal-dialog {
      display: flex;
      align-items: center;
      justify-content: top;
      min-height: 100vh;
  }
}


/* ==============================
 Projekte Archiv laufend
============================== */


.project-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #C6027D;
  margin-bottom: 20px;
  background: white;
  border-radius: 22px;
}

.tile-header {
  background: white;
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #C6027D;
  border-radius: 20px 20px 0 0;
}

.tile-header img {
  max-height: 50px;
  max-width: 100%;
}

.tile-content {
  background: #C6027D;
  color: white;
  padding: 20px;
  text-align: left;
  transition: background 0.2s ease-in-out;
  border-radius: 0 0 20px 20px;
}


.tile-content p {
  margin-bottom: 0;
}

.project-tile:hover {
  text-decoration: none;
}

.project-tile:hover .tile-content {
  background: #94025E; /* Dunklere Variante von #009982 */
}


/* ==============================
 Projekte Archiv abgeschlossen
============================== */


.project-tile-abgeschlossen {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 2px solid #7a7a7a;
  margin-bottom: 20px;
  background: white;
  border-radius: 22px;
}

.tile-header-abgeschlossen {
  background: white;
  padding: 15px;
  text-align: center;
  border-bottom: 2px solid #7a7a7a;
  border-radius: 20px 20px 0 0;
}

.tile-header-abgeschlossen img {
  max-height: 50px;
  max-width: 100%;
}

.tile-content-abgeschlossen {
  background: #7a7a7a;
  color: white;
  padding: 20px;
  text-align: left;
  transition: background 0.2s ease-in-out;
  border-radius: 0 0 20px 20px;
}


.tile-content-abgeschlossen p {
  margin-bottom: 0;
}

.project-tile-abgeschlossen:hover {
  text-decoration: none;
}

.project-tile-abgeschlossen:hover .tile-content-abgeschlossen {
  background: #6e6e6e;
}

.grecaptcha-badge {
  visibility: hidden !important;
}


.berater-bild {
  width: 150px;  /* Gewünschte Breite */
  height: 150px; /* Gewünschte Höhe (gleich wie Breite für einen Kreis) */
  object-fit: cover; /* Stellt sicher, dass das Bild den Bereich ausfüllt, ohne verzerrt zu werden */
}


/* ==============================
 Menu
============================== */

.menu-item-desk {
  border: 2px solid #94025E; /* Dicke, Stil (solid, dashed, dotted), Farbe */
  border-radius: 20px; /* Radius der Ecken - passe den Wert (in px, em, %) an */
  padding: 2px 5px; /* Oben/Unten 5px, Links/Rechts 10px */
  display: inline-block; 
  text-decoration: none;
  margin: 0 5px; /* Kein Oben/Unten-Abstand, 5px Links/Rechts-Abstand */
}
/* Grundstile für den Link selbst */
.menu-item-desk a.nav-link { /* Selektor zielt auf das a mit Klasse nav-link */
  text-decoration: none;
  color: #94025E;        /* Standard-Textfarbe (passend zum Rahmen) */
  display: inline-block; /* Stellt sicher, dass der Link Platz einnimmt */

}

/* Hover-Effekt für den Container (li) */
.menu-item-desk:hover {
  background-color: #94025E; 
  border-color: #94025E;     
}

/* Hover-Effekt für den Link (a) INNEN, wenn der Container (li) gehovert wird */
.menu-item-desk:hover a.nav-link { /* Dieser Selektor ist entscheidend */
  color: white !important;  /* Setzt die Textfarbe des Links auf weiß */
}

.menu-item-small {
  border: 2px solid #94025E; /* Dicke, Stil (solid, dashed, dotted), Farbe */
  border-radius: 20px; /* Radius der Ecken - passe den Wert (in px, em, %) an */
  padding: 5px 10px; /* Oben/Unten 5px, Links/Rechts 10px */
  text-decoration: none;
  margin: 10px; /* Kein Oben/Unten-Abstand, 5px Links/Rechts-Abstand */
}
/* Grundstile für den Link selbst */
.menu-item-small a.nav-link { /* Selektor zielt auf das a mit Klasse nav-link */
  text-decoration: none;
  color: #94025E;        /* Standard-Textfarbe (passend zum Rahmen) */
  display: inline-block; /* Stellt sicher, dass der Link Platz einnimmt */

}

/* Hover-Effekt für den Container (li) */
.menu-item-small:hover {
  background-color: #94025E; 
  border-color: #94025E;     
}

/* Hover-Effekt für den Link (a) INNEN, wenn der Container (li) gehovert wird */
.menu-item-small:hover a.nav-link { /* Dieser Selektor ist entscheidend */
  color: white !important;  /* Setzt die Textfarbe des Links auf weiß */
}

.menu-item-small-2 {
  border: 0px solid #94025E; /* Dicke, Stil (solid, dashed, dotted), Farbe */
  border-radius: 20px; /* Radius der Ecken - passe den Wert (in px, em, %) an */
  padding: 0px 10px; /* Oben/Unten 5px, Links/Rechts 10px */
  text-decoration: none;
  margin: 0px 10px; /* Kein Oben/Unten-Abstand, 5px Links/Rechts-Abstand */
  font-weight: normal !important;
}
/* Grundstile für den Link selbst */
.menu-item-small-2 a.nav-link { /* Selektor zielt auf das a mit Klasse nav-link */
  text-decoration: none;
  color: #94025E;        /* Standard-Textfarbe (passend zum Rahmen) */
  display: inline-block; /* Stellt sicher, dass der Link Platz einnimmt */

}

/* Hover-Effekt für den Container (li) */
.menu-item-small-2:hover {
  background-color: #94025E; 
  border-color: #94025E;     
}

/* Hover-Effekt für den Link (a) INNEN, wenn der Container (li) gehovert wird */
.menu-item-small-2:hover a.nav-link { /* Dieser Selektor ist entscheidend */
  color: white !important;  /* Setzt die Textfarbe des Links auf weiß */
}

.nav-link {
  display: flex !important; /* Stellt die direkten Kinder (SVG und Text) in eine Reihe */
  align-items: center; /* Zentriert die Kinder vertikal */
  gap: 5px; /* Optional: Fügt einen kleinen Abstand zwischen Icon und Text hinzu */
}

.nav-link svg {
  width: 25px; /* Oder eine andere passende Größe */
  height: 25px; /* Oder eine andere passende Größe */
  flex-shrink: 0; /* Verhindert, dass das SVG schrumpft, wenn der Platz knapp wird */
}

/* ==============================
 Grundlagen
============================== */

/* Definiere die Klasse für deine Pillen-Links */
.custom-pill-link {
  /* Farben im Normalzustand */
  border: 1px solid #C6027D; /* Rahmenfarbe */
  color: #C6027D;           /* Textfarbe */
  background-color: transparent; /* Kein Hintergrund */
  border-radius: 50rem;     /* Sehr runder Rand für Pillenform */
  padding: 0.25rem 1rem;    /* Innenabstand (ca. py-1 px-3) */
  font-size: calc(0.75rem + 0.1vw);

  /* Weitere Styles (ersetzt d-inline-block, text-decoration-none) */
  display: inline-block;
  text-decoration: none !important;

  /* Übergang für einen sanften Effekt */
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

/* Hover-Zustand für die Klasse */
.custom-pill-link:hover {
  background-color: #C6027D; /* Hintergrundfarbe beim Hover */
  color: #FFFFFF;           /* Textfarbe weiß beim Hover */
  /* Der Rahmen bleibt, aber man sieht ihn wegen des Hintergrunds nicht mehr */
}


/* Standardmässig (eingeklappt): Plus anzeigen, Minus verstecken */
button[aria-expanded="false"] .icon-toggle.plus {
  display: inline-block;
}
button[aria-expanded="false"] .icon-toggle.minus {
  display: none;
}

/* Wenn ausgeklappt: Plus verstecken, Minus anzeigen */
button[aria-expanded="true"] .icon-toggle.plus {
  display: none;
}
button[aria-expanded="true"] .icon-toggle.minus {
  display: inline-block;
}

/* Optional: Grundstyling für den Button, falls btn-link verwendet wird */
.btn-link {
    /* Optional: Farbe anpassen */
    /* color: #0d6efd; */
    display: inline-flex; /* Sorgt für korrekte Ausrichtung von Text und Icon */
    align-items: center; /* Vertikale Zentrierung von Text und Icon */
}
.icon-toggle {
    vertical-align: middle; /* Stellt sicher, dass Icons gut mit dem Text ausgerichtet sind */
}


.pill {
  /* Grundlegende Pillen-Form */
  display: inline-block; /* Wichtig, damit Padding korrekt angewendet wird */
  padding: 5px 15px;     /* Innenabstand (oben/unten, links/rechts) */
  border-radius: 9999px; /* Sehr hoher Wert für vollständig abgerundete Ecken */
  
  /* Standardfarben (anpassbar) */
  background-color: #C6027D; /* Helles Grau als Hintergrund */
  color: #FFFFFF;            /* Dunkler Text */
}


button.btn-link[data-bs-toggle="collapse"] {
  justify-content: flex-start; /* oder left */
  text-align: left; /* Sicherstellen, dass auch Text so ausgerichtet wird */
}
button.btn-link[data-bs-toggle="collapse"] h3 {
   text-align: left; /* Explizit für die H3 */
}


/* ==============================
 Suchformular
============================== */

.form-floating > .form-control:focus,
        .form-floating > .form-control:not(:placeholder-shown) {
          border-color: #C6027D;
          box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(0, 0, 0, 0.6); /* Optional: Schatten anpassen */
        }

        .form-floating > .form-control {
            border: 3px solid #C6027D;
        }

        /* Anpassung der Farbe des Floating Labels, wenn aktiv/fokussiert */
        .form-floating > .form-control:focus ~ label,
        .form-floating > .form-control:not(:placeholder-shown) ~ label {
            color: #C6027D; /* Farbe des Labels, wenn aktiv */
        }

        /* Stellt sicher, dass das Floating Label korrekt über dem Input Group Button liegt */
        .input-group .form-floating {
            flex-grow: 1; /* Erlaubt dem Floating Label, den verfügbaren Platz einzunehmen */
        }

        /* Korrektur für den rechten Rand des Inputs, wenn ein Button folgt */
        .input-group > .form-floating:not(:last-child) > .form-control {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
        }

        /* Korrektur für den linken Rand des Buttons, wenn er einem Input folgt */
        .input-group > .btn:not(:first-child) {
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
        }

        .suchbutton {
          color: white;
          background-color: #C6027D;
          border: 3px solid #C6027D;
        }
        .suchbutton:hover {
          color: #C6027D;
          background-color: white;
          border: 3px solid #C6027D;
        }

/* ==============================
 Gelbe Boxen
============================== */

.gelbe-box {
  background-color: #FFE680; /* Deine ursprüngliche Farbe */
  padding: 1rem;             /* Entspricht p-3 in Bootstrap (typischerweise 1rem) */
  border-radius: 20px;
}

/* ==============================
 Dokumente
============================== */

.document-thumbnail-inline img {
  max-width: 150px; /* Breite des Thumbnails anpassen */
  height: auto;     /* Höhe automatisch anpassen, um Proportionen beizubehalten */
}

a.card-link,
a.card-link:hover,
a.card-link:focus {
  text-decoration: none !important;
  color: #C6027D !important;
}

.card {
  height: 100%; /* Stellt sicher, dass Karten in einer Reihe gleich hoch sind */
  text-decoration: none;
  color: #C6027D;
}

/* ==============================
 Button
============================== */

.btn-netzwerk {
  color: white;
  background-color: #C6027D;
  border: 3px solid #C6027D;
  text-decoration: none !important;
}
.btn-netzwerk:hover {
  color: #C6027D;
  background-color: white;
  border: 3px solid #C6027D;
}

.btn-netzwerk-neg {
  color: white;
  background-color: grey;
  border: 3px solid grey;
  text-decoration: none !important;
}
.btn-netzwerk-neg:hover {
  color: grey;
  background-color: white;
  border: 3px solid grey;
}

