﻿/* =========================================================
   BRG14 SONDERSEITEN
   ---------------------------------------------------------
   Speziallayouts für:
   - Direktion & Administration
   - Sekretariat & Verwaltung
   - Schulärztin
   - Schulpsychologin & Jugendcoaching
   - Downloads
   - Erasmus+
   - Tagesbetreuung
   - Bibliothek

   Verwendet globale Systeme aus:
   - base.css
   - typography.css
   - components.css

   NICHT zuständig für:
   - globale Kartenbasis
   - globale Links
   - globale Typografie
   - globale Grid-Basis
   ========================================================= */





/* =========================================================
   Linke Stack-Spalte
   Kontakt oben, QR-/Logo-Kastl darunter
   ========================================================= */

.brg14-left-stack {
  display: grid;
  gap: 42px;
  align-content: start;
}


/* =========================================================
   TABS
   ---------------------------------------------------------
   Verwendet bei:
   - Schulpsychologin & Jugendcoaching
   - Erasmus+
   ========================================================= */

.brg14-tabs {
  width: 100%;
}

.brg14-tabs > input[type="radio"] {
  position: absolute;

  opacity: 0;
  pointer-events: none;
}

.brg14-tabs-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;

  margin-bottom: 24px;
  padding: 4px;

  border: 1px solid rgba(7, 30, 66, 0.40);
  border-radius: 10px;

  background: #FFFFFF;
}

.brg14-tabs-switch label {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 180px;
  min-height: 42px;

  padding: 10px 30px;

  border-radius: 10px;

  color: #071E42;

  cursor: pointer;
  user-select: none;

  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

#tab-psy:checked ~ .brg14-tabs-switch label[for="tab-psy"],
#tab-jugend:checked ~ .brg14-tabs-switch label[for="tab-jugend"],
#tab-erasmus-info:checked ~ .brg14-tabs-switch label[for="tab-erasmus-info"],
#tab-erasmus-schueler:checked ~ .brg14-tabs-switch label[for="tab-erasmus-schueler"],
#tab-erasmus-lehrer:checked ~ .brg14-tabs-switch label[for="tab-erasmus-lehrer"] {
  background: #071E42;
  color: #FFFFFF;

  box-shadow: none;
}

.brg14-tabs-panel {
  display: none;
}

#tab-psy:checked ~ .brg14-tabs-panels .brg14-tabs-panel-psy,
#tab-jugend:checked ~ .brg14-tabs-panels .brg14-tabs-panel-jugend,
#tab-erasmus-info:checked ~ .brg14-tabs-panels .brg14-erasmus-panel-info,
#tab-erasmus-schueler:checked ~ .brg14-tabs-panels .brg14-erasmus-panel-schueler,
#tab-erasmus-lehrer:checked ~ .brg14-tabs-panels .brg14-erasmus-panel-lehrer {
  display: block;
}


/* =========================================================
   BERATUNGSSEITEN:
   Hinweis-/Infoboxen
   ========================================================= */

.brg14-service-note {
  margin: 0 0 18px;
  padding: 12px 14px;

  border: 1px solid var(--brg14-border);
  border-radius: 12px;

  background: var(--brg14-bg-soft);
  color: var(--brg14-muted);
}

.brg14-service-note p:last-child {
  margin-bottom: 0;
}

.brg14-service-note + .brg14-kicker {
  margin-top: 26px;
}


/* =========================================================
   Beratungsseiten:
   hervorgehobener Leistungsbereich
   ========================================================= */

.brg14-highlight-box {
  padding: 18px 20px;

  border: 1px solid #F0C98A;
  border-radius: 16px;

  background:
    linear-gradient(
      to bottom,
      #FFF5E8,
      #FFF0D9
    );
}


/* =========================================================
   Beratungsseiten:
   Karteninterne Medienfläche
   ========================================================= */

.brg14-consult-card {
  display: grid;
  gap: 80px;
}

.brg14-consult-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--brg14-card-gap);
  align-items: start;
}

.brg14-consult-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px var(--brg14-card-gap);
  align-items: center;
}


/* =========================================================
   QR-/Logo-Kastl
   ========================================================= */

