/* ==========================================================================
   P4Story Rework – Design-System "Kristall & Krone" (Slice 162)
   Selbst gehostete Schriften (SIL OFL 1.1, siehe /pstatic/fonts/LICENSE-*.txt).
   Strenge CSP: default-src 'self'; style-src 'self' (keine externen Quellen).
   ========================================================================== */

@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/pstatic/fonts/cinzel-latin-wght-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/pstatic/fonts/inter-latin-wght-normal.woff2') format('woff2');
}

/* --------------------------------------------------------------------------
   1. DESIGN-TOKENS (Marke & Länder)
   -------------------------------------------------------------------------- */
:root {
  /* Marken-Kernfarben (DESIGN_MARKE.md) */
  --tiefblau: #0B1B3B;
  --randblau: #0B1220;
  --kristall: #1E4FB6;
  --gold: #D4A74A;
  --gold2: #F0D18B;
  --elfenbein: #EBDCC2;
  --anthrazit: #1B1F26;
  --cyan: #4CCBFF;
  --violett: #8A5CFF;
  --rot: #D14B4B;
  --gruen: #2DA868;

  /* Semantische Flächen & Linien (Abwärtskompatibel) */
  --bg: #0B1220;
  --bg2: #0E172A;
  --flaeche: #0B1B3B;
  --flaeche2: #13264E;
  --flaeche-anthrazit: #1B1F26;
  --linie: #1E3156;
  --linie2: #2D4778;
  --gold-linie: rgba(212, 167, 74, 0.34);
  --gold-linie-hell: rgba(240, 209, 139, 0.65);

  /* Textfarben (WCAG 2.2 AA auf #0B1220 und #0B1B3B geprüft) */
  --text: #EBDCC2;
  --text-hell: #F7EFE0;
  --leise: #B0BDD4;
  --glut: #D14B4B;
  --ok: #2DA868;
  --fehler: #D14B4B;

  /* Länder-Tokens (DESIGN_LAENDER.md – Original-Messwerte) */
  /* Valorien (West): Karminrot, Gold, Quaderstein */
  --val: #B83426;
  --val-tief: #8C1C12;
  --val-gold: #BA8E00;
  --val-stein: #7A7666;
  --val-blau: #394078;

  /* Derion (Ost): Azur, Violett, Schnitzholz, Silbergrün */
  --der: #4A86CB;
  --der-violett: #493D68;
  --der-hell: #9EC3F0;
  --der-holz: #664A26;
  --der-blatt: #86B294;

  /* Gor (Neutral, Mitte): Sand, Ocker, Bronze */
  --gor: #C7B181;
  --gor-ocker: #7B673E;
  --gor-bronze: #B0793A;

  /* Typografie & Skala */
  --schrift: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --zier: 'Cinzel', Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --fs-xs: 0.78rem;
  --fs-sm: 0.88rem;
  --fs-basis: 1rem;
  --fs-lead: clamp(1.05rem, 1.8vw, 1.22rem);
  --fs-h3: clamp(1.12rem, 1.6vw, 1.32rem);
  --fs-h2: clamp(1.5rem, 3vw, 2.25rem);
  --fs-h1: clamp(2rem, 4.5vw, 3rem);
  --fs-hero: clamp(2.6rem, 6.5vw, 4.5rem);

  /* Abstände, Radien & Schatten */
  --space-1: 6px;
  --space-2: 12px;
  --space-3: 18px;
  --space-4: 24px;
  --space-5: 36px;
  --space-6: 56px;
  --space-7: 80px;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  --schatten: 0 14px 36px rgba(4, 8, 16, 0.58), inset 0 1px 0 rgba(240, 209, 139, 0.1);
  --schatten-schwebend: 0 18px 42px rgba(4, 8, 16, 0.75), 0 0 22px rgba(76, 203, 255, 0.16);
  --kristall-schein: 0 0 20px rgba(30, 79, 182, 0.45), 0 0 6px rgba(76, 203, 255, 0.35);
}

/* --------------------------------------------------------------------------
   2. BASIS & RESET (Mobile-First)
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--text);
  font: 400 var(--fs-basis)/1.65 var(--schrift);
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1100px 550px at 85% -5%, rgba(30, 79, 182, 0.22), transparent 65%),
    radial-gradient(900px 480px at 10% 15%, rgba(212, 167, 74, 0.08), transparent 60%),
    linear-gradient(180deg, #0B1220 0%, #09101D 100%);
  background-attachment: fixed;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

img,
picture,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--gold2);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

a:hover {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--zier);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.22;
  color: var(--text-hell);
  margin: 1.4em 0 0.5em;
}

h1 {
  font-size: var(--fs-h1);
  margin-top: 0.15em;
  letter-spacing: 0.05em;
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-top: 1.1em;
}

h1:first-child,
h2:first-child,
h3:first-child {
  margin-top: 0;
}

p {
  margin: 0.5em 0 1em;
}

p.lead,
.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--elfenbein);
  max-width: 68ch;
}

ul,
ol {
  padding-left: 1.35em;
  margin: 0.5em 0 1em;
}

li {
  margin-bottom: 0.35em;
}

code,
.mono {
  font-family: var(--mono);
  font-size: 0.9em;
  background: rgba(11, 18, 32, 0.75);
  border: 1px solid var(--linie);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--gold2);
}

pre {
  background: rgba(8, 13, 24, 0.9);
  border: 1px solid var(--linie2);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--text-hell);
  margin: 8px 0;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
}

hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-linie), transparent);
  margin: var(--space-5) 0;
}

/* Fokus & Skip-Link (WCAG 2.2 AA) */
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--gold2);
  color: var(--randblau);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 999;
  box-shadow: var(--schatten);
}

.skip:focus {
  left: 12px;
  outline: 3px solid var(--cyan);
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* Symbole aus Sprite /pstatic/img/icons.svg */
.symbol,
.emblem {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.symbol {
  width: 42px;
  height: 42px;
  color: var(--gold);
  margin-bottom: 10px;
}

.klein-sym {
  width: 20px;
  height: 20px;
  margin: 0;
  color: inherit;
}

.knopf .symbol {
  stroke-width: 2.2;
}

.klein,
small {
  font-size: var(--fs-sm);
  color: var(--leise);
}

.leise-t {
  color: var(--leise);
}

/* Hilfsklassen zur Vermeidung von Inline-Styles (CSP style-src 'self') */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 6px !important; }
.mt-2 { margin-top: 14px !important; }
.mt-3 { margin-top: 18px !important; }
.mt-4 { margin-top: 22px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: 22px !important; }
.text-mitte { text-align: center; }

/* --------------------------------------------------------------------------
   3. KOPFZEILE, LOGO & NAVIGATION
   -------------------------------------------------------------------------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-linie);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.kopf::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(76, 203, 255, 0.35) 50%, transparent 95%);
}

.kopf-innen {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text-hell);
  font-family: var(--zier);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
}

.marke:hover {
  color: var(--gold2);
  text-decoration: none;
}

.marke img {
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(76, 203, 255, 0.35));
}

.marke-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.marke b {
  color: var(--gold);
}

.marke-unter {
  display: block;
  font-family: var(--zier);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--gold2);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Mobiler Menüknopf (Mobile-First standardmäßig sichtbar, ab 860px ausgeblendet) */
.menue-knopf {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  margin-left: auto;
  background: rgba(19, 38, 78, 0.6);
  border: 1px solid var(--gold-linie);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  cursor: pointer;
  color: var(--text-hell);
}

.menue-knopf:hover {
  border-color: var(--cyan);
}

.menue-knopf i {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold2);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menue-knopf[aria-expanded="true"] i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menue-knopf[aria-expanded="true"] i:nth-child(2) {
  opacity: 0;
}

.menue-knopf[aria-expanded="true"] i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

#hauptnav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: rgba(11, 18, 32, 0.98);
  border-bottom: 1px solid var(--gold-linie);
  flex-direction: column;
  align-items: stretch;
  padding: 12px 16px 18px;
  gap: 4px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.7);
}

#hauptnav.offen {
  display: flex;
}

#hauptnav a,
.nav-form button {
  color: var(--leise);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  width: 100%;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

#hauptnav a:hover,
.nav-form button:hover {
  color: var(--text-hell);
  background: rgba(30, 79, 182, 0.22);
  border-color: rgba(76, 203, 255, 0.28);
  text-decoration: none;
}

#hauptnav a.an {
  color: var(--gold2);
  background: rgba(212, 167, 74, 0.12);
  border-color: var(--gold-linie);
}

#hauptnav .nav-dl {
  color: var(--gold2);
  font-weight: 600;
}

.nav-trenner {
  width: auto;
  height: 1px;
  background: var(--linie);
  margin: 6px 0;
}

.nav-form {
  display: inline;
  margin: 0;
}

.sprache {
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  color: var(--gold2) !important;
  border: 1px solid var(--linie2) !important;
  text-align: center !important;
}

@media (min-width: 860px) {
  .kopf-innen {
    padding: 10px 24px;
  }

  .menue-knopf {
    display: none;
  }

  #hauptnav {
    display: flex;
    position: static;
    background: transparent;
    border-bottom: 0;
    flex-direction: row;
    align-items: center;
    padding: 0;
    margin-left: auto;
    flex-wrap: wrap;
    gap: 4px;
    box-shadow: none;
  }

  #hauptnav a,
  .nav-form button {
    width: auto;
    padding: 7px 11px;
    font-size: 0.92rem;
    text-align: center;
  }

  .nav-trenner {
    width: 1px;
    height: 22px;
    margin: 0 6px;
  }
}

