/* ==========================================================================
   hwr Bewerbungs- & Lebenslauf-Generator für Fachkräfte
   Design: Exakte HWR.MANAGER Tokens & CI-Treue (Deep Petrol, Slate, Anti-Box)
   Standards: Tabular Numbers, keine Emojis, WCAG-Kontraste, DIN A4 Print
   ========================================================================== */

/* Layout & Grid */
.generator-hero {
  padding: 36px 0 24px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-muted) 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-color);
}

.generator-hero .kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.generator-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--foreground);
  line-height: 1.15;
  margin-bottom: 12px;
}

.generator-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Two-Column App Container (Studio Width 1440px) */
.generator-section {
  padding: 32px 0 80px;
}

.generator-section .container {
  max-width: 1440px;
}

.generator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 1024px) {
  .generator-grid {
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    gap: 36px;
  }
}

/* Generator Form Pane */
.generator-pane {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

@media (min-width: 640px) {
  .generator-pane {
    padding: 32px;
  }
}

/* Step Bar / Progress Indicator */
.step-nav {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: var(--bg-muted);
  border-radius: var(--radius-xl);
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.step-nav::-webkit-scrollbar {
  display: none;
}

.step-tab {
  flex: 1;
  min-width: 90px;
  text-align: center;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.step-tab.active {
  background: var(--bg-card);
  color: var(--foreground);
  box-shadow: var(--shadow-xs);
}

.step-tab.completed {
  color: var(--primary);
}

/* Form Steps */
.form-step {
  display: none;
  animation: fadeIn 0.25s ease-out;
}
.form-step.active {
  display: block;
}

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

/* Section Headings inside Steps */
.step-header {
  margin-bottom: 20px;
}
.step-kicker {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 4px;
}
.step-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--foreground);
}

/* Form Field Groups */
.field-group {
  margin-bottom: 24px;
}
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 8px;
}
.field-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Section Title Inline Editor */
.section-title-editor-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.input-section-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--foreground);
  background: transparent;
  border: 1px dashed transparent;
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  margin-left: -6px;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 360px;
}
.input-section-title:hover {
  background: var(--bg-muted);
  border-color: #cbd5e1;
}
.input-section-title:focus {
  background: var(--bg-card);
  border: 1px solid var(--primary);
  box-shadow: 0 0 0 2px var(--primary-subtle);
  outline: none;
}

.btn-toggle-section {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-toggle-section:hover {
  background: var(--bg-muted);
  color: var(--foreground);
  border-color: #cbd5e1;
}
.btn-toggle-section.is-hidden {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.25);
}

.field-group.is-section-hidden > *:not(.section-title-editor-row) {
  display: none !important;
}
.field-group.is-section-hidden {
  opacity: 0.65;
}

/* Input Styles */
.input-text, .input-textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--foreground);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-text:focus, .input-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}
.input-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .input-row-2 {
    grid-template-columns: 1fr 1fr;
  }
  .input-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Clickable Pills & Chip Selectors */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-option {
  position: relative;
  cursor: pointer;
  user-select: none;
}
.pill-option input[type="radio"],
.pill-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.pill-label {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-muted);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  transition: all 0.18s ease;
}
.pill-option:hover .pill-label {
  color: var(--foreground);
  background: #e2e8f0;
}
.pill-option input:checked + .pill-label {
  color: var(--primary);
  background: var(--primary-subtle);
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
  font-weight: 700;
}

/* Schnellauswahl Buttons */
.job-suggestion-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  user-select: none;
  transition: all 0.18s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.job-suggestion-pill:hover {
  color: var(--primary);
  background: var(--primary-subtle);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}
.job-suggestion-pill:active {
  transform: translateY(0);
}
.job-suggestion-pill.active {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 1px 4px rgba(12, 124, 129, 0.35);
  font-weight: 700;
}

/* Quick Add Tag / Certificate Input */
.custom-tag-bar {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.custom-tag-btn {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--foreground);
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.custom-tag-btn:hover {
  background: var(--border-color);
}

/* Step Footer Navigation Buttons */
.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.btn-secondary {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  color: var(--foreground);
  background: var(--bg-muted);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}

/* Photo Upload Box */
.photo-upload-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-muted);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  transition: all 0.2s ease;
}
.photo-upload-box.drag-over {
  border-color: var(--primary);
  background: var(--primary-subtle);
}
.photo-preview-wrap {
  width: 68px;
  height: 85px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  background: #f1f5f9;
  padding: 4px;
}
.photo-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-upload-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.btn-primary {
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-foreground);
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-ghost-sm {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
}
.btn-ghost-sm:hover {
  color: var(--foreground);
}

