/* ══════════════════════════════════════════
   KI-Freundschaft — Complete Redesign
   ══════════════════════════════════════════ */

/* ── Design tokens ── */
:root {
  --blue:         #4760F1;
  --light-blue:   #D8E0FF;
  --cream:        #F8F3E5;
  --rose:         #EEB1E4;
  --navy:         #182157;
  --white:        #FFFFFF;
  --off-white:    #F0F5FF;
  --text-dark:    #0D1B3E;
  --text-body:    #3D4966;
  --text-muted:   #8F96A6;
  --border:       rgba(71, 96, 241, 0.15);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--text-body);
  background: var(--cream);
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ── Typography ── */
h1, h2, h3, h4, .font-serif {
  font-family: 'Crimson Text', Georgia, serif;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.15;
}

.label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 12px;
}

.label-white {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  display: block;
  margin-bottom: 12px;
}

/* ── Buttons ── */
.btn-primary, .btn-outline, .btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
  border: none;
  text-decoration: none;
}

.btn-primary  { background: var(--blue); color: #fff; }
.btn-primary:hover { opacity: 0.86; }

.btn-outline  { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--light-blue); }

.btn-dark     { background: var(--text-dark); color: #fff; }
.btn-dark:hover { opacity: 0.88; }

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--white);
  color: var(--blue);
  border: none;
  transition: opacity 0.15s;
}
.btn-white:hover { opacity: 0.88; }

.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.45);
  transition: opacity 0.15s;
}
.btn-ghost-white:hover { opacity: 0.7; }

.btn-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ── Site Header ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  position: relative;
  z-index: 20;
}

/* ── Fragebogen ── */
.page-fragebogen { background: #F8F3E5; }

/* KI bubble typing cursor */
.ki-typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--blue);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: ki-blink 0.7s step-end infinite;
}
@keyframes ki-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* KI typing indicator (3-dot bounce for long messages) */
.ki-typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}
.ki-typing-indicator span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: ki-typing-bounce 1.0s ease-in-out infinite;
}
.ki-typing-indicator span:nth-child(2) { animation-delay: 0.16s; }
.ki-typing-indicator span:nth-child(3) { animation-delay: 0.32s; }
@keyframes ki-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30%            { transform: translateY(-5px); opacity: 1; }
}

/* Loading fade-out */
@keyframes fq-fade-out { to { opacity: 0; } }
.fq-exiting { animation: fq-fade-out 0.25s ease forwards; pointer-events: none; }

/* ── Fragebogen Topbar ── */
.fq-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
}

.fq-progress-bar { height: 4px; background: var(--light-blue); }

.fq-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--blue);
  transition: width 0.6s ease;
}

.fq-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 48px;
  border-bottom: 1px solid var(--border);
}

.fq-project-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}

.fq-step-counter {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ── Fragebogen sections ── */
.fq-section {
  padding: 60px 10vw 80px;
  display: none;
  scroll-margin-top: 56px;
}

.fq-section.active {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: calc(100vh - 56px);
  animation: fq-reveal 0.5s ease both;
}

@keyframes fq-reveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.fq-section-white { background: var(--cream); }
.fq-section-blue  { background: var(--blue); }
.fq-section-offwhite { background: var(--off-white); }

/* ── Two-column layout within a section ── */
.fq-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ── KI Chat bubble ── */
.ki-bubble {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 24px 28px;
  box-shadow: 0 2px 20px rgba(71, 96, 241, 0.12);
  width: 100%;
  max-width: 600px;
  font-family: 'Source Code Pro', monospace;
}

.ki-bubble-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.ki-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.ki-name {
  font-family: 'Source Code Pro', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}

.ki-bubble h3 {
  font-family: 'Source Code Pro', monospace;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.ki-bubble p {
  font-family: 'Source Code Pro', monospace;
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.7;
}

/* ── Textarea inputs ── */
.fq-field-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  display: block;
  margin-bottom: 16px;
}

.fq-textarea {
  width: 100%;
  min-height: 180px;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 500;
  resize: none;
  outline: none;
  padding: 0;
  line-height: 1.65;
  caret-color: rgba(255, 255, 255, 0.8);
}
.fq-textarea::placeholder { color: var(--light-blue); }

/* ── Tag buttons ── */
.tags-container { display: flex; flex-wrap: wrap; gap: 8px; }

.tag-btn {
  padding: 8px 16px;
  border-radius: 100px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  border: 1.5px solid;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

/* on blue sections — outline gold, selected = filled gold */
.fq-section-blue .tag-btn {
  background: transparent;
  color: var(--light-blue);
  border-color: var(--light-blue);
}
.fq-section-blue .tag-btn:hover { background: rgba(252, 198, 52, 0.15); }
.fq-section-blue .tag-btn.selected {
  background: var(--light-blue);
  color: var(--blue);
  border-color: var(--light-blue);
}
.fq-section-blue .tag-btn.tag-dimmed {
  opacity: 0.2;
  pointer-events: none;
}

/* on mint / off-white sections — outline blue, selected = filled blue */
.fq-section-white .tag-btn,
.fq-section-offwhite .tag-btn {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.fq-section-white .tag-btn:hover,
.fq-section-offwhite .tag-btn:hover { background: rgba(71, 96, 241, 0.07); }
.fq-section-white .tag-btn.selected,
.fq-section-offwhite .tag-btn.selected {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* ── Expandable categories ── */
.fq-categories { display: flex; flex-direction: column; }

.fq-category { border-top: 1px solid rgba(255, 255, 255, 0.18); }
.fq-category:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }

.fq-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  cursor: pointer;
  user-select: none;
}


.fq-cat-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
}

.fq-cat-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 3px;
}

.fq-cat-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.12s;
  background: none;
}
.fq-cat-toggle:hover { background: rgba(255, 255, 255, 0.12); }

.fq-cat-body { display: none; padding-bottom: 20px; }
.fq-cat-body.open { display: block; }

/* ── Range slider ── */
.fq-slider-wrap { max-width: 560px; padding: 32px 0; }

