/* ============================================================
   CAN AKTIV – „Mit uns geht die Sonne auf."
   Design-System: Sonnenlauf (Aufgang im Hero, Untergang im Footer)
   ============================================================ */

/* ---------- Schriften (selbst gehostet, DSGVO-sicher) ----------
   Die .woff2-Dateien in /fonts/ ablegen – siehe fonts/LIES-MICH.txt.
   Bis dahin greifen hochwertige System-Schriften als Fallback. */
@font-face {
  font-family: "Young Serif";
  src: local("Young Serif"), url("fonts/young-serif.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: local("Atkinson Hyperlegible"), url("fonts/atkinson.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: local("Atkinson Hyperlegible Bold"), url("fonts/atkinson-bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Farb- & Typo-Token ---------- */
:root {
  --sonne:        #EE9F1E;   /* Sonnengold – Aktionen, Akzente */
  --sonne-dunkel: #B8730A;   /* Hover / Text auf hellem Gold */
  --sonne-hell:   #FFE3AE;   /* zarte Flächen */
  --morgen:       #FFF2D9;   /* Morgenlicht – Kartenflächen */
  --himmel:       #33688F;   /* ruhiges Himmelblau – Links, Sekundäres */
  --himmel-hell:  #E9F2F8;
  --tinte:        #33261A;   /* warmes Dunkelbraun statt Schwarz */
  --tinte-soft:   #63523F;
  --papier:       #FFFBF2;   /* sonniges Weiß */
  --weiss:        #FFFFFF;
  --abend:        #271E12;   /* Footer – Abendhimmel */
  --linie:        #ECDFC6;

  --schrift-display: "Young Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --schrift-text: "Atkinson Hyperlegible", "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --schatten: 0 10px 30px -12px rgba(51, 38, 26, .22);
  --breite: 1120px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--schrift-text);
  font-size: 1.1875rem;            /* 19 px – gut lesbar für alle Altersgruppen */
  line-height: 1.65;
  color: var(--tinte);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--himmel); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--sonne-dunkel); }
:focus-visible { outline: 3px solid var(--himmel); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--schrift-display); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; font-family: var(--schrift-text); font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.3em; }
li { margin-bottom: .45em; }
.eng { max-width: 46rem; }

.wrap { max-width: var(--breite); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--tinte); color: #fff; padding: .7em 1.2em; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* Eyebrow: kleines Sonnen-Etikett über Überschriften */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sonne-dunkel); margin-bottom: .9rem;
}
.eyebrow::before {
  content: ""; width: 14px; height: 8px; flex: none;
  background: radial-gradient(circle at 50% 100%, var(--sonne) 0 6px, transparent 6.5px);
  border-bottom: 2px solid var(--tinte);
}
.eyebrow--blau { color: var(--himmel); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-weight: 700; font-size: 1.05rem; text-decoration: none;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--sonne { background: var(--sonne); color: var(--tinte); }
.btn--sonne:hover { background: #F7B23B; color: var(--tinte); }
.btn--kontur { border-color: var(--tinte); color: var(--tinte); background: transparent; }
.btn--kontur:hover { background: var(--tinte); color: var(--papier); }
.btn--hell { background: var(--papier); color: var(--tinte); }
.btn--hell:hover { background: #fff; color: var(--tinte); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 251, 242, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}
.header__innen {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 76px;
}
.marke {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--schrift-display); font-size: 1.45rem; color: var(--tinte);
  text-decoration: none; margin-right: auto;
}
.marke svg { width: 40px; height: 40px; flex: none; }
.marke small {
  display: block; font-family: var(--schrift-text); font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--tinte-soft);
}

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  text-decoration: none; color: var(--tinte); font-weight: 700; font-size: 1rem;
  padding: .55em .8em; border-radius: 999px;
}
.nav a:hover { background: var(--morgen); color: var(--tinte); }
.nav a[aria-current="page"] { background: var(--sonne-hell); }
.header__tel { margin-left: .5rem; }
.nav-toggle { display: none; }

@media (max-width: 940px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .5em;
    background: none; border: 2px solid var(--tinte); border-radius: 999px;
    font: inherit; font-weight: 700; color: var(--tinte);
    padding: .5em 1em; cursor: pointer;
  }
  .header__tel { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .3rem;
    background: var(--papier); border-bottom: 1px solid var(--linie);
    padding: 1rem clamp(1.1rem, 4vw, 2rem) 1.4rem;
    display: none; box-shadow: var(--schatten);
  }
  .nav.offen { display: flex; }
  .nav a { font-size: 1.15rem; padding: .8em 1em; }
}

/* Mobile Anruf-Leiste */
.anrufleiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; align-items: center; justify-content: center; gap: .6em;
  background: var(--sonne); color: var(--tinte);
  font-weight: 700; font-size: 1.1rem; text-decoration: none;
  padding: .95em 1em calc(.95em + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(51,38,26,.18);
}
.anrufleiste svg { width: 1.2em; height: 1.2em; }
@media (max-width: 940px) {
  .anrufleiste { display: flex; }
  body { padding-bottom: 4.2rem; }
}

