@charset "UTF-8";

/* ══════════════════════════════════════
   LOKALE FONTS
══════════════════════════════════════ */

/* PT Sans Narrow */
@font-face {
  font-family: 'PT Sans Narrow';
  src: url('../fonts/PT_Sans_Narrow/PTSansNarrow-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PT Sans Narrow';
  src: url('../fonts/PT_Sans_Narrow/PTSansNarrow-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Inter (Variable Font) */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ══════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════ */
:root {
  /* ── Brand Colors (3 Töne) */
  --pf-primary: #0d5c76;
  /* Navbar, Buttons, Links */
  --pf-primary-dark: #094d63;
  /* Hover-States */
  --pf-primary-deep: #162830;
  /* Footer — dunkles Blaugrau, fast Schwarz, aber mit Markenwärme */

  /* ── Warm Neutral — aus Workshop abgeleitet */
  --pf-warm: #c8b89a;
  /* Akzent für Testimonials, Zitate, Human-Momente */
  --pf-warm-bg: #faf7f3;
  /* Hintergrund für warme Sektionen */
  --pf-warm-border: #e8ddd0;
  /* Rand in warmen Bereichen */

  /* ── Hintergründe — Light Mode */
  --bg-page: #f4f8fa;
  /* Seiten-Hintergrund */
  --bg-surface: #ffffff;
  /* Cards, Modals, Formulare */
  --bg-subtle: #eef5f8;
  /* Grauer Abschnitt (Bewertungen etc.) */
  --bg-tint: #e8f4f8;
  /* Heller Brand-Tint */
  --bg-warm: #faf7f3;
  /* Testimonials, Bewertungen, menschliche Inhalte */
  --bg-dark: #0d5c76;
  /* Dunkler CTA-Abschnitt = primary */
  --bg-deep: #162830;
  /* Footer */

  /* ── Ränder */
  --border: #d0e4ea;
  --border-strong: #a8c8d5;

  /* ── Text — minimal wärmer als vorher */
  --pf-text: #1c2b30;
  --pf-text-muted: #6b8a94;
  --pf-text-light: #94b0bb;

  /* ── Feedback */
  --pf-success: #2e7d52;
  --pf-warning: #a07830;
  --pf-error: #b93030;

  /* ── Gold / Premium — Werte aus Logo (logo-primary-gold.svg: #ccbc94)
     --pf-gold       : Akzentfarbe auf hellen Flaechen (Sterne etc.) — leicht abgedunkelt fuer Kontrast
     --pf-gold-soft  : exakte Logo-Farbe fuer Akzente auf dunklen Flaechen, Button-Gradients
     --pf-gold-dark  : tiefer Schatten-/Kontrasttyp fuer Text auf Gold */
  --pf-gold: #a09371;
  --pf-gold-soft: #ccbc94;
  --pf-gold-dark: #7d6428;

  /* ── Rubrik-Farben — entsättigt, aus Markenfamilie */
  --rubrik-gesundheit: #3a7268;
  /* Teal-Grün, entsättigt */
  --rubrik-gesundheit-bg: #ebf3f1;
  --rubrik-gesundheit-border: #b8d4cf;

  --rubrik-fitness: #0d5c76;
  /* = Primary */
  --rubrik-fitness-bg: #e8f4f8;
  --rubrik-fitness-border: #a8cdd8;

  --rubrik-ernaehrung: #5a4870;
  /* Blauviolett, stark entsättigt */
  --rubrik-ernaehrung-bg: #f0edf4;
  --rubrik-ernaehrung-border: #c8bdd8;

  --rubrik-sport: #7a6e52;
  /* Khaki, kühler und gedeckter */
  --rubrik-sport-bg: #f3f0e8;
  --rubrik-sport-border: #cec8b0;

  /* ── Dark Mode Tokens (Konzept) */
  --dm-bg-page: #0f1e24;
  --dm-bg-surface: #172830;
  --dm-bg-subtle: #1e3340;
  --dm-bg-tint: #1a3545;
  --dm-border: #2a4a58;
  --dm-text: #e2eef2;
  --dm-text-muted: #7aa4b0;
  --dm-text-light: #4a7888;

  /* ── Typografie */
  --font-display: 'PT Sans Narrow', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* ── Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 50vh;

  /* ── Shadows */
  --shadow-sm: 0 1px 4px rgba(13, 92, 118, 0.08);
  --shadow-md: 0 4px 16px rgba(13, 92, 118, 0.12);
  --shadow-lg: 0 8px 32px rgba(13, 92, 118, 0.16);
}

/* ══════════════════════════════════════
   BS5 BASE OVERRIDES
   Alle BS5-Defaults auf Brand-Tokens
══════════════════════════════════════ */

/* Body & Typografie */
html,
body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-body) !important;
  color: var(--pf-text) !important;
  background-color: var(--bg-page);
}

/* ══════════════════════════════════════
   GLOBALE TYPOGRAFIE — Styleguide
══════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--pf-text);
}

h1 { font-size: 1.9rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.9rem; }
h6 { font-size: 0.82rem; }

p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--pf-text);
}

small, .small {
  font-size: 0.82rem;
  color: var(--pf-text-muted);
}

/* ══════════════════════════════════════
   Lesetext / Editorial Longform
   Ansprache, Interview-Antworten, Kundenbewertungen — 17px Desktop / 16px Mobile
   ══════════════════════════════════════ */
.pf-ansprache,
.pf-review-text,
.pf-qa p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--pf-text);
}
.pf-ansprache p,
.pf-ansprache li,
.pf-ansprache ul,
.pf-ansprache ol {
  font-size: inherit;
  line-height: inherit;
}
.pf-qa p { margin: 0; }
@media (max-width: 480px) {
  .pf-ansprache,
  .pf-review-text,
  .pf-qa p { font-size: 1rem; }
}

