/* =========================================================
   Werteanalyse – Hohensee Coaching
   Gestaltung angelehnt an hohensee-coaching.de
   ========================================================= */

/* Schriften: Dateien aus dem Theme-Ordner von hohensee-coaching.de
   in den Unterordner /fonts kopieren (siehe LIESMICH.txt).
   Fehlen sie, greifen die Ersatzschriften. */
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal; font-weight: 400; font-display: swap;
  src: local('Roboto Condensed'), local('RobotoCondensed-Regular'),
       url('fonts/roboto-condensed-v16-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal; font-weight: 700; font-display: swap;
  src: local('Roboto Condensed Bold'), local('RobotoCondensed-Bold'),
       url('fonts/roboto-condensed-v16-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal; font-weight: 400; font-display: swap;
  src: local('Roboto'), local('Roboto-Regular'),
       url('fonts/roboto-v18-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: italic; font-weight: 400; font-display: swap;
  src: local('Roboto Italic'), local('Roboto-Italic'),
       url('fonts/roboto-v18-latin-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal; font-weight: 500; font-display: swap;
  src: local('Roboto Medium'), local('Roboto-Medium'),
       url('fonts/roboto-v18-latin-500.woff2') format('woff2');
}

:root {
  --akzent: #a02b38;
  --akzent-dunkel: #85222e;
  --akzent-hell: #f6ecee;
  --text: #343434;
  --text-leise: #696969;
  --linie: #747473;
  --flaeche: #dedfdf;
  --flaeche-hell: #f2f2f2;
  --rahmen: #4b4c4d;
  --weiss: #ffffff;

  --schrift-titel: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
  --schrift-text: 'Roboto', Arial, sans-serif;
  --schrift-zitat: Cambria, Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--rahmen);
  color: var(--text);
  font-family: var(--schrift-titel);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 1240px;
  margin: 5px auto;
  background: var(--weiss);
  min-height: calc(100vh - 10px);
  display: flex;
  flex-direction: column;
}

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

[hidden] { display: none !important; }

/* ---------- Kopf ---------- */
.kopf { padding: 42px 22px 28px; }
.logo { display: inline-block; }
.logo img { display: block; width: 250px; max-width: 70vw; height: auto; }

/* ---------- Inhalt ---------- */
.inhalt { flex: 1; padding: 0 22px 48px; }

@media (min-width: 992px) {
  .kopf { padding: 70px 70px 48px; }
  .inhalt { padding: 0 70px 64px; }
  body { font-size: 15.5px; }
}

h1, h2, h3 { font-weight: 400; letter-spacing: 1px; line-height: 1.3; margin: 0; }

/* Markenzeichen: rote Überschrift mit kursivem Schrägstrich */
h1 {
  position: relative;
  color: var(--akzent);
  font-size: 1.6em;
  margin: 0 0 1.4em 30px;
}
h1::before {
  content: '/';
  position: absolute;
  left: -30px; top: -0.15em;
  font-style: italic;
  font-weight: 600;
  font-size: 1.35em;
}

h2 { font-size: 1.25em; margin: 1.8em 0 0.7em; color: var(--text); }

p, li { font-family: var(--schrift-text); letter-spacing: .3px; }
p { margin: 0 0 .8em; }
strong { font-weight: 500; }
.leise { color: var(--text-leise); }

.zitat {
  font-family: var(--schrift-zitat);
  font-style: italic;
  font-size: 1.35em;
  color: var(--akzent);
  margin: -.6em 0 1.4em;
}

.spalten { display: grid; gap: 0 56px; }
@media (min-width: 860px) { .spalten { grid-template-columns: 1fr 1fr; } }

.ablauf { list-style: none; counter-reset: schritt; padding: 0; margin: 0; }
.ablauf li { counter-increment: schritt; position: relative; padding-left: 2em; margin-bottom: .9em; }
.ablauf li::before {
  content: counter(schritt) ".";
  position: absolute; left: 0;
  color: var(--akzent);
  font-family: Verdana, sans-serif;
}

/* ---------- Schaltflächen ---------- */
button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }

.btn-primaer {
  display: inline-block;
  border: 0;
  background: var(--akzent);
  color: var(--weiss);
  font-family: var(--schrift-titel);
  letter-spacing: 1px;
  padding: 11px 30px;
  border-radius: 7px;
  transform: skew(-6deg);
  transition: background .2s;
}
.btn-primaer:hover:not(:disabled), .btn-primaer:focus-visible { background: var(--akzent-dunkel); }
.btn-primaer:disabled { background: var(--flaeche); color: var(--text-leise); }

.btn-text {
  border: 0;
  background: none;
  color: var(--akzent);
  font-family: var(--schrift-text);
  font-style: italic;
  padding: 10px 14px;
}
.btn-text:hover, .btn-text:focus-visible { text-decoration: underline; }

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

.aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 2em; }
.aktionen-klein { justify-content: center; margin-top: 1.6em; }

