/* Turtle Agency – Bewerbungsfunnel
   Design-Tokens 1:1 aus dem Perspective-Theme übernommen. */

@import url('../fonts/raleway.css');

:root {
  --bg: #1E0935;
  --bg-soft: #2a1049;
  --accent: #DAAFFA;
  --text: #F3EAFB;
  --text-dim: #C9B6DC;
  --grad: linear-gradient(165deg, rgba(152, 43, 219, 1) 22%, rgba(0, 102, 255, 1) 100%);
  --field-bg: #ffffff;
  --field-text: #111111;
  --radius: 8px;
  --radius-lg: 14px;
  --max: 640px;
  --star: #FFC542;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }

/* Nur horizontales Padding als Longhand, damit das vertikale
   Padding aus `section { padding:34px 0 }` nicht durch die höhere
   Klassen-Spezifität von .wrap auf 0 überschrieben wird. */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* ---------- Header ---------- */
.site-header { padding: 22px 0 6px; text-align: center; }
.site-header img { height: 64px; width: auto; margin: 0 auto; }

/* ---------- Typo ---------- */
h1, h2, h3 { font-weight: 800; color: var(--accent); line-height: 1.2; margin: 0 0 14px; }
h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 19px; color: var(--text); }
p { margin: 0 0 14px; }
.lead { font-weight: 700; font-size: 17px; }
.center { text-align: center; }
.dim { color: var(--text-dim); }
.hl { color: var(--accent); font-weight: 700; }
section { padding: 34px 0; }
.divider { height: 1px; background: rgba(218, 175, 250, .18); border: 0; margin: 8px 0; }

