/* ============================================================
   Landing Page — Zukunft Flutlicht Saar
   Extends saarcheck-tokens.css with page-level shell + utilities
   ============================================================ */

@import url("./fonts.css");
@import url("./assets/saarcheck-tokens.css");

/* ----- Density tweak ----- */
:root[data-density="compact"]{
  --section-pad-y: clamp(48px, 6vw, 80px);
  --block-gap: 24px;
  --card-pad: 20px;
}
:root[data-density="airy"]{
  --section-pad-y: clamp(96px, 12vw, 160px);
  --block-gap: 48px;
  --card-pad: 32px;
}
:root{
  --section-pad-y: clamp(72px, 8vw, 112px);
  --block-gap: 32px;
  --card-pad: 24px;
}

/* ----- Accent tweak overrides ----- */
:root[data-accent="cyan"]{
  --accent-1: #27E0FB;
  --accent-2: #06B8D4;
  --accent-glow: rgba(39,224,251,.18);
  --accent-ink: #001A20;
  --accent-grad: linear-gradient(135deg, #27E0FB 0%, #06B8D4 100%);
}
:root[data-accent="teal"]{
  --accent-1: #27E0FB;
  --accent-2: #008F94;
  --accent-glow: rgba(0,180,180,.22);
  --accent-ink: #001A20;
  --accent-grad: linear-gradient(135deg, #5CF3FF 0%, #0CC3C7 45%, #007C8A 100%);
}
:root[data-accent="sfv"]{
  --accent-1: #2C57B5;
  --accent-2: #1B3A8C;
  --accent-glow: rgba(44,87,181,.28);
  --accent-ink: #F5F5F2;
  --accent-grad: linear-gradient(135deg, #4A7AD9 0%, #2C57B5 50%, #1B3A8C 100%);
}
:root{
  --accent-1: #27E0FB;
  --accent-2: #06B8D4;
  --accent-glow: rgba(39,224,251,.18);
  --accent-ink: #001A20;
  --accent-grad: linear-gradient(135deg, #27E0FB 0%, #06B8D4 100%);
}

/* ----- Page reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body{
  background: var(--bg-1);
  color: var(--fg-1);
  overflow-x: hidden;
}
img{ display:block; max-width:100%; }
button{ font: inherit; cursor: pointer; }

/* ----- Container ----- */
.container{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  width: 100%;
}

/* ----- Section ----- */
section.sec{
  padding: var(--section-pad-y) 0;
  position: relative;
}

/* ----- Eyebrow ----- */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--t-eyebrow);
  font-weight: var(--w-semibold);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--accent-1);
  margin: 0;
}
.eyebrow::before{
  content:"";
  width: 24px; height: 1px;
  background: var(--accent-1);
  display:inline-block;
}
.eyebrow.no-rule::before{ display:none; }

/* ----- Display headings ----- */
.h-display{
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(44px, 6vw, 96px);
  line-height: .98;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--fg-1);
  text-wrap: balance;
}
.h-display .em{
  color: var(--accent-1);
  font-weight: 400;
}
.h-section{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg-1);
  text-wrap: balance;
}
.h-section .em{ color: var(--accent-1); font-weight: 500; }
.h-card{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--fg-1);
}

p.lead{
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 56ch;
  margin: 0;
}

/* ----- Hairline divider ----- */
.hairline{ height:1px; background: var(--line-2); width:100%; }

/* ----- Buttons ----- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-3);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
  border: 1px solid transparent;
  transition: transform var(--t-fast) var(--ease-precise),
              background var(--t-med) var(--ease-precise),
              border-color var(--t-med) var(--ease-precise),
              color var(--t-med) var(--ease-precise),
              box-shadow var(--t-med) var(--ease-precise);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary{
  background: var(--accent-1);
  color: var(--accent-ink);
  box-shadow: 0 0 0 1px var(--accent-1), 0 0 32px -8px var(--accent-glow);
}
.btn-primary:hover{
  background: var(--accent-2);
  box-shadow: 0 0 0 1px var(--accent-2), 0 0 48px -6px var(--accent-glow);
}
.btn-ghost{
  background: transparent;
  color: var(--fg-1);
  border-color: var(--line-3);
}
.btn-ghost:hover{
  background: var(--bg-2);
  border-color: var(--fg-3);
}
.btn-arrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-1);
  font-weight: 600;
  font-size: 14px;
  background: none;
  border: 0;
  padding: 0;
  transition: gap var(--t-med) var(--ease-precise);
}
.btn-arrow:hover{ gap: 12px; }

/* ----- Card ----- */
.card{
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-4);
  padding: var(--card-pad);
  transition: border-color var(--t-med) var(--ease-precise),
              background var(--t-med) var(--ease-precise),
              transform var(--t-med) var(--ease-precise);
}
.card:hover{
  border-color: var(--line-3);
  background: var(--bg-3);
}

