/* Virage – häusliche Pflege und Beratung
   Firmenfarben: Gelb #F7C61B und Rot #E90505, dazu ein tiefes Anthrazit aus der
   Logokontur. Keine externen Anfragen, keine Schriften von fremden Servern,
   keine Cookies. */

:root {
  color-scheme: light dark;

  --grund:        #FAFAF8;
  --flaeche:      #FFFFFF;
  --flaeche-tief: #F2F1EC;
  --anker:        #16181B;   /* Anthrazit aus der Logokontur */
  --schrift:      #16181B;
  --schrift-matt: #4A4E55;
  --schrift-zart: #797E86;
  --linie:        #E3E2DC;
  --linie-stark:  #C4C3BC;

  --gelb:         #F7C61B;   /* Hausfarbe: Bogen, Markierungen, Akzentflächen */
  --gelb-tief:    #DCA80D;
  --gelb-wasch:   #FDF3D8;
  --auf-gelb:     #16181B;

  --rot:          #C60510;   /* für Text und Linien – kontraststark genug */
  --rot-voll:     #E90505;   /* Logorot für Flächen */
  --rot-wasch:    #FDECEC;
  --auf-rot:      #FFFFFF;

  --auf-dunkel:   #FAFAF8;
  --marke:        #C60510;   /* Schriftzug im Logo */

  --schatten:     0 1px 2px rgba(22,24,27,.06), 0 12px 32px -20px rgba(22,24,27,.4);
  --radius:       6px;
  --spalte:       min(72rem, 100% - 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund:        #141519;
    --flaeche:      #1C1E23;
    --flaeche-tief: #0F1013;
    --anker:        #0F1013;
    --schrift:      #ECEDEA;
    --schrift-matt: #A9ADB4;
    --schrift-zart: #787D85;
    --linie:        #2B2E34;
    --linie-stark:  #3C4048;

    --gelb:         #F7C61B;
    --gelb-tief:    #DCA80D;
    --gelb-wasch:   #2A2205;
    --auf-gelb:     #16181B;

    --rot:          #FF8A84;
    --rot-voll:     #E01B1B;
    --rot-wasch:    #2B1414;
    --auf-rot:      #FFFFFF;

    --auf-dunkel:   #ECEDEA;
    --marke:        #FFFFFF;   /* auf dunklem Grund traegt der gelbe Bogen die Marke */

    --schatten:     0 1px 2px rgba(0,0,0,.45), 0 12px 32px -20px rgba(0,0,0,.95);
  }
}

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

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

body {
  margin: 0;
  background: var(--grund);
  color: var(--schrift);
  /* Systemschriften: nichts wird nachgeladen, nichts verlässt den Browser */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;          /* 18px – bewusst groß, die Zielgruppe liest hier */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Lange Komposita wie 'Auftragsverarbeitungsvertrag' sprengen sonst
     auf schmalen Bildschirmen die Spalte. */
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ---------- Sprungmarke ---------- */

.sprung {
  position: absolute; left: -9999px;
  background: var(--anker); color: var(--auf-dunkel);
  padding: .8rem 1.2rem; border-radius: 0 0 var(--radius) 0;
  z-index: 100; font-weight: 600;
}
.sprung:focus { left: 0; top: 0; }

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

h1, h2, h3 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  font-weight: 600; line-height: 1.15; letter-spacing: -.012em;
  text-wrap: balance; margin: 0; color: var(--schrift);
}

h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.35rem); }

p, li { text-wrap: pretty; }
p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--rot); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--anker); text-decoration-color: var(--gelb-tief); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--rot-voll); outline-offset: 3px; border-radius: 3px;
}

strong { font-weight: 650; }

.lead { font-size: 1.22rem; line-height: 1.6; color: var(--schrift-matt); max-width: 40ch; }
.matt { color: var(--schrift-matt); }
.klein { font-size: .95rem; }

