/* =====================================================================
   Windows Einfach Erklärt – zentrales Stylesheet
   Gilt für alle Seiten (index, impressum, datenschutz, download, kontakt).
   Variablen siehe Style-Guide-Skill: keine Werte ohne Rücksprache ändern.
   ===================================================================== */

:root {
  --primary: #2157AF;
  --primary-hover: #4270BB;
  --primary-active: #1A458C;
  --accent-light: #6389C7;

  --bg-body: #05080D;
  --bg-card: #10151D;
  --bg-elevated: #1B222E;
  --border: #2A3340;

  --text-heading: #F4F6F9;
  --text-body: #C3C9D3;
  --text-secondary: #7B8493;

  --success: #1D9E75;
  --warning: #BA7517;
  --error: #E24B4A;

  --site-header-height: 64px;
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg-body);
  color: var(--text-body);
  margin: 0;
  padding-top: var(--site-header-height);
  padding-bottom: 24px;
}

a { color: var(--accent-light); }

/* =====================================================================
   Site-weite Kopfnavigation (header.php) – auf jeder Seite gleich
   ===================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--site-header-height);
  background: rgba(5, 8, 13, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

/* Logo und Menü bilden zusammen EINE Gruppe, die als Ganzes auf der
   Kopfleiste zentriert wird (nicht nur das Menü für sich) – so bleibt die
   Anordnung optisch symmetrisch statt links/rechts unausgeglichen. */
.site-header-inner {
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  position: relative;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-heading);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav a {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--text-heading);
  background: var(--bg-elevated);
}

.site-nav a.is-active {
  color: var(--text-heading);
  background: var(--primary);
}

.site-nav a.is-active:hover {
  background: var(--primary-hover);
}

/* Dropdown-Untermenü in der Hauptnavigation (z. B. "Nachschlagen") */
.site-nav-dropdown {
  position: relative;
}

.site-nav-dropdown summary {
  color: var(--text-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 28px 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  list-style: none;
  transition: color 0.15s ease, background 0.15s ease;
  position: relative;
}

.site-nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.site-nav-dropdown summary::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.15s ease;
}

.site-nav-dropdown[open] summary::after {
  transform: translateY(-35%) rotate(-135deg);
}

.site-nav-dropdown summary:hover,
.site-nav-dropdown summary.is-active {
  color: var(--text-heading);
  background: var(--bg-elevated);
}

.site-nav-dropdown summary.is-active {
  background: var(--primary);
}

.site-nav-dropdown summary.is-active:hover {
  background: var(--primary-hover);
}

.site-nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 180px;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  z-index: 1001;
}

.site-nav-dropdown-menu a {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav-dropdown-menu a:hover {
  color: var(--text-heading);
  background: var(--bg-elevated);
}

.site-nav-dropdown-menu a.is-active {
  color: var(--text-heading);
  background: var(--primary);
}

.site-nav-dropdown-menu a.is-active:hover {
  background: var(--primary-hover);
}

.site-header .site-nav-toggle-checkbox { display: none; }

.site-header .site-nav-toggle-btn {
  display: none;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  border-radius: 8px;
}

.site-header .site-nav-toggle-btn span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text-heading);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 1180px) {
  .site-header .site-nav-toggle-btn {
    display: flex;
  }

  .site-nav {
    transform: none;
    position: fixed;
    top: var(--site-header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 2px;
    background: #0A0F16;
    border-bottom: 1px solid var(--border);
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
  }

  .site-nav a {
    padding: 12px 10px;
    border-radius: 8px;
    text-align: left;
  }

  /* Dropdown im Mobile-Menü: kein schwebendes Panel, sondern eingerücktes
     Untermenü direkt im Fluss der aufgeklappten Navigation. */
  .site-nav-dropdown summary {
    padding: 12px 10px;
    text-align: left;
  }

  .site-nav-dropdown summary::after {
    right: 10px;
  }

  .site-nav-dropdown-menu {
    position: static;
    transform: none;
    min-width: 0;
    margin: 2px 0 4px 14px;
    padding: 4px 0 4px 10px;
    background: transparent;
    border: none;
    border-left: 2px solid var(--border);
    border-radius: 0;
    box-shadow: none;
  }

  .site-nav-toggle-checkbox:checked ~ .site-nav {
    padding: 8px 16px 14px;
    max-height: 70vh;
    overflow-y: auto;
  }

  .site-nav-toggle-checkbox:checked ~ .site-nav-toggle-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-nav-toggle-checkbox:checked ~ .site-nav-toggle-btn span:nth-child(2) {
    opacity: 0;
  }

  .site-nav-toggle-checkbox:checked ~ .site-nav-toggle-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav { transition: none; }
}

/* Gemeinsame Footer-Regel für alle Seiten */
footer {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 32px;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

footer a:hover { color: var(--accent-light); }

.site-copyright {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0.6em 0 0;
}

/* =====================================================================
   Startseite (index.php) – body.home-page
   ===================================================================== */

.home-page,
.home-page html {
  margin: 0;
  height: 100%;
}

.home-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Signature-Element: animiertes Fenster-Raster, Anspielung auf das Windows-Logo */
.home-page .grid-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black 0%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black 0%, transparent 85%);
  animation: drift 30s linear infinite;
}

@keyframes drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 64px 64px, 64px 64px; }
}

.home-page .glow {
  position: fixed;
  top: -20%;
  left: 50%;
  width: 900px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(33, 87, 175, 0.35), transparent);
  z-index: 0;
  pointer-events: none;
}

.home-page main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.home-page .favicon-image {
  width: 88px;
  height: 88px;
  margin-bottom: 22px;
  filter: drop-shadow(0 0 28px rgba(99, 137, 199, 0.45));
  animation: rise 0.7s ease-out;
}

.home-page h1 {
  font-size: clamp(2rem, 5vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 38px;
  color: var(--text-heading);
  animation: rise 0.7s ease-out 0.05s backwards;
}

.home-page .home-intro {
  max-width: 480px;
  margin: 0 0 32px;
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.6;
  animation: rise 0.7s ease-out 0.08s backwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-page .buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 440px;
}

.home-page a.button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-heading);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  animation: rise 0.7s ease-out backwards;
  overflow: hidden;
}

.home-page .buttons a.button:nth-child(1) { animation-delay: 0.1s; }
.home-page .buttons a.button:nth-child(2) { animation-delay: 0.18s; }
.home-page .buttons a.button:nth-child(3) { animation-delay: 0.26s; }
.home-page .buttons a.button:nth-child(4) { animation-delay: 0.34s; }

.home-page a.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 137, 199, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.home-page a.button:hover {
  border-color: var(--accent-light);
  background: var(--bg-elevated);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5, 8, 13, 0.5), 0 0 0 1px rgba(99, 137, 199, 0.25);
}

.home-page a.button:hover::before { opacity: 1; }
.home-page a.button:active { transform: translateY(0); }

.home-page a.button .icon-box {
  flex-shrink: 0;
  font-size: 1.25rem;
}

.home-page a.button .label { flex: 1; }

