/* ============================================================
   DAKTIV — Buzzergame Briefing-Formular
   Brand-Guide: 00 Kontext/Branding.md
   Farben:  Grün #0AD705 · Teal #024C4D · Dunkelblau #232935
   Schrift: Brandon Grotesque (Light/Black) · Verdana (Fallback)
   ============================================================ */

@font-face {
  font-family: 'Brandon Grotesque';
  src: url('assets/fonts/brandon-grotesque-light.woff2') format('woff2'),
       url('assets/fonts/brandon-grotesque-light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Brandon Grotesque';
  src: url('assets/fonts/brandon-grotesque-light-italic.woff2') format('woff2'),
       url('assets/fonts/brandon-grotesque-light-italic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Brandon Grotesque';
  src: url('assets/fonts/brandon-grotesque-black.woff2') format('woff2'),
       url('assets/fonts/brandon-grotesque-black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #0ad705;
  --green-dark: #08b504;
  --teal: #024c4d;
  --teal-light: #006668;
  --dark: #232935;
  --text-soft: #3d434e;
  --grey: #5a5f68;
  --grey-soft: #8a8e95;
  --border: #ebecee;
  --border-soft: #f3f4f5;
  --light-bg: #f4f4f4;
  --paper: #fafafa;
  --error: #c83434;

  --font-display: 'Brandon Grotesque', Verdana, sans-serif;
  --font-body: 'Brandon Grotesque', Verdana, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  --shadow-1: 0 1px 2px rgba(35,41,53,0.04);
  --shadow-2: 0 4px 20px rgba(35,41,53,0.06);
  --shadow-3: 0 16px 60px rgba(35,41,53,0.10);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--dark);
  background: white;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--dark);
  color: white;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 2rem;
}

main.container {
  padding-top: 0;
  padding-bottom: 4rem;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  background: white;
  padding: 5rem 0 4rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(10,215,5,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero .logo {
  display: block;
  height: 44px;
  width: auto;
  margin-bottom: 4rem;
}

.hero h1 {
  margin: 0 0 2rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -2px;
  color: var(--dark);
  text-transform: uppercase;
  max-width: 12ch;
}

.hero .lead {
  margin: 0;
  max-width: 56ch;
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ============================================================
   CARDS / SECTIONS
   ============================================================ */

.card {
  position: relative;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover {
  border-color: #dadcdf;
  box-shadow: var(--shadow-2);
}

/* Step-Nummer dezent als kleiner Eyebrow-Indikator rechts oben */
.card[data-step]::before {
  content: attr(data-step);
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.8rem;
  line-height: 1;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--green) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: var(--dark);
  text-transform: uppercase;
}

.card h3 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--teal);
  text-transform: uppercase;
}

.hint {
  margin: 0 0 2rem;
  max-width: 62ch;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.65;
  font-weight: 300;
}

.hint code {
  background: var(--light-bg);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--teal);
  font-family: 'SF Mono', Monaco, monospace;
  font-weight: 400;
}

.hint strong {
  font-weight: 900;
  color: var(--dark);
}

.hint em {
  font-style: italic;
  color: var(--teal);
  font-weight: 300;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */

label {
  display: block;
  margin-bottom: 1.25rem;
}

label > span {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.7rem;
  letter-spacing: 1.8px;
  color: var(--dark);
  text-transform: uppercase;
}

.req {
  display: inline-block;
  color: var(--green);
  margin-left: 4px;
  font-weight: 900;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea {
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  color: var(--dark);
  background: white;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

input:hover,
textarea:hover {
  border-color: #d0d2d6;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--dark);
  background: white;
  box-shadow: 0 0 0 4px rgba(35, 41, 53, 0.06);
}

input::placeholder {
  color: var(--grey-soft);
  font-weight: 300;
}

/* Validierungs-Feedback: ausgefüllte gültige Felder bekommen grünen Rahmen */
input.is-filled:valid:not(:focus) {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(10, 215, 5, 0.10);
}

input.is-filled:invalid:not(:focus) {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(200, 52, 52, 0.08);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* ============================================================
   FILE UPLOADS
   ============================================================ */

label.file > span {
  margin-bottom: 0.6rem;
}

input[type="file"] {
  display: block;
  width: 100%;
  padding: 2rem 1.5rem;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--text-soft);
  text-align: center;
  transition: all 0.2s var(--ease);
}

input[type="file"]:hover {
  border-color: var(--dark);
  background: white;
  color: var(--dark);
}

input[type="file"]:focus {
  outline: none;
  border-color: var(--dark);
  box-shadow: 0 0 0 4px rgba(35, 41, 53, 0.06);
}

.file-info {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--light-bg);
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  color: var(--dark);
  font-weight: 400;
  line-height: 1.5;
}

/* ============================================================
   RULES-LIST (in der Fragen-Sektion)
   ============================================================ */

.rules {
  margin: 0 0 2rem;
  padding: 1.5rem 1.75rem 1.5rem 2.5rem;
  background: var(--paper);
  border-radius: var(--radius-sm);
  list-style: none;
  counter-reset: rule;
}

.rules li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-soft);
  font-weight: 300;
  counter-increment: rule;
}

.rules li::before {
  content: counter(rule, decimal-leading-zero);
  position: absolute;
  left: -0.6rem;
  top: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--green-dark);
}

