/* ============================================================
   PartnerPredict Legal® — Hauptstylesheet
   ============================================================ */

/* 1. Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* 2. CSS-Variablen */
:root {
  --primary:       #1B2A4A;
  --primary-dark:  #14203a;
  --secondary:     #C9A84C;
  --secondary-dim: rgba(201,168,76,0.15);
  --bg:            #F7F5F0;
  --text:          #2C2C2C;
  --text-muted:    #6B6869;
  --accent:        #D8D4CC;
  --white:         #FFFFFF;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;

  --container:  1160px;
  --radius:     2px;
  --transition: 0.25s ease;

  --shadow-sm:  0 2px 8px  rgba(27,42,74,0.07);
  --shadow-md:  0 4px 20px rgba(27,42,74,0.11);
  --shadow-lg:  0 8px 40px rgba(27,42,74,0.16);
}

/* 3. Reset & Basis */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

img { max-width: 100%; display: block; }

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--primary); }

ul, ol { list-style: none; }

/* 4. Typografie */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.2;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* 5. Layout-Helfer */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 5.5rem 0; }
.section--white  { background-color: var(--white); }
.section--dark   { background-color: var(--primary); }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark p  { color: var(--white); }
.section--dark .text-muted { color: rgba(255,255,255,0.65); }

.section-header  { margin-bottom: 3.5rem; }
.section-header--center { text-align: center; }
.section-header--center .section-intro { margin: 0 auto; }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.9rem;
}

.section-title  { margin-bottom: 1rem; }
.section-intro  {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.75;
}

.gold-rule {
  width: 44px;
  height: 2px;
  background-color: var(--secondary);
  margin: 1.25rem 0;
}

/* 6. Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  text-align: center;
}
.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary);
}
.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}
.btn-outline-light {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline-light:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary);
}
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* 7. Header & Navigation */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background-color: var(--white);
  border-bottom: 1px solid var(--accent);
  transition: box-shadow var(--transition);
}
header.header-scrolled { box-shadow: var(--shadow-md); }

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.logo:hover { color: var(--primary); }
.logo .reg {
  font-size: 0.6em;
  vertical-align: super;
  font-weight: 400;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background-color: var(--secondary);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background-color: var(--primary) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.84rem !important;
  border: 2px solid var(--primary);
  transition: all var(--transition) !important;
}
.nav-cta:hover {
  background-color: var(--secondary) !important;
  border-color: var(--secondary) !important;
  color: var(--primary) !important;
}
.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background-color: var(--primary);
  transition: all var(--transition);
  transform-origin: center;
}
.hamburger.hamburger-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.hamburger-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.hamburger-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 8. Hero — Hauptseite */
.hero {
  padding: 10.5rem 0 6.5rem;
  background-color: var(--primary);
  background-image:
    linear-gradient(rgba(201,168,76,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -8%;
  width: 55%; height: 180%;
  background: radial-gradient(ellipse, rgba(201,168,76,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.hero-content { max-width: 760px; position: relative; }

.hero-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: var(--white);
  line-height: 1.13;
  margin-bottom: 1.5rem;
  font-weight: 700;
}
.hero-sub {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.72;
  max-width: 620px;
  margin-bottom: 2.5rem;
}
.hero-divider {
  width: 44px; height: 2px;
  background-color: var(--secondary);
  margin-bottom: 1.5rem;
}

/* Hero — Unterseiten */
.hero-sub-page {
  padding: 7.5rem 0 4.5rem;
  background-color: var(--primary);
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  position: relative;
}
.hero-sub-page h1 { color: var(--white); font-size: clamp(1.9rem, 3.5vw, 2.7rem); }
.hero-sub-page .hero-sub { font-size: 1.05rem; }

/* 9. Problem-Kacheln */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.75rem;
}
.problem-card {
  background-color: var(--white);
  border: 1px solid var(--accent);
  border-top: 3px solid var(--secondary);
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
}
.problem-card .icon {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  display: block;
}
.problem-card h3 { font-size: 1rem; margin-bottom: 0.6rem; }
.problem-card p  { font-size: 0.9rem; color: var(--text-muted); margin: 0; line-height: 1.65; }

/* 10. Relevant-5-Kacheln */
.r5-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.r5-card {
  background-color: var(--white);
  border: 1px solid var(--accent);
  padding: 1.75rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.r5-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.r5-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.7rem;
}
.r5-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.5rem; }
.r5-card p  { font-size: 0.875rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* 11. Prozess-Schritte */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
  position: relative;
}
.process-step {
  padding: 1.75rem 1.5rem 1.75rem 0;
  position: relative;
}
.process-step + .process-step {
  padding-left: 2rem;
  border-left: 1px solid var(--accent);
}
.step-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--secondary);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.process-step h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.5rem; }
.process-step p  { font-size: 0.875rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* 12. Kontaktformular */
.contact-section {
  background-color: var(--primary);
  background-image:
    linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
  background-size: 52px 52px;
}
.contact-form { max-width: 760px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}
.form-group label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem 1rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  background-color: rgba(255,255,255,0.07);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), background-color var(--transition);
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  background-color: rgba(255,255,255,0.1);
}
.form-group select option {
  background-color: var(--primary);
  color: var(--white);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: #e05c5c; }

/* Helles Formular (Kontaktseite) */
.form-group--light label  { color: var(--text); }
.form-group--light input,
.form-group--light select,
.form-group--light textarea {
  background-color: var(--white);
  border-color: var(--accent);
  color: var(--text);
}
.form-group--light input::placeholder,
.form-group--light textarea::placeholder { color: var(--accent); }
.form-group--light input:focus,
.form-group--light select:focus,
.form-group--light textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
  background-color: var(--white);
}
.form-group--light select option {
  background-color: var(--white);
  color: var(--text);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.checkbox-group input[type="checkbox"] {
  width: 18px; height: 18px;
  min-width: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--secondary);
}
.checkbox-group label { font-size: 0.85rem; color: rgba(255,255,255,0.65); cursor: pointer; line-height: 1.5; text-transform: none; letter-spacing: 0; }
.checkbox-group--light label { color: var(--text-muted); }
.checkbox-group label a { color: var(--secondary); }