.augenbraue {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--rot); margin-bottom: .7rem;
}

/* Gelbe Markierung hinter wichtigen Wörtern – greift das Logo auf */
.gelb-markiert {
  background: linear-gradient(transparent 62%, var(--gelb) 62%, var(--gelb) 94%, transparent 94%);
  padding-inline: .1em;
}

/* ---------- Raster ---------- */

.bahn { width: var(--spalte); margin-inline: auto; }
.abschnitt { padding-block: clamp(3rem, 7vw, 5.5rem); }
.abschnitt--tief { background: var(--flaeche-tief); }

/* Akzentabschnitt: helle Hervorhebung in Hausgelb statt schwarzer Flaeche */
.abschnitt--akzent {
  background: var(--gelb-wasch);
  border-block: 1px solid var(--gelb-tief);
}

.stapel { display: flex; flex-direction: column; gap: 1.2rem; }
/* Zwischenueberschrift innerhalb eines Abschnitts */
.zwischentitel { margin-top: .8rem; }
.messe { max-width: 62ch; }

/* ---------- Kopf ---------- */

.kopf {
  position: sticky; top: 0; z-index: 50;
  background: var(--flaeche);   /* reines Weiss: das Logo-JPEG hat weissen Rand */
  border-bottom: 1px solid var(--linie);
}
/* Gelber Streifen als Anklang an den Bogen im Logo */
.kopf::after {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, var(--gelb) 0%, var(--gelb) 62%, var(--rot-voll) 62%, var(--rot-voll) 100%);
}

.kopf__innen {
  width: var(--spalte); margin-inline: auto;
  display: flex; align-items: center; gap: 1rem; min-height: 4.6rem;
}

.marke { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.marke:hover { text-decoration: none; }
.marke img {
  display: block; height: 4.4rem; width: auto; max-width: 17rem;
  object-fit: contain; flex: none;
}
@media (max-width: 30rem) { .marke img { height: 3.4rem; max-width: 13rem; } }
.navi { margin-left: auto; display: flex; align-items: center; gap: .3rem; }
.navi a {
  padding: .6rem .8rem; border-radius: var(--radius);
  text-decoration: none; color: var(--schrift-matt);
  font-size: 1rem; font-weight: 500;
}
.navi a:hover { background: var(--gelb-wasch); color: var(--anker); }
.navi a[aria-current="page"] {
  color: var(--anker); font-weight: 650;
  box-shadow: inset 0 -3px 0 var(--gelb);
}

/* Die Klasse muss zusammen mit .navi a stehen, sonst gewinnt deren Farbe
   und die Nummer wird rot auf rot. */
.navi a.ruf, .ruf {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--rot-voll); color: var(--auf-rot);
  padding: .7rem 1.15rem; border-radius: var(--radius);
  text-decoration: none; font-weight: 650; white-space: nowrap;
  font-variant-numeric: tabular-nums;
  box-shadow: none;
}
.navi a.ruf:hover, .ruf:hover { background: var(--anker); color: var(--auf-rot); }

.navi__schalter {
  display: none; margin-left: auto;
  background: var(--flaeche); border: 2px solid var(--anker);
  border-radius: var(--radius); padding: .55rem .9rem;
  font: inherit; font-size: 1rem; font-weight: 650; color: var(--schrift); cursor: pointer;
}

@media (max-width: 62rem) {
  .navi__schalter { display: block; }
  .navi {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--flaeche); border-bottom: 3px solid var(--gelb);
    padding: .8rem 1.25rem 1.2rem; box-shadow: var(--schatten);
  }
  .navi[data-offen="ja"] { display: flex; }
  .navi a { padding: .85rem .8rem; font-size: 1.05rem; }
  .ruf { justify-content: center; margin-top: .5rem; }
}

/* ---------- Bühne ---------- */

.buehne { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem); position: relative; }
.buehne__raster { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 60rem) { .buehne__raster { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); } }

