/* NMF-Branding (Farben und Schrift wie anlage-in-gold.de) */
@font-face {
  font-family: "Montserrat";
  font-weight: 100 900;
  font-display: swap;
  src: url("Montserrat.woff2") format("woff2");
}

:root {
  --c-dunkel: #2D2D2B;
  --c-gold: #D29F13;
  --c-gold-text: #8B6200;
  --c-gold-hell: #FDE298;
  --c-gruen: #015030;
  --c-gruen-mittel: #086D44;
  --c-tinte: #1a1914;
  --c-creme: #F1EFE9;
  --c-creme-warm: #E9E4D5;
  --c-grau: #767572;
  --c-fehler: #9b1c1c;
  --rund: 10px;
}

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

body {
  margin: 0;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-tinte);
  background: var(--c-creme);
  overflow-wrap: break-word;
}

a { color: var(--c-gold-text); }

.kopf {
  background: linear-gradient(180deg, var(--c-gruen) 0%, var(--c-dunkel) 100%);
  padding: 22px 16px 70px;
}
.kopf__innen { max-width: 720px; margin: 0 auto; }
.kopf__logo { display: block; height: 44px; width: auto; }
.kopf__name { color: #fff; font-weight: 700; font-size: 20px; }

.haupt { max-width: 720px; margin: -48px auto 0; padding: 0 16px 40px; }

.karte {
  position: relative; overflow: hidden;
  background: #fff;
  border-radius: var(--rund);
  box-shadow: 0 10px 30px rgba(26, 25, 20, .10);
  padding: clamp(20px, 5vw, 40px);
}
.karte::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px;
  background: linear-gradient(90deg, var(--c-gold-text), var(--c-gold-hell) 50%, var(--c-gold));
}

