/*
 * Grundlage für Website und Verwaltung: Farben, Maße, Schrift, Rücksetzen.
 * Die Farbwelt kommt aus dem Logo: Nachtschwarz, Chrom, Türkis.
 * Türkis ist „Licht“: Es markiert, was frei, gewählt oder der nächste Schritt ist – sonst nichts.
 */

:root {
  color-scheme: dark;

  /* Flächen */
  --nacht: #05090b;
  --nacht-1: #0a1215;
  --nacht-2: #0f1a1e;
  --nacht-3: #162429;
  --linie: #1d2c32;
  --linie-hell: #2c4048;

  /* Schrift */
  --weiss: #f3f7f8;
  --chrom: #b8c4c9;
  --grau: #84929a;
  --grau-tief: #5d6b72;

  /* Marke */
  --tuerkis: #1fd8e4;
  --tuerkis-hell: #8af2f8;
  /* dunkel genug für Text auf hellem Grund (4,7 : 1 auf --papier) */
  --tuerkis-tief: #0a7682;
  --tuerkis-nebel: rgba(31, 216, 228, 0.12);
  --tuerkis-schein: rgba(31, 216, 228, 0.35);

  /* Helle Flächen (Beleg, Druck) */
  --papier: #edf1f2;
  --papier-linie: #c9d2d6;
  --tinte: #0a1215;
  --tinte-leise: #4a585f;

  /* Kalender: frei und vermietet */
  --frei: #2fd07a;
  --vermietet: #ff4f5a;

  /* Signale */
  --gruen: #5fd38d;
  --gelb: #f2b84b;
  --rot: #ff6b6b;
  --violett: #a996ff;

  /* Abstände */
  --a1: 4px;
  --a2: 8px;
  --a3: 12px;
  --a4: 16px;
  --a5: 24px;
  --a6: 32px;
  --a7: 48px;
  --a8: 72px;
  --a9: 104px;
  --a10: 152px;

  /* Form */
  --rund: 3px;
  --rund-gross: 10px;
  --neigung: -11deg; /* Schräge der Logo-Buchstaben */

  /* Bewegung */
  --schwung: cubic-bezier(0.2, 0.8, 0.2, 1);
  --kurz: 140ms;
  --mittel: 260ms;

  --schrift-fliess: var(--schrift-text), "Segoe UI", system-ui, sans-serif;
  --schrift-kopf: var(--schrift-anzeige), "Arial Black", "Segoe UI", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  background: var(--nacht);
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: clip;
  background: var(--nacht);
  color: var(--weiss);
  font-family: var(--schrift-fliess);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

button:disabled {
  cursor: not-allowed;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

::selection {
  background: var(--tuerkis);
  color: var(--nacht);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--tuerkis);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Überschriften-Schrift: breit, schräg, versal – wie der Schriftzug im Logo */
.anzeige {
  font-family: var(--schrift-kopf);
  font-style: italic;
  font-weight: 800;
  font-stretch: 130%;
  font-variation-settings: "wdth" 130;
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: -0.012em;
  text-wrap: balance;
  overflow-wrap: normal;
  hyphens: manual;
}

/* Zahlen und dichte Angaben: schmaler Schnitt, gleich breite Ziffern */
.daten {
  font-stretch: 88%;
  font-variation-settings: "wdth" 88;
  font-variant-numeric: tabular-nums;
}

.ziffern {
  font-variant-numeric: tabular-nums;
}

/* Nur für Vorlesehilfen sichtbar */
.unsichtbar {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