/* BS5 Focus Ring → Brand */
:root {
  --bs-focus-ring-color: rgba(13, 92, 118, 0.25);
  --bs-focus-ring-width: 3px;
  --bs-border-radius: var(--radius-md);
  --bs-border-color: #c8dde6;
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--pf-text);
  --bs-link-color: var(--pf-primary);
  --bs-link-hover-color: var(--pf-primary-dark);
}

/* BS5 Form Controls → Brand */
.form-control,
.form-select {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--pf-text);
  border-color: #c8dde6;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.form-control::placeholder,
.form-select::placeholder {
  color: #b0cad3;
}

.form-control:hover,
.form-select:hover {
  border-color: #9abfcc;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--pf-primary);
  box-shadow: 0 0 0 3px rgba(13, 92, 118, 0.1);
  color: var(--pf-text);
}

.form-control:disabled,
.form-select:disabled {
  background-color: var(--bg-page);
  color: var(--pf-text-muted);
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--pf-error);
  background-image: none;
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(185, 48, 48, 0.1);
}

.form-control.is-valid,
.form-select.is-valid {
  border-color: var(--pf-success);
  background-image: none;
}

.invalid-feedback {
  color: var(--pf-error);
  font-size: 0.76rem;
}

.valid-feedback {
  color: var(--pf-success);
  font-size: 0.76rem;
}

/* BS5 form-label */
.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pf-text);
  margin-bottom: 7px;
}

/* BS5 form-text */
.form-text {
  font-size: 0.75rem;
  color: var(--pf-text-muted);
}

/* BS5 form-check */
.form-check-input {
  width: 18px;
  height: 18px;
  border-color: #c8dde6;
  margin-top: 2px;
  cursor: pointer;
  transition: border-color 0.18s, background-color 0.18s;
}

.form-check-input:hover {
  border-color: var(--pf-primary);
}

.form-check-input:checked {
  background-color: var(--pf-primary);
  border-color: var(--pf-primary);
}

.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(13, 92, 118, 0.1);
  border-color: var(--pf-primary);
}

.form-check-label {
  font-size: 0.87rem;
  color: var(--pf-text);
  cursor: pointer;
  padding-left: 4px;
}

/* BS5 textarea */
textarea.form-control {
  min-height: 108px;
  line-height: 1.6;
  resize: vertical;
}

/* BS5 Buttons → Brand variants */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.18s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-pf-primary {
  background-color: var(--pf-primary);
  border-color: var(--pf-primary);
  color: #fff;
}

.btn-pf-primary:hover,
.btn-pf-primary:focus {
  background-color: var(--pf-primary-dark);
  border-color: var(--pf-primary-dark);
  color: #fff;
}

.btn-pf-secondary {
  background-color: var(--pf-primary-dark);
  border-color: var(--pf-primary-dark);
  color: #fff;
}

.btn-pf-secondary:hover {
  background-color: var(--pf-primary-deep);
  border-color: var(--pf-primary-deep);
  color: #fff;
}

.btn-pf-outline {
  background-color: transparent;
  border-color: var(--pf-primary);
  color: var(--pf-primary);
}

.btn-pf-outline:hover {
  background-color: var(--pf-primary);
  border-color: var(--pf-primary);
  color: #fff;
}

.btn-pf-ghost {
  background-color: rgba(13, 92, 118, 0.07);
  border-color: transparent;
  color: var(--pf-primary);
}

.btn-pf-ghost:hover {
  background-color: rgba(13, 92, 118, 0.13);
  color: var(--pf-primary);
}

.btn-pf-white {
  background-color: #fff;
  border-color: #c8dde6;
  color: var(--pf-primary);
  box-shadow: var(--shadow-sm);
}

.btn-pf-white:hover {
  border-color: var(--pf-primary);
  color: var(--pf-primary);
}

