/* =====================================================
   DESIGN SYSTEM – Projektarbeit Orientierungswebseite
   ===================================================== */

/* --- Custom Properties (Tokens) --- */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #e0e7ff;
  --primary-soft: #eef2ff;
  --accent: #f97316;
  --accent-light: #fff7ed;
  --accent-dark: #c2410c;
  --accent-muted: #fed7aa;
  --cyan: #06b6d4;
  --cyan-light: #ecfeff;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --green: #10b981;
  --green-light: #d1fae5;
  --green-dark: #047857;
  --purple: #8b5cf6;
  --purple-light: #ede9fe;
  --pink: #be185d;
  --red: #ef4444;
  --red-light: #fee2e2;
  --red-dark: #b91c1c;
  --yellow: #f59e0b;
  --yellow-light: #fef3c7;
  --yellow-dark: #92400e;

  /* School branding – Gymnasium Horn */
  --school: #99254a;
  --school-dark: #7a1c3b;
  --school-light: #fdf1f5;

  --bg: #f8fafc;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-focus: var(--primary);

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);

  --nav-height: 68px;
  --max-width: 1100px;
  --transition: 0.2s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  padding-top: var(--nav-height);
}

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { color: var(--text-muted); }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--hero { padding: 80px 0 64px; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--school);
  border-bottom: none;
  z-index: 1000;
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-brand {
  font-weight: 800;
  font-size: 1rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
  text-decoration: none;
}
.nav-brand:hover { color: rgba(255,255,255,0.88); }
.nav-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav-brand-title {
  font-weight: 800;
  font-size: 1rem;
  color: white;
  line-height: 1.2;
}
.nav-brand-school {
  font-weight: 400;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.nav-school-name {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.nav-brand span.pill {
  background: rgba(255, 255, 255, 0.22);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  min-height: 36px;
  display: flex;
  align-items: center;
}
.nav-links a:hover { color: white; background: rgba(255, 255, 255, 0.15); }
.nav-links a.active { color: white; background: rgba(255, 255, 255, 0.22); font-weight: 600; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: transparent;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--school);
    flex-direction: column;
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.15);
    gap: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 13px 16px;
    min-height: 48px;
    font-size: 0.95rem;
    border-radius: var(--radius);
  }
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  border: 1px solid var(--border);
}
.card--hover {
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}
.card--hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* --- Grid helpers --- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}
.btn-secondary {
  background: white;
  color: var(--primary);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}
.btn-accent {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: #ea6c0a;
  border-color: #ea6c0a;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
}
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* --- Badges & Tags --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.badge-primary { background: var(--primary-light); color: var(--primary-dark); }
.badge-accent { background: var(--accent-light); color: var(--accent); }
.badge-green { background: var(--green-light); color: #047857; }
.badge-yellow { background: var(--yellow-light); color: #92400e; }
.badge-red { background: var(--red-light); color: #b91c1c; }

/* --- Section Header --- */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--school);
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* --- Accordion --- */
.accordion { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.accordion + .accordion { margin-top: 12px; }
.accordion-header {
  width: 100%;
  background: white;
  border: none;
  padding: 18px 22px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background var(--transition);
}
.accordion-header:hover { background: var(--bg); }
.accordion-header .acc-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}
.accordion-header .acc-title { flex: 1; }
.accordion-header .acc-chevron {
  color: var(--text-muted);
  transition: transform var(--transition);
  font-size: 0.9rem;
}
.accordion.open .acc-chevron { transform: rotate(180deg); }
.accordion.open .accordion-header { background: var(--primary-light); color: var(--primary-dark); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.accordion.open .accordion-body { max-height: 2000px; }
.accordion-content { padding: 20px 22px; border-top: 1px solid var(--border); }

/* --- Forms & Inputs --- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text);
}
.form-label .hint {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: white;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.form-textarea { resize: vertical; min-height: 90px; }
.form-select { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* --- Checkbox / Checkliste --- */
.checklist { list-style: none; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.checklist li:last-child { border-bottom: none; }
.checklist input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all var(--transition);
  background: white;
  position: relative;
}
.checklist input[type="checkbox"]:checked {
  background: var(--green);
  border-color: var(--green);
}
.checklist input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 13px;
  font-weight: 700;
}
.checklist label {
  cursor: pointer;
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
  transition: color var(--transition);
}
.checklist input[type="checkbox"]:checked + label {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--green);
}
.checklist .sub-text { font-size: 0.8rem; color: var(--text-muted); display: block; }

/* --- Timeline --- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -26px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-date { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; letter-spacing: 0.03em; text-transform: uppercase; }
.timeline-title { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.timeline-desc { font-size: 0.88rem; color: var(--text-muted); }

/* --- Countdown --- */
.countdown-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.countdown-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  min-width: 200px;
  flex: 1;
}
.countdown-card .days {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
}
.countdown-card.past .days { color: var(--green); }
.countdown-card.urgent .days { color: var(--red); }
.countdown-card .label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.countdown-card .deadline-name { font-weight: 600; font-size: 0.95rem; margin-top: 8px; }

