/* ═══════════════════════════════════════════════════════════════
   iSH Fortbildungskonfigurator — Standalone
   Farben: #00364a (Dunkelblau) · #72cff4 (iSH Schule Blau) · #9cddf7 (Light)
   Fonts:  Rubik (Headlines) · Inter (Body)
═══════════════════════════════════════════════════════════════ */

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

body {
  margin: 0;
  background: #f5f7f8;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 15px;
  color: #1a2a30;
}

/* ── PAGE ──────────────────────────────────────────────────────── */
.konfig-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ────────────────────────────────────────────────────── */
.konfig-header {
  background: #00364a;
  position: relative;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 48px 36px;
  max-width: 940px;
  margin: 0 auto;
}
.ish-logo { display: flex; align-items: center; flex-shrink: 0; }
.ish-logo-img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
}
.header-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.2); flex-shrink: 0; }
.header-text { flex: 1; }
.header-title { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 1.75rem; color: white; margin: 0 0 6px; line-height: 1.2; }
.header-sub { color: #9cddf7; font-size: 0.9rem; margin: 0; font-weight: 400; line-height: 1.4; }
.header-wave { height: 60px; overflow: hidden; line-height: 0; }
.header-wave svg { width: 100%; height: 100%; display: block; }

/* ── MAIN ──────────────────────────────────────────────────────── */
.konfig-main {
  flex: 1;
  max-width: 940px;
  width: 100%;
  margin: 0 auto;
  padding: 8px 48px 48px;
}

/* ── SECTIONS ──────────────────────────────────────────────────── */
.konfig-section {
  background: white;
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,54,74,0.06);
  border: 1px solid rgba(114,207,244,0.1);
  animation: fadeSlideIn 0.3s ease both;
}
.konfig-section-last { border-color: rgba(114,207,244,0.25); }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.section-num {
  width: 36px; height: 36px; min-width: 36px;
  background: #3b8ec5;
  color: white; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 16px;
  margin-top: 2px;
}