.btn-pf-outline-light {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-pf-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

/* Pill modifier */
.btn-pill {
  border-radius: var(--radius-full) !important;
}

/* Loading state */
.btn-loading {
  color: transparent !important;
  pointer-events: none;
  position: relative;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* Links */
.link-default {
  color: var(--pf-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-default:hover {
  color: var(--pf-primary-dark);
}

.link-nav {
  color: var(--pf-primary);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.link-nav:hover {
  border-bottom-color: var(--pf-primary);
}

.link-muted {
  color: var(--pf-text-muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.link-muted:hover {
  color: var(--pf-primary);
}

.link-white {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.link-white:hover {
  color: #fff;
  text-decoration: underline;
}


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

/* ══════════════════════════════════════
   NAVBAR — Transparent -> Floating Pill -> Headroom
══════════════════════════════════════ */

.pf-nav {
  padding: 20px 0;
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition:
    padding 0.3s ease,
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Subtiler Top-Scrim fuer Lesbarkeit ueber hellen Heros — im Pill-Mode aus */
.pf-nav::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0));
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.pf-nav.pill::before { opacity: 0; }

/* Inner row — bekommt im Pill-Mode die Optik */
.pf-nav .container {
  justify-content: flex-start;
  transition:
    background 0.35s ease,
    border-radius 0.35s ease,
    padding 0.35s ease,
    box-shadow 0.35s ease;
}

/* Pill-Mode: sobald Hero-Top verlassen */
.pf-nav.pill {
  padding: 10px 16px;
}

.pf-nav.pill .container {
  background: var(--pf-primary);
  border-radius: 999px;
  padding: 6px 14px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Headroom: per Scroll-Down nach oben weg */
.pf-nav.nav-hidden {
  transform: translateY(-115%);
}

/* Tip-Lock: erzwingt sichtbare Navbar ueber Hint-Overlay */
.pf-nav.pf-tip-lock {
  transform: none !important;
  z-index: 1100;
}

.pf-nav .navbar-brand {
  padding: 0;
  margin-left: 0;
  margin-right: auto;
}

.pf-nav .navbar-brand img {
  display: block;
  width: auto;
  height: 44px;
  transition: height 0.3s ease;
}

.pf-nav.pill .navbar-brand img {
  height: 30px;
}

.pf-nav .nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92) !important;
  padding: 6px 14px !important;
  border-radius: var(--radius-sm);
  transition: color 0.18s, background 0.18s;
  letter-spacing: 0.01em;
}

.pf-nav .nav-link:hover,
.pf-nav .nav-link.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.15);
}

.pf-nav .nav-cta {
  border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: var(--radius-md) !important;
  margin-left: 8px;
  padding: 6px 18px !important;
  font-weight: 600;
  transition: background 0.18s, border-color 0.18s;
}

.pf-nav.pill .nav-cta {
  border-radius: 999px !important;
}

.pf-nav .nav-cta:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: #fff !important;
}

/* Merkzettel-Link (Bookmark + Counter) */
.pf-fav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}

.pf-fav-link:hover,
.pf-fav-link:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.pf-fav-link:focus { outline: 0; }

.pf-fav-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--pf-error);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.28);
}

/* First-Add-Hint: dunkles Overlay + Coachmark-Text unter dem Heart */
.pf-fav-hint-overlay {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgba(20, 25, 30, 0.62);
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}
body.pf-hint-active .pf-fav-hint-overlay { opacity: 1; }

