/* infra-struktur – DateSlot Terminbuchung (dateslot.infra-struktur.de, öffentliche Buchungsseite)
   Corporate Design 2026 wie neu.infra-struktur.de (Primär #004994, Akzent #26a69a, Verlauf, Hintergrund #f5f6fb),
   gleicher Aufbau wie Dokumenten-Download und Verschlüsselte Nachricht (Kopfleiste und Footer im Verlauf, weiße Kachel).
   Gestaltungsvorlage für die Quasar-App: Farben und Maße stehen als Variablen in :root (Zuordnung im Briefing).
   Schrift: Lato (SIL OFL 1.1), lokal in /fonts/. Icons: Font Awesome Free 6 (CC BY 4.0), Sprite in der HTML-Datei. */

@font-face { font-family: "Lato"; src: url("/fonts/lato-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/fonts/lato-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/fonts/lato-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  /* Corporate Design */
  --primary: #004994;
  --primary-700: #003c7a;
  --accent: #26a69a;
  --accent-700: #15706a; /* dunkles Türkis für Schrift: ≥ 4,5:1 auf Weiß und auf --accent-50 (WCAG AA) */
  --accent-50: #e6f5f3;
  --bg: #f5f6fb;
  --tile: #ffffff;
  --tile-2: #dfe8f7;
  --ink: #000000;
  --lavender: #8e9aca;
  --gradient: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);

  /* Ableitungen */
  --text: #1a1f2b;
  --muted: #4b5568;
  --disabled: #9aa3b5;
  --line: #e3e8f2;
  --field-line: #aebbd4;
  --field-line-hover: #7c8aa6;
  --error: #c62828;
  --error-ink: #8e1c1c;
  --error-bg: #fdecea;
  --white: #fff;

  --radius: 16px;
  --radius-s: 10px;
  --shadow-s: 0 1px 2px rgba(0, 38, 80, .06), 0 4px 14px -6px rgba(0, 38, 80, .14);
  --shadow: 0 2px 6px rgba(0, 38, 80, .05), 0 22px 44px -22px rgba(0, 38, 80, .32);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --pad: clamp(1.25rem, 3.4vw, 2.25rem); /* Innenabstand von Kopfleiste und Kacheln: Kanten bündig */
}

