[data-fassung="hell"] {
  --start-grund: #f9fafb;
  --start-schrift: #131f30;
  --start-knopf-rand: #d3d7de;
  --start-knopf-hover: #eeeff2;
  --start-knopf-druck: #d3d7de;
  --start-kachel: #ffffff;
  --start-kachel-rand: #eeeff2;
  --start-kachel-rand-hover: #b6bcc8;
  --start-icon: #571efa;
  --start-icon-tief: #341291;
}

[data-fassung="dunkel"] {
  --start-grund: #0a121e;
  --start-schrift: #f9fafb;
  --start-knopf-rand: #203257;
  --start-knopf-hover: rgb(19 31 48 / 0.5);
  --start-knopf-druck: #203257;
  --start-kachel: rgb(19 31 48 / 0.5);
  --start-kachel-rand: #364768;
  --start-kachel-rand-hover: #637089;
  --start-icon: #ffffff;
  --start-icon-tief: rgb(255 255 255 / 0.6);
}

html,
body {
  background-color: var(--start-grund);
}

body {
  display: flex;
  flex-direction: column;
  color: var(--start-schrift);
}

.st-fassung {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 9px;
  border: 1px solid var(--start-knopf-rand);
  border-radius: var(--radius-sm);
  color: var(--start-schrift);
  cursor: pointer;
  transition: background-color var(--dauer-zustand) var(--kurve);
}
.st-fassung svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (hover: hover) {
  .st-fassung:hover { background-color: var(--start-knopf-hover); }
}
.st-fassung:active { background-color: var(--start-knopf-druck); }
.st-fassung:focus-visible {
  outline: 2px solid var(--start-icon);
  outline-offset: 2px;
}

[data-fassung="hell"] .st-sonne,
[data-fassung="dunkel"] .st-mond { display: none; }

.st-apps {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  gap: 8px 16px;
  width: 100%;
  max-width: 1128px;
  margin: 0 auto;
  padding: 48px 16px;
}

.st-app {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 88px;
  color: inherit;
  text-align: center;
}
div.st-app { cursor: default; }

.st-abmelden {
  margin-left: auto;
  margin-right: 12px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: inherit;
  background: none;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}
.st-abmelden[hidden] { display: none; }

.st-kachel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background-color: var(--start-kachel);
  border: 1px solid var(--start-kachel-rand);
  border-radius: 15%;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.05));
  transition: border-color var(--dauer-zustand) var(--kurve);
}
.st-kachel svg {
  width: 70%;
  height: 70%;
  fill: var(--start-icon);
}
.st-kachel .st-tief { fill: var(--start-icon-tief); }

.st-name {
  height: 62px;
  margin-top: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  hyphens: auto;
}

@media (hover: hover) {
  a.st-app:hover .st-kachel { border-color: var(--start-kachel-rand-hover); }
}
a.st-app:focus-visible { outline: none; }
a.st-app:focus-visible .st-kachel {
  outline: 2px solid var(--start-icon);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .st-apps { gap: 24px 32px; padding: 48px 24px; }
  .st-app { width: 112px; }
  .st-kachel { width: 100px; height: 100px; }
  .st-name { height: 42px; }
}

@media (min-width: 1024px) {
  .st-apps { gap: 32px 40px; padding: 64px 32px; }
  .st-app { width: 144px; }
  .st-kachel { width: 128px; height: 128px; }
  .st-name { height: 47px; font-size: 1rem; }
}
