/* ---------------------------------------------------------------------------
   eduHUB – Grundlayout
   Farbwelt: Dunkelblau #003761 trägt Text und Struktur, Mittelblau #0068CB ist
   die Aktionsfarbe, Hellblau #00B1EB bleibt Fläche und Akzent auf dunklem Grund
   und wird nie als Textfarbe auf Weiß verwendet.
   Mobile-first, ab 360 Pixeln ohne horizontales Scrollen bedienbar.
--------------------------------------------------------------------------- */

:root {
  --dunkelblau: #003761;
  --mittelblau: #0068CB;
  --mittelblau-dunkel: #00549f;
  --hellblau: #00B1EB;
  --grund: #f4f7fa;
  --flaeche: #ffffff;
  --linie: #d8e2ec;
  --linie-stark: #b4c6d6;
  --text: #003761;
  --text-leise: #4a6580;
  --erfolg: #1c6b45;
  --erfolg-flaeche: #e6f4ec;
  --warnung: #8a5a00;
  --warnung-flaeche: #fdf3e0;
  --fehler: #a3242b;
  --fehler-flaeche: #fbeaea;
  --hinweis-flaeche: #e7f1fa;
  --radius: 10px;
  --radius-klein: 6px;
  --schatten: 0 1px 2px rgba(0, 55, 97, .08), 0 4px 12px rgba(0, 55, 97, .06);
  --kurve: cubic-bezier(.2, .7, .3, 1);
  --dauer: 160ms;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6rem; font-weight: 650; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; }

a { color: var(--mittelblau); text-underline-offset: .15em; }
a:hover { color: var(--mittelblau-dunkel); }

:focus-visible {
  outline: 3px solid var(--mittelblau);
  outline-offset: 2px;
  border-radius: 3px;
}

.visuell-versteckt {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.sprunglink {
  position: absolute; left: -9999px; top: 0; background: var(--flaeche);
  padding: .75rem 1rem; z-index: 100;
}
.sprunglink:focus { left: .5rem; top: .5rem; }

.huelle { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1rem; }

/* Der Inhalt braucht Luft unter der Kopfzeile. */
.bereich-oeffentlich main > .huelle:first-child { padding-top: 1.5rem; }
.bereich-oeffentlich main > .huelle:first-child > h1:first-child { margin-top: 0; }

/* ------------------------------------------------------------------ Marke */

.marke {
  display: inline-flex; align-items: baseline; gap: 1px;
  font-size: 1.4rem; font-weight: 700; text-decoration: none; letter-spacing: -.01em;
}
.marke__edu { color: var(--dunkelblau); }
.marke__hub { color: var(--mittelblau); }
.marke__logo { display: block; height: 3rem; width: auto; }
.marke--klein { font-size: 1.15rem; }
.entwicklungshinweis { margin: 0; padding: .55rem 1rem; background: #fff4d6; color: #5c4300; border-bottom: 1px solid #ecd48a; text-align: center; font-size: .9rem; }
.entwicklungshinweis a { color: inherit; }
.bereich-portal .marke__edu, .bereich-verwaltung .marke__edu { color: var(--dunkelblau); }

/* ------------------------------------------------------------------ Kopf- und Fußzeile */

.kopfzeile {
  background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
  position: sticky; top: 0; z-index: 20;
}
.kopfzeile__innen {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 60px; flex-wrap: wrap;
}
.hauptnavigation { display: flex; gap: .25rem; flex-wrap: wrap; }
.hauptnavigation a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .75rem;
  border-radius: var(--radius-klein); text-decoration: none; font-weight: 550;
  color: var(--dunkelblau);
}
.hauptnavigation a:hover { background: var(--hinweis-flaeche); }
.hauptnavigation__portal { color: var(--mittelblau); }

.fusszeile {
  margin-top: 3rem; background: var(--dunkelblau); color: #dbe9f4; padding: 2rem 0;
}
.fusszeile__innen { display: grid; gap: 1rem; }
.fusszeile p { margin: 0; font-size: .9rem; max-width: 60ch; }
.fusszeile nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.fusszeile a { color: #9fd9f4; }

/* ------------------------------------------------------------------ Meldungen */

.meldung {
  margin: 1rem 0; padding: .85rem 1rem; border-radius: var(--radius);
  border-left: 4px solid var(--mittelblau); background: var(--hinweis-flaeche);
  font-weight: 500;
}
.meldung--erfolg  { background: var(--erfolg-flaeche); border-color: var(--erfolg); color: var(--erfolg); }
.meldung--fehler  { background: var(--fehler-flaeche); border-color: var(--fehler); color: var(--fehler); }
.meldung--hinweis { background: var(--hinweis-flaeche); border-color: var(--mittelblau); }
.meldung--warnung { background: var(--warnung-flaeche); border-color: var(--warnung); color: var(--warnung); }

/* ------------------------------------------------------------------ Knöpfe */

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .55rem 1.1rem; border-radius: var(--radius-klein);
  border: 1px solid transparent; background: var(--mittelblau); color: #fff;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background var(--dauer) var(--kurve), transform 80ms var(--kurve);
}
.knopf:hover { background: var(--mittelblau-dunkel); color: #fff; }
.knopf:active { transform: scale(.97); }
.knopf--leise { background: var(--flaeche); color: var(--dunkelblau); border-color: var(--linie-stark); }
.knopf--leise:hover { background: var(--hinweis-flaeche); color: var(--dunkelblau); }
.knopf--gefahr { background: var(--flaeche); color: var(--fehler); border-color: #e3b7b9; }
.knopf--gefahr:hover { background: var(--fehler-flaeche); color: var(--fehler); }
.knopf--klein { min-height: 38px; padding: .3rem .7rem; font-size: .9rem; }
.knopf--voll { width: 100%; }
.knopf[disabled] { opacity: .6; cursor: not-allowed; }

.knopfzeile { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* ------------------------------------------------------------------ Karten und Raster */

.karte {
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 1.15rem; box-shadow: var(--schatten);
}
.karte + .karte { margin-top: 1rem; }
.karte__kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }

.raster { display: grid; gap: 1rem; }
@media (min-width: 640px)  { .raster--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .raster--3 { grid-template-columns: repeat(3, 1fr); } .raster--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px)  { .raster--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .raster--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .raster--5 { grid-template-columns: repeat(5, 1fr); } }

/* ------------------------------------------------------------------ Angebotskarte */

.angebotskarte {
  display: flex; flex-direction: column; gap: .5rem; height: 100%;
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--schatten);
  transition: transform var(--dauer) var(--kurve), box-shadow var(--dauer) var(--kurve);
}
@media (hover: hover) and (pointer: fine) {
  .angebotskarte:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 55, 97, .12); }
}
.angebotskarte__titel { margin: 0; font-size: 1.05rem; }
.angebotskarte__titel a { color: var(--dunkelblau); text-decoration: none; }
.angebotskarte__titel a:hover { text-decoration: underline; }
.angebotskarte__unternehmen { margin: 0; font-weight: 550; }
.angebotskarte__meta { margin: 0; color: var(--text-leise); font-size: .9rem; }
.angebotskarte__fuss { margin-top: auto; padding-top: .5rem; }

