/* Carbacan Webhosting: ein Serverschrank, dessen Einschuebe die Leistungen sind.
   Keine Schriften, Skripte oder Bilder von fremden Servern. */
:root {
  --blau: #012a6a;      /* Hausfarbe carbacan.com */
  --nacht: #021a44;     /* Schrankinneres */
  --schiene: #8d9bb0;   /* Schrankschienen */
  --blech: #e8edf4;     /* Einschub */
  --kante: #c3cddb;
  --tinte: #0b2450;
  --licht: #00d084;     /* Betriebsleuchte */
  --papier: #ffffff;
  --schrift: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--blau);
  color: var(--papier);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.55;
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--licht);
  outline-offset: 3px;
}

.versteckt {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.seite {
  flex: 1;
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  display: grid;
  gap: 3rem;
}

.marke { margin: 0 0 3.5rem; }

.marke a { display: inline-block; }

.marke img {
  display: block;
  height: 2.5rem;
  width: auto;
}

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.5rem, 9vw, 4.75rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 13ch;
}

.einleitung {
  margin: 0 0 2rem;
  max-width: 34rem;
  font-size: 1.1875rem;
}

.knopf {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--papier);
  color: var(--blau);
  font-weight: 700;
  text-decoration: none;
  border-radius: 3px;
}

.knopf:hover { background: var(--blech); }

/* Der Schrank: Schienen links und rechts mit Lochraster, innen dunkel */
.schrank {
  position: relative;
  padding: 0.75rem 2rem;
  background: var(--nacht);
  border-radius: 4px;
}

.schrank::before,
.schrank::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2rem;
  background:
    radial-gradient(circle at 50% 50%, var(--nacht) 0 3px, transparent 3.5px) center top / 100% 1.5rem repeat-y,
    var(--schiene);
}

.schrank::before { left: 0; border-radius: 4px 0 0 4px; }
.schrank::after { right: 0; border-radius: 0 4px 4px 0; }

.schrank ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
}

.schrank li {
  position: relative;
  padding: 0.8rem 1rem 0.8rem 2.5rem;
  background: var(--blech);
  color: var(--tinte);
  border-block: 1px solid var(--kante);
}

/* Betriebsleuchte. Beim Laden gehen sie einmal von oben nach unten an. */
.schrank li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.3rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--licht);
  box-shadow: 0 0 0 2px #b6c2d1, 0 0 8px var(--licht);
  animation: anschalten 0.35s steps(2, end) both;
}

.schrank li:nth-child(2)::before { animation-delay: 0.18s; }
.schrank li:nth-child(3)::before { animation-delay: 0.36s; }
.schrank li:nth-child(4)::before { animation-delay: 0.54s; }
.schrank li:nth-child(5)::before { animation-delay: 0.72s; }
.schrank li:nth-child(6)::before { animation-delay: 0.9s; }
.schrank li:nth-child(7)::before { animation-delay: 1.08s; }

@keyframes anschalten {
  from { background: #7d8a9c; box-shadow: 0 0 0 2px #b6c2d1; }
}

.schrank strong {
  display: block;
  font-size: 1.0625rem;
  line-height: 1.3;
}

.schrank span {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.fuss {
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  font-size: 0.9375rem;
}

.fuss nav { display: flex; gap: 1.5rem; }

@media (min-width: 62rem) {
  .seite {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 5rem;
    align-items: center;
    padding: 2.5rem 2rem 3rem;
  }

  .fuss { padding-inline: 2rem; }

  /* Lange Einschuebe: Bezeichnung links, Erklaerung rechts, wie ein Typenschild */
  .schrank li {
    display: grid;
    grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
    min-height: 4.25rem;
  }

  .schrank li::before { top: 50%; margin-top: -0.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .schrank li::before { animation: none; }
}
