/* ==========================================================================
   SOLARA intern
   Gestaltung angelehnt an solara-sonnenstudio.de: Sand-Gold, Braun und
   Anthrazit, runde Knöpfe. Werte und Herleitung: unterlagen/farben.md und
   unterlagen/schriften.md. In Komponenten stehen nur die Tokens unten.
   ========================================================================== */

:root {
  /* Farben */
  --color-sand: #c8ab87;          /* Solara-Gold: Akzent, Hauptknopf, offene Zeiten */
  --color-sand-strong: #b8966d;   /* Hauptknopf beim Überfahren */
  --color-sand-light: #f4e2c6;    /* Creme der Website: ruhige Hervorhebung */
  --color-sand-wash: #faf4ea;     /* sehr helle Sandfläche */
  --color-brown: #6d4b39;         /* Überschriften, Links */
  --color-ink: #1a1a1a;           /* Text, Kopfzeile, dunkle Flächen */
  --color-ground: #f7f8fc;        /* Seitenhintergrund */
  --color-white: #ffffff;
  --color-muted: #666977;         /* Nebentext — 5,5 : 1 auf Weiß */
  --color-line: #e7e3dd;          /* Rahmen von Karten */
  --color-line-strong: #8e8a85;   /* Rahmen von Eingabefeldern — 3,4 : 1 auf Weiß */
  --color-alert: #b42330;         /* Störungen — Website-Rot für Text abgedunkelt, 6,5 : 1 */
  --color-alert-wash: #fdeef0;
  --color-alert-line: #efbcc2;
  --color-check-wash: #fbf5d9;    /* „Bitte prüfen“ — vom Website-Gelb abgeleitet */
  --color-check-line: #e9d962;
  --color-on-dark: #f7f8fc;
  --color-on-dark-muted: #b9b8bf; /* 8,8 : 1 auf Anthrazit */
  --color-arc-track: #ebe7e1;
  --color-arc-track-dark: rgb(255 255 255 / 0.16);

  /* Schriften — die der Website, sobald die Dateien in assets/fonts/ liegen */
  --font-text: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "ABeeZee", var(--font-text);
  --font-button: "AR One Sans", var(--font-text);

  /* Formen */
  --radius-pill: 999px;
  --radius-card: 20px;
  --radius-field: 12px;
  --shadow-card: 0 1px 2px rgb(26 26 26 / 0.04), 0 8px 24px rgb(26 26 26 / 0.05);
  --shadow-pop: 0 18px 48px rgb(26 26 26 / 0.24);

  /* Raster */
  --page-max: 1180px;
  --gutter: 16px;
}

/* --------------------------------------------------------------------------
   Grundlagen
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-ground);
  color: var(--color-ink);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.55;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0;
  /* Lange deutsche Wörter („Sonderöffnungszeiten“) dürfen auf dem Handy umbrechen. */
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 1.45rem + 1.9vw, 2.75rem);
  color: var(--color-brown);
  letter-spacing: -0.005em;
}

.has-brand-fonts h1 {
  /* ABeeZee gibt es nur in einer Stärke; künstlich fett wäre unschön. */
  font-weight: 400;
}

h2 {
  font-size: 1.2rem;
  font-weight: 750;
}

h3 {
  font-size: 1rem;
  font-weight: 750;
  margin-top: 20px;
}

p {
  margin: 0 0 12px;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-brown);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-ink);
}

code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.92em;
  background: var(--color-sand-wash);
  border-radius: 6px;
  padding: 1px 6px;
}

:focus-visible {
  outline: 3px solid var(--color-ink);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.muted {
  color: var(--color-muted);
  font-size: 0.925rem;
}

.break {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -80px;
  z-index: 50;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--color-sand);
  color: var(--color-ink);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* --------------------------------------------------------------------------
   Kopfzeile und Burger-Menü
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--color-ink);
  color: var(--color-on-dark);
}

.site-header__inner {
  position: relative;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 10px var(--gutter);
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header :focus-visible {
  outline-color: var(--color-sand);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-height: 44px;
  padding: 4px 0;
  color: var(--color-sand);
  text-decoration: none;
}

.brand:hover {
  color: var(--color-sand-light);
}

.brand__mark {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0.01em;
}

.brand__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-on-dark-muted);
}

