/* =============================================================
   CV-Designer.eu — style.css
   Alle Seiten teilen diese Datei.
   Struktur:
   1. Design Tokens (CSS-Variablen)
   2. Reset & Base
   3. Navigation
   4. Buttons
   5. Forms
   6. Modals
   7. Toast & Spinner
   8. Footer
   9. Landingpage-spezifisch  (.page-landing)
   10. Editor-spezifisch      (.page-app)
   11. Legal-Seiten           (.page-legal)
   12. Print
   ============================================================= */

/* 1. DESIGN TOKENS
   ============================================================= */
:root {
  --ink:          #1a1814;
  --ink-soft:     #4a4740;
  --ink-muted:    #8a8580;
  --paper:        #faf8f4;
  --paper-warm:   #f3f0e8;
  --paper-border: #e8e4d8;
  --gold:         #c4923a;
  --gold-light:   #f0ddb8;
  --gold-dark:    #9a6e28;
  --teal:         #2d6a5e;
  --teal-light:   #cce8e2;
  --danger:       #b84040;
  --radius:       6px;
  --radius-lg:    12px;
  --shadow:       0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  --nav-height:   56px;
  --font-sans:    'Manrope', sans-serif;
  --font-serif:   'Fraunces', serif;
  --font-mono:    'DM Mono', monospace;
}

/* 2. RESET & BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 300; line-height: 1.2; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--paper-border); border-radius: 4px; }

/* 3. NAVIGATION
   ============================================================= */
nav {
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: var(--nav-height);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 300;
  color: white;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo em  { color: var(--gold); font-style: italic; }
.nav-logo small {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  margin-left: 3px;
  font-style: normal;
  font-family: var(--font-mono);
}

.nav-center { flex: 1; display: flex; justify-content: center; }

.lang-switcher {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 3px;
}
.lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 4px;
  transition: all 0.15s;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.lang-btn:hover { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.08); }
.lang-btn.active { background: var(--gold); color: var(--ink); font-weight: 700; }

.nav-right { display: flex; gap: 0.5rem; align-items: center; }

