/* =====================================================================
   BirthdayBuddy — Design Tokens & Base Styles
   Quelle: Design Guide v1.0 (Juni 2026)
   Schriften (Belanosima, Lexend, Work Sans) werden lokal über style.css
   geladen – bewusst KEIN Google-Fonts-Import (DSGVO).
   ===================================================================== */
/* =====================================================================
   BirthdayBuddy — Design System · Globaler CSS-Einstieg
   Consumer verlinken NUR diese eine Datei.
   Reihenfolge: Fonts → Tokens → Base.
   ===================================================================== */

/* BirthdayBuddy — Webfonts
   Belanosima  → Logo / Titel (Bild- & Wortmarke, verschmitzter Charakter)
   Lexend      → Headlines H1/H2 (modern, freundlich, Struktur)
   Work Sans   → Body / Fließtext (unaufgeregt, gut lesbar)            */

/* ---- Belanosima (statische Schnitte) ---- */

/* ---- Lexend (variabel 100–900) ---- */

/* ---- Work Sans (variabel 100–900, upright + italic) ---- */

/* BirthdayBuddy — Farbwelt
   "Hygge Lifestyle": natürlich, entspannt, einladend. Warme Palette,
   keine grellen Farben. Teal = Vertrauen/Ruhe, Coral = Puls/Aktion,
   Off White = das warme Papier-Canvas.                                   */

:root {
  /* ---------- Brand: Primary Teal (#406e7d) ---------- */
  --teal-50:  #eef4f5;
  --teal-100: #d7e4e7;
  --teal-200: #b1c9cf;
  --teal-300: #86a8b1;
  --teal-400: #5d8896;
  --teal-500: #406e7d;   /* Basis */
  --teal-600: #365b68;
  --teal-700: #2b4954;   /* Wortmarke "Birthday" */
  --teal-800: #213842;
  --teal-900: #182830;

  /* ---------- Brand: Primary Coral (#ff816c) ---------- */
  --coral-50:  #fff2ef;
  --coral-100: #ffe1da;
  --coral-200: #ffc6bb;
  --coral-300: #ffa392;
  --coral-400: #ff816c;   /* Basis — Wortmarke "Buddy" */
  --coral-500: #f4654d;
  --coral-600: #df4a32;
  --coral-700: #bb3a26;

  /* ---------- Off White / warme Neutrals (Sand) ---------- */
  --white:    #ffffff;
  --sand-50:  #faf8f5;
  --sand-100: #f2efeb;   /* Off White — Canvas */
  --sand-200: #e8e3db;
  --sand-300: #d8d1c5;
  --sand-400: #bcb3a4;
  --sand-500: #978d7d;
  --sand-600: #6f675b;
  --sand-700: #4d473e;
  --sand-800: #322e29;
  --sand-900: #211e1a;

  /* ---------- Weiche Akzenttöne (Illustration & Status) ---------- */
  --lilac-ash:        #dcd5e6;
  --lilac-ash-deep:   #786b91;
  --muted-mint:       #d3e6da;
  --muted-mint-deep:  #4f7c64;
  --champagne-mist:   #f1e7d4;
  --champagne-deep:   #a98442;

  /* =====================================================
     Semantische Aliase
     ===================================================== */

  /* Marke */
  --brand-primary:        var(--teal-500);
  --brand-primary-strong: var(--teal-700);
  --brand-accent:         var(--coral-400);
  --brand-accent-strong:  var(--coral-600);

  /* Flächen / Hintergründe */
  --surface-canvas:   var(--sand-100);   /* App-/Seiten-Hintergrund */
  --surface-card:     var(--white);      /* Karten */
  --surface-raised:   var(--white);
  --surface-sunken:   var(--sand-50);
  --surface-inverse:  var(--teal-700);

  /* Text */
  --text-heading:     var(--teal-700);   /* Headlines (Lexend) */
  --text-body:        var(--sand-800);   /* Fließtext (Work Sans) */
  --text-muted:       var(--sand-600);
  --text-subtle:      var(--sand-500);
  --text-on-brand:    var(--white);      /* auf Teal */
  --text-on-accent:   var(--white);      /* auf Coral */
  --text-accent:      var(--coral-600);

  /* Linien / Rahmen */
  --border-subtle:    var(--sand-200);
  --border-default:   var(--sand-300);
  --border-strong:    var(--sand-400);
  --border-focus:     var(--teal-500);

  /* Status */
  --success:          var(--muted-mint-deep);
  --success-surface:  var(--muted-mint);
  --warning:          var(--champagne-deep);
  --warning-surface:  var(--champagne-mist);
  --danger:           var(--coral-700);
  --danger-surface:   var(--coral-100);
  --info:             var(--teal-600);
  --info-surface:     var(--teal-100);

  /* Marken-Verlauf (z.B. Trennlinie Signatur, Hero-Akzente) */
  --gradient-brand:   linear-gradient(90deg, var(--teal-500) 0%, var(--coral-400) 100%);
}