.form-success {
  padding: 2rem;
  border: 1px solid var(--secondary);
  border-radius: var(--radius);
  background-color: rgba(201,168,76,0.08);
}
.form-success p { color: var(--white); font-size: 1rem; margin: 0; }
.form-success--light .form-success p { color: var(--primary); }

/* 13. Footer */
footer {
  background-color: var(--primary);
  border-top: 2px solid var(--secondary);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--secondary); }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin: 0; }

/* 14. Preiskarten */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.pricing-card {
  background-color: var(--white);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
}
.pricing-card--featured {
  border-color: var(--secondary);
  border-width: 2px;
  box-shadow: var(--shadow-lg);
}
.pricing-badge {
  position: absolute;
  top: -0.8rem; left: 50%;
  transform: translateX(-50%);
  background-color: var(--secondary);
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 1.1rem;
  border-radius: 20px;
  white-space: nowrap;
}
.pricing-card h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.pricing-card .pricing-for { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; font-style: italic; }
.pricing-divider { width: 100%; height: 1px; background-color: var(--accent); margin: 1.5rem 0; }
.pricing-features { margin-bottom: 2rem; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.9rem; color: var(--text);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--bg);
  line-height: 1.5;
}
.pricing-features li::before { content: '—'; color: var(--secondary); font-weight: 700; flex-shrink: 0; }
.pricing-price {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

/* 15. FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--accent); }
.faq-question {
  width: 100%; background: none; border: none; text-align: left;
  padding: 1.4rem 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-heading);
  font-size: 1.02rem; font-weight: 600;
  color: var(--primary);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--secondary); }
.faq-icon {
  width: 22px; height: 22px; min-width: 22px;
  position: relative; color: var(--secondary);
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: currentColor;
  border-radius: 2px;
}
.faq-icon::before { width: 12px; height: 2px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq-icon::after  { width: 2px; height: 12px; top: 50%; left: 50%; transform: translate(-50%,-50%); transition: transform var(--transition), opacity var(--transition); }
.faq-item.active .faq-icon::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer p { padding: 0 0 1.4rem; color: var(--text-muted); font-size: 0.92rem; line-height: 1.72; }
.faq-item.active .faq-answer { max-height: 600px; }

/* 16. Team-Kacheln */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2rem;
}
.team-card {
  background-color: var(--white);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  text-align: center;
}
.team-avatar {
  width: 78px; height: 78px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem; font-weight: 600;
  margin: 0 auto 1.25rem;
  letter-spacing: 0.04em;
  border: 2px solid var(--secondary);
}
.team-card h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.team-role {
  display: block;
  font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--secondary); margin-bottom: 1rem;
}
.team-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; text-align: left; margin: 0; }

