/* KLOSS pro audio – Stylesheet
   Hell = grüne Seite („Licht an“), Dunkel = „Licht aus“.
   Ohne JavaScript folgt die Seite der Systemeinstellung. */

:root {
  color-scheme: light;
  --bg: #78a779;
  --ink: #04270f;
  --head: #04270f;
  --logo: #ffffff;
  --logo-sub: #174a24;
  --line: rgba(4, 39, 15, .32);
  --focus: #ffffff;
  --plate: #e4e4e4;
  --plate-edge: rgba(0, 0, 0, .22);
  --key: #fbfbfb;
  --key-edge: #9a9a9a;
  --recess: #b9b9b9;

  --font: "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif;
  --measure: 38rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #001701;
  --ink: #aaaaaa;
  --head: #d6d6d6;
  --logo: #f1f4f1;
  --logo-sub: #78a779;
  --line: rgba(170, 170, 170, .30);
  --focus: #78a779;
  --plate: #6c6c6c;
  --plate-edge: rgba(0, 0, 0, .6);
  --key: #3a3a3a;
  --key-edge: #1d1d1d;
  --recess: #4b4b4b;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #001701;
    --ink: #aaaaaa;
    --head: #d6d6d6;
    --logo: #f1f4f1;
    --logo-sub: #78a779;
    --line: rgba(170, 170, 170, .30);
    --focus: #78a779;
    --plate: #6c6c6c;
    --plate-edge: rgba(0, 0, 0, .6);
    --key: #3a3a3a;
    --key-edge: #1d1d1d;
    --recess: #4b4b4b;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.6;
  text-align: center;
  transition: background-color .35s ease, color .35s ease;
}

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

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

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

.skip {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 10;
  padding: .6rem 1rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  transition: top .15s;
}
.skip:focus { top: 1rem; }

/* ---------- Logo ---------- */

.logo { display: inline-block; line-height: 0; text-decoration: none; }
.logo-svg {
  display: block;
  width: 7.4rem;
  height: auto;
  overflow: visible;
}
.logo-svg .kloss { fill: var(--logo); }
.logo-svg .pa-dunkel { display: none; }
:root[data-theme="dark"] .logo-svg .pa-hell { display: none; }
:root[data-theme="dark"] .logo-svg .pa-dunkel { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .logo-svg .pa-hell { display: none; }
  :root:not([data-theme]) .logo-svg .pa-dunkel { display: inline; }
}

/* ---------- Kopf & Navigation ---------- */

.site-header {
  padding: clamp(.75rem, 3vw, 1.5rem) var(--gutter) 0;
}
.site-header .logo { margin-top: clamp(1.25rem, 4vw, 2rem); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 .75rem;
}
.site-nav a {
  display: inline-block;
  padding: .7rem .6rem;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { border-bottom-color: currentColor; }
.site-nav a[aria-current="page"] {
  font-weight: 400;
  border-bottom-color: currentColor;
}

/* ---------- Inhalt ---------- */

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.5rem) var(--gutter) 3rem;
}

h1, h2, h3 { font-weight: 300; line-height: 1.25; margin: 0; color: var(--head); }
.lead--gross { color: var(--head); }
h1 { font-size: clamp(1.6rem, 4.6vw, 2.1rem); }
h2 { font-size: clamp(1.3rem, 3.6vw, 1.55rem); margin-top: 3rem; }
h3 { font-size: 1.125rem; font-weight: 400; margin-top: 2rem; }

p { margin: 1rem 0 0; }
.lead { font-size: 1.25rem; margin-top: .4rem; }

.rule {
  margin: 2.25rem auto;
  line-height: 1;
  font-size: .9rem;
  letter-spacing: 0;
}

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

/* ---------- Pro audio ---------- */

.leistungen { margin-top: 2.5rem; }
.leistungen .gruppe { margin: 0; }
.leistungen .gruppe + .gruppe { margin-top: 0; }
.leistungen .gruppe-titel { margin: 0; }
.leistungen .gruppe ul { margin-top: 0; }

