/* ============================================================
   Mentala Design System — sage green palette
   Overrides base.css variables and provides all new components.
   ============================================================ */

/* ---- Tokens ------------------------------------------------ */
/* Design tokens are defined in tokens.css (loaded before this file). */

/* ---- Base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { flex: 1; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 12px;
}
h1 { font-size: 40px; }
h2 { font-size: 30px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

p { margin: 0 0 12px; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

/* ---- Skip link -------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.skip-link:focus { left: 0; }

/* ---- Site notice ------------------------------------------ */
.site-notice {
  background: var(--accent);
  color: var(--text);
  text-align: center;
  padding: 8px 24px;
  font-size: 13px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  border-bottom: 0.5px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  /* Horizontales Padding aus base.css (40px) neutralisieren —
     topnav-inner trägt das gesamte Padding selbst.             */
  padding-left: 0;
  padding-right: 0;
}
.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;          /* Einheitlicher Rand, kein doppeltes Padding */
  height: 68px;
  width: 100%;              /* Volle Viewport-Breite, kein centering-Offset */
}

/* Logo */
.brand, nav .brand {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--text);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  line-height: 1;
}
.brand-dot { color: var(--primary); }

/* Nav links */
.nav-links, .nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.nav-links a, .nav-right a {
  color: var(--text);
  font-weight: 400;
  padding: 4px 0;
  text-decoration: none;
}
.nav-links a.active, .nav-right a.active {
  color: var(--primary);
  border-bottom: 1.5px solid var(--primary);
}

/* Nav CTA pill */
.btn--nav, nav .btn--nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff !important;
  border: none;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.btn--nav:hover { background: var(--primary-hover); color: #fff !important; }

/* Logout button */
.logout-btn {
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0;
}
.logout-btn:hover { color: var(--primary); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 0.5px solid var(--border);
  background: var(--bg);
  margin-top: auto;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a, footer a { color: var(--text-muted); }
.footer-links a:hover, footer a:hover { color: var(--primary); }
.footer-sep { margin: 0 4px; opacity: 0.4; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
  line-height: 1.4;
}
.btn:hover { background: var(--primary-hover); color: #fff; text-decoration: none; }
.btn:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

.btn-secondary, .btn--secondary {
  background: transparent;
  color: var(--primary);
  border: 0.5px solid var(--border-strong);
}
.btn-secondary:hover, .btn--secondary:hover {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--primary);
  text-decoration: none;
}

.btn--lg { padding: 13px 28px; font-size: 15px; }
.btn--sm { padding: 7px 14px; font-size: 13px; }
.btn--pill { border-radius: var(--radius-pill); }
.btn--block { display: flex; width: 100%; justify-content: center; }
.btn--form-submit { width: 100%; justify-content: center; padding: 13px; font-size: 15px; }
.btn--shadow { box-shadow: var(--shadow-btn); }
.btn--danger { background: var(--danger); }
.btn--danger:hover { background: #6E2E2E; color: #fff; }

/* Ghost button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 0.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ============================================================
   MESSAGES / ALERTS
   ============================================================ */
.messages {
  list-style: none;
  margin: 0;
  padding: 0;
}
.messages li {
  padding: 12px 24px;
  font-size: 14px;
  border-bottom: 0.5px solid var(--border);
}
.messages li.error, .messages li.warning {
  background: var(--danger-bg);
  color: var(--danger);
}
.messages li.success { background: var(--success-bg); color: var(--success); }
.messages li.info { background: var(--surface); color: var(--text-muted); }

/* ============================================================
   LAYOUT CONTAINERS
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
.center-narrow {
  max-width: 560px;
  margin: 48px auto;
  padding: 0 24px;
}
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 48px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 32px;
  align-items: start;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.card + .card { margin-top: 16px; }
.card.center-narrow { text-align: left; }

/* Icon wrapper (feature cards) */
.icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.icon-wrap svg { width: 22px; height: 22px; stroke-width: 2; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.field { display: flex; flex-direction: column; gap: 6px; }

label, .label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
}
.hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
select,
textarea,
.input {
  width: 100%;
  background: var(--input-bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  line-height: 1.5;
}
input::placeholder, textarea::placeholder { color: var(--text-placeholder); }
input:focus, select:focus, textarea:focus, .input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
textarea { resize: vertical; min-height: 100px; }

/* Checkbox row */
.checkrow, .checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}
.checkbox-row__box, .checkbox-row input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Error list */
.errorlist {
  background: var(--danger-bg);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 4px;
}
ul.errorlist { list-style: none; }
ul.errorlist li::before { content: "• "; }

/* Inline row */
.inline-row { display: inline-flex; align-items: center; }

/* Info box */
.infobox {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  border: 0.5px solid var(--border);
}
.infobox svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
  stroke-width: 2;
}

/* ============================================================
   LANDING PAGE — HERO
   ============================================================ */
.hero {
  padding: 80px 48px 64px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero__inner { max-width: 680px; }

.badge {
  display: inline-block;
  background: var(--accent);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}

.hero__title {
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero__title em {
  font-style: italic;
  color: var(--primary);
}

.hero__intro, .lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 32px;
}

.hero__actions, .actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 500;
  font-size: 14.5px;
  text-decoration: none;
}

/* ============================================================
   LANDING PAGE — FEATURE SECTIONS
   ============================================================ */
.panel {
  padding: 64px 0;
}
.panel.alt {
  background: var(--surface);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-lead {
  font-size: 15.5px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0;
  line-height: 1.65;
}

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Feature card */
.feature-card, .feat-card {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feat-card__title {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--text);
  margin: 0;
}
.feat-card__body {
  font-size: 14px;
  color: var(--text);
  opacity: 0.85;
  margin: 0;
  line-height: 1.65;
}

/* Step columns */
.step-col { display: flex; flex-direction: column; gap: 10px; }
.step-caption {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent-dark);
  letter-spacing: 0.05em;
}

/* CTA section */
.final-cta {
  text-align: center;
  padding: 80px 48px;
  background: var(--surface);
  border-top: 0.5px solid var(--border);
}
.final-cta h2 { font-size: 32px; margin-bottom: 14px; }
.final-cta p {
  font-size: 15.5px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

/* Legacy feature grid (existing home.html) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 0 48px;
}
.feature-card__icon { font-size: 28px; margin-bottom: 4px; }

/* Legacy CTA card */
.cta-card {
  max-width: 1200px;
  margin: 0 auto 64px;
  padding: 0 48px;
}
.cta-card__body {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.cta-card__body h2 { margin-bottom: 10px; }
.cta-card__body p { color: var(--text-muted); margin-bottom: 20px; max-width: 640px; }

/* ============================================================
   REGISTRATION PAGE
   ============================================================ */
.register-layout {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 48px 80px;
}
.register-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 32px;
  align-items: start;
}

/* Stepper */
.stepper-wrap {
  display: flex;
  justify-content: center;
  padding: 48px 0 40px;
}
.stepper {
  width: 480px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
}
.stepper::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 10%;
  right: 10%;
  height: 0.5px;
  background: var(--border);
  z-index: 0;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.step .circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0.5px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
}
.step.active .circle { background: var(--primary); border-color: var(--primary); color: #fff; }
.step .label { font-size: 11px; color: var(--text-muted); }
.step.active .label { color: var(--text); font-weight: 500; }

/* Sidebar in register */
.reg-sidebar { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 88px; }
.reg-sidebar .card { padding: 18px; }
.reg-sidebar .card-title {
  font-family: var(--font-serif);
  font-size: 15px;
  margin: 0 0 12px;
  color: var(--text);
}
.step-list { display: flex; flex-direction: column; gap: 12px; }
.step-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.5;
}
.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text);
  font-size: 10.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.shield-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.5;
}
.shield-card svg { width: 14px; height: 14px; color: var(--primary); flex-shrink: 0; margin-top: 3px; stroke-width: 2; }