.nav-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  padding: 5px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font-sans);
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.nav-btn:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }
.nav-btn.gold  { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 600; }
.nav-btn.gold:hover { background: #d4a34a; color: var(--ink); }

.nav-user { color: rgba(255,255,255,0.7); font-size: 12px; display: flex; align-items: center; gap: 8px; }

.badge { font-size: 10px; padding: 2px 8px; border-radius: 20px; font-weight: 600; }
.badge-anon    { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); }
.badge-free    { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.7); }
.badge-basis   { background: #2d4a6e; color: #a0c0e8; }
.badge-premium { background: var(--teal); color: white; }

/* 4. BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-sans);
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  line-height: 1.4;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ink); color: white; }
.btn-primary:hover { background: var(--ink-soft); color: white; }
.btn-outline { background: none; border: 1px solid var(--paper-border); color: var(--ink-soft); }
.btn-outline:hover { border-color: var(--ink-soft); color: var(--ink); }
.btn-gold { background: var(--gold); color: var(--ink); font-weight: 600; }
.btn-gold:hover { background: #d4a34a; color: var(--ink); }
.btn-ink { background: var(--ink); color: white; }
.btn-ink:hover { background: var(--ink-soft); }
.btn-danger { background: none; border: 1px solid #f0c0c0; color: var(--danger); }
.btn-danger:hover { background: #fff5f5; }
.btn-ghost { background: none; border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.8); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-lg { padding: 13px 30px; font-size: 15px; border-radius: var(--radius-lg); }
.btn-sm { padding: 4px 10px; font-size: 11px; }
.btn-block { width: 100%; justify-content: center; }

/* 5. FORMS
   ============================================================= */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--paper-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 13px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 70px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.alert {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 1rem;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.alert-warning { background: #fff8e6; border: 1px solid #f0d080; color: #7a5800; }
.alert-info    { background: var(--teal-light); border: 1px solid #a0d0c8; color: var(--teal); }
.alert-danger  { background: #fff0f0; border: 1px solid #f0c0c0; color: var(--danger); }

/* 6. MODALS
   ============================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.modal {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  max-width: 480px;
  width: 90%;
  max-height: 88vh;
  overflow-y: auto;
}
.modal h2 { font-size: 20px; margin-bottom: 0.4rem; }
.modal p.sub { color: var(--ink-soft); font-size: 13px; margin-bottom: 1.2rem; }

.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--paper-border);
  margin-bottom: 1.2rem;
}
.modal-tab {
  padding: 8px 20px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
  font-family: var(--font-sans);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.modal-tab.active { color: var(--ink); border-bottom-color: var(--gold); font-weight: 500; }
.modal-tab:hover:not(.active) { color: var(--ink-soft); }

/* Pricing cards (shared between modal + landing) */
.pricing-card {
  border: 2px solid var(--paper-border);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.pricing-card:hover,
.pricing-card.selected { border-color: var(--gold); background: var(--gold-light); }
.pricing-card.highlighted { border-color: var(--gold); box-shadow: 0 4px 24px rgba(196,146,58,0.12); }
.pricing-card h3 { font-size: 16px; margin-bottom: 3px; }
.pricing-card .price { font-size: 28px; font-weight: 600; line-height: 1.1; }
.pricing-card .price small { font-size: 13px; font-weight: 400; color: var(--ink-muted); }
.pricing-period { font-size: 12px; color: var(--ink-muted); margin-bottom: 1rem; }
.pricing-badge {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--ink);
  font-size: 10px;
  padding: 2px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-family: var(--font-mono);
  white-space: nowrap;
}
.pricing-features { list-style: none; margin-top: 0.6rem; }
.pricing-features li { font-size: 12px; color: var(--ink-soft); padding: 3px 0; border-bottom: 1px solid var(--paper-border); display: flex; gap: 6px; }
.pricing-features li::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; }
.pricing-features li.no::before { content: '–'; color: var(--ink-muted); }
.pricing-features li.no { color: var(--ink-muted); }

/* Tier radio cards */
.tier-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--paper-border);
  border-radius: var(--radius);
  cursor: pointer;
  margin-bottom: 6px;
  transition: border-color 0.2s;
}
.tier-card:has(input:checked) { border-color: var(--gold); background: var(--gold-light); }
.tier-card-title { font-weight: 600; font-size: 13px; }
.tier-card-desc  { font-size: 11px; color: var(--ink-muted); }

/* 7. TOAST & SPINNER
   ============================================================= */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { opacity: 1; }

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 4px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 8. FOOTER
   ============================================================= */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: 3rem 2rem 2rem;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 300;
  color: white;
  margin-bottom: 0.8rem;
  display: block;
  text-decoration: none;
}
.footer-logo em  { color: var(--gold); font-style: italic; }
.footer-logo:hover { text-decoration: none; }
.footer-desc { font-size: 13px; line-height: 1.7; max-width: 260px; }
.footer-col h4 {
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--gold); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--gold); }

.lang-flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 0.8rem; }
.lang-flag  { font-size: 18px; cursor: pointer; opacity: 0.5; transition: opacity 0.15s; border: none; background: none; padding: 0; }
.lang-flag:hover, .lang-flag.active { opacity: 1; }

/* 9. LANDINGPAGE  (.page-landing)
   ============================================================= */
.page-landing body { overflow: auto; }