/* --- Prompt Box --- */
.prompt-box {
  background: #1e293b;
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  font-family: 'Courier New', monospace;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid #334155;
  min-height: 120px;
}
.prompt-box .copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.prompt-box .copy-btn:hover { background: var(--primary-dark); }
.prompt-box .copy-btn.copied { background: var(--green); }

/* --- Follow-up Prompts --- */
.followup-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text);
}
.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.chip.active {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: var(--primary-light);
  font-weight: 600;
}

/* --- Step Indicator --- */
.steps { display: flex; gap: 0; margin-bottom: 40px; flex-wrap: wrap; }
.step {
  flex: 1;
  min-width: 120px;
  text-align: center;
  position: relative;
}
.step::after {
  content: '';
  position: absolute;
  top: 20px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step:last-child::after { display: none; }
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}
.step.active .step-num { background: var(--primary); color: white; }
.step.done .step-num { background: var(--green); color: white; }
.step-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; font-weight: 500; }
.step.active .step-label { color: var(--primary); font-weight: 600; }

/* --- Info boxes --- */
.info-box {
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 20px 0;
}
.info-box--primary { background: var(--primary-light); border-left: 4px solid var(--primary); }
.info-box--accent { background: var(--accent-light); border-left: 4px solid var(--accent); }
.info-box--green { background: var(--green-light); border-left: 4px solid var(--green); }
.info-box--yellow { background: var(--yellow-light); border-left: 4px solid var(--yellow); }
.info-box--red { background: var(--red-light); border-left: 4px solid var(--red); }
.info-box .ib-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.info-box .ib-content { flex: 1; }
.info-box .ib-title { font-weight: 700; margin-bottom: 4px; font-size: 0.95rem; }
.info-box p { font-size: 0.9rem; margin: 0; }

/* --- Hero --- */
.hero-tag {
  display: inline-block;
  background: var(--school-light);
  color: var(--school);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-title { margin-bottom: 20px; }
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--school), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 36px; max-width: 580px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Key-fact tiles --- */
.kf-tile {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all var(--transition);
}
.kf-tile:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.kf-icon { font-size: 1.8rem; flex-shrink: 0; }
.kf-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 4px; }
.kf-value { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.kf-sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* --- Phase bars --- */
.phase-bar {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: white;
}
.phase-bar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}
.phase-color-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.phase-bar-body { padding: 0 18px 16px; }
.phase-task {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.phase-task::before { content: '→'; color: var(--text-light); font-size: 0.8rem; }

/* --- Smart goals builder --- */
.smart-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.smart-row:last-child { border-bottom: none; }
.smart-letter {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.smart-label { font-weight: 700; font-size: 0.95rem; margin-bottom: 2px; }
.smart-desc { font-size: 0.85rem; color: var(--text-muted); }

/* --- Quote --- */
.blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.blockquote cite { display: block; margin-top: 8px; font-style: normal; font-weight: 600; font-size: 0.8rem; color: var(--primary); }

/* --- Progress bar --- */
.progress { background: var(--border); border-radius: 100px; height: 8px; overflow: hidden; margin-top: 8px; }
.progress-bar { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--primary), var(--cyan)); transition: width 0.6s ease; }

/* --- Table --- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { background: var(--bg); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg); }

/* --- Footer --- */
.footer {
  background: var(--text);
  color: #94a3b8;
  padding: 40px 0;
  margin-top: 80px;
  font-size: 0.85rem;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.footer-brand { font-weight: 700; color: white; font-size: 0.95rem; }
.footer a { color: #94a3b8; transition: color var(--transition); }
.footer a:hover { color: white; }

/* --- NoScript fallback bar --- */
.noscript-bar {
  background: var(--school-dark);
  color: white;
  padding: 12px 24px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.6;
}
.noscript-bar a { color: rgba(255,255,255,0.9); text-decoration: underline; margin: 0 4px; }

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--school) 0%, var(--primary) 100%);
  color: white;
  padding: 56px 0 48px;
}
.page-hero h1 { color: white; }
.page-hero p { color: rgba(255,255,255,0.85); }
.page-hero .eyebrow { color: rgba(255,255,255,0.7); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }

