/* KörperZeit – Farben ausschließlich aus dem Logo und deren Abtönungen */

/* Schriften lokal ausgeliefert (SIL Open Font License, siehe fonts/) */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Ziffern aus der Systemschrift: die Textschrift zeigt die Null durchgestrichen */
@font-face {
  font-family: "KZ Ziffern";
  src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Roboto"), local("Segoe UI");
  font-weight: 400;
  unicode-range: U+0030-0039;
}

@font-face {
  font-family: "KZ Ziffern";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"), local("Roboto Bold"), local("Segoe UI Bold");
  font-weight: 700;
  unicode-range: U+0030-0039;
}

:root {
  /* Logofarben */
  --gruen: #8caa96;        /* Salbeigrün */
  --rosa: #c38e97;         /* Altrosa */
  --apricot: #cba583;      /* Apricot */

  /* Abtönungen der Logofarben */
  --text: #2b4234;         /* Salbeigrün, stark abgedunkelt – Kontrast 10,9:1 */
  --text-sanft: #45604f;   /* Salbeigrün, abgedunkelt – für Nebentexte */
  --gruen-hell: #eef4ef;   /* Salbeigrün, sehr hell */
  --gruen-linie: #d3e0d6;  /* Salbeigrün, hell – feine Linien */
  --rosa-hell: #f7ecee;    /* Altrosa, sehr hell */
  --papier: #fcfaf7;       /* Apricot, fast weiß – Seitenhintergrund */
  --weiss: #ffffff;

  --schatten: 0 1px 2px rgb(43 66 52 / 0.06), 0 8px 24px -8px rgb(43 66 52 / 0.14);
  --radius: 18px;

  --schrift-text: "KZ Ziffern", "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --schrift-titel: "Fraunces", Georgia, "Times New Roman", serif;
}

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

html {
  font-size: 125%; /* ca. 20px Grundschrift */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--text);
  font-family: var(--schrift-text);
  line-height: 1.65;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--rosa-hell);
  color: var(--text);
}

.seite {
  max-width: 35rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 2rem;
}

/* Kopf: Logo und Name */
header {
  text-align: center;
}

.logo {
  display: block;
  width: min(230px, 60vw);
  height: auto;
  margin: 0 auto;
}

h1,
h2 {
  font-family: var(--schrift-titel);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  margin: 1rem 0 0;
  font-size: clamp(2.5rem, 9vw, 3.4rem);
}

.untertitel {
  margin: 0.35rem 0 0;
  color: var(--text-sanft);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

/* Dreifarbiges Band aus dem Logo als ruhiges Trennelement */
.band {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 1.5rem auto 0;
}

.band span {
  width: 2.25rem;
  height: 4px;
  border-radius: 2px;
}

.band span:nth-child(1) { background: var(--rosa); }
.band span:nth-child(2) { background: var(--apricot); }
.band span:nth-child(3) { background: var(--gruen); }

/* Text */
main {
  margin-top: 3rem;
}

main h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.9rem, 6.5vw, 2.4rem);
}

main p {
  margin: 0 0 1.25rem;
}

/* Kontakt */
address {
  margin: 2.75rem 0 2.5rem;
  padding: 1.5rem 1rem 1rem;
  background: var(--gruen-hell);
  border-radius: var(--radius);
  font-style: normal;
}

.kontakt-name {
  display: block;
  font-family: var(--schrift-titel);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.2;
}

.kontakt-zusatz {
  display: block;
  margin-top: 0.15rem;
  color: var(--text-sanft);
}

.kontakt-liste {
  display: grid;
  gap: 0.6rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.kontakt-zeile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.1rem;
  padding: 0.55rem 0.8rem;
  background: var(--weiss);
  border: 1px solid var(--gruen-linie);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--schrift-titel);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

a.kontakt-zeile {
  text-decoration: none;
  transition: border-color 160ms cubic-bezier(0.16, 1, 0.3, 1), background-color 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

a.kontakt-zeile:hover {
  background: var(--rosa-hell);
  border-color: var(--rosa);
}

.symbol {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  color: var(--text-sanft);
}

.abschluss {
  margin: 0;
  font-family: var(--schrift-titel);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
}

/* Termine */
.termine {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 2.5rem 0 0;
  padding: 1.1rem 0.75rem;
  background: var(--weiss);
  border: 1px solid var(--gruen-linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  font-family: var(--schrift-titel);
  font-size: clamp(1.05rem, 5vw, 1.35rem);
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

.termine .symbol {
  width: 1.5rem;
  height: 1.5rem;
}

/* Links und Fokus */
a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--rosa);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-color: var(--text);
}

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

/* Fußzeile */
footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gruen-linie);
  text-align: center;
  font-size: 0.9rem;
}

footer a {
  display: inline-block;
  margin: 0 0.75rem;
  padding: 0.35rem 0;
}

/* Schmale Handys: E-Mail-Adresse möglichst in einer Zeile */
@media (max-width: 419px) {
  address {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .kontakt-zeile {
    gap: 0.7rem;
    font-size: 0.92rem;
  }

  .termine {
    flex-direction: column;
    gap: 0.4rem;
  }
}

/* Größere Bildschirme */
@media (min-width: 700px) {
  html {
    font-size: 137.5%; /* ca. 22px */
  }

  .seite {
    padding: 3.5rem 2rem 2.5rem;
  }

  .kontakt-zeile {
    padding: 0.55rem 1.1rem;
  }

  address {
    padding: 1.75rem 2rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  a.kontakt-zeile {
    transition: none;
  }
}

/* Unterseite Impressum & Datenschutz */
.logo--klein {
  width: min(130px, 36vw);
}

.logo-link {
  display: inline-block;
  border-radius: 8px;
}

h1.unterseite {
  margin: 1.5rem 0 1.5rem;
  font-size: clamp(1.5rem, 7.5vw, 2.6rem);
  text-align: center;
  hyphens: auto;
}

.sprungmarken {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-bottom: 2.5rem;
}

.rechtliches section {
  margin-bottom: 3rem;
  scroll-margin-top: 1.5rem;
}

.rechtliches h2 {
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gruen-linie);
  font-size: clamp(1.6rem, 6vw, 2rem);
}

.rechtliches h3 {
  margin: 1.75rem 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.rechtliches p,
.rechtliches ul {
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
}

.rechtliches ul {
  padding-left: 1.25rem;
}

.rechtliches li {
  margin-bottom: 0.3rem;
}

.rechtliches li::marker {
  color: var(--rosa);
}

.rechtliches .stand {
  margin-top: 2rem;
  color: var(--text-sanft);
  font-size: 0.9rem;
}

/* Telefonnummern ohne durchgestrichene Null */
a[href^="tel:"] {
  font-family: var(--schrift-titel);
  font-weight: 500;
}
