/* Startseite: eine Karte im Hero (Code als Hauptweg, Ohne Brief leiser, Telefon als Zeile) und Kontakt als Postkarte. Aus Entwurf A „Ein Hauptweg, zwei leise Wege“.
   Alles aus Farben, Schriften und Streifen der Seite. */
.btn-ink { background: var(--ink); box-shadow: 0 3px 0 #000; }
.btn-ink:hover { background: #26324a; box-shadow: 0 2px 0 #000; }
.btn-ink:active { box-shadow: 0 0 0 #000; }
.hint { font-size: 0.86rem; color: var(--ink-2); margin-top: 8px; }
a.fine, .fine a { font-weight: 600; text-underline-offset: 3px; }

/* Hero: Raster mit freien Kindern, damit die Reihenfolge am Handy anders sein darf */
.hero-grid { grid-template-rows: auto auto auto 1fr; align-content: center; align-items: start; column-gap: clamp(32px, 5vw, 80px); row-gap: 0; }
.hero-text { display: contents; }
.hero-text > * { grid-column: 1; }
.hero-sheet { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
.lead { margin-top: 26px; }
/* Zugang: eine ruhige Karte. Hauptweg oben (Code, einziger roter Knopf), zweiter Weg leiser (Umriss), Telefon als Zeile. */
.zugang { margin-top: 28px; max-width: 560px; padding: 0; background: var(--paper-hi); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 4px; box-shadow: none; }
.z-main { padding: 18px 20px 20px; }
.z-t { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.25; color: var(--ink); }
.z-s { font-size: 0.92rem; color: var(--ink-2); margin-top: 2px; }
.z-row { display: flex; gap: 10px; align-items: flex-end; margin-top: 12px; }
.z-f { flex: 1; min-width: 0; }
.zugang label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink-2); margin: 0 0 5px; white-space: normal; }
.zugang input { min-height: 48px; font-size: 1.05rem; }
.zugang #code { letter-spacing: 0.14em; font-weight: 600; }
.zugang #code::placeholder { letter-spacing: 0.14em; }
.zugang .btn { flex: none; min-height: 48px; padding: 0 24px; font-size: 0.98rem; width: auto; white-space: nowrap; }


.z-tel { padding: 12px 20px 14px; border-top: 1px solid var(--line); background: var(--paper); font-size: 0.88rem; color: var(--ink-2); }
.z-tel a { font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }
.zugang .err { margin-top: 8px; }

/* Kontakt als Postkarte */
.kontakt .card { transform: rotate(0.6deg); }
.card .field:last-of-type { margin-bottom: 22px; }
.adr { border: 1.5px dashed var(--ink-2); border-radius: 4px; padding: 6px 18px 4px; margin: 0 0 22px; min-width: 0; }
.adr legend { font-weight: 600; font-size: 0.98rem; padding: 0 8px; margin-left: -8px; background: var(--paper-hi); }
.adr .field { margin: 14px 0; }
.card .err { margin-top: 8px; }
input[aria-invalid="true"] { border-color: var(--red); background: #fff5f2; }

@media (max-width: 900px) {
  .hero { padding-top: 22px; padding-bottom: 56px; }
  .hero-grid { grid-template-rows: none; align-content: start; }
  .hero-sheet { grid-column: 1; grid-row: auto; margin-top: 36px; }
  .kontakt .card { transform: none; }
}
@media (max-width: 640px) {
  h1 { font-size: clamp(2.05rem, 9.6vw, 2.7rem); }
  .adr { padding-inline: 14px; }
  .zugang { margin-top: 22px; }
  .z-main { padding-inline: 14px; }
  .z-tel { padding-inline: 14px; }
  .z-row { flex-direction: column; align-items: stretch; }
  .zugang .btn { width: 100%; }
}