/* --------------------------------------------------------------------------
   4. CONTAINER, RASTER & ABSCHNITTSTITEL MIT FILIGRAN-TRENNER
   -------------------------------------------------------------------------- */
.seite {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 16px 64px;
}

.breit {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .seite {
    padding: 38px 24px 76px;
  }

  .breit {
    padding: 0 24px;
  }
}

.abschnitt {
  padding: 48px 0;
  position: relative;
}

.abschnitt.dunkel {
  background:
    radial-gradient(900px 320px at 50% 0%, rgba(30, 79, 182, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(11, 18, 32, 0.92), rgba(14, 23, 42, 0.96));
  border-top: 1px solid var(--gold-linie);
  border-bottom: 1px solid var(--gold-linie);
}

@media (min-width: 860px) {
  .abschnitt {
    padding: 72px 0;
  }
}

/* Abschnittstitel mit Gold-Filigran-Trenner (/pstatic/img/zier/trenner.svg) */
.titel-block,
.abschnitt-titel {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}

.titel-block h2,
.abschnitt-titel h2 {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-hell);
}

.titel-block .titel-unter,
.abschnitt-titel .titel-unter {
  color: var(--leise);
  font-size: 1rem;
  margin: 0 auto 14px;
  max-width: 60ch;
}

.trenner,
.titel-block::after,
.abschnitt-titel::after {
  content: "";
  display: block;
  width: min(100%, 420px);
  height: 22px;
  margin: 12px auto 0;
  background-image:
    url('/pstatic/img/zier/trenner.svg'),
    linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: contain, 100% 1px;
}

/* Raster-Layouts (Mobile-first -> Desktop) */
.raster {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.raster.zwei,
.zwei {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.zwei-spalten {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (min-width: 600px) {
  .raster {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (min-width: 768px) {
  .raster.zwei,
  .zwei {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

@media (min-width: 920px) {
  .zwei-spalten {
    grid-template-columns: 1.15fr 1fr;
    gap: 44px;
  }
}

/* --------------------------------------------------------------------------
   5. KARTEN & KACHELN MIT GOLDRAND-FILIGRAN-ECKEN
   -------------------------------------------------------------------------- */
.karte {
  position: relative;
  background:
    linear-gradient(135deg, var(--gold) 0, var(--gold) 2px, transparent 2px) 0 0 / 14px 14px no-repeat,
    linear-gradient(225deg, var(--gold) 0, var(--gold) 2px, transparent 2px) 100% 0 / 14px 14px no-repeat,
    linear-gradient(45deg, var(--gold) 0, var(--gold) 2px, transparent 2px) 0 100% / 14px 14px no-repeat,
    linear-gradient(315deg, var(--gold) 0, var(--gold) 2px, transparent 2px) 100% 100% / 14px 14px no-repeat,
    linear-gradient(180deg, rgba(19, 38, 78, 0.72) 0%, rgba(11, 27, 59, 0.92) 40%, rgba(11, 18, 32, 0.96) 100%);
  border: 1px solid var(--gold-linie);
  border-radius: var(--radius);
  padding: 20px;
  margin: 0 0 22px;
  box-shadow: var(--schatten);
}

@media (min-width: 768px) {
  .karte {
    padding: 28px;
  }
}

/* Schmale Formular-Karten (Login, Registrieren, Passwort vergessen) */
.karte-schmal,
.form-karte {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.kachel {
  position: relative;
  background:
    linear-gradient(135deg, rgba(212, 167, 74, 0.75) 0, rgba(212, 167, 74, 0.75) 2px, transparent 2px) 0 0 / 10px 10px no-repeat,
    linear-gradient(225deg, rgba(212, 167, 74, 0.75) 0, rgba(212, 167, 74, 0.75) 2px, transparent 2px) 100% 0 / 10px 10px no-repeat,
    linear-gradient(45deg, rgba(212, 167, 74, 0.75) 0, rgba(212, 167, 74, 0.75) 2px, transparent 2px) 0 100% / 10px 10px no-repeat,
    linear-gradient(315deg, rgba(212, 167, 74, 0.75) 0, rgba(212, 167, 74, 0.75) 2px, transparent 2px) 100% 100% / 10px 10px no-repeat,
    linear-gradient(180deg, rgba(19, 38, 78, 0.65), rgba(11, 27, 59, 0.9));
  border: 1px solid var(--linie2);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--schatten);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

a.kachel {
  color: var(--text);
  display: block;
}

a.kachel:hover,
.kachel.interaktiv:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: var(--schatten-schwebend);
  text-decoration: none;
}

.kachel h3 {
  margin-top: 0.2em;
  color: var(--text-hell);
}

.kachel p {
  color: var(--leise);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   6. KNÖPFE (Primär Gold, Sekundär Kristall-Umriss) & ETIKETTEN
   -------------------------------------------------------------------------- */
.knopf,
button.knopf,
#hauptnav a.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, var(--gold2) 0%, var(--gold) 100%);
  color: #0B1220;
  border: 1px solid var(--gold2);
  border-radius: var(--radius-sm);
  padding: 11px 22px;
  font-family: var(--zier);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(212, 167, 74, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, border-color 0.18s ease;
}

.knopf:hover,
button.knopf:hover,
#hauptnav a.knopf:hover {
  filter: brightness(1.08);
  color: #0B1220;
  border-color: var(--cyan);
  box-shadow: 0 6px 24px rgba(212, 167, 74, 0.42), 0 0 14px rgba(76, 203, 255, 0.35);
  transform: translateY(-1px);
  text-decoration: none;
}

.knopf:active,
button.knopf:active {
  transform: translateY(0);
}

/* Sekundär: Kristall-Umriss (.geist / .leise / .sekundaer) */
.knopf.leise,
.knopf.geist,
.knopf.sekundaer {
  background: rgba(11, 27, 59, 0.72);
  color: var(--text-hell);
  border: 1px solid rgba(76, 203, 255, 0.45);
  box-shadow: inset 0 0 12px rgba(30, 79, 182, 0.35);
}

.knopf.leise:hover,
.knopf.geist:hover,
.knopf.sekundaer:hover {
  background: rgba(30, 79, 182, 0.38);
  color: #FFFFFF;
  border-color: var(--cyan);
  box-shadow: var(--kristall-schein);
  filter: none;
}

.knopf.gross {
  padding: 14px 28px;
  font-size: 1.02rem;
}

.knopf[aria-disabled="true"],
.knopf:disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.klein-k,
#hauptnav a.knopf.klein-k {
  padding: 7px 14px !important;
  font-size: 0.84rem !important;
}

/* Kopierknopf (für SHA-256 etc.) */
.kopier-knopf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(19, 38, 78, 0.75);
  color: var(--gold2);
  border: 1px solid var(--gold-linie);
  border-radius: var(--radius-sm);
  padding: 5px 11px;
  font-family: var(--schrift);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.kopier-knopf:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(30, 79, 182, 0.3);
}

.kopier-knopf.kopiert {
  border-color: var(--gruen);
  color: #8CE8B5;
}

/* Etiketten (Projektstand & Status-Badges) */
.etikett,
span.marke {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--schrift);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--linie2);
  background: rgba(11, 18, 32, 0.75);
  color: var(--leise);
  vertical-align: middle;
}

.etikett.fertig {
  color: #7CE8B0;
  border-color: rgba(45, 168, 104, 0.65);
  background: rgba(45, 168, 104, 0.14);
}

.etikett.in_arbeit {
  color: var(--gold2);
  border-color: rgba(212, 167, 74, 0.65);
  background: rgba(212, 167, 74, 0.14);
}

.etikett.geplant {
  color: #9EC3F0;
  border-color: rgba(76, 203, 255, 0.4);
  background: rgba(30, 79, 182, 0.2);
}

.etikett.neu {
  color: #0B1220;
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  border-color: var(--gold2);
  box-shadow: 0 0 12px rgba(212, 167, 74, 0.4);
}

.kachel .etikett {
  position: absolute;
  top: 14px;
  right: 14px;
}

/* --------------------------------------------------------------------------
   7. HERO-BÜHNE MIT <picture>-HINTERGRUND & KRISTALL-STATUS
   -------------------------------------------------------------------------- */
.held {
  position: relative;
  min-height: min(84vh, 740px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--gold-linie);
  background-color: var(--randblau);
}

.held-bild,
.held-pic {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('/pstatic/img/held.svg') center / cover no-repeat;
}

.held-bild picture,
.held-bild img,
.held-pic img,
.held > picture,
.held > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Mehrschichtiger Verlaufsschleier für garantierten WCAG-AA-Kontrast */
.held::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(700px 420px at 25% 50%, rgba(30, 79, 182, 0.24), transparent 70%),
    linear-gradient(90deg, rgba(11, 18, 32, 0.94) 0%, rgba(11, 18, 32, 0.72) 55%, rgba(11, 18, 32, 0.3) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 18, 32, 0.4) 28%, transparent 60%);
  pointer-events: none;
}

.held-text {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 16px;
  width: 100%;
}

@media (min-width: 768px) {
  .held-text {
    padding: 84px 24px;
  }
}

.held-text > div {
  max-width: 650px;
}

.augenbraue {
  display: inline-block;
  font-family: var(--zier);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold2);
  margin-bottom: 6px;
}

.held h1 {
  font-size: var(--fs-hero);
  margin: 0.1em 0 0.25em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-hell);
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.75);
}

.held h1 span {
  color: var(--gold);
}

.held-untertitel {
  display: block;
  font-family: var(--zier);
  font-size: clamp(0.88rem, 1.5vw, 1.08rem);
  font-weight: 600;
  letter-spacing: 0.36em;
  color: var(--gold2);
  text-transform: uppercase;
  margin-top: 4px;
}