.menu__toggle {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid rgb(255 255 255 / 0.4);
  border-radius: var(--radius-pill);
  color: var(--color-on-dark);
  font-family: var(--font-button);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.menu__toggle::-webkit-details-marker {
  display: none;
}

.menu__toggle:hover,
.menu[open] .menu__toggle {
  border-color: var(--color-sand);
  color: var(--color-sand);
}

.menu__icon {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.menu__icon::before,
.menu__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.menu__icon::before {
  top: -6px;
}

.menu__icon::after {
  top: 6px;
}

.menu[open] .menu__icon {
  background: transparent;
}

.menu[open] .menu__icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu[open] .menu__icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.menu__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: var(--gutter);
  right: var(--gutter);
  z-index: 40;
  max-height: calc(100vh - 92px);
  overflow-y: auto;
  padding: 18px;
  border-radius: var(--radius-card);
  background: var(--color-white);
  color: var(--color-ink);
  box-shadow: var(--shadow-pop);
}

.menu__panel :focus-visible {
  outline-color: var(--color-ink);
}

.menu__who {
  margin-bottom: 10px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.menu__heading {
  margin: 14px 0 4px;
  padding: 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 12px;
  color: var(--color-ink);
  text-decoration: none;
}

.menu__list a:hover {
  background: var(--color-sand-wash);
}

.menu__list a[aria-current="page"] {
  background: var(--color-sand-light);
  font-weight: 700;
}

.menu__list--secondary {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-line);
}

.menu__name {
  flex: 1;
}

.menu__badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-brown);
}

.menu__logout {
  margin-top: 14px;
}

.dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-arc-track);
  box-shadow: inset 0 0 0 1.5px var(--color-line-strong);
}

.dot--open {
  background: var(--color-sand);
  box-shadow: none;
}

.dot--alert {
  background: var(--color-alert);
  box-shadow: none;
}

@media (min-width: 640px) {
  .menu__panel {
    left: auto;
    width: 380px;
  }
}

/* --------------------------------------------------------------------------
   Seite
   -------------------------------------------------------------------------- */

.page {
  flex: 1;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 24px var(--gutter) 64px;
}

.page:focus {
  outline: none;
}

.page > .notice {
  margin-bottom: 16px;
}

.page-head {
  margin-bottom: 24px;
}

.page-head h1 {
  margin-bottom: 10px;
}

.lead {
  max-width: 62ch;
  font-size: 1.05rem;
  color: var(--color-muted);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-bottom: 12px;
  font-size: 0.925rem;
  color: var(--color-muted);
}

.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.stack {
  display: grid;
  gap: 16px;
}

.site-footer {
  border-top: 1px solid var(--color-line);
  background: var(--color-white);
}

.site-footer p {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   Knöpfe
   -------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--color-sand);
  color: var(--color-ink);
  font-family: var(--font-button);
  font-size: 0.975rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button:hover {
  background: var(--color-sand-strong);
  color: var(--color-ink);
}

.button--secondary {
  background: var(--color-white);
  border-color: var(--color-line-strong);
  border-width: 1.5px;
}

.button--secondary:hover {
  background: var(--color-sand-wash);
  border-color: var(--color-brown);
}

.button--alert {
  background: var(--color-white);
  border-color: var(--color-alert);
  border-width: 1.5px;
  color: var(--color-alert);
}

.button--alert:hover {
  background: var(--color-alert-wash);
  color: var(--color-alert);
}