.fq-slider-ends {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.fq-slider-end {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

input[type='range'].fq-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  outline: none;
}
input[type='range'].fq-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
input[type='range'].fq-range::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

/* ── Loading screen ── */
.fq-loading {
  display: none;
  min-height: calc(100vh - 56px);
  align-items: flex-start;
  justify-content: flex-start;
  padding: 60px 10vw;
  scroll-margin-top: 56px;
  background: var(--blue);
  animation: fq-reveal 0.4s ease both;
}

.fq-loading.active { display: flex; }

.fq-loading-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 36px 44px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(71, 96, 241, 0.08);
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.fq-spinner {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  animation: spinner-rotate 1.1s linear infinite;
  transform-origin: center;
}

@keyframes spinner-rotate { to { transform: rotate(360deg); } }

.fq-loading-title {
  font-family: 'Source Code Pro', monospace;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.fq-loading-sub {
  font-family: 'Source Code Pro', monospace;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Gold section (Part 2) ── */
.fq-section-lightblue { background: var(--light-blue); }

.fq-section-lightblue .tag-btn {
  color: var(--blue);
  border-color: rgba(71, 96, 241, 0.35);
}
.fq-section-lightblue .tag-btn:hover { background: rgba(71, 96, 241, 0.08); }
.fq-section-lightblue .tag-btn.selected {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.fq-section-lightblue .fq-category { border-color: rgba(71, 96, 241, 0.18); }
.fq-section-lightblue .fq-category:last-child { border-color: rgba(71, 96, 241, 0.18); }
.fq-section-lightblue .fq-cat-header { border-color: rgba(71, 96, 241, 0.18); }
.fq-section-lightblue .fq-cat-name { color: var(--text-dark); }
.fq-section-lightblue .fq-cat-sub  { color: var(--text-muted); }
.fq-section-lightblue .fq-cat-toggle { border-color: rgba(71, 96, 241, 0.3); color: var(--blue); }

.fq-section-lightblue .fq-slider-end { color: var(--text-body); }
.fq-section-lightblue input[type='range'].fq-range { background: rgba(71, 96, 241, 0.2); }
.fq-section-lightblue input[type='range'].fq-range::-webkit-slider-thumb { background: var(--blue); }
.fq-section-lightblue input[type='range'].fq-range::-moz-range-thumb { background: var(--blue); }

.fq-section-lightblue .fq-textarea { color: var(--text-dark); caret-color: var(--blue); }
.fq-section-lightblue .fq-textarea::placeholder { color: rgba(71, 96, 241, 0.4); }
.fq-section-lightblue .ki-typing-cursor { background: var(--blue); }

/* Loading screen gold variant */
.fq-loading.fq-loading-lb { background: var(--light-blue); }

/* ══════════════════════════════════════════
   Fragebogen — Gradient-Hintergrund
   ══════════════════════════════════════════ */

#fq-gradient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('../public/images/background.png') center center / cover no-repeat #F8F3E5;
}

/* Alle Sections transparent → Gradient durchgängig sichtbar */
.page-fragebogen .fq-section-white,
.page-fragebogen .fq-section-blue,
.page-fragebogen .fq-section-lightblue,
.page-fragebogen .fq-section-offwhite,
.page-fragebogen .fq-loading,
.page-fragebogen .fq-loading.fq-loading-lb,
.page-fragebogen .fq-part-intro { background: transparent; }

/* Blue Sections: Text- und Element-Farben für hellen Hintergrund */
.page-fragebogen .fq-section-blue .fq-textarea {
  color: var(--text-dark);
  caret-color: var(--blue);
}
.page-fragebogen .fq-section-blue .fq-textarea::placeholder { color: var(--text-muted); }
.page-fragebogen .fq-section-blue .tag-btn {
  color: var(--blue);
  border-color: rgba(71,96,241,0.45);
}
.page-fragebogen .fq-section-blue .tag-btn:hover  { background: rgba(71,96,241,0.08); }
.page-fragebogen .fq-section-blue .tag-btn.selected {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.page-fragebogen .fq-section-blue .tag-btn.tag-dimmed { opacity: 0.25; pointer-events: none; }
.page-fragebogen .fq-section-blue .fq-cat-name   { color: var(--text-dark); }
.page-fragebogen .fq-section-blue .fq-cat-sub    { color: var(--text-muted); }
.page-fragebogen .fq-section-blue .fq-category,
.page-fragebogen .fq-section-blue .fq-category:last-child { border-color: rgba(71,96,241,0.15); }
.page-fragebogen .fq-section-blue .fq-cat-toggle {
  color: var(--blue);
  border-color: rgba(71,96,241,0.3);
}
.page-fragebogen .fq-section-blue .fq-cat-toggle:hover { background: rgba(71,96,241,0.08); }
.page-fragebogen .fq-section-blue .label-white   { color: var(--blue); }
.page-fragebogen .fq-section-blue > p            { color: var(--text-muted) !important; }
.page-fragebogen .fq-section-blue .fq-item-num   { color: var(--text-dark); }
.page-fragebogen .fq-section-blue .fq-item-input {
  color: var(--text-dark);
  border-bottom-color: rgba(71,96,241,0.2);
}
.page-fragebogen .fq-section-blue .fq-item-input::placeholder { color: var(--text-muted); }
.page-fragebogen .fq-section-blue .fq-item-input:focus { border-bottom-color: rgba(71,96,241,0.55); }
.page-fragebogen .fq-section-blue .ki-typing-cursor { background: var(--blue); }
.page-fragebogen .fq-section-blue .btn-ghost-white {
  color: var(--blue);
  border-color: rgba(71,96,241,0.4);
}
.page-fragebogen .fq-section-blue .btn-ghost-white:hover { opacity: 0.75; }

/* ── Section 5: Values Card Layout ── */
.val-question-card {
  width: 100%;
  max-width: 680px;
  background: rgba(255,255,255,0.88);
  border-radius: var(--r-lg);
  padding: 28px 32px 32px;
  box-shadow: 0 2px 20px rgba(71,96,241,0.07);
}
.val-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  justify-content: space-between;
}
.val-card-header > :first-child { display: flex; align-items: center; gap: 10px; }
.val-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.val-card-label {
  font-family: 'Source Code Pro', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}
.val-card-meta {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.val-card-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.val-card-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}
.val-divider {
  width: 100%;
  max-width: 680px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 18px;
}
.val-divider::before,
.val-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(71,96,241,0.15);
}
.val-divider span {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.val-options {
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100%;
  max-width: 680px;
}
.val-option.tag-btn {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  width: 340px;
  background: rgba(255,255,255,0.88);
  border-radius: 10px;
  padding: 10px 20px;
  border: 1.5px solid transparent;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dark);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.val-option.tag-btn:hover {
  background: var(--white);
  border-color: rgba(71,96,241,0.25);
}
.val-option.tag-btn.selected {
  background: var(--white);
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), 0 2px 12px rgba(71,96,241,0.10);
}

/* ── Section 2: Interest Tab Navigation ── */
.int-nav-wrap {
  width: 100%;
  max-width: 680px;
  margin-bottom: 16px;
}
.int-nav {
  display: flex;
  background: rgba(255,255,255,0.75);
  border-radius: 100px;
  padding: 5px;
  gap: 4px;
}
.int-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 100px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s;
  border: 1.5px solid transparent;
  background: transparent;
}
.int-tab.active {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--white);
  font-weight: 700;
}
.int-tab:hover:not(.active) {
  color: var(--text-dark);
  background: rgba(255,255,255,0.5);
}
.int-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  flex-shrink: 0;
}
.int-counter {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.int-panel { display: none; width: 100%; max-width: 680px; }
.int-panel.active { display: block; }
.int-panel .tags-container { justify-content: center; }

/* Tags in Interest-Panels und Persönlichkeits-Section: weißer Pill-Stil */
.page-fragebogen .fq-section-blue .int-panel .tag-btn,
.page-fragebogen [data-cat="personality"] .tag-btn {
  background: rgba(255,255,255,0.85);
  color: var(--text-dark);
  border-color: transparent;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}
.page-fragebogen .fq-section-blue .int-panel .tag-btn:hover,
.page-fragebogen [data-cat="personality"] .tag-btn:hover {
  background: var(--white);
  border-color: rgba(71,96,241,0.3);
}
.page-fragebogen .fq-section-blue .int-panel .tag-btn.selected,
.page-fragebogen [data-cat="personality"] .tag-btn.selected {
  background: var(--white);
  color: var(--blue);
  border-color: var(--blue);
}
.page-fragebogen .fq-section-blue .int-panel .tag-btn.tag-dimmed,
.page-fragebogen [data-cat="personality"] .tag-btn.tag-dimmed {
  opacity: 0.3;
  pointer-events: none;
}

/* ── Section 1: Chat-Intro Layout ── */
.fq-section.active.fq-section-white {
  align-items: center;
  justify-content: center;
}
.fq-chat-intro {
  max-width: 660px;
  text-align: center;
  margin-bottom: 48px;
}
.fq-chat-heading {
  font-family: 'Source Code Pro', monospace;
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 18px;
}
.fq-chat-sub {
  font-family: 'Source Code Pro', monospace;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto;
}
.fq-chat-row {
  display: flex;
  justify-content: center;
  width: 100%;
}
.fq-chat-box {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 24px rgba(71, 96, 241, 0.10);
  overflow: hidden;
  width: 100%;
  max-width: 880px;
  min-height: 72px;
}
.fq-chat-bar {
  width: 5px;
  align-self: stretch;
  background: var(--blue);
  flex-shrink: 0;
}
.fq-chat-area {
  flex: 1;
  border: none;
  outline: none;
  padding: 20px 20px;
  font-family: 'Source Code Pro', monospace;
  font-size: 16px;
  color: var(--text-dark);
  background: transparent;
  resize: none;
  line-height: 1.5;
  caret-color: var(--blue);
}
.fq-chat-area::placeholder { color: var(--text-muted); }
.fq-chat-send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 14px;
  transition: opacity 0.15s;
}
.fq-chat-send:hover { opacity: 0.85; }