/* Qualification radio cards */
.qual-group { display: flex; flex-direction: column; gap: 8px; }
.qual-card {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: var(--input-bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.qual-card:hover { border-color: var(--text-muted); }
.qual-card.selected { background: #E2E6D9; border: 1.5px solid var(--primary); }
.qual-radio {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--text-muted);
  background: var(--bg);
  margin-top: 2px;
  position: relative;
}
.qual-card.selected .qual-radio { border-color: var(--primary); background: var(--primary); }
.qual-card.selected .qual-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.qual-title { font-size: 13.5px; font-weight: 500; color: var(--text); line-height: 1.4; }
.qual-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; margin-top: 2px; }

/* ============================================================
   PROVIDER SEARCH / B2C LISTING
   ============================================================ */
.search-page { display: flex; flex-direction: column; min-height: calc(100vh - 68px); }

/* Search band */
.search-band {
  padding: 36px 48px 24px;
  border-bottom: 0.5px solid var(--border);
}
.search-band .band-inner { max-width: 1100px; margin: 0 auto; }
.search-title {
  font-size: 34px;
  margin-bottom: 4px;
}
.search-title em { font-style: italic; color: var(--primary); }
.search-sub {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 10px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  align-items: stretch;
}
.filter-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 14px;
  border-right: 0.5px solid var(--border);
  min-width: 0;
}
.filter-field:last-of-type { border-right: none; }
.filter-label {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.filter-value {
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-value.placeholder { color: var(--text-placeholder); }
.filter-field input {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 14px;
  color: var(--text);
  width: 100%;
}
.filter-field input:focus { box-shadow: none; }
.filter-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 22px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.filter-submit:hover { background: var(--primary-hover); }
.filter-submit svg { width: 16px; height: 16px; stroke-width: 2; }

/* Results area */
.results-meta {
  padding: 18px 48px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.results-count { font-size: 14px; color: var(--text-muted); }
.results-count strong { color: var(--text); font-weight: 500; }

.results-area {
  flex: 1;
  padding: 14px 48px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Provider cards */
.card-grid { display: flex; flex-direction: column; gap: 10px; }
.provider-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: border-color .15s;
}
.provider-card:hover { border-color: var(--primary); }

.provider-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 22px;
  flex-shrink: 0;
}
.provider-card .avatar img { width: 100%; height: 100%; object-fit: cover; }

.provider-card .info { min-width: 0; }
.provider-card .name {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.provider-card .role {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.pills { display: flex; flex-wrap: wrap; gap: 5px; }
.pill {
  padding: 3px 10px;
  background: var(--surface-alt);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}
.pill.accent { background: var(--accent-soft); }

.provider-card .price-col {
  text-align: right;
  border-left: 0.5px solid var(--border);
  padding-left: 16px;
  min-width: 90px;
  flex-shrink: 0;
}
.price-from {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.price-num {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
}
.price-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Sidebar (trust card + map placeholder) */
.search-sidebar { display: flex; flex-direction: column; gap: 14px; }
.trust-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}
.trust-card__title {
  font-family: var(--font-serif);
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.trust-card__title svg { color: var(--primary); width: 16px; height: 16px; }
.map-placeholder {
  aspect-ratio: 1 / 0.9;
  background: var(--surface-alt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  border: 0.5px solid var(--border);
}

/* ============================================================
   ENTITY CARDS (provider list, search results)
   ============================================================ */
.entity-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.entity-card__header { display: flex; align-items: center; gap: 14px; }
.entity-card__name { font-size: 16px; font-weight: 500; color: var(--text); display: block; }
.entity-card__meta { font-size: 13px; color: var(--text-muted); display: block; }
.entity-card__footer { margin-top: auto; }

/* ============================================================
   AVATAR
   ============================================================ */
.avatar { display: inline-flex; align-items: center; justify-content: center; background: var(--icon-bg); }
.avatar--rounded { border-radius: 50%; }
.avatar--sm { width: 36px; height: 36px; font-size: 14px; }
.avatar--md { width: 52px; height: 52px; font-size: 20px; }
.avatar--lg { width: 80px; height: 80px; font-size: 30px; }

/* ============================================================
   SKILL TAGS / BADGES
   ============================================================ */
.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--surface-alt);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--text);
  text-decoration: none;
}
.skill-tag:hover { border-color: var(--primary); color: var(--primary); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ============================================================
   STATUS BADGES
   ============================================================ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
}
.status-badge--scheduled { background: var(--status-green-bg); color: var(--status-green-text); }
.status-badge--done { background: var(--surface-alt); color: var(--text-muted); }
.status-badge--cancelled { background: var(--danger-bg); color: var(--danger); }
.status-badge--draft { background: var(--surface-alt); color: var(--text-muted); }
.status-badge--issued { background: var(--status-green-bg); color: var(--status-green-text); }
.status-badge--paid { background: var(--status-green-bg); color: var(--status-green-text); }
.status-badge--void { background: var(--danger-bg); color: var(--danger); }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs__sep { opacity: 0.5; }
.breadcrumbs__current { color: var(--text); font-weight: 500; }

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.lead-muted { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.muted { color: var(--text-muted); font-size: 13.5px; }
.mt-xs { margin-top: 8px; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 24px; }
.auth-footer-link { margin-top: 20px; font-size: 13px; color: var(--text-muted); }
.auth-footer-link a { color: var(--primary); }

/* ============================================================
   TABLES
   ============================================================ */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 0.5px solid var(--border); font-size: 14px; }
th { font-weight: 500; color: var(--text-muted); font-size: 12.5px; letter-spacing: 0.03em; text-transform: uppercase; }
tr:hover td { background: var(--surface-alt); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  nav .topnav-inner { padding: 0 24px; }
  .hero { padding: 48px 24px; }
  .container { padding: 0 24px; }
  .register-grid, .results-area { grid-template-columns: 1fr; }
  .reg-sidebar { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .search-sidebar { display: none; }
  .filter-bar { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  h1 { font-size: 28px; }
  .hero__title { font-size: 30px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .provider-card { grid-template-columns: 52px 1fr; }
  .provider-card .price-col { display: none; }
}

/* ============================================================
   ONBOARDING — PHASE TRACK
   ============================================================ */
.onboarding-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px 60px;
}
.onboarding-wrap--narrow { max-width: 820px; }

.phase-outer {
  padding: 28px 0 0;
  margin-bottom: 36px;
}

.phase-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.phase-segment {
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.3s ease;
}
.phase-segment.active    { background: var(--primary); }
.phase-segment.completed { background: var(--accent-dark); opacity: 0.6; }

.phase-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.phase-current { font-weight: 500; color: var(--text); }

/* ============================================================
   ONBOARDING — ROLE SELECTION CARDS
   ============================================================ */
.page-header-center {
  text-align: center;
  margin-bottom: 36px;
}
.page-header-center h1 { font-size: 32px; }
.page-header-center .lead {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.role-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 18px 18px;
  cursor: pointer;
  transition: border-color 0.18s, transform 0.12s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  text-align: left;
  font-family: var(--font-sans);
  color: inherit;
  min-height: 196px;
  width: 100%;
}
.role-card:hover { border-color: var(--accent-dark); transform: translateY(-1px); }
.role-card:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--focus-ring);
}
.role-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 1.5px var(--primary);
}
.role-card.variant-other {
  background: var(--surface-alt);
  border-style: dashed;
}

.role-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.role-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: background 0.18s, color 0.18s;
}
.role-card.selected .role-icon { background: var(--primary); color: #fff; }
.role-card.variant-other .role-icon { background: var(--bg); color: var(--text-muted); }
.role-card.variant-other.selected .role-icon { background: var(--primary); color: #fff; }

.radio-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: var(--bg);
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.18s, background 0.18s;
}
.role-card:hover .radio-indicator { border-color: var(--accent-dark); }
.role-card.selected .radio-indicator {
  border-color: var(--primary);
  background: var(--primary);
}
.radio-indicator::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 0.18s;
}
.role-card.selected .radio-indicator::after { opacity: 1; }

.role-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.3;
}
.role-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-style: italic;
}
.role-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
  flex: 1;
}
.role-requirement {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-muted);
  background: var(--surface-alt);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  align-self: flex-start;
  line-height: 1.3;
}
.role-card.variant-other .role-requirement { background: var(--bg); }
.role-requirement svg { color: var(--accent-dark); flex-shrink: 0; }