.brg14-consult-logo-left img,
.brg14-consult-logo-right img {
  max-height: 120px;
  max-width: 260px;

  width: auto;
  height: auto;

  object-fit: contain;
}

.brg14-consult-media-box {
  justify-self: start;

  display: inline-grid;
  gap: 18px;

  width: fit-content;
  max-width: 100%;

  padding: 18px;

  border: 1px solid var(--brg14-border);
  border-radius: 16px;

  background: #FAFAFA;
}

.brg14-service-media-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 34px;
}

.brg14-service-qr-item {
  text-align: center;
}

.brg14-service-qr-item img {
  display: block;

  width: 96px;
  height: 96px;

  margin: 0 auto 10px;

  object-fit: contain;
}

.brg14-service-qr-item span {
  display: block;

  max-width: 170px;

  color: var(--brg14-muted);
}


/* =========================================================
   Rahmenlose Logos unten
   ========================================================= */

.brg14-consult-logo-left,
.brg14-consult-logo-right {
  display: flex;
  align-items: center;

  min-height: 74px;
}

.brg14-consult-logo-left {
  justify-content: flex-start;
}

.brg14-consult-logo-right {
  justify-content: flex-start;
}

.brg14-media-logo-img {
  display: block;

  width: auto;
  max-width: 100%;

  object-fit: contain;
}

.brg14-logo-bildungsdirektion {
  width: auto;
  height: 50px;
}

.brg14-logo-schulpsychologie {
  width: auto;
  height: 90px;
}


/* =========================================================
   Jugendcoaching spezifisch
   ========================================================= */

.brg14-logo-income,
.brg14-logo-qr-whatsapp {
  width: auto;
  height: 96px;

  object-fit: contain;
}

.brg14-logo-dummy {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 300px;
  max-width: 100%;
  min-height: 64px;

  border: 1px dashed #CBD5E1;
  border-radius: 12px;

  background: #FFFFFF;
  color: var(--brg14-muted);
}


/* =========================================================
   DOWNLOAD-SEITE
   ---------------------------------------------------------
   Layout-/Abschnittslogik der Downloadseite.

   Die eigentliche Downloadlisten-Komponente liegt in:
   - components.css

   Verwendete globale Komponenten:
   - .brg14-download-list
   - .brg14-download-inline
   ========================================================= */

.brg14-download-group {
  margin-bottom: 52px;
  padding-top: 8px;

  border-top: 1px solid #D3DCE8;
}

.brg14-download-group:first-of-type {
  padding-top: 0;

  border-top: none;
}

.brg14-download-group:last-child {
  margin-bottom: 0;
}

.brg14-download-group h2 {
  margin-bottom: 18px;
}

.brg14-download-group h3 {
  margin-top: 30px;
  margin-bottom: 14px;
}

.brg14-download-group .brg14-download-inline-label {
  white-space: nowrap;
}


/* =========================================================
   ERASMUS+
   ========================================================= */

.brg14-erasmus-page {
  width: 100%;
}

.brg14-erasmus-page .brg14-tabs-switch {
  grid-template-columns: repeat(3, minmax(0, 1fr));

  margin-bottom: 36px;
}

.brg14-erasmus-page .brg14-tabs-switch label {
  min-width: 180px;
}

.brg14-erasmus-section {
  padding: 46px 0;

  border-top: 1px solid #D3DCE8;
}

.brg14-erasmus-section:first-child {
  padding-top: 0;

  border-top: none;
}

.brg14-erasmus-logo {
  display: block;

  width: 286px;
  max-width: 100%;
  height: auto;

  margin-bottom: 28px;
}

.brg14-erasmus-lead {
  max-width: 900px;

  color: #444B5C;
}

.brg14-erasmus-card-grid {
  display: grid;
  gap: 22px;

  margin-top: 22px;
}

.brg14-erasmus-card-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.brg14-erasmus-card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brg14-erasmus-card {
  padding: 22px;

  border: 1px solid var(--brg14-border);
  border-radius: 18px;

  background: #FFFFFF;

  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.04);
}

.brg14-erasmus-card h3 {
  margin-top: 0;
}

