@font-face {
  font-family: 'Printvetica';
  src: url('fonts/PRINTVETICA.OTF') format('opentype');
  font-display: swap;
}
@font-face {
  font-family: 'Fournier Pro';
  src: url('fonts/FOURNIERMTPRO-REGULAR.TTF') format('truetype');
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fournier Pro';
  src: url('fonts/FOURNIERMTPRO-ITALIC.TTF') format('truetype');
  font-style: italic;
  font-display: swap;
}

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

:root {
  --ink: #000;
  --paper: #fff;
  --muted: #6b6b6b;
  --line: #000;
}

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Fournier Pro', 'Times New Roman', serif;
  /* Roman/Regular: ligatures off (clean, technical look) */
  font-feature-settings: "liga" 0, "dlig" 0;
  font-variant-ligatures: no-common-ligatures no-discretionary-ligatures;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

/* Italic: ligatures on (organic, fluid look) */
em, i,
.top .title em,
.intro h2, .intro p,
.option,
.result .score-of, .result .tag, .result .text,
footer .footer-tagline, footer,
.vokabular-line em, .vokabular-ref, .vokabular-search, .vokabular-empty,
.impressum-line {
  font-feature-settings: "liga", "dlig";
  font-variant-ligatures: common-ligatures discretionary-ligatures;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.head, .step, .label, .meta, .num, .button-prompt {
  font-family: 'Printvetica', 'Helvetica Neue', sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(8rem, 14vh, 11rem) clamp(1.5rem, 6vw, 4rem) clamp(2rem, 6vw, 5rem);
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
}

/* Top bar — single row, big logo absolutely centered, title left, menu right.
   Title and menu align with the top of the logo (»Mut«). */
.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--paper);
  z-index: 5;
  border-bottom: 1px solid var(--ink);
  padding: 1.1rem clamp(1.5rem, 4vw, 3rem) 1.4rem;
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-family: 'Printvetica', sans-serif;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow 220ms cubic-bezier(.2, .8, .2, 1);
}
.top.is-scrolled {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
@media (prefers-reduced-motion: reduce) {
  .top { transition: none; }
}

.top .brand {
  position: absolute;
  left: 50%;
  top: 0.4rem;
  transform: translateX(-50%);
  display: block;
  line-height: 0;
  transition: opacity .15s ease;
  pointer-events: auto;
}
.top .brand:hover {
  opacity: 0.7;
}
.top .brand img {
  display: block;
  height: clamp(2rem, 4vw, 3rem);
  width: auto;
  max-width: 60vw;
}

.top .title { display: flex; gap: 1.25rem; align-items: baseline; max-width: 30%; }
.top .title em { font-family: 'Fournier Pro', serif; font-style: italic; text-transform: none; letter-spacing: 0; color: var(--muted); }

/* Progress: centered below the header line (only visible on quiz) */
.progress {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.45rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}
.progress:empty { display: none; }

/* Intro screen */
.intro h1 {
  font-family: 'Printvetica', sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: clamp(2rem, 6vw, 3.6rem);
  margin: 0 0 1rem;
  text-align: center;
}
.intro h2 {
  font-family: 'Fournier Pro', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  text-align: center;
  margin: 0 0 3rem;
  color: var(--muted);
}
.intro p {
  font-family: 'Fournier Pro', serif;
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  text-align: center;
  max-width: 32rem;
  margin: 0 auto 3rem;
  line-height: 1.55;
}

/* Question */
.q-screen {
  width: 100%;
  text-align: center;
  animation: fade .4s ease both;
}
.question {
  font-family: 'Printvetica', sans-serif;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  line-height: 1.25;
  margin: 0 auto 3.5rem;
  max-width: 28ch;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 36rem;
  margin: 0 auto;
}

.option {
  appearance: none;
  background: var(--paper);
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: 'Fournier Pro', serif;
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  padding: 1.15rem 1.5rem;
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
  transition: background .12s, color .12s, transform .12s;
  font-feature-settings: "liga", "dlig";
}
.option:hover, .option:focus-visible {
  background: var(--ink);
  color: var(--paper);
  outline: none;
}
.option:active { transform: translateY(1px); }

/* Buttons (start, restart) */
.btn {
  appearance: none;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-family: 'Printvetica', sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 1.1rem 2rem;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--paper); color: var(--ink); }

