/* ═══════════════════════════════════════════════════════════════════
   AI MEDIA HALLE · Leistungsseiten · statisch, ohne JavaScript
   Markensprache wie /preise/: Gelb + Pink auf Fast-Schwarz.
   Eigener Namensraum, damit kein fremdes Stilblatt hier hineinregiert.
   Eine Schriftdatei (Bricolage variabel), sonst Systemschriften — die
   Seite soll in erster Linie schnell lesbar sein, nicht schwer.
   ═══════════════════════════════════════════════════════════════════ */
@layer reset, tokens, basis, bausteine, abfragen;

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/Bricolage-var.woff2") format("woff2");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
}

@layer reset {
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  img, svg { display: block; max-width: 100%; height: auto; }
  ul[class], ol[class] { list-style: none; }
  a { color: inherit; }
}

@layer tokens {
  :root {
    color-scheme: dark;
    --grund:   oklch(0.146 0.004 285.9);
    --flaeche: oklch(0.193 0.008 285.6);
    --kante:   oklch(0.30 0.01 285.6);
    --gelb:    oklch(0.919 0.2 109.8);
    --pink:    oklch(0.702 0.174 353.6);
    --weiss:   oklch(0.960 0.005 106.5);
    --grau:    oklch(0.738 0.013 286.1);

    --grotesk: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;

    --s-h1:   clamp(2.1rem, 5.2vw, 4rem);
    --s-h2:   clamp(1.5rem, 3.2vw, 2.35rem);
    --s-h3:   clamp(1.15rem, 1.8vw, 1.375rem);
    --s-lauf: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
    --s-klein: 0.875rem;

    --rand:   clamp(1.25rem, 4vw, 3.5rem);
    --takt:   clamp(3.25rem, 7vw, 5.5rem);
    --breite: 1100px;
  }
}

@layer basis {
  body {
    font-family: var(--grotesk);
    font-size: var(--s-lauf);
    line-height: 1.65;
    background: var(--grund);
    color: var(--weiss);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
  }
  h1, h2, h3 { text-wrap: balance; line-height: 1.12; font-weight: 700; }
  p, li { text-wrap: pretty; }
  p { max-width: 68ch; }
  strong { font-weight: 700; }
  a { color: var(--gelb); text-underline-offset: 0.22em; }
  a:hover, a:focus-visible { color: var(--pink); }
  :focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; }
}