/* BirthdayBuddy — Typografie
   Belanosima → Logo/Titel · Lexend → Headlines · Work Sans → Body
   Abgerundet, freundlich, gut lesbar. Keine scharfen Kanten.            */

:root {
  /* ---------- Font Families ---------- */
  --font-display: "Belanosima", "Lexend", system-ui, sans-serif;       /* Titel / Logo */
  --font-heading: "Lexend", system-ui, sans-serif;                     /* H1–H3 */
  --font-body:    "Work Sans", system-ui, -apple-system, sans-serif;   /* Fließtext */

  /* ---------- Weights ---------- */
  --fw-regular:  400; /* @kind font */
  --fw-medium:   500; /* @kind font */
  --fw-semibold: 600; /* @kind font */
  --fw-bold:     700; /* @kind font */

  /* ---------- Type Scale (1.250 Major Third, Basis 16px) ---------- */
  --text-2xs: 0.6875rem;  /* 11px — Labels, Captions klein */
  --text-xs:  0.75rem;    /* 12px */
  --text-sm:  0.875rem;   /* 14px — Body small, Signatur */
  --text-base:1rem;       /* 16px — Body */
  --text-lg:  1.125rem;   /* 18px — Body large / Lead */
  --text-xl:  1.375rem;   /* 22px — H4 */
  --text-2xl: 1.75rem;    /* 28px — H3 */
  --text-3xl: 2.25rem;    /* 36px — H2 */
  --text-4xl: 2.875rem;   /* 46px — H1 */
  --text-5xl: 3.75rem;    /* 60px — Display */
  --text-6xl: 4.75rem;    /* 76px — Hero Display */

  /* ---------- Line Heights ---------- */
  --leading-tight:   1.1;    /* Display / große Headlines */
  --leading-snug:    1.25;   /* Headlines */
  --leading-normal:  1.55;   /* Body */
  --leading-relaxed: 1.7;    /* lange Fließtexte */

  /* ---------- Letter Spacing ---------- */
  --tracking-tight:  -0.02em;  /* große Headlines */
  --tracking-snug:   -0.01em;
  --tracking-normal: 0;
  --tracking-wide:   0.04em;   /* All-Caps Labels */

  /* ---------- Semantische Rollen ---------- */
  --role-display-font:   var(--font-display);
  --role-display-weight: var(--fw-bold);
  --role-h1-font:        var(--font-heading);
  --role-h1-weight:      var(--fw-bold);
  --role-h2-font:        var(--font-heading);
  --role-h2-weight:      var(--fw-semibold);
  --role-body-font:      var(--font-body);
  --role-body-weight:    var(--fw-regular);
  --role-label-font:     var(--font-body);
  --role-label-weight:   var(--fw-medium);
}

/* BirthdayBuddy — Spacing
   8px-Basisraster. Großzügig & luftig für den entspannten Hygge-Look.   */