.held p.lead {
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  color: var(--elfenbein);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.aktionen {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

/* Status-Pille mit Kristall-Puls */
.held-status {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding: 9px 16px;
  border: 1px solid var(--gold-linie);
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.78);
  backdrop-filter: blur(6px);
  font-size: 0.9rem;
  color: var(--leise);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.held-status b {
  color: var(--text-hell);
}

a.held-status:hover {
  border-color: var(--cyan);
  color: var(--text-hell);
  text-decoration: none;
}

.punkt {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--leise);
  display: inline-block;
  flex-shrink: 0;
}

.punkt.online {
  background: var(--gruen);
  box-shadow: 0 0 10px var(--gruen), 0 0 20px rgba(76, 203, 255, 0.5);
  animation: kristall-puls 3s ease-in-out infinite;
}

.punkt.offline {
  background: var(--rot);
  box-shadow: 0 0 8px rgba(209, 75, 75, 0.6);
}

.punkt.unbekannt {
  background: var(--gold);
}

/* --------------------------------------------------------------------------
   8. STOFFBANNER & LÄNDER-ARCHITEKTUR (Richtung 1 + 2 + 3 kombiniert)
   West: Valorien (Spitzbogen/Rautenfries/Zinnen)
   Mitte: Gor (Sand/Bronze-Stele)
   Ost: Derion (Rundbogen/Spiralranken)
   -------------------------------------------------------------------------- */
.banner-raster {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
  margin: 24px 0;
}

@media (min-width: 900px) {
  .banner-raster {
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
  }

  /* Geografische West-Mitte-Ost-Ordnung (Richtung 2) erzwingen, auch falls DOM abweicht */
  .banner-raster .banner-val,
  .banner-raster .banner.val {
    order: 1;
  }

  .banner-raster .banner-gor,
  .banner-raster .banner.gor {
    order: 2;
  }

  .banner-raster .banner-der,
  .banner-raster .banner.der {
    order: 3;
  }
}

.banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 22px 38px;
  margin-top: 10px;
  border: 1px solid var(--gold-linie);
  border-radius: 4px 4px 18px 18px;
  background: linear-gradient(180deg, rgba(19, 38, 78, 0.8), rgba(11, 18, 32, 0.95));
  color: var(--text);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  transform-origin: top center;
  animation: banner-wehen 7s ease-in-out infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

a.banner:hover,
.banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.72);
  text-decoration: none;
}

/* Metallene Querstange oben */
.banner::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7A5C22 0%, var(--gold2) 22%, var(--gold) 50%, var(--gold2) 78%, #7A5C22 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.65);
}

/* Goldfransen an der Unterkante */
.banner::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -6px;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0px,
    var(--gold) 4px,
    transparent 4px,
    transparent 8px
  );
  opacity: 0.85;
}

.banner .wappen {
  width: 72px;
  height: auto;
  margin: 4px auto 14px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
}

.banner-richtung {
  font-family: var(--zier);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold2);
  margin-bottom: 6px;
}

.banner h3,
.banner-titel {
  font-family: var(--zier);
  font-size: 1.38rem;
  margin: 0 0 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.banner-unter {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leise);
  margin: 0 0 12px;
}

.banner-text {
  font-size: 0.94rem;
  color: var(--text);
  margin: 0 0 16px;
  flex-grow: 1;
}

.banner-fuss {
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
  color: var(--gold2);
  font-weight: 600;
}

/* Valorien (West): Karminrot #8C1C12 + Gold #BA8E00 + Quaderstein #7A7666, Spitzbogen/Zinnen/Rautenfries */
.banner-val,
.banner.val {
  background:
    /* Zinnen-/Rautenfries unter der Querstange */
    repeating-linear-gradient(90deg, rgba(186, 142, 0, 0.35) 0 10px, transparent 10px 20px) 0 6px / 100% 5px no-repeat,
    /* Spitzbogen-Lichtschein */
    radial-gradient(120% 70% at 50% 0%, rgba(184, 52, 38, 0.52), transparent 70%),
    linear-gradient(175deg, rgba(140, 28, 18, 0.72) 0%, rgba(76, 75, 62, 0.35) 55%, rgba(11, 18, 32, 0.96) 100%);
  border-color: rgba(186, 142, 0, 0.65);
  box-shadow: inset 0 0 0 1px rgba(186, 142, 0, 0.22), 0 16px 36px rgba(0, 0, 0, 0.55);
}

.banner-val h3,
.banner.val h3 {
  color: #F5D57A;
}

/* Derion (Ost): Azur #4A86CB + Violett #493D68 + Schnitzholz #664A26, Rundbogen/Spiralranken */
.banner-der,
.banner.der {
  background:
    /* Rundbogen-Kuppelschein */
    radial-gradient(90% 55% at 50% 8%, rgba(74, 134, 203, 0.48), transparent 72%),
    /* Silbergrüner Blattrahmen-Schimmer */
    radial-gradient(circle at 12% 12%, rgba(134, 178, 148, 0.25) 0, transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(134, 178, 148, 0.25) 0, transparent 28%),
    linear-gradient(175deg, rgba(73, 61, 104, 0.78) 0%, rgba(102, 74, 38, 0.32) 58%, rgba(11, 18, 32, 0.96) 100%);
  border-color: rgba(74, 134, 203, 0.68);
  border-radius: 16px 16px 26px 26px;
  box-shadow: inset 0 0 0 1px rgba(134, 178, 148, 0.24), 0 16px 36px rgba(0, 0, 0, 0.55);
}

.banner-der h3,
.banner.der h3 {
  color: var(--der-hell);
}

/* Gor (Mitte): Sand #C7B181 + Ocker #7B673E + Bronze #B0793A, Architrav/Stele */
.banner-gor,
.banner.gor {
  background:
    linear-gradient(90deg, transparent 10%, rgba(199, 177, 129, 0.45) 50%, transparent 90%) 0 8px / 100% 3px no-repeat,
    radial-gradient(110% 60% at 50% 0%, rgba(176, 121, 58, 0.42), transparent 70%),
    linear-gradient(175deg, rgba(123, 103, 62, 0.62) 0%, rgba(62, 50, 32, 0.45) 55%, rgba(11, 18, 32, 0.96) 100%);
  border-color: rgba(199, 177, 129, 0.6);
  box-shadow: inset 0 0 0 1px rgba(176, 121, 58, 0.28), 0 16px 36px rgba(0, 0, 0, 0.55);
}

.banner-gor h3,
.banner.gor h3 {
  color: var(--gor);
}

/* Bestehende .reich-Karten & .land-marke (Abwärtskompatibel + Richtung-3-Akzente) */
.reich-paar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .reich-paar {
    grid-template-columns: 1fr 1fr;
  }

  .reich-paar .reich.gor {
    grid-column: 1 / -1;
  }
}

.reich {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--linie2);
  position: relative;
  overflow: hidden;
}

.reich.val {
  background:
    repeating-linear-gradient(90deg, rgba(186, 142, 0, 0.28) 0 8px, transparent 8px 16px) 0 0 / 100% 3px no-repeat,
    linear-gradient(160deg, rgba(140, 28, 18, 0.45), rgba(122, 118, 102, 0.14) 70%, rgba(11, 18, 32, 0.85));
  border-color: rgba(186, 142, 0, 0.58);
  border-top: 3px solid var(--val-gold);
}

.reich.der {
  background:
    linear-gradient(160deg, rgba(73, 61, 104, 0.62), rgba(74, 134, 203, 0.18) 70%, rgba(11, 18, 32, 0.85));
  border-color: rgba(74, 134, 203, 0.58);
  border-top: 3px solid var(--der);
  border-radius: 14px;
}

.reich.gor {
  background:
    linear-gradient(160deg, rgba(123, 103, 62, 0.4), rgba(176, 121, 58, 0.12) 70%, rgba(11, 18, 32, 0.85));
  border-color: rgba(199, 177, 129, 0.55);
  border-top: 3px solid var(--gor-bronze);
}

.reich .wappen {
  float: right;
  margin: 0 0 8px 14px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.reich.val h3 { color: #F5D57A; }
.reich.der h3 { color: var(--der-hell); }
.reich.gor h3 { color: var(--gor); }

.reich-unter {
  margin: -0.35em 0 0.55em;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--leise);
}

.reich-start {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 0.55em;
  margin-bottom: 0;
  color: var(--gold2);
}

.land-titel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--linie2);
}

.land-titel .wappen {
  width: 42px;
  height: auto;
}

.land-titel.val { border-bottom-color: var(--val-gold); }
.land-titel.der { border-bottom-color: var(--der); }
.land-titel.gor { border-bottom-color: var(--gor-bronze); }

.land-marke {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--linie2);
}

.land-marke.val {
  background: rgba(140, 28, 18, 0.55);
  border-color: var(--val-gold);
  color: #F7E1A8;
}

.land-marke.der {
  background: rgba(73, 61, 104, 0.68);
  border-color: var(--der);
  color: #DCE9FA;
}

.land-marke.gor {
  background: rgba(123, 103, 62, 0.5);
  border-color: var(--gor-bronze);
  color: #F3E6C8;
}

/* --------------------------------------------------------------------------
   9. FORMULARE, MELDUNGEN & HINWEISE (inkl. Admin-Kompatibilität)
   -------------------------------------------------------------------------- */
.formular label,
label {
  display: block;
  margin: 14px 0 6px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--elfenbein);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="number"],
input[type="file"],
select,
textarea {
  width: 100%;
  background: rgba(8, 13, 24, 0.88);
  color: var(--text-hell);
  border: 1px solid var(--linie2);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 6px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(76, 203, 255, 0.22);
  outline: none;
}