.home-page a.button .arrow {
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.home-page a.button:hover .arrow {
  transform: translateX(3px);
  color: var(--accent-light);
}

/* Neuestes-Video-Karte (nutzt die a.button-Basisstyles, siehe Markup) */
.home-page .latest-video-thumb {
  flex-shrink: 0;
  width: 68px;
  height: 38px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.home-page .latest-video-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.home-page .latest-video-eyebrow {
  color: var(--accent-light);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-page .latest-video-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Glossar-Zufallsbegriff-Box ("Wusstest du schon?") */
.home-page .glossar-teaser {
  display: block;
  width: 100%;
  max-width: 440px;
  margin-top: 36px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 12px;
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.15s ease;
  animation: rise 0.7s ease-out 0.42s backwards;
}

.home-page .glossar-teaser:hover {
  border-color: var(--accent-light);
  border-left-color: var(--accent-light);
  background: var(--bg-elevated);
  transform: translateY(-2px);
}

.home-page .glossar-teaser-eyebrow {
  display: block;
  color: var(--accent-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.home-page .glossar-teaser-term {
  display: block;
  color: var(--text-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.home-page .glossar-teaser-def {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-body);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* "Nächster Termin"-Box, gleiches Pattern wie der Glossar-Teaser, nur mit
   Status-Farbcodierung analog zu kalender.php */
.home-page .termin-teaser {
  display: block;
  width: 100%;
  max-width: 440px;
  margin-top: 14px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-secondary);
  border-radius: 12px;
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.15s ease;
  animation: rise 0.7s ease-out 0.5s backwards;
}

.home-page .termin-teaser:hover {
  border-color: var(--accent-light);
  background: var(--bg-elevated);
  transform: translateY(-2px);
}

.home-page .termin-teaser.status-weit-weg { border-left-color: var(--success); }
.home-page .termin-teaser.status-bald { border-left-color: var(--warning); }
.home-page .termin-teaser.status-kommend { border-left-color: var(--accent-light); }

.home-page .termin-teaser-eyebrow {
  display: block;
  color: var(--accent-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.home-page .termin-teaser-titel {
  display: block;
  color: var(--text-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}

.home-page .termin-teaser-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.home-page .termin-teaser-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.home-page .termin-teaser-badge.status-weit-weg {
  color: var(--success);
  background: rgba(29, 158, 117, 0.12);
  border-color: rgba(29, 158, 117, 0.35);
}

.home-page .termin-teaser-badge.status-bald {
  color: var(--warning);
  background: rgba(186, 117, 23, 0.14);
  border-color: rgba(186, 117, 23, 0.4);
}

.home-page .termin-teaser-badge.status-kommend {
  color: var(--accent-light);
  background: rgba(99, 137, 199, 0.14);
  border-color: rgba(99, 137, 199, 0.4);
}

.home-page footer {
  position: relative;
  z-index: 1;
  padding: 18px 18px 24px;
  margin-top: 0;
}

.home-page footer a { margin: 0 10px; }

@media (prefers-reduced-motion: reduce) {
  .home-page .grid-backdrop { animation: none; }
  .home-page .favicon-image,
  .home-page h1,
  .home-page .home-intro,
  .home-page a.button,
  .home-page .glossar-teaser,
  .home-page .termin-teaser { animation: none; }
}

/* =====================================================================
   Rechtsseiten (impressum.php, datenschutz.php) – body.legal-page
   Inhalt dieser Seiten nie ohne expliziten Auftrag ändern, nur Optik.
   ===================================================================== */

/* Die Kurzform-padding überschreibt das globale body-padding-top, das den
   fixierten Header freihält. Header-Höhe daher hier wieder einrechnen. */
.legal-page {
  line-height: 1.65;
  padding: calc(var(--site-header-height) + 2.5em) 1.5em 24px;
}

.legal-page h1 {
  color: var(--text-heading);
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 1.2em;
}

.legal-page h2 {
  color: var(--text-heading);
  font-size: 17px;
  font-weight: 600;
  margin: 1.8em 0 0.6em;
  padding-top: 0.8em;
  border-top: 1px solid var(--border);
}

.legal-page .container h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 1.6em;
}

.legal-page p { margin: 0 0 1em; }

.legal-page ul {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

.legal-page li { margin-bottom: 0.4em; }

.legal-page a { text-decoration: none; }
.legal-page a:hover { text-decoration: underline; }

.legal-page .container {
  max-width: 700px;
  margin: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2.2em 2.4em;
  border-radius: 12px;
}

/* datenschutz.php ist etwas inhaltsreicher, daher minimal breiter */
.legal-page.datenschutz .container { max-width: 760px; }

.legal-page .meta {
  margin-top: 2.5em;
  padding-top: 1.2em;
  border-top: 1px solid var(--border);
  font-size: 0.85em;
  color: var(--text-secondary);
}

@media (max-width: 600px) {
  .legal-page .container { padding: 1.6em 1.4em; }
}

.legal-page footer {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.legal-page.datenschutz footer { max-width: 760px; }

/* =====================================================================
   Downloads (download.php) – body.download-page
   ===================================================================== */

.download-page {
  padding: calc(var(--site-header-height) + 24px) 20px 24px;
  line-height: 1.6;
}

.download-page .wrap {
  max-width: 760px;
  margin: 0 auto;
}

.download-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.download-page .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-light);
}

.download-page h1 {
  color: var(--text-heading);
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.download-page .intro {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 36px;
  max-width: 540px;
}

/* Kategorie-Navigation */
.download-page .section-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.download-page .section-nav-btn {
  display: inline-block;
  padding: 10px 22px;
  background: var(--primary);
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.download-page .section-nav-btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 14px rgba(33, 87, 175, 0.4);
}

/* Sektionen */
.download-page .download-section {
  margin-bottom: 48px;
}

.download-page .section-heading {
  color: var(--text-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Alle Sektionen sind einklappbar (details/summary) – manche starten
   eingeklappt (z. B. Video-Begleitmaterial), manche offen. */
.download-page .download-section-collapsible > summary.section-heading {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  transition: color 0.15s ease;
}

.download-page .download-section-collapsible > summary.section-heading::-webkit-details-marker {
  display: none;
}

.download-page .download-section-collapsible > summary.section-heading::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent-light);
  border-bottom: 2px solid var(--accent-light);
  transform: rotate(-45deg);
  transition: transform 0.18s ease;
}

.download-page .download-section-collapsible[open] > summary.section-heading::before {
  transform: rotate(45deg);
}

.download-page .download-section-collapsible > summary.section-heading:hover {
  color: var(--accent-light);
}

.download-page .section-count {
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  .download-page .download-section-collapsible > summary.section-heading::before { transition: none; }
}

/* Dateiliste */
.download-page .file-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Karte */
.download-page .file-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.18s ease;
}

.download-page .file-card:hover,
.download-page .file-card.is-open {
  border-color: var(--accent-light);
}

/* Karten-Header */
.download-page .file-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
}

.download-page .file-card-header.is-toggleable {
  cursor: pointer;
}

.download-page .file-card-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 137, 199, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.download-page .file-card:hover .file-card-header::before,
.download-page .file-card.is-open .file-card-header::before { opacity: 1; }

/* Icon */
.download-page .file-icon {
  flex-shrink: 0;
  font-size: 1.15rem;
  position: relative;
  z-index: 1;
}

/* Info-Block */
.download-page .file-info {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.download-page .file-name {
  display: block;
  color: var(--text-heading);
  font-weight: 600;
  font-size: 0.96rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-page .file-meta {
  display: block;
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin-top: 2px;
}

/* Download-Button */
.download-page .file-download-btn {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--accent-light);
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  padding: 5px 11px;
  border-radius: 20px;
  position: relative;
  z-index: 1;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.download-page .file-download-btn:hover {
  background: var(--accent-light);
  color: var(--bg-body);
}

/* Toggle-Button */
.download-page .file-toggle {
  flex-shrink: 0;
  background: var(--primary);
  border: none;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  padding: 5px 11px;
  border-radius: 20px;
  position: relative;
  z-index: 1;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.download-page .file-toggle:hover { background: var(--primary-hover); }
.download-page .file-card.is-open .file-toggle { background: var(--bg-elevated); color: var(--text-secondary); }

/* Thumbnail */
.download-page .thumb-link {
  display: block;
  line-height: 0;
  width: fit-content;
  margin: 0 auto 14px;
}

.download-page .file-thumb {
  display: block;
  width: 260px;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 0;
  cursor: zoom-in;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.download-page .file-thumb:hover {
  border-color: var(--accent-light);
  box-shadow: 0 0 12px rgba(99, 137, 199, 0.3);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-heading);
  width: 36px;
  height: 36px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.lightbox-close:hover { background: var(--bg-card); }

/* Aufklappbarer Inhalt */
.download-page .file-card-body {
  display: none;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--border);
}

.download-page .file-card.is-open .file-card-body { display: block; }

.download-page .file-desc {
  color: var(--text-body);
  font-size: 0.9rem;
  margin: 0 0 14px;
  line-height: 1.6;
}

.download-page .video-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.15s ease;
}

.download-page .video-link:hover {
  background: var(--primary-hover);
  color: #fff;
}

.download-page .empty-state {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  color: var(--text-secondary);
}

.download-page footer { margin-top: 48px; }

/* =====================================================================
   Kontaktformular (kontakt.php) – body.contact-page
   ===================================================================== */

.contact-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - var(--site-header-height));
  flex-direction: column;
  padding: calc(var(--site-header-height) + 24px) 16px 24px;
}

.contact-page footer {
  width: 100%;
  max-width: 480px;
}

.contact-page .title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--text-heading);
  font-size: 20px;
  font-weight: 600;
}

.contact-page .favicon-inline {
  width: 1.4em;
  height: 1.4em;
  vertical-align: middle;
}

.contact-page #contactForm {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: 12px;
}

.contact-page #contactForm label {
  display: block;
  margin-top: 16px;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-heading);
}

.contact-page #contactForm label.optional {
  font-weight: 400;
  color: var(--text-secondary);
}

.contact-page #contactForm .hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 4px 0 0;
}