/* 3-Dinge text inputs */
.fq-three-items { display: flex; flex-direction: column; gap: 20px; }
.fq-item-input-row { display: flex; align-items: center; gap: 14px; }
.fq-item-num {
  font-family: 'Crimson Text', serif;
  font-size: 28px;
  color: var(--white);
  font-weight: 600;
  flex-shrink: 0;
  width: 28px;
}
.fq-item-input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(252, 198, 52, 0.4);
  color: var(--white);
  font-family: 'Source Code Pro', monospace;
  font-size: 16px;
  padding: 8px 0;
  outline: none;
  transition: border-color 0.2s;
}
.fq-item-input::placeholder { color: rgba(252, 198, 52, 0.38); }
.fq-item-input:focus { border-bottom-color: rgba(252, 198, 52, 0.9); }

/* ── Part 2 divider ── */
.fq-part-intro {
  display: none;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 10vw;
  background: var(--light-blue);
  animation: fq-reveal 0.5s ease both;
}

.fq-part-intro.active { display: flex; }

.fq-part-intro h2 {
  font-size: clamp(36px, 5.5vw, 64px);
  max-width: 680px;
  margin-bottom: 16px;
}

.fq-part-intro p {
  font-size: 16px;
  color: var(--text-body);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 32px;
}

/* ── Section nav (WEITER) ── */
.fq-nav { padding-top: 40px; display: flex; justify-content: center; }

/* ── Frontpage ── */
.page-frontpage { background: var(--cream); overflow-x: hidden; }