.later-note {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}
.later-note-icon { color: var(--accent-dark); flex-shrink: 0; margin-top: 2px; }
.later-note strong { color: var(--text); font-weight: 500; }

/* ============================================================
   ONBOARDING — NAVIGATION ROW
   ============================================================ */
.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.nav-row .btn { height: 48px; font-size: 14.5px; }
.nav-row .btn-secondary { height: 48px; font-size: 14.5px; }

/* ============================================================
   ONBOARDING — REVIEW PAGE
   ============================================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.stat-icon.complete { background: var(--primary); color: #fff; }
.stat-text { flex: 1; min-width: 0; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }
.stat-value { font-size: 15px; font-weight: 500; color: var(--text); }
.stat-value.success { color: var(--primary); }

.review-section { margin-bottom: 40px; }
.review-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.review-section-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0;
}

.review-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 12px;
  transition: border-color 0.15s;
}
.review-card:hover { border-color: var(--accent-dark); }
.review-card.optional {
  background: var(--surface-alt);
  border-style: dashed;
}

.review-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.review-card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.review-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.review-card.optional .review-card-icon { background: var(--bg); color: var(--text-muted); }

.review-card-title-group { flex: 1; min-width: 0; }
.review-card-title { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 2px; }

.review-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.01em;
}
.review-card-badge svg { width: 12px; height: 12px; }
.review-card-badge.optional { color: var(--text-muted); }

.review-card-edit {
  background: transparent;
  border: none;
  color: var(--primary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s;
  flex-shrink: 0;
  text-decoration: none;
}
.review-card-edit:hover { background: var(--icon-bg); color: var(--primary); }

.review-card-content { font-size: 14px; color: var(--text); line-height: 1.65; }
.review-card-content dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 6px 16px;
  margin: 0;
}
.review-card-content dt { font-size: 13px; color: var(--text-muted); }
.review-card-content dd { font-size: 14px; color: var(--text); margin: 0; }

.optional-empty {
  font-size: 13.5px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.55;
}

/* Submit info box */
.submit-info-box {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.submit-info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--icon-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.submit-info-content { flex: 1; min-width: 0; }
.submit-info-title { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.submit-info-text { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
.submit-info-text strong { color: var(--text); font-weight: 500; }

/* ============================================================
   ONBOARDING — CONFIRMATION MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}
.modal-overlay.visible { display: flex; }

.modal-dialog {
  background: var(--bg);
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  padding: 32px 32px 28px;
  border: 0.5px solid var(--border);
}
.modal-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--icon-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.modal-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}
.modal-text { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.modal-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 14px 16px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
}
.modal-list li {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}
.modal-list li + li { margin-top: 6px; }
.modal-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent-dark);
  border-radius: 50%;
  opacity: 0.7;
}
.modal-list li strong { color: var(--text); font-weight: 500; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn, .modal-actions .btn-secondary { flex: 1; justify-content: center; height: 46px; }

/* Onboarding responsive */
@media (max-width: 900px) {
  .onboarding-wrap { padding: 0 24px 48px; }
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: 1fr; }
  .review-card-content dl { grid-template-columns: 1fr; gap: 2px 0; }
}
@media (max-width: 600px) {
  .roles-grid { grid-template-columns: 1fr; }
  .role-card { min-height: auto; }
  .nav-row { flex-direction: column-reverse; }
  .nav-row .btn, .nav-row .btn-secondary { width: 100%; justify-content: center; }
  .modal-dialog { padding: 24px 20px 20px; }
}

/* ============================================================
   NAV DROPDOWNS
   ============================================================ */
.nav-dropdown { position: relative; }

.nav-dropdown__trigger {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  line-height: 1;
  transition: color 0.15s;
}
.nav-dropdown__trigger:hover { color: var(--primary); }
.nav-chev {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  stroke-width: 2;
}
.nav-dropdown.open .nav-dropdown__trigger { color: var(--primary); }
.nav-dropdown.open .nav-chev { transform: rotate(180deg); }

.nav-dropdown__menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  min-width: 200px;
  padding: 6px;
  z-index: 500;
}
.nav-dropdown__menu--right { left: auto; right: 0; }
.nav-dropdown.open .nav-dropdown__menu { display: flex; }

.nav-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.12s;
  line-height: 1.4;
  white-space: nowrap;
}
.nav-dropdown__item:hover {
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.nav-dropdown__item svg {
  width: 15px;
  height: 15px;
  color: var(--primary);
  flex-shrink: 0;
  stroke-width: 2;
}
.nav-dropdown__item--danger { color: var(--danger); }
.nav-dropdown__item--danger svg { color: var(--danger); }
.nav-dropdown__item--danger:hover { background: var(--danger-bg); color: var(--danger); }

.nav-dropdown__label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px 4px;
  display: block;
}
.nav-dropdown__sep {
  height: 0.5px;
  background: var(--border);
  margin: 4px 8px;
}
/* Logout-Form im Dropdown unsichtbar machen */
.nav-dropdown form { display: contents; }