/* ---------- Hero mit Sonnenaufgang ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #FFEECC 0%, #FFF7E4 46%, var(--papier) 100%); }
.hero__innen {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero h1 { margin-bottom: .35em; }
.hero .unterzeile { font-size: 1.25rem; color: var(--tinte-soft); max-width: 34rem; }
.hero__aktionen { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero__hinweis { margin-top: 1.1rem; font-size: .98rem; color: var(--tinte-soft); }
.hero__hinweis strong { color: var(--tinte); }

.sonnenbild { position: relative; }
.sonnenbild svg { width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .sonne-kreis { animation: aufgehen 2.6s cubic-bezier(.25,.7,.3,1) both; }
  .sonnen-strahl { animation: strahlen 2.8s ease .9s both; transform-origin: center; opacity: 0; }
  @keyframes aufgehen { from { transform: translateY(90px); } to { transform: translateY(0); } }
  @keyframes strahlen { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
}
@media (max-width: 860px) {
  .hero__innen { grid-template-columns: 1fr; }
  .sonnenbild { order: -1; max-width: 420px; margin-inline: auto; }
}

/* Vertrauens-Leiste */
.vertrauen { border-block: 1px solid var(--linie); background: var(--weiss); }
.vertrauen ul {
  list-style: none; margin: 0; padding: 1.1rem 0;
  display: flex; flex-wrap: wrap; gap: .6rem 2.2rem; justify-content: center;
}
.vertrauen li { display: flex; align-items: center; gap: .55em; font-weight: 700; font-size: 1rem; margin: 0; }
.vertrauen svg { width: 1.25em; height: 1.25em; color: var(--sonne-dunkel); flex: none; }

/* ---------- Sektionen ---------- */
.sektion { padding-block: clamp(3rem, 7vw, 5.5rem); }
.sektion--morgen { background: linear-gradient(180deg, var(--papier), var(--morgen)); }
.sektion--weiss { background: var(--weiss); border-block: 1px solid var(--linie); }
.sektion__kopf { max-width: 44rem; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }

/* Leistungs-Karten */
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.karte {
  position: relative; background: var(--weiss); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 1.5rem 1.4rem 1.3rem;
  text-decoration: none; color: var(--tinte); display: flex; flex-direction: column; gap: .45rem;
  transition: transform .18s ease, box-shadow .18s ease;
  overflow: hidden;
}
.karte::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--sonne), var(--sonne-hell));
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.karte:hover { transform: translateY(-4px); box-shadow: var(--schatten); color: var(--tinte); }
.karte:hover::before { transform: scaleX(1); }
.karte h3 { margin: 0; }
.karte p { margin: 0; color: var(--tinte-soft); font-size: 1rem; }
.karte .mehr { margin-top: auto; padding-top: .6rem; font-weight: 700; color: var(--sonne-dunkel); font-size: .98rem; }
.karte .ikon { width: 46px; height: 46px; color: var(--sonne-dunkel); margin-bottom: .35rem; }

/* Drei Schritte */
.schritte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; counter-reset: schritt; }
.schritte li {
  counter-increment: schritt; background: var(--weiss); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 1.6rem 1.4rem; margin: 0;
}
.schritte li::before {
  content: counter(schritt);
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: .9rem;
  background: radial-gradient(circle at 50% 115%, var(--sonne) 0 55%, var(--sonne-hell) 56% 100%);
  border-radius: 50%; font-family: var(--schrift-display); font-size: 1.5rem; color: var(--tinte);
}
.schritte h3 { margin-bottom: .3em; }
.schritte p { margin: 0; color: var(--tinte-soft); font-size: 1.02rem; }

/* Leitbild */
.leitbild { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.leitsatz { background: var(--weiss); border-left: 6px solid var(--sonne); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.3rem 1.4rem; }
.leitsatz h3 { color: var(--sonne-dunkel); margin-bottom: .25em; }
.leitsatz p { margin: 0; font-size: 1.02rem; }

/* Zitat */
.zitat {
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--schatten);
}
.zitat blockquote { margin: 0; font-family: var(--schrift-display); font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.4; }
.zitat figcaption { margin-top: 1rem; font-weight: 700; color: var(--tinte-soft); }