/* 17. Dimensionen (modell.html) */
.dimension {
  padding: 4rem 0;
  border-bottom: 1px solid var(--accent);
}
.dimension:last-of-type { border-bottom: none; }
.dimension-header { display: flex; align-items: baseline; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.dimension-number {
  font-family: var(--font-heading);
  font-size: 4rem; font-weight: 700;
  color: var(--accent); line-height: 1;
  flex-shrink: 0; opacity: 0.85;
}
.dimension h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-bottom: 0; }
.dimension-intro { font-size: 1rem; color: var(--text); margin-bottom: 0.75rem; line-height: 1.8; }
.dimension-why  { font-size: 0.95rem; color: var(--text-muted); line-height: 1.75; }

.indicator-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.75rem; }
.indicator-list h4 {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 0.9rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid currentColor;
}
.indicator-list--positive h4 { color: #4A7C59; }
.indicator-list--negative h4 { color: #8B4040; }
.indicator-list li {
  font-size: 0.875rem; color: var(--text);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--bg);
  display: flex; align-items: flex-start; gap: 0.6rem;
  line-height: 1.5;
}
.indicator-list--positive li::before { content: '+'; color: #4A7C59; font-weight: 700; flex-shrink: 0; }
.indicator-list--negative li::before { content: '−'; color: #8B4040; font-weight: 700; flex-shrink: 0; }

/* 18. Kontaktseite Layout */
.contact-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: start; }
.contact-info h3 { font-size: 1.15rem; margin-bottom: 0.9rem; }
.contact-info p  { font-size: 0.92rem; color: var(--text-muted); line-height: 1.72; }
.contact-divider { width: 36px; height: 2px; background-color: var(--secondary); margin: 1.5rem 0; }
.contact-email   { display: inline-block; font-size: 0.95rem; color: var(--secondary); font-weight: 500; }

/* 19. Leistungen-Seite */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1.75rem;
  margin-bottom: 3rem;
}
.service-card {
  background-color: var(--white);
  border: 1px solid var(--accent);
  border-left: 4px solid var(--secondary);
  padding: 2rem;
  border-radius: var(--radius);
}
.service-card h3 { font-size: 1.1rem; margin-bottom: 0.65rem; }
.service-card p  { font-size: 0.9rem; color: var(--text-muted); margin: 0; line-height: 1.65; }

.value-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.value-item { display: flex; gap: 1.1rem; align-items: flex-start; }
.value-marker { width: 8px; height: 8px; min-width: 8px; border-radius: 50%; background-color: var(--secondary); margin-top: 0.55rem; }
.value-item h4 { font-size: 0.92rem; color: var(--primary); margin-bottom: 0.2rem; }
.value-item p  { font-size: 0.85rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* 20. Impressum / Legal */
.legal-content { max-width: 760px; padding: 5rem 0 6rem; }
.legal-content h1 { margin-bottom: 2rem; }
.legal-content h2 { font-size: 1.4rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
.legal-content h3 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.legal-content p,
.legal-content li { font-size: 0.95rem; line-height: 1.75; color: var(--text); margin-bottom: 0.75rem; }
.legal-content ul { padding-left: 1.5rem; }
.legal-content ul li { list-style: disc; }
.legal-content ol { padding-left: 1.5rem; }
.legal-content ol li { list-style: decimal; }
.legal-content a { color: var(--secondary); }

/* 21. Hilfsstyle für Ansatz-Sektion */
.approach-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; }
.approach-card {
  background-color: var(--bg);
  border: 1px solid var(--accent);
  padding: 2rem;
  border-radius: var(--radius);
}
.approach-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.approach-card p  { font-size: 0.9rem; color: var(--text-muted); margin: 0; line-height: 1.65; }

/* ============================================================
   22. Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .problem-grid,
  .r5-grid        { grid-template-columns: repeat(2,1fr); }
  .process-grid   { grid-template-columns: repeat(2,1fr); }
  .process-step + .process-step { padding-left: 1.5rem; }
  .team-grid      { grid-template-columns: repeat(2,1fr); }
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .approach-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 2rem 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-links.nav-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--bg); }
  .nav-links a { display: block; padding: 0.85rem 0; font-size: 1rem; }
  .nav-links a::after { display: none; }
  .nav-cta { display: inline-block !important; margin-top: 0.5rem; width: auto !important; }

  .hero        { padding: 8rem 0 4.5rem; }
  .section     { padding: 3.5rem 0; }
  .section-header { margin-bottom: 2.5rem; }

  .problem-grid,
  .r5-grid,
  .team-grid,
  .pricing-grid,
  .service-grid,
  .value-list   { grid-template-columns: 1fr; }

  .process-grid { grid-template-columns: 1fr; }
  .process-step + .process-step { border-left: none; border-top: 1px solid var(--accent); padding-left: 0; padding-top: 1.5rem; }

  .form-row { grid-template-columns: 1fr; }

  .indicator-lists { grid-template-columns: 1fr; }

  .pricing-grid { max-width: 100%; }

  .dimension-header { flex-direction: column; gap: 0.3rem; }
  .dimension-number { font-size: 2.5rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 1.25rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .btn-group  { flex-direction: column; }
  .btn        { text-align: center; }
  nav { padding: 0 1.25rem; }
  footer .footer-inner { padding: 0 1.25rem; }
}

/* ============================================================
   23. Nav-Login Button
   ============================================================ */
.nav-login {
  background-color: transparent !important;
  color: var(--secondary) !important;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.84rem !important;
  border: 2px solid var(--secondary) !important;
  transition: all var(--transition) !important;
  cursor: pointer;
}
.nav-login:hover {
  background-color: var(--secondary) !important;
  color: var(--white) !important;
}
.nav-login::after { display: none !important; }

/* ============================================================
   24. Auth Modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.62);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.modal-active {
  opacity: 1;
  pointer-events: auto;
}
.modal-container {
  background-color: var(--white);
  border-radius: 4px;
  max-width: 480px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(18px);
  transition: transform var(--transition);
}
.modal-overlay.modal-active .modal-container { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none; border: none;
  font-size: 1.7rem; line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.2rem 0.4rem;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--primary); }

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  margin-right: 2rem;
  font-weight: 600;
}

/* Modal Tabs */
.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--accent);
  margin-bottom: 1.75rem;
}
.modal-tab {
  background: none; border: none;
  padding: 0.7rem 1.5rem 0.7rem 0;
  font-family: var(--font-body);
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}
.modal-tab::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 2px;
  background-color: var(--secondary);
  transition: width var(--transition);
}
.modal-tab.active { color: var(--primary); }
.modal-tab.active::after { width: 100%; }

