/* ============================================================
   FCH — Global Base System (Dark Mode Framework)
   Minimalistisch · Apple-inspiriert · High-Performance
   ============================================================ */


/* ============================================================
   1) RESET & FUNDAMENT
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: clip;
}

.section-wrapper {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: var(--section-pad);
}


body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--ink-1);
  background: var(--bg-1);
  width: 100%;
  overflow-x: clip;
}

img, picture {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}


/* ============================================================
   2) GLOBAL VARIABLES — DARK MODE SYSTEM
   ============================================================ */

:root {

  /* BACKGROUNDS (Dark Scale) */
  --bg-1: #000000;      /* Haupt-Hintergrund */
  --bg-2: #0d0d0d;      /* Minimal heller */
  --bg-3: #1a1a1a;      /* Sektionen dark-grey */
  --bg-4: #262626;      /* Mid grey – z. B. Cards */

  /* TEXT */
  --ink-1: #FFFFFF;     /* Primärtext */
  --ink-2: #cfcfcf;     /* Sekundär */
  --ink-3: #999999;     /* Muted */

  /* BRAND COLORS (FCH) */
  --brand: #B8CC64;
  --status-green: #41d883;
  --status-yellow: #ffca3a;
  --status-red: #e63946;

  /* BORDERS */
  --line-1: #2b2b2b;
  --line-2: #3b3b3b;

  /* RADII (FCH Vorgaben) */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* SHADOWS – Dark Subtle */
  --shadow-sm: 0 6px 18px rgba(0,0,0,.45);
  --shadow-md: 0 12px 30px rgba(0,0,0,.55);

  /* TYPOGRAPHY (FCH) */
  --fs-h1: clamp(2rem, 5vw, 3.4rem);
  --fs-h2: clamp(1.6rem, 4vw, 2.4rem);
  --fs-h3: clamp(1.3rem, 3vw, 1.6rem);
  --fs-body: clamp(1rem, 2vw, 1.125rem);
  --fs-lead: clamp(1.1rem, 2.5vw, 1.25rem);

  /* SPACING (rem) */
  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: .75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* CONTAINER */
  --container: min(1400px, 92vw);
  --container-wide: min(1600px, 94vw);

  /* ANIMATION */
  --ease-smooth: cubic-bezier(.22,.61,.36,1);
  --dur: .45s;

  /* EXTENDED TYPOGRAPHY SCALE */
  --fs-eyebrow: clamp(0.75rem, 1.5vw, 0.875rem);    /* Kleine Eyebrow / Label */
  --fs-card-title: clamp(1.1rem, 2.2vw, 1.35rem);  /* Titel in Cards */
  --fs-card-body: clamp(0.95rem, 1.8vw, 1.05rem);  /* Bodytext in Cards */
  --fs-small: clamp(0.8rem, 1.6vw, 0.9rem);        /* Kleinere Infos / Meta */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
}


/* ============================================================
   3) STRUCTURE (Container + Sections)
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 3rem);
}

section {
  padding-top: clamp(4rem, 9vw, 7rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
}

.section-dark {
  background: var(--bg-2);
}

.section-grey {
  background: var(--bg-3);
}

.section-mid {
  background: var(--bg-4);
}


/* ============================================================
   4) TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink-1);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
  font-size: var(--fs-body);
  color: var(--ink-2);
  line-height: 1.65;
}

.lead {
  font-size: var(--fs-lead);
  color: var(--ink-1);
}

.muted {
  color: var(--ink-3);
}


/* ============================================================
   5) REVEAL (Apple-like smooth)
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--dur) var(--ease-smooth),
    transform var(--dur) var(--ease-smooth);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   6) FLEX & GRID UTILITIES
   ============================================================ */

.flex        { display: flex; }
.flex-col    { display: flex; flex-direction: column; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-between{ display: flex; justify-content: space-between; align-items: center; }

.grid        { display: grid; }

.w-full      { width: 100%; }


/* ============================================================
   7) BUTTONS (FCH Minimal)
   ============================================================ */

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 26px;
  font-size: var(--fs-body);
  border-radius: var(--r-md);
  background: var(--brand);
  color: #111;
  transition: background .25s ease, transform .25s ease;
}

.btn:hover {
  background: #A8BE5B;
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--brand);
  color: var(--brand);
  border-radius: var(--r-md);
  padding: 12px 26px;
}

.btn-outline:hover {
  background: var(--brand);
  color: #111;
}


/* ============================================================
   8) CARDS (Apple Minimal)
   ============================================================ */

.card {
  background: var(--bg-3);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-smooth), box-shadow .3s var(--ease-smooth);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}


/* ============================================================
   9) INPUTS
   ============================================================ */

input, textarea, select {
  width: 100%;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--ink-1);
  font-size: var(--fs-body);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand);
}


/* ============================================================
   10) MEDIA QUERIES
   ============================================================ */

@media (max-width: 900px) {
  section {
    padding-top: var(--s-7);
    padding-bottom: var(--s-7);
  }
}

@media (max-width: 600px) {
  section {
    padding-top: var(--s-6);
    padding-bottom: var(--s-6);
  }
}