/* Thoky – Startseite (Beta)
   Keine externen Dienste: Schriften und Bilder liegen lokal. */

/* ---------- Schriften (lokal, SIL Open Font License) ---------- */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/barlow-400.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/barlow-500.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-700-italic.woff2") format("woff2");
}

/* ---------- Farben und Maße ---------- */
:root {
  --navy: #0F1728;        /* Grundton des Logos */
  --navy-tief: #0A101C;
  --silber: #E9EAEC;
  --silber-gedeckt: #C3C9D4;
  --gold: #E3A72F;
  --gold-hell: #F0BC52;
  --grund: #EEF0F3;
  --weiss: #FFFFFF;
  --text-gedeckt: #3C4557;
  --linie: #5E6779;

  --breite: 1120px;
  --rand: 24px;
  --schrift: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --schrift-kopf: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--grund);
  color: var(--navy);
  font-family: var(--schrift);
  font-size: 1.125rem;
  line-height: 1.45;
}

h1, h2, h3, p, ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

.rahmen {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--rand);
}

.sprunglink {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  border-radius: 4px;
}
.sprunglink:focus {
  top: 8px;
}

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid transparent;
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}

.knopf--rand {
  border-color: var(--silber);
  color: var(--silber);
}
.knopf--rand:hover {
  background: var(--silber);
  color: var(--navy);
}

.knopf--gold {
  background: var(--gold);
  color: var(--navy);
  font-size: 1.1875rem;
  min-height: 56px;
}
.knopf--gold:hover {
  background: var(--gold-hell);
}

.knopf--dunkel {
  background: var(--navy);
  color: var(--silber);
}
.knopf--dunkel:hover {
  background: var(--navy-tief);
}

.knopf--breit {
  width: 100%;
}

/* ---------- Kopfzeile ---------- */
.kopf {
  background: var(--navy);
  color: var(--silber);
}

.kopf__innen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px;
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.marke__logo {
  display: block;
  width: 48px;
  height: 48px;
}

.marke__name {
  font-family: var(--schrift-kopf);
  font-style: italic;
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.marke__beta {
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}

/* ---------- Bühne (goldenes Band) ---------- */
.buehne {
  background: var(--gold);
}

.buehne__innen {
  display: grid;
  gap: 32px;
  padding-block: 40px;
}

.titel {
  font-family: var(--schrift-kopf);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.75rem, 11vw, 5.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  hyphens: manual;
  overflow-wrap: break-word;
}

.buehne__satz {
  margin-top: 20px;
  max-width: 30rem;
  font-size: 1.25rem;
  font-weight: 500;
}

/* ---------- Beta-Zugang ---------- */
.zugang {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: 6px;
  background: var(--navy);
  color: var(--silber);
}

.zugang__titel {
  font-family: var(--schrift-kopf);
  font-style: italic;
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 1;
  text-transform: uppercase;
}

.zugang__hinweis {
  font-size: 1rem;
  color: var(--silber-gedeckt);
}

.feld {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feld label {
  font-size: 1rem;
  font-weight: 600;
}

.feld input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 2px solid var(--silber);
  border-radius: 4px;
  background: var(--navy-tief);
  color: var(--weiss);
  font: inherit;          /* mindestens 16px, sonst zoomt iOS beim Antippen */
}
.feld input:focus-visible {
  outline-offset: 2px;
  border-color: var(--gold);
}

.meldung {
  padding: 12px 14px;
  border: 2px solid var(--gold);
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
}

.seite {
  padding-block: 40px 56px;
}
.seite .zugang {
  max-width: 28rem;
}
.seite p {
  margin-bottom: 12px;
}
.abstand {
  margin-top: 24px;
}

.kategorie {
  margin-bottom: 4px !important;
  color: var(--text-gedeckt);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.untertitel {
  margin: 28px 0 16px;
  font-family: var(--schrift-kopf);
  font-style: italic;
  font-weight: 700;
  font-size: 1.75rem;
  text-transform: uppercase;
}

.ergebnis {
  max-width: 28rem;
  margin-top: 24px;
  padding: 20px 24px;
  border: 2px solid var(--navy);
  border-left: 8px solid var(--gold);
  border-radius: 6px;
  background: var(--weiss);
}
.ergebnis__titel {
  font-family: var(--schrift-kopf);
  font-style: italic;
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
}
.ergebnis__liste {
  margin: 8px 0 0;
}
.ergebnis__liste dt {
  margin-top: 8px;
  color: var(--text-gedeckt);
  font-weight: 600;
}
.ergebnis__liste dd {
  margin: 0;
  font-family: var(--schrift-kopf);
  font-style: italic;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.1;
}
.ergebnis__hinweis {
  margin: 16px 0 0 !important;
  font-size: 1rem;
  color: var(--text-gedeckt);
}

.feld textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  border: 2px solid var(--silber);
  border-radius: 4px;
  background: var(--navy-tief);
  color: var(--weiss);
  font: inherit;
  resize: vertical;
}
.feld textarea:focus-visible {
  outline-offset: 2px;
  border-color: var(--gold);
}

.melden {
  max-width: 28rem;
  margin-top: 32px;
}
.melden summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.melden .zugang {
  margin-top: 12px;
}
.haken {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 1rem;
}
.haken input {
  width: 22px;
  height: 22px;
  accent-color: var(--gold);
}

.paketliste {
  display: grid;
  gap: 8px;
  max-width: 28rem;
  margin-bottom: 8px;
}
.paketliste li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 4px 16px;
  border: 2px solid var(--navy);
  border-radius: 6px;
  background: var(--weiss);
  font-weight: 600;
}
.paketliste small {
  color: var(--text-gedeckt);
  font-weight: 500;
}
.paketliste .knopf {
  min-height: 44px;
}

