/* unikat Termine – Gastseiten. Immer hell, Petrol nur als kleiner Akzent. */

@font-face {
  font-family: Manrope;
  src: url('/fonts/manrope.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --text: #070807;
  --akzent: #417572;
  --akzent-hell: #e9f1f0;
  --akzent-hover: #dcebe8;
  --linie: #e6e8e7;
  --gedaempft: #6b6f6e;
  --blass: #b4b8b7;
  --feldrand: #d8dcdb;
  --chiprand: #cfdcda;
  --flaeche: #f6f7f7;
  --fehler: #a23b2c;
  --ueberschrift: Helvetica, Arial, sans-serif;
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: #fff;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--text);
  font-family: Manrope, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Im iframe zählt nur die Höhe des Inhalts. */
body.eingebettet {
  min-height: 0;
  display: block;
}

h1,
h2 {
  margin: 0;
  font-family: var(--ueberschrift);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

p {
  margin: 0;
}

a {
  color: var(--akzent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 2px;
}

[tabindex='-1']:focus {
  outline: none;
}

/* --- Kopf und Fuß ---------------------------------------------------------------------------- */

.seitenkopf {
  border-bottom: 1px solid var(--linie);
}

.seitenkopf-innen,
.seitenfuss-innen {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.seitenkopf-innen {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wortmarke {
  font-family: var(--ueberschrift);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}

.kopf-zusatz {
  padding-left: 12px;
  border-left: 1px solid var(--linie);
  color: var(--gedaempft);
  font-size: 14px;
  line-height: 20px;
}

.seite {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.eingebettet .seite {
  max-width: none;
  padding: 0;
}

.seitenfuss {
  border-top: 1px solid var(--linie);
  color: var(--gedaempft);
  font-size: 13px;
}

.seitenfuss-innen {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  padding-bottom: 24px;
}

.seitenfuss a {
  color: var(--gedaempft);
  text-decoration: none;
}

.seitenfuss a:hover {
  color: var(--text);
}

.rechtliches {
  display: flex;
  gap: 20px;
}

/* --- Person mit Terminarten (Start- und Personenseite) ---------------------------------------- */

.einleitung {
  max-width: 560px;
  margin-bottom: 36px;
}

.einleitung h1 {
  font-size: 32px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.einleitung p {
  color: var(--gedaempft);
  font-size: 16px;
}

.personen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.profil {
  max-width: 560px;
}

.person {
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 24px 24px 8px;
  background: #fff;
}

.wer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.person .wer {
  margin-bottom: 18px;
}

.initialen {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--akzent-hell);
  color: var(--akzent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.person-name {
  font-size: 19px;
}

h1.person-name {
  font-size: 24px;
}

.wer-zusatz {
  display: block;
  color: var(--gedaempft);
  font-size: 13px;
}

.terminarten {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--linie);
}

.terminarten li + li {
  border-top: 1px solid var(--linie);
}

.terminart {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 2px;
  color: var(--text);
  text-decoration: none;
}

.terminart-name {
  display: block;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.15s ease;
}

.terminart-meta {
  display: block;
  margin-top: 2px;
  color: var(--gedaempft);
  font-size: 13.5px;
}

.terminart svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--blass);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s ease, stroke 0.15s ease;
}

.terminart:hover .terminart-name {
  color: var(--akzent);
}

.terminart:hover svg {
  stroke: var(--akzent);
  transform: translateX(3px);
}

.leer {
  padding: 16px 0 18px;
  border-top: 1px solid var(--linie);
  color: var(--gedaempft);
  font-size: 14px;
}

/* --- Buchungsseite: Info | Kalender | Uhrzeiten ---------------------------------------------- */

.buchung {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) minmax(0, 0.8fr);
  min-height: 480px;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: #fff;
}

.buchung.schritt-formular,
.buchung.schritt-fertig {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 2.05fr);
}

.buchung > section {
  min-width: 0;
  padding: 32px 28px;
}

.info {
  border-right: 1px solid var(--linie);
}

.zeiten {
  border-left: 1px solid var(--linie);
}

.info .wer {
  margin-bottom: 24px;
}

.wortmarke-klein {
  display: block;
  font-family: var(--ueberschrift);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.wer-name {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
}

.terminart-titel {
  font-size: 26px;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.meta-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.meta {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
}

.meta svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  fill: none;
  stroke: var(--akzent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gewaehlt {
  font-weight: 600;
}

.link-knopf {
  padding: 0;
  border: 0;
  background: none;
  color: var(--akzent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.beschreibung {
  margin-top: 20px;
  color: var(--gedaempft);
  font-size: 14.5px;
  white-space: pre-line;
}

/* Kalender */

.kalender-kopf,
.zeiten-titel {
  min-height: 36px;
  margin-bottom: 16px;
}

.kalender-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Unter der Monatsüberschrift: in welcher Zeitzone die Zeiten gelten */
.zeitzone-hinweis {
  margin: -8px 0 14px;
  color: var(--gedaempft);
  font-size: 13px;
}

.monat-titel,
.zeiten-titel {
  font-size: 17px;
}

.zeiten-titel {
  display: flex;
  align-items: center;
}

.blaettern {
  display: flex;
  gap: 2px;
}

.blaettern-knopf {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
}

.blaettern-knopf svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blaettern-knopf:hover:not(:disabled) {
  background: var(--flaeche);
}

.blaettern-knopf:disabled {
  color: #cbcfce;
  cursor: default;
}

.wochentage,
.tage {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  text-align: center;
}

.wochentage {
  margin-bottom: 8px;
  color: var(--gedaempft);
  font-size: 12px;
  font-weight: 500;
}

.tage {
  gap: 6px 4px;
}

.tag {
  justify-self: center;
  width: 100%;
  max-width: 44px;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blass);
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}

.tag.frei {
  background: var(--akzent-hell);
  color: var(--akzent);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tag.frei:hover {
  background: var(--akzent-hover);
}

.tag.frei[aria-pressed='true'] {
  background: var(--akzent);
  color: #fff;
}

.meldung {
  margin-top: 18px;
  color: var(--gedaempft);
  font-size: 14px;
}

.meldung:empty {
  margin: 0;
}

.meldung.wichtig {
  color: var(--text);
  font-weight: 600;
}

.stoerung,
.formular-meldung {
  padding: 14px 16px;
  border: 1px solid var(--linie);
  border-radius: 10px;
  background: var(--flaeche);
  font-size: 14.5px;
}

.stoerung {
  margin-top: 18px;
}

/* Uhrzeiten */

.zeit-liste {
  display: grid;
  gap: 8px;
  max-height: 392px;
  overflow-y: auto;
  margin: -4px;
  padding: 4px;
  scrollbar-width: thin;
}

.zeit {
  width: 100%;
  padding: 10px 0;
  border: 1px solid var(--chiprand);
  border-radius: 8px;
  background: #fff;
  color: var(--akzent);
  font-weight: 600;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.zeit:hover {
  border-color: var(--akzent);
}

.zeit[aria-pressed='true'] {
  border-color: var(--akzent);
  background: var(--akzent);
  color: #fff;
}

/* --- Formular -------------------------------------------------------------------------------- */

.formular-titel {
  font-size: 21px;
  margin-bottom: 24px;
}

.buchungsformular {
  max-width: 520px;
  display: grid;
  gap: 18px;
}

.feld {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 6px;
}

.feld > label,
.feld > legend {
  padding: 0;
  font-size: 13.5px;
  font-weight: 600;
}

.feld > legend {
  margin-bottom: 6px;
}

.pflicht {
  color: var(--gedaempft);
  font-weight: 500;
}

.feld input,
.feld textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--feldrand);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.feld textarea {
  resize: vertical;
}

.feld input::placeholder,
.feld textarea::placeholder {
  color: var(--blass);
}

.feld input:hover,
.feld textarea:hover {
  border-color: #c3c8c6;
}

.feld input:focus,
.feld textarea:focus {
  outline: none;
  border-color: var(--akzent);
  box-shadow: 0 0 0 3px var(--akzent-hell);
}

.feld [aria-invalid='true'] {
  border-color: var(--fehler);
}

.feld-hinweis {
  color: var(--gedaempft);
  font-size: 13px;
}

.feld-fehler {
  color: var(--fehler);
  font-size: 13px;
}

.ort-optionen {
  display: grid;
  gap: 8px;
}

.ort-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--feldrand);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ort-option:hover {
  border-color: #c3c8c6;
}

.ort-option:has(input:checked) {
  border-color: var(--akzent);
  background: #f5f9f8;
}

.ort-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: none;
  accent-color: var(--akzent);
}

.ort-option:has(input[aria-invalid='true']) {
  border-color: var(--fehler);
}

/* Honigtopf: für Menschen unsichtbar, für Bots ein normales Feld. */
.feld-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.datenschutz-hinweis {
  color: var(--gedaempft);
  font-size: 13px;
}

.knopf {
  justify-self: start;
  padding: 13px 24px;
  border: 0;
  border-radius: 9px;
  background: var(--text);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.knopf:hover {
  background: #2b2e2d;
}

.knopf:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* --- Bestätigung ----------------------------------------------------------------------------- */

.bestaetigung {
  max-width: 560px;
}

.haken {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--akzent-hell);
}

.haken svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--akzent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bestaetigung-titel {
  font-size: 24px;
  margin-bottom: 20px;
}

.eckdaten {
  margin: 0 0 18px;
  border-top: 1px solid var(--linie);
}

.eckdaten > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--linie);
}

.eckdaten dt {
  color: var(--gedaempft);
  font-size: 13.5px;
}

.eckdaten dd {
  margin: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.bestaetigung-mail {
  margin-bottom: 22px;
  color: var(--gedaempft);
}

.bestaetigung-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.knopf-zweit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--chiprand);
  border-radius: 9px;
  color: var(--akzent);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.knopf-zweit:hover {
  border-color: var(--akzent);
}

.knopf-zweit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Verwaltungslink (/b/<token>) -------------------------------------------------------------- */

.termin-karte {
  max-width: 560px;
  padding: 32px 28px;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: #fff;
}

.termin-titel {
  margin-bottom: 20px;
  font-size: 24px;
}

.hinweis-kasten {
  padding: 14px 16px;
  border: 1px solid var(--linie);
  border-radius: 10px;
  background: var(--flaeche);
  font-size: 14.5px;
}

.aktionen {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}

.absage[open] {
  flex-basis: 100%;
}

.absage > summary {
  list-style: none;
  cursor: pointer;
}

.absage > summary::-webkit-details-marker {
  display: none;
}

.absage-formular {
  max-width: 520px;
  margin-top: 16px;
  display: grid;
  gap: 16px;
}

.zurueck-zeile {
  margin-top: 20px;
  font-size: 14px;
}

.kurzfristig {
  max-width: 560px;
}

/* --- 404 ------------------------------------------------------------------------------------- */

.nicht-gefunden {
  max-width: 480px;
  padding: 24px 0;
}

.nicht-gefunden h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.nicht-gefunden p {
  color: var(--gedaempft);
  margin-bottom: 8px;
}

/* --- Admin-Bereich (/admin): Anmeldung, Navigation, Übersicht --------------------------------- */

.seite-breit {
  max-width: 1200px;
}

/* Zwei Klassen, damit „height: auto“ auch gegen die Regel für schmale Bildschirme weiter unten gewinnt. */
.seitenkopf-innen.team-kopf {
  height: auto;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.team-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-left: 20px;
  font-size: 14.5px;
}

.team-nav a {
  padding: 6px 0;
  color: var(--text);
  text-decoration: none;
}

.team-nav a:hover {
  color: var(--akzent);
}

.team-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 0 auto;
  color: var(--gedaempft);
  font-size: 14px;
}

.team-seite h1 {
  margin-bottom: 24px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.team-seite h2 {
  font-size: 18px;
}

.anmeldung {
  max-width: 400px;
}

.anmelde-formular {
  display: grid;
  gap: 18px;
}

.anmeldung .formular-meldung {
  margin-bottom: 18px;
  color: var(--fehler);
  font-weight: 600;
}

.status-kasten,
.pruef-kasten {
  margin-bottom: 24px;
  padding: 18px 20px;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--flaeche);
  font-size: 14.5px;
}

.status-kasten h2,
.pruef-kasten h2 {
  margin-bottom: 12px;
}

.status-liste,
.pruef-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.status-liste li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 420px;
}

.status-problem {
  color: var(--fehler);
}

.status-hinweis {
  margin-top: 12px;
  color: var(--gedaempft);
  font-size: 13px;
}

.status-warnung {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--fehler);
  border-radius: 10px;
  background: #fff;
  color: var(--fehler);
  font-weight: 600;
}

.pruef-liste li {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
}

.pruef-hinweis {
  font-weight: 600;
}

.liste-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 14px;
}

.filter-leiste {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-leiste a {
  padding: 5px 14px;
  border: 1px solid var(--chiprand);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.filter-leiste a[aria-current='page'] {
  border-color: var(--akzent);
  background: var(--akzent);
  color: #fff;
}

.tabelle-rahmen {
  overflow-x: auto;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
}

.team-tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}

.team-tabelle th,
.team-tabelle td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--linie);
  text-align: left;
  vertical-align: top;
}