.plain.schritte { margin-top: 1.75rem; }
.schritte li { margin: 0 auto 1.1rem; max-width: 30rem; font-size: 1.0625rem; }

/* ---------- Tools / Kunden (Raster) ---------- */

.raster {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
}
.raster--schmal { grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); gap: .55rem 1.5rem; }
.wide { max-width: 56rem; }

.raster dt, .raster .hersteller { font-weight: 400; }
.raster dd { margin: 0; font-size: 1rem; }
.raster > div { margin: 0; }

/* ---------- Referenzen ---------- */

.hinweis {
  display: inline-block;
  margin-top: 1.75rem;
  padding: .25rem 1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 1rem;
}

.plakate {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 2.5rem;
}
.plakat {
  display: block;
  width: 13.3rem;
  text-decoration: none;
}
.plakat img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 .75rem 1.5rem -.75rem rgba(0, 0, 0, .55);
  transition: transform .25s ease, box-shadow .25s ease;
}
.plakat:hover img, .plakat:focus-visible img {
  transform: translateY(-3px);
  box-shadow: 0 1.1rem 1.8rem -.8rem rgba(0, 0, 0, .6);
}
.plakat span { display: block; margin-top: .85rem; font-size: 1rem; }
.plakat:hover span { text-decoration: underline; text-underline-offset: .2em; }

.video-rahmen { margin: 2rem auto 0; max-width: 46rem; }
video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 2px;
}
.zurueck { margin-top: 2rem; font-size: 1rem; }

/* ---------- Kontakt ---------- */

.kontakt-liste {
  display: grid;
  grid-template-columns: auto;
  justify-content: center;
  gap: .25rem 0;
  margin: 2rem 0 0;
}
.kontakt-liste dt { font-size: .95rem; margin-top: 1.1rem; }
.kontakt-liste dd { margin: 0; font-size: 1.375rem; }
.kontakt-liste a { text-decoration: none; border-bottom: 1px solid var(--line); }
.kontakt-liste a:hover { border-bottom-color: currentColor; }
address { font-style: normal; }

/* ---------- Rechtstexte ---------- */

.text-links {
  text-align: left;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
  font-size: 1.0625rem;
}
.text-links h1 { text-align: center; }
.text-links h2 { font-size: 1.3rem; font-weight: 400; margin-top: 2.5rem; }
.text-links h3 { font-size: 1.0625rem; margin-top: 1.5rem; }
.text-links ul { padding-left: 1.25rem; margin: .75rem 0 0; }
.text-links li { margin-top: .3rem; }

.anbieter { text-align: center; margin-top: 2.25rem; }
.anbieter p { margin-top: .25rem; }
.anbieter .abstand { margin-top: 1.25rem; }

.portrait {
  display: block;
  width: 128px; height: 128px;
  margin: 2.5rem auto 0;
  border-radius: 50%;
}

/* ---------- Startseite ---------- */

.hero {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem var(--gutter) 1rem;
  text-align: center;
}
.hero h1 { margin: 0; line-height: 0; }
.hero .logo-svg { width: clamp(10rem, 40vw, 15rem); }
.tagline { margin: 1.75rem 0 0; font-size: 1.0625rem; }

/* ---------- Fuß & Lichtschalter ---------- */

.site-footer {
  padding: 1.5rem var(--gutter) 2.25rem;
  font-size: .95rem;
}
.site-footer ul {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.25rem;
}
.site-footer a { display: inline-block; padding: .45rem 0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer small { display: block; margin-top: .35rem; font-size: .85rem; }

.schalter {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: url("../assets/schalter-an.jpg") center / 100% 100% no-repeat;
  cursor: pointer;
  vertical-align: middle;
}
.schalter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/schalter-aus.jpg") center / 100% 100% no-repeat;
  opacity: 0;
}
.schalter[aria-checked="false"]::before { opacity: 1; }
.schalter::after { content: ""; position: absolute; inset: -.6rem -.9rem; } /* größere Klickfläche */
.schalter:focus-visible { outline-offset: 4px; border-radius: 0; }
a.schalter { text-decoration: none; }
a.schalter[data-aus]::before { opacity: 1; }