.contact-page #contactForm input,
.contact-page #contactForm textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-sizing: border-box;
  background: var(--bg-elevated);
  color: var(--text-heading);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-page #contactForm input::placeholder,
.contact-page #contactForm textarea::placeholder { color: var(--text-secondary); }

.contact-page #contactForm input:focus,
.contact-page #contactForm textarea:focus {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(99, 137, 199, 0.25);
}

.contact-page #contactForm input.valid,
.contact-page #contactForm textarea.valid { border-color: var(--success); }

.contact-page #contactForm input.invalid,
.contact-page #contactForm textarea.invalid { border-color: var(--error); }

.contact-page #contactForm .field-error {
  font-size: 12px;
  color: var(--error);
  margin: 4px 0 0;
  min-height: 14px;
  display: none;
}

.contact-page #contactForm .field-error.show { display: block; }

.contact-page #contactForm button {
  margin-top: 22px;
  width: 100%;
  padding: 12px 15px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.contact-page #contactForm button:hover:not(:disabled) { background: var(--primary-hover); }
.contact-page #contactForm button:active:not(:disabled) { background: var(--primary-active); }
.contact-page #contactForm button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Honeypot */
.contact-page .hidden-field {
  display: none;
  visibility: hidden;
}

/* =====================================================================
   Formular-Rückmeldung (kontakt-send.php) – body.response-page
   ===================================================================== */

.response-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - var(--site-header-height));
  padding: calc(var(--site-header-height) + 24px) 16px 24px;
}

.response-page footer {
  width: 100%;
  max-width: 480px;
}

.response-page .box {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
}

.response-page .icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.response-page .message {
  color: var(--text-heading);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
}

.response-page .detail {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 0 0 8px;
  word-break: break-word;
}

.response-page .redirect-hint {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 16px;
}

.response-page .link { text-decoration: none; }
.response-page .link:hover { text-decoration: underline; }

/* =====================================================================
   Glossar (glossar.php) – body.glossar-page
   ===================================================================== */

.glossar-page {
  padding: calc(var(--site-header-height) + 24px) 20px 24px;
  line-height: 1.6;
}

.glossar-page .wrap {
  max-width: 760px;
  margin: 0 auto;
}

.glossar-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.glossar-page .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-light);
}

.glossar-page h1 {
  color: var(--text-heading);
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.glossar-page .intro {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 8px;
  max-width: 540px;
}
.glossar-page .glossar-meta {
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin: 0 0 28px;
  opacity: 0.7;
}

/* Suchfeld */
.glossar-page .search-box {
  margin-bottom: 22px;
}

.glossar-page .search-box input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--text-heading);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.glossar-page .search-box input::placeholder { color: var(--text-secondary); }

.glossar-page .search-box input:focus {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(99, 137, 199, 0.25);
}

/* A-Z Sprungmenü */
.glossar-page .az-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: sticky;
  top: var(--site-header-height);
  background: var(--bg-body);
  padding: 10px 0 18px;
  margin-bottom: 8px;
  z-index: 2;
}

.glossar-page .az-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.glossar-page .az-nav a:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  background: var(--bg-elevated);
}

.glossar-page .az-nav span.disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--text-secondary);
  opacity: 0.3;
  font-size: 0.8rem;
}

/* Buchstaben-Überschrift */
.glossar-page .letter-heading {
  color: var(--accent-light);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 32px 0 12px;
  scroll-margin-top: calc(var(--site-header-height) + 96px);
}

.glossar-page .letter-heading:first-of-type { margin-top: 8px; }

/* Begriffs-Karten */
.glossar-page .term-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.glossar-page .term-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 10px;
  padding: 14px 18px;
  scroll-margin-top: calc(var(--site-header-height) + 96px);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.glossar-page .term-card:hover {
  border-color: var(--accent-light);
  border-left-color: var(--accent-light);
  background: var(--bg-elevated);
}

.glossar-page .term-card:target {
  border-color: var(--accent-light);
  border-left-color: var(--accent-light);
  background: var(--bg-elevated);
  animation: glossarZielBlitz 1.6s ease;
}

@keyframes glossarZielBlitz {
  0%, 20% { box-shadow: 0 0 0 3px rgba(99, 137, 199, 0.35); }
  100% { box-shadow: 0 0 0 3px rgba(99, 137, 199, 0); }
}

.glossar-page .term-card dt {
  color: var(--text-heading);
  font-weight: 600;
  font-size: 0.98rem;
  margin: 0 0 4px;
}

.glossar-page .term-card dd {
  color: var(--text-body);
  font-size: 0.9rem;
  margin: 0;
}

.glossar-page .term-card dd a {
  color: var(--accent-light);
  text-decoration: underline;
  text-decoration-color: rgba(99, 137, 199, 0.4);
  text-underline-offset: 2px;
}

.glossar-page .term-card dd a:hover {
  text-decoration-color: var(--accent-light);
}

@media (prefers-reduced-motion: reduce) {
  .glossar-page .term-card:target { animation: none; }
}

.glossar-page .term-card.is-hidden { display: none; }
.glossar-page .letter-heading.is-hidden { display: none; }

.glossar-page .no-results {
  display: none;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  color: var(--text-secondary);
  margin-top: 16px;
}

.glossar-page .no-results.show { display: block; }

.glossar-page .glossar-hinweis {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 28px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.glossar-page .glossar-hinweis a { color: var(--accent-light); }

.glossar-page footer { margin-top: 48px; }

@media (prefers-reduced-motion: reduce) {
  .glossar-page .term-card { transition: none; }
}

/* =====================================================================
   Fehlercode-Datenbank (fehlercodes.php) – body.fehlercode-page
   ===================================================================== */

.fehlercode-page {
  padding: calc(var(--site-header-height) + 24px) 20px 24px;
  line-height: 1.6;
}

.fehlercode-page .wrap {
  max-width: 820px;
  margin: 0 auto;
}

.fehlercode-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.fehlercode-page .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-light);
}

.fehlercode-page h1 {
  color: var(--text-heading);
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.fehlercode-page .intro {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 8px;
  max-width: 600px;
}

.fehlercode-page .fehlercode-meta {
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin: 0 0 28px;
  opacity: 0.7;
}

/* Suchfeld (identisch zum Glossar-Pattern) */
.fehlercode-page .search-box {
  margin-bottom: 16px;
}

.fehlercode-page .search-box input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--text-heading);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fehlercode-page .search-box input::placeholder { color: var(--text-secondary); }

.fehlercode-page .search-box input:focus {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(99, 137, 199, 0.25);
}

/* Kategorie-Filter */
.fehlercode-page .kategorie-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: sticky;
  top: var(--site-header-height);
  background: var(--bg-body);
  padding: 10px 0 18px;
  margin-bottom: 8px;
  z-index: 2;
}

.fehlercode-page .kategorie-filter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.fehlercode-page .kategorie-filter button:hover:not(:disabled) {
  border-color: var(--accent-light);
  color: var(--accent-light);
  background: var(--bg-elevated);
}

.fehlercode-page .kategorie-filter button.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-heading);
}

.fehlercode-page .kategorie-filter button:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Kategorie-Überschrift */
.fehlercode-page .kategorie-heading {
  color: var(--accent-light);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 32px 0 12px;
}

.fehlercode-page .kategorie-heading:first-of-type { margin-top: 8px; }
.fehlercode-page .kategorie-heading.is-hidden { display: none; }

/* Fehlercode-Kacheln (verlinken auf die jeweilige Einzelseite) */
.fehlercode-page .fehlercode-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fehlercode-page .fehlercode-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 10px;
  padding: 16px 20px;
  color: inherit;
  text-decoration: none;
  scroll-margin-top: calc(var(--site-header-height) + 96px);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.fehlercode-page .fehlercode-card:hover,
.fehlercode-page .fehlercode-card:focus-visible {
  border-color: var(--accent-light);
  border-left-color: var(--accent-light);
  background: var(--bg-elevated);
  transform: translateX(2px);
}

.fehlercode-page .fehlercode-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 137, 199, 0.25);
}

/* Ziel eines alten #fc-…-Links kurz hervorheben */
.fehlercode-page .fehlercode-card:target {
  border-color: var(--accent-light);
  border-left-color: var(--accent-light);
  background: var(--bg-elevated);
  animation: glossarZielBlitz 1.6s ease;
}

@media (prefers-reduced-motion: reduce) {
  .fehlercode-page .fehlercode-card:target { animation: none; }
}

.fehlercode-page .fehlercode-card.is-hidden { display: none; }