.team-tabelle th {
  color: var(--gedaempft);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.team-tabelle tbody tr:last-child td {
  border-bottom: 0;
}

.team-tabelle td:nth-child(-n + 2) {
  white-space: nowrap;
}

/* Buchung im Detail (/admin/buchung) */

.team-detail {
  max-width: 760px;
}

.team-zurueck {
  margin-bottom: 16px;
  font-size: 14px;
}

.team-detail > h1 {
  margin-bottom: 6px;
}

.team-status {
  margin-bottom: 20px;
  color: var(--gedaempft);
  font-size: 14px;
  font-weight: 600;
}

.team-meldung {
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1px solid var(--chiprand);
  border-radius: 10px;
  background: var(--akzent-hell);
  font-weight: 600;
}

.team-meldung-problem {
  border-color: var(--fehler);
  background: #fff;
  color: var(--fehler);
}

.team-detail > .hinweis-kasten,
.team-detail > .pruef-kasten {
  margin-bottom: 20px;
}

.team-hinweis > p {
  margin-bottom: 8px;
}

.team-aktionen-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin-top: 12px;
}

.team-aktionen-zeile .absage-formular {
  margin-top: 0;
}

.team-abschnitt {
  margin-bottom: 28px;
}

.team-abschnitt h2 {
  margin-bottom: 12px;
}