/* ------------------------------------------------------------------ Kennzeichen */

.kennzeichen {
  display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .55rem;
  border-radius: 999px; font-size: .82rem; font-weight: 600; line-height: 1.5;
  background: var(--hinweis-flaeche); color: var(--dunkelblau);
  border: 1px solid var(--linie-stark);
}
.kennzeichen--stelle     { background: #e7f1fa; }
.kennzeichen--projekt    { background: #eaf3e9; border-color: #bcd7b8; }
.kennzeichen--praktikum  { background: #fdf3e0; border-color: #e6d2a8; }
.kennzeichen--touchpoint { background: #f0eaf6; border-color: #cfc0e0; }
.kennzeichen--veroeffentlicht { background: var(--erfolg-flaeche); color: var(--erfolg); border-color: #b7d8c5; }
.kennzeichen--entwurf      { background: #eef1f4; color: var(--text-leise); }
.kennzeichen--abgelaufen   { background: var(--warnung-flaeche); color: var(--warnung); border-color: #e6d2a8; }
.kennzeichen--depubliziert { background: var(--fehler-flaeche); color: var(--fehler); border-color: #e3b7b9; }
.kennzeichen--aktiv    { background: var(--erfolg-flaeche); color: var(--erfolg); border-color: #b7d8c5; }
.kennzeichen--inaktiv  { background: #eef1f4; color: var(--text-leise); }
.kennzeichen--gesperrt { background: var(--fehler-flaeche); color: var(--fehler); border-color: #e3b7b9; }

.kennzeichenliste { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; padding: 0; list-style: none; }

/* ------------------------------------------------------------------ Formulare */

.formular { display: grid; gap: 1.1rem; max-width: 720px; }
.feld { display: grid; gap: .35rem; }
.feld > label, .feldgruppe__titel { font-weight: 600; }
.feld__hinweis { color: var(--text-leise); font-size: .88rem; }
.feld__fehler { color: var(--fehler); font-size: .9rem; font-weight: 600; }

input[type="text"], input[type="email"], input[type="password"], input[type="url"],
input[type="date"], input[type="number"], input[type="search"], input[type="tel"],
select, textarea {
  width: 100%; min-height: 44px; padding: .55rem .7rem; font: inherit; font-size: 16px;
  color: var(--text); background: var(--flaeche);
  border: 1px solid var(--linie-stark); border-radius: var(--radius-klein);
}
textarea { min-height: 9rem; resize: vertical; line-height: 1.55; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dunkelblau) 50%), linear-gradient(135deg, var(--dunkelblau) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
select[multiple] { background-image: none; padding-right: .7rem; min-height: 9rem; }
input:disabled, select:disabled, textarea:disabled { background: #eef1f4; }
.feld--fehler input, .feld--fehler select, .feld--fehler textarea { border-color: var(--fehler); }

.auswahlliste { display: grid; gap: .4rem; padding: 0; margin: 0; border: 0; }
.auswahl {
  display: flex; align-items: flex-start; gap: .6rem; min-height: 44px;
  padding: .5rem .7rem; border: 1px solid var(--linie); border-radius: var(--radius-klein);
  background: var(--flaeche); cursor: pointer;
}
.auswahl:hover { border-color: var(--linie-stark); }
.auswahl input { margin-top: .25rem; width: 20px; height: 20px; accent-color: var(--mittelblau); flex: none; }
.auswahl__text { display: grid; gap: .15rem; line-height: 1.35; }
.auswahl__zusatz { color: var(--text-leise); font-size: .85rem; line-height: 1.3; }

@media (min-width: 640px) {
  .auswahlliste--spalten { grid-template-columns: repeat(2, 1fr); }
  .feldpaar { align-items: start; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

fieldset { border: 0; padding: 0; margin: 0; }
legend { padding: 0; font-weight: 600; margin-bottom: .35rem; }

.honigtopf { position: absolute; left: -9999px; }

.vertragstext h3 { margin: 1.1rem 0 .3rem; font-size: 1.05rem; }
.vertragstext h3:first-child { margin-top: 0; }
.vertragstext p { margin: 0 0 .7rem; overflow-wrap: anywhere; }
.karte details > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.karte .formular { max-width: none; }
.formular--zeile { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.formular--zeile select { max-width: 100%; }
fieldset.karte { display: grid; gap: 1rem; }

/* ------------------------------------------------------------------ Tabellen */

.tabellenhuelle { overflow-x: auto; }
table.liste { width: 100%; border-collapse: collapse; background: var(--flaeche); }
table.liste th, table.liste td { padding: .7rem .8rem; text-align: left; border-bottom: 1px solid var(--linie); vertical-align: top; }
table.liste th { font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-leise); }
table.liste tbody tr:last-child td { border-bottom: 0; }
table.liste--angebote td:first-child { overflow-wrap: anywhere; }
table.liste--angebote .kennzeichen { overflow-wrap: normal; white-space: nowrap; }
table.liste--angebote select { flex: 1 1 10rem; min-width: 0; max-width: 100%; }
table.liste--angebote .angebotskarte__meta { margin: .25rem 0 0; }
/* Zahlentabellen: feste Spalten, Kopfzeilen brechen um, damit ab 900 px nichts seitlich scrollt */
table.liste--zahlen { table-layout: fixed; }
table.liste--zahlen th, table.liste--zahlen td { padding: .6rem .15rem; }
table.liste--zahlen th { font-size: .7rem; letter-spacing: 0; text-transform: none; }
table.liste--zahlen th:first-child, table.liste--zahlen td:first-child { width: 6.2rem; }
table.liste--partner th:first-child, table.liste--partner td:first-child { width: 28%; overflow-wrap: anywhere; }

@media (max-width: 899px) {
  table.liste, table.liste tbody, table.liste tr, table.liste td { display: block; width: 100%; }
  table.liste thead { display: none; }
  table.liste tfoot, table.liste tfoot th { display: block; width: 100%; }
  table.liste--zahlen { table-layout: auto; }
  table.liste--zahlen th, table.liste--zahlen td { padding: .4rem .8rem; }
  table.liste--zahlen th:first-child, table.liste--zahlen td:first-child { width: 100%; }
  table.liste tr {
    background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
    margin-bottom: .75rem; padding: .35rem .25rem; box-shadow: var(--schatten);
  }
  table.liste td, table.liste tfoot th { border: 0; padding: .4rem .8rem; }
  table.liste td::before, table.liste tfoot th::before {
    content: attr(data-spalte); display: block; font-size: .78rem; text-transform: uppercase;
    letter-spacing: .03em; color: var(--text-leise); font-weight: 600;
  }
}

/* ------------------------------------------------------------------ Gerüst Portal und Verwaltung */

.geruest { display: flex; min-height: 100vh; }

.sidebar {
  width: 250px; flex: none; background: var(--flaeche); border-right: 1px solid var(--linie);
  display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem 1rem;
  position: sticky; top: 0; height: 100vh;
}
.sidebar__kopf { display: grid; gap: .25rem; }
.sidebar__unternehmen { margin: 0; color: var(--text-leise); font-size: .9rem; }
.sidebar__navigation { display: grid; gap: .15rem; }
.sidebar__navigation a {
  display: flex; align-items: center; min-height: 44px; padding: 0 .75rem;
  border-radius: var(--radius-klein); text-decoration: none; color: var(--dunkelblau); font-weight: 550;
}
.sidebar__navigation a:hover { background: var(--hinweis-flaeche); }
.sidebar__navigation a[aria-current="page"] { background: var(--dunkelblau); color: #fff; }
.sidebar__fuss { margin-top: auto; }

.reiter { display: flex; flex-wrap: wrap; gap: .25rem; padding: .5rem 1rem 0; border-bottom: 1px solid var(--linie); background: var(--flaeche); }
.reiter a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem;
  border-bottom: 3px solid transparent; text-decoration: none; color: var(--dunkelblau); font-weight: 550;
}
.reiter a:hover { background: var(--hinweis-flaeche); }
.reiter a[aria-current="page"] { border-bottom-color: var(--dunkelblau); font-weight: 700; }

/* Untermenü der öffentlichen Messe-Seiten */
.messemenue { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: 1rem; border-bottom: 1px solid var(--linie); }
.messemenue a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem;
  border-bottom: 3px solid transparent; text-decoration: none; color: var(--dunkelblau); font-weight: 550;
}
.messemenue a:hover { background: var(--hinweis-flaeche); }
.messemenue a[aria-current="page"] { border-bottom-color: var(--dunkelblau); font-weight: 700; }
.anschrift { font-style: normal; margin: 0 0 .75rem; line-height: 1.5; }
.anreise__raster { margin-top: 1rem; }
.anreise__raster > .karte, .ausstellerliste > .karte { margin-top: 0; }
.knopfzeile--unten { margin-top: 1.5rem; }
.ausstellerliste { list-style: none; margin: 1rem 0 0; padding: 0; }
.ausstellerkarte { padding: 0; }
.ausstellerkarte__link {
  display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem;
  text-align: center; text-decoration: none; color: inherit; min-height: 100%;
}
a.ausstellerkarte__link:hover .ausstellerkarte__name { text-decoration: underline; }
.ausstellerkarte__logo { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.ausstellerkarte__name { font-weight: 650; color: var(--dunkelblau); }
.ausstellerkarte__stand { font-size: .9rem; color: var(--text-leise); }

.inhaltsspalte { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: center; gap: .75rem; min-height: 60px; padding: .5rem 1rem;
  background: var(--flaeche); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 15;
}
.topbar__titel { font-size: 1.1rem; margin: 0; flex: 1 1 auto; }
.topbar__benutzer { color: var(--text-leise); font-size: .9rem; }

.hamburger {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--linie); border-radius: var(--radius-klein); cursor: pointer;
}
.hamburger__strich, .hamburger__strich::before, .hamburger__strich::after {
  display: block; width: 20px; height: 2px; background: var(--dunkelblau); border-radius: 2px; position: relative;
}
.hamburger__strich::before, .hamburger__strich::after { content: ""; position: absolute; left: 0; }
.hamburger__strich::before { top: -6px; }
.hamburger__strich::after { top: 6px; }

.inhalt { padding: 1.25rem 1rem 3rem; max-width: 1100px; width: 100%; }

.hintergrund {
  position: fixed; inset: 0; background: rgba(0, 55, 97, .45); z-index: 25;
  opacity: 0; transition: opacity var(--dauer) var(--kurve);
}
.hintergrund.ist-sichtbar { opacity: 1; }

@media (max-width: 899px) {
  .hamburger { display: inline-flex; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 30; transform: translateX(-100%);
    transition: transform var(--dauer) var(--kurve); box-shadow: 0 0 24px rgba(0, 55, 97, .18);
    width: min(280px, 84vw);
  }
  .sidebar.ist-offen { transform: translateX(0); }
}

/* ------------------------------------------------------------------ Schlichtes Layout */

.schlicht {
  max-width: 26rem; margin: 0 auto; padding: 3rem 1rem;
  display: grid; gap: 1.25rem; justify-items: stretch;
}
.schlicht .marke { justify-self: center; }
.schlicht .karte { padding: 1.5rem; }

/* ------------------------------------------------------------------ Öffentliche Seiten */

.abschnitt { padding: 2rem 0 0; }
.abschnitt__kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.bühne { background: var(--flaeche); border-bottom: 1px solid var(--linie); padding: 2.5rem 0; }
.bühne h1 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); max-width: 20ch; }
.bühne p { max-width: 60ch; color: var(--text-leise); font-size: 1.05rem; }

.filterleiste { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.filterleiste__zeile { display: grid; gap: .75rem; }
@media (min-width: 900px) {
  .filterleiste__zeile { grid-template-columns: repeat(4, 1fr); align-items: end; }
}
.filterleiste details > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }

.trefferzeile { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 1rem 0 .5rem; }
.trefferzahl { font-weight: 650; }

.chip {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 36px;
  padding: .2rem .5rem .2rem .7rem; border-radius: 999px; background: var(--dunkelblau);
  color: #fff; font-size: .88rem; text-decoration: none;
}
.chip:hover { background: #002945; color: #fff; }
.chip__x { font-weight: 700; }

.blaettern { display: flex; gap: .5rem; align-items: center; justify-content: center; margin: 2rem 0; flex-wrap: wrap; }

.leerzustand { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.5rem; }
.leerzustand h2 { margin-top: 0; }

.detail { display: grid; gap: 1.5rem; padding: 2rem 0; }
@media (min-width: 900px) { .detail { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); align-items: start; } }
.detail__seitenleiste { position: sticky; top: 80px; display: grid; gap: 1rem; }

.beschreibungstext p { max-width: 68ch; }

.logo { width: 72px; height: 72px; object-fit: contain; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-klein); padding: .35rem; }
.logo--gross { width: 110px; height: 110px; }

.galerie { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .galerie { grid-template-columns: repeat(3, 1fr); } }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-klein); border: 1px solid var(--linie); }

.datenliste { display: grid; gap: .5rem; margin: 0; }
.datenliste div { display: grid; gap: .1rem; }
.datenliste dt { color: var(--text-leise); font-size: .88rem; }
.datenliste dd { margin: 0; font-weight: 550; }

.kennzahl { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem; }
.kennzahl__wert { font-size: 1.8rem; font-weight: 700; line-height: 1.1; display: block; }
.kennzahl__titel { color: var(--text-leise); font-size: .9rem; }

.schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.schritte li { display: flex; align-items: center; gap: .75rem; padding: .6rem .8rem; border: 1px solid var(--linie); border-radius: var(--radius-klein); background: var(--flaeche); }
.schritte li[data-erledigt="1"] { border-color: #b7d8c5; background: var(--erfolg-flaeche); }
.schritte__zeichen { font-weight: 700; }

/* Fortschrittsanzeige: natives <progress>, damit die Breite ohne Inline-Style auskommt */
.fortschritt { display: block; width: 100%; height: 8px; border: 0; border-radius: 999px; overflow: hidden; background: var(--linie); color: var(--mittelblau); -webkit-appearance: none; appearance: none; }
.fortschritt::-webkit-progress-bar { background: var(--linie); }
.fortschritt::-webkit-progress-value { background: var(--mittelblau); }
.fortschritt::-moz-progress-bar { background: var(--mittelblau); }

.hinweisbox { background: var(--hinweis-flaeche); border: 1px solid #bcd8ef; border-radius: var(--radius); padding: 1rem; }

/* ------------------------------------------------------------------ Bewegung */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-property: color, background-color, border-color !important;
    transition-duration: 60ms !important;
  }
  .angebotskarte:hover { transform: none; }
  .sidebar { transition: none; }
}

/* ------------------------------------------------------------------ Druck */

@media print {
  .kopfzeile, .fusszeile, .sidebar, .topbar, .knopfzeile { display: none !important; }
  body { background: #fff; }
  /* Hallenplan: nur Plan, Legende und Liste; Farben und Muster bleiben (sonst fehlt der Unterschied frei/reserviert/vergeben) */
  .entwicklungshinweis { display: none !important; }
  .seitenkopf { background: none !important; color: #000 !important; padding-block: 0 .5rem !important; }
  .seitenkopf h1, .seitenkopf .kicker, .seitenkopf__text { color: #000 !important; }
  body, .abschnitt, .hallenplan-figur { background: #fff !important; }
  .abschnitt { padding-block: 0 !important; }
  .planzonen, .plan-detail, .planlegende .feld__hinweis { display: none !important; }
  .hallenplan { max-width: 100%; max-height: 21cm; width: auto; margin-inline: auto; }
  .hallenplan, .planlegende svg { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .standliste--plan li { break-inside: avoid; }
}

/* Vertragsformular: feste Stammdaten */
.feld__bezeichnung { display: block; font-weight: 600; margin-bottom: .25rem; }
.festwert { margin: 0; padding: .55rem .75rem; background: #f1f5f9; border-radius: 6px; border: 1px solid #d8e0e8; }

/* Vertragsseiten: Banner und Fußlogos */
.vertragskopf__untertitel { font-size: 1.15rem; margin: -.25rem 0 1rem; color: #003761; }
.vertragskopf__banner { display: block; width: 100%; height: auto; border-radius: 8px; margin: 0 0 1.25rem; }
.vertragskopf__vorschau { max-width: 100%; height: auto; max-height: 160px; }
.vertragsfuss { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; justify-content: center; margin: 2rem 0 0; padding: 0; }
.vertragsfuss img { display: block; max-height: 56px; max-width: 160px; width: auto; height: auto; }
.vertragsfuss__liste { list-style: none; padding: 0; }
.vertragsfuss__liste li { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: .75rem; }
.vertragsfuss__logo { max-height: 40px; width: auto; }

/* ---------------------------------------------------------------------------
   Hallenplan der Messe (Admin-Editor). Maße im SVG sind Tausendstel der Planbreite.
--------------------------------------------------------------------------- */
.planhuelle { overflow: auto; max-width: 100%; max-height: 80vh; border: 1px solid var(--linie); border-radius: var(--radius); background: #fff; }
.planflaeche { position: relative; display: inline-block; line-height: 0; }
.plan-eingabe { display: block; max-width: none; cursor: crosshair; }
.plan-marker { position: absolute; inset: 0; pointer-events: none; }
.plan-stand rect { fill: var(--hinweis-flaeche); stroke: var(--mittelblau); stroke-width: 2; }
.plan-stand--eduhub rect { fill: #e2e8f0; stroke: #475569; }
.plan-stand--gewaehlt rect { fill: #fff3c4; stroke: var(--dunkelblau); stroke-width: 5; }
.plan-stand--inaktiv rect { fill: #f1f5f9; stroke-dasharray: 6 4; }
.plan-nr { font-size: 26px; font-weight: 700; fill: var(--dunkelblau); }
.plan-stand--eduhub .plan-nr { font-size: 19px; }
.planzoom a[aria-current] { font-weight: 700; color: var(--text); text-decoration: none; }
.planzahlen { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(9rem, max-content)); align-items: end; }

/* ============================================================
   Hallenplan öffentlich: Plan mit Standkästchen, Legende, Bereiche, Liste.
   Zustand nie nur über Farbe: frei = weiß mit gestricheltem Rand, reserviert = Streifen, vergeben = voll.
   ============================================================ */
.hallenplan-block { display: grid; gap: 1.25rem; }
.planzonen ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.planzonen a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .4rem .9rem; border: 1px solid var(--linie-stark); border-radius: 999px; background: var(--flaeche); color: var(--text); text-decoration: none; font-weight: 600; }
.planzonen a:hover { border-color: var(--mittelblau); }
.planzonen a[aria-current="true"] { background: var(--dunkelblau); border-color: var(--dunkelblau); color: #fff; }
.planzonen__zahl { font-weight: 400; opacity: .8; font-size: .85em; }
.hallenplan-figur { margin: 0; scroll-margin-top: 1rem; }
.hallenplan { display: block; width: 100%; max-width: 44rem; margin-inline: auto; height: auto; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); }
.hp-stand { cursor: pointer; }
.hp-stand rect { stroke: var(--mittelblau); stroke-width: 3; }
.hp-stand--frei rect { fill: #fff; stroke-dasharray: 8 5; }
.hp-stand--reserviert rect { fill: url(#plan-schraffur); }
.hp-stand--vergeben rect { fill: var(--dunkelblau); stroke: var(--dunkelblau); }
.hp-logo, .hp-nr--unten { display: none; }
@media (min-width: 40.01rem), print {
  .hp-stand--logo rect { fill: #fff; stroke: var(--dunkelblau); stroke-width: 5; }
  .hp-stand--logo .hp-nr--mitte { display: none; }
  .hp-stand--logo .hp-logo, .hp-stand--logo .hp-nr--unten { display: inline; }
  .hp-stand--logo .hp-nr--unten { fill: var(--dunkelblau); }
}
.hp-stand--eigen rect { fill: var(--hellblau); stroke: var(--dunkelblau); stroke-width: 5; stroke-dasharray: none; }
.hp-eduhub rect, .legende-eduhub { fill: #e2e8f0; stroke: #475569; stroke-width: 3; stroke-dasharray: none; }
.hp-eduhub__text { font-family: inherit; font-weight: 700; fill: #1e293b; pointer-events: none; }
.hp-nr { font-family: inherit; font-weight: 700; fill: var(--dunkelblau); pointer-events: none; }
.hp-stand--reserviert .hp-nr { stroke: #fff; stroke-width: 4; paint-order: stroke; }
.hp-stand--vergeben .hp-nr { fill: #fff; }
.hp-stand:hover rect, .hp-stand:focus-visible rect { stroke: #000; stroke-width: 6; }
.hp-stand:focus { outline: none; }
.hp-stand--hervor rect { stroke: var(--hellblau); stroke-width: 9; stroke-dasharray: none; }
.hp-stand--gewaehlt rect { stroke: #000; stroke-width: 7; stroke-dasharray: none; }
.planlegende ul { list-style: none; margin: .75rem 0 .25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.planlegende li { display: inline-flex; align-items: center; gap: .4rem; }
.legende-frei { fill: #fff; stroke: var(--mittelblau); stroke-width: 2; stroke-dasharray: 4 3; }
.legende-reserviert { fill: url(#plan-schraffur); stroke: var(--mittelblau); stroke-width: 2; }
.legende-vergeben { fill: var(--dunkelblau); stroke: var(--dunkelblau); stroke-width: 2; }
.legende-hervor { fill: #fff; stroke: var(--hellblau); stroke-width: 4; }
.legende-eigen { fill: var(--hellblau); stroke: var(--dunkelblau); stroke-width: 3; }
.plan-detail { scroll-margin-top: 1rem; }
.plan-detail:focus { outline: 2px solid var(--mittelblau); outline-offset: 2px; }
.plan-aussteller { display: flex; align-items: center; gap: .75rem; margin: 0; }
.plan-aussteller__logo { width: 4.5rem; height: 3rem; object-fit: contain; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius-klein); padding: .25rem; }
.standliste--plan { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.standliste--plan .plan-aussteller__logo { width: 3.5rem; height: 2.25rem; }
.kennzeichen--hervor { background: #e1f6fd; border-color: var(--hellblau); }
.kennzeichen--stand-frei { background: #fff; border-style: dashed; }
.kennzeichen--stand-reserviert { background: #e7f1fa; }
.kennzeichen--stand-vergeben { background: var(--dunkelblau); border-color: var(--dunkelblau); color: #fff; }

/* ---------------------------------------------------------------------------
   Hilfsklassen statt Inline-Styles (CSP: style-src 'self').
   Zahl = Hundertstel rem, z. B. u-mt-75 = margin-top .75rem. Stehen am Dateiende,
   damit sie gleichrangige Komponentenregeln überstimmen.
--------------------------------------------------------------------------- */
.u-m-0 { margin: 0; }
.u-mt-0 { margin-top: 0; }
.u-mt-35 { margin-top: .35rem; }
.u-mt-40 { margin-top: .4rem; }
.u-mt-50 { margin-top: .5rem; }
.u-mt-75 { margin-top: .75rem; }
.u-mt-100 { margin-top: 1rem; }
.u-mt-150 { margin-top: 1.5rem; }
.u-mb-0 { margin-bottom: 0; }
.u-mb-25 { margin-bottom: .25rem; }
.u-mb-40 { margin-bottom: .4rem; }
.u-mb-50 { margin-bottom: .5rem; }
.u-mb-75 { margin-bottom: .75rem; }
.u-mb-100 { margin-bottom: 1rem; }
.u-fs-100 { font-size: 1rem; }
.u-fs-105 { font-size: 1.05rem; }
.u-fw-600 { font-weight: 600; }
.u-w-100 { width: 100%; }
.u-maxw-none { max-width: none; }
.u-maxw-14r { max-width: 14rem; }
.u-maxw-820 { max-width: 820px; }
.u-maxh-16r { max-height: 16rem; }
.u-ov-auto { overflow: auto; }
.u-flex-1 { flex: 1; }
.u-td-none { text-decoration: none; }

/* Gedämpfter Statuschip (Filter ohne Auswahl) */
.chip.chip--leise { background: var(--flaeche); color: var(--dunkelblau); border: 1px solid var(--linie-stark); }
.chip.chip--leise:hover { background: var(--hinweis-flaeche); color: var(--dunkelblau); }

/* Galeriebild in der Medienverwaltung */
.medien__bild { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-klein); }
.karte pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}
.sidebar .marke__logo{height:2.25rem}

/* Firmenseite */
.firmenkopf { display: flex; gap: 1.25rem; align-items: center; margin-bottom: 1.5rem; }
.firmenkopf .logo--gross { flex: none; }
.kennzeichen--partner { background: var(--akzent, #0068cb); color: #fff; border-color: transparent; }
.video { position: relative; aspect-ratio: 16 / 9; max-width: 640px; background: linear-gradient(to bottom, #000, #444); border-radius: var(--radius); overflow: hidden; color: #e3e3e3; }
.video__hinweis { padding: 1.25rem; display: grid; gap: .75rem; align-content: center; height: 100%; box-sizing: border-box; }
.video__hinweis p { margin: 0; font-size: .9rem; }
.video__hinweis a { color: #e3e3e3; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.linkliste { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; }
@media (max-width: 480px) { .firmenkopf { flex-direction: column; align-items: flex-start; } }

.sidebar__oeffentlich { padding: .75rem 1rem 0; }

[hidden] { display: none !important; }
.haken { margin: 0 0 1rem; padding-left: 1.2rem; display: grid; gap: .3rem; }
.u-mb-150 { margin-bottom: 1.5rem; }

/* Standwahl */
.standliste { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
.stand { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: .75rem; display: grid; gap: .4rem; align-content: start; }
.stand p { margin: 0; }
.stand--frei { border-color: #b7d8c5; }
.stand--belegt { background: #eef1f4; color: var(--text-leise); }
.stand--eigen { background: var(--erfolg-flaeche); border-color: var(--erfolg); }
.stand__aktion { margin: 0; }
.stand__aktion .knopf { width: 100%; }

/* Feedback */
.frage { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
.frage legend { padding: 0; font-weight: 600; margin-bottom: .25rem; }
.skala { display: flex; flex-wrap: wrap; gap: .35rem; }
.skala__wahl { cursor: pointer; position: relative; }
.skala__wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.skala__wahl span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; border: 1px solid var(--linie-stark); border-radius: var(--radius-klein); background: var(--flaeche); }
.skala__wahl input:checked + span { background: var(--dunkelblau); color: #fff; border-color: var(--dunkelblau); }
.skala__wahl input:focus-visible + span { outline: 2px solid var(--hellblau, #00b1eb); outline-offset: 2px; }
.rangzeile { display: grid; grid-template-columns: 1fr 8rem; gap: .5rem; align-items: center; margin-bottom: .4rem; }
.verteilung { display: grid; grid-template-columns: repeat(10, 1fr); gap: .15rem; text-align: center; font-size: .8rem; max-width: 24rem; }
.verteilung span { display: block; color: var(--text-leise); }
.textliste { margin: 0; padding-left: 1.1rem; display: grid; gap: .4rem; }
.textliste li { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 480px) { .rangzeile { grid-template-columns: 1fr; } }

/* Titelbild von Angeboten (Runde 25) */
.titelbild { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: 8px; margin: 0 0 1.25rem; }
.angebotskarte__bild { display: block; width: 100%; height: 9rem; object-fit: cover; border-radius: 6px; margin: 0 0 .75rem; }
.titelbild-vorschau { max-width: 100%; max-height: 10rem; border-radius: 6px; }

/* Nur für Screenreader sichtbar (Altdaten-Import, Runde 26) */
.u-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Foto eines Ansprechpartners (Partnerbereich) */
.ansprech__foto { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.ansprech__foto--klein { width: 36px; height: 36px; margin-right: .5rem; vertical-align: middle; }

.qr-feld { width: 16rem; max-width: 100%; padding: .5rem; background: #fff; border: 1px solid #d5dde5; }
.qr-feld svg { display: block; width: 100%; height: auto; }

/* Diagramme (serverseitig gezeichnetes SVG, r74) */
.diagramm-huelle { margin: 1rem 0; }
.diagramm { display: block; width: 100%; max-width: 520px; height: auto; }
.diagramm__gitter { stroke: var(--linie); stroke-width: 1; }
.diagramm__achse { fill: var(--text-leise); font-size: 15px; }
.diagramm__linie { fill: none; stroke: var(--mittelblau); stroke-width: 2.5; stroke-linejoin: round; }
.diagramm__punkt { fill: var(--flaeche); stroke: var(--mittelblau); stroke-width: 2; }
.diagramm__balken { fill: var(--mittelblau); }

/* Messe: Rückblick */
.jahreswahl { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.jahreswahl a { padding: .4rem 1rem; border: 1px solid var(--linie); border-radius: 999px; text-decoration: none; font-weight: 650; color: var(--dunkelblau); background: var(--flaeche); }
.jahreswahl a[aria-current="page"] { background: var(--dunkelblau); color: #fff; border-color: var(--dunkelblau); }
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem; margin: 0 0 1.5rem; }
.kennzahlen > .karte { margin: 0; text-align: center; }
.kennzahl dt { font-size: .9rem; color: var(--text-leise); }
.kennzahl dd { margin: 0; font-size: 2.2rem; font-weight: 750; color: var(--dunkelblau); }
.rueckblick__text p:last-child { margin-bottom: 0; }
.galerie, .fotoliste { list-style: none; margin: 1rem 0; padding: 0; }
.galerie img, .fotokarte img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-klein); }
.fotoliste > .karte { margin-top: 0; }
.rueckblick__text + h2, .kennzahlen + .karte { margin-top: 1.5rem; }
.abschnitt h2 { margin-top: 2rem; }

.ausstellertext { list-style: none; margin: 1rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .5rem 1.5rem; }
.ausstellertext li { padding: .5rem 0; border-bottom: 1px solid var(--linie); font-weight: 600; color: var(--dunkelblau); }

/* Rückblick: Textabschnitte mit Foto oder Video im Wechsel */
.rb-abschnitt { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; align-items: center; margin: 2.5rem 0; }
.rb-abschnitt--text { grid-template-columns: 1fr; }
.rb-abschnitt--umgekehrt .rb-abschnitt__medien { order: -1; }
.abschnitt .rb-abschnitt h2 { margin-top: 0; }
.rb-abschnitt__text p:last-child { margin-bottom: 0; }
.rb-abschnitt__medien img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-klein); }
@media (max-width: 720px) {
  .rb-abschnitt { grid-template-columns: 1fr; }
  .rb-abschnitt--umgekehrt .rb-abschnitt__medien { order: 0; }
}

.abschnittsgruppe { border: 1px solid var(--linie); border-radius: var(--radius-klein); padding: 1rem; margin: 1rem 0 0; }
.abschnittsgruppe legend { font-weight: 650; padding: 0 .4rem; }

/* Bildvorschau in der Verwaltung (News, Presse) */
.bildvorschau { display: block; max-width: 16rem; max-height: 10rem; object-fit: cover; border-radius: var(--radius-klein); border: 1px solid var(--linie); }
