/* ==========================================================================
   gehalt.css – V2 Design System Alignment
   gehalt-lohn.info — aligned with dreisatz-rechner.net V2 / bmi-rechner.info
   ========================================================================== */

/* ── Design Tokens (CSS Custom Properties) ── */
:root {
  /* Brand Colors */
  --color-primary: #1E3A8A;
  --color-primary-light: #3B82F6;
  --color-primary-dark: #0F1F33;
  --color-accent: #059669;
  --color-accent-light: #DCFCE7;

  /* Salary Semantic Colors */
  --color-salary-above: #22C55E;
  --color-salary-below: #EF4444;
  --color-salary-neutral: #3B82F6;

  /* Surface Colors */
  --color-surface: #FFFFFF;
  --color-surface-alt: #F1F5F9;

  /* Text Colors */
  --color-text-primary: #1E293B;
  --color-text-secondary: #64748B;
  --color-text-on-dark: #FFFFFF;
  --color-text-link: #2563EB;

  /* Typography */
  --font-heading: 'Lexend', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Radii */
  --radius-card: 24px;
  --radius-input: 12px;
  --radius-button: 8px;
  --radius-pill: 9999px;

  /* V2 Shadows */
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-premium: 0 20px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.08);
  --shadow-elevated: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-focus: 0 0 0 3px rgba(59, 130, 246, 0.15);

  /* Layout */
  --max-width: 56rem; /* 896px = max-w-4xl */
  --nav-height: 4rem;
}

/* ── Self-hosted fonts (GDPR compliant) ── */
@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('/fonts/lexend-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('/fonts/lexend-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/source-sans-3-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/source-sans-3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Global ── */
::selection {
  background: #BFDBFE;
}

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(ellipse at top, #EFF6FF 0%, #F8FAFC 50%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

[id] {
  scroll-margin-top: 80px;
}

/* ── 1. Hero Section ── */
.hero-section {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #3B82F6 100%);
  position: relative;
  overflow: hidden;
  padding: 32px 0 96px;
}

.hero-section--small {
  padding: 24px 0 64px;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    radial-gradient(circle at 20% 50%, white 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, white 1px, transparent 1px),
    radial-gradient(circle at 50% 80%, white 1px, transparent 1px);
  background-size: 60px 60px, 80px 80px, 40px 40px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.hero-title {
  font-family: var(--font-heading);
  color: #FFFFFF;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 4px;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  font-weight: 400;
}

.hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-nav a {
  color: rgba(255, 255, 255, 0.9);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  transition: all 150ms ease;
  text-decoration: none;
}

.hero-nav a:hover,
.hero-nav a.active {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  text-decoration: none;
}

.hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.hero-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 150ms ease;
}

.hero-breadcrumb a:hover {
  color: #FFFFFF;
  text-decoration: none;
}

.hero-breadcrumb .separator {
  color: rgba(255, 255, 255, 0.4);
}

/* ── 2. Primary Card (Salary Card) ── */
.salary-card {
  background: #FFFFFF;
  border-radius: 20px;
  border-top: 4px solid #3B82F6;
  box-shadow: var(--shadow-premium);
  padding: 28px 24px;
  position: relative;
  margin-top: -48px;
  z-index: 2;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .salary-card {
    padding: 36px 32px;
    border-radius: 24px;
  }
}

/* ── 3. Content Cards ── */
.content-card {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .content-card {
    padding: 36px 32px;
  }
}

.content-card h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: #0F172A;
  margin-top: 28px;
  margin-bottom: 12px;
}

.content-card p {
  margin-bottom: 16px;
  color: #475569;
  line-height: 1.7;
}

.content-card ul,
.content-card ol {
  margin-bottom: 16px;
  padding-left: 24px;
  color: #475569;
  line-height: 1.7;
}

.content-card li {
  margin-bottom: 8px;
}

.content-card strong {
  color: #0F172A;
}

/* ── 4. Search Card (Homepage hero overlap) ── */
.search-card {
  background: #FFFFFF;
  border-radius: 20px;
  border-top: 4px solid #3B82F6;
  box-shadow: var(--shadow-premium);
  padding: 28px 24px;
  position: relative;
  margin-top: -48px;
  z-index: 2;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .search-card {
    padding: 36px 32px;
    border-radius: 24px;
  }
}

/* ── 5. V2 Inputs & Selects ── */
.v2-input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 42px;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  color: #0F172A;
  background: #FFFFFF;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.v2-input:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: var(--shadow-focus);
}

