/* =========================================================================
 * Open Sans — self-hosted (vorher Google Fonts CDN)
 *
 * Subsets: latin + latin-ext (deckt DE + EN + TR + FR + IT ab; RU braucht
 * cyrillic — wenn du das willst, ergänze via gwfh.mranftl.com Subset 'cyrillic'
 * und füge entsprechende @font-face-Blöcke hinzu).
 * Quelle: google-webfonts-helper (Mirror von Google Fonts).
 * font-display: swap = Fallback-Font sofort sichtbar, Web-Font tauscht still.
 * ========================================================================= */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/open-sans/open-sans-v44-latin_latin-ext-300.bfaf4e47e716.woff2") format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/open-sans/open-sans-v44-latin_latin-ext-regular.be54f77ab356.woff2") format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/open-sans/open-sans-v44-latin_latin-ext-600.ab5f9cdfc018.woff2") format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/open-sans/open-sans-v44-latin_latin-ext-700.1779a8586ad4.woff2") format('woff2');
}

/* =========================================================================
 * Würzburg Sehen — Design System
 *
 * Reusable component classes prefixed with .ws- (= "wuerzburg sehen").
 * Built on top of Tailwind utilities (self-hosted via tailwind.min.css).
 * Used by all apps: districts, attractions, restaurants, jobs, events, etc.
 *
 * Token-Quelle: tailwind.config.js (Self-Hosting, lokal kompiliert).
 *   ws-primary    #3381B5  (Stadt-Blau, Würzburg-Akzent)
 *   ws-accent     #FF6E1E  (CTA/Highlight)
 *   ws-ink        #1F2937  (Haupt-Text)
 *   ws-muted      #6B7280  (Sekundär-Text)
 *   ws-bg         #FAFAFA  (Seiten-Hintergrund)
 *   ws-border     #E5E7EB  (Trennlinien, Card-Rahmen)
 * ========================================================================= */

/* ---------- Design-Tokens (CSS-Custom-Properties) ----------
 * Single-Source für Theming: eine Farbe hier ändern → propagiert überall.
 * Spiegel-Quelle bleibt tailwind.config.js (Utility-Schicht); bei Änderung
 * beide synchron halten. Neutrals/Status hier zusätzlich tokenisiert. */
:root {
  /* Marke */
  --ws-primary: #3381B5;
  --ws-primary-dark: #1E5A85;
  --ws-accent: #FF6E1E;
  --ws-accent-dark: #E25500;
  /* Coupon-Rot (Gutschein-Strecke) — vorher inline in Templates */
  --ws-coupon: #E94B3C;
  --ws-coupon-dark: #B91C1C;
  /* Bewertungs-Sterne */
  --ws-star: #F5A623;
  /* Premium-Highlight (Amber) */
  --ws-premium: #F59E0B;

  /* Text & Flächen */
  --ws-ink: #1F2937;
  --ws-ink-soft: #374151;
  --ws-muted: #6B7280;
  --ws-muted-light: #9CA3AF;
  --ws-bg: #FAFAFA;
  --ws-surface: #FFFFFF;
  --ws-border: #E5E7EB;
  --ws-border-light: #F3F4F6;

  /* Status (Badge/Alert-Paare) */
  --ws-info-bg: #E0F2FE;      --ws-info-fg: #075985;
  --ws-success-bg: #DCFCE7;   --ws-success-fg: #166534;
  --ws-warning-bg: #FEF3C7;   --ws-warning-fg: #92400E;
  --ws-error-bg: #FEE2E2;     --ws-error-fg: #991B1B;
  --ws-primary-soft-bg: #DBEAFE; --ws-primary-soft-fg: #1E40AF;

  /* Fokus-Ring (primary @ 15%) */
  --ws-focus-ring: rgba(51,129,181,.15);

  /* Radius */
  --ws-radius-sm: 0.375rem;
  --ws-radius: 0.5rem;
  --ws-radius-lg: 0.75rem;
  --ws-radius-pill: 9999px;

  /* Schatten */
  --ws-shadow-sm: 0 1px 3px rgba(0,0,0,.05);
  --ws-shadow-card: 0 8px 16px -4px rgba(0,0,0,.08);
}

