/* ==========================================================================
   Sammue Marketing — gemeinsames Stylesheet für alle Seiten
   Helle Farbwelt (Creme/Bronze/Gold), Schrift Inter lokal eingebunden.
   Die dunkle Fassung liegt unverändert unter vergleich-dunkel/.
   ========================================================================== */

/* --- Schriften, beide lokal eingebunden --- */

/* Inter für alle Texte (Variable Font: eine Datei deckt alle Stärken ab) */
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Libre Baskerville nur für die Wortmarke im Kopf und Fuß.
   Die freie Web-Variante der Mac-Schrift Baskerville — damit sieht das Logo
   auf Windows und Android genauso aus wie hier. */
@font-face {
  font-family: 'Libre Baskerville';
  src: url('fonts/baskerville-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url('fonts/baskerville-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Farb- und Maß-Werte: einmal definiert, überall genutzt --- */
:root {
  /* Helle Farbwelt. Die Namen beschreiben die AUFGABE, nicht die Farbe —
     so bleibt das Stylesheet verständlich, wenn sich die Werte ändern. */
  --flaeche:      #FAF7F0;   /* Grundfläche, warmes Creme */
  --flaeche-2:    #F1EBDE;   /* getönte Abschnitte im Wechsel */
  --flaeche-3:    #E9E1D0;   /* Hover-Flächen */
  --linie:        #DCD2BD;   /* Ränder und Trennlinien */

  --text-stark:   #14120E;   /* Überschriften (17,5:1) */
  --text:         #4A443A;   /* Fließtext (9,0:1) */
  --text-schwach: #6B6355;   /* Nebentext (5,6:1) */

  --gold:         #C9A84C;   /* Akzent für FLÄCHEN — Buttons, mit dunklem Text */
  --gold-dunkel:  #7A5D22;   /* Hover: Fläche wird dunkler, Text weiß */
  --bronze:       #7A5D22;   /* Akzent für TEXT und Linien (5,2:1 auch auf getönt) */

  --breite:       1180px;
  --radius:       14px;
  --kurve:        cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--flaeche);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* hyphens: auto — lange deutsche Wörter ("Datenschutzerklärung") werden auf
   schmalen Bildschirmen getrennt statt aus dem Bild zu laufen. Greift nur,
   wenn ein Wort sonst nicht passen würde. */
h1, h2, h3 { color: var(--text-stark); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.02em;
  overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 600; }
p  { margin: 0 0 1.1em; }

a { color: var(--bronze); text-decoration: none; }
a:hover { color: var(--gold-dunkel); }

:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 4px; }

.inhalt { width: min(100% - 2.5rem, var(--breite)); margin-inline: auto; }
.abschnitt { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.abschnitt--getoent { background: var(--flaeche-2); }
.mitte { text-align: center; }
.schmal { max-width: 760px; margin-inline: auto; }

.vorzeile {
  display: inline-block; margin-bottom: 1rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--bronze);
}
.lead { font-size: 1.12rem; color: var(--text); }
.klein { font-size: .92rem; color: var(--text-schwach); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .95rem 1.7rem; border-radius: 100px; border: 1px solid transparent;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn--gold { background: var(--gold); color: var(--text-stark); }
.btn--gold:hover { background: var(--gold-dunkel); color: #FFFFFF; transform: translateY(-2px); box-shadow: 0 10px 26px rgb(138 106 43 / .3); }
.btn--rand { border-color: var(--linie); color: var(--text-stark); }
.btn--rand:hover { border-color: var(--bronze); color: var(--bronze); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-reihe { display: flex; flex-wrap: wrap; gap: .9rem; }
.mitte .btn-reihe { justify-content: center; }

/* --- Kopfbereich --- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgb(250 247 240 / .9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linie);
  padding-block: 1.1rem;
  transition: padding-block .25s ease, box-shadow .25s ease;
}
.kopf.geschrumpft { padding-block: .55rem; box-shadow: 0 2px 20px rgb(20 18 14 / .09); }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
/* Die Wortmarke ist das Logo — Baskerville, nicht die Textschrift. */
.marke {
  font-family: 'Libre Baskerville', Baskerville, Georgia, serif;
  font-size: 1.35rem; font-weight: 700; color: var(--text-stark);
  letter-spacing: -0.01em; white-space: nowrap;
}
.marke span { color: var(--gold-dunkel); }

.menue { display: flex; align-items: center; gap: 1.6rem; }
/* :not(.btn) ist wichtig — sonst überschreibt diese Regel die Button-Textfarbe
   und der Kontakt-Button im Kopf wird unlesbar. */
.menue a:not(.btn) { color: var(--text); font-size: .95rem; font-weight: 500; }
.menue a:not(.btn):hover { color: var(--text-stark); }
.menue a.aktiv:not(.btn) { color: var(--bronze); }
.kopf .btn { padding: .65rem 1.25rem; font-size: .92rem; }

.burger {
  display: none; background: none; border: 0; cursor: pointer; padding: .5rem;
  width: 44px; height: 44px;
}
.burger span {
  display: block; width: 22px; height: 2px; background: var(--text-stark); margin: 4px auto;
  transition: transform .25s var(--kurve), opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 940px) {
  .burger { display: block; }
  .menue {
    position: fixed; inset: 64px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--flaeche-2); border-bottom: 1px solid var(--linie);
    padding: 1rem 1.25rem 1.5rem;
    display: none;
  }
  .menue.offen { display: flex; }
  .menue a { padding: .85rem 0; border-bottom: 1px solid var(--flaeche-3); font-size: 1.02rem; }
  .menue .btn { margin-top: 1rem; justify-content: center; }
}

/* --- Hero --- */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem); position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -40% 20% auto -10%; height: 520px;
  background: radial-gradient(circle, rgb(201 168 76 / .22), transparent 65%);
  pointer-events: none;
}
.hero .inhalt { position: relative; }
.hero h1 { max-width: 17ch; }
.hero .lead { max-width: 60ch; font-size: 1.2rem; }
.hero-hinweis { margin-top: 1.6rem; font-size: .92rem; color: var(--text-schwach); }

/* --- Hero mit hervorgehobenem Wort ---
   Ein Wort trägt die Aussage, statt dass die ganze Zeile gleich laut ist. */
.hero--wort h1 { max-width: 22ch; }
.hero--wort h1 em {
  display: block; margin-top: .1em;
  font-style: normal; font-weight: 800;
  font-size: clamp(2.4rem, 6.5vw, 4.6rem); line-height: 1.05;
  color: var(--bronze);
  letter-spacing: -0.035em;
}

/* --- Nummerierte Leistungskarten --- */
.nummer {
  display: block; margin-bottom: .6rem;
  font-size: .85rem; font-weight: 700; letter-spacing: .12em;
  color: var(--bronze); opacity: .75;
}

/* --- Über-mich-Block mit Foto --- */
.person { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.person-bild img {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--linie);
}
.person-text p:last-of-type { margin-bottom: 0; }
@media (max-width: 780px) {
  .person { grid-template-columns: 1fr; }
  .person-bild { max-width: 260px; }
}

/* --- Zusagen-Leiste --- */
.zusagen { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--linie); border-block: 1px solid var(--linie); }
.zusage { background: var(--flaeche); padding: 1.7rem 1.4rem; }
.zusage b { display: block; color: var(--bronze); font-size: 1.05rem; margin-bottom: .2rem; }
.zusage span { font-size: .93rem; color: var(--text-schwach); }