/* Modal Panels */
.modal-panel { display: block; }
.modal-panel.hidden { display: none; }

/* Modal Form */
.modal-form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.1rem;
}
.modal-form-group label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.45rem;
}
.modal-form-group input,
.modal-form-group select {
  padding: 0.8rem 1rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background-color: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}
.modal-form-group input:focus,
.modal-form-group select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.modal-form-group input.error,
.modal-form-group select.error { border-color: #e05c5c; }
.modal-form-group input::placeholder { color: var(--accent); }
.modal-form-group select option { background-color: var(--white); color: var(--text); }

.modal-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Password field */
.password-field { position: relative; }
.password-field input { width: 100%; padding-right: 5.5rem; }
.pw-toggle {
  position: absolute;
  right: 0.75rem; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  font-size: 0.72rem; font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  padding: 0.25rem;
  letter-spacing: 0.03em;
  font-family: var(--font-body);
  transition: color var(--transition);
}
.pw-toggle:hover { color: var(--primary); }

/* Modal Checkbox */
.modal-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  padding: 2px;
}
.modal-checkbox input[type="checkbox"] {
  width: 17px; height: 17px;
  min-width: 17px; margin-top: 2px;
  cursor: pointer;
  accent-color: var(--secondary);
}
.modal-checkbox label {
  font-size: 0.83rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.modal-checkbox label a { color: var(--secondary); }

.modal-hint {
  font-size: 0.77rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-style: italic;
}

.modal-submit { width: 100%; margin-top: 0.5rem; }

@media (max-width: 540px) {
  .modal-container { padding: 2rem 1.5rem; }
  .modal-form-row  { grid-template-columns: 1fr; }
}

/* ============================================================
   25. Dashboard
   ============================================================ */
.app-header {
  position: sticky;
  top: 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--accent);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.app-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
}
.app-user {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.user-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}
.logout-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition);
}
.logout-link:hover { color: var(--secondary); }

.dashboard-main {
  min-height: calc(100vh - 72px);
  padding: 2.5rem 0 5rem;
}
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.dashboard-header h1 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin: 0; }