input:user-invalid,
select:user-invalid,
textarea:user-invalid,
.fehler-feld {
  border-color: var(--rot);
  box-shadow: 0 0 0 2px rgba(209, 75, 75, 0.25);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

form .knopf {
  margin-top: 16px;
}

.flash-wrap {
  max-width: 1140px;
  margin: 18px auto 0;
  padding: 0 16px;
}

.meldung {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  border: 1px solid var(--linie2);
  border-left: 4px solid var(--gold);
  background: rgba(11, 27, 59, 0.92);
  color: var(--text-hell);
  box-shadow: var(--schatten);
}

.meldung.ok {
  border-color: rgba(45, 168, 104, 0.55);
  border-left-color: var(--gruen);
  color: #CCF5DF;
}

.meldung.fehler {
  border-color: rgba(209, 75, 75, 0.6);
  border-left-color: var(--rot);
  color: #FAD2D2;
}

.hinweis {
  border: 1px solid rgba(212, 167, 74, 0.28);
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(212, 167, 74, 0.1), rgba(11, 27, 59, 0.45));
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--elfenbein);
  font-size: 0.94rem;
  margin: 14px 0;
}

/* --------------------------------------------------------------------------
   10. TABELLEN, REITER & BESCHREIBUNGSLISTEN
   -------------------------------------------------------------------------- */
.tabelle {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--linie);
  border-radius: var(--radius-sm);
  background: rgba(8, 13, 24, 0.55);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
}

th,
td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--linie);
  vertical-align: top;
}

th {
  font-family: var(--zier);
  color: var(--gold2);
  background: rgba(19, 38, 78, 0.55);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

tr:last-child td {
  border-bottom: 0;
}

tr:hover td {
  background: rgba(76, 203, 255, 0.05);
}

/* Reiter / Tabs */
.reiter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--linie);
}

.reiter a,
.reiter button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--linie2);
  background: rgba(11, 27, 59, 0.55);
  color: var(--leise);
  font-family: var(--zier);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
}

.reiter a:hover,
.reiter button:hover {
  border-color: var(--cyan);
  color: var(--text-hell);
  text-decoration: none;
}

.reiter a.selected,
.reiter a.an,
.reiter button[aria-selected="true"] {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(212, 167, 74, 0.24), rgba(11, 27, 59, 0.85));
  color: var(--gold2);
  box-shadow: inset 0 1px 0 rgba(240, 209, 139, 0.3);
}

.meldungstext {
  white-space: pre-wrap;
  margin: 6px 0;
  color: var(--leise);
}

dl.werte {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  margin: 12px 0;
}

dl.werte dt {
  color: var(--leise);
  font-weight: 500;
}