/* --- Karten --- */
.raster { display: grid; gap: 1.4rem; }
/* 420px als Mindestbreite sorgt dafür, dass es bei üblicher Fensterbreite
   wirklich bei zwei Spalten bleibt und nicht auf drei umbricht. */
.raster--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.raster--3 { grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); }

.karte {
  background: #FFFFFF; border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 1.9rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.karte:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 14px 34px rgb(20 18 14 / .1); }
.karte h3 { margin-bottom: .5rem; }
.karte p:last-child { margin-bottom: 0; }
.karte--gross { padding: 2.4rem; }
.karte-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: .8rem; font-weight: 600; font-size: .95rem; }
.karte-link::after { content: '→'; transition: transform .2s ease; }
.karte:hover .karte-link::after { transform: translateX(4px); }

/* --- Liste mit Haken --- */
.haken { list-style: none; padding: 0; margin: 0 0 1.2em; }
.haken li { position: relative; padding-left: 1.75rem; margin-bottom: .6rem; }
.haken li::before {
  content: '✓'; position: absolute; left: 0; top: -1px;
  color: var(--bronze); font-weight: 700;
}

/* --- Nummerierte Schritte --- */
.schritte { list-style: none; counter-reset: schritt; padding: 0; margin: 0; display: grid; gap: 1.3rem; }
.schritte li { counter-increment: schritt; position: relative; padding-left: 3.6rem; }
.schritte li::before {
  content: counter(schritt); position: absolute; left: 0; top: -2px;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid var(--bronze); color: var(--bronze);
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
}
.schritte h3 { margin-bottom: .25rem; }
.schritte p { margin-bottom: 0; }

/* --- Hervorgehobener Block --- */
.merksatz {
  border-left: 3px solid var(--bronze); padding: 1.2rem 0 1.2rem 1.5rem;
  margin: 2rem 0; color: var(--text-stark); font-size: 1.2rem; line-height: 1.55;
}

/* --- Häufige Fragen ---
   Bewusst offen dargestellt statt aufklappbar: Suchmaschinen und KI-Systeme
   sollen die Antworten direkt lesen können, ohne Klick. */
.faq { display: grid; gap: 1.6rem; margin-top: 2rem; }
.faq-eintrag { border-top: 1px solid var(--linie); padding-top: 1.5rem; }
.faq-eintrag h3 { color: var(--text-stark); margin-bottom: .5rem; }
.faq-eintrag p { margin-bottom: 0; }

