/* ==========================================================================
   mathebegreifen.ch — Samira Steck, Mathematik-Lernbegleitung Basel
   Schriften lokal eingebunden (kein Google-CDN, DSGVO-konform)
   ========================================================================== */

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('../fonts/raleway-v37-latin-200.woff2') format('woff2');
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/raleway-v37-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/raleway-v37-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/raleway-v37-latin-600.woff2') format('woff2');
}

/* --------------------------------------------------------------------------
   Farben & Grundwerte
   -------------------------------------------------------------------------- */

:root {
  --teal:        #307B91;
  --teal-hell:   #6FB2C0;
  --teal-blass:  #EAF3F5;
  --dunkelblau:  #265074;
  --schiefer:    #494951;
  --schiefer-2:  #6B747E;
  --linie:       #DDE4E7;
  --papier:      #FFFFFF;
  --papier-2:    #F7F9FA;

  /* Faden-Akzente */
  --f01: #D97B29;
  --f02: #6E9B57;
  --f03: #4A7FA8;
  --f04: #7C6394;
  --f05: #B44A44;

  --breite: 1080px;
  --schmal: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--schiefer);
  font-family: 'Raleway', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--dunkelblau); text-decoration: underline; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--dunkelblau);
  outline-offset: 3px;
  border-radius: 2px;
}

.inhalt {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 28px;
}

.schmal { max-width: var(--schmal); }

/* --------------------------------------------------------------------------
   Typografie
   -------------------------------------------------------------------------- */

h1, h2, h3 {
  font-weight: 200;
  color: var(--teal);
  line-height: 1.25;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); }
h3 {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--dunkelblau);
  letter-spacing: 0.02em;
}

p { margin: 0 0 1.2em; }

.augbraue {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-hell);
  margin: 0 0 0.9em;
}

.vorspann {
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--dunkelblau);
  font-weight: 300;
}

.hinweis {
  font-size: 0.86rem;
  color: var(--schiefer-2);
}

/* --------------------------------------------------------------------------
   Kopfbereich
   -------------------------------------------------------------------------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}

.kopf .inhalt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  flex-wrap: wrap;
}

.wortmarke {
  height: auto;
  width: 260px;
  max-width: 62vw;
  display: block;
}

.wortmarke-fuss {
  width: 210px;
  margin-bottom: 4px;
}

.navigation {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.navigation a {
  font-size: 0.92rem;
  color: var(--schiefer);
  letter-spacing: 0.03em;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.navigation a:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Abschnitte
   -------------------------------------------------------------------------- */

.block { padding: 84px 0; }
.block-eng { padding: 60px 0; }
.block-getoent { background: var(--papier-2); }
.block-teal { background: var(--teal-blass); }