dl.werte dd {
  margin: 0;
  color: var(--text-hell);
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   11. SEITEN-SPEZIFISCHE KOMPONENTEN (News, Download, Klassen, Story, Status, Fehler)
   -------------------------------------------------------------------------- */
/* Neuigkeiten & Patchnotes */
.news-liste {
  display: grid;
  gap: 14px;
}

.woche-titel {
  font-family: var(--schrift);
  font-size: var(--fs-sm);
  color: var(--gold2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 20px 0 4px;
}

.news-eintrag {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid var(--linie2);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(19, 38, 78, 0.55), rgba(11, 27, 59, 0.85));
  box-shadow: var(--schatten);
}

@media (min-width: 680px) {
  .news-eintrag {
    grid-template-columns: 140px 1fr;
    gap: 18px;
  }
}

.news-eintrag .wann {
  color: var(--leise);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.news-eintrag h3 {
  margin: 0 0 0.35em;
  font-size: 1.1rem;
  color: var(--text-hell);
}

.news-eintrag ul {
  margin: 0.45em 0 0;
  padding-left: 1.25em;
  color: var(--leise);
}

/* Call-to-Action-Banner unten */
.cta {
  text-align: center;
  padding: 64px 20px;
  background:
    radial-gradient(650px 240px at 50% 0%, rgba(212, 167, 74, 0.18), transparent 70%),
    radial-gradient(500px 220px at 50% 100%, rgba(30, 79, 182, 0.22), transparent 70%),
    var(--bg2);
  border-top: 1px solid var(--gold-linie);
}

.cta .knopf {
  margin: 6px;
}

/* Download, SHA-256, Schritt-Listen & FAQ */
.dl-haupt {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

@media (min-width: 900px) {
  .dl-haupt {
    grid-template-columns: 1.35fr 1fr;
  }
}

.dl-box {
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px;
  background:
    radial-gradient(500px 220px at 0% 0%, rgba(212, 167, 74, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(19, 38, 78, 0.78), rgba(11, 27, 59, 0.94));
  box-shadow: var(--schatten);
}

.dl-box.platzhalter {
  border-style: dashed;
  border-color: var(--linie2);
  background: rgba(11, 27, 59, 0.65);
}

.sha-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.sha {
  font-family: var(--mono);
  font-size: 0.82rem;
  word-break: break-all;
  background: rgba(8, 13, 24, 0.92);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--linie2);
  display: block;
  margin-top: 6px;
  color: var(--gold2);
}

ol.schritte {
  counter-reset: s;
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

ol.schritte > li {
  counter-increment: s;
  position: relative;
  padding: 4px 0 18px 48px;
  border-left: 1px solid rgba(212, 167, 74, 0.28);
  margin-left: 15px;
}

ol.schritte > li:last-child {
  border-left-color: transparent;
  padding-bottom: 4px;
}

ol.schritte > li::before {
  content: counter(s);
  position: absolute;
  left: -16px;
  top: 0;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--flaeche2), var(--flaeche));
  border: 1px solid var(--gold);
  color: var(--gold2);
  font-family: var(--zier);
  font-weight: 700;
  font-size: 0.88rem;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

details {
  border: 1px solid var(--linie2);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  margin-bottom: 10px;
  background: rgba(11, 27, 59, 0.65);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

details:hover {
  border-color: var(--gold-linie-hell);
}

details[open] {
  border-color: var(--gold);
  background: rgba(11, 27, 59, 0.9);
}

details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-hell);
  list-style-position: outside;
}

details[open] summary {
  color: var(--gold2);
  margin-bottom: 8px;
}

details p:last-child {
  margin-bottom: 0;
}

/* Klassen, Story & Welt */
.klassen-raster {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.klasse-kachel {
  text-align: left;
}

.klasse-kachel .emblem {
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 8px rgba(212, 167, 74, 0.25));
}

.emblem {
  color: var(--gold);
}

.klasse-kopf {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.klasse-kopf .emblem {
  width: 88px;
  height: 88px;
  flex: none;
}

.kapitel-liste {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

.kapitel {
  border: 1px solid var(--linie2);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: rgba(11, 27, 59, 0.75);
  border-top: 3px solid var(--linie2);
  box-shadow: var(--schatten);
}

.kapitel.valorien {
  border-top-color: var(--val-gold);
  background: linear-gradient(180deg, rgba(140, 28, 18, 0.26), rgba(11, 27, 59, 0.85) 65%);
}

.kapitel.derion {
  border-top-color: var(--der);
  background: linear-gradient(180deg, rgba(73, 61, 104, 0.4), rgba(11, 27, 59, 0.85) 65%);
}

.kapitel.beide {
  border-top-color: var(--gold);
  background: linear-gradient(180deg, rgba(212, 167, 74, 0.16), rgba(11, 27, 59, 0.85) 65%);
}

.kapitel .nr {
  font-family: var(--zier);
  font-size: 0.76rem;
  color: var(--gold2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.karte-bild,
.szenen-bild img {
  border-radius: var(--radius);
  border: 1px solid var(--gold-linie);
  display: block;
  width: 100%;
  height: auto;
  box-shadow: var(--schatten);
}

/* Status-Zahlen & Kacheln */
.statuszahl {
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  font-family: var(--zier);
  font-weight: 700;
  color: var(--gold2);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.status-raster {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
}

.status-raster .kachel {
  text-align: center;
  padding: 18px 14px;
}

/* Fehlerseite (400/403/404/413/429/500) */
.fehler-seite {
  text-align: center;
  max-width: 560px;
  margin: 40px auto;
  padding: 36px 24px;
}

.fehler-code {
  font-family: var(--zier);
  font-size: clamp(3rem, 8vw, 4.8rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 0 24px rgba(30, 79, 182, 0.6);
}

/* --------------------------------------------------------------------------
   12. FUSSZEILE
   -------------------------------------------------------------------------- */
.fuss {
  border-top: 1px solid var(--gold-linie);
  background: linear-gradient(180deg, #09101D 0%, #060A12 100%);
  margin-top: 48px;
}

.fuss-innen {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 820px) {
  .fuss-innen {
    padding: 44px 24px;
    grid-template-columns: 1fr 1.4fr;
    gap: 36px;
  }
}

.fuss p {
  color: var(--leise);
  font-size: 0.88rem;
  max-width: 440px;
  margin-top: 10px;
}

.fuss nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-content: flex-start;
}

.fuss nav a {
  color: var(--leise);
  font-size: 0.9rem;
}

.fuss nav a:hover {
  color: var(--gold2);
}

/* --------------------------------------------------------------------------
   13. DEZENTE ANIMATIONEN & PREFERS-REDUCED-MOTION
   -------------------------------------------------------------------------- */
@keyframes kristall-puls {
  0%, 100% {
    box-shadow: 0 0 8px var(--gruen), 0 0 14px rgba(76, 203, 255, 0.35);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 14px var(--gruen), 0 0 24px rgba(76, 203, 255, 0.75);
    transform: scale(1.08);
  }
}

@keyframes banner-wehen {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(0.35deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Ergaenzung Seitengruppe inhalt (Gemini, Slice 162) ---- */
/* ==========================================================================
   P4Story Rework – Zusatz-Styles Gruppe "inhalt"
   Ergänzungen zu NEU_p4.css für Szenen-Banner, Reichs-Teaser & Häfen
   ========================================================================== */

/* Szenen-Kopf mit Key-Art (<picture>) und Textblende für Welt, Story und Gor */
.szenen-kopf {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gold-linie);
  background: var(--flaeche);
  box-shadow: var(--schatten);
}

.szenen-kopf .szenen-bild img {
  border: 0;
  border-radius: 0;
  max-height: 400px;
  object-fit: cover;
  object-position: center;
}

.szenen-inhalt {
  padding: 22px 24px;
  background: linear-gradient(180deg, rgba(11, 27, 59, 0.92) 0%, rgba(11, 18, 32, 0.98) 100%);
  border-top: 1px solid var(--gold-linie);
}

.gor-buehne {
  border-color: rgba(199, 177, 129, 0.6);
}

.gor-wappen-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.gor-wappen-zeile > div {
  flex: 1 1 280px;
}

/* Karten-Figur ohne Inline-Margin */
.karte-figur {
  margin: 0 0 22px;
}

/* Hafen-Sektion auf welt.html */
.hafen-sektion .szenen-bild img {
  max-height: 300px;
  object-fit: cover;
}

.hafen-marken {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* Reichs-Bühnen auf story.html (hero_valorien / hero_derion) */
.story-reich-block {
  margin-bottom: 42px;
}

.reich-buehne {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--linie2);
  background: rgba(11, 27, 59, 0.78);
  box-shadow: var(--schatten);
}

.reich-buehne.val {
  border-color: rgba(186, 142, 0, 0.6);
}

.reich-buehne.der {
  border-color: rgba(74, 134, 203, 0.6);
}

.reich-buehne .szenen-bild img {
  border: 0;
  border-radius: 0;
  max-height: 280px;
  object-fit: cover;
  object-position: center;
}

.reich-buehne-kopf {
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reich-buehne-kopf .land-titel {
  border-bottom: 0;
  padding-bottom: 0;
}

.land-titel.beide {
  border-bottom-color: var(--gold);
}

/* ---- Ergaenzung Seitengruppe dienst (Gemini, Slice 162) ---- */
/* ==========================================================================
   Ergänzungen Gruppe "dienst" (download, news, status, melden, fehler, recht)
   ========================================================================== */

/* Kopfzeile in Download- & Status-Karten (Titel + Stand-Etikett bündig) */
.dl-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

/* Patchnotes-Zeitleiste (Kristall-Achse links) */
.news-zeitleiste {
  position: relative;
  padding-left: 22px;
  border-left: 2px solid var(--gold-linie);
}

.news-zeitleiste .woche-titel {
  position: relative;
}

.news-zeitleiste .woche-titel::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--gold);
  border: 2px solid var(--bg);
  box-shadow: 0 0 10px rgba(212, 167, 74, 0.55);
}

.news-zeitleiste .news-eintrag {
  position: relative;
}

.news-zeitleiste .news-eintrag::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 24px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(76, 203, 255, 0.65);
}

/* Zentrierte Status-Bühne & Kanal-Statuszeile */
.status-buehne {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.status-kanal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Mittlere Kartenbreite für Meldeformular und Rechtstexte */
.karte-mittel {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.karte-recht {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* Fehlerseite Zentrierung & Logo-Schein */
.fehler-logo {
  display: block;
  margin: 0 auto 14px;
  filter: drop-shadow(0 0 14px rgba(76, 203, 255, 0.4));
}

.fehler-text {
  margin-left: auto;
  margin-right: auto;
}

.aktionen-mitte {
  justify-content: center;
}

/* ---- Ergaenzung Seitengruppe konto (Gemini, Slice 162) ---- */
/* ==========================================================================
   P4Story Rework – Zusatz-CSS Gruppe "konto" (Kristall & Krone)
   Ergänzungen für login, registrieren, passwort_vergessen, konto, rangliste, gilde
   ========================================================================== */

/* 1. Zentrierte Formularkarten mit Kristall-/Filigranrahmen */
.form-karte-mittel {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.kristall-karte {
  box-shadow:
    var(--schatten),
    0 0 32px rgba(30, 79, 182, 0.28),
    inset 0 0 24px rgba(76, 203, 255, 0.06);
  border-color: var(--gold-linie-hell);
}

.kristall-karte::before {
  content: "";
  display: block;
  height: 2px;
  margin: -20px -20px 20px;
  background: linear-gradient(90deg, transparent 5%, var(--cyan) 30%, var(--gold2) 50%, var(--cyan) 70%, transparent 95%);
  opacity: 0.85;
}

@media (min-width: 768px) {
  .kristall-karte::before {
    margin: -28px -28px 24px;
  }
}

.form-kopf {
  text-align: center;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--linie);
}

.form-kopf h1 {
  font-size: var(--fs-h2);
  margin: 4px 0 6px;
}

.form-kristall {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 79, 182, 0.45) 0%, rgba(11, 18, 32, 0.9) 75%);
  border: 1px solid var(--gold-linie);
  box-shadow: var(--kristall-schein);
  margin-bottom: 8px;
}

.form-kristall .symbol {
  width: 28px;
  height: 28px;
  margin: 0;
  color: var(--gold2);
}

.feld-gruppe {
  margin-bottom: 14px;
}

.feld-gruppe label {
  margin-top: 0;
}

.feld-hilfe {
  display: block;
  margin-top: 5px;
  font-size: var(--fs-xs);
  color: var(--leise);
}

.haken-zeile {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 8px;
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--text);
}

.haken-zeile input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.knopf-block {
  width: 100%;
  justify-content: center;
}

.form-fuss {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--linie);
  text-align: center;
}

/* 2. Kontoübersicht & Charaktertabelle mit Länder-Akzenten */
.konto-kopf,
.konto-abschnitt-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--gold-linie);
}

.konto-name {
  color: var(--gold2);
}

.char-name {
  color: var(--text-hell);
  font-weight: 600;
}

.stufe-badge {
  display: inline-block;
  min-width: 28px;
  text-align: center;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(19, 38, 78, 0.75);
  border: 1px solid var(--gold-linie);
  color: var(--gold2);
  font-family: var(--zier);
  font-weight: 700;
  font-size: 0.84rem;
}

.zahl-spalte {
  font-variant-numeric: tabular-nums;
}

/* Dezent farbige Zeilenkante je Land (Valorien / Derion / Gor) */
tr.zeile-val td:first-child {
  border-left: 3px solid var(--val);
}

tr.zeile-der td:first-child {
  border-left: 3px solid var(--der);
}

tr.zeile-gor td:first-child {
  border-left: 3px solid var(--gor-bronze);
}

.land-marke {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.land-marke .wappen {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* 3. Rangliste: Länder-Reiter (Valorien / Derion) & Podestplätze */
.reiter-laender {
  border-bottom-color: var(--gold-linie);
}

.reiter-land {
  position: relative;
}

.reiter-land .wappen {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.reiter-land.val {
  border-color: rgba(186, 142, 0, 0.45);
}

.reiter-land.val.selected {
  background: linear-gradient(180deg, rgba(140, 28, 18, 0.72), rgba(11, 27, 59, 0.9));
  border-color: var(--val-gold);
  color: #F7E1A8;
}

.reiter-land.der {
  border-color: rgba(74, 134, 203, 0.45);
}

.reiter-land.der.selected {
  background: linear-gradient(180deg, rgba(73, 61, 104, 0.78), rgba(11, 27, 59, 0.9));
  border-color: var(--der);
  color: var(--der-hell);
}

.reiter-land.gor.selected {
  background: linear-gradient(180deg, rgba(123, 103, 62, 0.65), rgba(11, 27, 59, 0.9));
  border-color: var(--gor-bronze);
  color: var(--gor);
}

.rang-platz {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 50%;
  font-family: var(--zier);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--leise);
  background: rgba(11, 18, 32, 0.6);
  border: 1px solid var(--linie2);
}

.rang-platz.rang-1 {
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  color: #0B1220;
  border-color: var(--gold2);
  box-shadow: 0 0 12px rgba(212, 167, 74, 0.45);
}

.rang-platz.rang-2 {
  background: linear-gradient(180deg, #E2E8F0, #94A3B8);
  color: #0B1220;
  border-color: #E2E8F0;
}

.rang-platz.rang-3 {
  background: linear-gradient(180deg, #E6B38A, #B0793A);
  color: #0B1220;
  border-color: #E6B38A;
}

.gilde-link {
  font-weight: 600;
}

/* 4. Gilden-Detailseite */
.gilde-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gold-linie);
}

.gilde-wappen-symbol {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(19, 38, 78, 0.85), rgba(11, 18, 32, 0.95));
  border: 1px solid var(--gold);
  box-shadow: var(--schatten);
}

.gilde-wappen-symbol .symbol {
  width: 36px;
  height: 36px;
  margin: 0;
  color: var(--gold2);
}

.gilde-meta {
  color: var(--leise);
  margin-top: 4px;
}

.kacheln .kachel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ---- Slice 162: Ortsbeschriftung der Karte (HTML statt <text> im SVG; Lage = Ortsmarken in karte.svg, viewBox 1200x800) ---- */
.karte-buehne{position:relative}
.karte-orte{list-style:none;margin:0;padding:0}
.karte-orte .ort{position:absolute;transform:translate(-50%,14px);font-family:var(--zier);font-size:clamp(.6rem,1.4vw,.95rem);
  font-weight:700;letter-spacing:.04em;color:#F0D18B;text-shadow:0 1px 3px #000,0 0 8px #0B1220;white-space:nowrap;pointer-events:none}
.karte-orte .ort.val{color:#F3C9A0}.karte-orte .ort.der{color:#CFE0FF}
.ort-lonbaley{left:23%;top:53.25%}.ort-keter{left:19%;top:30.6%}.ort-kokuma{left:8.5%;top:48.4%}
.ort-kuznez{left:76%;top:53.25%}.ort-malkuth{left:82%;top:30.6%}.ort-rekman{left:92.5%;top:48.4%}
.ort-tiphereth{left:50.5%;top:48.4%}.ort-gor{left:50.2%;top:12.1%}

/* ---- Slice 162 Kritikrunde 1 (Gemini, geprueft) ---- */
/* ==========================================================================
   P4Story Rework – Kritikrunde 1 (Gezielte Überschreibungen am Ende von p4.css)
   ========================================================================== */

/* 1. Klassenkarten & Kacheln: Etiketten-Überlappung (Paladin/Druide) und
      Kollision von h3-Überschriften mit dem Badge oben rechts beheben */
.kachel p .etikett,
.kachel .kachel-stand .etikett,
.klasse-kachel p .etikett {
  position: static;
  margin-top: 2px;
}

.klasse-kachel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.klasse-kachel p.mt-2 {
  margin-top: auto !important;
  padding-top: 12px;
}

/* Wenn kein großes Icon (.symbol / .emblem) vor der Überschrift steht,
   Platz für das absolut positionierte Status-Etikett oben rechts schaffen */
.kachel > .etikett + h3,
.kachel > h3:first-child {
  padding-right: 98px;
}

/* 2. Hero-Bühne: Hintergrundbild deutlich sichtbarer machen &
      3 Hero-Knöpfe auf Desktop in einer Zeile halten */
.held-bild img,
.held-pic img {
  filter: brightness(1.12) contrast(1.04);
}

.held::after {
  background:
    radial-gradient(680px 420px at 22% 50%, rgba(11, 18, 32, 0.45), transparent 72%),
    linear-gradient(90deg, rgba(11, 18, 32, 0.74) 0%, rgba(11, 18, 32, 0.42) 52%, rgba(11, 18, 32, 0.1) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 18, 32, 0.28) 22%, transparent 50%);
}

.held-text > div {
  max-width: 760px;
}

.held p.lead {
  max-width: 60ch;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

.held .aktionen {
  gap: 12px;
}

.held .aktionen .knopf.gross {
  padding: 13px 22px;
  font-size: 0.96rem;
  white-space: nowrap;
}

@media (max-width: 599px) {
  .held .aktionen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .held .aktionen .knopf.gross:first-child {
    grid-column: 1 / -1;
  }

  .held .aktionen .knopf.gross {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.88rem;
    white-space: normal;
    text-align: center;
  }
}

/* 3. Länder-Banner: Geografische Ordnung (West - Mitte - Ost) auch auf Mobilgeräten
      erzwingen & Abstände der Unterzeile/Aktionsknöpfe harmonisieren */
.banner-raster .banner-val,
.banner-raster .banner.val {
  order: 1;
}

.banner-raster .banner-gor,
.banner-raster .banner.gor {
  order: 2;
}

.banner-raster .banner-der,
.banner-raster .banner.der {
  order: 3;
}

.banner-unter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 26px;
}

.banner-unter .etikett {
  font-size: 0.66rem;
  padding: 2px 7px;
}

.text-mitte .knopf {
  margin: 4px 5px;
}

/* 4. Weltkarte: Ortsnamen mit lesbarer Plakette vom SVG-Untergrund abheben
      und Randabstand für Kokuma/Rekman korrigieren */
.karte-orte .ort {
  background: rgba(11, 18, 32, 0.86);
  border: 1px solid rgba(212, 167, 74, 0.42);
  border-radius: 4px;
  padding: 2px 7px;
  transform: translate(-50%, 10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

.ort-kokuma {
  left: 10%;
}

.ort-rekman {
  left: 90.5%;
}

/* 5. Gor-Bühne & Szenen-Kopf: Augenbraue und Wappen sauber ausrichten */
.gor-buehne .szenen-inhalt {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gor-wappen-zeile .wappen {
  width: 56px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.55));
}

/* 6. Klassen-Detailseite: Alle 8 Klassen-Reiter auf Desktop in einer Zeile &
      Badges im Kopfbereich sauber vertikal zentrieren */
.reiter {
  gap: 6px;
}

.reiter a,
.reiter button {
  padding: 7px 12px;
  font-size: 0.83rem;
}

.klasse-kopf h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* 7. Download-Seite: Gleiche Kartenhöhe auf Desktop, aufgeräumte Buttons/Reiter
      auf dem Handy und bündige SHA-256-Zeile */
@media (min-width: 900px) {
  .dl-haupt {
    align-items: stretch;
  }

  .dl-box {
    display: flex;
    flex-direction: column;
  }

  .dl-box > .mt-2 {
    margin-top: auto !important;
    padding-top: 14px;
  }
}

.sha-zeile {
  justify-content: space-between;
}

.kachel ol.schritte > li {
  padding-left: 34px;
  margin-left: 12px;
}

@media (max-width: 640px) {
  .reiter a,
  .reiter button {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
    text-align: center;
  }

  .dl-box .aktionen {
    flex-direction: column;
  }

  .dl-box .aktionen .knopf {
    width: 100%;
    text-align: center;
  }
}

/* 8. Neuigkeiten, Serverstatus, Kopfzeile & Formular-Kontrast (Feinschliff) */
#hauptnav {
  gap: 6px;
}

.news-eintrag .wann .etikett {
  margin-top: 6px;
}

.status-buehne {
  margin-bottom: 22px;
}

.tabelle + p.klein {
  margin-top: 14px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="number"],
select,
textarea {
  border-color: rgba(176, 189, 212, 0.38);
}

/* ---- Slice 162: Ueberschriften-Hierarchie ohne Spruenge (Barrierefreiheit) ---- */
.nur-vorleser{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
h2.h3-stil{font-size:1.15rem;margin:1.2em 0 .4em}

/* ---- Slice 162 Kritikrunde 2 (Gemini, geprueft) ---- */
/* ==========================================================================
   P4Story Rework – Kritikrunde 2 (Gezielte Überschreibungen am Ende von p4_aktuell.css)
   ========================================================================== */

/* 1. Kopfzeile & Navigation: Einzeiligkeit auf Desktop auch im eingeloggten
      Zustand (inkl. Admin + langem Kontonamen) & >= 44x44px Hamburger-Knopf */
.menue-knopf {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  padding: 10px;
}

#hauptnav a,
.nav-form button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

@media (min-width: 860px) {
  .kopf-innen {
    gap: 10px;
    padding: 8px 20px;
  }

  .marke {
    font-size: 1.12rem;
    gap: 9px;
    flex-shrink: 0;
  }

  #hauptnav {
    gap: 3px;
    flex-wrap: nowrap;
  }

  #hauptnav a,
  .nav-form button {
    min-height: 38px;
    padding: 6px 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    justify-content: center;
  }

  .klein-k,
  #hauptnav a.knopf.klein-k {
    padding: 6px 11px !important;
    font-size: 0.8rem !important;
  }

  .nav-trenner {
    margin: 0 3px;
    flex-shrink: 0;
  }
}

@media (min-width: 1180px) {
  #hauptnav {
    gap: 5px;
  }

  #hauptnav a,
  .nav-form button {
    padding: 6px 10px;
    font-size: 0.88rem;
  }
}

/* 2. Mobile Tippflächen >= 44px (WCAG 2.2 / Mobile Usability) für Knöpfe,
      Reiter, Kopierknopf, Zurück-Links, FAQ-Summaries und Fußzeile */
.knopf,
button.knopf,
.kopier-knopf,
.reiter a,
.reiter button {
  min-height: 44px;
}

.kopier-knopf {
  padding: 8px 14px;
  font-size: 0.84rem;
}

.seite .klein-k {
  min-height: 44px;
  padding: 9px 16px !important;
  font-size: 0.84rem !important;
}

.reiter {
  gap: 8px;
}

.reiter a,
.reiter button {
  padding: 9px 14px;
  font-size: 0.84rem;
}

/* Zurück-Link auf Detailseiten (z. B. "← Alle Klassen") als 44px Tippfläche */
main.seite > p.klein:first-child {
  margin: 0 0 12px;
}

main.seite > p.klein:first-child > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--linie2);
  background: rgba(11, 27, 59, 0.55);
  color: var(--gold2);
  font-weight: 600;
}

main.seite > p.klein:first-child > a:hover {
  border-color: var(--cyan);
  background: rgba(30, 79, 182, 0.3);
  color: var(--text-hell);
  text-decoration: none;
}

@media (max-width: 640px) {
  /* Lange Überschriften wie HANDELSMETROPOLE sicher im 390px-Viewport halten */
  h1 {
    font-size: clamp(1.5rem, 6.2vw, 1.95rem);
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .fuss nav {
    gap: 4px 14px;
  }

  .fuss nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 4px;
  }
}

/* 3. Formulare (Registrieren, Login, Konto, Melden):
      Spezifitäts-Fix für .haken-zeile, größere Checkbox, gestylter File-Input */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="number"],
input[type="file"],
select {
  min-height: 44px;
}

select option {
  background-color: var(--randblau);
  color: var(--text-hell);
}

.formular label.haken-zeile,
label.haken-zeile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  margin: 16px 0 8px;
  padding: 6px 0;
  cursor: pointer;
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--text);
}