/* Floating header over hero image */
.page-frontpage .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
}
.page-frontpage .site-header .logo-mark { color: var(--white); }
.page-frontpage .site-header .main-nav a { color: rgba(255,255,255,0.85); }
.page-frontpage .site-header .main-nav a:hover { color: var(--white); }
/* Hero image (video placeholder) */
.fp-hero-img {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.fp-hero-img-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}
.fp-hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.25) 55%, rgba(255,255,255,0.05) 100%);
  z-index: 1;
}
.fp-hero-img-content {
  position: relative;
  z-index: 2;
  padding: 80px 10vw;
  width: 100%;
}
.fp-hero-img .fp-hero-title {
  color: var(--blue);
  margin-bottom: 40px;
  text-align: left;
}
.fp-hero-img .fp-kicker {
  color: var(--blue);
  text-align: left;
}
.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  text-decoration: none;
  transition: background 0.15s;
}
.btn-outline-light:hover { background: rgba(71,96,241,0.08); }

.fp-hero-title {
  font-size: clamp(52px, 8vw, 104px);
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

.fp-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

/* ── Generieren page ── */
.page-generieren {
  background: var(--blue);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}


.gen-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(252, 198, 52, 0.2);
}

.page-generieren .gen-topbar-label {
  color: var(--light-blue);
}

.gen-progress-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--light-blue);
  overflow: hidden;
}

.gen-progress-fill {
  height: 100%;
  background: var(--blue);
  transition: width 0.8s ease;
}

.gen-topbar-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}

/* Floating polaroids */
.photos-behind, .photos-front {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.photos-behind { z-index: 2; }
.photos-front  { z-index: 15; }

@keyframes gen-rise {
  0%   { transform: translateY(115vh) rotate(var(--rot, 0deg)); opacity: 0; }
  6%   { opacity: 0.65; }
  88%  { opacity: 0.65; }
  100% { transform: translateY(-125vh) rotate(var(--rot, 0deg)); opacity: 0; }
}

.polaroid {
  position: absolute;
}
.polaroid img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Floating polaroid sizes scale with viewport width so they feel right on
   anything from a phone to a 27" display. The image height tracks the frame
   height (frame size − caption padding ≈ 36px), so the proportions stay
   the same as the original fixed-px values. */
.polaroid-g1 { --rot:-3deg; left:5%;  width: clamp(75px, 14vw, 260px); height: clamp(75px, 14vw, 260px); animation: gen-rise 14s linear 0s     infinite; }
.polaroid-g1 img { height: 100%; }
.polaroid-g2 { --rot: 5deg; left:30%; width: clamp(60px, 11vw, 210px); height: clamp(60px, 11vw, 210px); animation: gen-rise 17s linear -4.5s  infinite; }
.polaroid-g2 img { height: 100%; }
.polaroid-g3 { --rot:-6deg; right:5%; width: clamp(70px, 13vw, 240px); height: clamp(70px, 13vw, 240px); animation: gen-rise 12s linear -8s    infinite; }
.polaroid-g3 img { height: 100%; }
.polaroid-g4 { --rot: 3deg; left:54%; width: clamp(65px, 12vw, 225px); height: clamp(65px, 12vw, 225px); animation: gen-rise 15s linear -2s    infinite; }
.polaroid-g4 img { height: 100%; }
.polaroid-g5 { --rot:-4deg; right:22%;width: clamp(70px, 13vw, 240px); height: clamp(70px, 13vw, 240px); animation: gen-rise 13s linear -10s   infinite; }
.polaroid-g5 img { height: 100%; }

.gen-main {
  position: relative;
  z-index: 10;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

/* Loading card */
.gen-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 36px 44px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 4px 32px rgba(71, 96, 241, 0.10);
}

.gen-card-title {
  font-family: 'Crimson Text', serif;
  font-size: 26px;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.gen-progress-track {
  height: 6px;
  background: var(--light-blue);
  border-radius: 3px;
  margin-bottom: 10px;
  overflow: hidden;
}

.gen-progress-bar-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 3px;
  transition: width 1s ease;
}

.gen-progress-nums {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.gen-status { font-size: 14px; color: var(--text-body); line-height: 1.5; }

/* ── Fehler overlay ── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.overlay[hidden] { display: none; }

.terminal-screen {
  font-family: 'Source Code Pro', monospace;
  color: var(--blue);
  font-size: 14px;
  line-height: 2;
  white-space: pre-wrap;
  max-width: 700px;
  width: 100%;
}

.terminal-option {
  cursor: pointer;
  display: block;
  padding: 1px 6px;
  margin-left: -6px;
  border-radius: 3px;
  transition: background 0.1s, color 0.1s;
}

.terminal-option.focused {
  background: var(--blue);
  color: var(--white);
}

.terminal-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  background: var(--blue);
  vertical-align: text-bottom;
  animation: cursor-blink 0.9s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── KASSENBON / PRINT ── */
.kassenbon { display: none; }

@media print {
  @page {
    size: 80mm auto;
    margin: 4mm;
  }

  body > *:not(.kassenbon) { display: none !important; }

  .kassenbon { display: none !important; }

  .kassenbon.kb-active {
    display: block !important;
    width: 72mm;
    font-family: 'Courier New', Courier, monospace;
    font-size: 8.5pt;
    color: #000;
    line-height: 1.55;
    padding: 0;
  }

  .kassenbon.kb-active * { font-family: 'Courier New', Courier, monospace; }
}

.kassenbon-divider {
  border: none;
  border-top: 1px dashed #000;
  margin: 8pt 0;
}

.kassenbon-title {
  font-size: 11pt;
  font-weight: bold;
  margin-bottom: 4pt;
  line-height: 1.3;
}

.kassenbon-center { text-align: center; }
.kassenbon-bold   { font-weight: bold; }

.kassenbon-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3pt;
  margin: 4pt 0;
}

.kassenbon-tag {
  border: 1px solid #000;
  padding: 1pt 5pt;
  font-size: 7pt;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.kassenbon-section-title {
  font-weight: bold;
  font-size: 8pt;
  margin-top: 8pt;
  margin-bottom: 3pt;
}

.kassenbon-handle {
  font-size: 8.5pt;
  font-weight: bold;
  text-align: center;
  margin: 6pt 0;
  word-break: break-all;
  overflow-wrap: break-word;
}

/* Fake barcode via text characters */
.kassenbon-barcode {
  font-size: 20pt;
  letter-spacing: -2pt;
  text-align: center;
  margin-top: 10pt;
  font-family: 'Libre Barcode 39', 'Courier New', monospace;
}

/* ── Mitmachen page ── */
.page-mitmachen { background: var(--cream); }

.page-mitmachen .site-header {
  background: var(--navy);
  border-bottom-color: transparent;
}
.page-mitmachen .site-header .logo-mark { color: var(--rose); }
.page-mitmachen .site-header .main-nav a { color: var(--rose); opacity: 0.85; }
.page-mitmachen .site-header .main-nav a:hover { opacity: 1; }

.mitmachen-main {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 80px;
  padding: 80px 10vw;
  min-height: calc(100vh - 64px);
  align-items: start;
}

.mitmachen-content h1 {
  font-size: clamp(40px, 5vw, 64px);
  margin-bottom: 24px;
}

.mitmachen-content > p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 40px;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  transition: border-color 0.15s;
}
.form-input-wrap:focus-within { border-color: var(--blue); }

.form-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  background: transparent;
}
.form-input::placeholder { color: var(--text-muted); }