/* ---------- Basis ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100dvh;
  margin: 0;
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem; line-height: 1.7;
  color: var(--text);
  /* Hintergrund wie der Seitenkopf von neu.infra-struktur.de (.hero__bg) */
  background:
    radial-gradient(50% 60% at 90% 25%, rgba(38, 166, 154, .16), transparent 70%),
    radial-gradient(45% 55% at 0% 0%, rgba(0, 73, 148, .10), transparent 70%),
    linear-gradient(180deg, #e9eef9 0%, var(--bg) 85%) var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.15; letter-spacing: .01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--primary); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }
.icon--flip { transform: scaleX(-1); }
.nb { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
:is(.site-header__bar, .site-footer) :focus-visible { outline-color: var(--white); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 1.4em;
  border: 1.5px solid transparent; border-radius: 8px;
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn .icon { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.btn .nb { display: contents; }
.btn--white { background: var(--white); color: var(--primary); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .45); }
.btn--white:hover { background: #eef3fb; transform: translateY(-1px); }
.btn--white:hover .icon { transform: translateX(3px); }

.btn:active { transform: none; }

/* ---------- Kopfleiste: Verlauf, so breit wie der Inhalt ---------- */

.site-header { padding-top: 10px; }
.site-header__bar {
  display: flex; flex-direction: column; align-items: flex-start; gap: .55rem;
  padding: 1rem var(--pad) 1.05rem;
  border-radius: 14px;
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 10px 30px -18px rgba(0, 38, 80, .8);
}
.brand { position: relative; display: inline-flex; flex: none; border-radius: 6px; }
.brand::after { content: ""; position: absolute; inset: -10px -6px; }
.logo { display: block; width: auto; height: 24px; --logo-a: var(--primary); --logo-b: var(--lavender); }
.logo--white { --logo-a: #fff; --logo-b: rgba(255, 255, 255, .55); }
.site-header__title { color: var(--white); font-size: clamp(1.3125rem, 1.15rem + .7vw, 1.625rem); font-weight: 900; line-height: 1.2; }
.site-header__sub { margin-top: .15rem; color: rgba(255, 255, 255, .9); font-size: .9375rem; line-height: 1.4; }

/* Eigenes Logo des Anbieters (disableAdvertisingLogo): weiße Leiste, Logo in Originalfarben, Titel in Primärblau */
.site-header--eigen .site-header__bar { background: var(--tile); color: var(--text); box-shadow: var(--shadow-s); }
.site-header--eigen .site-header__title { color: var(--ink); }
.site-header--eigen .site-header__sub { color: var(--muted); }
.site-header--eigen .site-header__text { border-left-color: var(--line); }
.site-header__kundenlogo { display: block; width: auto; max-width: 220px; height: 40px; object-fit: contain; }

@media (min-width: 640px) {
  .site-header__bar { flex-direction: row; align-items: center; gap: 1.5rem; padding-block: 1.05rem 1.1rem; }
  .site-header__text { padding-left: 1.5rem; border-left: 1px solid rgba(255, 255, 255, .35); }
  .logo { height: 26px; }
}

/* ---------- Hauptbereich ---------- */

.main {
  position: relative; isolation: isolate;
  flex: 1 0 auto;
  padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(3rem, 7vw, 5rem);
}
/* Netzwerk-Grafik wie im Seitenkopf von neu (.hero__deco), hinter den Kacheln unten rechts */
.main::before {
  content: ""; position: absolute; z-index: -1; right: 0; bottom: 0;
  width: min(900px, 100%); aspect-ratio: 1625 / 500;
  background: url("/images/deco-netz.webp") center / contain no-repeat;
  opacity: .22;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  pointer-events: none;
}
.main > .container { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }

/* ---------- Werbebanner aus DateSlot (Karussell) ---------- */

.ds-banner { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--tile-2); box-shadow: var(--shadow-s); }
.ds-banner__track { display: grid; }
/* alle Bilder in derselben Zelle: Höhe richtet sich nach dem höchsten */
.ds-banner__slide { grid-area: 1 / 1; display: block; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.ds-banner__slide.is-active { opacity: 1; visibility: visible; }
.ds-banner__slide img { display: block; width: 100%; height: auto; }
.ds-banner__text {
  position: absolute; left: var(--pad); bottom: var(--pad); max-width: 32rem;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 900; line-height: 1.2;
}
.ds-banner__text small { display: block; margin-top: .35rem; font-size: 1rem; font-weight: 400; }
.ds-banner__dots { position: absolute; left: 50%; bottom: .6rem; display: flex; gap: .35rem; transform: translateX(-50%); }
.ds-banner__dot {
  width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center;
}
.ds-banner__dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(0, 73, 148, .3); transition: background-color .2s, transform .2s; }
.ds-banner__dot[aria-current="true"]::before { background: var(--primary); transform: scale(1.15); }

/* ---------- Buchung: wie in der App (BookingPage, Quasar) ----------
   Andrea Tissen, 2026-10-29: „genau so wie im Original“. Maße, Farben und Zustände aus dateslot.infra-struktur.de
   (Quasar-Komponenten QCard, QDate, QBtn, QInput, QDialog, QNotify); nur die Schrift bleibt Lato wie auf der übrigen Seite.
   Breiter als 600 px die Desktop-Ansicht der App, schmaler die Smartphone-Ansicht (.nur-desktop / .nur-mobil). */

.ds-booking {
  /* Farben der App: Quasar-Variablen und Quasar-Palette */
  --q-primary: #004f9f; --q-secondary: #26a69a; --q-accent: #4c99e8;
  --q-positive: #21ba45; --q-negative: #c10015; --q-warning: #f2c037;
  --q-green: #4caf50; --q-red: #f44336; --q-grey: #9e9e9e;
  --q-grey-2: #f5f5f5; --q-grey-4: #e0e0e0; --q-grey-5: #bdbdbd; --q-grey-6: #9e9e9e; --q-grey-7: #757575; --q-grey-8: #616161;
  --q-shadow: 0 1px 5px rgba(0, 0, 0, .2), 0 2px 2px rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .12);
  scroll-margin-top: 1rem;
}
@media (min-width: 600px) { .nur-mobil { display: none !important; } }
@media (max-width: 599.98px) { .nur-desktop { display: none !important; } }

.ds-icon { width: 1em; height: 1em; flex: none; fill: currentColor; vertical-align: middle; }

.ds-booking__head { margin-bottom: 48px; text-align: center; }
.ds-booking__title { margin-bottom: 8px; color: #000; font-size: 2.5rem; font-weight: 700; line-height: 60px; letter-spacing: -.00833em; }
.ds-booking__sub { color: var(--q-grey-7); font-size: 1rem; line-height: 1.5; }
@media (max-width: 768px) { .ds-booking__title { font-size: 2rem; } }

.ds-card {
  position: relative; width: 100%; max-width: 1200px; margin-inline: auto; padding: 16px;
  border-radius: 20px; background: #fff; box-shadow: 0 4px 20px rgba(0, 79, 159, .15);
  color: #000; font-size: 14px; line-height: 1.5;
}
.ds-card--lg { padding: 24px; }
.ds-card.is-loading { min-height: 200px; }
.ds-panel:focus { outline: none; }

.ds-step-title { margin: 0 0 16px; color: #1e293b; font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: normal; }
.ds-step-title--sub { margin-top: 16px; }
.ds-step-title--form { margin: 16px 0 24px; }

.ds-sep { display: block; height: 1px; margin: 0; border: 0; background: rgba(0, 0, 0, .12); }
.ds-sep--summary { margin-top: 8px; }
.ds-sep--form { margin-top: 16px; }

/* Zusammenfassung der Leistung (booking-summary) */
.ds-summary { margin-bottom: 16px; padding: 16px; border: 1px solid #e2e8f0; border-radius: 16px; background: #f8fafc; }
.ds-summary--daten { margin-bottom: 24px; }
.ds-summary--absagen { margin-bottom: 0; }
.ds-summary__title { margin-bottom: 8px; color: #000; font-size: 1rem; font-weight: 700; line-height: 1.2; letter-spacing: .03125em; }
.ds-summary__meta { color: var(--q-grey-7); }
.ds-summary__meta > div:not(:last-child) { margin-bottom: 4px; }
.ds-summary__meta .ds-icon { font-size: 24px; }
@media (max-width: 599.98px) {
  .ds-summary { margin-bottom: 24px; }
  .ds-summary__title { margin-bottom: 0; font-size: 1.25rem; letter-spacing: .0125em; }
  .ds-summary__meta > div:not(:last-child) { margin-bottom: 0; }
}

/* Datum und Uhrzeit: zwei Karten nebeneinander (Desktop), untereinander (Smartphone) */
.ds-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ds-pane { display: flex; flex-direction: column; min-width: 0; height: 464px; padding: 16px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 16px; background: #fff; }
.ds-pane__title { display: flex; align-items: center; gap: 5px; margin: 0 0 8px; color: #000; font-size: 1.25rem; font-weight: 700; line-height: 2rem; letter-spacing: .0125em; }
.ds-pane__title--time { margin-bottom: 16px; }
@media (max-width: 599.98px) {
  .ds-pick { display: block; }
  .ds-pane { height: auto; padding: 0; border-color: #e2e8f0; }
  .ds-pane--time { min-height: 292px; padding: 16px; }
  .ds-pane--time.is-leer { display: none; }
}

/* Kalender (QDate minimal, flat) */
.ds-date { padding: 16px; }
.ds-date__nav { display: flex; align-items: center; height: 32px; }
.ds-date__arrow { display: flex; align-items: center; }
.ds-date__nav > :first-child { width: 8%; min-width: 24px; justify-content: flex-end; }
.ds-date__nav > :last-child { width: 8%; min-width: 24px; justify-content: flex-start; }
.ds-date__label { display: flex; align-items: center; justify-content: center; padding: 4px; font-size: 14px; line-height: 24px; }
.ds-date__label--month { flex: 1 1 0; }
.ds-date__btn { display: grid; place-items: center; width: 24px; height: 24px; font-size: 17px; }
.ds-date__weekdays, .ds-date__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ds-date__weekdays { height: 32px; }
.ds-date__weekdays span { display: grid; place-items: center; font-size: 12px; opacity: .38; }
.ds-date__days { grid-auto-rows: 32px; min-height: 192px; }
.ds-day { display: grid; place-items: center; padding: 1px; }
.ds-day--out { opacity: .18; }
.ds-day--out span { width: 30px; height: 30px; border-radius: 50%; line-height: 30px; text-align: center; }
.ds-day__btn { width: 30px; height: 30px; line-height: 22px; }
.ds-day__btn[aria-pressed="true"] { background: var(--q-accent); color: #fff; }
.ds-day .is-today { box-shadow: inset 0 0 1px 0 currentColor; }
.ds-day__event { position: absolute; bottom: 2px; left: 50%; width: 8px; height: 5px; border-radius: 5px; background: var(--q-secondary); transform: translateX(-50%); pointer-events: none; }

/* Schalter wie QBtn: Fläche hellt beim Zeigen auf (q-focus-helper) */
.ds-date__btn, .ds-day__btn, .ds-slot, .ds-btn {
  position: relative; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #000;
  font: inherit; font-size: 14px; cursor: pointer;
}
.ds-date__btn::after, .ds-day__btn::after, .ds-slot::after, .ds-btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: currentColor; opacity: 0;
  transition: opacity .3s cubic-bezier(.25, .8, .5, 1); pointer-events: none;
}
:is(.ds-date__btn, .ds-day__btn, .ds-slot, .ds-btn):not(:disabled):hover::after { opacity: .12; }
.ds-date__btn { font-size: 17px; }

/* Uhrzeiten Desktop: je Stunde vier Viertelstunden, belegte grau */
.ds-slots-wrap { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; }
.ds-slots { height: 100%; padding-right: 8px; overflow-y: auto; }
.ds-slots::-webkit-scrollbar { width: 8px; }
.ds-slots::-webkit-scrollbar-track { border-radius: 4px; background: #f1f1f1; }
.ds-slots::-webkit-scrollbar-thumb { border-radius: 4px; background: #c1c1c1; }
.ds-slots::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }
.ds-slots__hour { display: flex; align-items: center; margin: 16px 0 8px; color: var(--q-grey-8); font-size: .875rem; font-weight: 700; line-height: 1.375rem; letter-spacing: .00714em; }
.ds-slots__hour .ds-icon { margin-right: 4px; font-size: 18px; }
.ds-slots__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
@media (min-width: 600px) { .ds-slots__row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ds-slots__row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ds-slot {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 36px; padding: 4px 16px;
  border-radius: 8px; background: var(--q-grey-2); color: #000; font-weight: 700; line-height: 1.715em; box-shadow: var(--q-shadow);
}
.ds-slot:disabled { background: var(--q-grey-4); color: var(--q-grey-6); opacity: .7; cursor: not-allowed; }
.ds-slot[aria-pressed="true"] { background: var(--q-green); color: #fff; box-shadow: none; }
.ds-slots__hint {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: center;
  height: 60px; padding-bottom: 10px; background: linear-gradient(to bottom, transparent, #fff); color: var(--q-grey-6); pointer-events: none;
}
.ds-slots__hint .ds-icon { font-size: 24px; animation: ds-huepfen 2s infinite; }
@keyframes ds-huepfen { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }
.ds-noslots { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ds-noslots .ds-icon { font-size: 3rem; color: var(--q-grey-5); }
.ds-noslots p { margin-top: 16px; color: var(--q-grey-7); }

/* Uhrzeiten Smartphone: grüner Balken je Stunde, freie Uhrzeiten als runde Knöpfe */
.ds-slots-m__group:not(:last-child) { margin-bottom: 16px; }
.ds-chip { display: flex; align-items: center; height: 28px; margin: 4px 0; padding: 0 12.6px; border-radius: 4px; background: var(--q-green); color: #fff; font-size: 14px; }
.ds-slots-m__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.ds-slot--m { height: 40px; padding: 4px 0; border-radius: 28px; background: var(--q-accent); color: #fff; }
.ds-noslots-m { padding: 16px; text-align: center; }
.ds-noslots-m .ds-icon { font-size: 2rem; color: var(--q-grey); }
.ds-noslots-m p { margin-top: 16px; color: var(--q-grey-7); }

/* Knöpfe (QBtn unelevated rounded) */
.ds-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 8px;
  border-radius: 28px; color: #fff; font-weight: 700; line-height: 1.715em; text-transform: uppercase; white-space: nowrap;
}
.ds-btn .ds-icon { font-size: 1.715em; }
.ds-btn__icon-right { margin-left: 12px; }
.ds-btn__icon-left { margin-right: 12px; }
.ds-btn--accent { background: var(--q-accent); }
.ds-btn--grey { background: var(--q-grey); }
.ds-btn--green { background: var(--q-green); }
.ds-btn--red { background: var(--q-red); }
.ds-btn--primary { background: var(--q-primary); }
.ds-btn--flat { min-width: 64px; border-radius: 3px; background: transparent; color: var(--q-primary); }

.ds-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.ds-actions--termin { margin-top: 16px; padding: 8px; }
.ds-actions--form { margin-top: 24px; }
.ds-actions--absagen { margin-top: 16px; }
.ds-actions .ds-btn + .ds-btn { margin-left: 8px; }
#ds-zurueck-leistung { margin-right: 16px; }
.ds-space { flex: 1 1 auto; }
@media (max-width: 599.98px) { .ds-actions--termin { padding: 0; } }

/* Leistungen (mehrere): Kategorien aufklappbar (QExpansionItem), Karten (service-booking-card) */
.ds-search { margin-bottom: 16px; }
.ds-group { margin-bottom: 16px; }
.ds-group__head {
  display: flex; align-items: center; min-height: 48px; padding: 8px 16px; cursor: pointer; list-style: none;
  font-size: 1.25rem; font-weight: 700; line-height: 2rem; letter-spacing: .0125em;
}
.ds-group__head::-webkit-details-marker { display: none; }
.ds-group__toggle { margin-left: auto; color: var(--q-primary); font-size: 24px; transition: transform .3s; }
.ds-group[open] .ds-group__toggle { transform: rotate(180deg); }
.ds-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ds-group .ds-services { padding-top: 16px; }
@media (max-width: 599.98px) { .ds-services { grid-template-columns: minmax(0, 1fr); } }
.ds-service {
  display: flex; flex-direction: column; width: 100%; height: 100%; padding: 16px;
  border: 1px solid rgba(0, 0, 0, .12); border-radius: 12px; background: #fff; color: #000;
  font: inherit; font-size: 14px; line-height: 1.5; text-align: left; cursor: pointer; transition: all .3s ease;
}
.ds-service:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0, 79, 159, .15); }
.ds-service__title { margin-bottom: .5rem; font-size: 1.1rem; font-weight: 700; line-height: 1.2; }
.ds-service__meta { margin-bottom: .5rem; color: var(--q-grey-7); font-size: .9rem; }
.ds-service__meta .ds-icon { font-size: 24px; }
.ds-service__caption { margin-top: 8px; color: var(--q-grey-6); }
.ds-services-leer { padding: 48px 0; text-align: center; }
.ds-services-leer .ds-icon { font-size: 4rem; color: var(--q-grey-5); }
.ds-services-leer p { margin-top: 16px; color: var(--q-grey-7); }

/* Formular (QInput outlined rounded, schwebende Beschriftung) */
#ds-verschieben-formular, #ds-absagen-formular .ds-field { margin-top: 16px; }
.ds-fields { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 0; }
/* Breite wie in der App: 48 % ab 961 px Fensterbreite ($q.screen.width > 960), sonst ganze Breite */
.ds-fields > * { width: 100%; }
@media (min-width: 961px) { .ds-fields > * { width: 48%; } }
.ds-field { position: relative; }
.ds-field__control {
  position: relative; display: flex; align-items: center; height: 56px; padding: 0 12px;
  border-radius: 28px; color: var(--q-primary); cursor: text;
}
.ds-field__control::before, .ds-field__control::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.ds-field__control::before { border: 1px solid rgba(0, 0, 0, .24); transition: border-color .36s cubic-bezier(.4, 0, .2, 1); }
.ds-field__control:hover::before { border-color: #000; }
.ds-field__control::after { border: 2px solid transparent; transition: border-color .36s cubic-bezier(.4, 0, .2, 1); }
.ds-field.is-focus .ds-field__control::after, .ds-field.is-error .ds-field__control::after { border-color: currentColor; }
.ds-field.is-focus .ds-field__control:hover::before { border-color: transparent; }
.ds-field.is-error .ds-field__control { color: var(--q-negative); }
.ds-field__native {
  flex: 1 1 auto; align-self: stretch; min-width: 0; margin: 0; padding: 24px 0 8px; border: 0; outline: 0; background: transparent;
  color: rgba(0, 0, 0, .87); font: inherit; font-size: 14px; line-height: 24px; letter-spacing: .00937em;
}
.ds-field__native:focus-visible { outline: 0; }
.ds-field__label {
  position: absolute; top: 18px; left: 12px; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: rgba(0, 0, 0, .6); font-size: 16px; line-height: 1.25; letter-spacing: .00937em; pointer-events: none;
  transform-origin: left top; transition: transform .36s cubic-bezier(.4, 0, .2, 1), max-width .324s cubic-bezier(.4, 0, .2, 1);
}
.ds-field.is-float .ds-field__label { max-width: 133%; transform: translateY(-40%) scale(.75); }
.ds-field.is-focus .ds-field__label, .ds-field.is-error .ds-field__label { color: currentColor; }
.ds-field__bottom { min-height: 20px; padding: 8px 12px 0; color: rgba(0, 0, 0, .54); font-size: 12px; line-height: 1; }
.ds-field.is-error .ds-field__bottom { color: var(--q-negative); }
/* Suche: Symbol vorn, Platzhalter statt Beschriftung */
.ds-field--prepend .ds-field__native { padding: 0; }
.ds-field__prepend { padding-right: 12px; color: rgba(0, 0, 0, .54); font-size: 24px; box-sizing: content-box; }
/* Auswahl (QSelect): Pfeil rechts */
.ds-field--select .ds-field__control { cursor: pointer; }
.ds-field--select .ds-field__native { appearance: none; cursor: pointer; }
.ds-field__append { padding-left: 12px; color: rgba(0, 0, 0, .54); font-size: 24px; box-sizing: content-box; pointer-events: none; }
.ds-field__fehler { display: none; padding-left: 12px; color: var(--q-negative); font-size: 24px; box-sizing: content-box; }
.ds-field.is-error .ds-field__fehler { display: block; }
/* Mehrzeilig (autogrow) */
.ds-field--textarea .ds-field__control { height: auto; min-height: 56px; }
.ds-field--textarea .ds-field__native { min-height: 52px; padding: 26px 0 4px; line-height: 18px; resize: none; overflow: hidden; }
/* Checkbox und Radiobox: Rahmen mit kleiner Beschriftung */
.ds-choice { min-height: 56px; padding-bottom: 8px; border: .1px solid lightgrey; border-radius: 28px; }
.ds-choice__title { display: block; height: 20px; margin: 16px 0 0 16px; color: #5c5c5c; font-size: 12px; }
.ds-choice__options { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-left: 16px; }
.ds-choice__option { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; }
.ds-choice__option input { width: 18px; height: 18px; margin: 11px; accent-color: var(--q-secondary); }

/* Dialog (QDialog) */
.ds-dialog { position: fixed; inset: 0; z-index: 6000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ds-dialog__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); }
.ds-dialog__card {
  position: relative; max-width: 560px; max-height: calc(100vh - 48px); overflow: auto;
  border-radius: 4px; background: #fff; box-shadow: var(--q-shadow); color: #000; font-size: 14px; line-height: 1.5;
}
.ds-dialog__section { padding: 16px; }
.ds-dialog__title { font-size: 1.25rem; font-weight: 700; line-height: 2rem; letter-spacing: .0125em; }
.ds-dialog__text { max-height: 50vh; overflow: auto; }
.ds-dialog__actions { display: flex; justify-content: flex-end; padding: 8px; }
.ds-dialog .ds-preview-note { display: inline-block; margin-top: 12px; }

/* Laden in der Kachel (QInnerLoading) und beim Senden (Quasar Loading) */
.ds-inner-loading {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; border-radius: inherit;
  background: rgba(255, 255, 255, .6); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.ds-card.is-loading .ds-inner-loading { opacity: 1; visibility: visible; }
.ds-loading { position: fixed; inset: 0; z-index: 6000; display: grid; place-items: center; background: rgba(0, 0, 0, .4); }
.ds-spinner { width: 42px; height: 42px; border: 4px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: drehen .9s linear infinite; }
.ds-spinner--weiss { width: 80px; height: 80px; border-width: 6px; color: #fff; }
@keyframes drehen { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ds-spinner { animation-duration: 2.4s; } .ds-slots__hint .ds-icon { animation: none; } }

/* Benachrichtigung oben (QNotify, position top) */
.ds-notify {
  position: fixed; top: 0; left: 50%; z-index: 9500; display: inline-flex; align-items: center;
  min-height: 48px; max-width: 65vw; margin-top: 10px; padding: 0 16px; border-radius: 4px;
  background: var(--q-positive); color: #fff; font-size: 14px; line-height: 1.5; box-shadow: var(--q-shadow); transform: translateX(-50%);
}
.ds-notify--warning { background: var(--q-warning); color: #000; }
.ds-notify__icon { margin-right: 16px; font-size: 24px; }
.ds-notify__text { padding: 8px 0; }
.ds-notify__close {
  position: relative; display: grid; place-items: center; width: 36px; height: 36px; margin: 6px -8px 6px 8px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 24px; cursor: pointer;
}
@media (max-width: 599.98px) { .ds-notify { max-width: calc(100vw - 20px); } }

/* Link abgelaufen oder unbekannt (in der App eigene Seiten) */
.ds-result { display: grid; justify-items: center; gap: .75rem; padding: clamp(1rem, 3vw, 1.75rem) 0 .5rem; text-align: center; }
.ds-result__icon { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: .25rem; border-radius: 50%; }
.ds-result__icon .icon { width: 34px; height: 34px; }
.ds-result__icon--neutral { background: var(--tile-2); color: var(--primary); }
.ds-result__icon--error { background: var(--error-bg); color: var(--error); }
.ds-result__title { font-size: clamp(1.375rem, 1.15rem + .9vw, 1.75rem); font-weight: 900; line-height: 1.25; }
.ds-result__text { max-width: 34rem; color: var(--muted); font-size: 1.0625rem; line-height: 1.55; }

/* nur in der Vorschau: zeigt, dass nichts gesendet wurde */
.ds-preview-note { padding: .35rem .75rem; border-radius: 999px; background: #fff4d6; color: #6b4e00; font-size: .8125rem; font-weight: 700; }

/* ---------- Inhalts-Kästen aus DateSlot (mainBox, description) ---------- */

.ds-boxes { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
@media (min-width: 1024px) {
  .ds-boxes { grid-template-columns: var(--links, 1fr) var(--rechts, 1fr); align-items: start; }
}
.ds-box { min-width: 0; padding: var(--pad); border-radius: var(--radius); background: var(--tile); box-shadow: var(--shadow-s); overflow-wrap: break-word; }
.ds-box__logo { display: block; max-width: 260px; max-height: 80px; width: auto; height: auto; margin-bottom: 1.5rem; object-fit: contain; }

/* Inhalt aus dem Editor von DateSlot (HTML mit <font size> und Inline-Stilen): Schrift und Abstände angleichen */
.ds-html { color: var(--text); font-size: 1rem; line-height: 1.65; }
.ds-html, .ds-html * { font-family: inherit !important; }
.ds-html p { margin: 0 0 .25rem; }
.ds-html p:empty, .ds-html p:has(> br:only-child), .ds-html p:has(> font:only-child > br:only-child), .ds-html p:has(> span:only-child > br:only-child) { margin: 0; min-height: .6rem; line-height: .6; }
.ds-html font[size="7"], .ds-html font[size="6"] { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.ds-html font[size="5"] { color: var(--ink); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); font-weight: 900; line-height: 1.3; }
.ds-html font[size="4"] { font-size: 1.125rem; }
.ds-html font[size="3"] { font-size: 1rem; }
.ds-html font[size="2"], .ds-html font[size="1"] { font-size: .875rem; }
.ds-html strong, .ds-html b { color: var(--ink); font-weight: 900; }
.ds-html img { max-width: 100%; height: auto; }
.ds-html a:not([style]) { color: var(--primary); font-weight: 700; }
.ds-html ul, .ds-html ol { margin: .5rem 0; padding-left: 1.25rem; list-style: revert; }

/* ---------- Footer: Verlauf, schlank ---------- */

.site-footer {
  position: relative; isolation: isolate; overflow: hidden;
  flex-shrink: 0;
  padding: clamp(2rem, 5vw, 2.75rem) 0 1.5rem;
  background: var(--gradient);
  color: rgba(255, 255, 255, .88); font-size: .9375rem; line-height: 1.6;
}
.site-footer::after {
  content: ""; position: absolute; z-index: -1; right: 0; bottom: 0;
  width: min(820px, 100%); height: 100%;
  background: url("/images/deco-netz-weiss.webp") right bottom / contain no-repeat;
  opacity: .08;
  pointer-events: none;
}
.site-footer__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2rem; }
.site-footer__about { display: grid; justify-items: start; gap: .85rem; max-width: 34rem; }
.site-footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; color: var(--white); font-size: 1.0625rem; font-weight: 700; }
.site-footer__brand .logo { height: 28px; }
.site-footer__text { color: rgba(255, 255, 255, .9); text-wrap: pretty; }
.site-footer__about .btn { margin-top: .35rem; }

.site-footer__social { display: flex; flex-wrap: wrap; gap: .6rem; }
.site-footer__social-link {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%;
  background: rgba(255, 255, 255, .08); color: var(--white);
  transition: background-color .3s, border-color .3s, transform .2s var(--ease);
}
.site-footer__social-link:hover, .site-footer__social-link:focus-visible { border-color: var(--white); background: rgba(255, 255, 255, .24); transform: translateY(-2px); }
.site-footer__social-link .icon { width: 18px; height: 18px; }

.site-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem;
  margin-top: 1.5rem; padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.site-footer__copy { color: rgba(255, 255, 255, .8); font-size: .875rem; }
.site-footer__legal { display: flex; flex-wrap: wrap; margin-inline: -.75rem; }

.on-gradient-link {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center;
  min-height: 44px; padding: .45rem .75rem; border-radius: 7px;
  color: var(--tile-2); font-size: .875rem; font-weight: 700; text-decoration: none;
  transition: color .4s;
}
.on-gradient-link::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; background: rgba(255, 255, 255, .24);
  opacity: 0; transition: opacity .4s;
}
.on-gradient-link:hover, .on-gradient-link:focus-visible { color: var(--white); }
.on-gradient-link:hover::before, .on-gradient-link:focus-visible::before { opacity: 1; }

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

@media (prefers-reduced-motion: reduce) {
  .btn, .btn .icon, .site-footer__social-link, .ds-service, .ds-banner__slide { transition: none; }
  .btn:hover, .btn:hover .icon, .site-footer__social-link:hover, .ds-service:hover { transform: none; }
}