.button--small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.button--block {
  width: 100%;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Karten, Hinweise, Marken
   -------------------------------------------------------------------------- */

.card {
  padding: 20px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

.card > h2 {
  margin-bottom: 12px;
}

.card--quiet {
  margin-top: 24px;
  background: var(--color-sand-wash);
  box-shadow: none;
}

.card--flush {
  margin-top: 0;
}

.card--alert {
  border-color: var(--color-alert-line);
  box-shadow: inset 4px 0 0 var(--color-alert), var(--shadow-card);
}

.card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.notice {
  padding: 14px 18px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: var(--color-white);
}

.notice:focus {
  outline: 3px solid var(--color-ink);
  outline-offset: 2px;
}

.notice ul {
  margin: 8px 0 0;
  padding-left: 1.2rem;
}

.notice__title {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.notice--success {
  border-color: var(--color-sand);
  background: var(--color-sand-wash);
}

.notice--inline {
  margin-bottom: 14px;
}

.notice--alert {
  border-color: var(--color-alert-line);
  background: var(--color-alert-wash);
}

.notice--alert .notice__title {
  color: var(--color-alert);
}

.notice--alert a {
  color: var(--color-alert);
}

.notice--check {
  border-color: var(--color-check-line);
  background: var(--color-check-wash);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.chip--sand {
  background: var(--color-sand-light);
  color: var(--color-brown);
}

.chip--alert {
  background: var(--color-alert-wash);
  color: var(--color-alert);
  box-shadow: inset 0 0 0 1px var(--color-alert-line);
}

.chip--check {
  background: var(--color-check-wash);
  color: var(--color-ink);
  box-shadow: inset 0 0 0 1px var(--color-check-line);
}

.chip--muted {
  background: var(--color-ground);
  color: var(--color-muted);
  box-shadow: inset 0 0 0 1px var(--color-line);
}

.lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lines li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-line);
}

.lines li:first-child {
  padding-top: 0;
}

.lines li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.facts {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
}

.facts div {
  display: grid;
  gap: 2px;
}

.facts dt {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-muted);
}

.facts dd {
  margin: 0;
}

@media (min-width: 768px) {
  .facts div {
    grid-template-columns: 180px 1fr;
    gap: 16px;
  }
}

/* --------------------------------------------------------------------------
   Der Sonnenbogen — das tragende Element
   -------------------------------------------------------------------------- */

.sun-arc {
  width: 100%;
  height: auto;
  overflow: visible;
}

.sun-arc__track {
  fill: none;
  stroke: var(--color-arc-track);
  stroke-width: 10;
  stroke-linecap: round;
}

.sun-arc__open {
  fill: none;
  stroke: var(--color-sand);
  stroke-width: 14;
  stroke-linecap: round;
}

.sun-arc__now {
  fill: var(--color-white);
  stroke: var(--color-ink);
  stroke-width: 3.5;
}

.sun-arc__hour {
  fill: var(--color-muted);
  font-family: var(--font-text);
  font-size: 11px;
  font-weight: 600;
  text-anchor: middle;
}

.sun-arc--mini {
  width: 96px;
  flex: none;
}

.sun-arc--mini .sun-arc__hour {
  display: none;
}

.sun-arc--mini .sun-arc__track {
  stroke-width: 14;
}

.sun-arc--mini .sun-arc__open {
  stroke-width: 20;
}

.sun-arc--mini .sun-arc__now {
  r: 11;
  stroke-width: 5;
}

.today {
  padding: 20px 20px 22px;
  border-radius: var(--radius-card);
  background: var(--color-ink);
  color: var(--color-on-dark);
}

.today .sun-arc {
  max-width: 300px;
  margin: 8px auto 6px;
}

.today .sun-arc__track {
  stroke: var(--color-arc-track-dark);
}

.today .sun-arc__now {
  fill: var(--color-sand-light);
  stroke: var(--color-ink);
}

.today .sun-arc__hour {
  fill: var(--color-on-dark-muted);
}

.today__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-on-dark-muted);
}

.today__status {
  margin: 4px 0 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--color-sand);
  text-align: center;
}

.today__lines {
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  list-style: none;
  color: var(--color-on-dark-muted);
  font-size: 0.925rem;
}

.today__lines li + li {
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Übersicht
   -------------------------------------------------------------------------- */

.studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.studio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.studio-card:hover {
  border-color: var(--color-sand);
}

.studio-card:focus-within {
  outline: 3px solid var(--color-ink);
  outline-offset: 2px;
}

.studio-card--own {
  border-color: var(--color-sand);
  box-shadow: inset 0 0 0 1px var(--color-sand), var(--shadow-card);
}

.studio-card--alert {
  box-shadow: inset 4px 0 0 var(--color-alert), var(--shadow-card);
}

.studio-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.studio-card__name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--color-brown);
}