/* Phase-colored section numbers */
.section-num-zielsetzung { background: #3c9e72; }   /* green — Zielsetzung */
.section-num-analyse     { background: #3b8ec5; }   /* blue  — Analyse    */
.section-num-umsetzung   { background: #e07a4a; }   /* orange — Umsetzung */

.section-title { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 1.15rem; color: #00364a; margin: 0 0 3px; }
.section-desc { font-size: 0.85rem; color: #6b8290; margin: 0; }

/* ── FORM GRID ─────────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.span-2 { grid-column: span 2; }
.field-wrap { display: flex; flex-direction: column; gap: 6px; }
.field-wrap.mt-12 { margin-top: 12px; }
.field-wrap.mt-16 { margin-top: 16px; }
.mt-16 { margin-top: 16px; }
.field-label { font-size: 0.82rem; font-weight: 500; color: #00364a; letter-spacing: 0.2px; }
.field-divider { height: 1px; background: #edf1f3; margin: 20px 0; }
.field-divider.span-2 { grid-column: span 2; margin: 4px 0; }

/* ── INPUTS ────────────────────────────────────────────────────── */
.field-input-wrap {
  display: flex; align-items: center;
  border: 1.5px solid #d0dde2; border-radius: 10px;
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
  overflow: hidden;
}
.field-input-wrap:focus-within {
  border-color: #72cff4;
  box-shadow: 0 0 0 3px rgba(114,207,244,0.12);
}
.field-icon { color: #72cff4; font-size: 18px; padding: 0 10px 0 12px; flex-shrink: 0; user-select: none; }
.field-input {
  flex: 1; border: none; outline: none;
  padding: 11px 12px 11px 0;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; color: #1a2a30;
  background: transparent;
}
.field-input::placeholder { color: #9ab0bc; }

/* Bare input (no icon wrapper) */
.field-input-bare {
  width: 100%; border: 1.5px solid #d0dde2; border-radius: 10px;
  outline: none; padding: 11px 14px;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; color: #1a2a30;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: white;
}
.field-input-bare:focus {
  border-color: #72cff4;
  box-shadow: 0 0 0 3px rgba(114,207,244,0.12);
}
.field-input-bare::placeholder { color: #9ab0bc; }

.field-textarea {
  width: 100%; border: 1.5px solid #d0dde2; border-radius: 10px;
  padding: 11px 14px;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; color: #1a2a30;
  outline: none; resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: white;
}
.field-textarea:focus {
  border-color: #72cff4;
  box-shadow: 0 0 0 3px rgba(114,207,244,0.12);
}
.field-textarea::placeholder { color: #9ab0bc; }

/* Select */
.select-wrap { position: relative; }
.field-select {
  flex: 1; border: none; outline: none;
  padding: 11px 36px 11px 12px;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; color: #1a2a30;
  background: transparent; appearance: none; cursor: pointer; width: 100%;
}
.select-arrow { position: absolute; right: 10px; color: #72cff4; font-size: 20px; pointer-events: none; }

/* ── GROUP LABELS ──────────────────────────────────────────────── */
.group-label { font-family: 'Rubik', sans-serif; font-weight: 500; font-size: 0.88rem; color: #00364a; margin: 0 0 12px; }
.group-label.mt-16 { margin-top: 16px; }
.group-sub { font-size: 0.83rem; color: #6b8290; margin: -8px 0 16px; line-height: 1.5; }
.optional { font-weight: 400; font-size: 0.8rem; color: #9ab0bc; margin-left: 4px; }

/* ── THEME TILES ───────────────────────────────────────────────── */
.themen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}
.thema-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 12px 16px;
  border: 2px solid #e0e8ec; border-radius: 14px;
  cursor: pointer; text-align: center; background: white;
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: 'Inter', sans-serif; color: #2a4450; line-height: 1;
}
.thema-tile:hover { border-color: #72cff4; background: #f0f8fd; transform: translateY(-3px); box-shadow: 0 6px 18px rgba(114,207,244,0.15); }
.thema-tile:active { transform: scale(0.96); }
.thema-icon { font-size: 30px; color: #72cff4; font-family: 'Material Icons'; font-style: normal; }
.thema-label { font-size: 0.78rem; font-weight: 500; line-height: 1.3; color: #2a4450; }
.thema-tile.selected {
  border-color: #00364a !important; background: #00364a !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,54,74,0.3);
}
.thema-tile.selected .thema-icon,
.thema-tile.selected .thema-label { color: white !important; }

/* ── SCHWERPUNKT ───────────────────────────────────────────────── */
.schwerpunkt-panel {
  margin-top: 20px; padding: 20px;
  background: #f0f8fd; border-radius: 14px; border-left: 4px solid #72cff4;
  animation: fadeSlideIn 0.25s ease;
}
.schwerpunkt-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.88rem; font-weight: 500; color: #00364a; margin-bottom: 14px; }
.schwerpunkt-head .material-icons { font-size: 18px; color: #72cff4; }
.hint-badge { background: rgba(114,207,244,0.12); color: #72cff4; font-size: 0.75rem; padding: 2px 8px; border-radius: 20px; font-weight: 400; }
.schwerpunkt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

/* ── CHECK TILES ───────────────────────────────────────────────── */
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check-tile {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid #d0dde2; border-radius: 10px;
  cursor: pointer; background: white;
  transition: all 0.15s; user-select: none;
}
.check-tile:hover { border-color: #72cff4; background: #f0f8fd; }
.check-tile.active { border-color: #72cff4 !important; background: #f0f8fd !important; }
.check-box { display: flex; align-items: center; flex-shrink: 0; }
.check-icon { font-size: 22px; color: #c8d8de; transition: color 0.15s, transform 0.15s; font-family: 'Material Icons'; font-style: normal; }
.check-tile.active .check-icon { color: #72cff4; transform: scale(1.15); }
.check-label { font-size: 0.85rem; color: #2a4450; line-height: 1.3; flex: 1; }
.check-tile.active .check-label { color: #00364a; font-weight: 500; }

/* ── ICON CARDS ────────────────────────────────────────────────── */
.icon-card-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.icon-card-row-5 { grid-template-columns: repeat(5, 1fr); }
.icon-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 10px;
  border: 2px solid #d0dde2; border-radius: 14px;
  cursor: pointer; text-align: center; background: white;
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: 'Inter', sans-serif; font-size: 0.8rem; color: #2a4450; line-height: 1.3;
}
.icon-card .material-icons { font-size: 26px; color: #72cff4; transition: color 0.15s; }
.icon-card:hover { border-color: #72cff4; transform: translateY(-2px); background: #f0f8fd; }
.icon-card.active {
  border-color: #00364a !important; background: #00364a !important;
  color: white !important; transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,54,74,0.25);
}
.icon-card.active .material-icons { color: white !important; }

/* ── URGENCY CARDS ─────────────────────────────────────────────── */
.urgency-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.urgency-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 10px;
  border: 2px solid #d0dde2; border-radius: 14px;
  cursor: pointer; text-align: center; background: white;
  font-family: 'Inter', sans-serif; font-size: 0.78rem; color: #2a4450; line-height: 1.3;
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.urgency-card .material-icons { font-size: 26px; }
.urgency-card:hover { transform: translateY(-2px); border-color: #aaa; background: #f9f9f9; }
.urgency-card.active {
  background: var(--uc) !important; border-color: var(--uc) !important;
  color: white !important; transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* ── ★ POLARITY SLIDER ─────────────────────────────────────────── */
.polarity-section { margin-bottom: 4px; }

.polarity-wrapper {
  background: #f8fafc;
  border: 1.5px solid #d0dde2;
  border-radius: 16px;
  padding: 20px 20px 16px;
}

.polarity-ends-row {
  display: flex; justify-content: space-between;
  font-size: 0.8rem; color: #6b8290; font-weight: 500;
  margin-bottom: 12px; padding: 0 2px;
}
.polarity-ends-row span { display: flex; align-items: center; gap: 4px; }
.polarity-ends-row .material-icons { font-size: 15px; }

.polarity-nodes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  position: relative;
}

/* gradient bar behind nodes */
.polarity-nodes::before {
  content: '';
  position: absolute;
  top: 50%; left: 4%; right: 4%;
  height: 3px;
  transform: translateY(-50%);
  background: linear-gradient(to right, #3b6fb5, #72cff4);
  border-radius: 2px;
  z-index: 0;
}

.polarity-node {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 6px 12px;
  border: 2px solid #d0dde2; border-radius: 12px;
  cursor: pointer; text-align: center;
  background: white;
  font-family: 'Inter', sans-serif; font-size: 0.75rem; color: #2a4450; line-height: 1.3;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.polarity-node .material-icons { font-size: 22px; transition: color 0.15s; }
.polarity-node:hover {
  transform: translateY(-3px);
  border-color: var(--pc);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.polarity-node.active {
  background: var(--pc) !important;
  border-color: var(--pc) !important;
  color: white !important;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
.polarity-node.active .material-icons { color: white !important; }
.polarity-node .material-icons { color: var(--pc); }

.polarity-node-desc {
  font-size: 0.72rem;
  color: #9ab0bc;
  margin-top: 1px;
}
.polarity-node.active .polarity-node-desc { color: rgba(255,255,255,0.8); }

.polarity-feedback {
  margin-top: 12px;
  min-height: 20px;
  font-size: 0.83rem;
  color: #6b8290;
  text-align: center;
  font-style: italic;
  transition: opacity 0.2s;
}

/* ── MUSTER DETAILS ────────────────────────────────────────────── */
.muster-details {
  background: #f0f8fd;
  border-radius: 12px;
  padding: 16px;
  border-left: 4px solid #3b8ec5;
  animation: fadeSlideIn 0.25s ease;
}

/* ── FÖRDERMITTEL ──────────────────────────────────────────────── */
.foerd-choice { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.foerd-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  border: 2px solid #d0dde2; border-radius: 10px;
  cursor: pointer; background: white;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; color: #2a4450;
  transition: all 0.15s;
}
.foerd-btn .material-icons { font-size: 20px; color: #72cff4; }
.foerd-btn:hover { border-color: #72cff4; background: #f0f8fd; }
.foerd-btn.active { background: #00364a !important; border-color: #00364a !important; color: white !important; }
.foerd-btn.active .material-icons { color: #9cddf7 !important; }

.foerd-details {
  margin-top: 16px; padding: 16px;
  background: #f5f7f8; border-radius: 12px;
  animation: fadeSlideIn 0.2s ease;
}

.info-box {
  display: flex; gap: 12px; align-items: flex-start;
  background: #e8f4fd; border: 1px solid #aad4f5; border-radius: 10px;
  padding: 14px 16px; margin-top: 14px;
  font-size: 0.87rem; color: #00364a; line-height: 1.5;
}
.info-box .material-icons { font-size: 20px; color: #72cff4; flex-shrink: 0; margin-top: 1px; }

/* ── ABSCHLUSS ─────────────────────────────────────────────────── */
.abschluss-box {
  display: flex; align-items: flex-start; gap: 12px;
  background: linear-gradient(135deg, #f0f8fd 0%, #e8f4fd 100%);
  border: 1px solid #aad4f5; border-radius: 12px;
  padding: 16px 20px; margin-bottom: 20px;
}
.abschluss-box .material-icons { color: #72cff4; font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.abschluss-box p { margin: 0; font-size: 0.9rem; color: #00364a; line-height: 1.6; }

.datenschutz-label {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; margin-bottom: 20px;
  font-size: 0.88rem; color: #2a4450; user-select: none;
}

.erwartungen-list { display: flex; flex-direction: column; gap: 8px; }
.check-tile-wide { width: 100%; }

.submit-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.required-hint { font-size: 0.8rem; color: #9ab0bc; }

/* ── SUBMIT BUTTON ─────────────────────────────────────────────── */
.submit-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  background: #c8d8de; color: #6b8290;
  border: none; border-radius: 12px;
  font-family: 'Rubik', sans-serif; font-weight: 500; font-size: 0.95rem;
  cursor: not-allowed;
  transition: all 0.2s;
}
.submit-btn.ready {
  background: #00364a !important; color: white !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(0,54,74,0.35);
}
.submit-btn.ready:hover { background: #004d66 !important; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,54,74,0.4); }
.submit-btn.ready:active { transform: translateY(0); }
.submit-btn .material-icons { font-size: 20px; }

.outline-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  background: transparent; color: #00364a;
  border: 2px solid #00364a; border-radius: 12px;
  font-family: 'Rubik', sans-serif; font-weight: 500; font-size: 0.95rem;
  cursor: pointer; transition: all 0.18s;
}
.outline-btn:hover { background: #00364a; color: white; }
.outline-btn .material-icons { font-size: 20px; }

/* ── SUCCESS PAGE ──────────────────────────────────────────────── */
.success-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 60px 24px; text-align: center;
  animation: fadeSlideIn 0.4s ease;
}
.success-circle {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, #00364a, #72cff4);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(0,54,74,0.35);
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.success-circle .material-icons { font-size: 40px; color: white; }
@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-title { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 1.6rem; color: #00364a; margin: 0; }
.success-text { color: #4a6470; font-size: 1rem; max-width: 500px; line-height: 1.6; margin: 0; }
.success-ref {
  display: flex; align-items: center; gap: 8px;
  background: #f0f8fd; border: 1px solid #aad4f5; border-radius: 10px;
  padding: 10px 20px; font-size: 0.9rem; color: #00364a;
}
.success-ref .material-icons { color: #72cff4; font-size: 18px; }
.success-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ── BOOKING INVITE ────────────────────────────────────────────── */
.booking-invite {
  display: flex; align-items: flex-start; gap: 14px;
  background: linear-gradient(135deg, #f0f8fd 0%, #e8f4fd 100%);
  border: 1.5px solid #aad4f5; border-radius: 14px;
  padding: 16px 20px; margin-bottom: 20px;
  font-size: 0.9rem; color: #00364a;
}
.booking-invite .material-icons { font-size: 26px; color: #72cff4; flex-shrink: 0; margin-top: 2px; }
.booking-invite strong { font-family: 'Rubik', sans-serif; font-weight: 700; display: block; margin-bottom: 4px; }
.booking-invite p { margin: 0; color: #6b8290; font-size: 0.85rem; line-height: 1.5; }

/* ── SUBMIT ERROR ───────────────────────────────────────────────── */
.submit-error {
  margin: 0 24px 12px;
  padding: 10px 14px;
  background: #fff0f0;
  border-left: 3px solid #c62828;
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem; color: #c62828; line-height: 1.5;
}

/* ── SPINNER ────────────────────────────────────────────────────── */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ── FOOTER ────────────────────────────────────────────────────── */
.konfig-footer {
  background: #00364a; color: rgba(255,255,255,0.5);
  text-align: center; padding: 16px; font-size: 0.8rem;
  display: flex; justify-content: center; gap: 10px;
  margin-top: auto;
}

/* ── MATERIAL ICONS ────────────────────────────────────────────── */
.material-icons { font-family: 'Material Icons'; font-style: normal; font-weight: normal; line-height: 1; display: inline-block; vertical-align: middle; }

/* ── PROGRESS BAR ──────────────────────────────────────────────── */
.progress-bar-wrap {
  background: white;
  border-radius: 16px;
  padding: 16px 24px 14px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,54,74,0.06);
  border: 1px solid rgba(114,207,244,0.1);
  position: sticky;
  top: 8px;
  z-index: 100;
}

.progress-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  margin-bottom: 14px;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 15px; left: 20px; right: 20px;
  height: 2px;
  background: #e0e8ec;
  z-index: 0;
}

.progress-step {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  flex: 1; position: relative; z-index: 1; cursor: pointer;
}

.pdot {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid #d0dde2; background: white;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rubik', sans-serif; font-size: 11px; font-weight: 700; color: #9ab0bc;
  transition: all 0.2s;
}
.pdot.done { background: #00364a; border-color: #00364a; color: white; }
.pdot.active { border-color: #72cff4; color: #00364a; box-shadow: 0 0 0 3px rgba(114,207,244,0.15); }
.pdot .material-icons { font-size: 14px; }

.pstep-label {
  font-size: 0.67rem; color: #9ab0bc; text-align: center; line-height: 1.2; max-width: 64px;
}
.progress-step.done .pstep-label,
.progress-step.active .pstep-label { color: #00364a; font-weight: 500; }

.pstep-opt { font-size: 0.6rem; color: #b8c8ce; text-align: center; }

/* ── MODE TOGGLE ───────────────────────────────────────────────── */
.mode-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}

.mode-toggle {
  display: flex; gap: 4px;
  background: #f0f4f6; border-radius: 10px; padding: 3px;
}

.mode-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border: none; border-radius: 8px; cursor: pointer;
  background: transparent; color: #6b8290;
  font-family: 'Inter', sans-serif; font-size: 0.84rem; font-weight: 500;
  transition: all 0.15s;
}
.mode-btn .material-icons { font-size: 15px; }
.mode-btn.mode-active { background: #00364a; color: white; box-shadow: 0 2px 6px rgba(0,54,74,0.3); }

.mode-hint { font-size: 0.79rem; color: #9ab0bc; }

/* ── FUNDING TEASER ────────────────────────────────────────────── */
.funding-teaser {
  display: flex; align-items: flex-start; gap: 14px;
  background: linear-gradient(135deg, #fff9e6 0%, #fffaee 100%);
  border: 1px solid #f0d899; border-radius: 14px;
  padding: 14px 20px; margin-bottom: 20px;
  font-size: 0.88rem; color: #5a4010; line-height: 1.5;
}
.funding-teaser .material-icons { color: #d4a017; font-size: 22px; flex-shrink: 0; margin-top: 2px; }

/* ── OPTIONAL BADGE ────────────────────────────────────────────── */
.optional-badge {
  display: inline-block;
  background: rgba(107,130,144,0.12); color: #6b8290;
  font-size: 0.7rem; font-weight: 500;
  padding: 2px 8px; border-radius: 20px;
  vertical-align: middle; margin-left: 6px;
  font-family: 'Inter', sans-serif;
}

/* ── CHIPS ─────────────────────────────────────────────────────── */
.chips-row {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap; margin-top: 8px;
}
.chips-label { font-size: 0.75rem; color: #9ab0bc; font-weight: 500; white-space: nowrap; }
.chip {
  display: inline-flex; align-items: center;
  padding: 4px 12px;
  background: #f0f8fd; border: 1.5px solid #aad4f5; border-radius: 20px;
  color: #00364a; font-size: 0.78rem;
  font-family: 'Inter', sans-serif; cursor: pointer;
  transition: all 0.15s; white-space: nowrap;
}
.chip:hover { background: #00364a; border-color: #00364a; color: white; }

/* ── ADVANCED TOGGLE CARD ──────────────────────────────────────── */
.advanced-toggle-card {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, #f0f8fd 0%, #e8f4fd 100%);
  border: 1.5px solid #aad4f5; border-radius: 16px;
  padding: 16px 20px; margin-bottom: 20px;
  animation: fadeSlideIn 0.3s ease;
}
.advanced-toggle-card > .material-icons { font-size: 28px; color: #72cff4; flex-shrink: 0; }

.advanced-toggle-text {
  flex: 1; display: flex; flex-direction: column; gap: 2px;
  font-size: 0.9rem; color: #00364a; line-height: 1.4;
}
.advanced-toggle-text strong { font-family: 'Rubik', sans-serif; font-weight: 700; }
.advanced-toggle-text span { color: #6b8290; font-size: 0.85rem; }

.mode-expand-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; background: #00364a; color: white;
  border: none; border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: background 0.15s;
  flex-shrink: 0;
}
.mode-expand-btn:hover { background: #004d66; }
.mode-expand-btn .material-icons { font-size: 18px; }

/* ── WHY BADGE ─────────────────────────────────────────────────── */
.why-badge {
  display: inline-flex; align-items: center;
  background: rgba(114,207,244,0.1); color: #72cff4;
  font-size: 0.75rem; padding: 2px 8px; border-radius: 20px;
  cursor: pointer; margin-left: 6px; font-weight: 500;
  vertical-align: middle; transition: background 0.15s; user-select: none;
}
.why-badge:hover { background: rgba(114,207,244,0.2); }
.why-text {
  font-size: 0.82rem; color: #6b8290;
  margin-left: 4px; font-style: italic;
}
.why-box {
  background: rgba(114,207,244,0.06);
  border-left: 3px solid #72cff4;
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  margin: -4px 0 14px;
  font-size: 0.84rem; color: #2a4450; line-height: 1.55;
  animation: fadeSlideIn 0.2s ease;
}

/* ── TOOLTIP ICON ──────────────────────────────────────────────── */
.tip-icon {
  display: inline-block; cursor: help;
  color: #72cff4; font-size: 0.78rem;
  margin-left: 4px; vertical-align: middle;
  font-family: 'Inter', sans-serif;
}

/* ── PREVIEW PANEL ─────────────────────────────────────────────── */
.preview-panel {
  background: #f8fafc;
  border: 1.5px solid #aad4f5;
  border-radius: 16px;
  margin-top: 20px;
  overflow: hidden;
  animation: fadeSlideIn 0.3s ease;
}

.preview-header {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #00364a 0%, #005870 100%);
  padding: 18px 24px; color: white;
}
.preview-header .material-icons { font-size: 26px; color: #72cff4; flex-shrink: 0; }
.preview-header strong { font-family: 'Rubik', sans-serif; font-size: 1rem; display: block; margin-bottom: 2px; }
.preview-header span { font-size: 0.83rem; color: rgba(255,255,255,0.65); }

.preview-section { padding: 16px 24px 4px; }
.preview-section-title {
  font-family: 'Rubik', sans-serif; font-weight: 700;
  font-size: 0.76rem; color: #00364a;
  letter-spacing: 0.6px; text-transform: uppercase;
  margin-bottom: 10px; padding-bottom: 6px;
  border-bottom: 1px solid #deeaed;
}

.preview-row {
  display: grid; grid-template-columns: 150px 1fr;
  gap: 4px 16px; padding: 6px 0;
  border-bottom: 1px solid #f0f4f6;
  font-size: 0.86rem; align-items: start;
}
.preview-label { color: #6b8290; font-weight: 500; padding-top: 1px; }
.preview-value { color: #1a2a30; line-height: 1.55; }

.preview-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.preview-tag {
  background: rgba(114,207,244,0.15); color: #00364a;
  border-radius: 20px; padding: 2px 10px; font-size: 0.78rem;
}

.preview-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  padding: 20px 24px; border-top: 1px solid #deeaed;
  margin-top: 8px; background: white;
}

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .header-inner { padding: 20px 20px 28px; flex-direction: column; align-items: flex-start; }
  .header-divider { display: none; }
  .konfig-main { padding: 8px 16px 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: 1; }
  .check-grid { grid-template-columns: 1fr; }
  .schwerpunkt-grid { grid-template-columns: 1fr; }
  .urgency-grid { grid-template-columns: repeat(2, 1fr); }
  .icon-card-row-5 { grid-template-columns: repeat(3, 1fr); }
  .polarity-nodes { grid-template-columns: repeat(3, 1fr); }
  .polarity-nodes::before { display: none; }
  .pstep-label { display: none; }
  .pstep-opt { display: none; }
  .advanced-toggle-card { flex-wrap: wrap; }
  .mode-row { flex-direction: column; align-items: flex-start; }
  .preview-row { grid-template-columns: 1fr; gap: 2px; }
  .preview-label { font-size: 0.75rem; }
  .preview-section { padding: 12px 16px 4px; }
  .preview-actions { padding: 16px; }
  .preview-header { padding: 14px 16px; }
}
@media (max-width: 480px) {
  .icon-card-row { grid-template-columns: 1fr; }
  .icon-card-row-5 { grid-template-columns: repeat(2, 1fr); }
  .polarity-nodes { grid-template-columns: repeat(2, 1fr); }
  .chips-row { gap: 4px; }
  .themen-grid { grid-template-columns: repeat(2, 1fr); }
  .foerd-btn { width: 100%; justify-content: center; }
  .foerd-choice { flex-direction: column; }
  .submit-row { flex-direction: column; align-items: stretch; }
  .submit-btn { width: 100%; justify-content: center; }
  .outline-btn { width: 100%; justify-content: center; }
  .mode-toggle { width: 100%; }
  .mode-btn { flex: 1; justify-content: center; }
  .konfig-section { padding: 20px 16px; }
  .section-num { width: 30px; height: 30px; min-width: 30px; font-size: 0.85rem; }
  .field-input, .field-select, .field-textarea { font-size: 16px; } /* prevent zoom on iOS */
  .progress-bar-wrap { overflow-x: auto; }
}

/* ── PDF BUTTON ────────────────────────────────────────────────── */
.pdf-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: white; border: 1.5px solid #d0dde2;
  border-radius: 10px; cursor: pointer;
  font-size: 0.88rem; font-weight: 500; color: #00364a;
  transition: all 0.15s;
}
.pdf-btn:hover { border-color: #72cff4; background: #f0f8fd; }
.pdf-btn .material-icons { font-size: 18px; color: #72cff4; }

/* ── PRINT-ONLY HEADER (versteckt am Bildschirm) ──────────────── */
.print-header { display: none !important; }
@media screen { .print-header { display: none !important; } }

/* ── PRINT / PDF ───────────────────────────────────────────────── */
@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  body { background: white; font-size: 11pt; color: #1a2a30; }

  /* Nur den Preview anzeigen — alles andere weg */
  #formMain { display: block !important; }
  #successMain, .booking-invite, #tidycal-embed,
  .success-wrap, .success-actions,
  .konfig-header, .progress-bar-wrap, .konfig-footer,
  .submit-row, .preview-actions, .pdf-btn,
  .abschluss-box, .datenschutz-label, .why-badge,
  .why-box, .mode-row, .advanced-toggle-card,
  .konfig-section:not(#sec-7),
  .preview-header { display: none !important; }

  /* sec-7 ist Container für previewPanel — alle Inhalte außer Preview verstecken */
  #sec-7 > *:not(#previewPanel) { display: none !important; }
  #sec-7 {
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    animation: none !important;
  }

  .konfig-main { padding: 0; max-width: 100%; margin: 0; }
  .preview-panel {
    display: block !important;
    border: none !important;
    box-shadow: none !important;
    background: white !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }

  /* Print-Header mit Logo */
  .print-header {
    display: flex !important;
    align-items: center;
    gap: 20px;
    padding: 0 0 16px;
    margin-bottom: 24px;
    border-bottom: 3px solid #00364a;
  }
  .print-logo { height: 50px; width: auto; flex-shrink: 0; }
  .print-title { flex: 1; }
  .print-title h1 {
    font-family: 'Rubik', sans-serif;
    font-size: 20pt; color: #00364a;
    margin: 0 0 4px; font-weight: 700;
  }
  .print-title p {
    font-size: 10pt; color: #5b7480;
    margin: 0;
  }
  .print-meta {
    font-size: 9pt; color: #5b7480;
    text-align: right; line-height: 1.5;
  }

  /* Preview-Inhalte hübsch */
  .preview-section {
    border: none !important;
    margin-bottom: 16px !important;
    padding: 0 !important;
    page-break-inside: avoid;
  }
  .preview-section-title {
    background: #00364a !important;
    color: white !important;
    padding: 8px 14px !important;
    font-size: 10pt !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    margin-bottom: 10px !important;
    letter-spacing: 0.5px;
  }
  .preview-row {
    display: grid !important;
    grid-template-columns: 180px 1fr !important;
    gap: 16px !important;
    padding: 6px 0 !important;
    border-bottom: 1px solid #eef3f5 !important;
  }
  .preview-label {
    font-size: 9pt !important;
    color: #5b7480 !important;
    font-weight: 600 !important;
  }
  .preview-value {
    font-size: 10pt !important;
    color: #1a2a30 !important;
    line-height: 1.4 !important;
  }
  .preview-tag {
    display: inline-block !important;
    background: #e8f4fc !important;
    color: #00364a !important;
    padding: 2px 8px !important;
    border-radius: 3px !important;
    margin: 2px 4px 2px 0 !important;
    font-size: 9pt !important;
  }

  /* Seitenumbruch-Optimierung */
  .preview-section:not(:first-of-type) { page-break-before: auto; }

  @page {
    margin: 1.8cm 1.5cm;
  }
}