.v2-input::placeholder {
  color: #94A3B8;
}

.v2-select {
  width: 100%;
  height: 48px;
  padding: 0 36px 0 42px;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  color: #0F172A;
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.v2-select:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: var(--shadow-focus);
}

.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #94A3B8;
  pointer-events: none;
}

/* ── 6. TOC Pills ── */
.toc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

.toc-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 150ms ease;
}

.toc-pill:hover {
  border-color: #3B82F6;
  color: #1E3A8A;
  background: #EFF6FF;
  text-decoration: none;
}

/* ── 7. Salary Range Bar (V2) ── */
.range-bar {
  margin: 24px 0;
}

.range-bar-track {
  width: 100%;
  height: 12px;
  background: #E2E8F0;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.range-bar-fill {
  position: absolute;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #2563EB, #059669, #3B82F6);
  border-radius: 6px;
}

.range-bar-markers {
  position: relative;
  height: 40px;
}

.range-bar-marker {
  position: absolute;
  transform: translateX(-50%);
  text-align: center;
}

.range-bar-marker .marker-dot {
  width: 16px;
  height: 16px;
  background: #FFFFFF;
  border: 3px solid #1E3A8A;
  border-radius: 50%;
  margin: -14px auto 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.range-bar-marker .marker-dot--median {
  width: 20px;
  height: 20px;
  border-width: 3px;
  border-color: #059669;
  margin-top: -16px;
}

.range-bar-marker .marker-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #475569;
  white-space: nowrap;
}

.range-bar-marker .marker-sublabel {
  font-size: 11px;
  color: #94A3B8;
}

/* ── 8. Comparison Gauge ── */
.comparison-gauge {
  padding: 24px;
  border-radius: 16px;
  text-align: center;
}

.comparison-gauge--above {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
}

.comparison-gauge--below {
  background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
}

.comparison-gauge--neutral {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
}

.gauge-bar {
  position: relative;
  height: 12px;
  background: #E2E8F0;
  border-radius: 6px;
  margin: 16px auto;
  max-width: 320px;
}

.gauge-bar-fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 6px;
  transition: width 300ms ease;
}

