/* Sprach-Tool — Digitaler Unternehmenserfolg
   CI: Schwarz #000000, Weiß #FFFFFF, Orange #FFA600

   Der Besucher kommt per QR-Code auf dem eigenen Handy hier an. Deshalb
   mobile first: große Flächen, wenig Text, pro Schirm nur eine Handlung. */

:root {
  --schwarz: #000000;
  --weiss: #ffffff;
  --orange: #ffa600;
  --grau-600: #5b6068;
  --grau-300: #d9dce1;
  --grau-100: #f4f5f7;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--weiss);
  color: var(--schwarz);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
           env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* ---------- Kopf ---------- */

.kopf {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  flex-shrink: 0;
}
.logo { height: 32px; width: auto; }

/* ---------- Schirme ---------- */

main {
  flex: 1;
  display: flex;
  align-items: flex-start;      /* nicht center: sonst schneidet Flexbox zu
                                   hohe Inhalte oben ab, statt zu scrollen */
  justify-content: center;
  padding: 12px 24px 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.schirm {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 620px;
  margin-block: auto;           /* zentriert, solange Platz ist */
  animation: auf .3s ease;
}
.schirm.aktiv { display: flex; }

@keyframes auf {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

h1 {
  font-size: clamp(27px, 6vw, 40px);
  line-height: 1.14;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}

.unter {
  font-size: clamp(15.5px, 2.2vw, 18px);
  color: var(--grau-600);
  line-height: 1.5;
  max-width: 30em;
  margin-bottom: 30px;
}

.hinweis {
  font-size: 15px;
  color: var(--grau-600);
  margin-top: 20px;
}

/* ---------- Format-Kacheln ---------- */

.kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  width: 100%;
}

.kachel {
  text-align: left;
  background: var(--grau-100);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 20px 22px;
  cursor: pointer;
  font-family: inherit;
  color: var(--schwarz);
  transition: border-color .12s ease, background .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.kachel:active { border-color: var(--orange); background: var(--weiss); }
@media (hover: hover) {
  .kachel:hover { border-color: var(--orange); background: var(--weiss); }
}
.kachel strong { display: block; font-size: 18px; margin-bottom: 4px; letter-spacing: -.01em; }
.kachel span { font-size: 14px; color: var(--grau-600); line-height: 1.45; }

.zurueck {
  margin-top: 28px;
  background: none;
  border: none;
  color: var(--grau-600);
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Mikrofon ---------- */

.mikro {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  border: none;
  background: var(--schwarz);
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  transition: transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.mikro:active { transform: scale(.96); }
.mikro svg { width: 72px; height: 72px; fill: var(--weiss); }

.mikro::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 3px solid var(--orange);
  opacity: 0;
  animation: puls 2.6s ease-out infinite;
}
@keyframes puls {
  0%   { opacity: .9; transform: scale(.9); }
  70%  { opacity: 0;  transform: scale(1.12); }
  100% { opacity: 0;  transform: scale(1.12); }
}

/* ---------- Aufnahme ---------- */

.laeuft {
  font-size: clamp(23px, 4vw, 30px);
  font-weight: 600;
  margin-bottom: 28px;
}
.laeuft::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: punkte 1.4s steps(4, end) infinite;
}
@keyframes punkte {
  0%   { content: ""; }
  25%  { content: "."; }
  50%  { content: ".."; }
  75%  { content: "..."; }
}

.pegel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 104px;
  margin-bottom: 20px;
}
.pegel span {
  display: block;
  width: 8px;
  border-radius: 999px;
  background: var(--orange);
  height: 10px;
  transition: height .09s ease-out;
}

.timer {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  color: var(--grau-600);
  margin-bottom: 30px;
}

.stop {
  background: var(--schwarz);
  color: var(--weiss);
  border: none;
  border-radius: 999px;
  padding: 19px 64px;
  font-size: 19px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* ---------- Verarbeitung ---------- */

.spinner {
  width: 58px;
  height: 58px;
  border: 5px solid var(--grau-300);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: dreh .85s linear infinite;
  margin-bottom: 28px;
}
@keyframes dreh { to { transform: rotate(360deg); } }

.arbeit-text {
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 600;
  min-height: 2.6em;
  max-width: 20em;
  line-height: 1.35;
}

/* ---------- Ergebnis ---------- */

#schirmErgebnis { text-align: left; align-items: stretch; max-width: 760px; }

.ergebnis-kopf { margin-bottom: 18px; }

.marke {
  display: inline-block;
  background: var(--orange);
  color: var(--schwarz);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

#ergebnisTitel {
  font-size: clamp(21px, 3.2vw, 27px);
  line-height: 1.2;
  letter-spacing: -.015em;
}

.dokument {
  background: var(--grau-100);
  border-radius: var(--radius);
  padding: 22px 24px;
  max-height: 46dvh;
  overflow-y: auto;
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-overflow-scrolling: touch;
}
.dokument h4 { font-size: 16px; margin: 18px 0 7px; letter-spacing: -.01em; }
.dokument h4:first-child { margin-top: 0; }
.dokument p { margin-bottom: 11px; }
.dokument ul { margin: 0 0 13px 20px; }
.dokument li { margin-bottom: 5px; }

.tab-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 14px; }
.dokument table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 420px; }
.dokument th {
  text-align: left;
  border-bottom: 2px solid var(--grau-300);
  padding: 7px 10px 7px 0;
  font-size: 13px;
  white-space: nowrap;
}
.dokument td {
  border-bottom: 1px solid var(--grau-300);
  padding: 8px 10px 8px 0;
  vertical-align: top;
}

.doku-hinweis {
  margin-top: 16px;
  padding: 12px 15px;
  background: var(--weiss);
  border-left: 3px solid var(--orange);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--grau-600);
}

/* ---------- PDF-Download ---------- */

.laden {
  display: block;
  width: 100%;
  margin-top: 20px;
  background: var(--orange);
  color: var(--schwarz);
  border-radius: 12px;
  padding: 19px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.laden-hinweis {
  font-size: 13px;
  color: var(--grau-600);
  text-align: center;
  margin-top: 9px;
}

.neu {
  margin-top: 24px;
  background: none;
  border: 2px solid var(--grau-300);
  border-radius: 999px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  align-self: center;
  font-family: inherit;
  color: var(--schwarz);
}

/* ---------- Fehler ---------- */

.fehler-text {
  font-size: 19px;
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 24em;
}

/* ---------- Fußzeile ---------- */

.fuss {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 18px;
  padding: 14px 24px 20px;
  font-size: 11.5px;
  color: var(--grau-600);
  text-align: center;
}
.fuss a { color: var(--grau-600); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Beispielsatz auf dem Aufnahme-Schirm ---------- */

.beispiel {
  margin-top: 26px;
  background: var(--grau-100);
  border-radius: 14px;
  padding: 16px 18px;
  text-align: left;
  max-width: 34em;
}
.beispiel-kopf {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grau-600);
  margin-bottom: 7px;
}
.beispiel p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--grau-600);
  font-style: italic;
}

/* ---------- Weiterleiten ---------- */

.teilen {
  width: 100%;
  margin-top: 10px;
  background: none;
  border: 2px solid var(--grau-300);
  border-radius: 12px;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  color: var(--schwarz);
  cursor: pointer;
}

/* ---------- Foto-Format ---------- */

.kachel-foto { border-color: var(--grau-300); }

.mikro-kamera svg { width: 66px; height: 66px; }
