/* ============================================================
   FUMOT — Basis: Design-Tokens, Reset, Typografie, Layout, Buttons
   Wird auf jeder Seite geladen.
   ============================================================ */

/* ============================================================
   FUMOT DEUTSCHLAND — Design System
   Brand palette derived from official FUMOT brand colour #1964AD
   ============================================================ */

:root {
  /* --- Brand --- */
  --blue:        #1964AD;
  --blue-600:    #14508C;
  --blue-700:    #0F3F70;
  --blue-400:    #3D86C6;
  --blue-tint:   #E9F2FB;
  --blue-tint-2: #F3F8FD;

  /* --- Ink scale (official dark #0F172A) --- */
  --ink:      #0F172A;
  --ink-2:    #1B2942;
  --ink-3:    #2C3B57;

  /* --- Accent --- */
  --accent:   #FF6900;
  --accent-ink: #C2410C;   /* dunkleres Orange für Text auf hellem Grund (AA-konform) */
  --accent-tint: #FFF2E6;

  /* --- Neutrals --- */
  --bg:       #FFFFFF;
  --surface:  #F4F7FB;
  --surface-2:#EDF2F8;
  --line:     #E3E9F1;
  --line-2:   #CFD9E6;
  --line-3:   #A9BCD3;   /* kräftigerer Rahmen für Ghost-Buttons (--line-2 war zu hell) */
  --muted:    #5C6B85;
  --muted-2:  #5C6B85;   /* angehoben auf AA-Kontrast (war #8794A8 ≈ 2,7:1) */

  /* --- Semantic --- */
  --success:  #0F6E4E;
  --success-tint: #E6F5EF;
  --danger:   #C0392B;
  --danger-tint: #FCEBEA;

  /* --- Type --- */
  --font-display: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --font-body:    system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --font-mono:    system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;

  /* --- Radius language (concentric squircle system) --- */
  --r-shell: 30px;
  --r-core:  calc(var(--r-shell) - 8px);
  --r-card:  22px;
  --r-inner: 14px;
  --r-pill:  999px;

  /* --- Motion (spring / real-world mass) --- */
  --ease:      cubic-bezier(.32,.72,0,1);
  --ease-soft: cubic-bezier(.22,.61,.36,1);
  --dur:       .7s;
  --dur-fast:  .38s;

  /* --- Layout ---
     Referenz elfbar.de (1440px gemessen): Container 1400px, Sektions-Rhythmus 40px/40px */
  --gutter: 10px;
  --maxw: 1400px;
  --sec-y: clamp(32px, 3vw, 46px);      /* Sektions-Innenabstand oben/unten */
  --sec-y-tight: clamp(20px, 2vw, 30px);
  --stack-head: clamp(18px, 2vw, 28px); /* Abstand Überschrift → Inhalt */

  /* --- Elevation: soft + diffused, never harsh --- */
  --sh-1: 0 1px 2px rgba(15,23,42,.04), 0 4px 16px rgba(15,23,42,.04);
  --sh-2: 0 2px 6px rgba(15,23,42,.05), 0 14px 40px rgba(15,23,42,.07);
  --sh-3: 0 4px 12px rgba(15,23,42,.06), 0 28px 70px rgba(15,23,42,.10);
  --sh-blue: 0 8px 28px rgba(25,100,173,.26);
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4 { font-family: var(--font-display); margin: 0; letter-spacing: -.02em; line-height: 1.06; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ============================================================
   Typography primitives
   ============================================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: .45;
}
.eyebrow--light { color: rgba(255,255,255,.72); }

.h-hero   { font-size: clamp(2.4rem, 5.2vw, 4.6rem); }
.h-1      { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
/* elfbar-Skala: Sektions-H2 ≈ 36px, Inhalts-H2 25.6px, H3 20px, Fließtext 15.2px */
.h-2      { font-size: clamp(1.5rem, 2.5vw, 2.15rem); }
.h-3      { font-size: clamp(1.06rem, 1.45vw, 1.28rem); line-height: 1.3; }
.lead     { font-size: clamp(.95rem, 1.05vw, 1.06rem); color: var(--muted); line-height: 1.62; font-weight: 300; }
.muted    { color: var(--muted); }
.mono     { font-family: var(--font-mono); }

/* ============================================================
   Layout
   ============================================================ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sec-y); }
.section--tight { padding-block: var(--sec-y-tight); }
.section--surface { background: var(--surface); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink .muted, .section--ink .lead { color: rgba(255,255,255,.62); }

.sec-head { max-width: 820px; margin-bottom: var(--stack-head); }
.sec-head .h-2 { margin-block: 10px 12px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow::before { display: none; }

/* --- elfbar-Muster: 2px Farbverlaufslinie unter Inhalts-Überschriften --- */
.h-rule { border: 0; height: 2px; margin: 14px 0 0; border-radius: 2px;
  background: linear-gradient(90deg, rgba(25,100,173,0) 0%, #7FBBEA 9%, var(--blue) 44%, #FF8A33 78%, rgba(255,105,0,0) 100%);
}
.section--ink .h-rule { background: linear-gradient(90deg, rgba(127,187,234,0) 0%, #7FBBEA 9%, #4FACFE 44%, #FF8A33 78%, rgba(255,138,51,0) 100%); }

/* ============================================================
   Buttons — pill + nested "button-in-button" trailing icon
   ============================================================ */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 7px 7px 7px 24px;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: -.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease);
  will-change: transform;
}
.btn__ico {
  width: 34px; height: 34px;
  flex: 0 0 34px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.16);
  display: grid; place-items: center;
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.btn__ico svg { width: 15px; height: 15px; }
.btn:hover { box-shadow: var(--sh-blue); }
/* Bewegung bewusst knapp: der Kreis sitzt nah am rechten Innenabstand,
   ein größerer Versatz lässt ihn am Rand anstoßen. */
.btn:hover .btn__ico { transform: translate3d(1.5px,-1px,0) scale(1.03); background: rgba(255,255,255,.26); }
.btn:active { transform: scale(.98); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--line-3);
  padding: 7px 7px 7px 22px;
}
.btn--ghost .btn__ico { background: var(--surface-2); color: var(--ink); }
.btn--ghost:hover { background: var(--surface); box-shadow: var(--sh-1); border-color: var(--blue); color: var(--blue); }
.btn--ghost:hover .btn__ico { background: var(--blue-tint); }

/* Gefahrenaktion (Bestellung stornieren): eigene Farbe, damit sie nicht
   wie ein normaler Weiter-Klick aussieht. */
.btn--danger {
  --btn-bg: #fff; --btn-fg: var(--danger);
  border-color: rgba(192,57,43,.32);
}
.btn--danger .btn__ico { background: var(--danger-tint); }
.btn--danger:hover { background: var(--danger-tint); border-color: var(--danger); box-shadow: 0 8px 24px rgba(192,57,43,.18); }
.btn--danger:hover .btn__ico { background: #F6D6D2; }

.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--light .btn__ico { background: rgba(15,23,42,.07); }
.btn--light:hover { box-shadow: 0 8px 28px rgba(255,255,255,.18); }
.btn--light:hover .btn__ico { background: rgba(15,23,42,.13); }

.btn--lg { padding: 9px 9px 9px 30px; font-size: 1.02rem; }
.btn--lg .btn__ico { width: 40px; height: 40px; flex-basis: 40px; }
.btn--block { width: 100%; justify-content: space-between; }
.btn--sm { padding: 8px 15px; font-size: .84rem; border-radius: 11px; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: .92rem; font-weight: 500;
  color: var(--blue);
  border-bottom: 1px solid rgba(25,100,173,.28);
  padding-bottom: 2px;
  transition: gap var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.link-arrow svg { width: 14px; height: 14px; }
.link-arrow:hover { gap: 13px; border-color: var(--blue); }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translate3d(0, 34px, 0); filter: blur(6px); }
.reveal.is-in {
  opacity: 1; transform: none; filter: none;
  transition: opacity .85s var(--ease), transform .85s var(--ease), filter .85s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

@keyframes fadeUp { from { opacity: 0; transform: translate3d(0,16px,0); } to { opacity: 1; transform: none; } }