.vorzeile {
  margin: 0 0 4px;
  color: var(--c-gold-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1 { margin: 0 0 8px; font-size: clamp(24px, 4vw, 32px); line-height: 1.2; }
.einleitung { margin: 0 0 24px; color: var(--c-grau); }

.hinweis { padding: 12px 14px; border-radius: 8px; background: var(--c-creme); }
.hinweis--fehler { background: #fdecec; color: var(--c-fehler); }

.schritt { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.schritt legend { font-weight: 700; font-size: 18px; margin-bottom: 12px; padding: 0; }
.nr {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; margin-right: 8px;
  border-radius: 50%;
  background: linear-gradient(158deg, var(--c-gold-hell) 0%, var(--c-gold) 70%); color: var(--c-tinte); font-size: 14px;
}

.gewaehlt-dienst {
  margin: 0 0 24px; padding: 12px 14px;
  border-left: 4px solid var(--c-gold);
  background: var(--c-creme);
  border-radius: 0 8px 8px 0;
  font-weight: 600;
}

.dienste { display: grid; gap: 10px; }
.dienst {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border: 2px solid var(--c-creme-warm); border-radius: 8px; cursor: pointer;
}
.dienst:has(input:checked) { border-color: var(--c-gold); background: #fffbef; }
.dienst input { accent-color: var(--c-gold); }
.dienst__name { flex: 1; font-weight: 600; }
.dienst__dauer { color: var(--c-grau); font-size: 14px; white-space: nowrap; }

.termin { display: grid; gap: 18px; }
@media (min-width: 640px) {
  .termin { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
}

/* Monatskalender */
.kal { border: 1px solid var(--c-creme-warm); border-radius: var(--rund); padding: 14px 12px 12px; background: #fff; }
.kal__kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.kal__monat { font-weight: 700; color: var(--c-gruen); letter-spacing: .02em; }
.kal__pfeil {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--c-creme-warm); background: #fff;
  color: var(--c-gruen); font: inherit; font-size: 22px; line-height: 1; cursor: pointer;
}
.kal__pfeil:hover:not(:disabled) { border-color: var(--c-gold); }
.kal__pfeil:disabled { opacity: .3; cursor: default; }
.kal__raster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; transition: opacity .2s; }
.kal--laedt .kal__raster { opacity: .45; }
.kal__wt { padding-bottom: 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-grau); }
.kal__tag {
  position: relative; display: grid; place-items: center;
  width: 100%; max-width: 44px; aspect-ratio: 1; margin: 0 auto;
  border: 0; border-radius: 50%; background: none;
  font: inherit; font-size: 15px; color: #c3bfb5;
}
.kal__tag--frei { background: #fbf4df; color: var(--c-tinte); font-weight: 700; cursor: pointer; }
.kal__tag--frei::after {
  content: ""; position: absolute; bottom: 12%; left: 50%;
  width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--c-gold);
}
.kal__tag--frei:hover { box-shadow: inset 0 0 0 2px var(--c-gold); }
.kal__tag--frei[aria-pressed="true"] {
  background: var(--c-gruen); color: #fff;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c-gold);
}
.kal__tag--frei[aria-pressed="true"]::after { background: var(--c-gold-hell); }

/* Uhrzeiten */
.zeitwahl {
  padding: 16px; border: 1px solid #eadcb2; border-radius: var(--rund);
  background: linear-gradient(170deg, #fffbf1 0%, #f7eed5 100%);
}
.zeitwahl__tag { margin: 0 0 12px; font-weight: 700; color: var(--c-gruen); line-height: 1.35; }
.zeitwahl__tag small {
  display: block; margin-bottom: 2px;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-gold-text);
}
.zeitgruppe + .zeitgruppe { margin-top: 12px; }
.zeitgruppe__titel { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--c-grau); }
.zeiten { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.uhr {
  padding: 8px 0; border: 1px solid var(--c-gold); border-radius: 999px;
  background: #fff; color: var(--c-gold-text);
  font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer;
}
.uhr:hover { background: #fff3cf; }
.uhr--aktiv { background: linear-gradient(158deg, var(--c-gold-hell) 14%, var(--c-gold) 97%); color: var(--c-tinte); }
.dienst:hover { border-color: var(--c-gold); }
:is(.uhr, .kal__tag, .kal__pfeil, .knopf, input, textarea):focus-visible { outline: 3px solid var(--c-gold-hell); outline-offset: 2px; }

.status { color: var(--c-grau); }

.auswahl { margin: 0 0 18px; padding: 12px 14px; background: var(--c-creme); border-radius: 8px; font-weight: 600; }

.feld { display: grid; gap: 4px; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
.feld input, .feld textarea {
  width: 100%; padding: 11px 12px;
  border: 1px solid #cfcac0; border-radius: 8px;
  font: inherit; font-weight: 400; font-size: 16px; background: #fff;
}
.feld input:focus, .feld textarea:focus { border-color: var(--c-gold); outline: none; }
.falle { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.klein { font-size: 13px; color: var(--c-grau); }

.knopf {
  display: inline-block; width: 100%;
  padding: 14px 20px; border: 0; border-radius: 999px;
  background: linear-gradient(158deg, var(--c-gold-hell) 14%, var(--c-gold) 97%);
  color: var(--c-tinte); font: inherit; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer;
}
.knopf:disabled { opacity: .6; cursor: progress; }
.knopf--leise { width: auto; margin-top: 16px; background: none; border: 2px solid var(--c-gold); padding: 10px 18px; }

.zusammenfassung { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 20px; }
.zusammenfassung dt { color: var(--c-grau); }
.zusammenfassung dd { margin: 0; font-weight: 600; }

.personen { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.personen a {
  display: block; padding: 12px 14px; border: 2px solid var(--c-creme-warm); border-radius: 8px;
  color: var(--c-tinte); font-weight: 600; text-decoration: none;
}
.personen a:hover { border-color: var(--c-gold); }

.fuss {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px;
  padding: 0 16px 32px; font-size: 13px; color: var(--c-grau);
}
.fuss a { color: var(--c-grau); }

[hidden] { display: none !important; }