.haken-zeile input[type="checkbox"],
input[type="checkbox"],
input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex-shrink: 0;
  cursor: pointer;
}

input[type="file"] {
  padding: 7px 10px;
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  background: linear-gradient(180deg, rgba(30, 79, 182, 0.5), rgba(11, 27, 59, 0.92));
  color: var(--gold2);
  border: 1px solid var(--gold-linie-hell);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  margin-right: 12px;
  font-family: var(--zier);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

input[type="file"]:hover::file-selector-button {
  border-color: var(--cyan);
  color: var(--text-hell);
  background: rgba(30, 79, 182, 0.65);
}

/* 4. Download-Seite: Aktionsknöpfe in .dl-box symmetrisch anordnen (Haupt-CTA
      oben über volle Breite, Sekundär-Sprungmarken zweispaltig darunter) & FAQ */
.dl-box .aktionen {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.dl-box .aktionen .knopf {
  width: 100%;
  text-align: center;
}

@media (min-width: 520px) {
  .dl-box .aktionen {
    grid-template-columns: 1fr 1fr;
  }

  .dl-box .aktionen .knopf:first-child {
    grid-column: 1 / -1;
  }
}

.kachel ol.schritte > li {
  padding-left: 42px;
  margin-left: 15px;
}

details {
  padding: 0;
}

details summary {
  padding: 13px 16px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "▾";
  color: var(--gold2);
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

details[open] summary {
  margin-bottom: 0;
  border-bottom: 1px solid var(--linie);
}

details[open] summary::after {
  transform: rotate(180deg);
}

details > :not(summary) {
  padding: 12px 16px 14px;
  margin: 0;
}

/* 5. Story-Seite: 8 Kapitel pro Reich auf Desktop als 4x2-Raster ohne Lücke,
      Kapitelnummer + Status-Badge bündig & dezente Reichs-Bühne für Lazy-Images */
.kapitel .nr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.reich-buehne .szenen-bild {
  min-height: 180px;
  background: radial-gradient(circle at 50% 35%, rgba(30, 79, 182, 0.28), rgba(11, 18, 32, 0.95));
}

.reich-buehne.val .szenen-bild {
  background:
    radial-gradient(80% 80% at 50% 30%, rgba(184, 52, 38, 0.35), transparent 70%),
    linear-gradient(180deg, rgba(140, 28, 18, 0.35), rgba(11, 18, 32, 0.95));
}

.reich-buehne.der .szenen-bild {
  background:
    radial-gradient(80% 80% at 50% 30%, rgba(74, 134, 203, 0.35), transparent 70%),
    linear-gradient(180deg, rgba(73, 61, 104, 0.45), rgba(11, 18, 32, 0.95));
}

.land-titel.beide {
  margin-bottom: 18px;
}

@media (min-width: 640px) and (max-width: 979px) {
  .kapitel-liste {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .kapitel-liste {
    grid-template-columns: repeat(4, 1fr);
  }

  /* "Beide Reiche" hat 3 Kapitel (9–11) -> 3 Spalten ohne Lücke */
  .story-reich-block:last-of-type .kapitel-liste {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 6. Gor-Seite: 5 Berufskacheln auf Desktop symmetrisch zentrieren (3 oben, 2 mittig unten) */
@media (min-width: 900px) {
  #berufe .raster {
    grid-template-columns: repeat(6, 1fr);
  }

  #berufe .raster > .kachel {
    grid-column: span 2;
  }

  #berufe .raster > .kachel:nth-child(4) {
    grid-column: 2 / span 2;
  }

  #berufe .raster > .kachel:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

.reich .wappen {
  width: 52px;
  height: auto;
}

/* 7. Klassen-Detail & Beschreibungslisten: Zeilen-Trennlinien & kompakteres Handy-Wappen */
dl.werte {
  gap: 0 20px;
  border-top: 1px solid rgba(45, 71, 120, 0.45);
}

dl.werte dt,
dl.werte dd {
  padding: 9px 0;
  border-bottom: 1px solid rgba(45, 71, 120, 0.45);
}

@media (max-width: 599px) {
  .klasse-kopf {
    gap: 14px;
  }

  .klasse-kopf .emblem {
    width: 60px;
    height: 60px;
  }
}

/* 8. Konto- & Serverstatus-Seite: Einheitliche Untertitel-Hierarchie & 2/3/6-Status-Raster */
.konto-untertitel {
  font-size: var(--fs-h3);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gold-linie);
}

.konto-abschnitt-kopf h2 {
  font-size: var(--fs-h3);
}

.zwei > .karte {
  display: flex;
  flex-direction: column;
}

.zwei > .karte > p.klein:last-child {
  margin-top: auto !important;
  padding-top: 14px;
}

.status-raster {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 560px) {
  .status-raster {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .status-raster {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ---- Slice 162 Kritikrunde 3 (Gemini, Abschluss, geprueft) ---- */
/* ==========================================================================
   P4Story Rework – Kritikrunde 3 (Abschluss-Feinschliff "Kristall & Krone")
   Gezielte, risikoarme Überschreibungen zum Anhängen an p4.css
   ========================================================================== */

/* 1. Handymenü: Blickdichte Schublade, saubere Flex-Zentrierung für .sprache/.knopf */
@media (max-width: 859px) {
  #hauptnav.offen {
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.99) 0%, rgba(11, 24, 48, 0.99) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gold-linie-hell);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.82), inset 0 1px 0 rgba(240, 209, 139, 0.12);
    padding: 14px 16px 20px;
    gap: 6px;
  }

  #hauptnav a,
  .nav-form button {
    padding: 10px 14px;
    font-size: 0.96rem;
  }

  #hauptnav a.knopf,
  #hauptnav a.sprache {
    justify-content: center;
    text-align: center;
  }

  #hauptnav a.knopf.klein-k {
    margin-top: 4px;
    padding: 11px 16px !important;
    font-size: 0.9rem !important;
  }

  #hauptnav a.sprache {
    margin-top: 2px;
    background: rgba(19, 38, 78, 0.45);
    border-color: var(--gold-linie) !important;
  }
}