.brg14-erasmus-card p:last-child {
  margin-bottom: 0;
}

.brg14-erasmus-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;

  margin-top: 22px;
}

.brg14-erasmus-preview-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  min-height: 156px;
  padding: 18px;

  border: 1px solid var(--brg14-border);
  border-radius: 18px;

  background: #FFFFFF;
  color: inherit;

  text-decoration: none !important;

  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.04);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.brg14-erasmus-preview-card:hover {
  transform: translateY(-2px);

  border-color: #C9D6E3;

  box-shadow:
    0 14px 32px rgba(15, 23, 42, 0.08);
}

.brg14-erasmus-preview-card span {
  display: block;

  margin-bottom: 8px;

  color: #7A5C1E;
}

.brg14-erasmus-preview-card strong {
  display: block;

  color: #2E5D8E;
}

.brg14-erasmus-preview-card small {
  display: block;

  margin-top: 18px;

  color: var(--brg14-muted);
}

.brg14-erasmus-all {
  margin-top: 24px;
}

.brg14-erasmus-posts {
  margin-top: 22px;
}

.brg14-erasmus-post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.brg14-erasmus-post-card {
  overflow: hidden;
  padding: 0;

  border: 1px solid var(--brg14-border);
  border-radius: 18px;

  background: #FFFFFF;

  box-shadow:
    0 8px 24px rgba(15, 23, 42, 0.035);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.brg14-erasmus-post-card:hover {
  transform: translateY(-2px);

  border-color: #C8B185;

  box-shadow:
    0 14px 34px rgba(15, 23, 42, 0.07);
}

.brg14-erasmus-post-link {
  display: grid;
  height: 100%;

  color: #071E42;

  text-decoration: none !important;
}

.brg14-erasmus-post-link {
  align-content: start;

  padding: 18px;
}

.brg14-erasmus-post-date {
  display: block;
  margin: 0;

  color: var(--brg14-blue);
}

.brg14-erasmus-post-date::after {
  display: none;
}

.brg14-erasmus-post-title {
  margin: 0;

  color: #071E42;
}

.brg14-erasmus-post-arrow {
  display: block;

  margin-top: 12px;

  color: #9A7725;

  transition: transform 0.18s ease;
}

.brg14-erasmus-post-card:hover .brg14-erasmus-post-arrow {
  transform: translateX(4px);
}

.brg14-erasmus-post-accordion {
  margin-top: 24px;
}

.brg14-erasmus-post-list {
  display: grid;
  gap: 0;

  font-family: "Poppins", sans-serif !important;
}

.brg14-erasmus-post-list-link {
  display: block;

  padding: 9px 0 13px;

  border-bottom: 1px solid #EEF2F6;

  color: #2768B7;
  font-family: "Poppins", sans-serif !important;
  text-decoration: none !important;
}

.brg14-erasmus-post-list-link:last-child {
  border-bottom: none;
}

.brg14-erasmus-team {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}

.brg14-erasmus-team img {
  display: block;

  width: 100%;
  height: auto;

  border-radius: 18px;
}

.brg14-erasmus-disclaimer {
  margin-top: 34px;
  padding: 18px 20px;

  border: 1px solid var(--brg14-border);
  border-radius: 16px;

  background: #FAFAFA;
}

.brg14-erasmus-disclaimer p {
  margin: 0;

  color: var(--brg14-muted);
}


/* =========================================================
   TAGESBETREUUNG
   ========================================================= */

.brg14-care-page .brg14-page-section {
  padding: 46px 0;

  border-top: 1px solid #D3DCE8;
}

.brg14-care-page .brg14-page-section:first-child {
  padding-top: 0;

  border-top: none;
}

.brg14-care-page .brg14-page-section > h2 {
  margin-top: 0;
  margin-bottom: 18px;
}

.brg14-care-page .brg14-page-section > p {
  margin-top: 0;
  margin-bottom: 22px;
}
/* =========================================================
   Tagesbetreuung:
   Vergleichskarten mit Fußbereich / Ansprechperson
   ---------------------------------------------------------
   NUR hier gibt es einen Trennstrich vor der Ansprechperson.
   Personen-/Kontaktkarten auf anderen Seiten bekommen
   ausdrücklich KEINEN automatischen Trennstrich.
   ========================================================= */
/* =========================================================
   INLINE-INFO
   ========================================================= */

.brg14-inline-info {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.brg14-circle-badge {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  border: 1px solid var(--brg14-border);
  border-radius: 999px;

  background: #FFFFFF;
  color: var(--brg14-blue, #2E5D8E);

  flex-shrink: 0;
}

.brg14-inline-info h3 {
  margin-top: 0;
  margin-bottom: 6px;
}

.brg14-inline-info p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   BIBLIOTHEK
   ========================================================= */

.brg14-bib {
  display: grid;
  gap: 34px;

  color: #071E42;
}

.brg14-bib,
.brg14-bib * {
  box-sizing: border-box;
}

.brg14-bib-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;

  margin-bottom: clamp(28px, 3vw, 42px);
}

.brg14-bib-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.85fr);
  column-gap: clamp(34px, 8vw, 120px);
  align-items: start;

  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brg14-bib-contact-main {
  grid-column: 1;
}

.brg14-bib-contact-main h2,
.brg14-bib-contact-main h3 {
  margin-bottom: 24px;
}

.brg14-bib-contact-aside {
  grid-column: 2;
  padding-top: 54px;
}

.brg14-bib-contact p {
  margin: 0;

  color: var(--brg14-text);
}

.brg14-bib-contact-main p + p {
  margin-top: 24px;
}

.brg14-bib-contact-aside > .brg14-download-inline {
  margin-top: 0;
}

.brg14-bib-contact-aside > .brg14-download-inline:has(.brg14-download-inline-icon) {
  margin-top: 0;
}

.brg14-bib-contact-aside .brg14-download-inline:has(.brg14-download-inline-icon) {
  margin-top: 0;
}

.brg14-bib-contact p:last-child {
  margin-bottom: 0;
}

.brg14-bib-contact strong {
  color: #071E42;
}

.brg14-bib-contact a {
  color: var(--brg14-blue);
  text-decoration: none;
}

.brg14-bib-contact a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.brg14-bib-contact .brg14-download-inline a {
  color: #071E42;
  font-weight: 800;
}

.brg14-bib-contact .brg14-download-inline a:hover,
.brg14-bib-contact .brg14-download-inline a:focus-visible {
  color: #2E5D8E;
  text-decoration: none;
}

.brg14-bib .brg14-download-inline {
  margin-top: 30px;
  margin-bottom: 34px;
}

.brg14-bib-hours {
  overflow: hidden;
}

.brg14-bib-view-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;

  margin: 0 0 22px;
  padding: 4px;

  border: 1px solid #B8C3D1;
  border-radius: 16px;

  background: #F7FAFD;
}