.form-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  background: transparent;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
  line-height: 1.6;
}
.form-textarea::placeholder { color: var(--text-muted); }
.form-textarea:focus { border-color: var(--blue); }

.mitmachen-intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 40px;
}

.form-field { margin-bottom: 24px; }

.form-icon { width: 18px; height: 18px; stroke: var(--blue); fill: none; flex-shrink: 0; }

.form-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 32px;
}
.form-checkbox-wrap input[type='checkbox'] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--blue);
  margin-top: 2px;
  cursor: pointer;
}
.form-checkbox-wrap label {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.55;
  cursor: pointer;
}

.mitmachen-submit { margin-top: 8px; }

.mitmachen-success {
  font-size: 16px;
  line-height: 1.7;
  color: var(--blue);
  font-weight: 600;
  padding: 24px 0;
}

.mitmachen-photo {
  position: sticky;
  top: 100px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.mitmachen-polaroid {
  width: 100%;
  max-width: clamp(280px, 32vw, 520px);
}

.mitmachen-plain-img {
  width: 100%;
  max-width: clamp(280px, 32vw, 520px);
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.mitmachen-photo .polaroid-frame {
  width: clamp(280px, 32vw, 520px);
}

.btn-primary:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.5;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .mitmachen-main { grid-template-columns: 1fr; gap: 40px; }
  .fq-cols { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .fq-header-row, .site-header, .gen-topbar { padding-left: 20px; padding-right: 20px; }
  .fq-section { padding: 48px 24px; }
  .fp-hero-title { font-size: clamp(40px, 12vw, 64px); }
  .mitmachen-main { padding: 40px 24px; }
  .gen-card { padding: 28px 24px; }
  .terminal-screen { font-size: 12px; }
}

/* ══════════════════════════════════════════
   v2 Components — nav, banner, sections, footer
   ══════════════════════════════════════════ */

/* ── Logo mark ── */
.logo-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--blue);
}

.footer-v2-brand .logo-mark { color: var(--cream); }

/* ── Main nav ── */
.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: none;
  transition: opacity 0.15s;
}
.main-nav a:hover { opacity: 0.65; }

/* ── Banner v2 ── */
.fp-banner-v2 {
  background: var(--navy);
  overflow: hidden;
  padding: 18px 0;
  user-select: none;
}

.fp-banner-v2-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: banner-scroll 38s linear infinite;
  white-space: nowrap;
}

.fp-banner-v2-track span {
  display: inline-flex;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
}

.fp-banner-v2-track span::after {
  content: "✦";
  color: var(--rose);
  opacity: 0.6;
  font-size: 12px;
  display: inline-block;
  margin: 0 28px;
}

@keyframes banner-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Wie's funktioniert v2 ── */
.fp-how-v2 {
  background: #F3FF8A;
  padding: 100px 10vw 80px;
  text-align: center;
}
.fp-how-v2 .label { color: var(--navy); }

.fp-how-v2-inner {
  max-width: clamp(940px, 84vw, 1760px);
  margin: 0 auto;
}

.fp-how-v2 h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  max-width: 900px;
  margin: 0 auto 16px;
}

.fp-how-v2-sub {
  font-size: 16px;
  color: var(--text-body);
  margin-bottom: 72px;
}

.fp-how-circles {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  position: relative;
}

.fp-how-circles::before {
  display: none;
}

.fp-how-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.fp-how-circle-num {
  width: 76px;
  height: 76px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  object-fit: contain;
}

.fp-how-circle-item h3 {
  font-family: 'Crimson Text', serif;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--text-dark);
  margin-bottom: 12px;
  font-weight: 300;
  max-width: 280px;
  line-height: 1.2;
}

.fp-how-circle-item p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.55;
  max-width: 280px;
}

/* ── Bereit zu starten CTA ── */
.fp-cta {
  background: #F3FF8A;
  padding: 0 10vw 100px;
}
.fp-cta .btn-primary { background: var(--navy); }
.fp-cta .btn-outline { color: var(--navy); border-color: var(--navy); }
.fp-cta .btn-outline:hover { background: rgba(24,33,87,0.08); }

.fp-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: clamp(960px, 86vw, 1880px);
  margin: 0 auto;
}

.fp-cta-left h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  margin-bottom: 16px;
}

.fp-cta-left p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 400px;
}

.fp-cta-photo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fp-cta-imgs {
  display: flex;
  gap: 24px;
  align-items: center;
}

.fp-cta-imgs .polaroid-frame {
  width: clamp(110px, 18vw, 340px);
  flex-shrink: 0;
}

/* polaroid frame (shared with design system) */
.polaroid-frame {
  background: var(--white);
  padding: 10px 10px 32px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.38);
  border-radius: 2px;
}

.polaroid-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: var(--light-blue);
}