.buehne h1 { margin-bottom: 1.2rem; }
.buehne .lead { max-width: 46ch; margin-bottom: 1.8rem; }

/* Der Bogen aus dem Logo als Seitenmotiv */
.bogen { display: block; width: 100%; height: auto; margin-bottom: 1.5rem; max-width: 22rem; }

.knopfreihe { display: flex; flex-wrap: wrap; gap: .8rem; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem; border-radius: var(--radius);
  font: inherit; font-size: 1.05rem; font-weight: 650;
  text-decoration: none; cursor: pointer; border: 2px solid transparent; min-height: 3.25rem;
}
.knopf--voll { background: var(--rot-voll); color: var(--auf-rot); border-color: var(--rot-voll); }
.knopf--voll:hover { background: var(--anker); border-color: var(--anker); color: var(--auf-rot); }
.knopf--gelb { background: var(--gelb); color: var(--auf-gelb); border-color: var(--gelb); }
.knopf--gelb:hover { background: var(--gelb-tief); border-color: var(--gelb-tief); color: var(--auf-gelb); }
.knopf--rand { background: transparent; color: var(--schrift); border-color: var(--linie-stark); }
.knopf--rand:hover { border-color: var(--anker); background: var(--gelb-wasch); color: var(--anker); }

.karte-kontakt {
  background: var(--flaeche); border: 1px solid var(--linie);
  border-top: 4px solid var(--gelb);
  border-radius: var(--radius); padding: 1.6rem 1.7rem 1.8rem; box-shadow: var(--schatten);
}
.karte-kontakt dl { margin: 0; display: grid; gap: .9rem; }
.karte-kontakt dt {
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--schrift-zart); font-weight: 700;
}
.karte-kontakt dd { margin: .15rem 0 0; font-size: 1.1rem; }
.karte-kontakt dd a { font-weight: 650; text-decoration: none;
  display: inline-block; padding-block: .25rem; }
.karte-kontakt dd a:hover { text-decoration: underline; }

/* ---------- Versprechen: die drei aus dem Logo ---------- */

