/* bonjour Tagespflege
   Firmenfarben: Gelb #F7C61B und Bordeaux #8E1637. Bewusst nur helles Erscheinungsbild —
   kein Dunkelmodus. Keine externen Anfragen, keine Cookies. */

:root {
  color-scheme: light;                /* auch Formularfelder bleiben hell */

  --grund:        #FCFAF6;
  --flaeche:      #FFFFFF;
  --flaeche-tief: #F4F0E7;
  --anker:        #221C16;            /* warmes Dunkelbraun-Schwarz */
  --schrift:      #221C16;
  --schrift-matt: #564E45;
  --schrift-zart: #8A8177;
  --linie:        #E7E0D4;
  --linie-stark:  #C9C0B1;

  --gelb:         #F7C61B;
  --gelb-tief:    #DCA80D;
  --gelb-wasch:   #FDF2D2;
  --auf-gelb:     #221C16;

  --rot:          #7A1230;            /* Bordeaux: Text und Linien */
  --rot-voll:     #8E1637;            /* Bordeaux: Flächen */
  --rot-wasch:    #F8EDF0;
  --auf-rot:      #FFFFFF;

  --auf-dunkel:   #FCFAF6;
  --marke:        #7A1230;

  --schatten:     0 1px 2px rgba(34,28,22,.06), 0 14px 34px -22px rgba(34,28,22,.4);
  --radius:       8px;
  --spalte:       min(72rem, 100% - 2.5rem);
}

*, *::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);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;                /* 18px – 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: 42ch; }
.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;
}

.spruch {
  font-family: Georgia, serif; font-style: italic;
  font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem);
  line-height: 1.35; color: var(--anker); max-width: 24ch;
}

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

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

/* 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; }

/* Das Dach als Trennelement zwischen zwei Abschnitten */
.dach {
  height: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--gelb);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  margin-inline: auto; width: clamp(9rem, 26vw, 16rem);
}

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

.kopf {
  position: sticky; top: 0; z-index: 50;
  background: var(--flaeche);   /* reines Weiss: das Logo hat weissen Rand */
  border-bottom: 1px solid var(--linie);
}
.kopf::after { content: ""; display: block; height: 4px; background: var(--gelb); }

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

.marke { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.marke:hover { text-decoration: none; }
.marke img {
  display: block; height: 3.2rem; width: auto; max-width: 15rem;
  object-fit: contain; flex: none;
}
@media (max-width: 32rem) { .marke img { height: 2.8rem; max-width: 10rem; } }
.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); }

.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: 4px 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, 5rem); }
.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 { margin-bottom: 1.8rem; }

.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); }

/* ---------- Karten mit Dachkante ---------- */

.karte-kontakt {
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 1.6rem 1.7rem 1.8rem;
  box-shadow: var(--schatten); position: relative;
}
.karte-kontakt::before {
  content: ""; position: absolute; top: -1px; left: 50%; translate: -50% -100%;
  width: 4.5rem; height: 1.4rem; background: var(--gelb);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.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; }

/* ---------- Kacheln ---------- */

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

.kachel {
  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: .7rem;
}
.kachel h3 { border-bottom: 3px solid var(--gelb); padding-bottom: .5rem; }
.kachel ul { margin: 0; padding-left: 1.15rem; display: grid; gap: .35rem; color: var(--schrift-matt); }
.kachel li::marker { color: var(--rot-voll); }
.kachel p { color: var(--schrift-matt); font-size: 1.02rem; }

/* ---------- Tagesablauf ---------- */

.ablauf { display: grid; gap: 0; counter-reset: schritt; }
.ablauf__punkt {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: .2rem 1.4rem;
  padding: 1.1rem 0; border-top: 1px solid var(--linie);
}
.ablauf__punkt:last-child { border-bottom: 1px solid var(--linie); }
.ablauf__zeit {
  font-weight: 700; color: var(--rot); font-variant-numeric: tabular-nums;
  grid-row: 1 / span 2;
}
.ablauf__punkt h3 { font-size: 1.1rem; }
.ablauf__punkt p { grid-column: 2; color: var(--schrift-matt); font-size: 1rem; margin: 0; }

/* ---------- Zahlen ---------- */

.zahlen { display: grid; gap: 1.2rem; }
@media (min-width: 40rem) { .zahlen { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.zahl { text-align: center; padding: 1.2rem .8rem; }
.zahl__wert {
  font-family: Georgia, serif; font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem);
  line-height: 1; color: var(--rot); font-weight: 600;
}
.zahl__text { font-size: 1rem; color: var(--schrift-matt); margin-top: .4rem; }

/* ---------- Zeiten ---------- */

.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; background: var(--gelb); margin-bottom: 3rem; }
.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; }
}
