/* ------------------------------------------------------------------
   WallpaperRotator - gemeinsames Aussehen aller Seiten
   Eine Datei fuer alle Seiten: der Browser laedt sie einmal und hat
   sie danach im Zwischenspeicher.
   ------------------------------------------------------------------ */

:root {
  --grund:      #F1F3F6;
  --karte:      #FFFFFF;
  --rand:       #D6DCE4;
  --tinte:      #121821;
  --gedaempft:  #4E5A68;
  --leise:      #6B7684;
  --blau:       #1D5F9C;
  --blau-tief:  #14456F;
  --blau-band:  #1B4A7A;
  --bernstein:  #B4661A;
  --nacht:      #16202C;
  --nacht-hell: #223142;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --grund:      #0E141B;
    --karte:      #161E28;
    --rand:       #2A3542;
    --tinte:      #E8EDF3;
    --gedaempft:  #A9B5C2;
    --leise:      #7D8B99;
    --blau:       #6BA6DC;
    --blau-tief:  #9CC6EC;
    --blau-band:  #16304C;
    --bernstein:  #E0A055;
    --nacht:      #0A0F15;
    --nacht-hell: #1A2532;
  }
}
:root[data-theme="dark"] {
  --grund:      #0E141B;
  --karte:      #161E28;
  --rand:       #2A3542;
  --tinte:      #E8EDF3;
  --gedaempft:  #A9B5C2;
  --leise:      #7D8B99;
  --blau:       #6BA6DC;
  --blau-tief:  #9CC6EC;
  --blau-band:  #16304C;
  --bernstein:  #E0A055;
  --nacht:      #0A0F15;
  --nacht-hell: #1A2532;
}

* { box-sizing: border-box; }
html { color-scheme: light dark; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--tinte);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

h1, h2, h3 {
  font-family: Archivo, "Arial Narrow", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  /* Ohne eigene Angabe erben die Ueberschriften die 1.6 vom Text -
     bei grosser Schrift klaffen die Zeilen dann weit auseinander. */
  line-height: 1.14;
  margin: 0;
}

a { color: var(--blau); }
a:hover { color: var(--blau-tief); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--bernstein); outline-offset: 3px; }

.huelle { max-width: 1020px; margin: 0 auto; padding-inline: 20px; }
.leiste { max-width: 1020px; margin: 0 auto; padding-inline: 20px; }

/* ------------------------------------------------------- Kopfband */
.banner {
  background: var(--blau-band);
  color: #FFFFFF;
  border-bottom: 4px solid var(--bernstein);
}
.banner .leiste {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-block: 22px;
}
.banner svg { flex-shrink: 0; }
.banner-text { flex-grow: 1; min-width: 0; }
.banner-name {
  display: block;
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.banner-satz {
  display: block;
  margin-top: 2px;
  font-size: clamp(14px, 2.6vw, 17px);
  color: #C6DCF0;
  text-wrap: balance;
}
.banner-rechts {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 14px;
  color: #A9CBEC;
  text-align: right;
  line-height: 1.5;
}
@media (max-width: 620px) {
  .banner-rechts { text-align: left; width: 100%; }
}

/* ------------------------------------------------------ Menueleiste */
.menue {
  background: var(--karte);
  border-bottom: 1px solid var(--rand);
  position: sticky;
  top: 0;
  z-index: 20;
}
.menue .leiste {
  display: flex;
  gap: 2px;
  /* Am Handy laesst sich die Leiste seitlich schieben, statt zu
     stapeln - so bleibt der Inhalt oben sichtbar. */
  overflow-x: auto;
  scrollbar-width: none;
  padding-inline: 12px;
}
.menue .leiste::-webkit-scrollbar { display: none; }
.menue a {
  display: block;
  padding: 13px 15px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--gedaempft);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.menue a:hover { color: var(--blau); background: var(--grund); }
.menue a.aktiv {
  color: var(--blau);
  border-bottom-color: var(--bernstein);
}
/* Auf dem Tablet ruecken die Punkte enger zusammen, damit alle sieben
   nebeneinander Platz haben - sonst rutscht ausgerechnet "Kaufen"
   ausserhalb des Bildes. */
@media (max-width: 900px) {
  .menue a { padding-inline: 9px; font-size: 14.5px; }
  .menue .leiste { padding-inline: 8px; }
}
/* Am Handy ist der Platz oben zu kostbar fuer die Adresse; sie steht
   ohnehin noch einmal im Fuss. */
@media (max-width: 480px) {
  .banner-rechts { display: none; }
  .banner .leiste { gap: 14px; padding-block: 18px; }
}

/* ------------------------------------------------------- Abschnitte */
main { display: block; }
section { padding-block: 46px; border-top: 1px solid var(--rand); }
section:first-of-type { border-top: 0; }
.augenbraue {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bernstein);
  margin: 0 0 12px;
}
h1 { font-size: clamp(32px, 5.4vw, 52px); line-height: 1.06; max-width: 24ch; }
section h2 { font-size: clamp(25px, 3.6vw, 34px); max-width: 26ch; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 12px 0; }
.lauftext { color: var(--gedaempft); max-width: 64ch; text-wrap: pretty; }
.gross { font-size: clamp(18px, 2.2vw, 21px); color: var(--gedaempft); max-width: 58ch; text-wrap: pretty; }