/* ── Deine Vorteile v2 ── */
.fp-benefits-v2 {
  background: var(--cream);
  padding: 100px 10vw;
}

.fp-benefits-v2-inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 100px;
  align-items: start;
  max-width: clamp(960px, 86vw, 1880px);
  margin: 0 auto;
}

.fp-benefits-v2-left .label { margin-bottom: 16px; }

.fp-benefits-v2-left h2 {
  font-size: clamp(36px, 4vw, 52px);
  margin-bottom: 16px;
}

.fp-benefits-v2-left > p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 32px;
}

.fp-benefit-list { display: flex; flex-direction: column; }

.fp-benefit-list-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  align-items: flex-start;
  padding: 32px 0;
  border-bottom: 1px solid #e5e9ef;
}
.fp-benefit-list-item:last-child { border-bottom: none; }

.fp-benefit-num {
  font-family: 'Source Code Pro', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.08em;
  padding-top: 4px;
  flex-shrink: 0;
}

.fp-benefit-list-item h3 {
  font-family: 'Crimson Text', serif;
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--text-dark);
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.fp-benefit-list-item p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Footer v2 ── */
.footer-v2 {
  background: var(--blue);
  border-radius: 50px 50px 0 0;
  padding: 72px 10vw 0;
  margin-top: 0;
}

.footer-v2-inner {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 80px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  max-width: clamp(960px, 86vw, 1880px);
  margin: 0 auto;
}

.footer-v2-brand { display: flex; flex-direction: column; }

.footer-v2-brand .logo-mark { margin-bottom: 20px; }

.footer-v2-brand > p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
  max-width: 300px;
}

.footer-v2-col { display: flex; flex-direction: column; }

.footer-v2-col-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 20px;
}

.footer-v2-col a {
  font-size: 15px;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 12px;
  transition: opacity 0.15s;
}
.footer-v2-col a:hover { opacity: 0.65; }

.footer-instagram {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--white) !important;
  margin-bottom: 0 !important;
}

.footer-instagram svg {
  width: 20px;
  height: 20px;
  stroke: var(--white);
  fill: none;
  flex-shrink: 0;
}

.footer-v2-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 28px;
}

.footer-v2-bottom span,
.footer-v2-bottom a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-v2-bottom a:hover { color: rgba(255, 255, 255, 0.8); }

.footer-v2-bottom div { display: flex; gap: 24px; }

/* ── Info page — Über das Projekt ── */
.info-about {
  padding: 80px 0 0;
  background: var(--blue);
  text-align: center;
}

.info-about-text-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
}

.info-about .label { margin-bottom: 14px; color: rgba(255,255,255,0.7); }

.info-about h1 {
  font-size: clamp(40px, 6vw, 76px);
  max-width: 800px;
  margin: 0 auto 22px;
  letter-spacing: -0.02em;
  color: var(--white);
}

.info-about-text {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto;
}

/* Polaroid row — normal flow */
.info-polaroids-flex {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding: 48px 10vw 80px;
  flex-wrap: nowrap;
}
.info-polaroids-flex .polaroid-frame {
  flex: 1 1 0;
  min-width: 0;
  max-width: 260px;
  filter: drop-shadow(0 12px 24px rgba(0, 30, 90, 0.18));
}
.info-polaroids-flex .polaroid-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--light-blue);
}
@media (max-width: 850px) {
  .info-polaroids-flex {
    flex-wrap: wrap;
    padding: 32px 24px 48px;
  }
  .info-polaroids-flex .polaroid-frame {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
    margin-top: 0 !important;
  }
}

/* ── Info page — navigation fix ── */
.page-info { background: var(--rose); }

.page-info .site-header {
  background: var(--blue);
  border-bottom: none;
}
.page-info .site-header .logo-mark { color: var(--white); }
.page-info .site-header .main-nav a { color: rgba(255,255,255,0.85); }
.page-info .site-header .main-nav a:hover { color: var(--white); }

/* ── Info page — Freundschaft section ── */
.info-freundschaft {
  padding: 100px 10vw 48px;
  background:
    url('../public/images/Freundschaft_background.png') right top / 55% auto no-repeat,
    var(--cream);
}

.info-freundschaft-inner { max-width: clamp(960px, 86vw, 1880px); }
.info-freundschaft .label { margin-bottom: 12px; }

.info-freundschaft h2 {
  font-family: 'Crimson Text', serif;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--text-dark);
  margin-bottom: 24px;
  line-height: 1.2;
}

.info-freundschaft-intro {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.75;
  max-width: 800px;
  margin-bottom: 56px;
}

.info-freundschaft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.info-freundschaft-col p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 20px;
}

.info-freundschaft-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.info-freundschaft-list li {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}

.info-freundschaft-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--blue);
}

/* ── Info page — FAQ section ── */
.info-faq {
  padding: 100px 10vw;
  background: var(--white);
  border-top: 1px solid rgba(71, 96, 241, 0.08);
}

.info-faq-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  max-width: clamp(960px, 86vw, 1880px);
}

.info-faq-left .label { margin-bottom: 12px; }

.info-faq-left h2 {
  font-family: 'Crimson Text', serif;
  font-size: clamp(32px, 3.5vw, 48px);
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.1;
}

.info-faq-left p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item {
  border-bottom: 1px solid rgba(71, 96, 241, 0.12);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--blue);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234760F1' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

.faq-item[open] summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234760F1' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
}

.faq-item[open] {
  background: rgba(252, 198, 52, 0.18);
  border-radius: 8px;
  padding: 0 20px;
  border-bottom: none;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.75;
  padding-bottom: 24px;
}

/* ── Info page — Konsequenzen ── */
.info-konsequenzen {
  padding: 48px 10vw 100px;
  background: var(--cream);
}

.info-konsequenzen-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: clamp(960px, 86vw, 1880px);
}

.info-konsequenzen .label { margin-bottom: 12px; }

.info-blockquote {
  border-left: 3px solid var(--blue);
  padding-left: 28px;
  margin-bottom: 36px;
}