.trennlinie {
  border: 0;
  border-top: 1px solid var(--linie);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Titelbereich
   -------------------------------------------------------------------------- */

.titelbereich {
  padding: 86px 0 76px;
  background: linear-gradient(180deg, var(--teal-blass) 0%, #FFFFFF 100%);
}

.titel-raster {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.titelbereich h1 { margin-bottom: 0.5em; }

.titel-bild {
  border-radius: 3px;
  box-shadow: 0 18px 44px rgba(38, 80, 116, 0.16);
}

.knopf-reihe {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.knopf {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  padding: 13px 30px;
  border-radius: 2px;
  font-size: 0.94rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: background 0.2s ease;
}

.knopf:hover {
  background: var(--dunkelblau);
  color: #fff;
  text-decoration: none;
}

.knopf-leer {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--teal);
}

.knopf-leer:hover {
  background: var(--teal);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Haltung — die drei Werte (Faden-Motiv)
   -------------------------------------------------------------------------- */

.werte {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  margin-top: 48px;
}

.wert {
  padding-top: 22px;
  border-top: 3px solid var(--linie);
}

.wert:nth-child(1) { border-top-color: var(--f03); }
.wert:nth-child(2) { border-top-color: var(--f02); }
.wert:nth-child(3) { border-top-color: var(--f01); }

.wert h3 { margin-bottom: 0.5em; }
.wert p { margin-bottom: 0; font-size: 0.97rem; }

/* --------------------------------------------------------------------------
   Ablauf einer Stunde
   -------------------------------------------------------------------------- */

.ablauf {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  max-width: var(--schmal);
}

.ablauf li {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--linie);
}

.ablauf li:last-child { border-bottom: 0; }

.ablauf-marke {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  padding-top: 5px;
}

.ablauf p { margin: 0; }

/* --------------------------------------------------------------------------
   Material-Galerie
   -------------------------------------------------------------------------- */

.galerie {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 46px;
}

.galerie figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 3px;
  overflow: hidden;
}

.galerie img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.galerie figcaption {
  padding: 16px 20px 20px;
  font-size: 0.9rem;
  color: var(--schiefer-2);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Stimme / Rezension
   -------------------------------------------------------------------------- */

.stimme {
  max-width: var(--schmal);
  margin: 0 auto;
  text-align: center;
}

.stimme blockquote {
  margin: 0 0 22px;
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 200;
  line-height: 1.6;
  color: var(--dunkelblau);
}

.sterne {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-bottom: 20px;
}

.sterne svg {
  width: 15px;
  height: 15px;
  fill: #F5B301;
}

.stimme cite {
  font-style: normal;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

/* --------------------------------------------------------------------------
   Preise
   -------------------------------------------------------------------------- */

.preise {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 46px;
  align-items: stretch;
}

.preis {
  position: relative;
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.preis-hervor {
  border-color: var(--dunkelblau);
  box-shadow: 0 12px 34px rgba(38, 80, 116, 0.16);
}

.preis-kopf {
  background: var(--teal);
  color: #fff;
  font-size: 1.22rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  padding: 20px 24px;
}

.preis-kopf-dunkel {
  background: var(--dunkelblau);
  font-weight: 400;
}

.preis-fahne {
  position: absolute;
  top: 12px;
  right: -34px;
  transform: rotate(38deg);
  background: var(--f01);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 40px;
  z-index: 2;
}

.preis-koerper {
  background: var(--teal-blass);
  padding: 26px 24px;
}

.preis-betrag {
  font-size: 1.9rem;
  font-weight: 300;
  color: var(--dunkelblau);
  line-height: 1.2;
}

.preis-betrag-aktion { color: var(--f05); }

.preis-betrag span {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--schiefer-2);
  letter-spacing: 0.01em;
}

.preis-detail {
  font-size: 0.93rem;
  color: var(--schiefer-2);
  margin: 10px 0 0;
  line-height: 1.55;
}

.preis-fuss-karte {
  padding: 26px 24px 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
}

.preis-ersparnis {
  font-size: 1.24rem;
  font-weight: 400;
  color: var(--f02);
  margin: 0 0 14px;
}

.preis-ersparnis-neutral {
  color: var(--schiefer);
  font-weight: 300;
}

.preis-zeile {
  margin: 0;
  font-size: 0.96rem;
  color: var(--schiefer-2);
}

.preis-zeile strong {
  font-weight: 600;
  color: var(--schiefer);
}

.preis-raten {
  margin-top: 8px;
  font-size: 0.92rem;
}

.preis-raten strong { color: var(--f05); }

.preis-fuss {
  margin-top: 40px;
  max-width: var(--schmal);
  font-size: 0.94rem;
  color: var(--schiefer-2);
}

/* --------------------------------------------------------------------------
   Über mich
   -------------------------------------------------------------------------- */

.ueber-raster {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.portraet {
  border-radius: 3px;
  box-shadow: 0 14px 36px rgba(38, 80, 116, 0.15);
}

.qualifikationen {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  font-size: 0.96rem;
}

.qualifikationen li {
  padding: 10px 0 10px 20px;
  border-left: 2px solid var(--linie);
  margin-bottom: 4px;
}

.qualifikationen li:nth-child(1) { border-left-color: var(--f04); }
.qualifikationen li:nth-child(2) { border-left-color: var(--f03); }
.qualifikationen li:nth-child(3) { border-left-color: var(--f02); }
.qualifikationen li:nth-child(4) { border-left-color: var(--f01); }

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */

.kontakt-karte {
  max-width: var(--schmal);
  margin: 40px auto 0;
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 3px;
  padding: 40px;
  text-align: center;
}

.kontakt-zeile {
  font-size: 1.12rem;
  margin: 10px 0;
}

/* --------------------------------------------------------------------------
   Fussbereich
   -------------------------------------------------------------------------- */

.fuss {
  background: var(--dunkelblau);
  color: #D6E1EB;
  padding: 56px 0 30px;
  margin-top: 0;
  font-size: 0.93rem;
}

.fuss a { color: #FFFFFF; }
.fuss a:hover { color: var(--teal-hell); }

.fuss-oben {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.16);
}

.fuss p { margin: 0 0 6px; }

.fuss-kontakt-titel {
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.74rem;
  margin-bottom: 12px;
}

.fuss-unten {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.72);
}

.fuss-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Rechtsseiten
   -------------------------------------------------------------------------- */

.rechtsseite {
  padding: 70px 28px 90px;
  max-width: var(--schmal);
}

.rechtsseite h2 {
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--dunkelblau);
  margin-top: 2.2em;
}

.rechtsseite h2:first-of-type { margin-top: 1.4em; }

/* --------------------------------------------------------------------------
   Mobil
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .titel-raster,
  .ueber-raster {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .titel-bild { max-width: 460px; }
  .werte,
  .galerie,
  .preise,
  .fuss-oben {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .block { padding: 60px 0; }
  .titelbereich { padding: 56px 0 50px; }
  .inhalt { padding: 0 20px; }
  .kopf .inhalt { min-height: 68px; padding-top: 12px; padding-bottom: 12px; }
  .wortmarke { width: 210px; }
  .navigation { gap: 18px; }
  .ablauf li { grid-template-columns: 1fr; gap: 8px; }
  .kontakt-karte { padding: 30px 24px; }
  .preis-koerper, .preis-fuss-karte { padding-left: 20px; padding-right: 20px; }
}
