/* --akzent kommt je Mandant aus TanssUp; die dunklen Töne leiten sich davon ab. */
:root {
  --akzent: #4a8a12;
  --text: #1c2430; --leise: #667383; --rand: #e1e6ea; --flaeche: #fff; --grund: #f3f5f4; --matt: #b3bcc5;
}
@media (prefers-color-scheme: dark) {
  :root { --text: #e4e7eb; --leise: #9aa5b1; --rand: #363f49; --flaeche: #1d232a; --grund: #11151a; --matt: #55606c; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; padding: 28px 14px; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--grund); color: var(--text); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }
h1:focus { outline: none; }
h1, h2 { margin: 0; line-height: 1.25; text-wrap: balance; }
h1 { font-size: 21px; }
p { margin: 8px 0 0; }

.karte { max-width: 980px; min-height: 480px; margin: 0 auto; display: grid; grid-template-columns: 300px minmax(0, 1fr); background: var(--flaeche); border-radius: 20px; overflow: hidden; box-shadow: 0 14px 40px rgba(20, 30, 40, .12); }
aside { background: #17251a; background: color-mix(in srgb, var(--akzent) 22%, #10151a); color: #eef2ee; padding: 28px; }
main { padding: 28px; min-width: 0; }
.marke { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 600; }
.marke img { max-height: 48px; max-width: 200px; background: #fff; border-radius: 8px; padding: 5px; }
.titel { margin-top: 28px; font-size: 21px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
dl { margin: 24px 0 0; }
dt { font-size: 12px; opacity: .65; margin-top: 14px; }
dd { margin: 2px 0 0; font-weight: 600; }

.leise { color: var(--leise); font-size: 14px; }
.wahl { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 24px; margin-top: 18px; }
.monatskopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pfeil { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rand); background: none; }
.pfeil:disabled { opacity: .3; }
.monat { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; margin-top: 10px; }
.monat small { color: var(--leise); padding-bottom: 4px; }
.monat button { aspect-ratio: 1; border: 0; border-radius: 50%; background: none; color: var(--matt); padding: 0; }
.monat button.frei { background: color-mix(in srgb, var(--akzent) 14%, transparent); color: var(--text); font-weight: 700; cursor: pointer; }
.monat button.frei:hover { background: color-mix(in srgb, var(--akzent) 28%, transparent); }
.monat button.an, .monat button.an:hover { background: var(--akzent); color: #fff; }
.tagname { font-weight: 700; min-height: 34px; display: flex; align-items: center; }
.zeiten { display: flex; flex-direction: column; gap: 8px; max-height: 330px; overflow: auto; padding: 4px; margin: 6px -4px 0; }
.zeit { flex: none; border: 1.5px solid var(--rand); background: var(--flaeche); border-radius: 10px; padding: 10px 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.zeit:hover { border-color: var(--akzent); }
.zeit.an { background: var(--akzent); border-color: var(--akzent); color: #fff; }

label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 5px; }
label span { font-weight: 400; color: var(--leise); }
input, textarea { width: 100%; border: 1.5px solid var(--rand); border-radius: 10px; padding: 11px 12px; background: var(--flaeche); }
textarea { min-height: 100px; resize: vertical; }
.auswahl { font-weight: 700; font-size: 17px; }
.aktionen { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 22px; }
.knopf { border: 0; border-radius: 10px; background: var(--akzent); color: #fff; font-weight: 600; padding: 12px 22px; margin-left: auto; }
.knopf:hover { background: color-mix(in srgb, var(--akzent) 80%, #000); }
.knopf:disabled { opacity: .4; }
.link { border: 0; background: none; color: var(--leise); text-decoration: underline; padding: 8px 0; }
.meldung { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: rgba(224, 83, 63, .12); color: #c0392b; }
.fertig { text-align: center; padding: 40px 8px; }
.haken { width: 64px; height: 64px; border-radius: 50%; background: var(--akzent); color: #fff; display: grid; place-items: center; font-size: 32px; margin: 0 auto 16px; }

footer { max-width: 980px; margin: 0 auto; display: flex; gap: 16px; justify-content: center; padding-top: 16px; font-size: 13px; }
footer a { color: var(--leise); }

@media (max-width: 760px) {
  body { padding: 10px 8px 24px; }
  .karte { grid-template-columns: 1fr; min-height: 0; }
  aside, main { padding: 20px; }
  .titel { margin-top: 16px; font-size: 18px; }
  dl { display: flex; flex-wrap: wrap; column-gap: 20px; margin-top: 8px; }
  .wahl { grid-template-columns: 1fr; }
  .zeiten { flex-direction: row; flex-wrap: wrap; max-height: none; }
}
