/* greylo Terminbuchung – Ergänzungen zum gemeinsamen Design (/design/greylo.css) */

/* ---------- Spalten: Formular + Rand (wie die Support-Seite) ---------- */
.buehne { padding-bottom: 8.5rem; }
.buehne-klein { padding-bottom: 6.5rem; }
.spalten { position: relative; display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 3rem; align-items: start; margin-top: -6.75rem; }
.inhalt:has(> .spalten:first-child) { padding-top: 0; }
.spalten-admin { margin-top: 0; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.5rem; }
.spalten-admin > aside, .spalten-admin > div { display: grid; gap: 1.25rem; align-content: start; }
.spalten-admin .karte + .karte { margin-top: 0; }
body.admin .inhalt { padding-top: 1.5rem; }
.blatt { padding: 2.25rem 2.25rem 2rem; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 22px; box-shadow: var(--schatten); }
.rand { padding-top: 7.5rem; display: grid; gap: 1.75rem; }
.rand-block { padding-left: 1.1rem; border-left: 3px solid var(--aqua); }
.rand-block h2 { margin: 0 0 0.4rem; font-size: 1.12rem; }
.rand-block p { margin: 0 0 0.6rem; font-size: 0.97rem; color: var(--soft); }
.rand-login { padding: 1.2rem 1.25rem; border: 1px solid var(--linie); border-left: 3px solid var(--deep); border-radius: 16px; background: var(--flaeche); box-shadow: var(--schatten); }
html[data-theme="dark"] .rand-login { border-left-color: var(--aqua-hell); }
.ablauf { margin: 0; padding-left: 1.15rem; font-size: 0.95rem; color: var(--soft); }
.ablauf li + li { margin-top: 0.35rem; }
.plan { border-collapse: collapse; font-size: 0.93rem; margin-bottom: 0.5rem; }
.plan th { padding: 0.18rem 1rem 0.18rem 0; text-align: left; font-weight: 600; white-space: nowrap; }
.plan td { padding: 0.18rem 0; color: var(--soft); font-family: var(--mono); font-size: 0.82rem; }