.link-pfeil { color: var(--akzent); font-family: var(--schrift-text); font-style: italic; text-decoration: none; }
.link-pfeil::before { content: '/ '; font-weight: 600; }
.link-pfeil:hover { text-decoration: underline; }

/* ---------- Auswahl ---------- */
.suche input {
  display: block;
  width: 100%;
  max-width: 340px;
  padding: 9px 16px;
  margin: 1em 0 1.4em;
  border: 0;
  background: var(--flaeche);
  border-radius: 7px;
  transform: skew(-6deg);
  font-family: var(--schrift-text);
  font-size: 1em;
  color: var(--text);
}

.werte-liste {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px 10px;
  padding-bottom: 110px; /* Platz für die Leiste */
}

.wert-chip {
  text-align: left;
  border: 1px solid transparent;
  background: var(--flaeche-hell);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 6px;
  transform: skew(-6deg);
  font-family: var(--schrift-titel);
  letter-spacing: .5px;
  transition: background .15s, color .15s, border-color .15s;
  overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto;
}
.wert-chip > span { display: inline-block; transform: skew(6deg); }
@media (hover: hover) { .wert-chip:hover:not(:disabled) { border-color: var(--akzent); } }
.wert-chip[aria-pressed="true"] { background: var(--akzent); color: var(--weiss); }
.wert-chip:disabled { opacity: .4; }

.leiste {
  position: sticky;
  bottom: 0;
  margin: 0 -22px;
  padding: 14px 22px;
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--akzent);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  z-index: 10;
}
@media (min-width: 992px) { .leiste { margin: 0 -70px; padding: 16px 70px; } }
.leiste-info { display: flex; flex-direction: column; font-family: var(--schrift-text); }
.leiste-info #zaehler { font-weight: 500; }
.leiste-info .leise { font-size: .9em; }
.leiste-aktionen { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
@media (max-width: 480px) { .leiste-aktionen { width: 100%; justify-content: space-between; } .leiste .btn-primaer { padding: 11px 20px; } }

/* ---------- Vergleich ---------- */
.fortschritt { height: 3px; background: var(--flaeche); margin-bottom: 1em; }
#fortschritt-balken { height: 100%; width: 0; background: var(--akzent); transition: width .25s ease; }

.vergleich-status { color: var(--text-leise); font-size: .95em; margin-bottom: 2em; }
.vergleich-frage { margin-bottom: 1.6em; }

.duell {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}
@media (min-width: 700px) { .duell { grid-template-columns: 1fr auto 1fr; gap: 24px; } }

.karte {
  min-height: 150px;
  padding: 26px 20px;
  border: 1px solid var(--linie);
  background: var(--weiss);
  border-radius: 8px;
  transform: skew(-6deg);
  font-family: var(--schrift-zitat);
  font-style: italic;
  font-size: clamp(1.45rem, 3.4vw, 2.1rem);
  color: var(--akzent);
  line-height: 1.25;
  overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.karte > span { display: inline-block; transform: skew(6deg); }
.karte:hover, .karte:focus-visible {
  border-color: var(--akzent);
  box-shadow: 0 4px 18px rgba(160,43,56,.15);
}
.karte.gewaehlt { background: var(--akzent); color: var(--weiss); border-color: var(--akzent); }

.oder {
  align-self: center; justify-self: center;
  font-family: var(--schrift-zitat); font-style: italic;
  color: var(--text-leise);
}
.hinweis { text-align: center; font-size: .9em; margin-top: 1em; }
@media (hover: none) { .hinweis { display: none; } }

/* ---------- Ergebnis ---------- */
.druck-datum { display: none; }

.top-werte { display: grid; gap: 14px; margin-bottom: 1em; }
#rang-hinweis { margin-top: .8em; font-size: .9em; }
@media (min-width: 760px) { .top-werte { grid-template-columns: repeat(3, 1fr); } }

.top-wert {
  border-top: 1px solid var(--akzent);
  padding-top: 14px;
}
.top-wert .platz { color: var(--text-leise); font-size: .9em; letter-spacing: 1px; }
.top-wert .name {
  display: block;
  font-family: var(--schrift-zitat); font-style: italic;
  font-size: 1.9em; color: var(--akzent); line-height: 1.2;
  margin: .15em 0 .2em;
  overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto;
}
.top-wert .punkte { font-family: var(--schrift-text); font-size: .9em; color: var(--text-leise); }

.rangliste { list-style: none; padding: 0; margin: 0; max-width: 760px; }
.rangliste li {
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr) 4.5em;
  align-items: center;
  gap: 4px 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--flaeche);
}
.rangliste .rang { color: var(--akzent); font-family: Verdana, sans-serif; font-size: .9em; text-align: right; }
.rangliste .wert-zeile { min-width: 0; }
.rangliste .wert-name { display: block; font-family: var(--schrift-titel); letter-spacing: .5px; }
.rangliste .balken { display: block; height: 5px; background: var(--flaeche); border-radius: 3px; margin-top: 4px; overflow: hidden; }
.rangliste .balken > div { height: 100%; background: var(--akzent); }
.rangliste .zahl { text-align: right; font-family: var(--schrift-text); font-size: .9em; color: var(--text-leise); }