.zugang__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 500;
}

/* ---------- Inhalt: Kacheln ---------- */
.inhalt {
  flex: 1 0 auto;
  padding-block: 40px 56px;
}

.inhalt :focus-visible {
  outline-color: var(--navy);
}

.abschnitt {
  margin-bottom: 24px;
  font-family: var(--schrift-kopf);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 2.5rem);
  line-height: 1;
  text-transform: uppercase;
}

.kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.kacheln > li {
  display: flex;
}

.kachel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 2px solid var(--navy);
  border-radius: 6px;
  background: var(--weiss);
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.kachel:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--gold);
}
.kachel:active {
  transform: none;
  box-shadow: none;
}

.kachel__titel {
  font-family: var(--schrift-kopf);
  font-style: italic;
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1;
  text-transform: uppercase;
  hyphens: manual;
  overflow-wrap: break-word;
}

.kachel__text {
  color: var(--text-gedeckt);
}

.kachel__leiste {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-top: auto;
  padding: 0 16px;
  border-radius: 4px;
  background: var(--navy);
  color: var(--silber);
  font-weight: 600;
}

.pfeil {
  flex: 0 0 auto;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ausblick {
  margin-top: 20px;
  padding: 16px 20px;
  border: 2px dashed var(--linie);
  border-radius: 6px;
  color: var(--text-gedeckt);
  font-weight: 500;
}

/* ---------- Fußzeile ---------- */
.fuss {
  background: var(--navy);
  color: var(--silber);
  font-size: 1rem;
}

.fuss__innen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding-block: 16px;
}

.fuss__hinweis {
  color: var(--silber-gedeckt);
}

.fuss__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.fuss__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- Ab Tablet-Breite: Text und Formular nebeneinander ---------- */
@media (min-width: 860px) {
  .buehne__innen {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
    align-items: center;
    gap: 48px;
    padding-block: 64px;
  }

  .titel {
    font-size: clamp(3.5rem, 6.4vw, 5.5rem);
  }

  .buehne__satz {
    font-size: 1.375rem;
  }

  .zugang {
    padding: 28px;
  }

  .inhalt {
    padding-block: 56px 64px;
  }
}

/* ---------- Weniger Bewegung, wenn im System so eingestellt ---------- */
@media (prefers-reduced-motion: reduce) {
  .knopf,
  .kachel {
    transition: none;
  }
  .kachel:hover {
    transform: none;
  }
}