.table-wrapper {
  background-color: var(--white);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  overflow-x: auto;
}
.candidates-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
}
.candidates-table thead tr { background-color: var(--primary); }
.candidates-table thead th {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  padding: 1rem 1.25rem;
  white-space: nowrap;
  text-align: left;
}
.candidates-table tbody tr {
  border-bottom: 1px solid var(--bg);
  transition: background-color var(--transition);
}
.candidates-table tbody tr:last-child { border-bottom: none; }
.candidates-table tbody tr:hover { background-color: var(--bg); }
.candidates-table tbody td {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text);
  vertical-align: middle;
}
.candidate-name { font-weight: 500; color: var(--primary); }

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 0.28rem 0.85rem;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.badge-progress { background-color: rgba(201,168,76,0.17); color: #7A5D10; }
.badge-done     { background-color: rgba(74,124,89,0.14);  color: #2D5E3D; }
.badge-pending  { background-color: rgba(216,212,204,0.7); color: var(--text-muted); }

/* Small table button */
.btn-table {
  display: inline-block;
  padding: 0.38rem 0.95rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}
.btn-table:hover { background-color: var(--primary); color: var(--white); }

@media (max-width: 768px) {
  .app-header-inner { padding: 0 1.25rem; }
  .dashboard-header { flex-direction: column; align-items: flex-start; }
  .candidates-table thead th,
  .candidates-table tbody td { padding: 0.75rem 1rem; }
}

/* ============================================================
   26. Dashboard Enhanced — Stats, Tabs, Progress
   ============================================================ */

/* App Header 3-column layout (enhanced) */
.app-header-inner.header-3col {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
}
.dash-header-nav {
  display: flex;
  justify-content: center;
  gap: 0;
}
.dash-tab-btn {
  background: none; border: none;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
  white-space: nowrap;
}
.dash-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -22px; left: 0;
  width: 0; height: 2px;
  background-color: var(--secondary);
  transition: width var(--transition);
}
.dash-tab-btn.active { color: var(--primary); }
.dash-tab-btn.active::after { width: 100%; }
.dash-tab-panel { display: none; padding-top: 2rem; }
.dash-tab-panel.active { display: block; }

/* Stats Bar */
.stats-bar {
  background-color: var(--white);
  border-bottom: 1px solid var(--accent);
  padding: 0;
}
.stats-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); }
.stats-grid-5 { display: grid; grid-template-columns: repeat(5,1fr); }
.stat-kachel {
  padding: 1rem 1.5rem;
  border-right: 1px solid var(--accent);
}
.stat-kachel:last-child { border-right: none; }
.stat-zahl {
  font-family: var(--font-heading);
  font-size: 1.8rem; font-weight: 700;
  color: var(--primary);
  line-height: 1; margin-bottom: 0.2rem;
}
.stat-label {
  font-size: 0.73rem; font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em; text-transform: uppercase;
}