.spannungen {
  margin-top: 2.4em;
  padding: 22px 24px;
  background: var(--akzent-hell);
  border-radius: 8px;
  max-width: 760px;
}
.spannungen h2 { margin-top: 0; }
.spannungen ul { margin: .4em 0 .8em; padding-left: 1.2em; }
.spannungen li { margin-bottom: .3em; }
.spannungen .kreis { font-family: var(--schrift-zitat); font-style: italic; color: var(--akzent); }

.einladung { margin-top: 3em; padding-top: 1.6em; border-top: 1px solid var(--akzent); max-width: 760px; }
.einladung h2 { margin-top: 0; }

/* ---------- Fuß ---------- */
.fuss {
  padding: 18px 22px 26px;
  display: flex; gap: 22px;
  font-family: var(--schrift-titel);
}
.fuss a { color: #999; text-decoration: none; font-size: .95em; }
.fuss a + a::before { content: '/'; margin-right: 22px; font-style: italic; font-weight: 600; }
.fuss a:hover { color: var(--akzent); }
@media (min-width: 992px) { .fuss { padding: 22px 70px 30px; } }

/* ---------- Meldung ---------- */
.meldung {
  position: fixed; left: 50%; bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--text); color: var(--weiss);
  padding: 10px 20px; border-radius: 6px;
  font-family: var(--schrift-text); font-size: .95em;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 50;
}
.meldung.sichtbar { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Druck ---------- */
@media print {
  @page { margin: 18mm 16mm; }
  body { background: #fff; font-size: 11pt; }
  .page { margin: 0; min-height: 0; max-width: none; }
  .kopf { padding: 0 0 10mm; }
  .inhalt { padding: 0; }
  .keine-druck, .fuss, .meldung { display: none !important; }
  .druck-datum { display: block; color: var(--text-leise); margin: -1em 0 1.4em; }
  .top-werte { grid-template-columns: repeat(3, 1fr); }
  .rangliste li { break-inside: avoid; padding: 4px 0; }
  .spannungen { break-inside: avoid; border: 1px solid var(--akzent); }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Zugangscode ---------- */
.code-form { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: 1.6em 0 .6em; }
.code-form input {
  width: 240px; max-width: 100%;
  padding: 10px 16px;
  border: 0; border-radius: 7px;
  background: var(--flaeche);
  transform: skew(-6deg);
  font-family: var(--schrift-titel); font-size: 1.1em; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text);
}
.fehler { color: var(--akzent); font-family: var(--schrift-text); font-style: italic; min-height: 1.4em; margin: .4em 0 0; }

/* ---------- Formular ---------- */
.schmal { max-width: 640px; }
.formular {
  display: grid; gap: 14px 26px;
  max-width: 680px; margin-top: 1.6em;
}
@media (min-width: 640px) { .formular { grid-template-columns: 1fr 1fr; } }
.formular .einwilligung, .formular .fehler, .formular .aktionen { grid-column: 1 / -1; }
.formular .aktionen { margin-top: .4em; }
.feldgruppe label { display: block; font-family: var(--schrift-titel); letter-spacing: .5px; margin-bottom: 4px; }
.feldgruppe label span { color: var(--akzent); }
.feldgruppe input {
  display: block; width: 100%;
  padding: 9px 15px;
  border: 1px solid transparent; border-radius: 7px;
  background: var(--flaeche);
  transform: skew(-6deg);
  font-family: var(--schrift-text); font-size: 1em; color: var(--text);
}
.feldgruppe input:focus { outline: none; border-color: var(--akzent); background: var(--weiss); }
.einwilligung {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start;
  font-family: var(--schrift-text); font-size: .92em; line-height: 1.55; color: var(--text-leise);
  margin-top: .4em;
}
.einwilligung input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--akzent); }
.einwilligung a { color: var(--akzent); }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Ergebnis (Top 3) ---------- */
.top-wert .name { font-size: 2.2em; }
.ausblick { max-width: 680px; margin-top: 2.4em; padding-top: 1.6em; border-top: 1px solid var(--akzent); }
a.btn-primaer { text-decoration: none; text-align: center; }
.btn-gross { padding: 14px 34px; font-size: 1.08em; }
.feldgruppe label span.leise { color: var(--text-leise); }