.fehlercode-page .fehlercode-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.fehlercode-page .fehlercode-teaser {
  display: block;
  color: var(--text-body);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.fehlercode-page .fehlercode-mehr {
  display: block;
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.fehlercode-page .fehlercode-mehr::after {
  content: " \203A";
  font-weight: 700;
}

.fehlercode-page .fehlercode-code {
  color: var(--text-heading);
  font-family: "Cascadia Code", "Consolas", "SFMono-Regular", Menlo, monospace;
  font-size: 0.98rem;
  font-weight: 700;
}

.fehlercode-page .fehlercode-kurzname {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.fehlercode-page .fehlercode-was {
  color: var(--text-body);
  font-size: 0.92rem;
  margin: 0 0 14px;
}

.fehlercode-page .fehlercode-block {
  margin-bottom: 12px;
}

.fehlercode-page .fehlercode-block:last-of-type { margin-bottom: 0; }

.fehlercode-page .fehlercode-block h3 {
  color: var(--text-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 6px;
  opacity: 0.85;
}

.fehlercode-page .fehlercode-block ul,
.fehlercode-page .fehlercode-block ol {
  margin: 0;
  padding-left: 20px;
  color: var(--text-body);
  font-size: 0.9rem;
}

.fehlercode-page .fehlercode-block li { margin-bottom: 4px; }
.fehlercode-page .fehlercode-block li:last-child { margin-bottom: 0; }

.fehlercode-page .fehlercode-verweise {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.fehlercode-page .fehlercode-verweise a {
  color: var(--accent-light);
  text-decoration: underline;
  text-decoration-color: rgba(99, 137, 199, 0.4);
  text-underline-offset: 2px;
}

.fehlercode-page .fehlercode-verweise a:hover {
  text-decoration-color: var(--accent-light);
}

.fehlercode-page .no-results {
  display: none;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  color: var(--text-secondary);
  margin-top: 16px;
}

.fehlercode-page .no-results.show { display: block; }

.fehlercode-page footer { margin-top: 48px; }

@media (prefers-reduced-motion: reduce) {
  .fehlercode-page .fehlercode-card { transition: none; }
  .fehlercode-page .fehlercode-card:hover { transform: none; }
}

/* Brotkrümelnavigation (Übersicht und Einzelseite) */
.fehlercode-page .fc-breadcrumb,
.fehlercode-detail-page .fc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin: 0 0 18px;
}

.fehlercode-page .fc-breadcrumb a,
.fehlercode-detail-page .fc-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.fehlercode-page .fc-breadcrumb a:hover,
.fehlercode-detail-page .fc-breadcrumb a:hover { color: var(--accent-light); }

.fehlercode-page .fc-breadcrumb span[aria-current],
.fehlercode-detail-page .fc-breadcrumb span[aria-current] { color: var(--text-body); }

.fehlercode-page .fc-hinweis,
.fehlercode-detail-page .fc-hinweis {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 28px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.fehlercode-page .fc-hinweis a,
.fehlercode-detail-page .fc-hinweis a { color: var(--accent-light); }


/* =====================================================================
   Fehlercode-Einzelseite (fehlercode.php) – body.fehlercode-detail-page

   Erbt bewusst nicht von .fehlercode-page, weil die Einzelseite ein
   Fließtext-Layout ist und keine Kartenliste.
   ===================================================================== */

.fehlercode-detail-page {
  padding: calc(var(--site-header-height) + 24px) 20px 24px;
  line-height: 1.65;
}

.fehlercode-detail-page .wrap {
  max-width: 760px;
  margin: 0 auto;
}

.fehlercode-detail-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.fehlercode-detail-page .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-light);
}

.fehlercode-detail-page h1 {
  color: var(--text-heading);
  font-family: "Cascadia Code", "Consolas", "SFMono-Regular", Menlo, monospace;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  margin: 0 0 6px;
}

.fehlercode-detail-page .fc-untertitel {
  color: var(--text-body);
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.fehlercode-detail-page .intro {
  color: var(--text-body);
  font-size: 0.95rem;
  margin: 0 0 18px;
}

.fehlercode-detail-page .fehlercode-meta {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin: 0 0 28px;
  opacity: 0.75;
}

/* Wortlaut der Windows-Meldung – bewusst hervorgehoben, weil sehr viele
   Leute genau danach suchen. */
.fehlercode-detail-page .fc-meldung {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--warning);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 0 0 28px;
}

.fehlercode-detail-page .fc-meldung h2 {
  color: var(--text-heading);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 10px;
  opacity: 0.85;
}

.fehlercode-detail-page .fc-meldung blockquote {
  margin: 0 0 8px;
  color: var(--text-body);
  font-size: 0.94rem;
  font-style: italic;
}

.fehlercode-detail-page .fc-meldung blockquote:last-child { margin-bottom: 0; }

.fehlercode-detail-page .fc-meldung blockquote::before { content: "\201E"; }
.fehlercode-detail-page .fc-meldung blockquote::after  { content: "\201C"; }

/* Inhaltsabschnitte */
.fehlercode-detail-page .fc-abschnitt {
  margin: 0 0 28px;
}

.fehlercode-detail-page .fc-abschnitt h2 {
  color: var(--text-heading);
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}

.fehlercode-detail-page .fc-abschnitt-intro {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0 0 10px;
}

.fehlercode-detail-page .fc-was {
  color: var(--text-body);
  font-size: 0.96rem;
  margin: 0;
}

.fehlercode-detail-page .fc-ursachen,
.fehlercode-detail-page .fc-loesung {
  margin: 0;
  padding-left: 22px;
  color: var(--text-body);
  font-size: 0.94rem;
}

.fehlercode-detail-page .fc-ursachen li,
.fehlercode-detail-page .fc-loesung li { margin-bottom: 8px; }

.fehlercode-detail-page .fc-ursachen li:last-child,
.fehlercode-detail-page .fc-loesung li:last-child { margin-bottom: 0; }

.fehlercode-detail-page .fc-loesung li::marker {
  color: var(--accent-light);
  font-weight: 700;
}

.fehlercode-detail-page .fehlercode-verweise {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin: 0;
}

.fehlercode-detail-page .fehlercode-verweise a {
  color: var(--accent-light);
  text-decoration: underline;
  text-decoration-color: rgba(99, 137, 199, 0.4);
  text-underline-offset: 2px;
}

.fehlercode-detail-page .fehlercode-verweise a:hover {
  text-decoration-color: var(--accent-light);
}

/* Verwandte Fehlercodes */
.fehlercode-detail-page .fc-verwandt {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.fehlercode-detail-page .fc-kachel {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.fehlercode-detail-page .fc-kachel:hover,
.fehlercode-detail-page .fc-kachel:focus-visible {
  border-color: var(--accent-light);
  background: var(--bg-elevated);
}

.fehlercode-detail-page .fc-kachel:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 137, 199, 0.25);
}

.fehlercode-detail-page .fc-kachel-code {
  display: block;
  color: var(--text-heading);
  font-family: "Cascadia Code", "Consolas", "SFMono-Regular", Menlo, monospace;
  font-size: 0.9rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.fehlercode-detail-page .fc-kachel-name {
  display: block;
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-top: 2px;
}

/* Schaltfläche zurück zur Übersicht */
.fehlercode-detail-page .fc-cta,
.fehlercode-page .fc-cta { margin: 0 0 8px; }

.fehlercode-detail-page .fc-button,
.fehlercode-page .fc-button {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 8px;
  background: var(--primary);
  border: 1px solid var(--primary);
  color: var(--text-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.fehlercode-detail-page .fc-button:hover,
.fehlercode-page .fc-button:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.fehlercode-detail-page .fc-button:active,
.fehlercode-page .fc-button:active {
  background: var(--primary-active);
  border-color: var(--primary-active);
}

.fehlercode-detail-page code {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  font-family: "Cascadia Code", "Consolas", "SFMono-Regular", Menlo, monospace;
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

.fehlercode-detail-page footer { margin-top: 48px; }

@media (prefers-reduced-motion: reduce) {
  .fehlercode-detail-page .fc-kachel { transition: none; }
}


/* =====================================================================
   CMD- & PowerShell-Befehle (cmd-befehle.php) – body.cmd-page
   ===================================================================== */

.cmd-page {
  padding: calc(var(--site-header-height) + 24px) 20px 24px;
  line-height: 1.6;
}

.cmd-page .wrap {
  max-width: 820px;
  margin: 0 auto;
}

.cmd-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.cmd-page .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-light);
}

.cmd-page h1 {
  color: var(--text-heading);
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.cmd-page .intro {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 8px;
  max-width: 600px;
}

.cmd-page .cmd-meta {
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin: 0 0 28px;
  opacity: 0.7;
}

.cmd-page .cmd-disclaimer {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-body);
  background: rgba(186,117,23,0.08);
  border-left: 3px solid var(--warning);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 24px;
  max-width: 720px;
}

/* Suchfeld (identisch zum Glossar-/Fehlercode-Pattern) */
.cmd-page .search-box {
  margin-bottom: 16px;
}

.cmd-page .search-box input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--text-heading);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cmd-page .search-box input::placeholder { color: var(--text-secondary); }

.cmd-page .search-box input:focus {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(99, 137, 199, 0.25);
}

/* Gruppen-Filter (Alle / CMD / PowerShell) – oberste, immer sichtbare Ebene */
.cmd-page .gruppen-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: sticky;
  top: var(--site-header-height);
  background: var(--bg-body);
  padding: 10px 0 10px;
  margin-bottom: 0;
  z-index: 3;
}

.cmd-page .gruppen-filter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.cmd-page .gruppen-filter button:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  background: var(--bg-elevated);
}

.cmd-page .gruppen-filter button.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-heading);
}