/* ---------- Formular ---------- */
.gruppe { margin: 0 0 2rem; padding: 0; border: 0; min-width: 0; }
.gruppe legend { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1rem; padding: 0; font-family: var(--kopf); font-weight: 700; font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.015em; }
.schritt { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; font-family: var(--mono); font-size: 0.85rem; color: #FFFFFF; background: var(--deep); border-radius: 999px; flex: none; }
html[data-theme="dark"] .schritt { color: var(--paper); background: var(--aqua-hell); }
.zweispaltig { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.feld { margin-bottom: 1.15rem; }
.feld label { display: block; margin-bottom: 0.35rem; font-weight: 600; font-size: 0.97rem; }
.freiwillig { margin-left: 0.35rem; font-weight: 400; font-size: 0.86rem; color: var(--soft); }
.tipp { margin: 0.35rem 0 0; font-size: 0.88rem; line-height: 1.45; color: var(--soft); }
.tipp.angemeldet { margin: -0.4rem 0 1.1rem; padding: 0.6rem 0.85rem; background: var(--mist); border-radius: 12px; }
.feld-fehler { margin: 0.4rem 0 0; font-size: 0.92rem; font-weight: 500; color: var(--fehler); }
[aria-invalid="true"] { border-color: var(--coral) !important; }
textarea { min-height: 6.5rem; resize: vertical; line-height: 1.5; }
input[type="date"], input[type="time"], input[type="number"] { display: block; width: 100%; padding: 0.7rem 0.85rem; font: inherit; color: var(--ink); background: var(--flaeche); border: 1.5px solid var(--feldrand); border-radius: 12px; }
.honig { position: absolute; left: -999rem; width: 1px; height: 1px; overflow: hidden; }

/* Gesprächsart */
.arten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.art input, .wahl-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.art-kachel { display: flex; flex-direction: column; gap: 0.15rem; height: 100%; padding: 1rem 0.95rem 0.9rem; border: 1.5px solid var(--feldrand); border-radius: 16px; cursor: pointer; transition: border-color 0.15s, background-color 0.15s, transform 0.15s; }
.art-kachel svg { width: 1.7rem; height: 1.7rem; margin-bottom: 0.45rem; fill: none; stroke: var(--deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="dark"] .art-kachel svg { stroke: var(--aqua-hell); }
.art-kachel strong { font-family: var(--kopf); font-size: 1.02rem; line-height: 1.25; }
.art-kachel small { font-size: 0.84rem; line-height: 1.35; color: var(--soft); }
.art-kachel:hover { border-color: var(--deep); transform: translateY(-1px); }
.art input:checked + .art-kachel { background: var(--mist); border-color: var(--deep); box-shadow: inset 0 0 0 1px var(--deep); }
html[data-theme="dark"] .art input:checked + .art-kachel { border-color: var(--aqua-hell); box-shadow: inset 0 0 0 1px var(--aqua-hell); }
.art input:focus-visible + .art-kachel, .wahl-chip input:focus-visible + label { outline: 3px solid var(--aqua); outline-offset: 2px; }

/* Auswahl-Chips (Dauer) */
.auswahl { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.wahl-chip label { display: inline-block; padding: 0.5rem 1.1rem; font-weight: 500; font-size: 0.97rem; color: var(--ink); background: var(--flaeche); border: 1.5px solid var(--feldrand); border-radius: 999px; cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.wahl-chip label:hover { border-color: var(--deep); }
.wahl-chip input:checked + label { color: #FFFFFF; background: var(--deep); border-color: var(--deep); }

/* Tag und Uhrzeit */
.zeit-kopf { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem; }
.zeit-kopf strong { font-family: var(--kopf); font-size: 1.05rem; }
.pfeil { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; font: inherit; font-size: 1.2rem; color: var(--ink); background: var(--flaeche); border: 1.5px solid var(--feldrand); border-radius: 999px; cursor: pointer; }
.pfeil:hover:not([disabled]) { border-color: var(--deep); }
.pfeil[disabled] { opacity: 0.35; cursor: default; }
.tage { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; margin-bottom: 1rem; }
.tag { display: flex; flex-direction: column; align-items: center; gap: 0.05rem; padding: 0.6rem 0.25rem; font: inherit; color: var(--ink); background: var(--flaeche); border: 1.5px solid var(--feldrand); border-radius: 14px; cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.tag b { font-family: var(--mono); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.tag span { font-family: var(--kopf); font-weight: 700; font-size: 1.15rem; }
.tag small { font-size: 0.74rem; color: var(--soft); }
.tag:hover:not([disabled]) { border-color: var(--deep); }
.tag[aria-pressed="true"] { color: #FFFFFF; background: var(--deep); border-color: var(--deep); }
.tag[aria-pressed="true"] b, .tag[aria-pressed="true"] small { color: #D5E6F1; }
.tag[disabled] { opacity: 0.45; cursor: default; background: transparent; border-style: dashed; }
.zeiten { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.4rem, 1fr)); gap: 0.45rem; }
.zeit { padding: 0.55rem 0.3rem; font: inherit; font-family: var(--mono); font-weight: 500; font-size: 0.95rem; color: var(--ink); background: var(--flaeche); border: 1.5px solid var(--feldrand); border-radius: 12px; cursor: pointer; }
.zeit:hover { border-color: var(--deep); }
.zeit[aria-pressed="true"] { color: #FFFFFF; background: var(--deep); border-color: var(--deep); }
html[data-theme="dark"] .tag[aria-pressed="true"], html[data-theme="dark"] .zeit[aria-pressed="true"], html[data-theme="dark"] .wahl-chip input:checked + label { color: var(--paper); background: var(--aqua-hell); border-color: var(--aqua-hell); }
html[data-theme="dark"] .tag[aria-pressed="true"] b, html[data-theme="dark"] .tag[aria-pressed="true"] small { color: var(--paper); }
.zeit-leer { margin: 0.25rem 0 0; font-size: 0.95rem; color: var(--soft); }
.zeitwahl.mit-js select { display: none; }

.abschluss { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.5rem; padding-top: 1.5rem; border-top: 1px solid var(--linie); }
.zusammenfassung { flex: 1 1 16rem; margin: 0; font-size: 0.97rem; }
.zusammenfassung strong { color: var(--ink); }
.haken-zeile { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.75rem 0.9rem; margin-bottom: 0.4rem; border: 1.5px solid var(--feldrand); border-radius: 14px; cursor: pointer; font-size: 0.95rem; }
.haken-zeile:has(input:checked) { background: var(--mist); border-color: var(--deep); }
.haken-zeile input { flex: none; width: 1.15rem; height: 1.15rem; margin: 0.2rem 0 0; }
.haken-zeile small { display: block; font-size: 0.84rem; color: var(--soft); }

/* ---------- Termin ansehen ---------- */
.haken { display: block; margin-bottom: 0.75rem; }
.haken circle { fill: var(--mist); stroke: var(--aqua); stroke-width: 2.5; }
.haken path { fill: none; stroke: var(--deep); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: haken 0.45s 0.15s ease-out forwards; }
html[data-theme="dark"] .haken path { stroke: var(--aqua-hell); }
@keyframes haken { to { stroke-dashoffset: 0; } }
.eckdaten { margin: 0 0 1.25rem; }
.eckdaten > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--linie); }
.eckdaten > div:first-child { border-top: 1px solid var(--linie); }
.eckdaten dt { font-size: 0.9rem; color: var(--soft); }
.eckdaten dd { margin: 0; overflow-wrap: anywhere; }
.aktionen { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.status { display: inline-block; padding: 0.08rem 0.55rem; font-family: var(--mono); font-weight: 500; font-size: 0.72rem; white-space: nowrap; vertical-align: 0.1em; border: 1.5px solid; border-radius: 999px; }
.status-ok { color: var(--gruen); border-color: color-mix(in srgb, var(--gruen) 50%, transparent); }
.status-jetzt { color: var(--akzent); border-color: var(--akzent); }
.status-vorbei { color: var(--soft); border-color: var(--linie); background: var(--mist); }
.status-abgesagt { color: var(--fehler); border-color: color-mix(in srgb, var(--coral) 55%, transparent); }
.status-protokoll { color: var(--akzent); border-color: var(--akzent); background: transparent; }
.status-offen { color: #B07A12; border-color: rgb(217 154 30 / 0.5); }
html[data-theme="dark"] .status-offen { color: var(--sun); }
.buehne .status { color: #FFFFFF; border-color: rgb(255 255 255 / 0.45); background: transparent; }
.protokoll { margin-top: 2rem; padding: 1.4rem 1.5rem; background: var(--mist); border-radius: 18px; }
.protokoll h2 { margin-bottom: 0.6rem; font-size: 1.25rem; }
.protokoll h3 { margin: 1rem 0 0.3rem; font-family: var(--mono); font-weight: 500; font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.protokoll-text { white-space: normal; line-height: 1.6; }
.absagen { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--linie); }
.absagen summary { cursor: pointer; font-weight: 600; color: var(--fehler); }
.absagen form { margin-top: 1rem; max-width: 26rem; }

/* ---------- Listen ---------- */
.termin-liste { margin: 0; padding: 0; list-style: none; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 20px; box-shadow: var(--schatten); overflow: hidden; }
.termin-liste > li + li { border-top: 1px solid var(--linie); }
.termin-zeile { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) auto; gap: 0.3rem 1.25rem; align-items: center; padding: 1rem 1.2rem; color: var(--ink); text-decoration: none; }
a.termin-zeile:hover, summary.termin-zeile:hover { background: color-mix(in srgb, var(--mist) 60%, transparent); }
summary.termin-zeile { cursor: pointer; list-style: none; }
summary.termin-zeile::-webkit-details-marker { display: none; }
.tz-datum { display: flex; flex-direction: column; font-size: 0.86rem; color: var(--soft); }
.tz-datum strong { font-family: var(--kopf); font-size: 1.02rem; color: var(--ink); }
.tz-info { display: flex; flex-direction: column; min-width: 0; font-size: 0.9rem; color: var(--soft); }
.tz-info strong { font-weight: 600; color: var(--ink); }
.termin-details .protokoll { margin: 0 1.2rem 1.2rem; }
.ist-vorbei { opacity: 0.6; }
.warnung { display: block; font-size: 0.84rem; color: var(--fehler); }
.kurzliste { margin: 0; padding: 0; list-style: none; font-size: 0.93rem; }
.kurzliste li { padding: 0.4rem 0; border-bottom: 1px solid var(--linie); }

/* ---------- Verwaltung ---------- */
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, calc(50% - 0.5rem)), 1fr)); gap: 0.85rem; margin: 0 0 2rem; }
.kachel { display: flex; flex-direction: column; gap: 0.2rem; padding: 1.05rem 1.2rem; color: var(--ink); text-decoration: none; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 18px; box-shadow: var(--schatten); }
.kachel-wert { font-family: var(--kopf); font-weight: 700; font-size: 1.9rem; line-height: 1.1; }
.kachel-name { font-size: 0.9rem; color: var(--soft); }
.kachel-hinweis { box-shadow: inset 4px 0 0 #D99A1E, var(--schatten); }
.filter { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 1rem; }
.filter a { padding: 0.4rem 0.95rem; font-weight: 500; font-size: 0.93rem; color: var(--soft); text-decoration: none; border: 1.5px solid var(--linie); border-radius: 999px; }
.filter a:hover { color: var(--ink); border-color: var(--deep); }
.filter a[aria-current] { color: #FFFFFF; background: var(--deep); border-color: var(--deep); }
.tabelle .klein { display: block; }
.person { font-weight: 600; color: var(--ink); text-decoration: none; }
.person:hover { color: var(--link); text-decoration: underline; }
.feld-intern textarea { background: color-mix(in srgb, var(--sun) 9%, var(--flaeche)); }
.formular-nachtragen { max-width: 52rem; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 900px) {
  .spalten, .spalten-admin { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .rand { padding-top: 0; }
  .arten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .blatt { padding: 1.4rem 1.1rem 1.3rem; border-radius: 18px; }
  .zweispaltig { grid-template-columns: minmax(0, 1fr); }
  .tage { gap: 0.3rem; }
  .tag { padding: 0.5rem 0.1rem; border-radius: 12px; }
  .tag span { font-size: 1rem; }
  .tag small { font-size: 0.66rem; }
  .abschluss .knopf { width: 100%; }
  .termin-zeile { grid-template-columns: minmax(0, 1fr) auto; }
  .tz-info { grid-column: 1 / -1; grid-row: 2; }
  .eckdaten > div { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .art-kachel { padding: 0.85rem 0.8rem; }
}
.kopf-link[aria-current] { background: var(--mist); }