/* --- Abschluss-Aufruf --- */
.aufruf { background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: var(--radius); padding: clamp(2.2rem, 5vw, 3.5rem); text-align: center; }
.aufruf h2 { margin-bottom: .4rem; }
.aufruf p { max-width: 54ch; margin-inline: auto; }

/* --- Formular --- */
.formular { display: grid; gap: 1.2rem; max-width: 640px; }
.feld { display: grid; gap: .45rem; }
.feld label { font-size: .93rem; font-weight: 600; color: var(--text-stark); }
.feld input, .feld textarea, .feld select {
  width: 100%; padding: .85rem 1rem;
  background: #FFFFFF; border: 1px solid var(--linie); border-radius: 10px;
  color: var(--text-stark); font: inherit; font-size: 1rem;
  transition: border-color .2s ease;
}
.feld input:focus, .feld textarea:focus, .feld select:focus { border-color: var(--bronze); outline: none; }
.feld textarea { min-height: 130px; resize: vertical; }
.feld-hinweis { font-size: .85rem; color: var(--text-schwach); }

.wahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .7rem; }
.wahl-option {
  display: flex; align-items: flex-start; gap: .7rem;
  padding: .9rem 1.1rem; background: var(--flaeche-2);
  border: 1px solid var(--linie); border-radius: 10px;
  cursor: pointer; transition: border-color .2s ease, background .2s ease;
}
.wahl-option:hover { border-color: var(--text-schwach); }
.wahl-option input { accent-color: var(--bronze); margin-top: .28rem; flex-shrink: 0; }
.wahl-option:has(input:checked) { border-color: var(--bronze); background: var(--flaeche-3); }
.wahl-option span { font-size: .96rem; color: var(--text-stark); }

.einwilligung { display: flex; align-items: flex-start; gap: .7rem; font-size: .92rem; color: var(--text); }
.einwilligung input { accent-color: var(--bronze); margin-top: .3rem; flex-shrink: 0; }

/* --- Rechtstexte (Impressum, Datenschutz) ---
   Lange Fließtexte: etwas kleiner, dafür klare Abstände zwischen den Abschnitten. */
.rechtstext { font-size: 16px; }
.rechtstext h1 { margin-bottom: 1.5rem; }
.rechtstext h2 {
  margin-top: 2.8rem; margin-bottom: .8rem;
  font-size: 1.35rem; padding-top: 1.5rem;
  border-top: 1px solid var(--linie);
}
.rechtstext h3 { margin-top: 1.8rem; margin-bottom: .5rem; font-size: 1.05rem; }
.rechtstext p, .rechtstext li { color: var(--text); }
.rechtstext ul { padding-left: 1.2rem; }
.rechtstext li { margin-bottom: .4rem; }
.rechtstext a { text-decoration: underline; text-underline-offset: 2px;
  overflow-wrap: anywhere; }  /* lange Adressen umbrechen statt überlaufen */
.rechtstext strong { color: var(--text-stark); }
/* Die Trennlinien aus dem Ursprungstext entfallen — die Abschnittsüberschriften
   bringen ihre eigene Linie mit, sonst stünden zwei übereinander. */
.rechtstext hr { display: none; }
.rechtstext address { font-style: normal; }

/* --- Fußbereich --- */
.fuss { background: var(--flaeche-2); border-top: 1px solid var(--linie); padding: 3.5rem 0 2rem; margin-top: 2rem; }
.fuss-raster { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.fuss h4 { color: var(--text-stark); font-size: .95rem; margin: 0 0 1rem; font-weight: 600; }
.fuss ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.fuss a { color: var(--text); font-size: .94rem; }
.fuss a:hover { color: var(--bronze); }
/* LinkedIn-Button im Fuß — einziger Social-Kanal, deshalb bewusst schlicht */
.sozial {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.2rem; padding: .55rem 1.1rem;
  border: 1px solid var(--linie); border-radius: 100px;
  font-size: .9rem; font-weight: 600; color: var(--text-stark);
  transition: border-color .2s ease, color .2s ease, transform .15s ease;
}
.sozial:hover { border-color: var(--bronze); color: var(--bronze); transform: translateY(-2px); }
.sozial svg { flex-shrink: 0; }

.fuss-unten {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--linie);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .87rem; color: var(--text-schwach);
}
@media (max-width: 760px) { .fuss-raster { grid-template-columns: 1fr; gap: 2rem; } }

/* ==========================================================================
   Animationen — nur transform/opacity, gestartet per IntersectionObserver
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.sichtbar {
  opacity: 1; transform: none;
  transition: opacity .6s var(--kurve), transform .6s var(--kurve);
  transition-delay: var(--verzug, 0ms);
}

@keyframes hero-rein { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js .hero h1          { animation: hero-rein .7s var(--kurve) both; }
.js .hero .lead       { animation: hero-rein .7s var(--kurve) .12s both; }
.js .hero .btn-reihe  { animation: hero-rein .7s var(--kurve) .24s both; }
.js .hero .hero-hinweis { animation: hero-rein .7s var(--kurve) .34s both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