/* 2. Hero auf dem Handy: Kompaktere Augenbraue, vertikaler Bildschleier & zentrierter Status */
@media (max-width: 599px) {
  .held {
    min-height: auto;
  }

  .held::after {
    background:
      linear-gradient(180deg, rgba(11, 18, 32, 0.38) 0%, rgba(11, 18, 32, 0.78) 52%, var(--bg) 100%),
      radial-gradient(420px 260px at 50% 24%, rgba(30, 79, 182, 0.22), transparent 72%);
  }

  .held-text {
    padding: 42px 16px 46px;
  }

  .held .augenbraue {
    font-size: 0.73rem;
    letter-spacing: 0.16em;
    line-height: 1.38;
    margin-bottom: 8px;
  }

  .held p.lead {
    font-size: 1rem;
    line-height: 1.58;
  }

  .held-status {
    display: flex;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin: 22px auto 0;
    font-size: 0.85rem;
  }
}

/* 3. Rhythmus der Abschnitte: Symmetrisches 3x3-Raster in #neu (9 Kacheln ohne Waise),
      zentrierter Hinweis-Balken & nahtloser Übergang von .cta zu .fuss */
@media (min-width: 900px) {
  #neu .raster {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.abschnitt .hinweis,
.seite > .hinweis {
  max-width: 760px;
  margin: 0 auto 26px;
}

main.start + .fuss {
  margin-top: 0;
}

/* 4. Länder-Banner: Dauer-Rotation abschalten für gestochen scharfe Typografie */
.banner {
  animation: none;
}

/* 5. Lesbarkeit & Abstände in Szenen-Köpfen, mobilen Reitern und Download-Metadaten */
.szenen-inhalt .augenbraue {
  display: block;
  line-height: 1.35;
  margin-bottom: 6px;
}

.szenen-inhalt > .etikett {
  margin-bottom: 10px;
}

.szenen-inhalt > p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .reiter a,
  .reiter button {
    padding: 8px 10px;
    font-size: 0.78rem;
    line-height: 1.25;
  }
}

dl.werte {
  align-items: baseline;
}

.sha-zeile {
  margin-top: 14px;
}

/* 6. Fokus-Feinschliff: Edler Kristall-Schein bei Tastatur- und Tipp-Fokus */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(76, 203, 255, 0.18), 0 0 12px rgba(76, 203, 255, 0.32);
}

.menue-knopf:focus-visible {
  outline-offset: 1px;
}

