/* === Wertsicherung v4 — Minimal, Modern, 1500px === */
@import url('/assets/fonts/google/fonts.css'); /* selbstgehostet (vorher Google Fonts CDN) */

@font-face {
  font-family: 'Blair';
  src: url('assets/fonts/Blair.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Authentic Signature';
  src: url('assets/fonts/AuthenticSignature.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* === Brand Tokens === */
:root {
  --nav-h: 120px;
  --primary: #181818;
  --secondary: #272829;
  --accent: #BCAC7C;
  --accent-deep: #BCAC7C;
  --accent-light: #E4D5A8;
  --accent-warm: #E4C98A;
  --bg-light: #F7F6F1;
  --white: #FFFFFF;

  --text-primary: #181818;
  --text-muted: rgba(24, 24, 24, 0.60);
  --text-faint: rgba(24, 24, 24, 0.42);
  --line-soft: rgba(24, 24, 24, 0.06);

  --pill-bg: rgba(188, 172, 124, 0.16);
  --pill-color: #BCAC7C;

  --sans: 'Montserrat', system-ui, sans-serif;
  --body: 'Open Sans', system-ui, sans-serif;
  --display: 'Blair', 'Times New Roman', serif;
  --script: 'Authentic Signature', 'Brush Script MT', cursive;

  /* Soft shadow only (no borders) */
  --shadow-soft: 0 1px 2px rgba(24,24,24,0.03), 0 8px 32px rgba(24,24,24,0.06);
  --shadow-pop: 0 4px 20px rgba(24,24,24,0.06), 0 24px 60px rgba(24,24,24,0.08);

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; background: #0d0d10; } /* dunkler Canvas oben (Browserleiste/Overscroll), passend zu theme-color & Hero */
body {
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: #0d0d10; /* dunkel: Safari (macOS) faerbt seine Toolbar nach der body-Farbe */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  position: relative;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
}
/* Heller Inhaltshintergrund auf <main> verlagert (umschliesst Hero + alle Sektionen),
   damit transparente Inhaltsseiten weiterhin auf Weiss stehen, obwohl body dunkel ist. */
main { background: var(--white); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
img { display: block; max-width: 100%; }

/* === Container 1500px === */
.container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 64px;
  position: relative;
}
@media (max-width: 1100px) { .container { padding: 0 40px; } }
@media (max-width: 720px) { .container { padding: 0 26px; } }

/* === Type primitives === */
.script {
  font-family: var(--script);
  color: var(--accent);
  font-weight: 400;
  line-height: 1;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -2px;
  color: var(--text-primary);
}
.h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.05;
  letter-spacing: -1.2px;
  color: var(--text-primary);
}
.h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.22;
  letter-spacing: -0.4px;
  color: var(--text-primary);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 32px;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .2s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary);
}
.btn-primary:hover {
  background: #CDB97D;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(188,172,124,0.34);
}
.btn-ink {
  background: var(--primary);
  color: var(--white);
}
.btn-ink:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 18px 8px;
}
.btn-ghost::after {
  content: '';
  width: 16px;
  height: 1.5px;
  background: var(--primary);
  transition: width .25s ease, background .25s ease;
  margin-left: 4px;
}
.btn-ghost:hover { color: var(--accent-deep); }
.btn-ghost:hover::after { background: var(--accent-deep); width: 28px; }

/* === Pills === */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1;
}
.pill-gold-soft {
  background: var(--pill-bg);
  color: var(--pill-color);
}
.pill-outline {
  background: transparent;
  color: var(--text-muted);
}
.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  position: relative;
}
.pill-live .pill-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  animation: badge-pulse 1.8s ease-out infinite;
}
@keyframes badge-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(3.2); opacity: 0; }
}

/* === Surface (no border, just shadow) === */
.surface {
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-soft);
}
.surface-flat {
  background: var(--bg-light);
  border-radius: var(--r-xl);
}

/* === Section === */
section { position: relative; padding: 120px 0; }
@media (max-width: 1100px) { section { padding: 96px 0; } }
@media (max-width: 720px) { section { padding: 72px 0; } }

/* === Responsive global overrides for inline-styled sections === */
@media (max-width: 1100px) {
  /* Cap any inline section padding above ~120px to a tablet-friendly 96px */
  section[data-screen-label] {
    padding-top: 96px !important;
    padding-bottom: 96px !important;
  }
}
@media (max-width: 720px) {
  :root { --nav-h: 80px; }
  section[data-screen-label] {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }
  .h1 { font-size: clamp(36px, 9vw, 56px) !important; letter-spacing: -1.5px !important; }
  .h2 { font-size: clamp(28px, 7vw, 40px) !important; letter-spacing: -1px !important; }
  .h3 { font-size: clamp(20px, 5vw, 24px) !important; }
  .btn { padding: 16px 24px !important; font-size: 12px !important; letter-spacing: 2px !important; }
  .script { font-size: clamp(36px, 9vw, 48px) !important; }
}
@media (max-width: 480px) {
  .container { padding: 0 26px !important; }
  .btn { padding: 14px 20px !important; font-size: 11.5px !important; letter-spacing: 1.8px !important; }
}

/* === Utility === */
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-muted); }

button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 8px;
}

/* === Animations === */
@keyframes barFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(-2deg); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Range input === */
input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 100px;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 4px 14px rgba(188,172,124,0.40);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}

/* === Preis-Chart (v7-gc) — Mobile === */
@media (max-width: 720px) {
  .v7-gc-card  { padding: 22px 18px !important; }
  .v7-gc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; row-gap: 18px !important; }
  .v7-gc-spot  { flex-wrap: wrap !important; gap: 8px 12px !important; }
}