.info-blockquote p {
  font-family: 'Crimson Text', serif;
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 26px);
  color: var(--text-dark);
  line-height: 1.45;
  margin-bottom: 14px;
}

.info-blockquote cite {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-style: normal;
  display: block;
}

.info-konsequenzen-text {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 16px;
}

/* ── Info page — Consequences blue grid ── */
.info-consequences-blue {
  background: var(--navy);
  padding: 80px 10vw;
}

.info-consequences-blue .label-white {
  text-align: center;
  margin-bottom: 8px;
}

.info-consequences-blue h2 {
  font-size: clamp(32px, 4vw, 48px);
  color: var(--white);
  text-align: center;
  margin-bottom: 0;
}

.konsequenzen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.konsequenzen-item {
  padding: 48px 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.konsequenzen-item:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.konsequenzen-num {
  font-family: 'Crimson Text', serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  display: block;
  margin-bottom: 12px;
}

.konsequenzen-item h3 {
  font-family: 'Crimson Text', serif;
  font-size: 24px;
  color: var(--white);
  margin-bottom: 12px;
  font-weight: 600;
}

.konsequenzen-item p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

/* ── Info page — Reflexionsfrage ── */
.info-reflexion {
  background: var(--rose);
  padding: 96px 10vw;
  text-align: center;
}

.info-reflexion .label {
  color: var(--navy);
  margin-bottom: 20px;
}

.info-reflexion h2 {
  font-size: clamp(32px, 4vw, 52px);
  color: var(--navy);
  margin: 0 auto 28px;
  max-width: 720px;
  line-height: 1.2;
}

.info-reflexion p {
  color: var(--navy);
  opacity: 0.75;
  font-size: 16px;
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto;
}

/* ── Info page — Stats section ── */
.info-stats {
  background: var(--rose);
  padding: 80px 10vw;
  text-align: center;
}

.info-stats .label { color: var(--navy); }

.info-stats h2 {
  font-family: 'Crimson Text', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 16px;
}

.info-stats-subtitle {
  font-size: 16px;
  color: var(--navy);
  opacity: 0.7;
  max-width: 560px;
  margin: 0 auto;
}

.info-stats-split {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 600px;
  margin: 60px auto 0;
}

.info-stats-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.info-stats-num {
  font-family: 'Crimson Text', serif;
  font-size: clamp(64px, 9vw, 100px);
  color: var(--navy);
  line-height: 1;
  font-weight: 400;
}

.info-stats-label {
  font-size: 15px;
  color: var(--navy);
  opacity: 0.8;
}

.info-stats-divider {
  width: 1px;
  height: 90px;
  background: var(--navy);
  opacity: 0.3;
  flex-shrink: 0;
  margin: 0 40px;
}

/* ── v2 Responsive ── */
@media (max-width: 1024px) {
  .fp-benefits-v2-inner { grid-template-columns: 1fr; gap: 48px; max-width: none; }
  .footer-v2-inner     { grid-template-columns: 1fr 1fr; gap: 48px; max-width: none; }
  .fp-cta-inner        { grid-template-columns: 1fr; gap: 40px; max-width: none; }
  .fp-how-v2-inner     { max-width: none; }
}

/* ── Wide screens (≥ 1400px — large laptops upward) ──
   The default `10vw` side padding wastes a lot of space on big monitors.
   We trim it progressively, capping at ~96px so even on a 27" display the
   content reaches close to the screen edges instead of sitting in a narrow
   centered column. ── */
@media (min-width: 1400px) {
  .fp-how-v2,
  .fp-cta,
  .fp-benefits-v2,
  .footer-v2,
  .info-freundschaft,
  .info-faq,
  .info-konsequenzen,
  .info-consequences-blue { padding-left: clamp(40px, 4vw, 96px); padding-right: clamp(40px, 4vw, 96px); }

  .fp-hero-img-content,
  .mitmachen-main { padding-left: clamp(40px, 4vw, 96px); padding-right: clamp(40px, 4vw, 96px); }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .fp-how-circles { grid-template-columns: 1fr; gap: 40px; }
  .fp-how-circles::before { display: none; }
  .fp-how-v2 { padding: 64px 24px 56px; }
  .fp-cta { padding: 0 24px 64px; }
  .fp-benefits-v2 { padding: 64px 24px; }
  .info-about { padding: 64px 24px 0; }
  .info-konsequenzen { padding: 64px 24px; }
  .info-konsequenzen-inner { grid-template-columns: 1fr; gap: 32px; }
  .info-consequences-blue { padding: 56px 24px; }
  .info-freundschaft { padding: 64px 24px; }
  .info-freundschaft-grid { grid-template-columns: 1fr; gap: 0; }
  .info-faq { padding: 64px 24px; }
  .info-faq-inner { grid-template-columns: 1fr; gap: 40px; }
  .konsequenzen-grid { grid-template-columns: 1fr; }
  .konsequenzen-item:nth-child(odd) { border-right: none; }
  .footer-v2 { padding: 48px 24px 0; border-radius: 24px 24px 0 0; }
  .footer-v2-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-v2-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .site-header { padding: 16px 24px; }
}

/* ── Scroll reveal ── */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════
   CHAT-DESIGN — Fragebogen Sections 2+
   Section 1 (Chat-Intro) bleibt unverändert.
══════════════════════════════════════════════════ */

/* ── Section-Layout: Spalte, oben ausgerichtet, content-höhe ── */
.page-fragebogen .fq-section:not([data-step="1"]).active {
  justify-content: flex-start !important;
  align-items: flex-start !important;
  min-height: auto !important;
  padding: 32px 20px;
  gap: 20px;
}

/* Alle direkten Kinder: volle Breite, links ausgerichtet */
.page-fragebogen .fq-section:not([data-step="1"]) > * {
  width: 100%;
  box-sizing: border-box;
}

/* ── KI-Bubble: linke Sprechblase ── */

/* Wrapper-Div mit inline justify-content:center → links */
.page-fragebogen .fq-section:not([data-step="1"]) > [style*="justify-content"] {
  justify-content: flex-start !important;
  margin-bottom: 0 !important;
}

/* KI-Bubble Form + Positionierung */
.page-fragebogen .fq-section:not([data-step="1"]) .ki-bubble {
  border-radius: 4px 18px 18px 18px;
  width: auto;
  max-width: 100%;
  min-width: 180px;
  margin-right: auto;
}

/* Persönlichkeits-Warning ebenfalls links */
.page-fragebogen #ki-personality-warning {
  border-radius: 4px 18px 18px 18px !important;
  width: auto !important;
  max-width: 100% !important;
  margin-right: auto;
}