/* Kategorie-Filter (Unterkategorien) – zweite Ebene, erscheint erst nach
   Auswahl einer Gruppe. Dadurch bleiben auf dem Smartphone standardmäßig
   nur 3 Buttons statt 14 sichtbar. */
.cmd-page .kategorie-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: sticky;
  top: calc(var(--site-header-height) + 52px);
  background: var(--bg-body);
  padding: 0 0 18px;
  margin-bottom: 8px;
  z-index: 2;
}

.cmd-page .kategorie-filter[hidden] { display: none; }

.cmd-page .kategorie-filter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.cmd-page .kategorie-filter button[hidden] { display: none; }

.cmd-page .kategorie-filter button:hover:not(:disabled) {
  border-color: var(--accent-light);
  color: var(--accent-light);
  background: var(--bg-elevated);
}

.cmd-page .kategorie-filter button.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-heading);
}

.cmd-page .kategorie-filter button:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Kategorie-Überschrift */
.cmd-page .kategorie-heading {
  color: var(--accent-light);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 32px 0 12px;
}

.cmd-page .kategorie-heading:first-of-type { margin-top: 8px; }
.cmd-page .kategorie-heading.is-hidden { display: none; }

/* Befehl-Karten */
.cmd-page .cmd-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cmd-page .cmd-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 10px;
  padding: 18px 20px;
  scroll-margin-top: calc(var(--site-header-height) + 96px);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.cmd-page .cmd-card:hover {
  border-color: var(--accent-light);
  border-left-color: var(--accent-light);
  background: var(--bg-elevated);
}

.cmd-page .cmd-card:target {
  border-color: var(--accent-light);
  border-left-color: var(--accent-light);
  background: var(--bg-elevated);
  animation: glossarZielBlitz 1.6s ease;
}

.cmd-page .cmd-card.is-hidden { display: none; }

.cmd-page .cmd-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.cmd-page .cmd-befehl {
  color: var(--text-heading);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  font-family: "Cascadia Code", "Consolas", "SFMono-Regular", Menlo, monospace;
  font-size: 0.92rem;
  font-weight: 700;
}

.cmd-page .cmd-typ {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.cmd-page .cmd-typ-powershell {
  color: var(--accent-light);
  border-color: var(--accent-light);
}

/* Admin-Kennzeichnung – muss auf den ersten Blick auffallen */
.cmd-page .cmd-admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-left: auto;
}

.cmd-page .cmd-admin-ja {
  color: var(--warning);
  background: rgba(186, 117, 23, 0.14);
  border: 1px solid rgba(186, 117, 23, 0.4);
}

.cmd-page .cmd-admin-ja::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 6px var(--warning);
}

.cmd-page .cmd-admin-nein {
  color: var(--success);
  background: rgba(29, 158, 117, 0.12);
  border: 1px solid rgba(29, 158, 117, 0.35);
}

.cmd-page .cmd-admin-nein::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.cmd-page .cmd-beschreibung {
  color: var(--text-body);
  font-size: 0.92rem;
  margin: 0 0 14px;
}

.cmd-page .cmd-block {
  margin-bottom: 12px;
}

.cmd-page .cmd-block:last-of-type { margin-bottom: 0; }

.cmd-page .cmd-block h3 {
  color: var(--text-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 6px;
  opacity: 0.85;
}

.cmd-page .cmd-beispiel-wrap {
  position: relative;
}

.cmd-page .cmd-beispiel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 44px 10px 14px;
  margin: 0;
  overflow-x: auto;
}

.cmd-page .cmd-beispiel code {
  color: var(--text-heading);
  font-family: "Cascadia Code", "Consolas", "SFMono-Regular", Menlo, monospace;
  font-size: 0.86rem;
  white-space: pre;
}

/* Kopieren-Button, oben rechts über dem Beispiel-Block */
.cmd-page .cmd-copy-btn {
  position: absolute;
  top: 7px;
  right: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.cmd-page .cmd-copy-btn:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  background: var(--bg-card);
}

.cmd-page .cmd-copy-btn:focus-visible {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(99, 137, 199, 0.25);
}

.cmd-page .cmd-copy-btn .icon-check { display: none; }

.cmd-page .cmd-copy-btn.is-copied {
  border-color: var(--success);
  color: var(--success);
}

.cmd-page .cmd-copy-btn.is-copied .icon-copy { display: none; }
.cmd-page .cmd-copy-btn.is-copied .icon-check { display: block; }

.cmd-page .cmd-copy-btn::after {
  content: "Kopiert";
  position: absolute;
  top: 50%;
  right: calc(100% + 8px);
  transform: translateY(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-heading);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.cmd-page .cmd-copy-btn.is-copied::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .cmd-page .cmd-copy-btn,
  .cmd-page .cmd-copy-btn::after { transition: none; }
}

.cmd-page .cmd-hinweis {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.cmd-page .no-results {
  display: none;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  color: var(--text-secondary);
  margin-top: 16px;
}

.cmd-page .no-results.show { display: block; }

.cmd-page footer { margin-top: 48px; }

@media (prefers-reduced-motion: reduce) {
  .cmd-page .cmd-card { transition: none; }
}


/* ============================================================
   Windows-Termine  (Body-Klasse: kalender-page)
   Grundgerüst – Datenquelle wandert später in termine-data.php.
   ============================================================ */

.kalender-page .wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.kalender-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.kalender-page .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-light);
}

.kalender-page h1 {
  color: var(--text-heading);
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.kalender-page .intro {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 8px;
  max-width: 600px;
}

.kalender-page .kalender-meta {
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin: 0 0 28px;
  opacity: 0.7;
}

.kalender-page .search-box { margin-bottom: 16px; }

.kalender-page .search-box input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--text-heading);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.kalender-page .search-box input::placeholder { color: var(--text-secondary); }

.kalender-page .search-box input:focus {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(99, 137, 199, 0.25);
}

/* Filterzeile: Produktlinie */
.kalender-page .produkt-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  position: sticky;
  top: var(--site-header-height);
  background: var(--bg-body);
  padding: 10px 0 18px;
  z-index: 2;
}

.kalender-page .produkt-filter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.kalender-page .produkt-filter button:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  background: var(--bg-elevated);
}

.kalender-page .produkt-filter button.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-heading);
}

/* Termin-Karten (Timeline) */
.kalender-page .termin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kalender-page .termin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-secondary);
  border-radius: 10px;
  padding: 18px 20px;
  transition: border-color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.kalender-page .termin-card:hover {
  border-color: var(--accent-light);
  background: var(--bg-elevated);
}

.kalender-page .termin-card.is-hidden { display: none; }

/* Status-Farbcodierung: grün = weit weg, orange = bald, blau = angekündigt,
   grau + ausgegraut = vergangen */
.kalender-page .termin-card.status-weit-weg { border-left-color: var(--success); }
.kalender-page .termin-card.status-bald { border-left-color: var(--warning); }
.kalender-page .termin-card.status-kommend { border-left-color: var(--accent-light); }
.kalender-page .termin-card.status-vergangen {
  border-left-color: var(--text-secondary);
  opacity: 0.55;
}
.kalender-page .termin-card.status-vergangen:hover { opacity: 0.8; }

.kalender-page .termin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.kalender-page .termin-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.kalender-page .termin-status-badge.status-weit-weg {
  color: var(--success);
  background: rgba(29, 158, 117, 0.12);
  border-color: rgba(29, 158, 117, 0.35);
}

.kalender-page .termin-status-badge.status-bald {
  color: var(--warning);
  background: rgba(186, 117, 23, 0.14);
  border-color: rgba(186, 117, 23, 0.4);
}

