:root {
  --page-max: 600px;
  --outside: #e8e3d8;
  --bg: #050505;
  --ink: #ffffff;
  --muted: rgba(255,255,255,.58);
  --line: rgba(255,255,255,.18);
  --font: "DIN Alternate", "DIN Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  margin: 0;
  background: var(--outside);
  color: var(--ink);
  font-family: var(--body);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #f3efe7;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

.qr-shell {
  display: flex;
  flex-direction: column;

  width: 100%;
  max-width: var(--page-max);
  min-height: 100vh;
  margin: 0 auto;
  padding:
    max(18px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    0
    max(20px, env(safe-area-inset-left));

  background: var(--bg);
  color: var(--ink);

  border-inline: 1px solid var(--line);
}

.qr-setzung {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.qr-kicker,
.qr-section-label {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.qr-kicker {
  margin-bottom: 10px;
}

.qr-statement {
  max-width: 470px;
  margin: 0 0 16px;
  font-family: var(--font);
  font-size: clamp(28px, 8.4vw, 40px);
  font-weight: 950;
  line-height: .92;
  letter-spacing: -.04em;
  text-transform: uppercase;
  text-wrap: balance;
  white-space: pre-line;
}

.qr-foundtext {
  max-width: 390px;
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.qr-intro {
  max-width: 420px;
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.38;
  color: rgba(255,255,255,.82);
  white-space: pre-line;
}

.qr-entry-fragment {
  max-width: 26ch;
  margin: 0 0 22px;
  font-family: var(--font);
  font-size: clamp(15px, 4.2vw, 17px);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -.01em;
  color: rgba(255,255,255,.9);
  white-space: pre-line;
}

.qr-entry-operator {
  margin: 0 0 10px;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.qr-entry-microsetzung {
  max-width: 320px;
  margin: 0 0 0;
  padding: 18px 0 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font);
  font-size: clamp(13px, 3.6vw, 15px);
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: pre-line;
}

.qr-entry-stop-signal {
  max-width: 18ch;
  margin: 0 auto 16px;
  padding: 16px 0;
  border-top: 2px solid var(--ink);
  font-family: var(--font);
  font-size: clamp(18px, 5vw, 26px);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -.03em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
  white-space: pre-line;
}

.qr-entry-threshold-time {
  max-width: 28ch;
  margin: 0 auto 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  color: var(--muted);
}

.qr-entry-threshold-time__label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.qr-entry-action {
  max-width: 28ch;
  margin: 0 0 8px;
  padding-bottom: 8px;
  font-family: var(--font);
  font-size: clamp(12px, 3.4vw, 14px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #111;
  white-space: pre-line;
}

.qr-entry-audio-fallback {
  margin: 0 0 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
  white-space: pre-line;
}

.qr-setzung--inactive .qr-footer--inactive {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.qr-setzung--has-statement .qr-player {
  margin-bottom: 16px;
  padding: 10px 0 12px;
}

.qr-setzung--has-microsetzung .qr-player {
  margin-bottom: 0;
  padding-bottom: 10px;
  border-bottom: 0;
}

.qr-player {
  margin-bottom: 32px;
  padding: 16px 0 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.qr-player-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.qr-player-info {
  min-width: 0;
  width: 100%;
  text-align: center;
}

.qr-player h2 {
  max-width: 420px;
  margin: 0 0 6px;
  font-family: var(--font);
  font-size: clamp(22px, 6.4vw, 32px);
  font-weight: 950;
  line-height: .98;
  letter-spacing: -.035em;
  text-transform: uppercase;
  text-wrap: balance;
}

.qr-player-status {
  font-size: 12px;
  color: var(--muted);
}

.qr-player-toggle {
  position: relative;
  z-index: 2;

  align-self: center;

  width: 84px;
  height: 84px;
  min-width: 84px;
  min-height: 84px;
  padding: 0;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;

  background: transparent;
  color: var(--ink);

  appearance: none;
  -webkit-appearance: none;

  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;

  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

/* Play-Symbol rein mit CSS – kein Emoji/Unicode */
.qr-player-toggle::before {
  content: "";

  width: 0;
  height: 0;

  margin-left: 5px;

  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 19px solid currentColor;
}

/* Pause-Symbol rein mit CSS */
.qr-player.is-playing .qr-player-toggle::before {
  width: 7px;
  height: 25px;

  margin-left: -12px;

  border: 0;
  background: currentColor;
  box-shadow: 14px 0 0 currentColor;
}

.qr-player-toggle:hover,
.qr-player-toggle:focus-visible,
.qr-player.is-playing .qr-player-toggle {
  background: var(--ink);
  color: var(--bg);
}

.qr-player-toggle:active {
  transform: scale(.96);
}

.qr-player-toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.qr-player-time {
  margin-top: 18px;
  text-align: center;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .06em;
  color: var(--muted);
}

.qr-player audio {
  display: none !important;
}

.qr-light-zone {
  display: flex;
  flex: 1;
  flex-direction: column;

  margin: 0 -20px 0;
  padding:
    22px
    20px
    max(22px, env(safe-area-inset-bottom));

  background: #f3efe7;
  color: #111;
}

.qr-light-zone .qr-entry-threshold-time {
  border-top-color: rgba(0, 0, 0, .16);
  color: rgba(0, 0, 0, .62);
}

.qr-light-zone .qr-entry-threshold-time__label {
  color: rgba(0, 0, 0, .45);
}

.qr-setzung--has-microsetzung .qr-light-zone {
  padding-top: 4px;
}

.qr-bottom {
  margin-top: auto;
  padding-top: 18px;
}

.qr-question {
  padding: 22px 0 24px;
  border: 0;
}

.qr-entry-question-text {
  max-width: 22ch;
  margin-top: 0;
  font-family: var(--body);
  font-size: clamp(19px, 5vw, 23px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.014em;
  text-wrap: pretty;
  color: #111;
  white-space: pre-line;
}

.qr-question-text {
  max-width: 36ch;
  margin-top: 0;
  font-family: var(--body);
  font-size: clamp(19px, 4.8vw, 22px);
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -.012em;
  text-wrap: pretty;
  color: #111;
}

.qr-question-text p {
  margin: 0;
}

.qr-actions {
  display: grid;
  padding: 6px 0 12px;
  border-top: 1px solid rgba(0,0,0,.16);
}

.qr-actions a {
  display: flex;
  align-items: center;
  min-height: 46px;
  border-bottom: 1px solid rgba(0,0,0,.16);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #111;
}

.qr-actions a:last-child {
  border-bottom: 0;
}

.qr-footer {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,.16);
  color: rgba(0,0,0,.58);
}

.qr-footer p {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.35;
}

.qr-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.qr-footer a {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #111;
}

.qr-footer a:hover,
.qr-footer a:focus-visible {
  opacity: .58;
}

@media (min-width: 700px) {
  .qr-shell {
    padding: 22px 26px 0;
    box-shadow: 0 30px 90px rgba(0,0,0,.22);
  }

  .qr-light-zone {
    margin-left: -26px;
    margin-right: -26px;
    margin-bottom: 0;
    padding-left: 26px;
    padding-right: 26px;
    padding-bottom: 30px;
  }
}

@media (max-width: 700px) {
  .qr-shell {
    max-width: none;
    border-inline: 0;
  }
}

@media (max-width: 480px) {
  .qr-statement {
    font-size: clamp(26px, 9vw, 34px);
    margin-bottom: 14px;
  }

  .qr-entry-fragment {
    margin-bottom: 18px;
    font-size: clamp(14px, 4.4vw, 16px);
  }

  .qr-entry-microsetzung {
    padding-top: 16px;
    padding-bottom: 18px;
  }

  .qr-player {
    margin-bottom: 20px;
  }

  .qr-setzung--has-statement .qr-player {
    margin-bottom: 14px;
  }

  .qr-player-head {
    gap: 12px;
  }

  .qr-player-toggle {
    width: 112px;
    height: 112px;
    min-width: 112px;
    min-height: 112px;
  }

  .qr-player-toggle::before {
    margin-left: 7px;
    border-top-width: 18px;
    border-bottom-width: 18px;
    border-left-width: 29px;
  }

  .qr-player.is-playing .qr-player-toggle::before {
    width: 10px;
    height: 36px;
    margin-left: -17px;
    box-shadow: 20px 0 0 currentColor;
  }
}