/* ── Antwortbereiche: rechte Seite ── */

/* Zähler-Text */
.page-fragebogen .fq-section:not([data-step="1"]) .int-counter {
  text-align: right;
  max-width: 600px;
  margin-left: auto;
}

/* Tab-Navigation Interessen */
.page-fragebogen .fq-section:not([data-step="1"]) .int-nav-wrap {
  display: flex !important;
  justify-content: flex-end;
  max-width: 600px;
  margin-left: auto;
}

/* Interessen-Panels: Tags rechtsbündig */
.page-fragebogen .fq-section:not([data-step="1"]) #cat-interests {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 600px;
  margin-left: auto;
}
.page-fragebogen .fq-section:not([data-step="1"]) .int-panel {
  width: 100%;
  max-width: 600px;
}
.page-fragebogen .fq-section:not([data-step="1"]) .int-panel .tags-container {
  justify-content: flex-end;
}

/* Persönlichkeits-Tags: rechtsbündig, max 600px */
.page-fragebogen .fq-section:not([data-step="1"]) [data-cat="personality"].tags-container {
  justify-content: flex-end;
  max-width: 600px;
  margin-left: auto;
}

/* KI-Bubble-Wrapper: linksbündig statt zentriert (Chat-Layout) */
.page-fragebogen .fq-section:not([data-step="1"]) > div:has(> .ki-bubble) {
  justify-content: flex-start !important;
}

/* Werte-Optionen: rechte Seite, Buttons rechts gestapelt */
.page-fragebogen .fq-section:not([data-step="1"]) .val-options {
  align-items: flex-end !important;
  max-width: none;
}
.page-fragebogen .fq-section:not([data-step="1"]) .val-divider {
  width: auto;
  margin-left: auto;
  gap: 0;
  margin-top: 8px;
  margin-bottom: 8px;
}
.page-fragebogen .fq-section:not([data-step="1"]) .val-divider::before,
.page-fragebogen .fq-section:not([data-step="1"]) .val-divider::after {
  display: none;
}

/* ── Finalisieren button container (appended after last loading) ── */
.fq-loading-action {
  padding: 0 20px;
}
.fq-loading-action .fq-nav {
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  padding-top: 16px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

/* Weiter-Button: rechts, sticky so it's always reachable */
.page-fragebogen .fq-section:not([data-step="1"]) .fq-nav {
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  padding-top: 16px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

/* ── Ausgewählte Tags → User-Sprechblase (blau, rechts) ── */

/* Interesse & Persönlichkeit */
.page-fragebogen .fq-section:not([data-step="1"]) .tag-btn.selected {
  background: var(--blue) !important;
  color: white !important;
  border-color: var(--blue) !important;
  box-shadow: none !important;
}
/* Dimmed-State bleibt lesbar */
.page-fragebogen .fq-section:not([data-step="1"]) .tag-btn.tag-dimmed {
  opacity: 0.35;
}

/* Werte-Optionen ausgewählt */
.page-fragebogen .fq-section:not([data-step="1"]) .val-option.tag-btn.selected {
  background: var(--blue) !important;
  color: white !important;
  border-color: var(--blue) !important;
  box-shadow: none !important;
}

/* ── Loading Screens → KI-Nachricht (links, bleibt sichtbar) ── */

.page-fragebogen .fq-loading {
  align-items: flex-start !important;
  justify-content: flex-start !important;
  min-height: auto !important;
  padding: 24px 20px;
}

.page-fragebogen .fq-loading .fq-loading-card {
  width: fit-content;
  max-width: 600px;
  border-radius: 4px 18px 18px 18px;
  padding: 24px 28px;
  border: none;
  gap: 0;
  align-items: flex-start;
  margin: 0;
  box-shadow: 0 2px 20px rgba(71, 96, 241, 0.12);
}

/* All p in loading cards match ki-bubble p */
.page-fragebogen .fq-loading .fq-loading-card p {
  font-family: 'Source Code Pro', monospace;
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.7;
}

/* Loading title keeps ki-bubble h3 weight/size */
.page-fragebogen .fq-loading .fq-loading-card .fq-loading-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 8px;
}

/* Spinner ausgeblendet */
.page-fragebogen .fq-loading .fq-spinner {
  display: none;
}

/* ── Scroll-Margin für Sticky-Topbar ── */
.page-fragebogen .fq-loading,
.page-fragebogen .fq-section {
  scroll-margin-top: 64px;
}

/* ── Content column: responsive width, wider on larger screens ── */
#fq-main {
  max-width: clamp(600px, 72vw, 900px);
  margin: 0 auto;
  padding-bottom: 80px;
}

/* ── Section 1: break out of 600px column, restore original full-width layout ── */
.page-fragebogen .fq-section[data-step="1"] {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  max-width: none;
}

/* ── User-Reply Bubble (ausgewählte Attribute als Chat-Nachricht) ── */
.user-reply-bubble {
  display: flex;
  justify-content: flex-end;
}

.user-reply-bubble-inner {
  background: var(--blue);
  border-radius: 18px 4px 18px 18px;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 460px;
  justify-content: flex-end;
}

.user-reply-tag {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  border-radius: 100px;
  padding: 5px 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.user-reply-text {
  font-family: 'Source Code Pro', monospace;
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.65;
  margin: 0;
  text-align: left;
  white-space: pre-wrap;
}