/* ==========================================================================
   Preview Column & Sticky Control
   ========================================================================== */
.preview-pane {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Template Selector Bar */
.template-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
}

@media (min-width: 640px) {
  .template-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.template-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.template-pills {
  display: flex;
  background: var(--bg-muted);
  padding: 3px;
  border-radius: var(--radius-lg);
  gap: 4px;
}

.template-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.template-btn.active {
  background: var(--bg-card);
  color: var(--foreground);
  box-shadow: var(--shadow-xs);
}

/* Accent Color Bar */
.accent-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 8px 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-xs);
  flex-wrap: wrap;
}
.color-swatches {
  display: flex;
  align-items: center;
  gap: 7px;
}
.color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: var(--swatch);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}
.color-swatch:hover {
  transform: scale(1.15);
}
.color-swatch.active {
  box-shadow: 0 0 0 2px var(--foreground);
  transform: scale(1.15);
}
.color-picker-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.color-picker-wrap input[type="color"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.color-picker-btn {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  transition: all 0.15s ease;
}
.color-picker-wrap:hover .color-picker-btn {
  color: var(--foreground);
  border-color: #cbd5e1;
}

/* Export Action Buttons */
.export-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-export-primary {
  flex: 1 1 180px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.btn-export-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-export-secondary {
  flex: 1 1 130px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--foreground);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}
.btn-export-secondary:hover {
  background: var(--bg-muted);
  color: var(--foreground);
}

/* ==========================================================================
   A4 Document Paper Rendering
   ========================================================================== */
.a4-viewport {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  padding: 32px 24px;
  border-radius: var(--radius-2xl);
  overflow-x: auto;
}

.a4-sheet {
  background: #ffffff;
  color: #0f172a;
  width: 100%;
  max-width: 650px;
  min-height: 850px;
  margin: 0 auto;
  padding: 38px 42px;
  border-radius: 2px;
  box-shadow: 0 14px 34px -8px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.05);
  font-family: var(--font-body);
  position: relative;
  box-sizing: border-box;
}

/* Common Sheet Components */
.sheet-header-name {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
}
.sheet-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.sheet-meta-item {
  font-size: 11px;
  color: #475569;
  line-height: 1.4;
}
.sheet-meta-item strong {
  color: #0f172a;
}
.sheet-section-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.sheet-text-body {
  font-size: 12px;
  line-height: 1.55;
  color: #334155;
}
.sheet-chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.sheet-chip {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  line-height: 1.35;
}
.sheet-footer {
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #94a3b8;
}

/* ==========================================================================
   Vorlage 1: "Modern Solid" (HWR Signature)
   Deep Petrol (#0c7c81) Akzent, 2-Spalten-Layout
   ========================================================================== */
.template-modern-solid {
  background: #ffffff;
}

.t1-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
}