.brg14-bib-view-switch button {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 150px;
  min-height: 40px;
  padding: 0 20px;

  border: 0;
  border-radius: 12px;

  background: transparent;
  color: var(--brg14-muted);

  font-family: "Poppins";
  font-weight: 700;
  cursor: pointer;
}

.brg14-bib-view-switch button.is-active {
  background: #FFFFFF;
  color: #071E42;

  box-shadow:
    inset 0 0 0 1px rgba(26, 43, 60, 0.10),
    0 8px 24px rgba(15, 23, 42, 0.08);
}

.brg14-segment-switch,
.brg14-tabs-switch,
.brg14-bib-view-switch {
  gap: 4px;
  padding: 4px;

  border: 1px solid rgba(7, 30, 66, 0.40);
  border-radius: 10px;

  background: #FFFFFF;
}

.brg14-segment-switch a,
.brg14-segment-switch button,
.brg14-segment-switch label,
.brg14-tabs-switch label,
.brg14-bib-view-switch button {
  border-radius: 10px;
  color: #071E42;
  font-weight: 700;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.brg14-segment-switch a:hover,
.brg14-segment-switch button:hover,
.brg14-segment-switch label:hover,
.brg14-tabs-switch label:hover,
.brg14-bib-view-switch button:hover {
  background: rgba(46, 93, 142, 0.08);
  color: #2E5D8E;
}

.brg14-segment-switch a.is-active,
.brg14-segment-switch button.is-active,
.brg14-bib-view-switch button.is-active,
#tab-psy:checked ~ .brg14-tabs-switch label[for="tab-psy"],
#tab-jugend:checked ~ .brg14-tabs-switch label[for="tab-jugend"],
#tab-erasmus-info:checked ~ .brg14-tabs-switch label[for="tab-erasmus-info"],
#tab-erasmus-schueler:checked ~ .brg14-tabs-switch label[for="tab-erasmus-schueler"],
#tab-erasmus-lehrer:checked ~ .brg14-tabs-switch label[for="tab-erasmus-lehrer"] {
  background: #071E42;
  color: #FFFFFF;

  box-shadow: none;
}

