/* ============================================================
 * Talea Brand Tokens
 * Extrahiert aus BrandKit FINAL 12.02.2026
 * Single Source of Truth für Farben, Typo, Spacing, Radien.
 * ============================================================ */

/* ---- Local Fonts (DSGVO — kein Google-CDN) ---- */
@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pt-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "PT Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pt-sans-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/pt-sans-700.woff2") format("woff2");
}
@font-face {
  font-family: "PT Sans";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/pt-sans-700-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Cuprum";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/cuprum-700.woff2") format("woff2");
}

:root {
  /* Markenfarben */
  --talea-cyan: #009FE3;
  --talea-cyan-600: #0086c0;
  --talea-cyan-700: #006d9d;
  --talea-cyan-50: #e6f6fd;
  --talea-cyan-100: #cdedfb;
  --talea-cyan-200: #9bdaf7;
  --talea-white: #ffffff;

  /* Sekundär (Pflegedienst-Logos) — als Akzente einsetzbar */
  --sec-violett: #812589;
  --sec-koenigsblau: #27468a;
  --sec-jeansblau: #205164;
  --sec-lindgruen: #54bda3;   /* Verfügbarkeits-Signal */
  --sec-lindgruen-600: #3ea98e;
  --sec-lindgruen-50: #e8f7f3;
  --sec-himbeere: #a02452;
  --sec-pink: #e50078;
  --sec-coral: #f15a48;
  --sec-orange: #f29100;

  /* Neutrals */
  --gray-50: #f7f8f9;
  --gray-100: #eef0f2;
  --hellgrau: #e3e3e3;
  --steingrau: #b3b3b3;
  --schiefergrau: #868686;
  --anthrazit: #3a3a3a;
  --black: #1a1a1a;

  /* Semantic */
  --bg: #ffffff;
  --bg-soft: #f7fbfe;        /* sehr helles Cyan-Wash */
  --bg-section: #f3f8fb;
  --bg-dark: #0b3a52;        /* Top-Bar + Footer */
  --text: #1f2933;
  --text-muted: #5b6770;
  --text-faint: #868686;
  --border: #e3e8ec;
  --border-strong: #c8d3da;
  --primary: var(--talea-cyan);
  --primary-ink: #00638f;
  --success: var(--sec-lindgruen);
  --success-ink: #1f7a64;
  --accent: var(--sec-coral);

  /* Type */
  --font-display: "Cuprum", "Arial Black", sans-serif;
  --font-body: "PT Sans", Arial, system-ui, sans-serif;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15,30,45,.06), 0 1px 1px rgba(15,30,45,.04);
  --shadow-md: 0 6px 18px rgba(15,30,45,.08), 0 2px 4px rgba(15,30,45,.04);
  --shadow-lg: 0 18px 40px rgba(15,30,45,.10), 0 4px 10px rgba(15,30,45,.06);
  --shadow-card-hover: 0 24px 48px rgba(0,108,158,.14), 0 6px 12px rgba(15,30,45,.06);

  /* Spacing scale (8px) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-7: 32px; --s-8: 40px; --s-9: 56px; --s-10: 72px;
  --s-11: 96px;

  /* Type scale */
  --fs-xxs: 11px;
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 18px;
  --fs-lg: 22px;
  --fs-xl: 28px;
  --fs-2xl: 36px;
  --fs-3xl: 48px;
  --fs-4xl: 64px;

  --container: 1200px;
  --container-wide: 1320px;
}

/* Reset / base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: var(--primary-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-body); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 0; color: var(--anthrazit); text-wrap: balance; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p  { margin: 0; text-wrap: pretty; }

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-ink);
}

/* Layout helpers */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-6); }
.container-wide { width: 100%; max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--s-6); }
.section { padding: var(--s-10) 0; }
.section-tight { padding: var(--s-8) 0; }

.row { display: flex; gap: var(--s-4); align-items: center; }
.stack { display: flex; flex-direction: column; gap: var(--s-3); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.grid { display: grid; gap: var(--s-5); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: var(--fs-base);
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--talea-cyan); color: #fff; box-shadow: 0 6px 16px rgba(0,159,227,.28); }
.btn-primary:hover { background: var(--talea-cyan-600); }
.btn-success { background: var(--sec-lindgruen); color: #0d3a30; box-shadow: 0 6px 16px rgba(84,189,163,.32); }
.btn-success:hover { background: var(--sec-lindgruen-600); color: #fff; }
.btn-ghost { background: transparent; color: var(--anthrazit); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--anthrazit); }
.btn-lg { padding: 16px 28px; font-size: var(--fs-md); }
.btn-sm { padding: 8px 14px; font-size: var(--fs-sm); }

/* Chips / badges */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--gray-100);
  color: var(--anthrazit);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.chip-soft { background: var(--talea-cyan-50); color: var(--primary-ink); }
.chip-coral { background: #fde6e2; color: #b13a2b; }
.chip-blue  { background: #e7eef5; color: var(--sec-koenigsblau); }
.chip-violett { background: #f1e4f3; color: var(--sec-violett); }

/* Trust pill */
.trust-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--anthrazit);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.trust-pill .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--success); }

/* Verfügbarkeits-Badge — der Conversion-Trigger */
.freiplatz-badge {
  --pulse: rgba(84,189,163,.55);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--sec-lindgruen);
  color: #0d3a30;
  font-weight: 700;
  font-size: var(--fs-sm);
  border-radius: var(--r-pill);
  position: relative;
  letter-spacing: 0.01em;
}
.freiplatz-badge .pulse {
  width: 9px; height: 9px; border-radius: 999px;
  background: #0d3a30;
  position: relative;
}
.freiplatz-badge .pulse::after {
  content: ""; position: absolute; inset: -3px;
  border-radius: 999px; background: var(--pulse);
  animation: pulse 1.6s ease-out infinite;
  z-index: -1;
}
@keyframes pulse {
  0%   { transform: scale(.6); opacity: .9; }
  80%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Card */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-card-hover); border-color: var(--talea-cyan-200); }

/* Inputs */
.input, .select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: #fff;
  font: inherit;
  color: var(--anthrazit);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus { outline: none; border-color: var(--talea-cyan); box-shadow: 0 0 0 4px rgba(0,159,227,.18); }
.input::placeholder { color: var(--steingrau); }
label.field { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }

/* Pretty divider */
.divider { height: 1px; background: var(--border); border: 0; margin: var(--s-7) 0; }

/* Visually hidden */
.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; }

/* Skip-Link (BFSG) */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--anthrazit); color: #fff;
  padding: 12px 18px; border-radius: 0 0 var(--r-md) 0;
  font-weight: 700; z-index: 999;
}
.skip-link:focus { left: 0; outline: 3px solid var(--talea-cyan); }

/* Focus outline (BFSG) */
:focus-visible { outline: 3px solid var(--talea-cyan); outline-offset: 2px; border-radius: 4px; }

/* ============================================================
 * Verfügbarkeits-UI ein/aus (Customizer-Setting pwg_show_verfuegbarkeit).
 * Wenn body.hide-verfuegbarkeit aktiv ist, werden alle Elemente
 * ausgeblendet, die freie Plätze, "Heute frei"-Zähler etc. zeigen.
 * Im Markup einfach .verfuegbarkeit-ui auf das Element setzen.
 * ============================================================ */
body.hide-verfuegbarkeit .verfuegbarkeit-ui,
body.hide-verfuegbarkeit .freiplatz-badge {
  display: none !important;
}