.kalender-page .termin-status-badge.status-kommend {
  color: var(--accent-light);
  background: rgba(99, 137, 199, 0.14);
  border-color: rgba(99, 137, 199, 0.4);
}

.kalender-page .termin-status-badge.status-vergangen {
  color: var(--text-secondary);
  background: var(--bg-elevated);
}

.kalender-page .termin-datum {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.kalender-page .termin-titel {
  color: var(--text-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.kalender-page .termin-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.kalender-page .termin-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-elevated);
}

.kalender-page .termin-badge-produkt { color: var(--accent-light); }

.kalender-page .termin-beschreibung {
  color: var(--text-body);
  font-size: 0.92rem;
  margin: 0;
}

.kalender-page .no-results {
  display: none;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  color: var(--text-secondary);
  margin-top: 16px;
}

.kalender-page .no-results.show { display: block; }

.kalender-page footer { margin-top: 48px; }

@media (prefers-reduced-motion: reduce) {
  .kalender-page .termin-card { transition: none; }
}


/* ============================================================
   E-Mail-Header-Analyzer  (Body-Klasse: header-analyzer-page)
   An style.css anhaengen. Nutzt die zentralen :root-Variablen.
   ============================================================ */

.header-analyzer-page .ha-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 64px;
  position: relative;
  z-index: 1;
}

.header-analyzer-page h1 {
  color: var(--text-heading);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin: 10px 0 14px;
}

.header-analyzer-page .ha-intro {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 620px;
  margin-bottom: 28px;
}

/* ---- Eingabe-Karte ---- */
.header-analyzer-page .ha-input-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}

.header-analyzer-page .ha-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.header-analyzer-page textarea {
  width: 100%;
  min-height: 170px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-body);
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 12px;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.header-analyzer-page textarea:focus {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(99, 137, 199, 0.25);
}

.header-analyzer-page textarea::placeholder { color: var(--text-secondary); }

/* ---- Buttons ---- */
.header-analyzer-page .ha-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.header-analyzer-page .ha-btn {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.header-analyzer-page .ha-btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.header-analyzer-page .ha-btn:active { background: var(--primary-active); transform: translateY(1px); }

.header-analyzer-page .ha-btn-sec {
  background: var(--bg-elevated);
  color: var(--text-body);
  border-color: var(--border);
}
.header-analyzer-page .ha-btn-sec:hover { background: var(--border); border-color: var(--accent-light); }

/* ---- Anleitung (aufklappbar) ---- */
.header-analyzer-page .ha-guide {
  margin-top: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.header-analyzer-page .ha-guide-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-heading);
  list-style: none;
  user-select: none;
  transition: background 0.15s ease;
}
.header-analyzer-page .ha-guide-summary::-webkit-details-marker { display: none; }
.header-analyzer-page .ha-guide-summary:hover { background: var(--bg-elevated); }
.header-analyzer-page .ha-guide-summary:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: -2px;
}

.header-analyzer-page .ha-guide-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.header-analyzer-page .ha-guide-summary::after {
  content: "";
  margin-left: auto;
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.header-analyzer-page .ha-guide[open] .ha-guide-summary::after {
  transform: rotate(-135deg);
}

.header-analyzer-page .ha-guide-body {
  padding: 4px 18px 18px;
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-body);
}
.header-analyzer-page .ha-guide-body p { margin: 10px 0; }

.header-analyzer-page .ha-guide-h {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-light);
  margin: 18px 0 6px;
}
.header-analyzer-page .ha-guide-h:first-child { margin-top: 14px; }

.header-analyzer-page .ha-guide-list {
  margin: 8px 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.header-analyzer-page .ha-guide em { font-style: normal; color: var(--text-heading); }

.header-analyzer-page .ha-kbd {
  display: inline-block;
  padding: 1px 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.8em;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  color: var(--text-heading);
}

@media (prefers-reduced-motion: reduce) {
  .header-analyzer-page .ha-guide-summary::after { transition: none; }
}

/* ---- Ergebnisbereich ---- */
.header-analyzer-page .ha-results {
  display: none;
  flex-direction: column;
  gap: 14px;
  margin-top: 26px;
}

.header-analyzer-page .ha-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}

.header-analyzer-page .ha-card-title {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  margin: 0 0 12px;
}

.header-analyzer-page .ha-card-hint {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: -4px 0 12px;
}

/* ---- Auth-Badges ---- */
.header-analyzer-page .ha-badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.header-analyzer-page .ha-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid transparent;
}

.header-analyzer-page .ha-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