.nav-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

/* ============================================================
   FEATURE ROWS (Startseite — horizontal statt Karten-Raster)
   ============================================================ */
.features-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px 64px;
}
.feature-row {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 32px 0;
  border-bottom: 0.5px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-row__icon svg { width: 22px; height: 22px; stroke-width: 2; }
.feature-row__body { flex: 1; }
.feature-row__title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.2;
}
.feature-row__desc {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
  line-height: 1.65;
  max-width: 560px;
}
@media (max-width: 600px) {
  .features-list { padding: 0 20px 48px; }
  .feature-row { gap: 18px; padding: 24px 0; }
  .feature-row__icon { width: 40px; height: 40px; }
  .feature-row__title { font-size: 19px; }
}

/* ============================================================
   WORKSPACE CARDS (Profil-Seite — klickbare Kacheln)
   ============================================================ */
.workspace-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.workspace-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  text-decoration: none;
}
.workspace-card strong { font-size: 15px; font-weight: 500; display: block; }
.workspace-card span { font-size: 13px; color: var(--text-muted); }

/* ============================================================
   PHASE 2 — UNIFIED COMPONENT SYSTEM
   All additions are additive; no existing rules were removed.
   ============================================================ */

/* ============================================================
   BUTTONS — complete, unified state system
   ============================================================ */