.pf-fav-hint-card {
  position: fixed;
  z-index: 1110; /* ueber der Navbar (1100), damit nichts verdeckt wird */
  transform: translate(-50%, -8px);
  opacity: 0;
  transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s;
  max-width: 280px;
  color: #fff;
  text-align: center;
  pointer-events: none;
}
body.pf-hint-active .pf-fav-hint-card {
  opacity: 1;
  transform: translate(-50%, 0);
}
.pf-fav-hint-arrow {
  display: block;
  margin: 0 auto 14px;
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
}
.pf-fav-hint-text {
  font-family: var(--font-display, inherit);
  font-size: 1.15rem;
  line-height: 1.45;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* Im Pill-Mode: Ring nimmt die Pill-Farbe an, nahtlose Optik */
.pf-nav.pill .pf-fav-badge {
  box-shadow: 0 0 0 2px var(--pf-primary);
}

/* Mobile-Variante: vor dem Burger, mit etwas Abstand */
.pf-fav--mobile {
  margin-left: auto;
  margin-right: 4px;
}

/* Sichtbarkeit: zwei Instanzen, eine per Breakpoint */
.pf-fav--mobile { display: inline-flex; }
.pf-fav--desktop { display: none; }

@media (min-width: 992px) {
  .pf-fav--mobile { display: none; }
  .pf-fav--desktop { display: list-item; }
}

.pf-nav .navbar-toggler {
  border: 0;
  padding: 0;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  transition: background 0.18s;
}

.pf-nav .navbar-toggler:hover {
  background: rgba(255, 255, 255, 0.12);
}

.pf-nav .navbar-toggler:focus {
  box-shadow: none;
  outline: 0;
}

.pf-nav .navbar-toggler:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.pf-nav .navbar-toggler-icon {
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile (<992px): Pill wird ein abgerundetes Rechteck, Menu floatet darunter */
@media (max-width: 991.98px) {
  .pf-nav .navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .pf-nav.pill {
    padding: 8px 12px;
  }
  .pf-nav.pill .container {
    border-radius: 22px;
    padding: 6px 10px;
  }
  .pf-nav.pill .navbar-brand {
    padding-left: 6px;
  }
  .pf-nav .navbar-collapse {
    margin-top: 10px;
  }
  /* Panel bekommt IMMER deckenden Hintergrund, auch im transparent-Mode
     ueber Hero — sonst unleserlich auf Bild.
     Padding liegt am inneren ul, damit Bootstrap's height-Transition
     sauber auf 0 auslaeuft (ohne Padding-Rest-Rucker). */
  .pf-nav .navbar-collapse.show,
  .pf-nav .navbar-collapse.collapsing {
    background: var(--pf-primary);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  }
  .pf-nav .navbar-collapse .navbar-nav {
    padding: 10px 14px;
  }
  .pf-nav .nav-cta {
    margin-left: 0;
    margin-top: 6px;
    text-align: center;
  }
}

/* Reduced motion: kein Hide/Slide */
@media (prefers-reduced-motion: reduce) {
  .pf-nav,
  .pf-nav .container,
  .pf-nav .navbar-brand img {
    transition: background 0.2s ease;
  }
  .pf-nav.nav-hidden {
    transform: none;
  }
}

/* ══════════════════════════════════════
   PAGEHEAD — bildloser Hero (blauer Verlauf, weißer Titel)
   Verwendet von Legal-Seiten, Merkliste etc. — alle Pages mit
   normaler Navbar, die keinen Hero-Bildbereich brauchen.
   PHP-Helper: _includes/elements/pagehead.php
══════════════════════════════════════ */

.pf-pagehead {
  padding: 7rem 0 2.5rem;
  background: linear-gradient(135deg, #0a3240 0%, #0d5c76 55%, #0a3240 100%);
  color: #fff;
  position: relative;
}
@media (min-width: 768px) {
  .pf-pagehead { padding-top: 8rem; padding-bottom: 3rem; }
}
.pf-pagehead::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.pf-pagehead h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .4rem;
  color: #fff;
}
@media (min-width: 768px) {
  .pf-pagehead h1 { font-size: 2.5rem; }
}
.pf-pagehead-sub {
  color: rgba(255,255,255,0.78);
  font-size: 1rem;
  margin: 0;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-nav-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 12%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 0 4rem;
  width: 100%;
}

.hero-content .eyebrow {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.65rem;
}

/* Leading-Strich sitzt IMMER auf der Mitte der ersten Zeile,
   auch wenn der Eyebrow-Text umbricht (zentrale Regel). */
.hero-content .eyebrow::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 28px;
  height: 2px;
  margin-top: calc(0.7em - 1px);
  background: var(--pf-warm);
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.0;
  margin-bottom: 1.25rem;
}

.hero-content h1 .accent {
  color: var(--pf-warm);
}

.hero-content p {
  max-width: 580px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.hero-location {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem !important;
  letter-spacing: 0.01em;
}


.hero-lead {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-style: normal;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem !important;
  max-width: 540px;
  line-height: 1.6;
}

/* Hero-Standfirst (Claim unter dem Namen).
   Body-Font (Inter), damit der Hero nur ZWEI Schriftcharaktere
   hat: Display-Font nur fuer H1, alles andere in Inter. */
.hero-spruch {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95);
  border-left: 2px solid var(--pf-warm);
  padding-left: 0.85rem;
  margin-top: 0.8rem;
  margin-bottom: 1.5rem !important;
  max-width: 560px;
}
@media (max-width: 480px) {
  .hero-spruch { font-size: 1rem; }
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.hero-rating-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ── Stern-Bewertungen (Inline-SVG via pf_render_stars) ─────────
   Markup: <span class="pf-stars"><?= pf_render_stars(4.7, 14) ?></span>
   Farbe ueber color: currentColor in den SVGs.
*/
.pf-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: var(--pf-gold);
  line-height: 1;
  vertical-align: middle;
}
.pf-stars svg { display: block; }

.hero-rating-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.hero-content a.btn-hero {
  background: #fff;
  color: var(--pf-primary);
  border: 2px solid #fff;
  border-radius: var(--radius-full);
  padding: 12px 28px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.18s, transform 0.18s;
}

.hero-content a.btn-hero:hover {
  background: var(--pf-warm);
  border-color: var(--pf-warm);
  transform: translateY(-2px);
}

.hero-content a.btn-hero-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-full);
  padding: 12px 28px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.18s, transform 0.18s;
}

.hero-content a.btn-hero-ghost:hover {
  border-color: #fff;
  transform: translateY(-2px);
}

/* ══════════════════════════════════════
   STYLEGUIDE LAYOUT
══════════════════════════════════════ */

body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--pf-text);
  line-height: 1.6;
}