.header-analyzer-page .ha-badge-ok   { background: rgba(29,158,117,0.14);  color: #34c997; border-color: rgba(29,158,117,0.35); }
.header-analyzer-page .ha-badge-warn { background: rgba(186,117,23,0.16);  color: #e0a23e; border-color: rgba(186,117,23,0.4); }
.header-analyzer-page .ha-badge-fail { background: rgba(226,75,74,0.14);   color: #ed6b6a; border-color: rgba(226,75,74,0.4); }
.header-analyzer-page .ha-badge-none { background: rgba(123,132,147,0.16); color: #9aa4b3; border-color: rgba(123,132,147,0.35); }

.header-analyzer-page .ha-dot-ok   { background: #34c997; }
.header-analyzer-page .ha-dot-warn { background: #e0a23e; }
.header-analyzer-page .ha-dot-fail { background: #ed6b6a; }
.header-analyzer-page .ha-dot-none { background: #9aa4b3; }

/* ---- Alignment-Hinweise ---- */
.header-analyzer-page .ha-align { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.header-analyzer-page .ha-align:empty { display: none; }

.header-analyzer-page .ha-flag {
  font-size: 0.83rem;
  line-height: 1.45;
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 3px solid;
}
.header-analyzer-page .ha-flag-ok   { background: rgba(29,158,117,0.08); border-color: var(--success); color: var(--text-body); }
.header-analyzer-page .ha-flag-warn { background: rgba(186,117,23,0.08); border-color: var(--warning); color: var(--text-body); }

/* ---- Absender-Meta ---- */
.header-analyzer-page .ha-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.header-analyzer-page .ha-meta-item {
  background: var(--bg-elevated);
  border-radius: 8px;
  padding: 10px 12px;
}

.header-analyzer-page .ha-meta-label { font-size: 0.7rem; color: var(--text-secondary); margin-bottom: 3px; }
.header-analyzer-page .ha-meta-value { font-size: 0.85rem; color: var(--text-body); word-break: break-word; }

/* ---- Übertragungsweg ---- */
.header-analyzer-page .ha-route-list { display: flex; flex-direction: column; gap: 6px; }

.header-analyzer-page .ha-route-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elevated);
  border-radius: 8px;
  padding: 8px 12px;
}

.header-analyzer-page .ha-route-num {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

.header-analyzer-page .ha-route-host {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.8rem;
  color: var(--text-body);
  word-break: break-all;
}
.header-analyzer-page .ha-route-ip { color: var(--text-secondary); }

/* ---- Gesamtbewertung ---- */
.header-analyzer-page .ha-verdict {
  border-radius: 10px;
  border-left: 4px solid;
  padding: 14px 16px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.header-analyzer-page .ha-verdict strong { color: var(--text-heading); }

.header-analyzer-page .ha-verdict-ok   { background: rgba(29,158,117,0.10); border-color: var(--success); color: var(--text-body); }
.header-analyzer-page .ha-verdict-warn { background: rgba(186,117,23,0.10); border-color: var(--warning); color: var(--text-body); }
.header-analyzer-page .ha-verdict-fail { background: rgba(226,75,74,0.10);  border-color: var(--error);   color: var(--text-body); }

/* ---- Disclaimer & Footer ---- */
.header-analyzer-page .ha-disclaimer {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.5;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 4px;
}

.header-analyzer-page .ha-footer {
  margin-top: 40px;
  display: flex;
  gap: 10px;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.header-analyzer-page .ha-footer a { color: var(--accent-light); text-decoration: none; }
.header-analyzer-page .ha-footer a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .header-analyzer-page .ha-main { padding: 32px 16px 48px; }
  .header-analyzer-page .ha-btn { flex: 1 1 auto; }
}

/* ---- Datei-Import: Dropzone, Hinweis, Status ---- */
.header-analyzer-page .ha-input-card { position: relative; }

.header-analyzer-page .ha-drop-hint {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 10px 0 0;
}
.header-analyzer-page .ha-drop-hint strong { color: var(--text-body); font-weight: 600; }

.header-analyzer-page .ha-file-status {
  font-size: 0.82rem;
  line-height: 1.45;
  margin-top: 10px;
  display: none;
}
.header-analyzer-page .ha-file-status.ha-file-status-ok,
.header-analyzer-page .ha-file-status.ha-file-status-err { display: block; }
.header-analyzer-page .ha-file-status-ok  { color: #34c997; }
.header-analyzer-page .ha-file-status-err { color: #ed6b6a; }

/* Drag-Over-Overlay über der gesamten Eingabe-Karte */
.header-analyzer-page .ha-drop-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 12px;
  border: 2px dashed var(--accent-light);
  background: rgba(33, 87, 175, 0.18);
  backdrop-filter: blur(1px);
  color: var(--text-heading);
  font-size: 0.95rem;
  font-weight: 500;
  pointer-events: none;
  z-index: 2;
}
.header-analyzer-page .ha-input-card.ha-dragover .ha-drop-overlay { display: flex; }
.header-analyzer-page .ha-input-card.ha-dragover { border-color: var(--accent-light); }

/* ---- Beispiel-Header als dezenter Textlink ---- */
.header-analyzer-page .ha-demo-line {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 10px 0 0;
}
.header-analyzer-page .ha-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent-light);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.header-analyzer-page .ha-link:hover { color: var(--primary-hover); }
.header-analyzer-page .ha-link:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---- Startseite: Tools-Abschnitt + Beta-Tag ---- */
.home-page .section-heading {
  width: 100%;
  max-width: 360px;
  text-align: left;
  margin: 26px 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  animation: rise 0.7s ease-out 0.3s backwards;
}
.home-page .section-heading + .buttons { margin-top: 12px; }

.home-page a.button .tag-beta {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(99, 137, 199, 0.14);
  border: 1px solid rgba(99, 137, 199, 0.35);
  border-radius: 5px;
  padding: 2px 6px;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .home-page .section-heading { animation: none; }
}

/* =====================================================================
   Hardware-Setup (hardware.php) – body.hardware-page
   ===================================================================== */

.hardware-page .hw-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

/* Hero */
.hardware-page .hw-hero {
  margin-bottom: 48px;
}

.hardware-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hardware-page .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-light);
  flex-shrink: 0;
}

.hardware-page h1 {
  color: var(--text-heading);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 14px;
  line-height: 1.2;
}

.hardware-page .hw-intro {
  color: var(--text-body);
  max-width: 640px;
  margin: 0 0 10px;
  line-height: 1.6;
}

.hardware-page .hw-disclaimer {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Sektionen */
.hardware-page .hw-section {
  margin-bottom: 40px;
}

.hardware-page .hw-section-title {
  color: var(--text-heading);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hardware-page .hw-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Karte (Basis) */
.hardware-page .hw-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.15s ease;
  position: relative;
  overflow: hidden;
}

.hardware-page .hw-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 137, 199, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

/* Hover nur für verlinkte Karten */
.hardware-page a.hw-item:hover {
  border-color: var(--accent-light);
  background: var(--bg-elevated);
  transform: translateY(-1px);
}

.hardware-page a.hw-item:hover::before {
  opacity: 1;
}

/* Karte ohne Link */
.hardware-page .hw-item.no-link {
  opacity: 0.55;
  cursor: default;
}

/* Icon-Box */
.hardware-page .hw-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.hardware-page .hw-item.no-link .hw-icon {
  background: var(--bg-elevated);
}

/* Text */
.hardware-page .hw-info {
  flex: 1;
  min-width: 0;
}

.hardware-page .hw-name {
  display: block;
  color: var(--text-heading);
  font-weight: 500;
  font-size: 0.95rem;
}

.hardware-page .hw-meta {
  display: block;
  color: var(--text-secondary);
  font-size: 0.78rem;
  margin-top: 2px;
}

/* Pfeil (erscheint beim Hover) */
.hardware-page .hw-arrow {
  flex-shrink: 0;
  color: var(--accent-light);
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.hardware-page a.hw-item:hover .hw-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* "Kein Link"-Badge */
.hardware-page .hw-badge {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
}

/* Responsiv */
@media (max-width: 480px) {
  .hardware-page .hw-name {
    font-size: 0.88rem;
  }
  .hardware-page .hw-meta {
    font-size: 0.74rem;
  }
  .hardware-page .hw-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hardware-page .hw-item,
  .hardware-page .hw-item::before,
  .hardware-page .hw-arrow {
    transition: none;
    animation: none;
  }
}
/* =====================================================================
   Unterstützen-Seite (unterstuetzen.php + unterstuetzen-danke.php)
   ===================================================================== */

.unterstuetzen-page,
.unterstuetzen-danke-page {
  padding: calc(var(--site-header-height) + 24px) 20px 24px;
  line-height: 1.6;
}

.unterstuetzen-page .wrap,
.unterstuetzen-danke-page .wrap {
  max-width: 640px;
  margin: 0 auto;
}

/* Eyebrow */
.unterstuetzen-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.unterstuetzen-page .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-light);
}

.unterstuetzen-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  color: var(--text-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.unterstuetzen-page .intro {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 40px;
}

/* Spendenkarte */
.unterstuetzen-page .spende-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
}

/* Betrag-Chips */
.unterstuetzen-page .betrag-auswahl {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.unterstuetzen-page .betrag-chip {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.unterstuetzen-page .betrag-chip:hover {
  border-color: var(--accent-light);
  transform: translateY(-1px);
}

.unterstuetzen-page .betrag-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-heading);
}

.unterstuetzen-page .betrag-chip.active:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.unterstuetzen-page .betrag-chip--custom {
  border-style: dashed;
}

/* Eigener-Betrag-Feld */
.unterstuetzen-page .custom-betrag-feld {
  margin-bottom: 24px;
}

.unterstuetzen-page .custom-betrag-feld label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.unterstuetzen-page .custom-betrag-feld input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--text-heading);
  font-size: 1rem;
}

.unterstuetzen-page .custom-betrag-feld input:focus {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(99, 137, 199, 0.25);
}

/* PayPal-Button-Bereich */
.unterstuetzen-page .paypal-button-container {
  margin-bottom: 20px;
  min-height: 45px;
}

.unterstuetzen-page .spende-hinweis {
  color: var(--text-secondary);
  font-size: 0.82rem;
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

/* Zurück-Link */
.unterstuetzen-page .zurueck-link,
.unterstuetzen-danke-page .zurueck-link {
  margin-top: 32px;
  text-align: center;
}

.unterstuetzen-page .zurueck-link a,
.unterstuetzen-danke-page .zurueck-link a {
  color: var(--accent-light);
  text-decoration: none;
  font-size: 0.9rem;
}

.unterstuetzen-page .zurueck-link a:hover,
.unterstuetzen-danke-page .zurueck-link a:hover {
  text-decoration: underline;
}

/* Dankesseite */
.unterstuetzen-danke-page .danke-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px 32px;
  text-align: center;
}

.unterstuetzen-danke-page .danke-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.unterstuetzen-danke-page h1 {
  color: var(--text-heading);
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 700;
  margin: 0 0 16px;
}

.unterstuetzen-danke-page .danke-text {
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 20px;
}

.unterstuetzen-danke-page .danke-detail {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .unterstuetzen-page,
  .unterstuetzen-danke-page {
    padding: 40px 16px 60px;
  }
  .unterstuetzen-page .spende-card {
    padding: 24px 18px;
  }
}

.stats-page .stats-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 20px 80px;
  position: relative;
  z-index: 1;
}

.stats-page .stats-updated {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: -8px;
  margin-bottom: 32px;
}

.stats-page .stats-updated-warn {
  color: var(--warning);
  margin-left: 4px;
}

/* Bewusst dezent gehalten (Textlink statt Button) – ein Angebot für
   interessierte Nutzer, kein Aufruf zum Klicken. */
.stats-page .stats-refresh-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--text-secondary);
  font: inherit;
  font-size: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(123, 132, 147, 0.5);
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.stats-page .stats-refresh-link:hover:not(:disabled) {
  color: var(--accent-light);
  text-decoration-color: var(--accent-light);
}

.stats-page .stats-refresh-link:focus-visible {
  outline: none;
  border-radius: 3px;
  box-shadow: 0 0 0 3px rgba(99, 137, 199, 0.25);
}

.stats-page .stats-refresh-link:disabled {
  color: var(--text-secondary);
  text-decoration: none;
  cursor: default;
  opacity: 0.7;
}

/* Kleiner Inline-Spinner neben dem Aktualisieren-Link, gleiche Optik wie
   .stats-spinner (großer Ladehinweis beim ersten Seitenaufruf), nur als
   Mini-Variante – blendet dabei nicht die bereits sichtbaren Zahlen aus. */
.stats-page .stats-refresh-spinner {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-left: 6px;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--accent-light);
  animation: stats-spin 0.8s linear infinite;
  vertical-align: -1px;
}

@media (prefers-reduced-motion: reduce) {
  .stats-page .stats-refresh-spinner {
    animation: none;
  }
}

.stats-page .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.stats-page .stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.stats-page .stat-card:hover {
  border-color: var(--accent-light);
  background: var(--bg-elevated);
}

.stats-page .stat-value {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--text-heading);
}

.stats-page .stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stats-page h2 {
  color: var(--text-heading);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin: 40px 0 16px;
}

.stats-page .video-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stats-page .video-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.15s ease;
  position: relative;
  overflow: hidden;
}