.center { text-align: center; }
.mt-3 { margin-top: 3rem; }

/* Result */
.result { text-align: center; animation: fade .5s ease both; }
.result .score-num {
  font-family: 'Printvetica', sans-serif;
  font-size: clamp(5rem, 16vw, 10rem);
  letter-spacing: 0;
  line-height: 0.9;
  margin: 0 0 .25rem;
}
.result .score-of {
  font-family: 'Fournier Pro', serif;
  font-style: italic;
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}
.result .label {
  font-family: 'Printvetica', sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  letter-spacing: 0.18em;
  margin-bottom: .75rem;
}
.result .tag {
  font-family: 'Fournier Pro', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}
.result .text {
  font-family: 'Fournier Pro', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.divider {
  border: none;
  border-top: 1px solid var(--ink);
  width: 4rem;
  margin: 2.5rem auto;
}

/* Quiz result → Klarheitskarten promo */
.result-promo {
  border: 1px solid var(--ink);
  padding: 1.25rem 1.5rem;
  margin: 0 auto 2.5rem;
  max-width: 32rem;
  text-align: center;
}
.result-promo-eyebrow {
  font-family: 'Printvetica', sans-serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.65rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.result-promo-line {
  font-family: 'Printvetica', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 0.85rem;
  line-height: 1.4;
}
.result-promo-line .kk-roman { letter-spacing: 0.06em; }
.result-promo-link {
  font-family: 'Fournier Pro', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.1rem;
  font-feature-settings: "liga", "dlig";
}
.result-promo-link:hover { color: var(--muted); border-color: var(--muted); }

/* Share */
.share {
  margin: 0 auto 2.5rem;
  max-width: 36rem;
}
.share-label {
  font-family: 'Printvetica', sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.share-btn {
  appearance: none;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  font-family: 'Printvetica', sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  line-height: 1;
  transition: background .12s, color .12s;
}
.share-btn:hover, .share-btn:focus-visible {
  background: var(--ink);
  color: var(--paper);
  outline: none;
}
.share-btn.is-copied {
  background: var(--ink);
  color: var(--paper);
}

/* Hamburger menu */
.menu-toggle {
  background: none;
  border: none;
  padding: 0;
  margin-left: auto;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 1.5rem;
  height: 1.05rem;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform .15s, opacity .15s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0.45rem) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-0.45rem) rotate(-45deg);
}

.menu {
  position: absolute;
  top: 100%;
  right: clamp(1.5rem, 4vw, 3rem);
  background: var(--paper);
  border: 1px solid var(--ink);
  display: none;
  flex-direction: column;
  min-width: 12rem;
  z-index: 6;
}
.menu[data-open] {
  display: flex;
}
.menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
  font-family: 'Printvetica', sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--ink);
  transition: background .15s ease, color .15s ease;
}
.menu a:last-child {
  border-bottom: none;
}
.menu a:hover,
.menu a.is-active {
  background: var(--ink);
  color: var(--paper);
}

/* Foot */
footer {
  text-align: center;
  padding: 1.5rem;
  font-family: 'Printvetica', sans-serif;
  position: relative;
}
footer .footer-impressum {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color .15s ease;
}
footer .footer-impressum:hover,
footer .footer-impressum.is-active {
  color: var(--ink);
}

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

@media (max-width: 720px) {
  .top { font-size: 0.78rem; padding: 0.85rem 1rem 0.5rem; letter-spacing: 0.18em; }
  .top .brand img { height: clamp(1.75rem, 7vw, 2.5rem); }
  .top .title em { display: none; }
  .top .title { max-width: 35%; }
  .menu { right: 1rem; }
  .progress { font-size: 0.65rem; margin-top: 0.35rem; }
}