/* Progress Bar */
.progress-wrap { display: flex; align-items: center; gap: 0.6rem; }
.progress-bar {
  width: 72px; height: 5px;
  background-color: var(--accent);
  border-radius: 3px; overflow: hidden; flex-shrink: 0;
}
.progress-fill {
  height: 100%; background-color: var(--secondary); border-radius: 3px;
}
.progress-fill.complete { background-color: #4A7C59; }
.progress-text { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; }

/* Role Badge */
.rolle-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem; border-radius: 20px;
  font-size: 0.67rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap;
}
.rolle-badge--manager { background-color: rgba(27,42,74,0.08); color: var(--primary); }
.rolle-badge--admin   { background-color: rgba(201,168,76,0.2); color: #7A5D10; }
.rolle-badge--viewer  { background-color: rgba(216,212,204,0.7); color: var(--text-muted); }

/* Extended Status Badges */
.badge-angelegt      { background-color: rgba(216,212,204,0.6);  color: var(--text-muted); }
.badge-eingereicht   { background-color: rgba(59,130,246,0.1);   color: #1A4A9A; }
.badge-inbearbeitung { background-color: rgba(201,168,76,0.17);  color: #7A5D10; }
.badge-review        { background-color: rgba(234,88,12,0.12);   color: #B05A0A; }
.badge-finalisierung { background-color: rgba(124,58,237,0.12);  color: #5B21B6; }

/* Filter Bar */
.filter-bar {
  display: flex; gap: 0.75rem;
  align-items: center; flex-wrap: wrap;
  padding: 1.25rem 0;
}
.filter-bar select,
.filter-bar input[type="text"] {
  padding: 0.55rem 1rem;
  border: 1px solid var(--accent); border-radius: var(--radius);
  background-color: var(--white); color: var(--text);
  font-family: var(--font-body); font-size: 0.875rem;
  -webkit-appearance: none; min-width: 160px;
  transition: border-color var(--transition);
}
.filter-bar input[type="text"] { min-width: 220px; }
.filter-bar input::placeholder { color: var(--accent); }
.filter-bar select:focus,
.filter-bar input:focus { outline: none; border-color: var(--secondary); }

/* Inline Status Select (admin) */
.status-select {
  font-size: 0.78rem; padding: 0.28rem 0.6rem;
  border: 1px solid var(--accent); border-radius: var(--radius);
  background: var(--white); color: var(--text);
  cursor: pointer; font-family: var(--font-body);
  -webkit-appearance: none;
}
.status-select:focus { outline: none; border-color: var(--secondary); }

/* Admin Banner */
.admin-banner {
  background-color: var(--primary);
  border-bottom: 2px solid var(--secondary);
  padding: 0.42rem 0; text-align: center;
  font-size: 0.75rem; color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
}
.admin-banner strong { color: var(--secondary); }

/* Modal Admin Toggle */
.modal-admin-toggle {
  margin: 1rem 0 0.75rem;
  padding: 0.7rem 1rem;
  background-color: var(--bg);
  border: 1px solid var(--accent); border-radius: var(--radius);
}
.modal-admin-toggle label {
  display: flex; align-items: center; gap: 0.6rem;
  cursor: pointer; font-size: 0.82rem; color: var(--text-muted);
  text-transform: none; letter-spacing: 0; font-weight: 400;
}
.modal-admin-toggle input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 15px; height: 15px; flex-shrink: 0;
}

/* ============================================================
   27. Kandidaten-Profil
   ============================================================ */
.kandidat-header-bar {
  background-color: var(--white);
  border-bottom: 1px solid var(--accent);
}
.kandidat-header-top {
  padding: 1.75rem 0 1.25rem;
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.kandidat-header-top h1 {
  font-size: clamp(1.5rem,2.5vw,2rem);
  margin-bottom: 0.3rem;
}
.kandidat-sub-info { font-size: 0.875rem; color: var(--text-muted); }
.kandidat-meta-right {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 0.4rem; flex-shrink: 0;
}
.kandidat-datum { font-size: 0.78rem; color: var(--text-muted); }
.kandidat-tabs-nav {
  display: flex; gap: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.kandidat-tab-btn {
  background: none; border: none;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 500;
  color: var(--text-muted); cursor: pointer;
  position: relative; transition: color var(--transition);
  white-space: nowrap; flex-shrink: 0;
}
.kandidat-tab-btn::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 0; height: 2px; background-color: var(--secondary);
  transition: width var(--transition);
}
.kandidat-tab-btn.active { color: var(--primary); }
.kandidat-tab-btn.active::after { width: 100%; }
.kandidat-tab-panel { display: none; padding: 2.5rem 0; }
.kandidat-tab-panel.active { display: block; }

/* Back link */
.back-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.82rem; color: var(--text-muted); font-weight: 500;
  transition: color var(--transition); margin-bottom: 0;
}
.back-link:hover { color: var(--secondary); }

/* ============================================================
   28. Dokument-Upload-Kacheln
   ============================================================ */
.dokument-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 1.25rem; margin-bottom: 2rem;
}
.dokument-kachel {
  background-color: var(--white);
  border: 1px solid var(--accent); border-radius: var(--radius);
  padding: 1.5rem; transition: border-color var(--transition);
}
.dokument-kachel.status-hochgeladen { border-color: rgba(74,124,89,0.35); }
.dokument-kachel.status-fehlt       { border-color: rgba(176,48,48,0.3); }
.dokument-kachel.locked {
  opacity: 0.6; background-color: var(--bg); pointer-events: none;
}
.dokument-kachel-head {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 0.5rem; margin-bottom: 0.35rem;
}
.dokument-kachel h4 {
  font-size: 0.84rem; font-weight: 600; color: var(--primary);
  line-height: 1.35; font-family: var(--font-body);
}
.dok-status {
  display: inline-flex; align-items: center; gap: 0.2rem;
  font-size: 0.67rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; white-space: nowrap; flex-shrink: 0;
  padding: 0.18rem 0.5rem; border-radius: 20px;
}
.dok-status.ausstehend  { background: rgba(216,212,204,0.5); color: var(--text-muted); }
.dok-status.hochgeladen { background: rgba(74,124,89,0.12);  color: #2D5E3D; }
.dok-status.fehlt       { background: rgba(176,48,48,0.1);   color: #B03030; }
.pflicht-tag {
  display: inline-block; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #B03030; background-color: rgba(176,48,48,0.07);
  padding: 0.12rem 0.45rem; border-radius: 2px; margin-bottom: 0.35rem;
}
.dokument-kachel p {
  font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 1rem;
}
.dokument-file-info {
  font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.dokument-file-info a { color: var(--secondary); font-weight: 500; }
.dok-locked-hint { font-size: 0.8rem; color: var(--text-muted); font-style: italic; line-height: 1.5; }
.btn-upload {
  display: inline-block; padding: 0.42rem 1rem;
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 500;
  border: 1.5px solid var(--accent); border-radius: var(--radius);
  background: var(--bg); color: var(--text);
  cursor: pointer; transition: all var(--transition);
  position: relative; overflow: hidden;
}
.btn-upload:hover { border-color: var(--secondary); color: var(--primary); background: var(--white); }
.btn-upload input[type="file"] {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0;
}
.einreichen-section { border-top: 1px solid var(--accent); padding-top: 2rem; }
.einreichen-hint {
  font-size: 0.875rem; color: var(--text-muted);
  margin-bottom: 1.25rem; max-width: 600px; line-height: 1.65;
}
.btn:disabled, .btn[disabled] { opacity: 0.42; cursor: not-allowed; pointer-events: none; }

/* ============================================================
   29. Report Tab
   ============================================================ */
.report-placeholder {
  text-align: center; padding: 3.5rem 2rem;
  max-width: 480px; margin: 0 auto;
}
.report-icon { font-size: 3rem; margin-bottom: 1.25rem; opacity: 0.35; }
.report-placeholder h3 { font-size: 1.1rem; margin-bottom: 0.65rem; }
.report-placeholder > p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.75rem; }
.report-checklist { text-align: left; max-width: 300px; margin: 0 auto; }
.report-checklist li {
  font-size: 0.875rem; padding: 0.45rem 0;
  display: flex; align-items: center; gap: 0.65rem;
  border-bottom: 1px solid var(--bg);
}
.check-ok   { color: #2D5E3D; font-weight: 700; }
.check-open { color: var(--accent); }
.report-card {
  background-color: var(--white); border: 1px solid var(--accent);
  border-radius: var(--radius); padding: 2rem; max-width: 660px;
}
.report-card-header { display: flex; align-items: flex-start; gap: 1.25rem; margin-bottom: 1.5rem; }
.report-card-icon { font-size: 2.5rem; flex-shrink: 0; }
.report-card h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.report-card-meta { font-size: 0.8rem; color: var(--text-muted); }
.executive-summary {
  background-color: var(--bg); border-left: 3px solid var(--secondary);
  padding: 1.25rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; margin-top: 1.5rem;
}
.executive-summary h4 {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--secondary); margin-bottom: 0.75rem;
}
.executive-summary p { font-size: 0.9rem; color: var(--text); line-height: 1.72; margin: 0; }

/* ============================================================
   30. Responsive — Enhanced
   ============================================================ */
@media (max-width: 1024px) {
  .stats-grid-5 { grid-template-columns: repeat(3,1fr); }
  .app-header-inner.header-3col { grid-template-columns: auto auto; }
  .dash-header-nav { display: none; }
}
@media (max-width: 768px) {
  .stats-grid-4,
  .stats-grid-5 { grid-template-columns: repeat(2,1fr); }
  .stat-kachel  { border-right: none; border-bottom: 1px solid var(--accent); }
  .dokument-grid { grid-template-columns: 1fr; }
  .filter-bar   { flex-direction: column; align-items: flex-start; }
  .filter-bar select,
  .filter-bar input[type="text"] { width: 100%; min-width: unset; }
  .kandidat-meta-right { align-items: flex-start; }
  .kandidat-header-top { flex-direction: column; }
  .app-tab-nav  { display: none; }
  .score-grid   { gap: 0.75rem; }
}

/* ============================================================
   31. App Tab Navigation (Dashboard Header Center)
   ============================================================ */
.app-tab-nav {
  display: flex; align-items: center; gap: 0.25rem;
}
.app-tab-btn {
  background: none; border: none;
  padding: 0.55rem 1.2rem;
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 500;
  color: var(--text-muted); cursor: pointer;
  border-radius: var(--radius); transition: all var(--transition);
}
.app-tab-btn:hover { color: var(--primary); background-color: var(--bg); }
.app-tab-btn.active {
  color: var(--primary); background-color: rgba(201,168,76,0.12);
  font-weight: 600;
}

/* Dash tab panels */
.dash-tab-panel { display: block; }
.dash-tab-panel.hidden { display: none; }
.kandidat-tab-panel { display: block; padding: 2.5rem 0; }
.kandidat-tab-panel.hidden { display: none; }

/* ============================================================
   32. Kandidaten-Profil Header Details
   ============================================================ */
.kandidat-header-meta { flex: 1; }
.kandidat-name { margin-bottom: 0.35rem; }
.kandidat-header-details {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  font-size: 0.875rem; color: var(--text-muted); margin-top: 0.25rem;
}
.kh-position-text { font-weight: 500; color: var(--text); }
.kandidat-header-progress { min-width: 200px; }

/* Kandidat-Link in table */
.kandidat-link {
  color: var(--primary); font-weight: 500; text-decoration: none;
  transition: color var(--transition);
}
.kandidat-link:hover { color: var(--secondary); text-decoration: underline; }

/* Kandidat tabs nav wrapper */
.kandidat-tabs-nav {
  background-color: var(--white);
  border-bottom: 1px solid var(--accent);
}
.kandidat-tabs-inner {
  display: flex; gap: 0; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ============================================================
   33. Dokument-Kacheln — neue Elemente
   ============================================================ */
.dok-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 0.5rem;
  margin-bottom: 1rem;
}
.dok-label { font-size: 0.875rem; font-weight: 600; color: var(--primary); line-height: 1.4; }
.dok-pflicht-stern { color: #B03030; margin-left: 0.15rem; }
.dok-upload-area { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.dok-dateiname {
  font-size: 0.8rem; color: var(--text-muted); max-width: 160px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dok-gesperrt-hint { font-size: 0.78rem; color: var(--text-muted); font-style: italic; }
.dok-kachel--locked {
  opacity: 0.55; background-color: var(--bg); pointer-events: none;
}

/* Dok status icons */
.dok-status { font-size: 1rem; flex-shrink: 0; }
.dok-status--done   { color: #2D5E3D; }
.dok-status--empty  { color: var(--text-muted); }
.dok-status--locked { color: var(--text-muted); font-size: 0.85rem; }

/* ============================================================
   34. Submit Section
   ============================================================ */
.submit-section {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.5rem 0; border-top: 1px solid var(--accent); margin-top: 0.5rem;
}
.submit-info { font-size: 0.875rem; color: var(--text-muted); }
.form-success-inline {
  font-size: 0.9rem; color: #2D5E3D; font-weight: 500;
}

/* ============================================================
   35. Report Tab — R5 Score Grid
   ============================================================ */
.r5-scores { margin-top: 1.75rem; }
.r5-scores h4 {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem;
  font-family: var(--font-body);
}
.score-grid { display: flex; flex-direction: column; gap: 1rem; }
.score-row {
  display: grid;
  grid-template-columns: 220px 1fr 60px;
  align-items: center; gap: 1rem;
}
.score-label { font-size: 0.875rem; color: var(--text); font-weight: 500; }
.score-bar-wrap { flex: 1; }
.score-value { font-size: 0.8rem; color: var(--text-muted); text-align: right; white-space: nowrap; }
.report-placeholder-icon { font-size: 3rem; opacity: 0.3; margin-bottom: 1.25rem; }
.report-footer-note {
  margin-top: 2rem; padding-top: 1.25rem;
  border-top: 1px solid var(--accent);
  font-size: 0.78rem; color: var(--text-muted); font-style: italic; line-height: 1.6;
}
.report-card-header {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.report-card-header h3 { margin: 0; }

/* ============================================================
   36. Danger Table Button + Table Hints
   ============================================================ */
.btn-table--danger {
  color: #B03030 !important; border-color: rgba(176,48,48,0.3) !important;
}
.btn-table--danger:hover {
  background-color: rgba(176,48,48,0.08) !important;
  border-color: #B03030 !important;
}
.table-hint {
  font-size: 0.82rem; color: var(--text-muted); margin-top: 1rem; line-height: 1.5;
}
.table-hint a { color: var(--secondary); }

/* ============================================================
   37. Admin Aktionen + Filter Result
   ============================================================ */
.admin-aktionen { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-result-info {
  margin-top: 1rem; font-size: 0.875rem;
  color: var(--text-muted); padding: 0.5rem 0;
}