/* ---------- Spezialseiten (Warnung, Aus) ---------- */

body.warnung {
  --bg: #001701;
  --ink: #ff2600;
  justify-content: center;
  align-items: center;
  font-size: 1.125rem;
}
body.warnung main.box { flex: 0 0 auto; width: auto; max-width: 16rem; padding: 2rem 1.25rem; }
body.warnung p { margin: 0; }
/* Roter Glas-Knopf mit Chromrahmen (eigene Vektorgrafik). Ungedrückt = erhaben,
   gedrückt/blinkend = Glas sinkt ein und leuchtet. */
.druckknopf {
  position: relative;
  display: inline-block;
  width: 5.6rem;
  height: 5.6rem;
  vertical-align: middle;
  cursor: pointer;
  text-decoration: none;
  border-radius: 50%;
  outline: none;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}
.druckknopf:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.druckknopf:focus:not(:focus-visible) { outline: none; }
.warn-overlay .druckknopf:focus:not(:focus-visible) { outline: none; box-shadow: none; }
.knopf-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 .35rem .45rem rgba(0, 0, 0, .5));
  user-select: none;
}
.knopf-svg .glas { transform-origin: 100px 100px; transition: transform .1s ease; }
.knopf-svg .innenschatten, .knopf-svg .glanz-hell { transition: opacity .1s ease; }
.knopf-svg .innenschatten { opacity: 0; }
.knopf-svg .licht { opacity: 0; }

.druckknopf:active .glas, .druckknopf.gedrueckt .glas { transform: scale(.91); }
.druckknopf:active .innenschatten, .druckknopf.gedrueckt .innenschatten { opacity: .85; }
.druckknopf:active .glanz-hell, .druckknopf.gedrueckt .glanz-hell { opacity: .35; }

.druckknopf.blinkt { animation: knopf-glut 1.1s ease-in-out infinite; }
.druckknopf.blinkt .licht { animation: knopf-blinken 1.1s ease-in-out infinite; }
@keyframes knopf-blinken { 0%, 100% { opacity: 0; } 45%, 60% { opacity: 1; } }
@keyframes knopf-glut {
  0%, 100% { filter: none; }
  45%, 60% { filter: drop-shadow(0 0 .8rem rgba(255, 38, 0, .85)); }
}
@media (prefers-reduced-motion: reduce) {
  .knopf-svg .glas, .knopf-svg .innenschatten, .knopf-svg .glanz-hell { transition: none; }
  .druckknopf.blinkt { animation: none; filter: drop-shadow(0 0 .8rem rgba(255, 38, 0, .85)); }
  .druckknopf.blinkt .licht { animation: none; opacity: 1; }
}

/* Schrift: weiß mit schwarzer Umrandung, leicht abgenutzt, gerade */
.knopf-svg text {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: .3px;
  text-anchor: middle;
  fill: #fff;
  stroke: #000;
  stroke-width: 3.2px;
  stroke-linejoin: round;
  paint-order: stroke fill;
}
body.warnung .box .druckknopf { margin-top: 1.5rem; }
.site-footer a.druckknopf { padding: 0; margin-bottom: .1rem; }

/* Wechsel auf der Impressum-Seite: Warnung blendet über die Seite, der Knopf bleibt an seinem Platz */
.warn-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #001701;
  opacity: 0;
  transition: opacity .5s ease;
}
.warn-overlay.sichtbar { opacity: 1; }
.warn-overlay .warn-text {
  position: absolute;
  left: 50%;
  width: min(16rem, 90vw);
  margin: 0;
  transform: translateX(-50%);
  text-align: center;
  color: #ff2600;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.5;
  opacity: 0;
  transition: opacity .6s ease .35s;
}
.warn-overlay.sichtbar .warn-text { opacity: 1; }
.warn-overlay .druckknopf { position: absolute; }