/* ----- Mono / data ----- */
.mono{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-3);
  text-transform: uppercase;
}

/* ----- Pulse dot ----- */
.live-dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-1);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: live-pulse 2s var(--ease-in-out) infinite;
  display: inline-block;
}
@keyframes live-pulse{
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 12px rgba(39,224,251,0); }
  100% { box-shadow: 0 0 0 0 rgba(39,224,251,0); }
}

/* ----- Schematic crosshair frame (decorative) ----- */
.crosshair{
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--accent-1);
  opacity: .6;
  pointer-events: none;
}
.crosshair.tl{ top:-6px; left:-6px; border-right:0; border-bottom:0; }
.crosshair.tr{ top:-6px; right:-6px; border-left:0; border-bottom:0; }
.crosshair.bl{ bottom:-6px; left:-6px; border-right:0; border-top:0; }
.crosshair.br{ bottom:-6px; right:-6px; border-left:0; border-top:0; }

/* ----- Flutlicht lamp flicker ----- */
@keyframes lamp-flicker {
  0%, 92%, 100% { opacity: 1; }
  93%   { opacity: 0.85; }
  94%   { opacity: 1; }
  96%   { opacity: 0.92; }
  97%   { opacity: 1; }
}

/* ----- CTA ball-roll-in ----- */
.btn-primary{ position: relative; overflow: hidden; }
.btn-primary::before{
  content: "";
  display: inline-block;
  width: 0; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #e0e0e0 55%, #888 100%);
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
  opacity: 0;
  margin-right: -10px;
  transform: rotate(0deg);
  transition: width 320ms var(--ease-precise),
              opacity 220ms var(--ease-precise),
              transform 480ms var(--ease-precise),
              margin-right 320ms var(--ease-precise);
  flex-shrink: 0;
}
.btn-primary:hover::before{
  width: 14px;
  opacity: 1;
  transform: rotate(720deg);
  margin-right: 0;
}

/* ----- Trikot / Jersey number ----- */
.trikot{
  font-family: "Oswald", "Raleway", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
  color: var(--accent-1);
  /* subtle stitched look: tight thin outline */
  -webkit-text-stroke: 1px var(--accent-1);
  text-stroke: 1px var(--accent-1);
}
.trikot-ghost{
  font-family: "Oswald", "Raleway", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
  color: transparent;
  -webkit-text-stroke: 1px var(--fg-4);
  text-stroke: 1px var(--fg-4);
}

/* ----- Reveal animation ----- */
.reveal{ opacity: 0; transform: translateY(8px); transition: opacity .7s var(--ease-precise), transform .7s var(--ease-precise); }
.reveal.in{ opacity: 1; transform: translateY(0); }

/* ----- Form controls ----- */
.field{ display:flex; flex-direction:column; gap:6px; }
.field label{
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-3);
  text-transform: uppercase;
  font-weight: 600;
}
.field input, .field select, .field textarea{
  font: inherit;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  background: var(--bg-3);
  color: var(--fg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-3);
  transition: border-color var(--t-fast) var(--ease-precise), box-shadow var(--t-fast) var(--ease-precise);
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.field input::placeholder, .field textarea::placeholder{ color: var(--fg-4); }
.field textarea{ resize: vertical; min-height: 100px; line-height: 1.5; }

/* ----- Scroll behavior ----- */
html{ scroll-behavior: smooth; }
:focus-visible{ outline: 2px solid var(--accent-1); outline-offset: 2px; }

/* ----- Selection ----- */
::selection{ background: var(--accent-1); color: var(--accent-ink); }