.studio-card__link {
  color: inherit;
  text-decoration: none;
}

.studio-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
}

.studio-card__link:focus-visible {
  outline: none;
}

.studio-card__address {
  margin: -6px 0 0;
  color: var(--color-muted);
  font-size: 0.925rem;
}

.studio-card__today {
  display: flex;
  align-items: center;
  gap: 14px;
}

.studio-card__status {
  margin: 0;
  font-weight: 700;
}

.studio-card__meta {
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Studioseite
   -------------------------------------------------------------------------- */

.studio-head {
  margin-bottom: 20px;
}

.studio-head h1 {
  margin-bottom: 8px;
}

.studio-head__meta {
  color: var(--color-muted);
}

.studio-head__sep {
  margin: 0 6px;
}

.studio-head__note {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-sand-wash);
  font-size: 0.9rem;
}

.studio-layout {
  display: grid;
  gap: 16px;
}

.studio-layout__side,
.studio-layout__main {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}

@media (min-width: 1024px) {
  .studio-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 24px;
  }

  .studio-layout__side {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 16px;
  }

  .studio-layout__main {
    grid-column: 1;
    grid-row: 1;
  }
}

.quick h2 {
  margin-bottom: 12px;
}

.quick__list {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.quick__meta {
  color: var(--color-muted);
  font-size: 0.875rem;
}

.checks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 8px 0;
}

.checks__item + .checks__item {
  border-top: 1px solid var(--color-check-line);
}

.checks__item span {
  flex: 1 1 240px;
}

.incidents {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.incident {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--color-alert-wash);
}

.incident__text {
  margin: 0;
  font-weight: 650;
}

.incident__meta {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.incident__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cabins {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cabin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-line);
}

.cabin:first-child {
  padding-top: 0;
}

.cabin:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.cabin__info {
  flex: 1 1 260px;
  min-width: 0;
}

.cabin__name {
  margin: 0 0 2px;
  font-weight: 750;
}

.cabin__device {
  font-weight: 500;
  color: var(--color-muted);
}

.cabin__note {
  margin: 0 0 4px;
  font-size: 0.925rem;
}

.cabin__state {
  margin: 0;
  font-size: 0.925rem;
}

.cabin--out .cabin__name {
  color: var(--color-alert);
}

.promotions {
  display: grid;
  gap: 12px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.promotion {
  padding: 14px 16px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
}

.promotion--active {
  border-color: var(--color-sand);
  background: var(--color-sand-wash);
}

.promotion--expired {
  opacity: 0.75;
}

.promotion__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.promotion__title {
  font-weight: 750;
}

.promotion__dates {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.notices {
  margin: 0;
}

.notices__item {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-line);
}

.notices__item:first-child {
  padding-top: 0;
}

.notices__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.notices dt {
  font-weight: 750;
}

.notices dd {
  margin: 2px 0 0;
}

.bot-text__body {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--font-text);
  font-size: 0.975rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Formulare
   -------------------------------------------------------------------------- */

.edit-form {
  display: grid;
  gap: 20px;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.form-grid--row {
  gap: 14px;
}

@media (min-width: 768px) {
  .form-grid--row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid--row .field--full {
    grid-column: 1 / -1;
  }
}

.field {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
}

.field__label {
  font-weight: 700;
}

.field__required {
  margin-left: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-muted);
}

.field__help {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.field__error {
  margin: 0;
  color: var(--color-alert);
  font-size: 0.925rem;
  font-weight: 700;
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--color-line-strong);
  border-radius: var(--radius-field);
  background: var(--color-white);
  color: var(--color-ink);
  font: inherit;
}

.input:focus-visible {
  outline: 3px solid var(--color-sand);
  outline-offset: 1px;
  border-color: var(--color-ink);
}

.input[aria-invalid="true"] {
  border-color: var(--color-alert);
  box-shadow: inset 0 0 0 1px var(--color-alert);
}

.input--area {
  min-height: 96px;
  resize: vertical;
}

.input--short {
  max-width: 10rem;
}

.input--select {
  appearance: auto;
}

.checkbox,
.radio {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
}

.checkbox input,
.radio input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--color-brown);
}