@media (min-width: 700px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  body { font-size: 17px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--grad);
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  padding: 18px 22px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(.985); }
.btn-ghost {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

/* ---------- Antwort-Karten (Funnel) ---------- */
.answers { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.answer {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--grad);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  padding: 22px 20px;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.answer:hover { filter: brightness(1.12); }
.answer:active { transform: scale(.985); }
/* Inline-SVG-Icons: der .emoji-Wrapper zentriert das SVG, das SVG
   selbst wird hier in CSS bemaßt und über currentColor eingefärbt. */
.emoji { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; line-height: 1; }
.emoji svg { display: block; width: 22px; height: 22px; }
/* Antwort-Karten: weiße Icons auf lila Verlauf, etwas größer.
   font-size dient nur als Fallback für echte Emoji (z.B. 💜 auf der
   Startseite); für SVGs gewinnen die width/height-Regeln. */
.answer .emoji { color: #fff; font-size: 24px; }
.answer .emoji svg { width: 24px; height: 24px; }

/* ---------- Formularfelder ---------- */
.field { margin-bottom: 14px; }
.field-box {
  position: relative;
  background: var(--field-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  padding-left: 52px;
  min-height: 62px;
}
.field-box .emoji {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
}
/* Feld-Icons sitzen auf weißem Hintergrund -> Markenlila statt Weiß. */
.field-box .emoji, .upload .emoji { color: rgb(152, 43, 219); }
.field-box input,
.field-box textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--field-text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  padding: 18px 16px 18px 0;
  resize: vertical;
}
.field-box textarea { min-height: 120px; }
/* Bei mehrzeiligen Feldern sitzt das Emoji oben, nicht mittig. */
.field-box.ta { align-items: flex-start; }
.field-box.ta .emoji { top: 20px; transform: none; }
.field-box input::placeholder,
.field-box textarea::placeholder { color: #6b6b6b; }

/* Datei-Upload */
.upload {
  background: var(--field-bg);
  border-radius: var(--radius);
  padding: 10px;
}
.upload label {
  display: block;
  border: 2px dashed #b3b3b3;
  border-radius: var(--radius);
  padding: 22px 18px 22px 52px;
  position: relative;
  cursor: pointer;
  color: var(--field-text);
}
.upload .emoji { position: absolute; left: 14px; top: 22px; font-size: 22px; }
.upload .hint { display: block; color: #6b6b6b; font-size: 14px; margin-top: 4px; }
.upload input[type=file] { position: absolute; opacity: 0; width: 0; height: 0; }
.upload.has-file label { border-style: solid; border-color: #34a853; }

.error { color: #ff9aa2; font-size: 14px; font-weight: 700; margin: 6px 0 0 4px; }
.field.invalid .field-box,
.field.invalid .upload label { box-shadow: 0 0 0 2px #ff5c6c; }

/* ---------- Fortschrittsbalken ---------- */
.progress {
  position: fixed;
  left: 0; bottom: 0;
  height: 6px;
  width: 100%;
  background: rgba(255, 255, 255, .08);
  z-index: 40;
}
.progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad);
  transition: width .35s ease;
}

/* ---------- Zurück-Pfeil ---------- */
.back {
  background: none;
  border: 0;
  color: var(--accent);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 0;
  opacity: .75;
}
.back:hover { opacity: 1; }

/* ---------- Video ---------- */
.video {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}
.video img, .video iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.video .play {
  position: absolute; inset: 0; margin: auto;
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  border: 3px solid #fff;
  display: grid; place-items: center;
}
.video .play::after {
  content: ''; width: 0; height: 0; margin-left: 5px;
  border-left: 22px solid #fff;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
}
.video .note {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, .6); color: #fff;
  font-size: 12px; padding: 8px 12px; text-align: center;
}

/* ---------- Listen / Features ---------- */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.features li { display: flex; gap: 16px; align-items: flex-start; }
.features img { width: 42px; height: 42px; flex: 0 0 42px; }
.features svg { width: 38px; height: 38px; flex: 0 0 38px; color: var(--accent); margin-top: 2px; }
.features strong { display: block; color: var(--accent); font-weight: 800; margin-bottom: 2px; }
.features p { margin: 0; font-size: 15px; color: var(--text-dim); }

/* ---------- Bewertungen ---------- */
.stars { color: var(--star); letter-spacing: 2px; font-size: 18px; }
.rating { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-dim); }
.testimonials { display: grid; gap: 18px; }
.tcard {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.tcard p { font-size: 15px; font-style: italic; }
.tperson { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.tperson img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
/* Anonyme Models: Initiale statt Foto - ein Symbolbild wuerde unecht wirken. */
.tinitial {
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.anon-note {
  font-size: 14px;
  line-height: 1.5;
  max-width: 480px;
  margin: 18px auto 0;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: var(--bg-soft);
  border-radius: 0 10px 10px 0;
  text-align: left;
}
.tperson span { font-size: 14px; color: var(--text-dim); }
.tperson b { display: block; color: var(--text); }

@media (min-width: 800px) {
  .testimonials { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- FAQ ---------- */
.faq details {
  border-bottom: 1px solid rgba(218, 175, 250, .18);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--text);
  padding: 16px 30px 16px 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent); font-size: 22px; font-weight: 400;
}
.faq details[open] summary::after { content: '–'; }
.faq .answer-text { padding: 0 0 16px; color: var(--text-dim); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 30px 0 90px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}
.site-footer a { color: var(--text-dim); text-decoration: underline; margin: 0 6px; }

/* ---------- Cookie-Banner ---------- */
.cookie {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  background: #fff;
  color: #1a1a1a;
  border-radius: 12px;
  padding: 18px;
  z-index: 50;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
  max-width: 560px;
  margin: 0 auto;
  font-size: 14px;
}
.cookie p { margin: 0 0 12px; }
.cookie a { color: #5b2bd6; }
.cookie .row { display: flex; gap: 10px; }
.cookie button {
  flex: 1;
  border: 0; border-radius: 8px;
  padding: 11px 14px;
  font-family: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer;
}
.cookie .ok { background: var(--grad); color: #fff; }
.cookie .no { background: #e8e8e8; color: #333; }

/* ---------- Danke-Seite ---------- */
.thanks-icon { font-size: 54px; text-align: center; margin-bottom: 8px; }

/* Funnel- und Danke-Seite: Footer klebt unten, auch bei wenig Inhalt. */
body.flow { min-height: 100vh; display: flex; flex-direction: column; }
/* main füllt den freien Raum und wird zur Flex-Spalte; der Schritt-Inhalt
   zentriert sich per `margin:auto 0` vertikal, wenn Platz da ist, und
   kollabiert die Auto-Ränder bei hohem Inhalt (kein Clipping, scrollbar). */
body.flow main { flex: 1 0 auto; display: flex; flex-direction: column; }
body.flow #step { margin: auto 0; width: 100%; }

.hidden { display: none !important; }