body.geloescht, body.aus {
  --bg: #000;
  --ink: #fff;
  background: #000;
}
body.geloescht { text-align: left; align-items: stretch; }
body.geloescht main { max-width: none; width: 100%; padding: 0; display: flex; }
body.geloescht .vollflaeche {
  flex: 1;
  display: block;
  padding: 2rem var(--gutter);
  color: #fff;
  text-decoration: none;
  cursor: default;
}
body.geloescht .konsole {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 400;
  font-size: 1rem;
}
.cursor { animation: blinken 1.1s steps(1) infinite; }
@keyframes blinken { 50% { opacity: 0; } }
body.aus main { flex: 1 0 auto; padding: 0; }

.fehler main { padding-top: 4rem; }

/* Versteckter Knopf im Impressum */
.nicht-druecken {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  color: #6b0d00;
  font-size: 1rem;
  line-height: 1.3;
}
:root[data-theme="dark"] .nicht-druecken { color: #ff2600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .nicht-druecken { color: #ff2600; } }

/* ---------- Bewegung & Druck ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 30rem) {
  body { font-size: 1.0625rem; }
  .site-header { padding-left: .5rem; padding-right: .5rem; }
  .site-nav ul { gap: 0 .1rem; }
  .site-nav a { padding: .75rem .4rem; font-size: .95rem; }
}

@media print {
  body { background: #fff; color: #000; }
  .schalter, .skip, .site-nav { display: none; }
}

/* ---------- Kundenlogos ---------- */
.logos {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.75rem 2.5rem;
}
.logos li { display: flex; align-items: center; min-height: 3rem; }
/* einheitlich einfarbig: dunkel auf Grün, hell auf Dunkel */
.logos img {
  display: block;
  height: 3rem;
  width: auto;
  max-width: 9rem;
  object-fit: contain;
  filter: brightness(0);
  opacity: .8;
}
:root[data-theme="dark"] .logos img { filter: brightness(0) invert(.8); opacity: .9; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .logos img { filter: brightness(0) invert(.8); opacity: .9; }
}
.logo-text { font-size: 1.125rem; font-weight: 400; letter-spacing: .02em; }

/* ---------- Infotext (pro audio) ---------- */
.info { text-align: left; hyphens: auto; -webkit-hyphens: auto; font-size: 1.0625rem; margin-top: 2.25rem; }

/* ---------- Einleitungstexte ---------- */
.intro { max-width: 34rem; margin: 1rem auto 0; font-size: 1.0625rem; }
.home-text { max-width: 30rem; margin: .9rem auto 0; font-size: 1rem; }
.info h2 { font-size: 1.125rem; font-weight: 400; margin-top: 1.75rem; text-align: left; }

.lead--gross { font-size: clamp(1.3rem, 3.8vw, 1.6rem); font-weight: 300; margin-top: 2.25rem; line-height: 1.25; }

/* ---------- Ladeseite (nach dem Knopf) ---------- */
body.laden {
  --bg: #001701;
  background: #001701;
  align-items: center;
  justify-content: center;
  animation: laden-flackern .9s steps(1, end) forwards;
}
/* kurzes, dezentes Aufflackern (wenige, schwache Helligkeitswechsel) */
@keyframes laden-flackern {
  0% { background: #001701; }
  12% { background: #0d300f; }
  24% { background: #001701; }
  36% { background: #091f0b; }
  48% { background: #000; }
  60% { background: #0d300f; }
  72% { background: #000; }
  100% { background: #000; }
}
main.laden-box {
  flex: 0 0 auto;
  width: min(20rem, 72vw);
  padding: 0;
  opacity: 0;
  animation: laden-zeigen 0s linear .9s forwards;
}
@keyframes laden-zeigen { to { opacity: 1; } }
.balken { height: .5rem; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.balken-fuell { height: 100%; width: 0; border-radius: 999px; background: #fff; }
@keyframes laden-fuellen { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  body.laden { animation: none; background: #000; }
  main.laden-box { animation: none; opacity: 1; }
}