.checkbox--remove {
  margin-top: 6px;
  color: var(--color-alert);
  font-weight: 650;
}

.choice {
  margin: 0;
  padding: 0;
  border: 0;
}

.choice legend {
  margin-bottom: 4px;
  padding: 0;
}

.rows {
  display: grid;
  gap: 16px;
}

.row {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: var(--color-white);
}

.row--new {
  border-style: dashed;
  border-color: var(--color-line-strong);
  background: var(--color-sand-wash);
}

.row__legend {
  padding: 0 8px;
  font-weight: 750;
  color: var(--color-brown);
}

.rows__add {
  margin: 0;
}

.week {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: var(--color-white);
}

.week__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 8px 14px;
  padding: 10px 0;
  border-top: 1px solid var(--color-line);
}

.week__day {
  font-weight: 750;
}

.week__open {
  justify-self: end;
}

.week__time {
  display: grid;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--color-muted);
}

.week__error {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .week__row {
    grid-template-columns: 9rem 8rem minmax(0, 10rem) minmax(0, 10rem);
  }

  .week__open {
    justify-self: start;
  }

  .week__time {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
  }
}

.form-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 14px var(--gutter);
  border-top: 1px solid var(--color-line);
  background: rgb(247 248 252 / 0.96);
}

.form-actions--static {
  position: static;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
  background: none;
}

.card .form-actions {
  margin: 0 -20px -20px;
  padding: 14px 20px;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}

.filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 20px;
}

.filter .field {
  flex: 1 1 260px;
  max-width: 420px;
}

/* --------------------------------------------------------------------------
   Änderungen, Zugänge, Anmeldung
   -------------------------------------------------------------------------- */

.changes {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.change {
  padding: 14px 18px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: var(--color-white);
}

.change__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-bottom: 4px;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.change__summary {
  font-weight: 650;
}

.compare {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .compare {
    grid-template-columns: 1fr 1fr;
  }
}

.restore {
  display: grid;
  gap: 10px;
  max-width: 62ch;
}

.restore .button {
  justify-self: start;
}

.accounts {
  margin: 0;
  padding: 0;
  list-style: none;
}

.account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line);
}

.account:last-child {
  border-bottom: 0;
}

.account__info {
  flex: 1 1 300px;
  min-width: 0;
}

.account__name {
  margin: 0 0 2px;
  font-weight: 750;
}

.account__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account--locked .account__name {
  color: var(--color-muted);
}

.secret {
  margin: 12px 0;
}

.secret summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  font-weight: 700;
  color: var(--color-brown);
}

.secret__value {
  display: inline-block;
  padding: 8px 12px;
}

.password__value {
  display: inline-block;
  padding: 10px 16px;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
}

.password .notice {
  margin: 16px 0;
}

.fatal {
  max-width: 640px;
}

.fatal h1 {
  margin-bottom: 12px;
}

/* Anmeldung: dunkle Fläche wie der Kopf der Website */
.page-login {
  background: var(--color-ink);
}

.page-login .site-footer {
  border-top-color: rgb(255 255 255 / 0.12);
  background: transparent;
}

.page-login .site-footer p {
  color: var(--color-on-dark-muted);
}

.login {
  display: grid;
  gap: 28px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  padding-top: 8px;
}

.login__title {
  margin-bottom: 14px;
  color: var(--color-sand);
}

.login__text {
  max-width: 46ch;
  font-size: 1.05rem;
  color: var(--color-on-dark-muted);
}

.login__card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.login__hint {
  color: var(--color-muted);
  font-size: 0.9rem;
  text-align: center;
}

@media (min-width: 900px) {
  .login {
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    padding-top: 48px;
  }

  .login__card {
    padding: 32px;
  }
}

/* --------------------------------------------------------------------------
   Bewegung nur, wenn erwünscht
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