.sg-header {
  background: var(--pf-primary);
  color: #fff;
  padding: 36px 48px 32px;
}

.sg-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.sg-header p {
  font-size: 0.88rem;
  opacity: 0.7;
}

.sg-nav {
  background: var(--pf-primary-dark);
  padding: 0 48px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
}

.sg-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 16px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.sg-nav a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.sg-nav a.active {
  color: #fff;
  border-bottom-color: #fff;
}

.sg-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

/* Section */
.sg-section {
  margin-bottom: 72px;
}

.sg-section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pf-text);
  margin-bottom: 6px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.sg-section-desc {
  font-size: 0.85rem;
  color: var(--pf-text-muted);
  margin-bottom: 28px;
  margin-top: 8px;
}

/* Sub-section */
.sg-sub {
  margin-bottom: 36px;
}

.sg-sub-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pf-text-muted);
  margin-bottom: 14px;
}

/* Demo box */
.sg-demo {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  margin-bottom: 8px;
}

.sg-demo.dark {
  background: var(--pf-primary);
}

.sg-demo.grey {
  background: var(--bg-page);
}

/* Code label */
.sg-code {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: var(--pf-text-muted);
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-top: 6px;
  display: block;
}

/* ══════════════════════════════════════
   1. FARBEN
══════════════════════════════════════ */
.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.color-swatch {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.color-swatch:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.color-block {
  height: 64px;
}

.color-info {
  background: #fff;
  padding: 10px 12px;
}

.color-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pf-text);
  display: block;
  margin-bottom: 2px;
}

.color-hex {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  color: var(--pf-text-muted);
}

.color-token {
  font-size: 0.68rem;
  color: var(--pf-text-light);
  margin-top: 2px;
  display: block;
}

.copy-hint {
  font-size: 0.68rem;
  color: var(--pf-primary-dark);
  display: none;
}

.color-swatch:hover .copy-hint {
  display: block;
}

.color-swatch:hover .color-hex {
  display: none;
}

/* ══════════════════════════════════════
   2. TYPOGRAFIE
══════════════════════════════════════ */
.type-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.type-row:last-child {
  border-bottom: none;
}

.type-meta {
  width: 160px;
  flex-shrink: 0;
  font-size: 0.72rem;
  color: var(--pf-text-muted);
  font-family: 'Courier New', monospace;
  line-height: 1.5;
}

.type-meta strong {
  display: block;
  font-size: 0.75rem;
  color: var(--pf-text);
  font-family: var(--font-body);
  margin-bottom: 2px;
}

.type-sample {
  flex: 1;
}

/* ══════════════════════════════════════
   3. BUTTONS
══════════════════════════════════════ */

.btn-pf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  line-height: 1;
}

.btn-pf:active {
  transform: translateY(1px);
}

/* Sizes */
.btn-sm {
  font-size: 0.78rem;
  padding: 7px 16px;
  border-radius: var(--radius-md);
}

.btn-md {
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: var(--radius-md);
}

.btn-lg {
  font-size: 1rem;
  padding: 13px 28px;
  border-radius: var(--radius-lg);
}

.btn-xl {
  font-size: 1.05rem;
  padding: 16px 36px;
  border-radius: var(--radius-lg);
}

.btn-pill {
  border-radius: var(--radius-full) !important;
}

/* Variants */
.btn-primary {
  background: var(--pf-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--pf-primary-dark);
  color: #fff;
}

.btn-secondary {
  background: var(--pf-primary-dark);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--pf-primary-deep);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--pf-primary);
  border: 1.5px solid var(--pf-primary);
}

