/* ==========================================================
   felixthorsippel.de – gemeinsame Styles
   Design-Regeln: siehe DESIGN.md
   Breakpoints: Handy bis 719 px, Tablet 720–1023 px, Desktop ab 1024 px
   ========================================================== */

/* ---------- Schrift (lokal, OFL, siehe assets/fonts/OFL.txt) ---------- */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url('assets/fonts/bricolage-grotesque-latin-ext-standard-normal.woff2') format('woff2-variations'),
       url('assets/fonts/bricolage-grotesque-latin-ext-standard-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url('assets/fonts/bricolage-grotesque-latin-standard-normal.woff2') format('woff2-variations'),
       url('assets/fonts/bricolage-grotesque-latin-standard-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Variablen (Werte: Handy) ---------- */
:root {
  /* Farben */
  --dark: #14181C;
  --light: #FFFFFF;
  --on-dark: #F2F3F4;
  --on-dark-2: #C9CED3;
  --muted-dark: #9AA3AB;
  --muted-light: #5A6168;
  --text-strong: #2A3036;
  --line: #DDE0E2;

  /* Schrift */
  --font: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-h1: 46px;
  --fs-hero-sub: 20px;
  --fs-claim: 18px;
  --fs-h2: 34px;
  --fs-tile-h: 18px;
  --fs-step-h: 21px;
  --fs-statement: 19px;
  --fs-body: 17px;
  --fs-about: 18px;
  --fs-step: 16px;
  --fs-small: 14px;
  --fs-notice: 14px;
  --fs-button: 16px;
  --fs-brand: 28px;

  /* Abstände (8-Pixel-Raster, Einzelwerte laut Auftrag) */
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-36: 36px;
  --space-40: 40px;
  --section-y: 64px;
  --side-x: 20px;
  --hero-top: 88px;
  --hero-bottom: 80px;
  --steps-gap: 36px;

  /* Maximale Breiten */
  --w-content: 1120px;
  --w-hero: 880px;
  --w-intro: 680px;
  --w-about: 620px;
  --w-hero-sub: 720px;
  --w-claim: 640px;
  --w-legal: 720px;

  /* Komponenten */
  --button-height: 50px;
  --button-pad-x: 26px;
  --button-border: 1.5px;
  --circle: 44px;
  --tap: 44px;

  /* Radien */
  --radius-button: 8px;
  --radius-tile: 12px;
  --radius-circle: 50%;
}

/* Tablet: Werte zwischen Handy und Desktop */
@media (min-width: 720px) {
  :root {
    --fs-h1: 61px;
    --fs-hero-sub: 24px;
    --fs-claim: 19px;
    --fs-h2: 40px;
    --section-y: 80px;
    --side-x: 24px;
    --hero-top: 112px;
    --hero-bottom: 104px;
    --steps-gap: 40px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  :root {
    --fs-h1: 76px;
    --fs-hero-sub: 27px;
    --fs-claim: 20px;
    --fs-h2: 46px;
    --section-y: 96px;
    --hero-top: 136px;
    --hero-bottom: 128px;
  }
}

/* ---------- Grundlagen ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--light);
  color: var(--dark);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  font-variation-settings: 'wdth' 100;
  /* Sticky Footer: Fußzeile immer am unteren Rand */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2 {
  font-weight: 700;
  font-variation-settings: 'wdth' 75;
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--fs-h1);
  line-height: 1.0;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.05;
}

a:focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: 3px;
}

/* ---------- Abschnitte ---------- */
.section {
  padding: var(--section-y) var(--side-x);
  text-align: center;
}

.section--dark {
  background: var(--dark);
  color: var(--muted-dark);
}

.section--dark h2,
.section--dark h3 {
  color: var(--on-dark);
}

.section--light {
  background: var(--light);
  color: var(--muted-light);
}

.section--light h2,
.section--light h3 {
  color: var(--dark);
}

.section--dark a:focus-visible {
  outline-color: var(--on-dark);
}

.container {
  max-width: var(--w-content);
  margin: 0 auto;
}

.section h2 {
  margin-bottom: var(--space-24);
}

/* ---------- Hinweisleiste ---------- */
.notice {
  background: var(--dark);
  border-bottom: 1px solid var(--text-strong);
  color: var(--on-dark);
  font-size: var(--fs-notice);
  font-weight: 700;
  line-height: normal;
  text-align: center;
  padding: var(--space-8) var(--side-x);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: var(--hero-top);
  padding-bottom: var(--hero-bottom);
}

.hero .container {
  max-width: var(--w-hero);
}

.hero h1 {
  color: var(--on-dark);
}

.hero__sub {
  max-width: var(--w-hero-sub);
  margin: var(--space-20) auto 0;
  color: var(--on-dark);
  font-size: var(--fs-hero-sub);
  font-weight: 500;
  line-height: 1.3;
}

.hero__claim {
  max-width: var(--w-claim);
  margin: var(--space-36) auto 0;
  color: var(--on-dark-2);
  font-size: var(--fs-claim);
  font-weight: 500;
  line-height: 1.4;
}

.hero__ai {
  max-width: var(--w-claim);
  margin: var(--space-8) auto 0;
  color: var(--muted-dark);
  font-size: var(--fs-body);
  line-height: 1.65;
}

.hero .buttons {
  margin-top: var(--space-40);
}

/* Umbruch nach „Verwaltungsabläufen“ nur ab Tablet; auf dem Handy natürlicher Umbruch */
.br-wide {
  display: none;
}

@media (min-width: 720px) {
  .br-wide {
    display: inline;
  }
}

/* ---------- Buttons ---------- */
.buttons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-12);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--button-height);
  padding: 0 var(--button-pad-x);
  border: var(--button-border) solid var(--on-dark);
  border-radius: var(--radius-button);
  font-family: var(--font);
  font-size: var(--fs-button);
  font-weight: 600;
  line-height: normal;
  text-decoration: none;
  width: 100%;
}