.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--paper);
}
.hero-bg::before {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(196,146,58,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--gold); }
.hero-title { font-size: clamp(34px, 5vw, 58px); line-height: 1.1; margin-bottom: 1.4rem; }
.hero-title em { color: var(--gold); }
.hero-subtitle { font-size: 17px; color: var(--ink-soft); margin-bottom: 2.2rem; max-width: 460px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-note {
  font-size: 13px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.hero-note::before { content: '✓'; color: var(--teal); font-weight: 700; }

.lp-section { padding: 5rem 2rem; }
.lp-section.alt { background: white; }
.lp-section.dark { background: var(--ink); }
.container { max-width: 1100px; margin: 0 auto; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title { font-size: clamp(26px, 4vw, 40px); margin-bottom: 1rem; }
.section-sub   { font-size: 16px; color: var(--ink-soft); max-width: 540px; margin-bottom: 3rem; }
.section-title-dark { color: white; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.step-num { font-family: var(--font-serif); font-size: 44px; font-weight: 300; color: var(--gold-light); line-height: 1; margin-bottom: 0.8rem; }
.step h3  { font-size: 16px; margin-bottom: 0.4rem; font-family: var(--font-sans); font-weight: 600; }
.step p   { font-size: 14px; color: var(--ink-soft); }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card {
  background: white;
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--gold); }
.feature-icon { font-size: 26px; margin-bottom: 0.8rem; }
.feature-card h3 { font-size: 16px; font-family: var(--font-sans); font-weight: 600; margin-bottom: 0.4rem; }
.feature-card p  { font-size: 13px; color: var(--ink-soft); }
.feature-tag { display: inline-block; margin-top: 0.8rem; font-size: 10px; padding: 2px 10px; border-radius: 20px; font-family: var(--font-mono); }
.tag-free    { background: var(--teal-light); color: var(--teal); }
.tag-basis   { background: #dce8f8; color: #2d4a6e; }
.tag-premium { background: var(--gold-light); color: var(--gold-dark); }

/* Pricing grid */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; align-items: start; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}
.testimonial-text   { font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 1rem; font-style: italic; }
.testimonial-author { font-size: 13px; font-weight: 600; color: var(--gold); }
.testimonial-role   { font-size: 11px; color: rgba(255,255,255,0.4); }
.stars { color: var(--gold); font-size: 12px; margin-bottom: 0.8rem; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--paper-border); }
.faq-q {
  padding: 1.1rem 0;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q:hover { color: var(--gold); }
.faq-toggle { font-size: 20px; color: var(--ink-muted); transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-a { font-size: 14px; color: var(--ink-soft); line-height: 1.7; padding-bottom: 1.1rem; display: none; }
.faq-item.open .faq-a { display: block; }

/* CTA section */
.cta-section {
  background: var(--paper-warm);
  border-top: 1px solid var(--paper-border);
  border-bottom: 1px solid var(--paper-border);
  text-align: center;
  padding: 5rem 2rem;
}

/* CV preview mockup */
.cv-mockup {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cv-mockup-bar {
  background: var(--ink);
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}
.mock-dot { width: 9px; height: 9px; border-radius: 50%; }
.cv-page { padding: 24px 24px 36px; }
.cv-page-name  { font-family: var(--font-serif); font-size: 20px; font-weight: 300; border-bottom: 2px solid var(--gold); padding-bottom: 7px; margin-bottom: 7px; }
.cv-page-sub   { font-size: 10px; color: var(--ink-muted); margin-bottom: 12px; }
.cv-mock-sec   { font-family: var(--font-mono); font-size: 7px; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); font-weight: 600; margin-bottom: 6px; margin-top: 12px; }
.cv-mock-line  { height: 5px; background: var(--paper-warm); border-radius: 3px; margin-bottom: 4px; }
.cv-mock-line.dark { background: #d8d4c8; }
.wm-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) rotate(-30deg);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: rgba(0,0,0,0.06);
  white-space: nowrap;
  pointer-events: none;
}

/* Template tabs */
.template-tabs { display: flex; gap: 6px; margin-bottom: 0.8rem; }
.ttab {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  cursor: pointer;
  border: 1px solid var(--paper-border);
  color: var(--ink-muted);
  background: white;
  font-family: var(--font-sans);
  transition: all 0.2s;
}
.ttab.active { background: var(--gold-light); border-color: var(--gold); color: var(--ink); }
.tv { display: none; }
.tv.active { display: block; }


/* 10. EDITOR  (.page-app)
   ============================================================= */
/* removed duplicate */

.app {
  display: flex;
  height: calc(100vh - var(--nav-height) - 36px);
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 260px;
  min-width: 180px;
  max-width: 360px;
  background: white;
  border-right: 1px solid var(--paper-border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.sidebar-section { padding: 1rem 1.2rem; border-bottom: 1px solid var(--paper-border); }
.sidebar-section h3 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: 0.7rem;
}

/* Section nav */
.section-nav { display: flex; flex-direction: column; gap: 2px; }
.section-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-soft);
  transition: all 0.15s;
}
.section-nav-item:hover { background: var(--paper-warm); }
.section-nav-item.active { background: var(--gold-light); color: var(--ink); font-weight: 500; }
.completeness {
  margin-left: auto;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
}
.c-done { background: var(--teal-light); color: var(--teal); }
.c-miss { background: #ffe8e8; color: var(--danger); }
.c-empty { background: var(--paper-border); color: var(--ink-muted); }

/* Template cards (sidebar) */
.template-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.template-card {
  border: 2px solid var(--paper-border);
  border-radius: var(--radius);
  padding: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.template-card:hover { border-color: var(--gold); }
.template-card.selected { border-color: var(--gold); background: var(--gold-light); }
.template-card.locked { opacity: 0.6; }
.template-thumb {
  height: 48px;
  border-radius: 3px;
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 5px;
}
.tl { height: 4px; border-radius: 2px; background: currentColor; }
.template-card label { font-size: 10px; color: var(--ink-soft); display: block; cursor: pointer; }

/* Editor area */
.editor-area { flex: 1; min-width: 280px; overflow-y: auto; padding: 1.2rem 1.5rem; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--paper-border);
}
.section-header h2 { font-size: 18px; }

/* Skill tags */
.skill-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.skill-tag {
  padding: 3px 10px;
  background: var(--paper-warm);
  border: 1px solid var(--paper-border);
  border-radius: 20px;
  font-size: 11px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 3px;
}
.skill-tag button { background: none; border: none; cursor: pointer; color: var(--ink-muted); font-size: 13px; line-height: 1; }

/* Tabs (editor) */
.tabs { display: flex; border-bottom: 1px solid var(--paper-border); margin-bottom: 1.2rem; }
.tab {
  padding: 7px 14px;
  cursor: pointer;
  font-size: 12px;
  color: var(--ink-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
}
.tab.active { color: var(--ink); border-bottom-color: var(--gold); font-weight: 500; }

/* Entry cards */
.entry-card {
  border: 1px solid var(--paper-border);
  border-radius: var(--radius);
  padding: 0.8rem;
  margin-bottom: 0.6rem;
  background: white;
}
.entry-card h4 { font-size: 13px; font-weight: 600; font-family: var(--font-sans); }
.entry-card p  { font-size: 11px; color: var(--ink-muted); }

/* Resize handle */
.resize-handle {
  width: 5px;
  background: var(--paper-border);
  cursor: col-resize;
  flex-shrink: 0;
  transition: background 0.15s;
}
.resize-handle:hover,
.resize-handle.dragging { background: var(--gold); }

/* Preview area */
.preview-area {
  min-width: 200px;
  background: var(--paper-warm);
  border-left: 1px solid var(--paper-border);
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}
.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  flex-shrink: 0;
}
.preview-toolbar h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}
.preview-scroll { flex: 1; overflow-y: auto; }
.preview-scale-wrap { transform-origin: top center; }

/* CV preview (A4) */
.cv-preview {
  background: white;
  width: 210mm;
  min-height: 297mm;
  padding: 20mm;
  box-shadow: var(--shadow);
  position: relative;
  font-size: 10pt;
  font-family: var(--font-sans);
}
.cv-preview.watermark::after {
  content: attr(data-wm);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) rotate(-35deg);
  font-size: 26pt;
  font-weight: 700;
  color: rgba(0,0,0,0.055);
  pointer-events: none;
  white-space: nowrap;
  font-family: var(--font-serif);
}

/* CV template styles */
/* ---- CLASSIC ---- */
.tpl-classic .cv-name     { font-family: var(--font-serif); font-size: 26pt; font-weight: 300; letter-spacing: -0.5pt; color: #1a1814; margin-bottom: 4pt; }
.tpl-classic .cv-subtitle { font-size: 11pt; color: #6a6560; margin-bottom: 6pt; }
.tpl-classic .cv-contact  { display: flex; gap: 14pt; flex-wrap: wrap; font-size: 8.5pt; color: #6a6560; border-bottom: 2px solid #c4923a; padding-bottom: 8pt; margin-bottom: 14pt; }
.tpl-classic .cv-sec      { font-size: 8pt; text-transform: uppercase; letter-spacing: 2.5px; color: #c4923a; font-weight: 700; margin: 14pt 0 7pt; font-family: var(--font-mono); }
.tpl-classic .cv-entry    { margin-bottom: 9pt; padding-left: 8pt; border-left: 2px solid #f0ddb8; }
.tpl-classic .cv-et       { font-weight: 700; font-size: 10pt; color: #1a1814; }
.tpl-classic .cv-es       { font-size: 8.5pt; color: #8a8580; margin-top: 1pt; }
.tpl-classic .cv-ed       { font-size: 8.5pt; margin-top: 3pt; line-height: 1.6; color: #4a4740; }

/* ---- MODERN ---- */
.tpl-modern               { display: grid; grid-template-columns: 32% 68%; min-height: 297mm; padding: 0; }
.tpl-modern .cv-sidebar   { background: #1e2433; padding: 14mm 10mm; color: white; }
.tpl-modern .cv-main      { padding: 14mm 12mm; background: #faf8f4; }
.tpl-modern .cv-name      { font-family: var(--font-serif); font-size: 20pt; font-weight: 300; color: white; margin-bottom: 2pt; line-height: 1.15; }
.tpl-modern .cv-subtitle  { font-size: 9pt; color: #c4923a; margin-bottom: 14pt; font-weight: 500; }
.tpl-modern .cv-sec-s     {
  font-size: 7.5pt; text-transform: uppercase; letter-spacing: 2px;
  color: rgba(255,255,255,0.5); font-weight: 700; margin: 12pt 0 6pt;
  font-family: var(--font-mono);
}
.tpl-modern .cv-sec-m     {
  font-size: 8pt; text-transform: uppercase; letter-spacing: 2px;
  color: #1e2433; font-weight: 700; margin: 14pt 0 7pt;
  font-family: var(--font-mono);
  border-bottom: 2px solid #c4923a; padding-bottom: 3pt;
}
.tpl-modern .cv-ci        { font-size: 8pt; color: rgba(255,255,255,0.65); margin-bottom: 4pt; line-height: 1.4; }
.tpl-modern .cv-et        { font-weight: 700; font-size: 10pt; color: #1a1814; }
.tpl-modern .cv-es        { font-size: 8.5pt; color: #8a8580; margin-top: 1pt; }
.tpl-modern .cv-ed        { font-size: 8.5pt; margin-top: 3pt; line-height: 1.6; color: #4a4740; }
.tpl-modern .cv-entry     { margin-bottom: 10pt; padding-bottom: 8pt; border-bottom: 0.5pt solid #e8e4d8; }
.tpl-modern .cv-entry:last-child { border-bottom: none; }

/* ---- MINIMAL ---- */
.tpl-minimal .cv-name     { font-family: var(--font-serif); font-size: 30pt; font-weight: 300; letter-spacing: -1pt; margin-bottom: 3pt; color: #1a1814; }
.tpl-minimal .cv-subtitle { font-size: 11pt; color: #c4923a; margin-bottom: 4pt; font-weight: 500; }
.tpl-minimal .cv-contact  {
  display: flex; gap: 18pt; font-size: 8.5pt; color: #8a8580;
  border-top: 0.5pt solid #1a1814; border-bottom: 0.5pt solid #e0ddd5;
  padding: 6pt 0; margin-bottom: 14pt;
}
.tpl-minimal .cv-sec      {
  font-size: 7.5pt; text-transform: uppercase; letter-spacing: 3px;
  color: #1a1814; font-weight: 700; margin: 14pt 0 7pt;
  font-family: var(--font-mono);
}
.tpl-minimal .cv-entry    { display: grid; grid-template-columns: 70pt 1fr; gap: 10pt; margin-bottom: 9pt; }
.tpl-minimal .cv-edate    { font-size: 8pt; color: #8a8580; padding-top: 1pt; line-height: 1.4; }
.tpl-minimal .cv-et       { font-weight: 700; font-size: 10pt; color: #1a1814; }
.tpl-minimal .cv-es       { font-size: 8.5pt; color: #8a8580; margin-top: 1pt; }
.tpl-minimal .cv-ed       { font-size: 8.5pt; margin-top: 3pt; line-height: 1.6; color: #4a4740; }

/* AI panel */
.ai-panel {
  background: linear-gradient(135deg, #1a1814, #2d2a24);
  border-radius: var(--radius);
  padding: 0.9rem;
  color: white;
  margin-bottom: 0.8rem;
}
.ai-panel h4 { font-family: var(--font-serif); font-weight: 300; color: var(--gold); font-size: 15px; margin-bottom: 0.4rem; }
.ai-tip      { font-size: 11px; color: rgba(255,255,255,0.7); line-height: 1.5; margin-bottom: 0.4rem; }
.ai-tip.warn { color: #ffcc80; }
.ai-actions  { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 0.6rem; }
.ai-btn {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  cursor: pointer;
  font-family: var(--font-sans);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: white;
  transition: all 0.2s;
}
.ai-btn:hover { border-color: var(--gold); color: var(--gold); }
.ai-output {
  border: 1px solid var(--paper-border);
  border-radius: var(--radius);
  padding: 0.8rem;
  font-size: 12px;
  line-height: 1.7;
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
  display: none;
}


/* 11. LEGAL PAGES  (.page-legal)
   ============================================================= */
.legal-body {
  max-width: 760px;
  margin: 3rem auto;
  padding: 0 2rem 4rem;
}
.legal-body h1 { font-size: 32px; margin-bottom: 0.5rem; }
.legal-body .lead { font-size: 16px; color: var(--ink-soft); margin-bottom: 2.5rem; border-bottom: 1px solid var(--paper-border); padding-bottom: 1.5rem; }
.legal-body h2 { font-size: 20px; margin: 2rem 0 0.8rem; }
.legal-body h3 { font-size: 16px; font-family: var(--font-sans); font-weight: 600; margin: 1.5rem 0 0.5rem; }
.legal-body p  { margin-bottom: 1rem; font-size: 14px; color: var(--ink-soft); }
.legal-body ul { margin: 0.5rem 0 1rem 1.5rem; }
.legal-body li { font-size: 14px; color: var(--ink-soft); margin-bottom: 0.3rem; }
.legal-body a  { color: var(--gold); }
.legal-contact {
  background: var(--paper-warm);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
  font-size: 14px;
  line-height: 1.8;
}
.legal-updated { font-size: 12px; color: var(--ink-muted); font-family: var(--font-mono); }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 2rem 4rem;
}
.contact-info h2 { font-size: 28px; margin-bottom: 1rem; }
.contact-info p  { font-size: 14px; color: var(--ink-soft); margin-bottom: 1rem; }
.contact-detail  { display: flex; gap: 10px; margin-bottom: 0.8rem; font-size: 14px; }
.contact-detail .icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.contact-form-card {
  background: white;
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.contact-form-card h2 { font-size: 22px; margin-bottom: 0.5rem; }
.contact-form-card p.sub { color: var(--ink-soft); font-size: 13px; margin-bottom: 1.5rem; }


/* 12. PRINT
   ============================================================= */
@media print {
  nav, .sidebar, .editor-area, .resize-handle, .preview-toolbar, footer { display: none !important; }
  .preview-area { width: 100% !important; border: none !important; background: white !important; padding: 0 !important; }
  .preview-scale-wrap { transform: none !important; width: 100% !important; margin: 0 !important; }
  .cv-preview { box-shadow: none !important; }
}


/* RESPONSIVE
   ============================================================= */
@media (max-width: 900px) {
  .hero-inner        { grid-template-columns: 1fr; }
  .steps             { grid-template-columns: 1fr 1fr; }
  .features-grid     { grid-template-columns: 1fr 1fr; }
  .pricing-grid      { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-top        { grid-template-columns: 1fr 1fr; }
  .contact-grid      { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .steps         { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid  { grid-template-columns: 1fr; }
  .footer-top    { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  nav { padding: 0 1rem; }
}

/* ============================================================
   EDITOR — zusätzliche Klassen (Ergänzung)
   ============================================================ */

/* App-Footer (schmaler als Landingpage-Footer) */
.app-footer {
  background: var(--ink);
  padding: 0.8rem 2rem;
  flex-shrink: 0;
}
.app-footer-inner {
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  font-size: 11px;
}
.app-footer-inner a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  padding: 0 6px;
  transition: color 0.15s;
}
.app-footer-inner a:hover { color: var(--gold); }
.footer-sep { color: rgba(255,255,255,0.2); }
.footer-copy { margin-left: 1rem; color: rgba(255,255,255,0.25); font-size: 11px; }

/* Page-app: body must allow footer */
.page-app body { overflow: hidden; }
.page-app .app { height: calc(100vh - var(--nav-height) - 36px); }

.entry-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

/* Entry form spacing */
.entry-form h4 { margin-bottom: 0.8rem; font-size: 14px; }
.entry-form-actions { display: flex; gap: 6px; margin-top: 0.5rem; }

/* Skill input row */
.skill-input-row { display: flex; gap: 6px; }
.skill-input-row input { flex: 1; }

/* Sidebar hints */
.sidebar-hint { font-size: 11px; color: var(--ink-muted); margin-bottom: 8px; line-height: 1.5; }
.sidebar-ai { flex: 1; }
.sidebar-bottom { border-top: 1px solid var(--paper-border); }
.pdf-note { font-size: 10px; color: var(--ink-muted); text-align: center; margin-top: 5px; margin-bottom: 0; }

/* Modal wide (4 plans) */
.modal-wide { max-width: 720px; }
.upgrade-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 1.2rem; }
.upgrade-plans .pricing-card { padding: 1rem; margin-bottom: 0; }
.upgrade-plans .pricing-card h3 { font-size: 13px; }
.upgrade-plans .pricing-card .price { font-size: 20px; }
@media (max-width: 680px) { .upgrade-plans { grid-template-columns: 1fr 1fr; } }

/* Tier list in register modal */
.tier-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1rem; }
.tier-card { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--paper-border); border-radius: var(--radius); cursor: pointer; transition: border-color 0.2s; }
.tier-card:has(input:checked) { border-color: var(--gold); background: var(--gold-light); }
.tier-card input[type=radio] { margin-top: 2px; width: auto; accent-color: var(--gold); flex-shrink: 0; }
.tier-card-title { font-weight: 600; font-size: 13px; }
.tier-card-desc  { font-size: 11px; color: var(--ink-muted); }

/* Modal footnote & errors */
.modal-footnote { text-align: center; margin-top: 0.8rem; font-size: 12px; color: var(--ink-muted); }
.form-error { color: var(--danger); font-size: 12px; margin-bottom: 8px; }
.form-msg { font-size: 12px; margin-bottom: 8px; padding: 6px 10px; border-radius: var(--radius); }
.form-msg-ok  { background: var(--teal-light); color: var(--teal); }
.form-msg-err { background: #fff0f0; color: var(--danger); }

/* AI prompt row */
.ai-prompt-row { display: flex; gap: 6px; margin-top: 0.8rem; }
.ai-prompt-input { flex: 1; padding: 7px 10px; border: 1px solid var(--paper-border); border-radius: var(--radius); font-family: var(--font-sans); font-size: 13px; outline: none; }
.ai-prompt-input:focus { border-color: var(--gold); }

/* Template grid — wider for more templates */
.template-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

/* Badge tiers */
.badge-basis { background: #1e3a5a; color: #7eb8e8; }

/* Inline edit form inside entry cards */
.entry-edit-form { border-top: 1px solid var(--paper-border); padding-top: 0.8rem; }
.entry-edit-form .form-group { margin-bottom: 0.7rem; }
.entry-edit-form label { font-size: 10px; }
.entry-edit-form input,
.entry-edit-form textarea,
.entry-edit-form select { font-size: 13px; padding: 6px 9px; }