.drei { display: grid; gap: 1.2rem; }
@media (min-width: 48rem) { .drei { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.versprechen {
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 1.5rem 1.6rem 1.7rem;
  display: flex; flex-direction: column; gap: .6rem; position: relative;
}
.versprechen::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: var(--gelb); border-radius: var(--radius) 0 0 var(--radius);
}
.versprechen h3 { display: flex; align-items: baseline; gap: .5rem; }
.versprechen h3::before { content: "✚"; color: var(--rot-voll); font-size: .85em; }
.versprechen p { color: var(--schrift-matt); font-size: 1.02rem; margin: 0; }

/* ---------- Leistungen ---------- */

.leistungen { display: grid; gap: 1.2rem; }
@media (min-width: 44rem) { .leistungen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.leistung {
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 1.5rem 1.6rem 1.7rem;
  display: flex; flex-direction: column; gap: .8rem;
}
.leistung h3 { border-bottom: 3px solid var(--gelb); padding-bottom: .5rem; }
.leistung ul { margin: 0; padding-left: 1.15rem; display: grid; gap: .35rem; color: var(--schrift-matt); }
.leistung li::marker { color: var(--rot-voll); }

/* ---------- Erreichbarkeit ---------- */

.zeiten {
  display: grid; gap: 1px; background: var(--linie);
  border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 34rem) { .zeiten { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }

.zeit {
  background: var(--flaeche); padding: 1.3rem 1.5rem 1.4rem;
  display: flex; flex-direction: column; gap: .35rem;
  border-top: 4px solid var(--gelb);
}
.zeit__was {
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--schrift-zart); font-weight: 700;
}
.zeit__wann {
  font-family: Georgia, serif; font-size: 1.5rem; font-weight: 600;
  font-variant-numeric: tabular-nums; line-height: 1.2;
}
.zeit__dazu { font-size: .95rem; color: var(--schrift-matt); }

/* ---------- Personen ---------- */

.personen { display: grid; gap: 1.1rem; }
@media (min-width: 44rem) { .personen { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); } }

.person {
  background: var(--flaeche); border: 1px solid var(--linie);
  border-top: 4px solid var(--gelb); border-radius: var(--radius);
  padding: 1.3rem 1.4rem 1.4rem;
}
.person__name { font-weight: 650; font-size: 1.08rem; }
.person__rolle { color: var(--schrift-matt); font-size: .98rem; }

/* ---------- Hinweiskasten ---------- */

.kasten {
  background: var(--gelb-wasch);
  border: 1px solid var(--gelb-tief);
  border-radius: var(--radius); padding: 1.4rem 1.6rem;
}
.kasten h3 { margin-bottom: .5rem; }

/* ---------- Formular ---------- */

.formular { display: grid; gap: 1.1rem; max-width: 34rem; }
.feld { display: flex; flex-direction: column; gap: .4rem; }
.feld label { font-weight: 600; font-size: 1rem; }
.feld .hinweis { font-size: .9rem; color: var(--schrift-zart); font-weight: 400; }

input, textarea, select {
  font: inherit; font-size: 1.05rem; padding: .8rem .9rem;
  border: 2px solid var(--linie-stark); border-radius: var(--radius);
  background: var(--flaeche); color: var(--schrift); width: 100%;
}
input:focus, textarea:focus { border-color: var(--anker); }
textarea { min-height: 9rem; resize: vertical; line-height: 1.55; }

.honigtopf { position: absolute; left: -9999px; }

.zustimmung { display: flex; gap: .7rem; align-items: flex-start; font-size: .98rem; }
.zustimmung input { width: 1.6rem; height: 1.6rem; flex: none; margin-top: .1rem; }

/* ---------- Fuß ---------- */

/* Eigener Ton, damit der Fuss sich vom grauen Abschnitt darueber absetzt */
.fuss { background: var(--flaeche); color: var(--schrift); padding-block: 3rem 2rem; }
.fuss::before {
  content: ""; display: block; height: 4px; margin-bottom: 3rem;
  background: linear-gradient(90deg, var(--gelb) 0%, var(--gelb) 62%, var(--rot-voll) 62%, var(--rot-voll) 100%);
}
.fuss a { color: var(--rot); }
.fuss a:hover { color: var(--anker); }
.fuss__raster { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .fuss__raster { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr); } }
.fuss h3 { font-size: 1.05rem; margin-bottom: .7rem; color: var(--schrift); }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
/* Mindestens 24px hoch, sonst sind die Verweise am Finger zu klein */
.fuss ul a, .fuss p a { display: inline-block; padding-block: .3rem; }
.fuss p, .fuss li { color: var(--schrift-matt); font-size: 1rem; }
.fuss__unten {
  margin-top: 2.5rem; padding-top: 1.3rem;
  border-top: 1px solid var(--linie-stark);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; font-size: .92rem;
}

/* ---------- Fließtext-Seiten ---------- */

.text-seite { max-width: 62ch; }
.text-seite h2 { margin-top: 2.4rem; margin-bottom: .7rem; padding-bottom: .4rem; border-bottom: 3px solid var(--gelb); }
.text-seite h3 { margin-top: 1.6rem; margin-bottom: .4rem; }
.text-seite ul { padding-left: 1.3rem; display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.text-seite li::marker { color: var(--rot-voll); }
.text-seite dl { display: grid; gap: .3rem 1.5rem; margin-bottom: 1.2rem; }
@media (min-width: 34rem) { .text-seite dl { grid-template-columns: max-content minmax(0,1fr); } }
.text-seite dt { font-weight: 650; }
.text-seite dd { margin: 0; }

/* ---------- Druck ---------- */

@media print {
  .kopf, .navi, .knopfreihe, .fuss { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
}
