/* SWT Dark Mode – isolierte Ergänzung, Fachbereichsfarben bleiben erhalten. */
.swt-theme-picker {display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:12px 0 18px;}
.swt-theme-picker>span {font-size:13px;margin-right:auto;}
.swt-theme-picker button {border:1px solid #a7aaac;border-radius:18px;background:transparent;color:inherit;padding:7px 11px;font:inherit;font-size:13px;cursor:pointer;}
.swt-theme-picker button[aria-pressed="true"] {background:#f09e23;color:#16191b;border-color:#f09e23;}
@media (min-width:768px) {.swt-theme-picker {display:none;}}
@media (prefers-color-scheme:dark) {html:not([data-swt-color="light"]) {color-scheme:dark;}}
html[data-swt-color="dark"] {color-scheme:dark;background:#171b1e;}
html[data-swt-color="dark"] body,html[data-swt-color="dark"] .page {background-color:#171b1e;color:#e6e9eb;}
html[data-swt-color="dark"] .swt-news-card,html[data-swt-color="dark"] .swt-news-dialog {background:#252b30;color:#e6e9eb;}
html[data-swt-color="dark"] .swt-news-card .swt-news-title,html[data-swt-color="dark"] .swt-news-card .swt-news-text,html[data-swt-color="dark"] .swt-news-card .swt-news-text p,html[data-swt-color="dark"] .swt-news-card .swt-news-text li {color:#e6e9eb;}
html[data-swt-color="dark"] .swt-news-section .swt-news-year,html[data-swt-color="dark"] .swt-news-archives h2 {color:#b9c1c5;}
html[data-swt-color="dark"] .swt-news-quote,html[data-swt-color="dark"] .swt-news-archives a,html[data-swt-color="dark"] .swt-news-dialog-toolbar {background:#30383d;color:#e6e9eb;}
html[data-swt-color="dark"] .swt-news-dialog-close {color:#e6e9eb;}
@media (max-width:767px) {
 html[data-swt-color="dark"] .swt-mobile-header,html[data-swt-color="dark"].swt-menu-open .swt-mobile-header,html[data-swt-color="dark"].swt-menu-open .swt-mobile-emblem {background:#252b30;}
 html[data-swt-color="dark"].swt-menu-open .swt-mobile-menu {background:#252b30;}
 html[data-swt-color="dark"] .swt-mobile-brand,html[data-swt-color="dark"] .swt-mobile-links>li>a,html[data-swt-color="dark"] .swt-mobile-group,html[data-swt-color="dark"] .swt-mobile-submenu a {color:#e6e9eb;}
 html[data-swt-color="dark"] .swt-mobile-extras>p {color:#b9c1c5;}
 html[data-swt-color="dark"] .swt-mobile-quicklinks a,html[data-swt-color="dark"] .swt-mobile-social a {background:#343c41;color:#e6e9eb;}
}

/* v2 – Kontrastkorrekturen; ausschließlich im dunklen Modus. */
html[data-swt-color="dark"] {--swt-dark-bg:#171b1e;--swt-dark-panel:#252b30;--swt-dark-text:#e8ecee;--swt-dark-muted:#bec7cc;}
html[data-swt-color="dark"] .page {background:#171b1e!important;}
/* Die Originalseite setzt für viele Absätze feste dunkle Textfarben. */
html[data-swt-color="dark"] .page :is(p,li,dd,dt,blockquote,small,strong,b,em,span):not([class*="color"]):not([class*="icon"]) {color:var(--swt-dark-text);}
html[data-swt-color="dark"] .page :is(h1,h2,h3,h4,h5,h6) {color:#f09e23;}
html[data-swt-color="dark"] .page :is(a,a:visited) {color:#f5ae42;}
/* Seiten mit eigenem hellen Karten- und Inhaltslayout */
html[data-swt-color="dark"] .swt-doc-main,html[data-swt-color="dark"] .swt-doc-page .swt-doc-shadow {background:#171b1e!important;color:#e8ecee;}
html[data-swt-color="dark"] .swt-doc-card {background:#252b30!important;color:#e8ecee;box-shadow:0 5px 22px rgba(0,0,0,.25);}
html[data-swt-color="dark"] .swt-doc-intro,html[data-swt-color="dark"] .swt-doc-description,html[data-swt-color="dark"] .swt-doc-meta,html[data-swt-color="dark"] .swt-doc-main .swt-doc-card h2 {color:#e8ecee!important;}
html[data-swt-color="dark"] .swt-doc-preview {background:#fff;}
html[data-swt-color="dark"] .swt-doc-open {background:#252b30;color:#ffb64e!important;}
html[data-swt-color="dark"] .swt-doc-save {color:#16191b!important;}
/* Presse und Downloads behalten ihre Geometrie und Masonry-Logik. */
html[data-swt-color="dark"] .swt-press-card {background:#252b30!important;color:#e8ecee;}
html[data-swt-color="dark"] .swt-press-card :is(h2,h3,p,span,small) {color:#e8ecee;}
/* News-Karten: Links und Galeriebedienelemente kontrastreich, Fachbereichsfarben bleiben. */
html[data-swt-color="dark"] .swt-news-card :is(a,button) {color:#f5ae42;}
html[data-swt-color="dark"] .swt-news-card :is(.swt-news-text,.swt-news-title) {color:#e8ecee!important;}
/* Kontakt: helle Eingabeflächen absichtlich erhalten, mit dunklem Eingabetext. */
html[data-swt-color="dark"] #kontaktform :is(input,textarea) {color:#222!important;}
html[data-swt-color="dark"] #kontaktform :is(input,textarea)::placeholder {color:#777;opacity:1;}
/* Footer als eigenständige dunkle Fläche. */
html[data-swt-color="dark"] .footer,html[data-swt-color="dark"] .footer-container,html[data-swt-color="dark"] .footer-section {background-color:#252b30!important;color:#e8ecee;}
html[data-swt-color="dark"] .footer :is(p,span,li,a) {color:#e8ecee;}

/* v3 – gezielte Korrekturen anhand der mobilen Screenshots. */
/* Einheitliche Logofläche bei geöffnetem und geschlossenem Menü. */
@media (max-width:767px) {
 html[data-swt-color="dark"] .swt-mobile-emblem,
 html[data-swt-color="dark"].swt-menu-open .swt-mobile-emblem {background:#fff;}
}
/* Fachbereiche: helle, bildüberlagerte Originalflächen nur im Dark Mode abdunkeln. */
html[data-swt-color="dark"] .main[class*="-bg"] {background-color:#171b1e!important;background-blend-mode:multiply;}
html[data-swt-color="dark"] .mechatronik-bg {background-image:linear-gradient(rgba(23,27,30,.94),rgba(23,27,30,.94)),url('../img/svg/mechatronik.svg')!important;background-blend-mode:normal;}
html[data-swt-color="dark"] .fachbereich,html[data-swt-color="dark"] .fachbereich :is(p,li,strong,span) {color:#e8ecee!important;}
/* Teamkarten: Text und Karten im gleichen dunklen Farbsystem. */
html[data-swt-color="dark"] .team-item,html[data-swt-color="dark"] .team-item:hover {background:#252b30!important;border-color:#41494e!important;color:#e8ecee!important;}
html[data-swt-color="dark"] .team-item :is(p,span,strong,small,div.swt-team-info) {color:#e8ecee!important;}
html[data-swt-color="dark"] .team-item .swt-team-mail {color:#fff!important;}
/* Datenschutz: Textfarbe sitzt auf dem umschließenden .ds-content, nicht nur auf p. */
html[data-swt-color="dark"] .ds-content,html[data-swt-color="dark"] .ds-content :is(p,div,span,li,strong,b) {color:#e8ecee!important;}

/* v4 – gezielte Korrekturen, ausschließlich Dark Mode */
/* Desktop-Navigation und Untermenüs */
html[data-swt-color="dark"] #cssmenu {background:#252b30!important;}
html[data-swt-color="dark"] #cssmenu > ul > li > a {color:#f09e23;}
html[data-swt-color="dark"] #cssmenu > ul > li:hover > a {color:#ffd08a;}
html[data-swt-color="dark"] #cssmenu ul ul li a {background:#30383d;color:#e8ecee;}
html[data-swt-color="dark"] #cssmenu ul ul li a:hover {background:#3b454b;color:#f09e23;}
/* Partnerlogos: Bilddateien unverändert, Hintergrund hinter transparenten Bereichen hell */
html[data-swt-color="dark"] .cooperations {background:#171b1e;}
html[data-swt-color="dark"] .cooperation li a img {background-color:#e9e9e7;border-color:#c6c9ca;}
html[data-swt-color="dark"] .cooperation li a img:hover {background-color:#fff;}
/* Team: sichtbare orange Beschriftung auch bei verschachtelten Elementen */
html[data-swt-color="dark"] .team-container .team-item .swt-team-mail,
html[data-swt-color="dark"] .team-container .team-item .swt-team-mail:visited {background:#252b30!important;color:#f09e23!important;border:1px solid #f09e23!important;}
html[data-swt-color="dark"] .team-container .team-item .swt-team-mail :is(span,b,strong) {color:#f09e23!important;}
html[data-swt-color="dark"] .team-container .team-item .swt-team-mail:hover,
html[data-swt-color="dark"] .team-container .team-item .swt-team-mail:focus-visible {background:#f09e23!important;color:#171b1e!important;}
html[data-swt-color="dark"] .team-container .team-item .swt-team-mail:hover :is(span,b,strong) {color:#171b1e!important;}
/* Fachbereichsgrafiken als sehr dezentes Wasserzeichen statt schwarzer Fläche */
html[data-swt-color="dark"] .main[class*="-bg"] {background-color:#171b1e!important;background-blend-mode:normal!important;}
html[data-swt-color="dark"] .mechatronik-bg {background-image:linear-gradient(rgba(23,27,30,.97),rgba(23,27,30,.97)),url('../img/svg/mechatronik.svg')!important;}
html[data-swt-color="dark"] .handel-buero-bg {background-image:linear-gradient(rgba(23,27,30,.97),rgba(23,27,30,.97)),url('../img/svg/handel-buero.svg')!important;}
/* Formular: keine große weiße Karte; dunkle Felder mit deutlich lesbaren Platzhaltern */
html[data-swt-color="dark"] #kontaktform {background:#252b30!important;color:#e8ecee!important;}
html[data-swt-color="dark"] #kontaktform :is(input,textarea) {background-color:#343c41!important;color:#f2f3f4!important;border-color:#f09e23!important;}
html[data-swt-color="dark"] #kontaktform :is(input,textarea)::placeholder {color:#c2c9cd!important;opacity:1;}
html[data-swt-color="dark"] #kontaktform :is(button,input[type="submit"],input[type="reset"]) {background:#30383d!important;color:#f09e23!important;border-color:#f09e23!important;}
/* PTS-Logo: keine zusätzlich aufgezwungene weiße Fläche */
@media (max-width:767px) {html[data-swt-color="dark"] .swt-mobile-emblem,html[data-swt-color="dark"].swt-menu-open .swt-mobile-emblem {background:transparent!important;}}

/* v5 – Desktop-Aktuelles, Partnerkacheln und Team-Buttons. */
html[data-swt-color="dark"] .team-container .team-item .swt-team-mail,
html[data-swt-color="dark"] .team-container .team-item .swt-team-mail:visited {
  border:2px solid #f09e23!important;
  box-sizing:border-box;
}
/* Die Desktop-Regel in styles.css erzeugt einen weißen Verlauf auf jedem zweiten Link. */
@media (min-width:768px) {
  html[data-swt-color="dark"] .aside ul a,
  html[data-swt-color="dark"] .aside ul a li,
  html[data-swt-color="dark"] .aside ul a li:nth-child(odd) {
    background-color:transparent!important;
    background-image:none!important;
    color:#e8ecee!important;
  }
  html[data-swt-color="dark"] .aside ul a li p {color:#e8ecee!important;}
  html[data-swt-color="dark"] .aside ul a:hover li p {color:#f09e23!important;}
}
/* Die Partnerlogos sind CSS-Hintergrundbilder auf transparenten Platzhalterbildern. */
html[data-swt-color="dark"] .cooperation li a img {
  background-color:#fff!important;
  border-color:#d5d5d5!important;
}
html[data-swt-color="dark"] .cooperation li a img:hover {background-color:#fff!important;}


/* v6 – Desktop-Auswahl, Kontrast, dezente Hover-Interaktion. */
@media (min-width:768px) {
  #cssmenu {position:relative;}
  .swt-desktop-theme {display:flex;align-items:center;justify-content:flex-end;gap:5px;padding:6px 18px;font-size:12px;background:inherit;}
  .swt-desktop-theme span {margin-right:5px;color:#666;}
  .swt-desktop-theme button {font:inherit;border:1px solid #a4a4a4;border-radius:16px;background:transparent;color:#555;padding:4px 9px;cursor:pointer;}
  .swt-desktop-theme button[aria-pressed="true"] {background:#f09e23;border-color:#f09e23;color:#171b1e;}
  html[data-swt-color="dark"] .swt-desktop-theme span {color:#d0d5d8;}
  html[data-swt-color="dark"] .swt-desktop-theme button {color:#e8ecee;border-color:#7e898e;}
  html[data-swt-color="dark"] .swt-desktop-theme button[aria-pressed="true"] {color:#171b1e;border-color:#f09e23;}
  html[data-swt-color="dark"] .aside ul a li:nth-child(odd) {background-image:linear-gradient(90deg,transparent,rgba(170,183,190,.12) 33%,rgba(170,183,190,.12) 67%,transparent)!important;}
  html[data-swt-color="dark"] .aside ul a li:nth-child(even) {background-image:linear-gradient(90deg,transparent,rgba(170,183,190,.12) 33%,rgba(170,183,190,.12) 67%,transparent)!important;}
}
@media (max-width:767px) {.swt-desktop-theme {display:none!important;}}
html[data-swt-color="dark"] .cooperation li a img {background-color:#fff!important;opacity:.85;transition:opacity .2s ease,filter .2s ease;}
html[data-swt-color="dark"] .cooperation li a:hover img,html[data-swt-color="dark"] .cooperation li a:focus-visible img {opacity:1;}
/* Bestehende Kartenabmessungen bleiben erhalten; nur optischer Transform. */
html[data-swt-color="dark"] :is(.team-item,.swt-press-card,.swt-doc-card) {transition:transform .2s ease,box-shadow .2s ease;}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  html[data-swt-color="dark"] :is(.team-item,.swt-press-card,.swt-doc-card):hover {transform:translateY(-3px);box-shadow:0 7px 22px rgba(180,202,213,.13),0 0 12px rgba(180,202,213,.07)!important;}
}
@media (prefers-reduced-motion:reduce) {html[data-swt-color="dark"] :is(.team-item,.swt-press-card,.swt-doc-card) {transition:none!important;}}

/* v7 – Desktop-Umschalter im Kopfbereich statt Navigation. */
@media (min-width:768px) {
 .header-right-wrapper {position:relative;}
 .header-right-wrapper .swt-desktop-theme {position:absolute;right:18px;top:50%;transform:translateY(-35%);z-index:6;background:transparent;padding:4px;}
 .header-right-wrapper .swt-desktop-theme span {color:#aab2b6;}
 .header-right-wrapper .swt-desktop-theme button {color:#dce1e3;border-color:#879095;}
 .header-right-wrapper .swt-desktop-theme button[aria-pressed="true"] {color:#171b1e;}
}
/* Fachbereich: die weiße Original-Verlaufsebene wird im Dunkelmodus ersetzt. */
html[data-swt-color="dark"] :is(.mechatronik-bg,.holz-bau-bg,.mediendesign-bg,.gss-bg,.handel-buero-bg,.tourismus-bg,.kib-bg) {
 background-image:linear-gradient(rgba(23,27,30,.97),rgba(23,27,30,.97))!important;
 background-color:#171b1e!important;
}
/* Aktuelles und Archiv: Nur optischer Innenrahmen; kein transform, da Masonry Positionen selbst steuert. */
.swt-news-card {transition:box-shadow .18s ease!important;}
@media (hover:hover) {
 .swt-news-grid .swt-news-card:hover {box-shadow:inset 0 0 0 2px #f09e23,0 5px 22px rgba(35,43,47,.10)!important;}
}
@media (prefers-reduced-motion:reduce) {.swt-news-card {transition:none!important;}}
html[data-swt-color="dark"] .cooperation li a img {opacity:.666!important;}
html[data-swt-color="dark"] .cooperation li a:hover img,html[data-swt-color="dark"] .cooperation li a:focus-visible img {opacity:1!important;}

/* v7b – Kopfzeile: kompakte, eindeutige Desktop-Auswahl. */
@media (min-width:768px) {
 .header-right-wrapper .swt-desktop-theme {gap:8px;}
 .header-right-wrapper .swt-desktop-theme button {display:inline-flex;align-items:center;justify-content:center;min-width:29px;height:29px;padding:2px 5px;border:0;background:transparent;color:#f09e23;font-size:19px;line-height:1;}
 .header-right-wrapper .swt-desktop-theme button[data-swt-theme="auto"] {font-size:12px;min-width:36px;}
 .header-right-wrapper .swt-desktop-theme button[aria-pressed="true"] {background:#f09e23;color:#171b1e;border-radius:16px;}
}


/* Fachbereiche: dezente graue SVGs im Dark Mode, ohne abdunkelnde Verlaufsebene. */
html[data-swt-color="dark"] .mechatronik-bg {background-image:url("../img/svg/mechatronik-dark.svg")!important;background-color:#171b1e!important;background-blend-mode:normal!important;}
html[data-swt-color="dark"] .holz-bau-bg {background-image:url("../img/svg/holz-dark.svg")!important;background-color:#171b1e!important;background-blend-mode:normal!important;}
html[data-swt-color="dark"] .mediendesign-bg {background-image:url("../img/svg/mediendesign-dark.svg")!important;background-color:#171b1e!important;background-blend-mode:normal!important;}
html[data-swt-color="dark"] .gss-bg {background-image:url("../img/svg/gss-dark.svg")!important;background-color:#171b1e!important;background-blend-mode:normal!important;}
html[data-swt-color="dark"] .handel-buero-bg {background-image:url("../img/svg/handel-buero-dark.svg")!important;background-color:#171b1e!important;background-blend-mode:normal!important;}
html[data-swt-color="dark"] .tourismus-bg {background-image:url("../img/svg/tourismus-dark.svg")!important;background-color:#171b1e!important;background-blend-mode:normal!important;}
html[data-swt-color="dark"] .kib-bg {background-image:url("../img/svg/kib-dark.svg")!important;background-color:#171b1e!important;background-blend-mode:normal!important;}

/* Desktop-Darstellung: kein aktiver Hintergrundpunkt, nur Icon/Text orange. */
@media (min-width:768px) {
 .header-right-wrapper .swt-desktop-theme button,
 .header-right-wrapper .swt-desktop-theme button[aria-pressed="true"] {background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;}
 .header-right-wrapper .swt-desktop-theme button {color:#171b1e!important;}
 .header-right-wrapper .swt-desktop-theme button[aria-pressed="true"] {color:#f09e23!important;}
 html[data-swt-color="dark"] .header-right-wrapper .swt-desktop-theme button {color:#dce1e3!important;}
 html[data-swt-color="dark"] .header-right-wrapper .swt-desktop-theme button[aria-pressed="true"] {color:#f09e23!important;}
}

/* 24.10.2026: Desktop-Schalter 17 px tiefer, unveränderte SVGs im Mobilmenü. */
@media (min-width:768px) {
  .header-right-wrapper .swt-desktop-theme {top:calc(50% + 17px)!important;}
}
@media (max-width:767px) {
  .swt-mobile-menu .swt-theme-picker {display:flex;align-items:center;justify-content:center;gap:14px;padding:16px 12px;margin:0;}
  .swt-mobile-menu .swt-theme-picker button {display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;padding:4px;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#171b1e!important;font-size:21px;line-height:1;cursor:pointer;}
  .swt-mobile-menu .swt-theme-picker button[data-swt-theme="auto"] {font-size:13px;min-width:40px;}
  .swt-mobile-menu .swt-theme-picker button[aria-pressed="true"] {color:#f09e23!important;}
  html[data-swt-color="dark"] .swt-mobile-menu .swt-theme-picker button {color:#dce1e3!important;}
  html[data-swt-color="dark"] .swt-mobile-menu .swt-theme-picker button[aria-pressed="true"] {color:#f09e23!important;}
}

/* Feinkorrektur: weitere 17 px nach unten (insgesamt 34 px); Hellmodus inaktiv #3d4245. */
@media (min-width:768px) {
 .header-right-wrapper .swt-desktop-theme {top:calc(50% + 34px)!important;}
 .header-right-wrapper .swt-desktop-theme button:not([aria-pressed="true"]) {color:#3d4245!important;}
}
@media (max-width:767px) {
 .swt-mobile-menu .swt-theme-picker button:not([aria-pressed="true"]) {color:#3d4245!important;}
}

/* Auszeichnungen: genau ein Schulsport-Siegel je Farbmodus anzeigen. */
.swt-schulsport-dark {display:none!important;}
html[data-swt-color="dark"] .swt-schulsport-light {display:none!important;}
html[data-swt-color="dark"] .swt-schulsport-dark {display:inline-block!important;}

/* Kooperationspartner: Original-Sprite-Hover auch im Dark Mode erhalten. */
html[data-swt-color="dark"] .cooperation li a img {
  background-position:0 0;
  transition:background-position .2s ease,opacity .2s ease,filter .2s ease!important;
}
html[data-swt-color="dark"] .cooperation li a:hover img,
html[data-swt-color="dark"] .cooperation li a:focus-visible img {
  background-position:0 2.875rem!important;
  opacity:1!important;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.25));
}

/* Dark Mode: Fachbereichstitel in ihren bestehenden Fachbereichsfarben. */
html[data-swt-color="dark"] .page .fachbereich.mechatronik h1 {color:#37a18f!important;}
html[data-swt-color="dark"] .page .fachbereich.holz-bau h1 {color:#81603b!important;}
html[data-swt-color="dark"] .page .fachbereich.mediendesign h1 {color:#92bfc7!important;}
html[data-swt-color="dark"] .page .fachbereich.gss h1 {color:#2e5863!important;}
html[data-swt-color="dark"] .page .fachbereich.handel-buero h1 {color:#8a9031!important;}
html[data-swt-color="dark"] .page .fachbereich.tourismus h1 {color:#0e5c91!important;}
html[data-swt-color="dark"] .page .fachbereich.kib h1 {color:#e0ac01!important;}
/* Fancybox: dunkelgraue Bild-Overlayfläche statt Originalblau. */
html[data-swt-color="dark"] .fancybox-container .fancybox-bg {background:#252b30!important;}
/* Auszeichnungen: sanfter heller Schlagschatten nur im Dark Mode. */
html[data-swt-color="dark"] .seal .seal-img {transition:filter .2s ease;}
html[data-swt-color="dark"] .seal a:hover .seal-img,
html[data-swt-color="dark"] .seal a:focus-visible .seal-img,
html[data-swt-color="dark"] .seal .seal-img:hover {filter:drop-shadow(0 5px 12px rgba(220,230,235,.42))!important;}

/* Kontaktformular: weisse Streifen des aeusseren #container nur im Dark Mode entfernen. */
html[data-swt-color="dark"] #container:has(#kontaktform) {background:#252b30!important;}

/* Kontaktformular: im Dark Mode kein Hintergrundfeld um das Formular. */
html[data-swt-color="dark"] #container:has(#kontaktform),
html[data-swt-color="dark"] #container:has(#kontaktform) #kontaktform {
  background:transparent!important;
  background-color:transparent!important;
}

/* Home/Aktuelles: dezente Link-Verlaeufe auch im mobilen Hochformat. */
@media (max-width:767px) and (orientation:portrait) {
  html[data-swt-color="dark"] .swt-home-main .aside ul a li {
    background-image:linear-gradient(90deg,transparent 0%,rgba(170,183,190,.12) 33%,rgba(170,183,190,.12) 67%,transparent 100%)!important;
    background-repeat:no-repeat;
  }
  html[data-swt-color="dark"] .swt-home-main .aside ul a:nth-child(even) li {
    background-image:linear-gradient(90deg,transparent 0%,rgba(170,183,190,.12) 33%,rgba(170,183,190,.12) 67%,transparent 100%)!important;
  }
}

/* Kooperationspartner: im Ruhezustand besser lesbar, besonders auf Touchgeraeten. */
html[data-swt-color="dark"] .cooperation li a img {opacity:.90!important;}
@media (hover:none), (pointer:coarse) {
  html[data-swt-color="dark"] .cooperation li a img {opacity:1!important;}
}

/* Mobile Schulname: keine Unterstreichung beim Hover oder Tastaturfokus (beide Modi). */
.swt-mobile-header a.swt-mobile-brand,
.swt-mobile-header a.swt-mobile-brand:hover,
.swt-mobile-header a.swt-mobile-brand:focus,
.swt-mobile-header a.swt-mobile-brand:focus-visible,
.swt-mobile-header a.swt-mobile-brand *,
.swt-mobile-header a.swt-mobile-brand:hover *,
.swt-mobile-header a.swt-mobile-brand:focus * {
  text-decoration: none !important;
}

/* Team: mobile Alphabetleiste in beiden Farbmodi transparent. */
@media (max-width:1024px) and (pointer:coarse) {
  .swt-team-alphabet {
    background:transparent !important;
    background-color:transparent !important;
  }
  html[data-swt-color="dark"] .swt-team-alphabet span {
    color:#929ca3 !important;
  }
}

/* Mobile-Menue im Querformat: exakt derselbe Breakpoint wie swt-mobile.css.
   Die bisherigen Darkmode-Regeln bis 767px bleiben unveraendert. */
@media (min-width:768px) and (max-width:1366px) and (pointer:coarse) {
  html[data-swt-color="dark"] .swt-mobile-header,
  html[data-swt-color="dark"].swt-menu-open .swt-mobile-header {
    background:#252b30!important;
  }
  html[data-swt-color="dark"].swt-menu-open .swt-mobile-menu {
    background:#252b30!important;
  }
  html[data-swt-color="dark"] .swt-mobile-emblem,
  html[data-swt-color="dark"].swt-menu-open .swt-mobile-emblem {
    background:transparent!important;
  }
  html[data-swt-color="dark"] .swt-mobile-brand,
  html[data-swt-color="dark"] .swt-mobile-brand small,
  html[data-swt-color="dark"] .swt-mobile-links > li > a,
  html[data-swt-color="dark"] .swt-mobile-group,
  html[data-swt-color="dark"] .swt-mobile-submenu a {
    color:#e6e9eb!important;
  }
  html[data-swt-color="dark"] .swt-mobile-brand strong {color:#f09e23!important;}
  html[data-swt-color="dark"] .swt-mobile-links > li {border-bottom-color:#41494e!important;}
  html[data-swt-color="dark"] .swt-mobile-extras > p {color:#b9c1c5!important;}
  html[data-swt-color="dark"] .swt-mobile-quicklinks a,
  html[data-swt-color="dark"] .swt-mobile-social a {
    background:#343c41!important;
    color:#e6e9eb!important;
  }
  html[data-swt-color="dark"] .swt-mobile-menu .swt-theme-picker button {color:#dce1e3!important;}
  html[data-swt-color="dark"] .swt-mobile-menu .swt-theme-picker button[aria-pressed="true"] {color:#f09e23!important;}
}


/* iPhone-Querformat: Menue optisch an Hochformat angleichen.
   Keine Aenderung an Logo, Navigationstechnik oder Desktop-Layout. */
@media (orientation:landscape) and (min-width:768px) and (max-width:1366px) and (pointer:coarse) {
  /* Der Theme-Picker war durch die globale min-width:768px-Regel ausgeblendet. */
  .swt-mobile-menu .swt-theme-picker {
    display:flex!important;
    align-items:center;
    justify-content:center;
    gap:14px;
    padding:16px 12px;
    margin:0;
  }
  .swt-mobile-menu .swt-theme-picker button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:34px;
    height:34px;
    padding:4px;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#3d4245!important;
    font-size:21px;
    line-height:1;
    cursor:pointer;
  }
  .swt-mobile-menu .swt-theme-picker button[data-swt-theme="auto"] {font-size:13px;min-width:40px;}
  .swt-mobile-menu .swt-theme-picker button[aria-pressed="true"] {color:#f09e23!important;}
  html[data-swt-color="dark"] .swt-mobile-menu .swt-theme-picker button:not([aria-pressed="true"]) {color:#dce1e3!important;}
  html[data-swt-color="dark"] .swt-mobile-menu .swt-theme-picker button[aria-pressed="true"] {color:#f09e23!important;}

  /* Direkte Navigationslinks wie im Hochformat orange; Gruppen bleiben hell. */
  html[data-swt-color="dark"] .swt-mobile-menu .swt-mobile-links > li > a,
  html[data-swt-color="dark"] .swt-mobile-menu .swt-mobile-links > li > a:visited {color:#f09e23!important;}
  html[data-swt-color="dark"] .swt-mobile-menu .swt-mobile-links > li {border-bottom-color:rgba(255,255,255,.25)!important;}
}

/* Mobilmenue: Trennlinien in Dark Mode in Hoch- und Querformat auf 25% Weiss. */
@media (max-width:1366px) and (pointer:coarse) {
  html[data-swt-color="dark"] .swt-mobile-menu .swt-mobile-links > li {
    border-bottom-color:rgba(255,255,255,.25)!important;
  }
}