.team-daten > div {
  grid-template-columns: 150px minmax(0, 1fr);
}

.team-verwaltungslink {
  margin-top: 14px;
  color: var(--gedaempft);
  font-size: 14px;
  overflow-wrap: anywhere;
}

/* Terminarten und Arbeitszeiten (/admin/terminarten, /admin/terminart, /admin/arbeitszeiten) */

a.knopf {
  display: inline-block;
  text-decoration: none;
}

button.knopf-zweit {
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}

.team-gruppe {
  max-width: 900px;
}

.team-arten {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
}

.team-art {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--linie);
}

.team-art:last-child {
  border-bottom: 0;
}

.team-art-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.team-art-name {
  font-weight: 600;
}

.team-art-link,
.team-art-meta {
  color: var(--gedaempft);
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.team-art-aktionen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.team-marke {
  margin-left: 8px;
  padding: 2px 9px;
  border: 1px solid var(--chiprand);
  border-radius: 999px;
  color: var(--gedaempft);
  font-size: 12px;
  font-weight: 600;
}

/* Der Knopf und seine Rückmeldung; die Meldung liegt unter dem Knopf, damit nichts verrutscht. */
.team-kopier-gruppe {
  position: relative;
}

.team-kopiert {
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  color: var(--akzent);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.team-nur-lesbar {
  color: var(--gedaempft);
  font-size: 14px;
}

.team-erklaerung {
  max-width: 640px;
  margin-bottom: 12px;
  color: var(--gedaempft);
}

.team-formular {
  max-width: 640px;
  display: grid;
  gap: 28px;
}

.team-formular .team-abschnitt {
  display: grid;
  gap: 18px;
  margin-bottom: 0;
}

.team-formular .team-abschnitt h2 {
  margin-bottom: 0;
}

.team-formular-seite > h1 {
  margin-bottom: 24px;
}

.team-feld-reihe {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  align-items: start;
  gap: 18px;
}

.team-formular-seite .formular-meldung {
  margin-bottom: 24px;
  border-color: var(--fehler);
  background: #fff;
  color: var(--fehler);
}

.team-seite .formular-meldung ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

.team-formular-knoepfe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.team-zeiten-tabelle {
  min-width: 560px;
}

.team-zeiten-tabelle th,
.team-zeiten-tabelle td {
  vertical-align: middle;
}

.team-zeiten-tabelle th[scope='row'] {
  color: var(--text);
  font-size: 14.5px;
  white-space: nowrap;
}

.team-zeiten-tabelle tbody tr:last-child th {
  border-bottom: 0;
}

.team-zeiten-tabelle td:nth-child(2) {
  min-width: 260px;
  white-space: normal;
}

.team-zeiten-fremd {
  color: var(--gedaempft);
  white-space: nowrap;
}

/* Einbetten (/admin/einbetten): je Terminart der Code zum Kopieren; die Zeile der Liste steht hier untereinander. */
.team-einbett {
  display: grid;
  justify-content: stretch;
  align-items: start;
  gap: 12px;
}

.team-einbett-liste {
  margin-top: 28px;
}

.team-code {
  margin: 0;
  padding: 12px 14px;
  overflow-x: auto;
  border: 1px solid var(--linie);
  border-radius: 10px;
  background: var(--flaeche);
  color: var(--text);
  font: 13px/1.6 ui-monospace, 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;
  white-space: pre;
}

.team-code:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .seitenkopf-innen.team-kopf {
    min-height: 56px;
  }

  .team-person {
    order: 2;
  }

  .team-nav {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
  }

  .team-daten > div {
    grid-template-columns: 104px minmax(0, 1fr);
  }
}

/* --- Kleinere Bildschirme -------------------------------------------------------------------- */

@media (max-width: 960px) {
  .buchung > section {
    padding: 26px 22px;
  }
}

@media (max-width: 760px) {
  .seitenkopf-innen,
  .seitenfuss-innen {
    padding-left: 16px;
    padding-right: 16px;
  }

  .seitenkopf-innen {
    height: 56px;
  }

  .seite {
    padding: 28px 16px 48px;
  }

  .einleitung h1 {
    font-size: 26px;
  }

  .personen {
    grid-template-columns: minmax(0, 1fr);
  }

  .person {
    padding: 20px 18px 6px;
  }

  .buchung,
  .buchung.schritt-formular,
  .buchung.schritt-fertig {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .buchung > section,
  .termin-karte {
    padding: 22px 18px;
  }

  .info {
    border-right: 0;
    border-bottom: 1px solid var(--linie);
  }

  .zeiten {
    border-left: 0;
    border-top: 1px solid var(--linie);
  }

  .info .wer {
    margin-bottom: 16px;
  }

  .terminart-titel {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .beschreibung {
    margin-top: 14px;
  }

  .zeit-liste {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