/* .btn-primary is a semantic alias for the default .btn (primary action) */
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
}
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-primary:active { background: var(--primary-active); transform: scale(0.995); }

/* Disabled state — applies to all btn variants */
.btn:disabled,
.btn[disabled],
.btn-primary:disabled,
.btn-primary[disabled],
.btn-secondary:disabled,
.btn-secondary[disabled],
.btn--secondary:disabled,
.btn--secondary[disabled],
button[disabled].btn {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
}

/* Active / pressed micro-feedback */
.btn:active { transform: scale(0.995); }

/* Focus states for secondary and ghost variants */
.btn-secondary:focus-visible,
.btn--secondary:focus-visible,
.btn-ghost:focus-visible,
.btn--nav:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Icon-only square button */
.btn--icon {
  padding: 9px;
  min-width: 38px;
  min-height: 38px;
  justify-content: center;
  gap: 0;
}
.btn--icon.btn--sm { padding: 6px; min-width: 30px; min-height: 30px; }

/* Text link as button (no background, no border) */
.btn--link {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary);
  font-weight: 500;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.btn--link:hover {
  background: none;
  color: var(--primary-hover);
}

/* Loading / busy state */
.btn[aria-busy="true"] {
  pointer-events: none;
  opacity: 0.65;
  cursor: wait;
}
.btn[aria-busy="true"]::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
  margin-left: 6px;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* Nav CTA — .nav-cta is an alias for .btn--nav (backward compat) */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.nav-cta:hover { background: var(--primary-hover); color: #fff; }

/* Logout button — unambiguous text-link style, matches nav aesthetic */
.logout-btn,
button.logout-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: none;
  transition: color .15s;
}
.logout-btn:hover,
button.logout-btn:hover { color: var(--danger); }

/* ============================================================
   CARDS — utility modifiers
   ============================================================ */

/* Zero-padding card with clipped content (table/data cards) */
.card--flush {
  padding: 0;
  overflow: hidden;
}

/* Compact variant for sidebars / tight contexts */
.card--compact {
  padding: 16px;
}

/* Section separator inside a card (border-top + padding-top) */
.card__divider {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 0.5px solid var(--border);
}

/* Empty state card (centered message, e.g. "no items yet") */
.card--empty {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-muted);
}
.card--empty p { margin: 0; font-size: 15px; }

/* Centered text content */
.card--center { text-align: center; }

/* Card spacing: consecutive cards separated by margin */
.card + .card { margin-top: 20px; }
.card--section { margin-bottom: 20px; }

/* Icon block used inside cards (workspace icon, setup section icon, etc.)
   Replaces: style="width:40px;height:40px;border-radius:10px;background:var(--primary);..." */
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-icon svg { width: 20px; height: 20px; stroke-width: 2; }
.card-icon--subtle {
  background: var(--icon-bg);
  color: var(--primary);
}
.card-icon--lg {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
}

/* Card link — full-card clickable, token-based shadow */
.card-link {
  display: block;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.card-link:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
}
.card-link:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-color: var(--primary);
}
.card-link__desc { color: var(--text-muted); font-size: 13px; margin-top: 6px; }

/* ============================================================
   DETAIL LIST — structured data (dl grids in profile/invoice)
   Replaces many inline style="display:grid; grid-template-columns:..." on <dl>
   ============================================================ */