.button--primary {
  background: var(--on-dark);
  color: var(--dark);
}

.button--secondary {
  background: transparent;
  border-color: var(--muted-dark);
  color: var(--on-dark);
}

.button:hover {
  opacity: 0.88;
}

.button:focus-visible {
  outline: 2px solid var(--on-dark);
  outline-offset: 3px;
}

@media (min-width: 720px) {
  .buttons {
    flex-direction: row;
    justify-content: center;
  }

  .button {
    width: auto;
  }
}

/* ---------- Leistungen ---------- */
.intro {
  max-width: var(--w-intro);
  margin: 0 auto;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
  margin-top: var(--space-40);
}

.tile {
  border: 1px solid var(--line);
  border-radius: var(--radius-tile);
  padding: var(--space-20);
}

.tile h3 {
  font-size: var(--fs-tile-h);
  font-weight: 700;
  line-height: 1.3;
}

.tile ul {
  margin-top: var(--space-8);
  font-size: var(--fs-small);
  line-height: 1.6;
}

.tile li {
  display: block;
}

.more {
  margin-top: var(--space-40);
}

.statements {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-32);
  margin-top: var(--space-40);
}

.statement {
  border-top: 2px solid var(--dark);
  padding-top: var(--space-20);
  color: var(--dark);
  font-size: var(--fs-statement);
  font-weight: 500;
  line-height: 1.55;
}

@media (min-width: 720px) {
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .statements {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tiles {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Ablauf ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--steps-gap);
  margin-top: var(--space-40);
}

.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--circle);
  height: var(--circle);
  margin: 0 auto;
  border-radius: var(--radius-circle);
  background: var(--on-dark);
  color: var(--dark);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.step h3 {
  margin-top: var(--space-16);
  font-size: var(--fs-step-h);
  font-weight: 700;
  line-height: 1.3;
}

.step p {
  margin-top: var(--space-8);
  font-size: var(--fs-step);
  line-height: 1.65;
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Über mich ---------- */
.about__text {
  max-width: var(--w-about);
  margin: 0 auto;
  color: var(--text-strong);
  font-size: var(--fs-about);
  line-height: 1.7;
}

.about__note {
  margin-top: var(--space-24);
  color: var(--muted-light);
  font-size: var(--fs-small);
  line-height: 1.6;
}

/* ---------- Kontakt ---------- */
.contact .container {
  max-width: var(--w-hero);
}

.contact .buttons {
  margin-top: var(--space-40);
}

/* ---------- Fußzeile ---------- */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--text-strong);
  color: var(--muted-dark);
  font-size: var(--fs-small);
  line-height: 1.6;
  text-align: center;
  padding: var(--space-24) var(--side-x);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--w-content);
  margin: 0 auto;
}

.footer p {
  display: flex;
  align-items: center;
  min-height: var(--tap);
}

.footer nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--muted-dark);
  text-decoration: underline;
}

.footer a:focus-visible {
  outline-color: var(--on-dark);
}

@media (min-width: 720px) {
  .footer__inner {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-32);
  }
}

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.page-header {
  background: var(--light);
  padding: var(--space-24) var(--side-x);
}

.page-header__inner,
.legal {
  max-width: var(--w-legal);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--dark);
  font-size: var(--fs-brand);
  font-weight: 700;
  font-variation-settings: 'wdth' 75;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-decoration: none;
}

.legal-main {
  background: var(--light);
  padding: var(--space-24) var(--side-x) var(--section-y);
}

.legal {
  color: var(--muted-light);
  text-align: left;
}

.legal h1 {
  color: var(--dark);
  font-size: var(--fs-h2);
  line-height: 1.05;
}

.legal h2 {
  margin-top: var(--space-32);
  color: var(--dark);
  font-size: var(--fs-step-h);
  line-height: 1.3;
}

.legal p {
  margin-top: var(--space-16);
}

.legal h2 + p {
  margin-top: var(--space-8);
}

.legal h1 + p {
  margin-top: var(--space-24);
}

.legal a {
  color: inherit;
}