@layer bausteine {

  .sprunglink {
    position: fixed; top: 0.75rem; left: 0.75rem; z-index: 50;
    background: var(--gelb); color: var(--grund);
    padding: 0.7rem 1.2rem; border-radius: 999px;
    font-weight: 700; text-decoration: none; translate: 0 -300%;
  }
  .sprunglink:focus-visible { translate: 0 0; color: var(--grund); }

  .huelle { max-width: var(--breite); margin-inline: auto; padding-inline: var(--rand); }

  /* Kopfzeile ------------------------------------------------------ */
  .kopf { border-bottom: 1px solid var(--kante); }
  .kopf__innen {
    max-width: var(--breite); margin-inline: auto; padding: 1rem var(--rand);
    display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
    align-items: center; justify-content: space-between;
  }
  .marke {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-weight: 700; letter-spacing: -0.01em; text-decoration: none; color: var(--weiss);
  }
  .marke:hover { color: var(--weiss); }
  .marke__punkt {
    width: 0.7rem; height: 0.7rem; border-radius: 999px;
    background: linear-gradient(135deg, var(--gelb), var(--pink));
  }
  .kopf__wege { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: var(--s-klein); }

  /* Brotkrumen ----------------------------------------------------- */
  .krumen { font-size: var(--s-klein); color: var(--grau); padding-top: 1.5rem; }
  .krumen ol { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
  .krumen li + li::before { content: "›"; margin-right: 0.5rem; color: var(--kante); }

  /* Kopfbereich der Seite ------------------------------------------ */
  .aufmacher { padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--takt); }
  .aufmacher h1 { font-size: var(--s-h1); letter-spacing: -0.025em; margin-bottom: 1.25rem; }
  .aufmacher h1 .akzent { color: var(--gelb); }
  .aufmacher__satz { font-size: clamp(1.1rem, 1.9vw, 1.4rem); color: var(--weiss); }
  .aufmacher__ort {
    font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--pink); margin-bottom: 1.25rem;
  }
  .aufmacher__wege { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

  .knopf {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--gelb); color: var(--grund);
    padding: 0.85rem 1.5rem; border-radius: 999px;
    font-weight: 700; text-decoration: none; line-height: 1;
  }
  .knopf:hover, .knopf:focus-visible { background: var(--pink); color: var(--grund); }
  .knopf--rand { background: transparent; color: var(--gelb); box-shadow: inset 0 0 0 2px currentColor; }
  .knopf--rand:hover, .knopf--rand:focus-visible { background: transparent; color: var(--pink); }

  /* Abschnitte ----------------------------------------------------- */
  .block { padding-block: var(--takt); border-top: 1px solid var(--kante); }
  .block > .huelle > h2 { font-size: var(--s-h2); letter-spacing: -0.02em; margin-bottom: 1rem; }
  .block > .huelle > h2 .akzent { color: var(--pink); }
  .block__vor { color: var(--grau); margin-bottom: 2.25rem; }

  /* Karten --------------------------------------------------------- */
  .gitter { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
  .karte {
    background: var(--flaeche); border: 1px solid var(--kante);
    border-radius: 1.25rem; padding: 1.75rem;
    display: flex; flex-direction: column; gap: 0.6rem;
  }
  .karte h3 { font-size: var(--s-h3); }
  .karte p { max-width: none; }
  .karte__preis { font-size: clamp(1.75rem, 3.4vw, 2.4rem); font-weight: 700; color: var(--gelb); line-height: 1.05; }
  .karte__preis small { display: block; font-size: 0.85rem; font-weight: 500; color: var(--grau); margin-top: 0.35rem; }
  .karte__satz { color: var(--grau); }
  .karte ul { display: grid; gap: 0.45rem; margin-top: 0.4rem; }
  .karte li { position: relative; padding-left: 1.4rem; font-size: var(--s-klein); }
  .karte li::before { content: "→"; position: absolute; left: 0; color: var(--gelb); }
  .karte li.nein::before { content: "×"; color: var(--pink); }

  /* Aufzählung mit Häkchen ----------------------------------------- */
  .liste { display: grid; gap: 0.6rem; max-width: 68ch; }
  .liste li { position: relative; padding-left: 1.6rem; }
  .liste li::before { content: "→"; position: absolute; left: 0; color: var(--gelb); }

  /* Schritte ------------------------------------------------------- */
  .schritte { display: grid; gap: 1.5rem; counter-reset: schritt; max-width: 68ch; }
  .schritt { display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; align-items: start; }
  .schritt__nr { font-family: var(--mono); font-size: 1.1rem; color: var(--pink); padding-top: 0.15rem; }
  .schritt h3 { font-size: var(--s-h3); margin-bottom: 0.25rem; }
  .schritt__zeit { display: block; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grau); font-weight: 400; }

  /* Preistabelle --------------------------------------------------- */
  .tafel { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
  .tafel caption { text-align: left; font-weight: 700; padding-bottom: 0.6rem; }
  .tafel th, .tafel td { text-align: left; padding: 0.7rem 0.9rem 0.7rem 0; border-bottom: 1px solid var(--kante); vertical-align: top; }
  .tafel th { font-weight: 600; }
  .tafel .zahl { color: var(--gelb); font-weight: 700; white-space: nowrap; }
  .tafel__hinweis { margin-top: 1rem; color: var(--grau); font-size: var(--s-klein); }

  /* Bild ----------------------------------------------------------- */
  .bild { border: 1px solid var(--kante); border-radius: 1.25rem; overflow: hidden; background: var(--flaeche); }
  .bild img { width: 100%; }
  .bild figcaption { padding: 0.9rem 1.1rem; font-size: var(--s-klein); color: var(--grau); }

  /* Kontakt -------------------------------------------------------- */
  .kontakt { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
  .kontakt__feld { background: var(--flaeche); border: 1px solid var(--kante); border-radius: 1.25rem; padding: 1.5rem; }
  .kontakt__feld h3 { font-size: var(--s-h3); margin-bottom: 0.5rem; }
  .kontakt__feld p { max-width: none; }
  .kontakt address { font-style: normal; }

  /* Fuß ------------------------------------------------------------ */
  .fuss { border-top: 1px solid var(--kante); padding-block: 2.5rem 3.5rem; color: var(--grau); font-size: var(--s-klein); }
  .fuss__innen { display: grid; gap: 0.85rem; max-width: var(--breite); margin-inline: auto; padding-inline: var(--rand); }
  .fuss strong { color: var(--weiss); }
  .fuss ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
}

@layer abfragen {
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  }
}