.detail-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0 24px;
  margin: 0;
}
.detail-list dt {
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--border);
}
.detail-list dd {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--border);
}
.detail-list dt:last-of-type,
.detail-list dd:last-of-type { border-bottom: none; }
@media (max-width: 480px) {
  .detail-list { grid-template-columns: 1fr; }
  .detail-list dt { border-bottom: none; padding-bottom: 2px; font-weight: 500; }
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

/* Row flex — replaces style="display:flex; gap:10px; align-items:center;" */
.row-flex {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.row-flex--between {
  justify-content: space-between;
}
.row-flex--end { justify-content: flex-end; }
.row-flex--gap-sm { gap: 6px; }
.row-flex--gap-lg { gap: 16px; }

/* Margin helpers (supplement the existing mt-* set) */
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 20px; }
.mb-lg { margin-bottom: 28px; }
.mb-xl { margin-bottom: 40px; }

/* ============================================================
   BADGES & STATUS — unified badge family
   ============================================================ */

/* Base badge — the token-styled pill (used in hero, section heads) */
.badge {
  display: inline-block;
  background: var(--accent);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.01em;
}

/* Semantic colour variants */
.badge--success { background: var(--success-bg); color: var(--success); }
.badge--danger  { background: var(--danger-bg);  color: var(--danger); }
.badge--muted   { background: var(--surface-alt); color: var(--text-muted); }
.badge--primary { background: var(--primary);     color: #fff; }

/* .chip is a semantic alias for .status-badge
   (kept for backward compat with base.css usage in skill_detail, etc.) */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
}
.chip--success { background: var(--success-bg); color: var(--success); }
.chip--danger  { background: var(--danger-bg);  color: var(--danger); }
.chip--muted   { background: var(--surface-alt); color: var(--text-muted); }

/* Skill tags — canonical version with border (overrides base.css version) */
.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--surface-alt);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.skill-tag:hover { border-color: var(--primary); color: var(--primary); }
.skill-tag:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}
.skill-tag--muted { color: var(--text-muted); }

/* Sort pills — clear active state and hover */
.sort-pill:hover { border-color: var(--border-strong); background: var(--surface-alt); }
.sort-pill:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ============================================================
   FORMS — consolidated, accessible
   ============================================================ */

/* Include all date/search/tel/time inputs in the design system */
input[type="date"],
input[type="time"],
input[type="tel"],
input[type="search"] {
  width: 100%;
  background: var(--input-bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  line-height: 1.5;
}
input[type="date"]:focus,
input[type="time"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

/* .helptext is the canonical form hint class used across all templates.
   It is an alias for .hint.  Both classes produce identical output. */
.helptext {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  display: block;
  margin-top: 4px;
}

/* Inline validation feedback */
.field-error {
  font-size: 12.5px;
  color: var(--danger);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Fieldset / grouped form section */
.form-section {
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px 14px;
  margin-bottom: 20px;
}
.form-section legend,
.form-section .form-section__legend {
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  padding: 0 6px;
}

/* Checkbox-label row — canonical name is .checkbox-row
   .checkrow is kept as alias for backward compat */
.checkrow,
.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  line-height: 1.5;
}
.checkrow input[type="checkbox"],
.checkbox-row input[type="checkbox"],
.checkbox-row__box {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   ACCESSIBILITY — focus, motion, high contrast
   ============================================================ */

/* Ensure all interactive elements have a visible focus ring */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Visually-hidden (screen-reader text) — available in both CSS files */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .btn[aria-busy="true"]::after { animation: none; }
}

/* ============================================================
   NAVIGATION — active states, focus, mobile hints
   ============================================================ */

/* Hover state for nav links (supplement existing rules) */
.nav-links a:hover,
.nav-right a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* Nav avatar hover states */
.nav-avatar:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Mobile-friendly minimum tap target for all nav links */
.nav-links a,
.nav-right a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Skip-link focus reveal */
.skip-link:focus {
  left: 0;
  outline: 3px solid var(--primary);
  outline-offset: -3px;
}

/* ============================================================
   HERO SPLIT — 2-spaltiger Hero (Startseite)
   Modifier .hero--split ergaenzt das bestehende .hero.
   Layout: Text links, botanisches Bild rechts.
   ============================================================ */

.hero--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: none;        /* Vollbreite (main-full entfernt max-width 900px) */
  margin: 0;
  padding: 0;             /* Padding wird pro Spalte gesetzt */
  min-height: 600px;
  overflow: hidden;
}

/* Linke Spalte: Text */
.hero__col-text {
  padding: 96px 48px 80px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Groessere Headline im Split-Hero */
.hero--split .hero__title {
  font-size: 50px;
  letter-spacing: -0.028em;
  margin-bottom: 24px;
}

/* Eyebrow-Label (Uppercase, kein Pill-Badge) */
.hero__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 24px;
}

/* Rechte Spalte: Bild */
.hero__col-image {
  position: relative;
  overflow: hidden;
}

/*
  Botanisches Hintergrundbild — stark gefiltert fuer ruhigen,
  monochromen Look. Filter-Werte entsprechen dem Design-Mockup.
  opacity: 0.16 ergibt die feine, zurueckhaltende Silhouette.
*/
.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  filter: grayscale(1) contrast(7) brightness(0.28) sepia(1) hue-rotate(65deg) saturate(2);
  opacity: 0.16;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.7) 6%, black 22%);
  mask-image:         linear-gradient(to right, transparent 0%, rgba(0,0,0,0.7) 6%, black 22%);
}

/* ============================================================
   TRUST BAR — Dezente Kennzahlen unter dem Hero
   Werte sind Platzhalter und sollen spaeter dynamisch
   aus der Datenbank stammen (Context-Processor / View).
   ============================================================ */