.t1-sidebar {
  background: #f8fafc;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.t1-photo-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 180px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.t1-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.t1-sidebar .sheet-section-title {
  color: var(--sheet-accent, #0c7c81);
}

.t1-sidebar .sheet-chip {
  background: #e2e8f0;
  color: #0f172a;
}

.t1-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.t1-main .sheet-header-name {
  font-size: 26px;
}

.t1-role-badge {
  display: inline-block;
  background: color-mix(in srgb, var(--sheet-accent, #0c7c81) 12%, transparent);
  color: var(--sheet-accent, #0c7c81);
  border: 1px solid color-mix(in srgb, var(--sheet-accent, #0c7c81) 25%, transparent);
  font-weight: 700;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-top: 4px;
  margin-bottom: 8px;
}

.t1-main .sheet-section-title {
  color: #0f172a;
}

.t1-main .sheet-chip {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

/* ==========================================================================
   Vorlage 2: "Executive Meister" (Minimalist Monochrome)
   Ruhig, sehr seriös, klare Haarlinien, volle Breite
   ========================================================================== */
.template-executive {
  background: #ffffff;
}

.template-executive .t2-header {
  border-bottom: 2px solid var(--sheet-accent, #0f172a);
  padding-bottom: 16px;
  margin-bottom: 22px;
}
.t2-header.has-photo {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.t2-header-text {
  flex: 1;
}
.t2-photo-wrap {
  width: 95px;
  height: 122px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  background: #ffffff;
}
.t2-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.t2-header .sheet-header-name {
  font-size: 28px;
  letter-spacing: -0.02em;
}

.t2-subtitle {
  font-size: 14px;
  font-weight: 700;
  color: var(--sheet-accent, #475569);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.t2-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  font-size: 11px;
  color: #64748b;
}
.t2-contact-row span {
  display: inline-flex;
  align-items: center;
}

.t2-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.t2-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.t2-section .sheet-section-title {
  color: #0f172a;
  font-size: 11px;
}

.t2-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.t2-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 2px;
}

/* ==========================================================================
   Vorlage 3: "Kompakt Bulli" (Express 1-Pager / Quick Scan)
   Fokus auf Fakten, übersichtliche Kacheln, schnelle Erfassbarkeit
   ========================================================================== */
.template-bulli {
  background: #ffffff;
}

.t3-top-banner {
  background: #0f172a;
  color: #ffffff;
  margin: -36px -40px 24px -40px;
  padding: 24px 40px;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  border-bottom: 3px solid var(--sheet-accent, #38bdf8);
}
.t3-top-banner.has-photo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.t3-banner-content {
  flex: 1;
}
.t3-photo-wrap {
  width: 82px;
  height: 102px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  background: #1e293b;
}
.t3-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.t3-top-banner .sheet-header-name {
  color: #ffffff;
  font-size: 26px;
}

.t3-banner-sub {
  font-size: 13px;
  font-weight: 700;
  color: var(--sheet-accent, #38bdf8);
  margin-top: 4px;
}

.t3-banner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 10px;
}
.t3-banner-meta strong {
  color: #ffffff;
}

.t3-kachel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.t3-kachel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px 14px;
}

.t3-kachel-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sheet-accent, #0c7c81);
  margin-bottom: 6px;
}

.t3-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ==========================================================================
   Form Editor: Career Stations (Lebenslauf) & References
   ========================================================================== */
.station-card,
.reference-card {
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 12px;
  position: relative;
  transition: border-color 0.15s ease;
}
.station-card:hover,
.reference-card:hover {
  border-color: #cbd5e1;
}
.station-card-header,
.reference-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.station-num,
.reference-num {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.btn-remove-station,
.btn-remove-reference {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.btn-remove-station:hover,
.btn-remove-reference:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}
.station-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
@media (min-width: 640px) {
  .station-grid-2 {
    grid-template-columns: 140px 1fr;
  }
}

/* ==========================================================================
   A4 Sheet: Career Stations & References
   ========================================================================== */
.sheet-career-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sheet-career-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sheet-career-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.sheet-career-role {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}
.sheet-career-period {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary, #0c7c81);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sheet-career-company {
  font-size: 11px;
  color: #475569;
}
.sheet-career-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
  margin-top: 2px;
}

.sheet-reference-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sheet-reference-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 8px 10px;
}
.sheet-reference-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}
.sheet-reference-desc {
  font-size: 10.5px;
  color: #475569;
  line-height: 1.35;
}
.sheet-reference-note {
  font-size: 10px;
  font-style: italic;
  color: #64748b;
  margin-top: 6px;
}

/* ==========================================================================
   Print Stylesheet (@media print)
   Reines DIN A4 Rendering ohne Web-Header, Formulare oder Browser-Chrome
   ========================================================================== */
@media print {
  /* Hide all website chrome */
  body {
    background: #ffffff !important;
    color: #0f172a !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .site-header,
  .site-footer,
  .generator-hero,
  .generator-pane,
  .template-bar,
  .export-bar,
  .faq-section,
  .a4-viewport > .template-bar {
    display: none !important;
  }

  .generator-section {
    padding: 0 !important;
  }

  .generator-grid {
    display: block !important;
  }

  .preview-pane {
    position: static !important;
    display: block !important;
  }

  .a4-viewport {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  .a4-sheet {
    max-width: 100% !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 20mm !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  @page {
    size: A4 portrait;
    margin: 0;
  }
}