/* ---------- Layout ---------- */
.ws-container { max-width: 1200px; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 1024px) { .ws-container { padding-inline: 2rem; } }

.ws-section { padding-block: 2rem; }
.ws-section-title { font-size: 1.875rem; font-weight: 300; margin-bottom: 1rem; color: #1F2937; }
.ws-section-subtitle { font-size: 1.125rem; color: #6B7280; margin-bottom: 2rem; }

/* ---------- Header / Footer ---------- */
.ws-header { background: #fff; border-bottom: 1px solid #E5E7EB; }
.ws-footer { background: #fff; border-top: 1px solid #E5E7EB; }

/* ---------- Navigation ---------- */
.ws-nav { background: #fff; }
.ws-nav-link {
  display: inline-block;
  padding: 0.65rem 0.85rem;
  font-size: 0.9375rem;
  color: #1F2937;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.ws-nav-link:hover { color: var(--ws-primary); }
.ws-nav-link.is-active { color: var(--ws-primary); border-bottom-color: var(--ws-primary); font-weight: 600; }

.ws-link { color: var(--ws-primary); text-decoration: none; }
.ws-link:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.ws-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  cursor: pointer;
}
.ws-btn-primary { background: var(--ws-primary); color: #fff; }
.ws-btn-primary:hover { background: var(--ws-primary-dark); }
.ws-btn-accent { background: var(--ws-accent); color: #fff; }
.ws-btn-accent:hover { background: var(--ws-accent-dark); }
.ws-btn-outline { background: transparent; color: var(--ws-primary); border-color: var(--ws-primary); }
.ws-btn-outline:hover { background: var(--ws-primary); color: #fff; }
.ws-btn-ghost { color: var(--ws-ink); background: transparent; }
.ws-btn-ghost:hover { background: var(--ws-border-light); }
/* Weißer Button für dunkle Hero-Flächen (CTA-Leiste). */
.ws-btn-white { background: #fff; color: var(--ws-ink); }
.ws-btn-white:hover { background: var(--ws-border-light); }

/* ---------- Cards ---------- */
.ws-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ws-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ws-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .ws-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.ws-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
  position: relative;
}
.ws-card:hover { box-shadow: var(--ws-shadow-card); transform: translateY(-2px); }
.ws-card-accent { border-top: 4px solid var(--ws-card-accent-color, var(--ws-primary)); }
.ws-card-image { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: #F3F4F6; }
.ws-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.ws-card-title { font-size: 1.25rem; font-weight: 600; margin: 0; }
.ws-card-text { font-size: 0.875rem; color: #6B7280; margin: 0; }
.ws-card-meta { font-size: 0.75rem; color: #9CA3AF; margin-top: auto; }

/* ---------- Badges & Tags ---------- */
.ws-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #E5E7EB;
  color: #1F2937;
}
.ws-badge-primary { background: var(--ws-primary-soft-bg); color: var(--ws-primary-soft-fg); }
.ws-badge-success { background: var(--ws-success-bg); color: var(--ws-success-fg); }
.ws-badge-warning { background: var(--ws-warning-bg); color: var(--ws-warning-fg); }
.ws-badge-info    { background: var(--ws-info-bg); color: var(--ws-info-fg); }

.ws-tag {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  background: #F3F4F6;
  color: #374151;
}
.ws-badge-premium { background: var(--ws-premium); color: #fff; }

/* ---------- Hero ---------- */
.ws-hero {
  position: relative;
  padding-block: 3rem;
  background: linear-gradient(135deg, var(--ws-primary) 0%, var(--ws-primary-dark) 100%);
  color: #fff;
}
.ws-hero-title { font-size: 2.5rem; font-weight: 300; margin: 0 0 0.5rem; }
.ws-hero-subtitle { font-size: 1.125rem; opacity: 0.9; margin: 0; }
.ws-hero-accent {
  border-left: 4px solid var(--ws-hero-accent-color, var(--ws-accent));
  padding-left: 1rem;
}

/* ---------- Stats Block (für Demografie) ---------- */
.ws-stat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .ws-stat-grid { grid-template-columns: repeat(4, 1fr); } }
.ws-stat {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  padding: 1rem;
}
.ws-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ws-primary);
  line-height: 1.1;
  display: block;
}
.ws-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6B7280;
  margin-top: 0.25rem;
}
.ws-stat-meta { font-size: 0.6875rem; color: #9CA3AF; margin-top: 0.25rem; }
.ws-stat-group-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4B5563;
  margin: 1.5rem 0 0.75rem;
}
.ws-stat-group-title:first-of-type { margin-top: 0.5rem; }

/* ---------- Article / Prose ---------- */
.ws-prose { max-width: 65ch; }
.ws-prose h2 { font-size: 1.5rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.ws-prose h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.25rem; margin-bottom: 0.5rem; }
.ws-prose p { margin-bottom: 1rem; line-height: 1.6; }
.ws-prose ul { list-style: disc; margin-bottom: 1rem; padding-left: 1.5rem; }
.ws-prose ol { list-style: decimal; margin-bottom: 1rem; padding-left: 1.5rem; }
.ws-prose li { margin-bottom: 0.25rem; }
.ws-prose a { color: var(--ws-primary); text-decoration: underline; }

/* ---------- Image Gallery Block (StreamField) ----------
 * Grid- und Masonry-Layout für mehrbildige Galerien. Lightbox via native
 * <dialog> in base.html, geöffnet vom JS in static/js/ws-gallery-lightbox.js.
 * Default-Mobile: 2 Spalten; Layout-Variante greift ab Breakpoints. */
.ws-gallery { margin: 1.75rem 0 2.25rem; }
.ws-gallery-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: #1F2937;
}
.ws-gallery-grid {
  display: grid;
  gap: 0.625rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .ws-gallery--grid-3 .ws-gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .ws-gallery--grid-4 .ws-gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .ws-gallery--masonry .ws-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .ws-gallery--grid-4 .ws-gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
.ws-gallery-item { margin: 0; }
.ws-gallery-trigger {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 100%;
  border-radius: 0.375rem;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
/* Fokus-Ring kommt aus der globalen :focus-visible-Baseline (Datei-Ende). */
.ws-gallery-trigger:hover,
.ws-gallery-trigger:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(0,0,0,.15);
}
.ws-gallery-trigger img {
  display: block;
  width: 100%;
  height: auto;
}
.ws-gallery--grid-3 .ws-gallery-trigger img,
.ws-gallery--grid-4 .ws-gallery-trigger img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.ws-gallery-caption {
  font-size: 0.8125rem;
  color: #6B7280;
  margin-top: 0.375rem;
  line-height: 1.4;
}

/* Lightbox-Dialog (native <dialog>, einmal in base.html). */
.ws-gallery-dialog {
  border: 0;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  padding: 1rem;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
}
.ws-gallery-dialog::backdrop { background: rgba(15, 23, 42, 0.85); }
.ws-gallery-dialog[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ws-gallery-dialog-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
  max-height: 100%;
}
.ws-gallery-dialog-figure img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0.375rem;
}
.ws-gallery-dialog-caption {
  font-size: 0.9375rem;
  color: rgba(255,255,255,.92);
  max-width: 60ch;
  text-align: center;
  line-height: 1.5;
}
.ws-gallery-dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 9999px;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Kein outline: 0 mehr — die globale :focus-visible-Baseline (Datei-Ende)
 * liefert den sichtbaren Doppel-Ring, auch auf dem dunklen Dialog. */
.ws-gallery-dialog-close:hover,
.ws-gallery-dialog-close:focus-visible {
  background: rgba(255,255,255,.28);
}

/* ---------- Meta-Rows (Key-Value-Listen) ---------- */
.ws-meta-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.ws-meta-row { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.25rem; border-bottom: 1px solid #F3F4F6; }
.ws-meta-row:last-child { border-bottom: none; }
.ws-meta-key { font-size: 0.875rem; color: #6B7280; }
.ws-meta-value { font-size: 0.875rem; font-weight: 600; text-align: right; }
/* Heutige Zeile in Öffnungszeiten hervorheben. */
.ws-meta-row.is-today { background: var(--ws-border-light); border-radius: 0.25rem; }
.ws-meta-row.is-today .ws-meta-key { color: var(--ws-ink); font-weight: 700; }
.ws-meta-row.is-today .ws-meta-value { font-weight: 700; }

/* ---------- Breadcrumb ---------- */
.ws-breadcrumb { background: #F9FAFB; border-bottom: 1px solid #E5E7EB; padding-block: 0.6rem; font-size: 0.8125rem; }
.ws-breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.ws-breadcrumb li + li::before { content: "›"; margin-right: 0.4rem; color: #9CA3AF; }
.ws-breadcrumb a { color: var(--ws-primary); text-decoration: none; }
.ws-breadcrumb a:hover { text-decoration: underline; }
.ws-breadcrumb [aria-current="page"] { color: #6B7280; }

/* ---------- Filter-Pills (z.B. Kategorie-Filter über Karten-Listen) ---------- */
.ws-filter-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ws-filter-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid #E5E7EB;
  font-size: 0.875rem;
  color: #1F2937;
  text-decoration: none;
  transition: border-color .15s, background .15s, color .15s;
}
.ws-filter-pill::before {
  content: ""; width: 0.55rem; height: 0.55rem;
  border-radius: 9999px;
  background: var(--ws-pill-color, var(--ws-primary));
  flex-shrink: 0;
}
.ws-filter-pill:hover { border-color: var(--ws-pill-color, var(--ws-primary)); }
.ws-filter-pill.is-active {
  background: var(--ws-pill-color, var(--ws-primary));
  border-color: var(--ws-pill-color, var(--ws-primary));
  color: #fff;
}
.ws-filter-pill.is-active::before { background: rgba(255,255,255,.9); }
.ws-filter-pill-count { color: #9CA3AF; font-size: 0.8125rem; }
.ws-filter-pill.is-active .ws-filter-pill-count { color: rgba(255,255,255,.85); }

/* ---------- Pagination (Shared-Partial _includes/_pagination.html) ---------- */
.ws-pagination {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.375rem;
  margin-top: 2rem;
  font-size: 0.9375rem;
}
.ws-pagination-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.25rem; height: 2.25rem;
  padding: 0 0.6rem;
  border-radius: var(--ws-radius-sm);
  border: 1px solid var(--ws-border);
  background: var(--ws-surface);
  color: var(--ws-ink);
  text-decoration: none;
}
.ws-pagination-link:hover { border-color: var(--ws-primary); color: var(--ws-primary); }
.ws-pagination-link.is-active {
  background: var(--ws-primary);
  border-color: var(--ws-primary);
  color: #fff;
}
.ws-pagination-ellipsis { padding: 0 0.25rem; color: var(--ws-muted); }

/* ---------- Card-Location-Zeile (Stadtteil-Pin) ---------- */
.ws-card-location { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.8125rem; color: #6B7280; }
.ws-card-location svg { width: 0.85rem; height: 0.85rem; flex-shrink: 0; }

/* ---------- Alerts / Messages ---------- */
.ws-alert { padding: 0.75rem 1rem; border-radius: 0.375rem; margin-bottom: 0.5rem; font-size: 0.875rem; }
.ws-alert-info    { background: var(--ws-info-bg); color: var(--ws-info-fg); }
.ws-alert-success { background: var(--ws-success-bg); color: var(--ws-success-fg); }
.ws-alert-warning { background: var(--ws-warning-bg); color: var(--ws-warning-fg); }
.ws-alert-error   { background: var(--ws-error-bg); color: var(--ws-error-fg); }

/* ---------- Attribution (Pflicht für DL-DE-BY-2.0 etc.) ---------- */
.ws-attribution {
  font-size: 0.75rem;
  color: #9CA3AF;
  font-style: italic;
}
.ws-attribution a { color: inherit; text-decoration: underline; }

/* ---------- UGC-Block (Sprach-Markierung für Browser-Translate) ---------- */
.ugc-content { display: block; }

/* ---------- Forms ---------- */
.ws-input {
  width: 100%;
  border: 1px solid #E5E7EB;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  background: #fff;
}
.ws-input:focus { outline: none; border-color: var(--ws-primary); box-shadow: 0 0 0 3px var(--ws-focus-ring); }
.ws-label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.25rem; }
.ws-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Auto-Styling für nackte Django-Forms innerhalb von .ws-form-fields (allauth, Self-Service). */
.ws-form-fields .ws-form-field { margin-bottom: 1rem; }
.ws-form-fields label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.25rem; color: #1F2937; }
.ws-form-fields input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),
.ws-form-fields textarea,
.ws-form-fields select {
  width: 100%;
  border: 1px solid #E5E7EB;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  background: #fff;
  color: #1F2937;
}
.ws-form-fields input:focus,
.ws-form-fields textarea:focus,
.ws-form-fields select:focus {
  outline: none;
  border-color: var(--ws-primary);
  box-shadow: 0 0 0 3px var(--ws-focus-ring);
}
.ws-form-fields .has-error input:not([type=checkbox]):not([type=radio]),
.ws-form-fields .has-error textarea,
.ws-form-fields .has-error select { border-color: #DC2626; }
.ws-form-help  { color: #6B7280; font-size: 0.75rem; margin-top: 0.25rem; }
.ws-form-error { color: #991B1B; font-size: 0.8125rem; margin-top: 0.25rem; }

/* Auth-Entrance-Pages (Login/Signup/Pw-Reset) — Card-Layout auf <main> via body-class. */
body.is-auth-page main {
  max-width: 28rem;
  margin: 2.5rem auto;
  padding: 1.75rem 1.5rem;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
body.is-auth-page main h1 { font-size: 1.5rem; font-weight: 600; margin: 0 0 1rem; color: #1F2937; }
body.is-auth-page main h2 { font-size: 1.125rem; font-weight: 600; margin: 1.75rem 0 0.75rem; color: #1F2937; }
body.is-auth-page main p { font-size: 0.9375rem; color: #374151; margin: 0 0 1rem; }
body.is-auth-page main p a { color: #3381B5; text-decoration: underline; }
body.is-auth-page main hr { border: 0; border-top: 1px solid #E5E7EB; margin: 1.5rem 0; }

/* Manage-Pages (Email, Password, Sessions, MFA): breiter als Login-Card. */
body.is-auth-page.is-auth-manage main { max-width: 42rem; }
body.is-auth-page main form > * + * { margin-top: 0.75rem; }
body.is-auth-page main form .ws-btn + .ws-btn { margin-left: 0.5rem; }
body.is-auth-page main label { display: inline-block; font-size: 0.9375rem; color: #1F2937; }

/* Login-CTA fürs Registrieren (unter dem Login-Form). */
.ws-auth-divider { border: 0; border-top: 1px solid #E5E7EB; margin: 1.5rem 0 1.25rem; }
.ws-auth-cta { text-align: center; }
.ws-auth-cta-text { font-size: 0.875rem; color: #6B7280; margin: 0 0 0.75rem !important; }
.ws-btn-block { display: flex; width: 100%; justify-content: center; }

/* ---------- Hero mit Foto (Home) ---------- */
.ws-hero-photo {
  position: relative;
  isolation: isolate;
  padding-block: 5rem;
  color: #fff;
  overflow: hidden;
}
.ws-hero-photo::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background-image: var(--ws-hero-img-jpg);
  background-image: image-set(
    var(--ws-hero-img-webp) type("image/webp"),
    var(--ws-hero-img-jpg)  type("image/jpeg")
  );
  background-size: cover;
  background-position: center;
}
.ws-hero-photo::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(30,90,133,.55) 0%, rgba(31,41,55,.65) 100%);
}
.ws-hero-photo-title    { font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; margin: 0 0 .75rem; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.ws-hero-photo-subtitle { font-size: 1.125rem; max-width: 42rem; margin: 0 auto 2rem; opacity: .95; text-shadow: 0 1px 4px rgba(0,0,0,.35); }

/* ---------- Home-Suchformular (groß, mittig) ---------- */
.ws-search-hero { display: flex; max-width: 40rem; margin-inline: auto; }
.ws-search-hero input {
  flex: 1; border: 0; padding: .9rem 1.1rem; font-size: 1rem;
  border-radius: .5rem 0 0 .5rem; background: #fff; color: #1F2937;
}
.ws-search-hero input:focus { outline: 2px solid var(--ws-accent); outline-offset: 2px; }
.ws-search-hero button {
  border: 0; padding: .9rem 1.4rem; font-weight: 600; cursor: pointer;
  border-radius: 0 .5rem .5rem 0; background: var(--ws-accent); color: #fff;
}
.ws-search-hero button:hover { background: var(--ws-accent-dark); }

/* ---------- Entry-Tiles (Home-Kacheln) ---------- */
.ws-tile-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .ws-tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ws-tile-grid { grid-template-columns: repeat(3, 1fr); } }

.ws-tile {
  position: relative; display: block; overflow: hidden;
  border-radius: .75rem; aspect-ratio: 4 / 3;
  text-decoration: none; color: #fff;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.15);
}
.ws-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -8px rgba(0,0,0,.25); }
.ws-tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s;
}
.ws-tile:hover img { transform: scale(1.04); }
.ws-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.7) 100%);
}
.ws-tile-label {
  position: absolute; left: 1rem; right: 1rem; bottom: 1.75rem; z-index: 1;
  font-size: 1.375rem; font-weight: 600; line-height: 1.15;
}
.ws-tile-sub {
  position: absolute; left: 1rem; right: 1rem; bottom: .75rem; z-index: 1;
  font-size: .8125rem; opacity: .9;
}

/* ---------- Cookie-Banner (TTDSG) ---------- */
.ws-cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--ws-bg, #fff); color: var(--ws-ink, #18181b);
  border-top: 1px solid var(--ws-border, #e5e7eb);
  box-shadow: 0 -8px 24px rgba(0,0,0,.08);
}
.ws-cookie-banner-body {
  max-width: 64rem; margin: 0 auto; padding: 1rem 1.25rem;
  display: grid; gap: .75rem; grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .ws-cookie-banner-body { grid-template-columns: 1fr auto; align-items: center; }
}
.ws-cookie-banner-title { font-size: 1rem; font-weight: 600; margin: 0; }
.ws-cookie-banner-text { font-size: .875rem; line-height: 1.5; margin: 0; color: var(--ws-ink, #18181b); }
.ws-cookie-banner-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------- Two-Click-Embed (DSGVO) ---------- */
.ws-embed-figure { margin: 1.5rem 0; }
.ws-embed { position: relative; aspect-ratio: 16 / 9; border-radius: .5rem; overflow: hidden; background: #111; }
.ws-embed-gate {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; padding: 0; background: transparent; color: #fff; cursor: pointer;
  display: block;
}
.ws-embed-thumb { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55); }
.ws-embed-gate-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .75rem; padding: 1.5rem; text-align: center;
}
.ws-embed-gate-text { font-size: .875rem; line-height: 1.45; max-width: 38ch; margin: 0; }
.ws-embed-gate-play {
  display: inline-block; padding: .5rem 1rem; border-radius: 999px;
  background: rgba(255,255,255,.18); font-size: 1rem; font-weight: 500;
  backdrop-filter: blur(4px);
}
.ws-embed-gate:hover .ws-embed-gate-play,
.ws-embed-gate:focus-visible .ws-embed-gate-play { background: rgba(255,255,255,.3); }
.ws-embed-frame iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.ws-embed-caption { font-size: .8125rem; color: var(--ws-muted, #6b7280); margin-top: .5rem; }

/* ---------- Bewertungs-Sterne (Anzeige) ----------
 * Zwei-Ebenen-Technik: graue Basis-Sterne, darüber goldene Füllung per
 * width-clip → unterstützt Halb-Sterne (z.B. 4,6 → 92 % Füllung).
 * Partial: directory/_stars.html. */
.ws-stars { display: inline-flex; align-items: center; gap: 0.4rem; }
.ws-stars-track { position: relative; display: inline-block; line-height: 0; white-space: nowrap; }
.ws-stars-track svg { width: 1.05rem; height: 1.05rem; display: inline-block; vertical-align: top; }
.ws-stars-base { display: inline-block; white-space: nowrap; color: var(--ws-border); }
.ws-stars-fill {
  position: absolute; inset: 0; overflow: hidden; white-space: nowrap;
  color: var(--ws-star);
}
.ws-stars-value { font-weight: 600; color: var(--ws-ink); font-size: 0.875rem; }
.ws-stars-count { color: var(--ws-muted); font-size: 0.8125rem; }
.ws-stars--sm .ws-stars-track svg { width: 0.85rem; height: 0.85rem; }
.ws-stars--lg .ws-stars-track svg { width: 1.35rem; height: 1.35rem; }
/* Sterne auf dunklem Hero: Basis heller, Zahlen/Count weiß. */
.ws-stars--on-hero .ws-stars-base { color: rgba(255,255,255,.35); }
.ws-stars--on-hero .ws-stars-value { color: #fff; }
.ws-stars--on-hero .ws-stars-count { color: rgba(255,255,255,.8); }

/* ---------- Bewertungs-Sterne (Eingabe) ----------
 * CSS-only Hover/Checked über row-reverse + Geschwister-Selektor.
 * DOM-Reihenfolge 5→1, visuell 1→5. Ersetzt <input type=number>. */
.ws-star-input {
  display: inline-flex; flex-direction: row-reverse; justify-content: flex-end;
  border: 0; padding: 0; margin: 0; gap: 0.1rem;
}
.ws-star-input input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ws-star-input label {
  font-size: 1.9rem; line-height: 1; cursor: pointer;
  color: var(--ws-border); transition: color 0.1s;
}
.ws-star-input label::before { content: "\2605"; }
.ws-star-input input:checked ~ label,
.ws-star-input label:hover,
.ws-star-input label:hover ~ label { color: var(--ws-star); }
.ws-star-input input:focus-visible + label { outline: 2px solid var(--ws-primary); outline-offset: 2px; border-radius: 2px; }

/* ---------- Empty-State ----------
 * Partial: _includes/_empty_state.html (Icon + Titel + Text + optional CTA). */
.ws-empty { text-align: center; padding: 2.75rem 1rem; }
.ws-empty-icon { font-size: 2.5rem; line-height: 1; margin-bottom: 0.6rem; opacity: 0.55; }
.ws-empty-title { font-size: 1.0625rem; font-weight: 600; color: var(--ws-ink); margin: 0 0 0.35rem; }
.ws-empty-text { font-size: 0.875rem; color: var(--ws-muted); margin: 0 auto 1.1rem; max-width: 44ch; line-height: 1.5; }

/* ---------- Premium-Karte (Highlight in Listen) ---------- */
.ws-card-premium { border-color: var(--ws-accent); box-shadow: 0 0 0 1px var(--ws-accent); }

/* ---------- Tag auf dunklem Hero (ersetzt Inline-rgba) ---------- */
.ws-tag-onhero { background: rgba(255,255,255,.15); color: #fff; }
.ws-tag-onhero:hover { background: rgba(255,255,255,.28); }

/* ---------- Coupon-Varianten (Gutschein-Strecke) ---------- */
.ws-btn-coupon { background: var(--ws-coupon); color: #fff; }
.ws-btn-coupon:hover { background: var(--ws-coupon-dark); }
.ws-badge-coupon { background: var(--ws-coupon); color: #fff; }
/* Coupon-Hero + Einlöse-CTA-Box (ersetzt Inline-Hex in coupon_page). */
.ws-hero-coupon { background: linear-gradient(135deg, var(--ws-coupon), var(--ws-coupon-dark)); }
.ws-coupon-cta-box {
  background: color-mix(in srgb, var(--ws-coupon) 8%, #fff);
  border: 2px dashed var(--ws-coupon);
}
.ws-coupon-cta-title { color: var(--ws-coupon-dark); }
.ws-discount-chip { background: #fff; color: var(--ws-coupon); }
/* Platzhalter-Verlauf für Coupon-Karten ohne Bild (ersetzt Inline-Hex). */
.ws-coupon-gradient {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--ws-coupon) 20%, transparent),
    color-mix(in srgb, var(--ws-coupon) 6%, transparent));
}
/* Platzhalter-Verlauf für Firmen-/Standard-Karten ohne Bild (ersetzt Inline-Hex). */
.ws-primary-gradient {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--ws-primary) 20%, transparent),
    color-mix(in srgb, var(--ws-primary-dark) 8%, transparent));
}

/* ---------- Print ---------- */
@media print {
  .ws-header, .ws-footer, .ws-nav, .ws-language-switcher { display: none; }
}

/* =========================================================================
 * A11y-Baseline (BFSG / WCAG 2.1 AA) — bewusst am DATEI-ENDE:
 * gleiche Spezifität gewinnt hier per Kaskade gegen ältere :focus-Regeln.
 * ========================================================================= */

/* --- Fokus-Ring (WCAG 2.4.7 / 1.4.11) ----------------------------------
 * Doppel-Ring-Technik: primäres Outline mit 2px Offset, der Zwischenraum
 * wird per box-shadow weiß gefüllt. So bleibt der Ring auf hellen UND
 * dunklen Flächen (Hero-Gradient, Coupon-Rot, Lightbox-Dialog) sichtbar.
 * Nur :focus-visible — Maus-Fokus behält die dezenteren Component-Styles. */
:focus-visible {
  outline: 2px solid var(--ws-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--ws-surface);
}

/* Inputs setzen auf :focus outline:none (soft ring per box-shadow) — für
 * Tastatur-Fokus (:focus-visible) muss das harte Outline trotzdem greifen. */
.ws-input:focus-visible,
.ws-search-hero input:focus-visible,
.ws-form-fields input:focus-visible,
.ws-form-fields textarea:focus-visible,
.ws-form-fields select:focus-visible {
  outline: 2px solid var(--ws-primary);
  outline-offset: 1px;
}

/* --- Bewegungs-Reduktion (WCAG 2.3.3) -----------------------------------
 * Nutzer mit "Bewegung reduzieren" (OS-Einstellung) bekommen quasi-null
 * Transitions/Animations. 0.01ms statt 0: transitionend/animationend-Events
 * feuern weiter, JS-Hooks brechen nicht. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* --- Forced Colors / Windows-Kontrastmodus (WCAG 1.4.1-verwandt) --------
 * Im forced-colors-Modus entfernt der Browser alle background-Farben —
 * Zustände, die NUR über background transportiert werden, brauchen Kanten. */
@media (forced-colors: active) {
  /* Buttons ohne sichtbaren Rahmen (primary/accent/ghost) bekommen Kontur. */
  .ws-btn { border-color: ButtonText; }
  /* Badges/Tags/Pills leben von background-Pärchen → Kontur ergänzen. */
  .ws-badge,
  .ws-tag,
  .ws-discount-chip { border: 1px solid CanvasText; }
  /* Aktive Zustände (Nav, Filter, Pagination) als Highlight-Kante. */
  .ws-nav-link.is-active { border-bottom-color: Highlight; }
  .ws-filter-pill.is-active,
  .ws-pagination-link.is-active { border: 2px solid Highlight; }
  /* Sterne-Rating: Füllung vs. Basis ist reine color-Unterscheidung —
   * ohne Opt-out würden beide Ebenen CanvasText und der Wert unlesbar. */
  .ws-stars-track { forced-color-adjust: none; }
  /* Doppel-Ring-Shadow entfällt — System zeichnet das Outline selbst. */
  :focus-visible { box-shadow: none; }
}
