/* ==========================================================================
   base.css — Reset, typography, layout primitives & White + Light Gradient
   ========================================================================== */

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: #FAFAFC;
  background-image: 
    radial-gradient(ellipse 900px 500px at 50% -80px, rgba(245, 185, 59, 0.16), transparent 70%),
    radial-gradient(circle 800px at 95% 20%, rgba(59, 130, 246, 0.08), transparent 60%),
    radial-gradient(circle 700px at 5% 55%, rgba(16, 185, 129, 0.06), transparent 60%),
    radial-gradient(ellipse 900px 600px at 85% 85%, rgba(245, 185, 59, 0.08), transparent 70%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; }

/* --- Skip to content --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  padding: var(--sp-2) var(--sp-4);
  background: var(--amber);
  color: #FFFFFF;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus {
  top: var(--sp-2);
}

/* --- Layout --- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.section:last-of-type {
  border-bottom: none;
}

/* --- Typography — Headings --- */

/* Hero H1 — Newsreader 500 */
.h1, h1 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5.6vw, 3.75rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: var(--text);
}

/* Section H2 — Newsreader 500 */
.h2, h2 {
  font-family: var(--serif);
  font-size: clamp(1.625rem, 4.2vw, 2.875rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--text);
}

/* Card H3 — Plex Sans 600 */
.h3, h3 {
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--text);
}

/* Body — Plex Sans 400 */
.body-text, p {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-mid);
  max-width: 65ch;
}

/* Small / caption */
.small, .caption {
  font-size: 0.875rem;
  color: var(--text-mid);
}

/* Eyebrow / label — Plex Mono 500 uppercase */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* German text marker — always serif */
.de-text {
  font-family: var(--serif);
}

/* English text marker — always sans */
.en-text {
  font-family: var(--sans);
}

/* Amber highlight — for one phrase in H1 */
.highlight {
  color: var(--amber);
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 12px 22px;
  border-radius: 9999px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* Primary — amber filled with gradient glow */
.btn-primary {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  font-weight: 600;
  border: 1px solid rgba(217, 119, 6, 0.4);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FBBF24 0%, #EA580C 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Secondary — clean white card button */
.btn-secondary {
  background: #FFFFFF;
  color: var(--text);
  border: 1px solid #CBD5E1;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.btn-secondary:hover {
  border-color: #94A3B8;
  background: #F8FAFC;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* Ghost link — like "Sign in" */
.btn-ghost {
  padding: var(--sp-2) var(--sp-3);
  color: var(--text-mid);
  font-size: 0.8125rem;
  font-weight: 500;
}

.btn-ghost:hover {
  color: var(--text);
}

/* Small button variant */
.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

/* Chrome icon in button */
.chrome-mark {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  border-radius: 50%;
  object-fit: contain;
}

.btn .chrome-mark,
.header-cta .chrome-mark {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: -3px;
}

/* --- Cards --- */
.card {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid #E2E8F0;
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all 0.25s ease;
}

.card:hover {
  border-color: rgba(217, 119, 6, 0.4);
  box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.1), 0 0 16px -2px rgba(245, 185, 59, 0.2);
}

/* --- Tags / chips --- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-1) var(--sp-3);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--line);
  color: var(--text-mid);
}

.tag.amber {
  background: var(--amber-15);
  border-color: var(--amber-30);
  color: var(--amber);
}

.tag.green {
  background: rgba(79, 209, 161, 0.12);
  border-color: rgba(79, 209, 161, 0.25);
  color: var(--green);
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-amber { color: var(--amber); }
.text-blue { color: var(--blue); }
.text-green { color: var(--green); }
.text-rose { color: var(--rose); }
.text-dim { color: var(--text-dim); }
.text-mid { color: var(--text-mid); }
.mx-auto { margin-left: auto; margin-right: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 3px; }

/* --- Focus ring --- */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* --- Table overflow --- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