/* ------------------------------------------------------- Bausteine */
.zwei {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-top: 30px;
}
@media (max-width: 760px) { .zwei { grid-template-columns: minmax(0, 1fr); gap: 26px; } }

.punkte { display: flex; flex-direction: column; gap: 22px; }
.punkt h3 { font-size: 18px; font-weight: 600; }
.punkt p { margin: 5px 0 0; color: var(--gedaempft); font-size: 16px; }

figure { margin: 0; }
figure img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--rand); background: var(--karte);
}
figcaption { margin-top: 10px; font-size: 14px; color: var(--leise); }

.koennen {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 32px; max-width: 72ch;
}
@media (max-width: 680px) { .koennen { grid-template-columns: minmax(0, 1fr); } }
.koennen li {
  position: relative; padding-left: 26px;
  font-size: 16px; color: var(--gedaempft); line-height: 1.45;
}
.koennen li::before {
  content: ""; position: absolute; left: 2px; top: 0.45em;
  width: 9px; height: 9px; border-radius: 2px; background: var(--bernstein);
}
.koennen strong { color: var(--tinte); font-weight: 600; }

/* Karten, die auf die Unterseiten fuehren */
.karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.karte {
  display: block;
  background: var(--karte);
  border: 1px solid var(--rand);
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
}
.karte:hover { border-color: var(--blau); color: inherit; }
.karte h3 { color: var(--blau); margin-bottom: 6px; }
.karte p { margin: 0; font-size: 15.5px; color: var(--gedaempft); }
.karte .mehr {
  display: inline-block; margin-top: 10px;
  font-size: 14.5px; font-weight: 600; color: var(--bernstein);
}