.brg14-segment-switch a.is-active:hover,
.brg14-segment-switch button.is-active:hover,
.brg14-bib-view-switch button.is-active:hover,
#tab-psy:checked ~ .brg14-tabs-switch label[for="tab-psy"]:hover,
#tab-jugend:checked ~ .brg14-tabs-switch label[for="tab-jugend"]:hover,
#tab-erasmus-info:checked ~ .brg14-tabs-switch label[for="tab-erasmus-info"]:hover,
#tab-erasmus-schueler:checked ~ .brg14-tabs-switch label[for="tab-erasmus-schueler"]:hover,
#tab-erasmus-lehrer:checked ~ .brg14-tabs-switch label[for="tab-erasmus-lehrer"]:hover {
  background: #2E5D8E;
  color: #FFFFFF;
}

.brg14-bib-hours-header {
  max-width: 760px;
  margin-bottom: 22px;
}

.brg14-bib-hours-header p {
  margin: 0;

  color: var(--brg14-muted);
}

.brg14-bib-table-wrap {
  overflow-x: auto;
}

.brg14-bib-table {
  width: 100%;
  min-width: 760px;

  border-collapse: separate;
  border-spacing: 0;

  color: var(--brg14-text);
}

.brg14-bib-table th {
  padding: 14px;

  border-bottom: 1px solid #B8C3D1;

  color: #071E42;

  text-align: left;
  white-space: nowrap;
}

.brg14-bib-table td {
  padding: 13px 14px;

  border-bottom: 1px solid #D3DCE8;

  vertical-align: middle;
}

.brg14-bib-table tr:last-child td {
  border-bottom: 0;
}

.brg14-bib-table th:nth-child(n+3),
.brg14-bib-table td:nth-child(n+3) {
  text-align: center;
}

.brg14-bib-hour {
  width: 150px;

  color: #071E42;
  white-space: nowrap;
}

.brg14-bib-time {
  width: 120px;

  color: var(--brg14-muted);
  white-space: nowrap;
}

.brg14-bib-break td {
  background: #FAFAFB;
}

.brg14-bib-break .brg14-bib-hour {
  color: var(--brg14-muted);
}

.brg14-bib-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 58px;
  padding: 4px 10px;

  border-radius: 999px;

  background: #E8F2EA;
  color: #2D5A31;
}

.brg14-bib-empty {
  color: #8FA0B4;
}

.brg14-bib-mobile-hours {
  display: none;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 26px;
}

.brg14-bib-hours.is-list-view .brg14-bib-table-wrap {
  display: none;
}

.brg14-bib-hours.is-list-view .brg14-bib-mobile-hours {
  display: grid;
}

.brg14-bib-mobile-day {
  padding: 16px 0 0;
  border-top: 1px solid #D3DCE8;
}

.brg14-bib-mobile-day h3 {
  margin: 0 0 10px;

  color: #071E42;

  font-size: 1.0625rem;
  line-height: 1.35;
}

.brg14-bib-mobile-day-list {
  display: grid;
  gap: 8px;
}

.brg14-bib-mobile-slot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 12px;
  align-items: center;

  padding: 10px 12px;

  border: 1px solid #D3DCE8;
  border-radius: 12px;

  background: #FFFFFF;
}

.brg14-bib-mobile-slot span {
  color: var(--brg14-muted);

  font-size: 0.95rem;
  line-height: 1.35;
}