.gauge-bar-fill--above { background: linear-gradient(90deg, #E2E8F0, #059669); }
.gauge-bar-fill--below { background: linear-gradient(90deg, #DC2626, #E2E8F0); }
.gauge-bar-fill--neutral { background: linear-gradient(90deg, #E2E8F0, #2563EB); }

.gauge-avg-marker {
  position: absolute;
  top: -6px;
  width: 3px;
  height: 24px;
  background: #0F172A;
  border-radius: 2px;
  transform: translateX(-50%);
}

.gauge-avg-label {
  font-size: 12px;
  color: #64748B;
  margin-top: 8px;
}

.gauge-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.gauge-badge--above { background: rgba(5,150,105,0.1); color: #047857; }
.gauge-badge--below { background: rgba(220,38,38,0.1); color: #991B1B; }
.gauge-badge--neutral { background: rgba(37,99,235,0.1); color: #1D4ED8; }

/* ── 9. V2 Table ── */
.v2-table-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.v2-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.v2-table thead tr {
  background: #1E3A8A;
}

.v2-table thead th {
  padding: 12px 16px;
  text-align: left;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
}

.v2-table thead th:last-child {
  text-align: right;
}

.v2-table tbody tr {
  border-bottom: 1px solid #F1F5F9;
  transition: background 150ms ease;
}

.v2-table tbody tr:nth-child(even) {
  background: #F8FAFC;
}

.v2-table tbody tr:hover {
  background: #EFF6FF;
}

.v2-table tbody td {
  padding: 12px 16px;
  color: #475569;
}

.v2-table tbody td:last-child {
  text-align: right;
  font-weight: 600;
  color: #0F172A;
  font-variant-numeric: tabular-nums;
}

.v2-table tbody tr.row--above td:first-child {
  border-left: 3px solid #059669;
}

.v2-table tbody tr.row--below td:first-child {
  border-left: 3px solid #EF4444;
}

/* ── 10. Letter Navigation Pills ── */
.letter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.letter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 150ms ease;
}

.letter-pill:hover {
  border-color: #3B82F6;
  color: #1E3A8A;
  background: #EFF6FF;
  text-decoration: none;
}

.letter-pill .letter-count {
  font-size: 11px;
  color: #94A3B8;
  margin-left: 4px;
}

/* ── 11. Popular Professions Grid ── */
.popular-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .popular-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.popular-card {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 16px;
  text-decoration: none;
  transition: all 200ms ease;
  display: block;
}

.popular-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
  text-decoration: none;
}

.popular-card .popular-name {
  font-family: var(--font-heading);
  font-weight: 500;
  color: #0F172A;
  font-size: 15px;
  margin-bottom: 4px;
}

.popular-card .popular-salary {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
}

.popular-card .popular-salary--above { color: #059669; }
.popular-card .popular-salary--below { color: #DC2626; }

.popular-card .popular-link {
  font-size: 13px;
  color: #2563EB;
  margin-top: 4px;
}

/* ── 12. Similar Professions Cards ── */
.similar-card {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 16px;
  text-decoration: none;
  display: block;
  transition: all 200ms ease;
}

.similar-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
  text-decoration: none;
}

.similar-card .similar-name {
  font-family: var(--font-heading);
  font-weight: 500;
  color: #0F172A;
}

.similar-card .similar-link {
  font-size: 13px;
  color: #2563EB;
  margin-top: 4px;
}

/* ── 13. V2 Footer ── */
.v2-footer {
  background: linear-gradient(135deg, #1E3A8A, #0F172A);
  margin-top: 48px;
  padding: 32px 16px;
}

.v2-footer .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.v2-footer .footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.v2-footer .footer-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.v2-footer .footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 500;
}

.v2-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.v2-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 200ms ease;
}

.v2-footer a:hover {
  color: #FFFFFF;
  text-decoration: none;
}

.v2-footer .footer-copy {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── 14. FAQ Accordion ── */
.faq-list {
  border-top: 1px solid #E2E8F0;
}

.faq-item {
  border-bottom: 1px solid #E2E8F0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  color: #0F172A;
  gap: 12px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #94A3B8;
  transition: transform 200ms ease;
}

details[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 0 16px 0;
  color: #475569;
  line-height: 1.7;
}

/* ── 15. Main Content Area ── */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 16px;
}

/* ── 16. Median label ── */
.median-label {
  font-size: 13px;
  font-weight: 500;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.median-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.1;
  color: #0F172A;
}

@media (min-width: 640px) {
  .median-number {
    font-size: 56px;
  }
}

.median-suffix {
  font-size: 16px;
  color: #475569;
  margin-top: 4px;
}

/* ── Accessibility ── */
:focus-visible {
  outline: 2px solid #3B82F6;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Print ── */
@media print {
  .hero-section, .v2-footer, .toc-pills, .hero-nav {
    display: none;
  }
  .salary-card, .content-card, .search-card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
  body {
    background: white;
  }
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .hero-title {
    font-size: 24px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
  .salary-card,
  .search-card {
    padding: 20px 16px;
  }
  .content-card {
    padding: 20px 16px;
  }
  .median-number {
    font-size: 40px;
  }
}

/* ── 17. Enhanced Popular Grid ── */
.popular-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .popular-grid-enhanced {
    grid-template-columns: repeat(4, 1fr);
  }
}

.popular-card-enhanced {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px;
  text-decoration: none;
  transition: all 200ms ease;
  display: block;
}

.popular-card-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
  border-color: #3B82F6;
  text-decoration: none;
}

.popular-card-enhanced .popular-name {
  font-family: var(--font-heading);
  font-weight: 500;
  color: #0F172A;
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.popular-salary-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.popular-median {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
}

.popular-period {
  font-size: 12px;
  color: #94A3B8;
}

.popular-range-bar {
  margin-bottom: 8px;
}

.popular-range-track {
  height: 4px;
  background: #E2E8F0;
  border-radius: 2px;
  overflow: hidden;
}

.popular-range-fill {
  height: 100%;
  background: linear-gradient(90deg, #3B82F6, #059669);
  border-radius: 2px;
}

.popular-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94A3B8;
  margin-top: 2px;
}

/* ── 18. Category Grid ── */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.category-card {
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 20px;
  transition: all 200ms ease;
  background: #FFFFFF;
}

.category-card:hover {
  border-color: var(--cat-color, #3B82F6);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.category-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.category-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-meta {
  flex: 1;
  min-width: 0;
}

.category-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: #0F172A;
  margin-bottom: 2px;
}

.category-stats {
  font-size: 13px;
  color: #64748B;
}

.category-top-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #F1F5F9;
  padding-top: 12px;
}

.category-top-list li {
  margin-bottom: 0;
}

.category-top-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  text-decoration: none;
  transition: color 150ms ease;
}

.category-top-list a:hover {
  text-decoration: none;
}

.category-top-list a:hover .category-beruf-name {
  color: #2563EB;
}

.category-beruf-name {
  font-size: 14px;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  margin-right: 8px;
}

.category-beruf-salary {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: #059669;
  white-space: nowrap;
}

/* ── 19. A-Z Profession List (Enhanced) ── */
.az-profession-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 640px) {
  .az-profession-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 16px;
  }
}

@media (min-width: 1024px) {
  .az-profession-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 0 24px;
  }
}

.az-profession-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 150ms ease;
  gap: 8px;
}

.az-profession-item:hover {
  text-decoration: none;
}

.az-profession-item:hover .az-profession-name {
  color: #2563EB;
}

.az-profession-name {
  font-size: 14px;
  color: #475569;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.az-salary-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.az-salary-badge--above {
  background: #F0FDF4;
  color: #15803D;
}

.az-salary-badge--below {
  background: #FFF7ED;
  color: #C2410C;
}

/* ── 20. Show More Button ── */
.show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: #EFF6FF;
  color: #1E3A8A;
  border: 1px solid #BFDBFE;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms ease;
}

.show-more-btn:hover {
  background: #DBEAFE;
  border-color: #93C5FD;
  transform: translateY(-1px);
}

/* ── AdSense ── */
.adsense-slot {
  text-align: center;
  color: #CBD5E1;
  font-size: 12px;
  padding: 16px 0;
}

/* ═══════════════════════════════════════════════════════════
   Homepage Phase 2 Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Homepage Editorial ── */
.hp-editorial p {
  color: #475569;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.hp-editorial a {
  color: var(--color-text-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hp-editorial a:hover {
  color: var(--color-primary);
}

/* ── Homepage CTA Link ── */
.hp-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-text-link);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-heading);
  text-decoration: none;
  padding: 10px 24px;
  border-radius: var(--radius-button);
  border: 1.5px solid var(--color-text-link);
  transition: all 150ms ease;
}

.hp-cta-link:hover {
  background: var(--color-text-link);
  color: #FFFFFF;
}

/* ── Homepage FAQ ── */
.hp-faq-item {
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 150ms ease;
}

.hp-faq-item[open] {
  border-color: #3B82F6;
}

.hp-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: #0F172A;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 150ms ease;
}

.hp-faq-question::-webkit-details-marker {
  display: none;
}

.hp-faq-question::after {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 200ms ease;
}

.hp-faq-item[open] .hp-faq-question::after {
  transform: rotate(180deg);
}

.hp-faq-question:hover {
  background: #F8FAFC;
}

.hp-faq-answer {
  padding: 0 20px 16px;
}

.hp-faq-answer p {
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* ── Homepage Ad Slots ── */
.hp-ad-slot {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .hp-faq-question {
    font-size: 15px;
    padding: 14px 16px;
  }
  .hp-faq-answer {
    padding: 0 16px 14px;
  }
  .hp-faq-answer p {
    font-size: 14px;
  }
  .hp-editorial p {
    font-size: 15px;
  }
}
