/* Sonntagskaffee: porcelain blue, milk white, a warm butter accent.
   Display face Fraunces, body face Karla, both self-hosted (see fonts/). */

@font-face {
  font-family: "Fraunces";
  src: url("/static/fonts/fraunces-v38-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/static/fonts/fraunces-v38-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("/static/fonts/karla-v33-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("/static/fonts/karla-v33-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("/static/fonts/karla-v33-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --tinte: #16234c;
  --kobalt: #1e3d82;
  --kobalt-tief: #132a5c;
  --porzellan: #fcfaf7;
  --milch: #ffffff;
  --kuchen: #a8455f;
  --butter: #e7b84e;
  --linie: rgba(22, 35, 76, 0.14);
  --gedaempft: #5a6280;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --brot: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --rund: 1.25rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--porzellan);
  color: var(--tinte);
  font-family: var(--brot);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-wrap: pretty;
}

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

a { color: var(--kobalt); }

:focus-visible {
  outline: 3px solid var(--kobalt);
  outline-offset: 3px;
  border-radius: 0.35rem;
}

.huelle {
  width: min(64rem, 100% - 2.5rem);
  margin-inline: auto;
}

.huelle-schmal { width: min(38rem, 100% - 2.5rem); }

.nurfuerleser {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Kopf: der Teller ---------- */

.kopf {
  background:
    radial-gradient(120% 90% at 50% 0%, #24488f 0%, var(--kobalt-tief) 55%, #0f2350 100%);
  color: var(--milch);
  padding-block: clamp(3rem, 11vw, 6.5rem);
}

.teller {
  position: relative;
  max-width: 44rem;
  margin-inline: auto;
  padding: clamp(2rem, 6.5vw, 3.75rem) clamp(1.5rem, 5.5vw, 3.25rem);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: clamp(1.5rem, 6vw, 3.25rem);
  text-align: center;
  animation: auftauchen 0.7s ease-out both;
}

.teller::before {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: clamp(1.1rem, 5vw, 2.8rem);
  pointer-events: none;
}

@keyframes auftauchen {
  from { opacity: 0; transform: translateY(0.9rem); }
  to { opacity: 1; transform: none; }
}

.auge {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--butter);
}

.kopf h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 7.6vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0.9rem 0 0;
}

.vorspann {
  max-width: 34rem;
  margin: 1.25rem auto 0;
  color: rgba(255, 255, 255, 0.84);
}

.knopf {
  display: inline-block;
  margin-top: 1.9rem;
  padding: 0.95rem 1.9rem;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--butter);
  color: var(--tinte);
  font-family: var(--brot);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.knopf:hover { background: #f2c65f; transform: translateY(-1px); }

.knopf-blau {
  background: var(--kobalt);
  color: var(--milch);
  margin-top: 0;
}

.knopf-blau:hover { background: #24499a; }

/* ---------- Abschnitte ---------- */

.abschnitt { padding-block: clamp(2.75rem, 8vw, 4.75rem); }

.abschnitt h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.75rem, 4.6vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--kobalt);
  margin: 0 0 1rem;
  text-wrap: balance;
}

.zweispalt {
  display: grid;
  gap: clamp(1.75rem, 5vw, 3rem);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 52rem) {
  .zweispalt { grid-template-columns: 1.15fr 0.85fr; }
}

.fliesstext { max-width: 58ch; }
.fliesstext p { margin: 0 0 1.2rem; }
.fliesstext p:last-child { margin-bottom: 0; }

.karte {
  background: var(--milch);
  border: 1px solid var(--linie);
  border-radius: var(--rund);
  padding: clamp(1.5rem, 4.5vw, 2.25rem);
  box-shadow: 0 1px 2px rgba(22, 35, 76, 0.05), 0 12px 30px -22px rgba(22, 35, 76, 0.4);
}

.karte h3 {
  font-family: var(--brot);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--kuchen);
  margin: 0 0 1.25rem;
}

.eckdaten { margin: 0; }
.eckdaten dt {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--kobalt);
}
.eckdaten dd {
  margin: 0.15rem 0 1.15rem;
  color: var(--tinte);
}
.eckdaten dd:last-of-type { margin-bottom: 0; }

.zierde {
  display: block;
  margin: 0 auto clamp(0.5rem, 2vw, 1rem);
  width: 5.5rem;
  height: auto;
  color: var(--butter);
}

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

.schreiben { background: var(--milch); border-top: 1px solid var(--linie); }

.formular { margin-top: 1.75rem; }

.feld { margin-bottom: 1.35rem; }

.feld label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.feld input,
.feld textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(22, 35, 76, 0.24);
  border-radius: 0.7rem;
  background: var(--milch);
  color: var(--tinte);
  font-family: var(--brot);
  font-size: 1rem;
  line-height: 1.5;
}

.feld textarea { min-height: 9rem; resize: vertical; }

.feld input:focus-visible,
.feld textarea:focus-visible { border-color: var(--kobalt); }

.hinweis {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--gedaempft);
}

.falle {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pruefung { margin-bottom: 1.35rem; }

.stoerung {
  margin: 0 0 1.5rem;
  padding: 0.95rem 1.15rem;
  border-radius: 0.7rem;
  background: #fdf1f3;
  border-left: 3px solid var(--kuchen);
  color: #7d2a41;
}

.direkt {
  margin: 1.75rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--linie);
  font-size: 0.95rem;
  color: var(--gedaempft);
  overflow-wrap: anywhere;
}

.direkt a { color: var(--kobalt); }

.gelungen {
  max-width: 34rem;
  margin-top: 1.75rem;
  padding: clamp(1.5rem, 4.5vw, 2.25rem);
  border-radius: var(--rund);
  background: #f3f6fc;
  border: 1px solid rgba(30, 61, 130, 0.2);
}

.gelungen h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--kobalt);
  margin: 0 0 0.6rem;
}

.gelungen p { margin: 0; }

/* ---------- Fuss ---------- */

.fuss {
  background: var(--porzellan);
  border-top: 1px solid var(--linie);
  padding-block: 2.25rem;
  font-size: 0.95rem;
  color: var(--gedaempft);
  text-align: center;
}

.fuss p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