/* --- Tabs --- */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 28px; flex-wrap: wrap; }
.tab-btn {
  padding: 10px 18px;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  font-family: inherit;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.gap-2 { gap: 8px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

/* ─── Responsive / Mobile / iPad / Safari ───────────────────── */

/* Tablet (≤ 820px) — iPad portrait + big phones landscape */
@media (max-width: 820px) {
  .section { padding: 48px 0; }
  .section--tight { padding: 36px 0; }
  .section--hero { padding: 56px 0 44px; }
  .section-header { margin-bottom: 32px; }
  .card { padding: 20px; }
  .form-row { grid-template-columns: 1fr; }

  /* Page hero on inner pages */
  .page-hero { padding: 40px 0 32px; }

  /* Gantt: ensure horizontal scroll works on touch */
  .gantt-wrap { -webkit-overflow-scrolling: touch; }

  /* Reduce eyebrow tracking on mobile */
  .section-header .eyebrow { letter-spacing: 0.07em; }
}

/* Mobile (≤ 600px) */
@media (max-width: 600px) {
  :root { --nav-height: 60px; }

  .container { padding: 0 16px; }

  .section { padding: 40px 0; }
  .section--tight { padding: 28px 0; }
  .section--hero { padding: 40px 0 32px; }

  /* Hero */
  .hero-sub { font-size: 1rem; margin-bottom: 28px; }
  .hero-cta { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
  .hero-tag { font-size: 0.72rem; }

  /* Page hero */
  .page-hero { padding: 32px 0 24px; }

  /* Grids: force single column on narrow phones */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  /* kf-tile: keep horizontal layout but smaller icon */
  .kf-icon { font-size: 1.5rem; }
  .kf-value { font-size: 1rem; }

  /* Accordion touch target */
  .accordion-header { padding: 16px 18px; min-height: 52px; }

  /* Info-box text on small screens */
  .info-box { padding: 14px; gap: 10px; }

  /* Buttons full tap area */
  .btn { min-height: 44px; }

  /* Table scroll on mobile */
  .table-wrap { -webkit-overflow-scrolling: touch; }

  /* Section header text */
  .section-header p { font-size: 0.95rem; }
}

/* Very small phones (≤ 380px) */
@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .card { padding: 16px; }
  .hero-tag { display: block; text-align: center; }
}

/* --- Smooth animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.5s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* =====================================================
   PAGE-SPECIFIC COMPONENT STYLES (consolidated)
   ===================================================== */

/* --- anforderungen.html --- */
.progress-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.progress-label { font-weight:700; font-size:0.95rem; }
.progress-count { font-size:0.85rem; color:var(--text-muted); }
.req-section { margin-bottom:40px; }
.req-section h3 { margin-bottom:4px; }
.req-section > p { font-size:0.88rem; margin-bottom:16px; }
.spec-row { display:flex; gap:12px; align-items:flex-start; padding:10px 0; border-bottom:1px solid var(--border); font-size:0.9rem; }
.spec-row:last-child { border-bottom:none; }
.spec-key { font-weight:600; color:var(--text); min-width:160px; flex-shrink:0; }
.spec-val { color:var(--text-muted); }
.spec-val strong { color:var(--text); }
.char-counter { font-size:0.78rem; font-weight:600; padding:2px 8px; border-radius:100px; }
.char-ok { background:var(--green-light); color:#047857; }
.char-warn { background:var(--yellow-light); color:#92400e; }
.char-over { background:var(--red-light); color:#b91c1c; }
.path-card { transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s; }
.path-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
#path-schriftlich.path-card--active { border-color: var(--primary) !important; background: var(--primary-light) !important; }
#path-produkt.path-card--active   { border-color: var(--accent)   !important; background: var(--accent-light) !important; }
.erkenntnis-step { display:flex; gap:20px; align-items:flex-start; }
.es-number { width:40px; height:40px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; color:white; font-weight:800; font-size:1rem; }
.es-body { padding-bottom:8px; }
.es-title { font-weight:800; font-size:1rem; margin-bottom:6px; color:var(--text); }
.es-text { font-size:0.88rem; color:var(--text-muted); line-height:1.7; margin-bottom:10px; }
.es-beide { display:flex; flex-direction:column; gap:6px; }
.es-tag { display:block; border-radius:8px; padding:6px 12px; font-size:0.82rem; line-height:1.5; }
.es-tag--p      { background:var(--primary-light); color:#3730a3; border-left:3px solid var(--primary); }
.es-tag--r      { background:var(--accent-light); color:#9a3412; border-left:3px solid var(--accent); }
.es-tag--shared { background:var(--bg); color:var(--text-muted); border-left:3px solid var(--border); }
.es-connector   { width:2px; height:28px; background:var(--border); margin:0 0 0 19px; }
.path-panel { border:1.5px solid var(--border); border-radius:var(--radius-lg); padding:20px 24px; }
.path-panel--p { border-color: var(--primary); }
.path-panel--r { border-color: var(--accent); }
.path-panel-label { font-size:0.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; margin-bottom:10px; }
.pp-row { display:flex; gap:10px; padding:7px 0; border-bottom:1px solid var(--border); font-size:0.87rem; }
.pp-row:last-child { border-bottom:none; }
.pp-num { min-width:40px; font-weight:700; color:var(--text-muted); }
.pp-title { font-weight:600; }
.pp-desc { color:var(--text-muted); font-size:0.82rem; margin-top:2px; }
@media(max-width:600px) {
  .es-number { width:32px; height:32px; font-size:0.88rem; }
  .es-connector { margin-left:15px; }
}

/* --- planung.html --- */
.role-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: all var(--transition);
}
.role-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.role-icon { font-size: 1.8rem; margin-bottom: 10px; }
.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- zeitplan.html --- */
.gantt-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: white; -webkit-overflow-scrolling: touch; }
.gantt-table { min-width: 680px; width: 100%; border-collapse: collapse; }
.gantt-table th { padding: 10px 8px; text-align: center; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); border-bottom: 1px solid var(--border); background: var(--bg); }
.gantt-table th.phase-label-col { text-align: left; padding-left: 16px; min-width: 140px; }
.gantt-table td { border-bottom: 1px solid var(--border); padding: 10px 4px; }
.gantt-table td.phase-name-cell { padding-left: 16px; font-weight: 600; font-size: 0.88rem; white-space: nowrap; }
.gantt-table tr:last-child td { border-bottom: none; }
.gantt-bar { height: 20px; border-radius: 100px; opacity: 0.85; }
.deadline-marker { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.deadline-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); border: 2px solid white; box-shadow: 0 0 0 2px var(--red); }
.deadline-label { font-size: 0.6rem; color: var(--red); font-weight: 700; white-space: nowrap; }

/* --- reflexion.html --- */
.structure-step { display:grid; grid-template-columns: 60px 1fr; gap:16px; align-items:start; padding:16px 0; border-bottom:1px solid var(--border); }
.structure-step:last-child { border-bottom:none; }
.step-badge { width:50px; height:50px; border-radius:12px; background:var(--primary); color:white; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:1.1rem; flex-shrink:0; }
.do-dont { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media(max-width:600px) { .do-dont { grid-template-columns:1fr; } }
.hint-box { background: var(--yellow-light); border: 2px solid var(--yellow); border-radius: var(--radius); padding: 20px 24px; }

/* --- praesentation.html --- */
.two-col-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media(max-width:700px) { .two-col-features { grid-template-columns:1fr; } }
.feature-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature-card h3 { margin-bottom:8px; }
.tip-row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.tip-row:last-child { border-bottom: none; }
.tip-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }

/* --- themen-finder.html --- */
@media (max-width: 900px) {
  .finder-grid { grid-template-columns: 1fr !important; }
  .card[style*="sticky"] { position: static !important; }
}
#ill-accordion { display:none; }
#ill-accordion.open { display:block; }
.ill-card { background:white; border:1px solid var(--border); border-radius:var(--radius-lg); padding:20px 22px; }
.ill-card h4 { font-size:0.97rem; margin-bottom:6px; }
.ill-card p  { font-size:0.84rem; color:var(--text-muted); margin-bottom:10px; line-height:1.6; }
.ill-card ul { list-style:none; padding:0; font-size:0.82rem; color:var(--text-muted); display:flex; flex-direction:column; gap:4px; }
.ill-card ul li::before { content:"→ "; font-weight:700; color:var(--primary); }

/* --- Shared utility: section background white --- */
.bg-white { background: white; }
.bg-base  { background: var(--bg); }