.btn-outline:hover {
  background: var(--pf-primary);
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-ghost {
  background: rgba(13, 92, 118, 0.07);
  color: var(--pf-primary);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: rgba(13, 92, 118, 0.13);
}

.btn-white {
  background: #fff;
  color: var(--pf-primary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  border-color: var(--pf-primary);
  box-shadow: var(--shadow-md);
}

.btn-danger {
  background: var(--pf-error);
  color: #fff;
}

.btn-danger:hover {
  background: #9a2828;
  color: #fff;
}

.btn-disabled,
.btn-pf:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* Button row layout */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn-row+.sg-code {
  margin-top: 12px;
}

/* ══════════════════════════════════════
   4. LINKS
══════════════════════════════════════ */
.link-default {
  color: var(--pf-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-default:hover {
  color: var(--pf-primary-dark);
}

.link-nav {
  color: var(--pf-primary);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.link-nav:hover {
  border-bottom-color: var(--pf-primary);
}

.link-muted {
  color: var(--pf-text-muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.link-muted:hover {
  color: var(--pf-primary);
}

.link-white {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.link-white:hover {
  color: #fff;
  text-decoration: underline;
}

/* ══════════════════════════════════════
   5. FORMULARE
══════════════════════════════════════ */

/* Label */
.pf-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pf-text);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}

.pf-label .req {
  color: var(--pf-error);
  margin-left: 3px;
  font-weight: 400;
}

.pf-label-opt {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--pf-text-muted);
  margin-left: 6px;
}

.pf-hint {
  font-size: 0.75rem;
  color: var(--pf-text-muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Base input styles shared across all controls */
.pf-input,
.pf-select,
.pf-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--pf-text);
  background: #fff;
  border: 1.5px solid #c8dde6;
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  appearance: none;
  -webkit-appearance: none;
}

/* Input */
.pf-input {
  padding: 11px 14px;
  line-height: 1.4;
}

.pf-input::placeholder {
  color: #b0cad3;
}

.pf-input:hover {
  border-color: #9abfcc;
}

.pf-input:focus {
  border-color: var(--pf-primary);
  box-shadow: 0 0 0 3px rgba(13, 92, 118, 0.1);
  background: #fff;
}

.pf-input:disabled {
  background: var(--bg-page);
  color: var(--pf-text-muted);
  border-color: #ddeaee;
  cursor: not-allowed;
}

.pf-input.is-error {
  border-color: var(--pf-error);
}

.pf-input.is-error:focus {
  box-shadow: 0 0 0 3px rgba(185, 48, 48, 0.1);
}

.pf-input.is-ok {
  border-color: var(--pf-success);
}

.pf-input.is-ok:focus {
  box-shadow: 0 0 0 3px rgba(46, 125, 82, 0.1);
}

/* Input with leading icon */
.pf-field {
  position: relative;
}

.pf-field-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pf-text-muted);
  font-size: 0.95rem;
  pointer-events: none;
  line-height: 1;
}

.pf-field .pf-input {
  padding-left: 38px;
}

/* Input with trailing badge/unit */
.pf-field-suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pf-text-muted);
  background: var(--bg-subtle);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.pf-field .pf-input.has-suffix {
  padding-right: 60px;
}

/* Select */
.pf-select {
  padding: 11px 36px 11px 14px;
  line-height: 1.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%236b8a94' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.pf-select:hover {
  border-color: #9abfcc;
}

.pf-select:focus {
  border-color: var(--pf-primary);
  box-shadow: 0 0 0 3px rgba(13, 92, 118, 0.1);
}

/* Textarea */
.pf-textarea {
  padding: 11px 14px;
  min-height: 108px;
  resize: vertical;
  line-height: 1.6;
}

.pf-textarea::placeholder {
  color: #b0cad3;
}

.pf-textarea:hover {
  border-color: #9abfcc;
}

.pf-textarea:focus {
  border-color: var(--pf-primary);
  box-shadow: 0 0 0 3px rgba(13, 92, 118, 0.1);
}

/* Character counter (optional, for textarea) */
.pf-char-count {
  text-align: right;
  font-size: 0.72rem;
  color: var(--pf-text-light);
  margin-top: 4px;
}

/* Checkbox & Radio */
.pf-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.pf-check input[type="checkbox"],
.pf-check input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 1px;
  border: 1.5px solid #c8dde6;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.pf-check input[type="radio"] {
  border-radius: 50%;
}

.pf-check input:hover {
  border-color: var(--pf-primary);
}

.pf-check input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 92, 118, 0.1);
}

.pf-check input[type="checkbox"]:checked,
.pf-check input[type="radio"]:checked {
  background: var(--pf-primary);
  border-color: var(--pf-primary);
}

.pf-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(42deg);
}

.pf-check input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}

.pf-check-label {
  font-size: 0.87rem;
  color: var(--pf-text);
  line-height: 1.5;
}

/* Inline radio group */
.pf-radio-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pf-radio-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1.5px solid #c8dde6;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--pf-text);
  background: #fff;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
  user-select: none;
}

.pf-radio-btn:hover {
  border-color: var(--pf-primary);
  color: var(--pf-primary);
}

.pf-radio-btn input {
  display: none;
}

.pf-radio-btn.selected {
  background: var(--bg-tint);
  border-color: var(--pf-primary);
  color: var(--pf-primary);
  font-weight: 600;
}

.pf-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8dde6;
  transition: background 0.18s;
  flex-shrink: 0;
}

.pf-radio-btn.selected .pf-radio-dot {
  background: var(--pf-primary);
}

/* Error / success messages */
.pf-msg {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  margin-top: 6px;
  font-weight: 500;
}

.pf-msg.error {
  color: var(--pf-error);
}

.pf-msg.ok {
  color: var(--pf-success);
}

.pf-msg.hint {
  color: var(--pf-text-muted);
  font-weight: 400;
}

/* Form group + layout */
.fg {
  margin-bottom: 20px;
}

.fg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 580px) {
  .fg-row {
    grid-template-columns: 1fr;
  }
}

/* Form card wrapper */
.pf-form-card {
  background: var(--bg-surface);
  border: 1px solid #d0e4ea;
  border-radius: var(--radius-xl);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-sm);
}

.pf-form-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pf-text);
  margin-bottom: 4px;
}