.stats-page .video-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 137, 199, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.stats-page .video-row:hover {
  border-color: var(--accent-light);
  background: var(--bg-elevated);
  transform: translateY(-1px);
}

.stats-page .video-row:hover::before {
  opacity: 1;
}

.stats-page .video-rank {
  flex-shrink: 0;
  width: 32px;
  text-align: center;
  font-weight: 700;
  color: var(--accent-light);
}

.stats-page .video-thumb {
  flex-shrink: 0;
  width: 100px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg-elevated);
}

.stats-page .video-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.stats-page .video-title {
  color: var(--text-heading);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-page .video-meta {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.stats-page .stats-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 13, 0.92);
  backdrop-filter: blur(2px);
}

.stats-page .stats-loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-body);
  font-size: 0.95rem;
  text-align: center;
  max-width: 320px;
}

.stats-page .stats-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent-light);
  animation: stats-spin 0.8s linear infinite;
}

@keyframes stats-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .stats-page .video-row,
  .stats-page .stat-card {
    transition: none;
  }

  .stats-page .stats-spinner {
    animation: none;
  }
}

@media (max-width: 480px) {
  .stats-page .video-thumb { width: 76px; height: 43px; }
  .stats-page .video-title { white-space: normal; }
}


/* =====================================================================
   Startseite: Schnellsuche
   ===================================================================== */

.home-page .home-search {
  width: 100%;
  max-width: 440px;
  margin-top: 28px;
  animation: rise 0.7s ease-out 0.09s backwards;
}

.home-page .home-search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-heading);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  margin-bottom: 8px;
}

.home-page .home-search-input::placeholder {
  color: var(--text-secondary);
}

.home-page .home-search-input:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(99, 137, 199, 0.15);
}

.home-page .home-search-targets {
  display: flex;
  gap: 8px;
}

.home-page .home-search-btn {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  padding: 8px 10px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.home-page .home-search-btn:hover {
  color: var(--text-heading);
  border-color: var(--accent-light);
  background: var(--bg-elevated);
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-search { animation: none; }
}

/* =====================================================================
   Startseite: Inhalts-Übersicht (2×2-Kachelraster)
   ===================================================================== */

.home-page .content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  max-width: 440px;
  margin-top: 12px;
  animation: rise 0.7s ease-out 0.32s backwards;
}

.home-page .content-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.15s ease;
}

.home-page .content-card:hover {
  border-color: var(--accent-light);
  background: var(--bg-elevated);
  transform: translateY(-2px);
}

.home-page .content-card-icon {
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 4px;
}

.home-page .content-card-title {
  color: var(--text-heading);
  font-size: 0.88rem;
  font-weight: 700;
}

.home-page .content-card-desc {
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .home-page .content-grid { animation: none; }
}

/* =====================================================================
   Startseite: Suchformular (Submit-Button-Variante)
   ===================================================================== */

.home-page .home-search {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-bottom: 0;
}

.home-page .home-search-input {
  margin-bottom: 0;
}

.home-page .home-search-submit {
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0 18px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.home-page .home-search-submit:hover  { background: var(--primary-hover); }
.home-page .home-search-submit:active { background: var(--primary-active); }

/* =====================================================================
   Suchergebnisseite (suche.php) – body.suche-page
   ===================================================================== */

.suche-page .suche-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.suche-page .suche-header { margin-bottom: 32px; }

.suche-page .suche-header h1 {
  color: var(--text-heading);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 18px;
}

.suche-page .suche-form {
  display: flex;
  gap: 10px;
}

.suche-page .suche-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-heading);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.suche-page .suche-input::placeholder { color: var(--text-secondary); }

.suche-page .suche-input:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(99, 137, 199, 0.15);
}

.suche-page .suche-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.suche-page .suche-btn:hover  { background: var(--primary-hover); }
.suche-page .suche-btn:active { background: var(--primary-active); }

.suche-page .suche-zusammenfassung {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin: 0 0 28px;
}

.suche-page .suche-hint {
  color: var(--text-secondary);
  text-align: center;
  padding: 48px 0;
  margin: 0;
}

.suche-page .suche-leer {
  text-align: center;
  padding: 48px 0;
}

.suche-page .suche-leer-titel {
  color: var(--text-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.suche-page .suche-leer-hint {
  margin: 0;
  color: var(--text-secondary);
}

.suche-page .suche-gruppe { margin-bottom: 36px; }

.suche-page .suche-gruppe-titel {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.suche-page .suche-karte {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 8px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.suche-page .suche-karte:hover {
  border-color: var(--accent-light);
  background: var(--bg-elevated);
  transform: translateY(-1px);
}

.suche-page .suche-karte-titel {
  color: var(--text-heading);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.suche-page .suche-karte-sep { color: var(--text-secondary); font-weight: 400; }

.suche-page .suche-karte-desc {
  color: var(--text-body);
  font-size: 0.85rem;
  line-height: 1.5;
}

.suche-page .suche-karte-meta {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.suche-page .suche-karte-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.suche-page .suche-karte-badge--cmd {
  color: var(--accent-light);
  background: rgba(99, 137, 199, 0.12);
  border-color: rgba(99, 137, 199, 0.3);
}

.suche-page .suche-karte-badge--powershell {
  color: #8bb4e8;
  background: rgba(139, 180, 232, 0.12);
  border-color: rgba(139, 180, 232, 0.3);
}

.suche-page .suche-mehr {
  display: block;
  text-align: center;
  padding: 10px;
  color: var(--accent-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px dashed var(--border);
  border-radius: 8px;
  transition: border-color 0.15s ease, color 0.15s ease;
  margin-top: -2px;
}

.suche-page .suche-mehr:hover {
  border-color: var(--accent-light);
  color: var(--primary-hover);
}

.suche-page mark {
  background: rgba(99, 137, 199, 0.28);
  color: var(--text-heading);
  border-radius: 2px;
  padding: 0 1px;
}

@media (max-width: 480px) {
  .suche-page .suche-form  { flex-direction: column; }
  .suche-page .suche-btn   { width: 100%; }
  .home-page  .home-search { flex-direction: column; }
  .home-page  .home-search-submit { width: 100%; padding: 12px; }
}

/* =====================================================================
   Header-Suche: Suchbutton in der Nav + Suchoverlay
   ===================================================================== */

.site-nav-search-btn {
  background: none;
  border: none;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  transition: color 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.site-nav-search-btn:hover {
  color: var(--text-heading);
  background: var(--bg-elevated);
}

/* Das Overlay liegt absolut über dem gesamten Header */
.site-header-search {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  background: rgba(5, 8, 13, 0.97);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.site-header-search.is-open {
  opacity: 1;
  pointer-events: all;
}

.site-header-search-form {
  flex: 1;
  display: flex;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto;
}

.site-header-search-form input {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--text-heading);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.site-header-search-form input::placeholder { color: var(--text-secondary); }

.site-header-search-form input:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(99, 137, 199, 0.15);
}

.site-header-search-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.site-header-search-submit:hover  { background: var(--primary-hover); }
.site-header-search-submit:active { background: var(--primary-active); }

.site-header-search-close {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.site-header-search-close:hover {
  color: var(--text-heading);
  background: var(--bg-card);
}

/* =====================================================================
   Startseite: breiteres Layout – Kacheln und Content-Elemente
   ===================================================================== */

/* Ab ~580px alles breiter aufziehen */
@media (min-width: 580px) {
  .home-page .buttons,
  .home-page .content-grid,
  .home-page .glossar-teaser,
  .home-page .termin-teaser {
    max-width: 620px;
  }
  .home-page .section-heading {
    max-width: 620px;
  }
}

/* Ab ~800px: 4 Spalten für die Kacheln, noch breiter */
@media (min-width: 800px) {
  .home-page .content-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 820px;
  }
  .home-page .buttons,
  .home-page .glossar-teaser,
  .home-page .termin-teaser {
    max-width: 820px;
  }
  .home-page .section-heading {
    max-width: 820px;
  }
}
