/* ============================================================
   Fachkongress für zirkuläre Arbeitskleidung '26 — Landingpage
   Basis: TURNS Design System (tokens.css)
   ============================================================ */

@import url("./tokens.css");

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Euclid Circular A", ui-sans-serif, system-ui, sans-serif;
  color: #111214;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: #111214; text-decoration: none; }
a:hover {
  color: #111214;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

:focus-visible { outline: 2px solid #111214; outline-offset: 2px; }

summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
details[open] .faq-caret { transform: rotate(45deg); }

@keyframes ringspin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease-out, transform 0.1s ease-out;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn--yellow { background: #FFFC35; color: #111214; }
.btn--yellow:hover { background: #f0ed20; color: #111214; }

.btn--dark { background: #111214; color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }

.btn--ghost { color: #fff; border: 1px solid #4a4b50; font-weight: 500; }
.btn--ghost:hover { border-color: #fff; color: #fff; }

/* ---------- Reveal-Animation ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Speaker-Karten ---------- */

/* Layout auf der Basisklasse, damit auch unverlinkte Karten
   (Speaker ohne LinkedIn) denselben Abstand haben. */
.speaker-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease-out;
}
.speaker-card:hover { transform: translateY(-6px); }

.speaker-card__link {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.speaker-card__link:hover { text-decoration: none; }

/* Die Porträts sind freigestellte PNGs mit eigenem gelben Kreis und
   transparentem Rand — kein Beschnitt, kein Hintergrund, sonst wird
   das Design zerstört. */
.speaker-card__photo {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  display: block;
}
/* Platzhalter greift die Kreisform auf, damit die Reihe ruhig bleibt */
/* Muss exakt so hoch sein wie ein Foto, sonst rutschen Name und
   Rolle gegenüber den Nachbarkarten nach unten. Die Fotos bringen
   ihren Freiraum im Bild mit; hier erzeugt ihn der innere Kreis,
   der über ::before auf denselben Anteil der Fläche gesetzt wird. */
.speaker-card__photo--empty {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  /* Dunkel, weil der Kreis gelb ist — Grau wäre darauf kaum lesbar. */
  color: #111214;
}
.speaker-card__photo--empty::before {
  content: "";
  position: absolute;
  inset: 8%;
  background: #FFFC35;
  border-radius: 999px;
  z-index: -1;
}

.speaker-card__name {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.speaker-card__role {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
  color: #6e6e6e;
}
/* Pfeil signalisiert den LinkedIn-Link, erscheint beim Hover */
.speaker-card__in {
  display: inline-block;
  font-size: 14px;
  color: #9a9a9a;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}
.speaker-card__link:hover .speaker-card__in,
.speaker-card__link:focus-visible .speaker-card__in { opacity: 1; }

/* ---------- Formular ---------- */

.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; }
.field input,
.field textarea,
.field select {
  font-family: inherit;
  font-size: 16px;
  padding: 12px 16px;
  border: 1px solid #c7c7c7;
  border-radius: 8px;
  background: #fff;
  color: #111214;
  width: 100%;
  box-sizing: border-box;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid #111214;
  outline-offset: 1px;
  border-color: #111214;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
}

/* Honeypot — visuell versteckt, aber für Bots erreichbar */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Checkout-Overlay ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  overflow-y: auto;
}
.overlay[hidden] { display: none; }
.overlay__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 18, 20, 0.7);
  backdrop-filter: blur(4px);
  border: none;
  padding: 0;
  cursor: pointer;
}
.overlay__panel {
  position: relative;
  background: #fff;
  color: #111214;
  width: 100%;
  max-width: 560px;
  padding: clamp(28px, 4vw, 48px);
  margin: auto 0;
}
.overlay__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: #f5f5f5;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 300;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}
.overlay__close:hover { background: #e8e8e8; }

/* ---------- Wortmarke im Header (zweizeilig) ---------- */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand:hover { text-decoration: none; }
.brand__name {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  /* Zweizeilig gesetzt — der <br> im Markup bestimmt den Umbruch. */
}
@media (max-width: 400px) {
  /* Sehr schmale Geräte: Schrift etwas kleiner, damit der Burger
     genug Platz behält. */
  .brand__name { font-size: 13.5px; }
  .brand { gap: 10px; }
}

/* Footer-Variante: kein Platzdruck, daher etwas größer */
.brand--footer .brand__name {
  font-size: 16px;
  line-height: 1.25;
}
@media (max-width: 400px) {
  .brand--footer .brand__name { font-size: 15px; }
}

/* ---------- Mobile-Menü (Burger + Slide-Overlay) ---------- */

/* Burger standardmäßig versteckt — erscheint erst unter 1024px */
.nav-burger {
  display: none;
  flex: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #111214;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
}
.menu[hidden] { display: none; }
.menu__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 18, 20, 0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.menu.is-open .menu__backdrop { opacity: 1; }
.menu__panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(82vw, 360px);
  background: #111214;
  color: #fff;
  padding: 88px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.3);
}
.menu.is-open .menu__panel { transform: translateX(0); }
.menu__panel a {
  color: #fff;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 14px 0;
  border-bottom: 1px solid #2b2c30;
}
.menu__panel a:hover { color: #FFFC35; text-decoration: none; }
.menu__cta {
  margin-top: 24px;
  font-size: 17px;
  padding: 16px 36px;
  width: 100%;
}
.menu__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: none;
  background: #1d1e22;
  color: #fff;
  border-radius: 999px;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.menu__close:hover { background: #2b2c30; }

/* Umschaltpunkt: Desktop-Nav aus, Burger an */
@media (max-width: 1023px) {
  .nav-desktop { display: none !important; }
  .nav-burger { display: flex; }
}

/* ---------- Footer-CTA zur Hauptseite ----------
   Outline statt Vollfläche, damit der gelbe Ticket-Button weiter
   oben der stärkste Handlungsaufruf der Seite bleibt. */

.footer-cta {
  color: #fff;
  border: 1px solid #4a4b50;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 24px;
  gap: 8px;
}
.footer-cta:hover {
  background: #FFFC35;
  border-color: #FFFC35;
  color: #111214;
}
.footer-cta__arrow {
  font-size: 14px;
  transition: transform 0.2s ease-out;
}
.footer-cta:hover .footer-cta__arrow { transform: translate(2px, -2px); }

/* ---------- Cookie-/Consent-Banner ---------- */

.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding: 16px;
  display: flex;
  justify-content: center;
}
.cookie[hidden] { display: none; }
.cookie__inner {
  background: #111214;
  color: #fff;
  max-width: 1080px;
  width: 100%;
  padding: 20px 24px;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie__text {
  margin: 0;
  flex: 1 1 380px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: #d5d5d5;
}
.cookie__text a { color: #fff; }
.cookie__actions {
  display: flex;
  gap: 12px;
  flex: none;
}
.cookie__decline {
  background: transparent;
  color: #fff;
  border: 1px solid #4a4b50;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 20px;
}
.cookie__decline:hover { border-color: #fff; }
.cookie__accept {
  font-size: 14px;
  padding: 12px 22px;
}
@media (max-width: 560px) {
  .cookie__actions { width: 100%; }
  .cookie__decline, .cookie__accept { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, [data-reveal] {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