.pf-form-card .form-sub {
  font-size: 0.82rem;
  color: var(--pf-text-muted);
  margin-bottom: 24px;
}

.pf-form-divider {
  border: none;
  border-top: 1px solid #e8f0f4;
  margin: 22px 0;
}

/* ══════════════════════════════════════
   6. CTAs
══════════════════════════════════════ */
/* Hero CTA */
.cta-hero {
  background: linear-gradient(135deg, var(--pf-primary) 0%, var(--pf-primary-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  color: #fff;
  text-align: center;
}

.cta-hero h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-hero p {
  font-size: 0.9rem;
  opacity: 0.82;
  margin-bottom: 22px;
}

/* Inline CTA strip */
.cta-strip {
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-strip-text {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--pf-text);
}

.cta-strip-sub {
  font-size: 0.78rem;
  color: var(--pf-text-muted);
  margin-top: 2px;
}

/* Mobile sticky CTA */
.cta-mobile-bar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 14px 20px;
  display: flex;
  gap: 10px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

/* Trust badges row */
.trust-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--pf-text-muted);
}

.trust-icon {
  width: 18px;
  height: 18px;
  background: var(--bg-tint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pf-primary);
  font-size: 0.7rem;
  font-weight: 700;
}

/* Tag/Chip */
.pf-chip-sm {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--bg-tint);
  color: var(--pf-primary);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.2s;
}

.pf-chip-sm:hover {
  background: #d4ecf2;
}

.pf-chip-sm.active {
  background: var(--pf-primary);
  color: #fff;
  border-color: var(--pf-primary);
}

/* Tooltip helper */
.copied-toast {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pf-primary);
  color: #fff;
  font-size: 0.82rem;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  z-index: 999;
}

.copied-toast.show {
  display: block;
  animation: fadeInUp 0.2s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ══════════════════════════════════════
   7. FOOTER
══════════════════════════════════════ */

.pf-footer {
  --footer-bg: var(--pf-primary-deep);
  --footer-bar-bg: #0d1e24;
  --footer-text: rgba(255, 255, 255, 0.50);
  --footer-text-dim: rgba(255, 255, 255, 0.25);
  --footer-link: rgba(255, 255, 255, 0.45);
  --footer-link-hover: var(--pf-warm);
  --footer-border: rgba(255, 255, 255, 0.07);
  --footer-social-bg: rgba(255, 255, 255, 0.06);
  /* Footer ist immer dunkel → Gold stets im hellen Ton */
  --pf-gold: var(--pf-gold-soft);
  font-family: var(--font-body);
  background: var(--footer-bg);
  color: var(--footer-text);
}

.pf-footer-main {
  padding: 72px 0 60px;
  border-bottom: 1px solid var(--footer-border);
}

.pf-footer-logo {
  display: inline-block;
  margin-bottom: 28px;
}

.pf-footer-logo img {
  height: 24px;
  width: auto;
}

.pf-footer-purpose {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.55;
  margin-bottom: 28px;
  letter-spacing: 0.01em;
  max-width: 340px;
}

.pf-footer-social {
  display: flex;
  gap: 10px;
}

.pf-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--footer-social-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.75rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pf-footer-social a:hover {
  background: var(--pf-warm);
  color: var(--footer-bg);
  border-color: var(--pf-warm);
}

.pf-footer-nav-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 16px;
}

.pf-footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pf-footer-nav li {
  margin-bottom: 10px;
}

.pf-footer-nav a {
  font-size: 0.85rem;
  color: var(--footer-link);
  text-decoration: none;
  transition: color 0.15s;
}

.pf-footer-nav a:hover {
  color: var(--footer-link-hover);
}

.pf-footer-nav-more {
  font-size: 0.75rem !important;
  color: rgba(255, 255, 255, 0.22) !important;
  margin-top: 4px;
  display: inline-block;
}

.pf-footer-nav-more:hover {
  color: var(--footer-link-hover) !important;
}

.pf-footer-bar {
  background: var(--footer-bar-bg);
  padding: 13px 0;
  font-size: 0.68rem;
  color: var(--footer-text-dim);
  line-height: 1.5;
}

.pf-footer-bar-links {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.pf-footer-bar-links a {
  color: var(--footer-text-dim);
  text-decoration: none;
  transition: color 0.15s;
}

.pf-footer-bar-links a:hover {
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 767px) {
  .pf-footer-main {
    padding: 48px 0 40px;
  }

  .pf-footer-purpose {
    font-size: 1rem;
  }

  .pf-footer-bar .d-flex {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 8px;
  }

  .pf-footer-bar-links {
    flex-wrap: wrap;
  }
}

/* Footer: Google Reviews */
.pf-footer-reviews {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  /*border-top: 1px solid rgba(255, 255, 255, 0.08); */
}

.pf-footer-reviews-score {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  color: #fff;
  font-family: 'PT Sans Narrow', 'Arial Narrow', sans-serif;
}

.pf-footer-reviews-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.12);
}