.trust-bar {
  background: var(--surface);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 28px 48px;
  max-width: none;
}

.trust-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;       /* Alle 4 Items bleiben in einer Zeile */
  gap: 0;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1100px;
}

.trust-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 20px 6px 0;
  margin-right: 20px;
  border-right: 0.5px solid var(--border);
  flex: 1;                 /* Gleiche Breite, keine Overflow-Gefahr */
  min-width: 0;
}

.trust-item:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.trust-num {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--primary);
  line-height: 1;
}

.trust-label {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ── Responsive: Tablet (max 900px) ────────────────────────
   Bild oben (order: -1), Text gestapelt darunter.
   ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero--split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero__col-image {
    height: 240px;
    order: -1;
  }
  .hero__bg-img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 10%, black 28%);
    mask-image:         linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 10%, black 28%);
  }
  .hero__col-text {
    padding: 48px 32px 40px;
  }
  .hero--split .hero__title {
    font-size: 38px;
  }
  .trust-bar {
    padding: 20px 32px;
  }
}

/* ── Responsive: Mobile (max 600px) ────────────────────────
   Bild ausgeblendet, Trust-Bar 2x2 Grid statt Zeile.
   ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero__col-image {
    display: none;
  }
  .hero__col-text {
    padding: 48px 20px 36px;
  }
  .trust-bar {
    padding: 16px 20px;
  }
  /* Auf Mobile: 2 Spalten, 2 Reihen — kontrolliertes Umbrechen */
  .trust-list {
    flex-wrap: wrap;
    gap: 12px 0;
  }
  .trust-item {
    flex: 0 0 50%;
    padding-right: 12px;
    margin-right: 0;
    border-right: none;
    border-bottom: none;
  }
  /* Trennlinie rechts für linke Spalte */
  .trust-item:nth-child(odd) {
    border-right: 0.5px solid var(--border);
  }
}

/* ============================================================
   HERO MICROCOPY — dezente Zeile unter den Hero-Buttons
   ============================================================ */
.hero__microcopy {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   TRUST ICON — für das Datenschutz-Item in der Trust-Bar
   ============================================================ */
.trust-icon {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  line-height: 1;
}
.trust-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
  vertical-align: middle;
}

/* ============================================================
   SECTION INTRO — Eyebrow + Heading + optionale Intro-Zeile
   Gemeinsamer Block für how-it-works und provider-preview.
   ============================================================ */
.section-intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}
.section-intro h2 {
  margin-bottom: 12px;
}
.section-intro__desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.eyebrow--light {
  color: var(--text-on-invert-muted);
}

/* ============================================================
   HOW IT WORKS — 3-Schritte-Reihe
   ============================================================ */
.how-it-works {
  background: var(--surface);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 80px 48px;
}
.how-it-works__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.how-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.how-step__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--primary);
  line-height: 1;
  margin-top: 2px;
}
.how-step__body { flex: 1; }
.how-step__title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.25;
  color: var(--text);
}
.how-step__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}
@media (max-width: 900px) {
  .how-it-works { padding: 56px 32px; }
  .how-steps { grid-template-columns: 1fr; gap: 28px; }
  .how-step { gap: 16px; }
}
@media (max-width: 600px) {
  .how-it-works { padding: 48px 20px; }
}

/* ============================================================
   SKILL CHIP — kleines Fachgebiet-Tag
   ============================================================ */
.skill-chip {
  display: inline-block;
  padding: 3px 10px;
  background: var(--primary-subtle);
  color: var(--primary-dark);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

/* ============================================================
   PROVIDER PREVIEW — Grid mit 3 Anbieter:innen-Cards
   ============================================================ */
.provider-preview {
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.provider-preview__inner {
  width: 100%;
}
.provider-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.provider-preview__cta {
  text-align: center;
  margin: 0;
}

/* Provider Card */
.provider-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.provider-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

/* Avatar */
.provider-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.provider-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.provider-card__avatar-fallback {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  user-select: none;
}

/* Card body */
.provider-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.provider-card__name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.25;
}
.provider-card__role {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 4px;
  line-height: 1.4;
}
.provider-card__location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.4;
}
.provider-card__location-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.7;
}
.provider-card__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

/* "Profil ansehen" Link — unten in der Card, mit Pfeil */
.provider-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease, gap 0.15s ease;
}
.provider-card__link:hover {
  color: var(--primary-hover);
  gap: 9px;
  text-decoration: none;
}
.provider-card__link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .provider-preview { padding: 64px 32px; }
  .provider-preview__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .provider-preview { padding: 48px 20px; }
  .provider-preview__grid { grid-template-columns: 1fr; }
  .provider-card { padding: 22px; }
}

/* ============================================================
   ANBIETER CTA — invertierter dunkler Sage-Block
   Verwendet die neuen --surface-invert / --text-on-invert Tokens.
   ============================================================ */