.brg14-bib-mobile-slot strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-width: 0;
  padding: 4px 10px;

  border-radius: 999px;

  background: #E8F2EA;
  color: #2D5A31;

  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
}

.brg14-bib-mobile-slot-break {
  background: #FAFAFB;
}

.brg14-bib-mobile-empty {
  margin: 0;
  padding: 10px 12px;

  border: 1px solid #D3DCE8;
  border-radius: 12px;

  background: #FAFAFB;
  color: #8FA0B4;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

  .brg14-erasmus-preview-grid,
  .brg14-erasmus-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 980px) {

  .brg14-consult-top,
  .brg14-consult-media {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 900px) {

  .brg14-erasmus-card-grid-2,
  .brg14-erasmus-card-grid-3,
  .brg14-erasmus-team {
    grid-template-columns: 1fr;
  }

  .brg14-erasmus-compact-list {
    columns: 1;
  }

  .brg14-erasmus-page .brg14-tabs-switch {
    display: grid;

    width: 100%;

    border-radius: 10px;
  }

  .brg14-erasmus-page .brg14-tabs-switch label {
    min-width: 0;

    border-radius: 10px;
  }
}


/* =========================================================
   KOMPAKTE KADENCE-TABS ALS SEGMENTIERTE REGLER
   - Schulpsychologin/Jugendcoaching: 2 Einträge
   - kompakte Auswahlgruppen mit genau 3 Einträgen
   ========================================================= */

.brg14-standard-tabs:has(#tab-schulpsychologin) .kt-tabs-title-list-wrap,
.brg14-standard-tabs:has(.kt-tabs-title-list > li:nth-child(3):last-child) .kt-tabs-title-list-wrap {
  margin-bottom: 2rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.brg14-standard-tabs:has(#tab-schulpsychologin) .kt-tabs-title-list,
.brg14-standard-tabs .kt-tabs-title-list:has(> li:nth-child(3):last-child) {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  gap: 3px !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 3px !important;
  border: 1px solid rgba(7, 30, 66, 0.40) !important;
  border-radius: 999px !important;
  background: #FFFFFF !important;
}

.brg14-standard-tabs:has(#tab-schulpsychologin) .kt-tabs-title-list > li,
.brg14-standard-tabs .kt-tabs-title-list:has(> li:nth-child(3):last-child) > li {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

.brg14-standard-tabs:has(#tab-schulpsychologin) .kt-tab-title,
.brg14-standard-tabs .kt-tabs-title-list:has(> li:nth-child(3):last-child) .kt-tab-title {
  justify-content: center !important;
  min-width: 150px !important;
  min-height: 44px !important;
  padding: 9px 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  line-height: 1.2 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.brg14-standard-tabs:has(#tab-schulpsychologin) .kt-tab-title-inactive .kt-tab-title,
.brg14-standard-tabs .kt-tabs-title-list:has(> li:nth-child(3):last-child) .kt-tab-title-inactive .kt-tab-title {
  background: #EEF3F8 !important;
  color: #071E42 !important;
}

.brg14-standard-tabs:has(#tab-schulpsychologin) .kt-tab-title-active .kt-tab-title,
.brg14-standard-tabs .kt-tabs-title-list:has(> li:nth-child(3):last-child) .kt-tab-title-active .kt-tab-title {
  background: #071E42 !important;
  color: #FFFFFF !important;
}


@media (max-width: 640px) {

  /* Bibliothek: mobil immer nur die kompakte Listenansicht */
  .brg14-bib-hours.has-mobile-hours .brg14-bib-view-switch,
  .brg14-bib-hours.has-mobile-hours .brg14-bib-table-wrap {
    display: none;
  }

  .brg14-bib-hours.has-mobile-hours .brg14-bib-mobile-hours {
    display: grid;
    margin-top: 0;
  }

  .brg14-grid {
    gap: 18px;
  }

  .brg14-tabs-switch {
    display: grid;

    width: 100%;

    border-radius: 10px;
  }

  .brg14-tabs-switch label {
    min-width: 0;

    border-radius: 10px;
  }

  .brg14-tabs-switch:has(label[for="tab-psy"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    padding: 3px;
    border-radius: 999px;
  }

  .brg14-tabs-switch label[for="tab-psy"],
  .brg14-tabs-switch label[for="tab-jugend"] {
    justify-content: center;
    min-height: 44px;
    padding: 8px 6px;
    border-radius: 999px;
    font-size: 0.78rem;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
  }

  .brg14-tabs-switch label[for="tab-psy"]::after,
  .brg14-tabs-switch label[for="tab-jugend"]::after {
    display: none;
    content: none;
  }

  /* Schulpsychologin/Jugendcoaching verwendet auf der Seite Kadence-Tabs. */
  .brg14-standard-tabs:has(#tab-schulpsychologin) .kt-tabs-title-list {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 3px !important;
    width: 100% !important;
    padding: 3px !important;
    border: 1px solid rgba(7, 30, 66, 0.40) !important;
    border-radius: 999px !important;
    background: #FFFFFF !important;
  }

  .brg14-standard-tabs:has(#tab-schulpsychologin) .kt-tabs-title-list > li {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    border: 0 !important;
  }

  .brg14-standard-tabs:has(#tab-schulpsychologin) .kt-tab-title {
    justify-content: center !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 8px 5px !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-size: 0.78rem !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .brg14-standard-tabs:has(#tab-schulpsychologin) .kt-tab-title-inactive .kt-tab-title {
    background: #EEF3F8 !important;
    color: #071E42 !important;
  }

  .brg14-standard-tabs:has(#tab-schulpsychologin) .kt-tab-title-active .kt-tab-title {
    background: #071E42 !important;
    color: #FFFFFF !important;
  }

  /* Mobile Tabgruppen mit genau drei Einträgen: kompakter vertikaler Regler. */
  .brg14-standard-tabs .kt-tabs-title-list:has(> li:nth-child(3):last-child) {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 3px !important;
    width: 100% !important;
    margin-bottom: 2rem !important;
    padding: 3px !important;
    border: 1px solid rgba(7, 30, 66, 0.40) !important;
    border-radius: 18px !important;
    background: #FFFFFF !important;
  }

  .brg14-standard-tabs .kt-tabs-title-list:has(> li:nth-child(3):last-child) > li {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    border: 0 !important;
  }

  .brg14-standard-tabs .kt-tabs-title-list:has(> li:nth-child(3):last-child) .kt-tab-title {
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 9px 14px !important;
    border: 0 !important;
    border-radius: 13px !important;
    font-size: 0.92rem !important;
    line-height: 1.2 !important;
    text-align: left !important;
  }

  .brg14-standard-tabs .kt-tabs-title-list:has(> li:nth-child(3):last-child) .kt-tab-title-inactive .kt-tab-title {
    background: #EEF3F8 !important;
    color: #071E42 !important;
  }

  .brg14-standard-tabs .kt-tabs-title-list:has(> li:nth-child(3):last-child) .kt-tab-title-active .kt-tab-title {
    background: #071E42 !important;
    color: #FFFFFF !important;
  }

  .brg14-consult-media-box {
    width: 100%;
  }

  .brg14-consult-card .brg14-download-links a,
  .brg14-consult-card a.brg14-download-link,
  .brg14-consult-card li.brg14-download-link > a {
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 8px;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
  }

  .brg14-consult-card .brg14-download-links a::before,
  .brg14-consult-card a.brg14-download-link::before,
  .brg14-consult-card li.brg14-download-link > a::before {
    width: 28px;
    height: 28px;
    background-size: 15px 15px;
  }

  .brg14-person-details .brg14-download-links a {
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 8px;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
  }

  .brg14-person-details .brg14-download-links a::before {
    width: 28px;
    height: 28px;
    background-size: 15px 15px;
  }

  .brg14-service-media-row {
    gap: 22px;
  }

  .brg14-service-qr-item img,
  .brg14-logo-income,
  .brg14-logo-qr-whatsapp {
    width: 96px;
    height: 96px;
  }

  .brg14-logo-bildungsdirektion {
    height: 46px;
  }

  .brg14-logo-schulpsychologie {
    height: 68px;
  }

  .brg14-erasmus-section,
  .brg14-care-page .brg14-page-section {
    padding: 38px 0;
  }
}