.rules li:last-child {
  margin-bottom: 0;
}

.rules strong {
  font-weight: 900;
  color: var(--dark);
}

/* ============================================================
   FRAGEN-BLOCK
   ============================================================ */

.frage-block {
  padding: 2rem;
  margin-bottom: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease);
}

.frage-block:hover {
  border-color: #d0d2d6;
}

.frage-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.frage-block-header strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.3px;
  color: var(--dark);
  text-transform: uppercase;
}

.frage-block-header button {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--grey);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s var(--ease);
}

.frage-block-header button:hover {
  background: var(--error);
  border-color: var(--error);
  color: white;
}

.frage-sprache {
  margin-bottom: 1.5rem;
}

.frage-sprache:last-child {
  margin-bottom: 0;
}

.frage-sprache > strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--grey);
  margin-bottom: 0.75rem;
}

.frage-sprache .korrekt::before {
  content: "Antwort A · korrekt";
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.frage-sprache .opt-b::before {
  content: "Antwort B";
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-soft);
  margin-bottom: 6px;
}

.frage-sprache .opt-c::before {
  content: "Antwort C";
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-soft);
  margin-bottom: 6px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

button {
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

button.secondary {
  background: white;
  color: var(--dark);
  border: 1.5px solid var(--dark);
  padding: 0.85rem 1.6rem;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.2s var(--ease);
}

button.secondary:hover {
  background: var(--dark);
  color: white;
}

button[type="submit"] {
  background: var(--dark);
  color: white;
  border: none;
  padding: 1.4rem 3.5rem;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s var(--ease);
  box-shadow: 0 8px 24px rgba(35, 41, 53, 0.18);
}

button[type="submit"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--green) 100%);
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease);
  z-index: 0;
}

button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(10, 215, 5, 0.35);
  color: var(--dark);
}

button[type="submit"]:hover:not(:disabled)::before {
  transform: translateX(0);
}

button[type="submit"] > * {
  position: relative;
  z-index: 1;
}

button[type="submit"]:active:not(:disabled) {
  transform: translateY(0);
}

button[type="submit"]:disabled {
  background: var(--grey);
  cursor: not-allowed;
  box-shadow: none;
}

/* ============================================================
   SUBMIT ROW
   ============================================================ */

.submit-row {
  text-align: center;
  padding: 4rem 0 2rem;
}

.status {
  margin: 1.75rem auto 0;
  font-size: 0.95rem;
  min-height: 1.5em;
  max-width: 520px;
  line-height: 1.5;
}

.status.success {
  color: var(--teal);
  font-weight: 400;
  background: rgba(10, 215, 5, 0.08);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  text-align: left;
}

.status.error {
  color: var(--error);
  font-weight: 400;
  background: rgba(200, 52, 52, 0.06);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  text-align: left;
}

/* ============================================================
   HONEYPOT
   ============================================================ */

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0;
  font-size: 0.85rem;
  font-weight: 300;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-icon {
  height: 36px;
  width: auto;
}

.footer p {
  margin: 0;
  letter-spacing: 0.3px;
}

.footer a {
  color: white;
  text-decoration: none;
  font-weight: 400;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 1px;
  transition: border-color 0.2s var(--ease);
}

.footer a:hover {
  border-bottom-color: white;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  .hero {
    padding: 3rem 0 2.5rem;
    margin-bottom: 2.5rem;
  }
  .hero .logo {
    height: 36px;
    margin-bottom: 2.5rem;
  }
  .hero h1 {
    font-size: 2.2rem;
    letter-spacing: -1px;
    max-width: 100%;
  }
  .hero .lead {
    font-size: 1rem;
  }
  .card {
    padding: 2rem 1.5rem;
  }
  .card[data-step]::before {
    font-size: 3.5rem;
    top: 1.5rem;
    right: 1.5rem;
  }
  .card h2 {
    font-size: 1.4rem;
    padding-right: 3rem;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .frage-block {
    padding: 1.5rem;
  }
  button[type="submit"] {
    padding: 1.2rem 2.5rem;
    font-size: 0.85rem;
  }
}