.pf-footer-reviews-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 4px;
}

.pf-footer-reviews-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

/* ══════════════════════════════════════
   DARK MODE
   Überschreibt alle --bg-* und --pf-text*
   Tokens mit --dm-* Werten.
   Buttons, Hero, Footer bleiben unverändert.
   Strategie: /styleguide/pf-styleguide-logo.php#darkmode
══════════════════════════════════════ */

@media (prefers-color-scheme: dark) {
  :root {
    /* Hintergründe */
    --bg-page:    var(--dm-bg-page);
    --bg-surface: var(--dm-bg-surface);
    --bg-subtle:  var(--dm-bg-subtle);
    --bg-tint:    var(--dm-bg-tint);
    --bg-warm:    var(--dm-bg-subtle);

    /* Text */
    --pf-text:       var(--dm-text);
    --pf-text-muted: var(--dm-text-muted);
    --pf-text-light: var(--dm-text-light);

    /* Rahmen */
    --border:        var(--dm-border);
    --border-strong: #3a5e70;

    /* Gold: heller Ton auf dunkler Flaeche */
    --pf-gold: var(--pf-gold-soft);

    /* Shadows — heller im Dark Mode */
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  }
}

/* ══════════════════════════════════════
   iOS-Zoom-Fix: Form-Controls auf Mobile mind. 16px,
   sonst zoomt Safari beim Fokus hinein.
══════════════════════════════════════ */
@media (max-width: 768px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* ══════════════════════════════════════
   Trainer-Card (wiederverwendbar)
   – Markup in /_includes/elements/trainercard.php
   – Wrapper & Fav-Button werden vom Caller gesetzt
   (siehe z.B. result_bs5.php -> .pf-trainer-card-wrap)
══════════════════════════════════════ */
.pf-trainer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
  height: 100%;
}
.pf-trainer-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  color: inherit;
  text-decoration: none;
}
.pf-trainer-card .card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-subtle) url('/images/cache/trainer-nopic-mobile.png') center/cover no-repeat;
}
.pf-trainer-card .card-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  mask-image: linear-gradient(to bottom, transparent 45%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 45%, black 100%);
  pointer-events: none;
  z-index: 1;
}
.pf-trainer-card .card-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,40,50,0) 0%, rgba(10,40,50,0) 55%, rgba(10,40,50,0.82) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}
.pf-trainer-card .card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.pf-trainer-card .card-name-overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 2;
}
.pf-trainer-card .card-name-overlay .card-name {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.05;
  overflow: hidden;
}
.pf-trainer-card .card-name-overlay .card-name-last {
  color: var(--pf-gold-soft);
  display: block;
}
.pf-trainer-card .card-name-overlay .card-area {
  color: rgba(255,255,255,0.92);
  font-size: 0.8rem;
  line-height: 1.2;
  margin-top: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-trainer-card .card-body {
  padding: 0.7rem 0.8rem 0.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.pf-trainer-card .card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 8px;
  font-size: 0.75rem;
  color: var(--pf-text-muted);
}
.pf-trainer-card .card-rating-star {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  fill: var(--pf-gold, #d4af37);
}
.pf-trainer-card .card-rating--unrated .card-rating-star {
  fill: #b9bdc3;
}
.pf-trainer-card .card-rating--unrated .card-rating-count {
  color: var(--pf-text-muted);
  font-weight: 500;
  font-style: italic;
}
.pf-trainer-card .card-rating-count {
  font-weight: 600;
  color: var(--pf-text);
}
.pf-trainer-card .card-distance {
  color: var(--pf-text-muted);
  font-weight: 500;
}
.pf-trainer-card .card-distance:not([hidden])::before {
  content: '·';
  margin: 0 6px 0 4px;
  color: var(--pf-text-muted);
  font-weight: 700;
}
.pf-trainer-card .card-img-chips {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  z-index: 2;
}
.pf-trainer-card .card-body-chips {
  position: static;
  margin: 0;
}
.pf-trainer-card .card-body-chips .card-img-chip {
  color: var(--pf-text);
  background: var(--bg-subtle);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.pf-trainer-card .card-img-chip {
  display: block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-trainer-card .card-price-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Optionaler Wrapper + Fav-Button (z.B. auf Suchergebnisseite) */
.pf-trainer-card-wrap {
  position: relative;
  height: 100%;
}
.card-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: background 0.15s, transform 0.15s, color 0.15s;
  line-height: 1;
}
.card-fav-btn i { font-size: 16px; }
.card-fav-btn:hover,
.card-fav-btn:focus-visible {
  background: rgba(0, 0, 0, 0.42);
  transform: translateY(-1px);
  outline: none;
}
.card-fav-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.55);
}
.card-fav-btn[aria-pressed="true"] {
  background: rgba(0, 0, 0, 0.28);
}
.card-fav-btn[aria-pressed="true"] i {
  color: var(--pf-error);
  -webkit-text-stroke: 1.25px #fff;
  paint-order: stroke fill;
}