/* -------------------------------------------------------- Preis */
.preisband { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.preis {
  font-family: Archivo, sans-serif; font-size: 40px; font-weight: 700;
  color: var(--blau); line-height: 1;
}
.preis-zusatz { color: var(--gedaempft); font-size: 16px; }

.knopfreihe { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.knopf {
  display: inline-block; padding: 13px 24px; border-radius: 3px;
  font-weight: 600; text-decoration: none; font-size: 16px;
}
.knopf-voll { background: var(--blau); color: #FFFFFF; }
.knopf-voll:hover { background: var(--blau-tief); color: #FFFFFF; }
.knopf-leer { border: 1px solid var(--rand); color: var(--tinte); }
.knopf-leer:hover { border-color: var(--blau); color: var(--blau); }

.dateihinweis { margin: 12px 0 0; font-size: 14.5px; color: var(--leise); }
.adresse-gross {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 16px; user-select: all; word-break: break-all;
}
.bezahlen { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; max-width: 260px; }

.kaufen {
  background: var(--karte); border: 1px solid var(--rand);
  padding: 32px; margin-top: 30px;
  display: grid;
  /* Feste Breite rechts: der PayPal-Knopf bringt seine eigene Groesse
     mit und wuerde die Textspalte sonst zusammendruecken. */
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px; align-items: center;
}
@media (max-width: 780px) { .kaufen { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 24px; } }
.kaufen h3 { font-size: 22px; font-family: Archivo, sans-serif; }
.kaufen p { color: var(--gedaempft); margin: 10px 0 0; font-size: 16px; }

/* ------------------------------------------------------- Kaesten */
.hinweis {
  margin-top: 24px; border-left: 3px solid var(--bernstein);
  padding: 4px 0 4px 18px; color: var(--gedaempft);
  font-size: 15.5px; max-width: 64ch;
}
.daten { margin-top: 26px; border: 1px solid var(--rand); background: var(--karte); }
.daten dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); }
@media (max-width: 560px) { .daten dl { grid-template-columns: minmax(0, 1fr); } }
.daten dt {
  font-family: "IBM Plex Mono", monospace; font-size: 13.5px; color: var(--leise);
  padding: 12px 18px; border-bottom: 1px solid var(--rand); white-space: nowrap;
}
.daten dd { margin: 0; padding: 12px 18px; border-bottom: 1px solid var(--rand); font-size: 15.5px; }
@media (max-width: 560px) {
  .daten dt { padding-bottom: 0; border-bottom: 0; }
  .daten dd { padding-top: 2px; }
}
.daten dl > :nth-last-child(1), .daten dl > :nth-last-child(2) { border-bottom: 0; }

/* Dunkler Abschnitt (Kameras) */
.kamera-block {
  background: var(--nacht);
  color: #E6EDF5;
  border-top: 1px solid var(--rand);
  /* Eigener Innenabstand, sonst klebt die Schrift an der dunklen Kante. */
  padding: 44px 36px;
}
@media (max-width: 620px) { .kamera-block { padding: 34px 20px; } }
.kamera-block .augenbraue { color: var(--bernstein); }
.kamera-block h1, .kamera-block h2 { color: #FFFFFF; }
/* Der helle Knopf waere auf Dunkel fast unsichtbar. */
.kamera-block .knopf-leer { border-color: #4A5B6E; color: #E6EDF5; }
.kamera-block .knopf-leer:hover { border-color: #FFFFFF; color: #FFFFFF; }
.kamera-block .lauftext { color: #B7C4D2; }
.kamera-block figure img { border-color: var(--nacht-hell); }
.kamera-block figcaption { color: #8B9AAA; }
.kamera-block .punkt h3 { color: #FFFFFF; }
.kamera-block .punkt p { color: #B7C4D2; }
.kamera-paar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 26px; }
@media (max-width: 760px) { .kamera-paar { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------- Vorfuehrungen */
.schreibtisch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: end; }
@media (max-width: 620px) { .schreibtisch { grid-template-columns: minmax(0, 1fr); gap: 26px; } }
.monitor { display: flex; flex-direction: column; align-items: center; }
.schirm {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  overflow: hidden; background: var(--nacht);
  border: 2px solid var(--rand); border-radius: 2px;
}
.schirm img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; border: 0; opacity: 0;
}
.schirm.fest img { opacity: 1; }
.schirm.wechselt img { animation: bildfolge 18s linear infinite; }
@keyframes bildfolge {
  0% { opacity: 1; } 30% { opacity: 1; } 33.33% { opacity: 0; }
  96.67% { opacity: 0; } 100% { opacity: 1; }
}
/* Drei Bilder je Schirm, jedes ein Drittel der Laufzeit sichtbar.
   Die negativen Verzoegerungen starten die Folge mitten im Ablauf,
   sonst waeren am Anfang alle drei Schirme gleichzeitig schwarz. */
.schirm.wechselt img:nth-child(2) { animation-delay: -6s; }
.schirm.wechselt img:nth-child(3) { animation-delay: -12s; }
/* Der zweite wechselnde Monitor laeuft versetzt - sonst schalten
   beide im selben Augenblick um und es sieht gestellt aus. */
.schirm.wechselt.versetzt img:nth-child(1) { animation-delay: -2s; }
.schirm.wechselt.versetzt img:nth-child(2) { animation-delay: -8s; }
.schirm.wechselt.versetzt img:nth-child(3) { animation-delay: -14s; }
.grossschirm img:nth-child(2) { animation-delay: -4s; }
.grossschirm img:nth-child(3) { animation-delay: -8s; }
.tv-schirm img:nth-child(2) { animation-delay: -5s; }
.tv-schirm img:nth-child(3) { animation-delay: -10s; }

.standfuss { width: 34%; height: 8px; background: var(--rand); }
.standteller { width: 58%; height: 5px; border-radius: 3px; background: var(--rand); margin-bottom: 10px; }
.mbezeichnung {
  margin: 0; text-align: center;
  font-family: "IBM Plex Mono", monospace; font-size: 13.5px; color: var(--leise);
}
.mbezeichnung b {
  display: block; font-family: "IBM Plex Sans", sans-serif; font-weight: 500;
  font-size: 15px; color: var(--gedaempft); margin-top: 3px;
}
.schaubild { margin-top: 42px; }
.schaubild figcaption { margin-top: 14px; font-size: 14.5px; color: var(--leise); max-width: 64ch; }

/* Ein Schirm allein, fuer Bildschirmschoner und Fernseher */
.grossschirm {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  overflow: hidden; background: #000000; border: 2px solid var(--rand); margin-top: 26px;
}
.grossschirm img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; display: block; border: 0; opacity: 0;
  animation: bildfolge 12s linear infinite;
}
/* Fernseher an der Wand */
.tv-rahmen { max-width: 760px; margin: 26px auto 0; }
.tv-schirm {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  overflow: hidden; background: #000000;
  border: 10px solid #1A1D21; border-radius: 6px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
}
.tv-schirm img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; border: 0; opacity: 0;
  animation: bildfolge 15s linear infinite;
}
.tv-fuss { width: 26%; height: 9px; background: #1A1D21; margin: 0 auto; border-radius: 0 0 4px 4px; }
.tv-teller { width: 40%; height: 6px; background: #1A1D21; margin: 0 auto; border-radius: 3px; }

@media (prefers-reduced-motion: reduce) {
  .schirm.wechselt img, .grossschirm img, .tv-schirm img { animation: none; opacity: 0; }
  .schirm.wechselt img:first-child, .grossschirm img:first-child, .tv-schirm img:first-child { opacity: 1; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------------------------------------------------------- Fuss */
footer {
  border-top: 1px solid var(--rand);
  padding-block: 30px 44px;
  font-size: 14.5px; color: var(--leise);
}
footer h4 {
  font-family: Archivo, sans-serif; font-size: 14px;
  color: var(--gedaempft); margin: 0 0 8px; letter-spacing: 0.02em;
}
.fussreihen { display: flex; gap: 48px; flex-wrap: wrap; }
footer p { margin: 0 0 4px; }