.anbieter-cta {
  background: var(--surface-invert);
  padding: 80px 48px;
}
.anbieter-cta__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.anbieter-cta__text {
  flex: 1;
  max-width: 560px;
}
.anbieter-cta__text h2 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--text-on-invert);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}
.anbieter-cta__text p {
  color: var(--text-on-invert-muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}
.anbieter-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

/* Invert-Button: heller Button auf dunklem Grund */
.btn--invert {
  background: var(--text-on-invert);
  color: var(--surface-invert);
  border: none;
}
.btn--invert:hover {
  background: #e0dfd8;
  color: var(--surface-invert);
  text-decoration: none;
}
.btn--invert:focus-visible {
  outline: 2px solid var(--text-on-invert);
  outline-offset: 3px;
}

/* Invert-Ghost-Button: transparenter Outline-Button auf dunklem Grund */
.btn--invert-ghost {
  background: transparent;
  color: var(--text-on-invert);
  border: 1.5px solid rgba(241,240,234,0.38);
}
.btn--invert-ghost:hover {
  background: rgba(241,240,234,0.10);
  border-color: rgba(241,240,234,0.6);
  color: var(--text-on-invert);
  text-decoration: none;
}
.btn--invert-ghost:focus-visible {
  outline: 2px solid var(--text-on-invert);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .anbieter-cta { padding: 64px 32px; }
  .anbieter-cta__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  .anbieter-cta__actions { flex-direction: row; flex-wrap: wrap; }
  .anbieter-cta__text h2 { font-size: 30px; }
}
@media (max-width: 600px) {
  .anbieter-cta { padding: 56px 20px; }
  .anbieter-cta__text h2 { font-size: 26px; }
  .anbieter-cta__actions { flex-direction: column; }
  .anbieter-cta__actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   BENEFIT SECTION — Nutzen-Block „Der erste Schritt muss nicht warten"
   Zentrierter Textblock mit Headline, Beschreibung und CTA.
   ============================================================ */
.benefit-section {
  padding: 96px 48px;
  text-align: center;
}
.benefit-section__inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.benefit-section__headline {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.benefit-section__text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}
@media (max-width: 900px) {
  .benefit-section { padding: 64px 32px; }
  .benefit-section__headline { font-size: 32px; }
}
@media (max-width: 600px) {
  .benefit-section { padding: 56px 20px; }
  .benefit-section__headline { font-size: 28px; }
  .benefit-section__text { font-size: 15px; }
}

/* ============================================================
   TESTIMONIALS — statische Erfahrungsberichte (Demo-Inhalte)
   Zwei Cards nebeneinander, auf Mobile gestapelt.
   ============================================================ */
.testimonials {
  background: var(--surface);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 80px 48px;
}
.testimonials__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: box-shadow 0.18s ease;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-sm);
}
.testimonial-card__quote {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
  flex: 1;
}
.testimonial-card__footer {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 16px;
  border-top: 0.5px solid var(--border);
}
.testimonial-card__author {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.testimonial-card__context {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
@media (max-width: 900px) {
  .testimonials { padding: 56px 32px; }
}
@media (max-width: 600px) {
  .testimonials { padding: 48px 20px; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .testimonial-card { padding: 24px; }
  .testimonial-card__quote { font-size: 16px; }
}

/* ================================================================
   SEARCH RESULTS CARDS
   Scoped with .provider-grid .provider-card (specificity 0,2,0)
   to override both base.css and the homepage .provider-card flex
   style without touching homepage preview cards.
   ================================================================ */

.provider-grid .provider-card {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto;
  column-gap: 24px;
  align-items: start;
  padding: 20px 24px;
  border-radius: 16px;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.provider-grid .provider-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 4px 20px rgba(44, 58, 41, 0.10);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--text);
}

/* Zone 1: Identität (Avatar + Name + Ort) */
.pc-zone-left {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
}
.pc-zone-left .pc-avatar {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.pc-identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
/* Allow name/role to wrap inside the constrained column */
.pc-zone-left .pc-name {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-size: 16px;
  line-height: 1.25;
}
.pc-zone-left .pc-role {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.pc-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.4;
}
.pc-location svg { color: var(--primary); flex-shrink: 0; }

/* Zone 2: Fachgebiete + Kurztext + Format */
.pc-zone-mid {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pc-zone-mid .pc-meta {
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
  align-self: auto;
}
.pc-zone-mid .pc-bio {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-zone-mid .pc-format {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Zone 3: Preis + CTA */
.pc-zone-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  flex-shrink: 0;
  min-width: 120px;
}
.pc-zone-right .pc-price {
  text-align: right;
  border-left: none;
  padding-left: 0;
}
.pc-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  border: 0.5px solid var(--primary);
  border-radius: 8px;
  padding: 7px 14px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.provider-grid .provider-card:hover .pc-cta {
  background: var(--primary);
  color: #fff;
}

/* Tablet: tighten column widths, keep all zones visible */
@media (max-width: 900px) {
  .provider-grid .provider-card {
    grid-template-columns: minmax(0, 180px) minmax(0, 1fr) auto;
    column-gap: 16px;
  }
  /* Override base.css that hides pc-format at this breakpoint */
  .provider-grid .pc-format { display: flex; }
}

/* Mobile: single-column stack, CTA full-width */
@media (max-width: 680px) {
  .provider-grid .provider-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
    transform: none !important;
  }
  /* Override base.css that hides pc-meta at this breakpoint */
  .provider-grid .pc-meta { display: flex; }
  .pc-zone-right {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    align-self: auto;
    gap: 10px;
    min-width: 0;
    width: 100%;
  }
  .pc-zone-right .pc-price { text-align: left; }
  .pc-cta {
    flex: 1;
    justify-content: center;
    min-width: 140px;
  }
}