/* Qualität */
.qualitaet { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.siegel { background: var(--morgen); border-radius: var(--radius); padding: 1.6rem 1.4rem; }
.siegel .gross { font-family: var(--schrift-display); font-size: 2.3rem; color: var(--sonne-dunkel); line-height: 1; margin-bottom: .3rem; }
.siegel p { margin: 0; font-size: 1.02rem; }

/* Team */
.team-gruppe { margin-bottom: 2.6rem; }
.personen { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 1.2rem 0 0; }
.person { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.15rem; display: flex; gap: .9rem; align-items: flex-start; margin: 0; }
.person__avatar {
  flex: none; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.1rem; color: var(--tinte);
  background: radial-gradient(circle at 30% 25%, #FFE9BC, var(--sonne));
}
.person__avatar--blau { background: radial-gradient(circle at 30% 25%, #DDEBF5, #8FB6D1); }
.person h3 { margin: 0 0 .15em; font-size: 1.05rem; }
.person p { margin: 0; font-size: .92rem; color: var(--tinte-soft); }
.person .seit { display: inline-block; margin-top: .35em; font-size: .8rem; font-weight: 700; color: var(--sonne-dunkel); letter-spacing: .06em; }

/* CTA-Band (Abendrot) */
.cta-band { background: linear-gradient(160deg, #4A3417, #271E12 70%); color: #FFF6E4; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; left: 50%; bottom: -140px; transform: translateX(-50%);
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, #F7B23B 0 55%, rgba(247,178,59,0) 72%);
  opacity: .55; pointer-events: none;
}
.cta-band .wrap { position: relative; z-index: 1; padding-block: clamp(3rem, 6vw, 4.5rem); text-align: center; }
.cta-band h2 { color: #FFF6E4; }
.cta-band p { color: #EBD9B4; max-width: 38rem; margin-inline: auto; }
.cta-band .hero__aktionen { justify-content: center; }
.cta-band .tel-gross { font-family: var(--schrift-display); font-size: clamp(1.6rem, 4vw, 2.3rem); color: var(--sonne); text-decoration: none; display: inline-block; margin-top: 1rem; }
.cta-band .tel-gross:hover { color: #FFD37E; }

/* ---------- Footer (Abend) ---------- */
.footer { background: var(--abend); color: #D9CBB4; font-size: 1rem; }
.footer a { color: #F3E5C8; }
.footer a:hover { color: var(--sonne); }
.footer__innen { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; padding-block: 3rem 2rem; }
.footer h3 { color: #FFF6E4; font-size: 1.05rem; margin-bottom: .6em; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .5em; }
.footer__unten { border-top: 1px solid #3D3220; padding-block: 1.2rem 4rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .92rem; }
.footer .marke { color: #FFF6E4; }
.footer .marke small { color: #B7A88C; }

/* ---------- Innenseiten ---------- */
.seitenkopf { background: linear-gradient(180deg, #FFEECC, var(--papier)); padding-block: clamp(2.6rem, 6vw, 4rem) clamp(1.6rem, 4vw, 2.4rem); }
.seitenkopf p { max-width: 44rem; color: var(--tinte-soft); font-size: 1.15rem; }

.leistung { padding-block: clamp(2.4rem, 5vw, 3.6rem); border-bottom: 1px solid var(--linie); scroll-margin-top: 96px; }
.leistung:last-of-type { border-bottom: 0; }
.leistung__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
@media (max-width: 820px) { .leistung__grid { grid-template-columns: 1fr; } }
.leistung .ikon-gross { width: 64px; height: 64px; color: var(--sonne-dunkel); margin-bottom: .8rem; }
.infobox { background: var(--morgen); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.infobox h3 { margin-top: 0; }
.infobox ul { margin: 0; }
.hinweis { background: var(--himmel-hell); border-left: 6px solid var(--himmel); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.1rem 1.3rem; font-size: 1.02rem; }

/* Kontakt */
.kontakt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.kontakt-karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.6rem 1.5rem; }
.kontakt-karte--sonne { background: var(--morgen); border-color: var(--sonne-hell); }
.kontakt-karte .gross-link { font-family: var(--schrift-display); font-size: clamp(1.5rem, 3vw, 1.9rem); text-decoration: none; color: var(--tinte); display: inline-block; margin: .2rem 0 .4rem; }
.kontakt-karte .gross-link:hover { color: var(--sonne-dunkel); }
.kontakt-karte p { font-size: 1.02rem; }
.kontakt-karte .klein { color: var(--tinte-soft); font-size: .95rem; margin-bottom: 0; }

.formular { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.2rem); }
.formular label { display: block; font-weight: 700; margin: 1.1rem 0 .35rem; }
.formular input, .formular textarea, .formular select {
  width: 100%; font: inherit; color: var(--tinte);
  padding: .75em .9em; border: 2px solid var(--linie); border-radius: 10px; background: var(--papier);
}
.formular input:focus, .formular textarea:focus, .formular select:focus { border-color: var(--sonne); outline: none; }
.formular .btn { margin-top: 1.4rem; }
.formular .klein { font-size: .92rem; color: var(--tinte-soft); margin-top: .9rem; }

/* Rechtstexte */
.rechtstext h2 { font-size: 1.5rem; margin-top: 2.2em; }
.rechtstext h3 { margin-top: 1.6em; }
.rechtstext { padding-block: clamp(2rem, 5vw, 3.5rem); }

/* Karriere-Listen */
.zweispaltig { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.haken-liste { list-style: none; padding: 0; }
.haken-liste li { padding-left: 1.9em; position: relative; }
.haken-liste li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 1.15em; height: 1.15em;
  background: var(--sonne); border-radius: 50%;
  clip-path: none;
}
.haken-liste li::after {
  content: ""; position: absolute; left: .28em; top: .68em; width: .6em; height: .32em;
  border-left: 3px solid var(--tinte); border-bottom: 3px solid var(--tinte); transform: rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .karte { transition: none; }
}