:root {
  --space-0:   0;
  --space-1:   0.25rem;  /*  4px */
  --space-2:   0.5rem;   /*  8px */
  --space-3:   0.75rem;  /* 12px */
  --space-4:   1rem;     /* 16px */
  --space-5:   1.25rem;  /* 20px */
  --space-6:   1.5rem;   /* 24px */
  --space-8:   2rem;     /* 32px */
  --space-10:  2.5rem;   /* 40px */
  --space-12:  3rem;     /* 48px */
  --space-16:  4rem;     /* 64px */
  --space-20:  5rem;     /* 80px */
  --space-24:  6rem;     /* 96px */

  /* Semantische Container */
  --gutter:        var(--space-6);   /* Standard-Innenabstand Karten */
  --gutter-lg:     var(--space-8);
  --stack:         var(--space-4);   /* vertikaler Rhythmus */
  --inline:        var(--space-3);   /* horizontale Lücke (Icon↔Text) */
  --section-gap:   var(--space-16);
  --content-max:   72rem;            /* 1152px Lesebreite */
}

/* BirthdayBuddy — Radii & Elevation
   "Keine scharfen Kanten — hier tut sich niemand weh!"
   Große, weich abgerundete Karten (XL/2XL). Weiche, warme Schatten.     */

:root {
  /* ---------- Corner Radii ---------- */
  --radius-xs:   6px;
  --radius-sm:   10px;   /* Tags, Footer-Pill (Signatur) */
  --radius-md:   14px;   /* Inputs, kleine Buttons */
  --radius-lg:   18px;   /* Buttons, Badges */
  --radius-xl:   24px;   /* Karten */
  --radius-2xl:  32px;   /* große Karten / Hero-Flächen */
  --radius-3xl:  40px;
  --radius-pill: 999px;  /* Pills, Avatare, Chips */

  /* ---------- Elevation (warm getönte Schatten, nicht neutral-schwarz) ---------- */
  --shadow-xs:  0 1px 2px rgba(33, 30, 26, 0.06);
  --shadow-sm:  0 2px 6px rgba(33, 30, 26, 0.07);
  --shadow-md:  0 6px 18px rgba(33, 30, 26, 0.08);
  --shadow-lg:  0 14px 34px rgba(33, 30, 26, 0.10);
  --shadow-xl:  0 26px 60px rgba(33, 30, 26, 0.13);

  /* Farbiger "Lift" für primäre Coral-Aktionen */
  --shadow-accent: 0 10px 24px rgba(255, 129, 108, 0.34);
  --shadow-teal:   0 10px 24px rgba(64, 110, 125, 0.26);

  /* Fokus-Ring */
  --ring-accent: 0 0 0 4px rgba(255, 129, 108, 0.30);
  --ring-teal:   0 0 0 4px rgba(64, 110, 125, 0.26);

  /* ---------- Motion ---------- */
  --ease-soft:   cubic-bezier(0.33, 1, 0.68, 1);   /* @kind other */
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1); /* @kind other */
  --dur-fast:    140ms; /* @kind other */
  --dur-base:    220ms; /* @kind other */
  --dur-slow:    360ms; /* @kind other */
}

/* BirthdayBuddy — Base / Resets
   Setzt die Marken-Defaults: warmer Canvas, Work-Sans-Body,
   Lexend-Headlines, abgerundete Selektion.                              */

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

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

body {
  margin: 0;
  background: var(--surface-canvas);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

h1 { font-size: var(--text-4xl); font-weight: var(--fw-bold); letter-spacing: var(--tracking-tight); line-height: var(--leading-tight); }
h2 { font-size: var(--text-3xl); font-weight: var(--fw-bold); }
h3 { font-size: var(--text-2xl); font-weight: var(--fw-semibold); }
h4 { font-size: var(--text-xl);  font-weight: var(--fw-semibold); }

p {
  margin: 0 0 var(--space-4);
  text-wrap: pretty;
}

a {
  color: var(--text-accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

strong { font-weight: var(--fw-semibold); }

::selection {
  background: var(--coral-200);
  color: var(--teal-800);
}

/* Marken-Display-Klasse (Belanosima) für Logo-/Hero-Schriftzüge */
.bb-display {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--text-heading);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}