/* Slice 207: Launcher-Buehne (echte Bildschirmfotos) + getrennte Plattform-Knoepfe Windows/Linux */
.dl-buehne {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  margin: 8px 0 28px;
  padding: 24px;
  border: 1px solid var(--gold-linie);
  border-radius: var(--radius);
  background:
    radial-gradient(700px 320px at 15% 0%, rgba(212, 167, 74, 0.13), transparent 70%),
    radial-gradient(600px 360px at 100% 100%, rgba(74, 134, 203, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(19, 38, 78, 0.70), rgba(11, 27, 59, 0.92));
  box-shadow: var(--schatten);
}
@media (min-width: 1000px) {
  .dl-buehne { grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); padding: 32px; align-items: center; }
}
.dl-fenster {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gold-linie-hell);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(11, 18, 32, 0.55), 0 0 40px rgba(212, 167, 74, 0.10);
  aspect-ratio: 1800 / 1020;
  background: var(--bg2);
}
.dl-fenster img, .dl-miniaturen img { display: block; width: 100%; height: auto; }
.dl-miniaturen {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.dl-miniaturen a { display: block; color: var(--leise); text-decoration: none; }
.dl-miniaturen figure { margin: 0; }
.dl-miniaturen picture {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gold-linie);
  aspect-ratio: 1800 / 1020;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.dl-miniaturen a:hover picture, .dl-miniaturen a:focus-visible picture {
  border-color: var(--gold2);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}
.dl-miniaturen figcaption { font-size: .85rem; margin-top: 6px; line-height: 1.3; }
.dl-miniaturen a:hover figcaption { color: var(--text-hell); }
.dl-plattformen h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: .4rem; }
.dl-plattform {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--gold-linie);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(11, 27, 59, 0.55), rgba(11, 18, 32, 0.75));
}
.dl-plattform.bald { border-style: dashed; }
.dlp-kopf { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.dlp-sym { width: 40px; height: 40px; flex: 0 0 40px; color: var(--gold2); }
.dlp-kopf h3 { font-size: 1.2rem; }
.dlp-sys { margin: 2px 0 0; font-size: .88rem; color: var(--leise); line-height: 1.4; }
.dlp-knopf { width: 100%; justify-content: center; flex-wrap: nowrap; }
.dlp-hinweis { margin: 10px 0 0; font-size: .86rem; color: var(--leise); line-height: 1.45; }
.dlp-details { margin-top: 10px; font-size: .9rem; }
.dlp-mb { margin-left: .6em; font-family: 'Inter', sans-serif; font-size: .8rem; font-weight: 600; opacity: .75; letter-spacing: 0; text-transform: none; white-space: nowrap; }
@media (max-width: 999px) { .dl-plattformen { order: -1; } }
.dlp-details summary { cursor: pointer; color: var(--leise); }
.dlp-details summary:hover { color: var(--text-hell); }
@media (prefers-reduced-motion: reduce) {
  .dl-miniaturen picture { transition: none; }
  .dl-miniaturen a:hover picture { transform: none; }
}

/* Slice 207 Durchlauf 2: Systemanforderungen als Tabelle, lange Befehle/Pfade auf dem Handy umbrechen */
.dl-anf { width: 100%; border-collapse: collapse; font-size: .9rem; }
.dl-anf th, .dl-anf td { text-align: left; vertical-align: top; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--linie2); color: var(--leise); }
.dl-anf thead th { color: var(--gold2); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.dl-anf tbody th { color: var(--text-hell); font-weight: 600; white-space: nowrap; }
#windows pre, #linux pre { white-space: pre; overflow-x: auto; max-width: 100%; }
#windows code, #linux code { overflow-wrap: break-word; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (max-width: 600px) { .dl-anf thead { display: none; } .dl-anf tr { display: block; padding: 6px 0; border-bottom: 1px solid var(--linie2); } .dl-anf th, .dl-anf td { display: block; border: 0; padding: 2px 0; } }

/* Slice 207 Durchlauf 3: kein Querueberlauf auf dem Handy (Grid-Spalte darf schrumpfen), Galerie oben buendig und mitlaufend,
   Linux-Hinweis als Infozeile, Verweis auf die Systemanforderungen */
@media (max-width: 999px) { .dl-buehne { grid-template-columns: minmax(0, 1fr); } }
.dl-buehne > * { min-width: 0; }
.dl-plattformen p, .dl-plattformen h2, .dl-plattformen h3 { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 600px) { .dl-buehne { padding: 16px; gap: 22px; } .dl-plattform { padding: 14px; } }
@media (min-width: 1000px) {
  .dl-buehne { align-items: start; }
  .dl-galerie { position: sticky; top: 96px; }
}
.dlp-hinweis { padding: 8px 12px; border-left: 3px solid var(--gold); background: rgba(212, 167, 74, 0.08); border-radius: 0 6px 6px 0; color: var(--elfenbein, #EBDCC2); }
.dlp-anf-link { margin: 8px 0 0; font-size: .86rem; }
.dlp-anf-link a { color: var(--gold2); text-decoration: none; }
.dlp-anf-link a:hover { text-decoration: underline; }
.dl-merkmale { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--gold-linie); display: grid; gap: 12px; }
.dl-merkmale li { display: flex; gap: 12px; align-items: flex-start; color: var(--leise); font-size: .95rem; line-height: 1.45; }
.dl-merkmale .symbol { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; color: var(--gold2); }
.dl-buehne p, .dl-plattformen p, .dl-plattformen h2, .dl-plattformen h3 { hyphens: manual; -webkit-hyphens: manual; }
.dl-hero-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.dl-hero-knoepfe .knopf { gap: 8px; }
@media (max-width: 600px) { .dl-hero-knoepfe .knopf { flex: 1 1 100%; justify-content: center; } }
/* Durchlauf 3b: Ueberschrift ueber die volle Breite, Bilder links / Karten rechts gleich hoch */
.dl-buehne-kopf { grid-column: 1 / -1; order: -2; max-width: 820px; }
.dl-buehne-kopf h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: .4rem; }
.dl-plattformen > .dl-plattform:first-child { margin-top: 0; }
.dlp-anf-link { color: var(--leise); line-height: 1.5; }
/* Durchlauf 3c: Empfehlung nach erkanntem System, Reiter-Unterlaengen (Cinzel "Q") nicht abschneiden */
.dl-plattform { position: relative; }
.dl-plattform.empfohlen { border-color: var(--gold2); box-shadow: 0 0 0 1px rgba(240, 209, 139, 0.35), 0 12px 36px rgba(212, 167, 74, 0.12); }
.dlp-empfohlen { position: absolute; top: -11px; right: 16px; padding: 2px 10px; border-radius: 999px; background: var(--gold); color: #1A1206; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dlp-hinweis { margin: 0 0 12px; }
.reiter a, .reiter button { line-height: 1.45; }
.dlp-knopf { flex-wrap: wrap; row-gap: 0; padding-top: 12px; padding-bottom: 10px; }
.dlp-knopf .dlp-mb { flex-basis: 100%; margin-left: 0; text-align: center; font-size: .78rem; opacity: .8; }
/* Durchlauf 3d: Handy zeigt zuerst die Bilder (Download nur am PC sinnvoll), Plakette in der Karte, Nebentexte heller, Kopier-Knopf */
@media (max-width: 999px) { .dl-plattformen { order: 0; } }
.dl-nur-pc { display: none; }
@media (max-width: 600px) and (pointer: coarse) { .dl-nur-pc { display: block; margin: 18px 0 0; color: var(--elfenbein); font-size: .95rem; } .dl-hero-knoepfe { display: none; } }
.dlp-empfohlen { position: static; display: inline-block; margin: 0 0 12px; }
.dlp-empfohlen[hidden] { display: none; }
.dlp-sys, .dlp-anf-link, .dl-miniaturen figcaption, .dl-merkmale li, .dlp-details summary { color: #D3DBE9; }
.pre-rahmen { position: relative; }
.pre-rahmen pre { padding-right: 92px; }
.pre-kopieren { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); padding: 4px 10px; border-radius: 6px; border: 1px solid var(--gold-linie); background: rgba(11, 27, 59, 0.9); color: var(--gold2); font-size: .78rem; font-weight: 600; cursor: pointer; }
.pre-kopieren:hover { border-color: var(--gold2); color: var(--text-hell); }
.pre-rahmen { display: flex; align-items: center; gap: 8px; }
.pre-rahmen pre { flex: 1 1 auto; min-width: 0; padding-right: 14px; }
.pre-kopieren { position: static; transform: none; flex: 0 0 auto; }
/* Durchlauf 3e */
.dl-plattform .knopf.geist.dlp-knopf { border: 1px solid var(--gold-linie-hell, rgba(240, 209, 139, 0.55)); color: var(--gold2); background: rgba(19, 38, 78, 0.85); box-shadow: none; }
.dl-plattform .knopf.geist.dlp-knopf:hover { border-color: var(--gold2); color: var(--text-hell); }
.dl-hero-info { margin: 12px 0 0; font-size: .88rem; color: #D3DBE9; letter-spacing: .01em; }
@media (max-width: 600px) and (pointer: coarse) { .dl-hero-info { display: none; } }
@media (max-width: 600px) { .dl-reiter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; } .dl-reiter a { flex: 0 0 auto; white-space: nowrap; } }
.pre-kopieren { min-height: 40px; min-width: 64px; padding: 6px 12px; }
.dl-galerie { display: flex; flex-direction: column; }
@media (min-width: 1000px) { .dl-buehne { align-items: stretch; } .dl-galerie { position: static; } }

/* ---- Slice 310: Reiter "Gilde" in der Kopfzeile - eingeloggt bis 1500 px etwas enger, damit alles einzeilig bleibt ---- */
@media (min-width: 860px) and (max-width: 1500px) {
  #hauptnav { gap: 2px; }
  #hauptnav a, .nav-form button { padding: 6px 7px; letter-spacing: .06em; font-size: .8rem; }
}
@media (min-width: 860px) and (max-width: 1279px) {
  #hauptnav { flex-wrap: wrap; justify-content: flex-end; row-gap: 0; }
}

/* ---- Slice 449: Gildenlogo in Gildenliste und auf der Gildenseite (Sanctus Sanguis, sonst Standardwappen) ---- */
.gilde-link{display:inline-flex;align-items:center;gap:10px}
.gilde-logo-klein{width:32px;height:32px;flex:none;filter:drop-shadow(0 1px 4px rgba(0,0,0,.6))}
.gilde-logo{width:128px;height:128px;flex:none;filter:drop-shadow(0 4px 16px rgba(0,0,0,.6))}
@media(max-width:600px){.gilde-kopf{justify-content:center;text-align:center}.gilde-logo{width:96px;height:96px}}
