/* ==========================================================================
   TrustStar.eu – Stylesheet
   Mobile First · keine externen Abhängigkeiten · 1 Datei
   ========================================================================== */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Farben */
  --brand-900: #0b2545;
  --brand-800: #123a63;
  --brand-700: #14508c;
  --brand-600: #1b6fc4;
  --brand-500: #2f8ae0;
  --brand-100: #dcecff;
  --brand-50:  #f2f8ff;

  --accent-500: #f5a524;
  --accent-600: #d9860b;
  --accent-100: #fff1d6;

  /* KI-Akzent (Runde 33): Lila ist im gesamten Produkt AUSSCHLIESSLICH
     KI-Funktionen vorbehalten – das ist ihr Erkennungsmerkmal. Alles, was
     nicht KI ist, bleibt in Markenblau/Gold. */
  --ai-600: #7c3aed;
  --ai-700: #6d28d9;
  --ai-100: #ede9fe;
  --ai-50:  #faf7ff;
  --ai-border: #ddd6fe;

  --success-600: #0f9d6e;
  --success-50:  #eefaf4;
  --danger-600:  #d64545;

  --bg:        #f6f8fc;
  --surface:   #ffffff;
  --surface-2: #f1f5fb;
  --text:      #10203a;
  --text-2:    #4a5a72;
  --text-3:    #77869c;
  --border:    #e3e9f2;
  --border-strong: #ccd7e6;

  /* Typo */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  /* Maße */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --container: 1180px;
  --container-narrow: 820px;
  --header-h: 72px;

  /* Effekte */
  --shadow-sm: 0 1px 2px rgba(16, 32, 58, .06), 0 2px 8px rgba(16, 32, 58, .04);
  --shadow-md: 0 8px 24px -8px rgba(16, 32, 58, .14);
  --shadow-lg: 0 24px 60px -20px rgba(11, 37, 69, .28);
  --ring: 0 0 0 3px rgba(27, 111, 196, .28);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--brand-900);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p  { text-wrap: pretty; }

::selection { background: var(--brand-100); color: var(--brand-900); }

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Utility ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--white { background: var(--surface); border-block: 1px solid var(--border); }
.section--tint { background: linear-gradient(180deg, var(--brand-50), var(--bg)); }

.center { text-align: center; }
.mx-auto { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-600);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  padding: 6px 14px; border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.lead { font-size: clamp(1.02rem, 2vw, 1.18rem); color: var(--text-2); max-width: 62ch; }
.muted { color: var(--text-2); }
.small { font-size: .875rem; }
.xs { font-size: .78rem; }
.strong { font-weight: 700; color: var(--brand-900); }

.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.75rem; }

.grid { display: grid; gap: 24px; counter-reset: step; }
/* Runde 78 (Mobile-Audit): Grid-Kinder dürfen die Spur nicht über den
   Viewport aufweiten (min-width:auto → 0), sonst stehen Kacheln über. */
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; }
.section-head p { margin-top: 14px; color: var(--text-2); font-size: 1.05rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand-900); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; min-height: 46px;
  font-size: .96rem; font-weight: 600; letter-spacing: -.01em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  text-decoration: none !important; white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: linear-gradient(180deg, var(--brand-600), var(--brand-700));
  color: #fff; box-shadow: 0 8px 20px -8px rgba(20, 80, 140, .8);
}
.btn-primary:hover { background: linear-gradient(180deg, var(--brand-500), var(--brand-600)); box-shadow: 0 12px 26px -10px rgba(20, 80, 140, .9); transform: translateY(-1px); }

.btn-accent {
  background: linear-gradient(180deg, var(--accent-500), var(--accent-600));
  color: #3a2606; box-shadow: 0 8px 20px -8px rgba(217, 134, 11, .8);
}
.btn-accent:hover { filter: brightness(1.05); transform: translateY(-1px); }

.btn-ghost { background: var(--surface); color: var(--brand-800); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--brand-500); color: var(--brand-700); background: var(--brand-50); }

.btn-quiet { background: var(--surface-2); color: var(--text-2); }
.btn-quiet:hover { background: var(--border); color: var(--text); }

.btn-lg { padding: 16px 32px; min-height: 54px; font-size: 1.03rem; }
.btn-sm { padding: 9px 16px; min-height: 38px; font-size: .86rem; }
.btn-block { width: 100%; }

/* ---------- 5. Logo & Badges ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; }
.logo-mark { width: 34px; height: 34px; flex: none; border-radius: 50%; box-shadow: 0 3px 10px -3px rgba(20, 80, 140, .7); }
.logo-text { font-size: 1.32rem; font-weight: 800; letter-spacing: -.03em; color: var(--brand-900); line-height: 1; }
.logo-text span { color: var(--accent-600); }
.logo-text small { display: block; font-size: .58rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-top: 3px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 6px; line-height: 1.2;
}
.badge--verified { background: var(--brand-100); color: var(--brand-700); }
.badge--google   { background: #fde8e8; color: #c0392b; }
.badge--reply    { background: var(--success-50); color: var(--success-600); }
.badge--neutral  { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }

/* Sterne */
.stars { display: inline-flex; gap: 2px; line-height: 1; color: var(--accent-500); }
.stars svg { width: 1em; height: 1em; }
.stars--lg { font-size: 1.35rem; }
.stars--sm { font-size: .95rem; }
.stars .off { color: #d8dfea; }

/* ---------- 6. Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; }
.nav-link {
  display: block; padding: 10px 14px; border-radius: var(--radius-pill);
  font-size: .94rem; font-weight: 600; color: var(--text-2);
  text-decoration: none !important; transition: color .18s, background .18s;
}
.nav-link:hover { color: var(--brand-700); background: var(--brand-50); }
.nav-link[aria-current="page"] { color: var(--brand-700); background: var(--brand-100); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { display: none; }

.nav-toggle {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); display: grid; place-items: center;
}
.nav-toggle span { position: relative; display: block; width: 20px; height: 2px; background: var(--brand-900); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--brand-900); border-radius: 2px;
  transition: transform .25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* Mobile Drawer */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 12px 20px 24px;
}
.mobile-nav.is-open { display: block; animation: slideDown .28s var(--ease); }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 4px; border-bottom: 1px solid var(--border);
  font-weight: 600; color: var(--text); text-decoration: none !important; font-size: 1.02rem;
}
.mobile-nav a[aria-current="page"] { color: var(--brand-700); }
.mobile-nav .btn { margin-top: 18px; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(47, 138, 224, .18), transparent 65%),
    radial-gradient(760px 420px at 92% 4%, rgba(245, 165, 36, .16), transparent 60%),
    linear-gradient(180deg, #ffffff, var(--bg));
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(600px 320px at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(600px 320px at 50% 0%, #000, transparent 75%);
  opacity: .45;
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; margin-inline: auto; text-align: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--brand-600); }
.hero .lead { margin-inline: auto; margin-bottom: 32px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; margin-top: 30px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--text-2); font-weight: 500; }
.hero-badge svg { width: 18px; height: 18px; color: var(--success-600); flex: none; }

/* ---------- 8. Suche / Autocomplete ---------- */
.search { max-width: 760px; margin-inline: auto; position: relative; }
.search-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 2px solid var(--border-strong);
  border-radius: var(--radius-pill); padding: 8px 8px 8px 22px;
  box-shadow: var(--shadow-md);
  transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within { border-color: var(--brand-500); box-shadow: var(--shadow-md), var(--ring); }
.search-box > svg { width: 22px; height: 22px; color: var(--text-3); flex: none; }
.search-input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  padding: 12px 0; font-size: 1.05rem;
}
.search-input::placeholder { color: var(--text-3); }
.search-clear { display: none; width: 34px; height: 34px; border-radius: 50%; color: var(--text-3); place-items: center; }
.search-clear:hover { background: var(--surface-2); color: var(--text); }
.search-clear.is-visible { display: grid; }

.suggestions {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 60;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  max-height: min(60vh, 380px); overflow-y: auto; padding: 6px;
  display: none;
}
.suggestions.is-open { display: block; animation: fadeIn .16s var(--ease); }
.suggestion {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: var(--radius-sm); text-align: left;
  transition: background .15s;
}
.suggestion:hover, .suggestion.is-active { background: var(--brand-50); }
.suggestion[aria-selected="true"] { background: var(--brand-100); }
.suggestion-avatar {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .95rem;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
}
.suggestion-body { flex: 1; min-width: 0; }
.suggestion-name { font-weight: 600; color: var(--brand-900); font-size: .97rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-meta { font-size: .8rem; color: var(--text-3); }
.suggestion-go { color: var(--text-3); flex: none; }
.suggestion-empty { padding: 18px 14px; color: var(--text-3); font-size: .92rem; text-align: center; }
.suggestion-empty .suggestion-note,
.suggestion-empty .suggestion-biz,
.suggestion-empty .suggestion-tip { display: block; margin-top: 10px; }
.suggestion-empty .suggestion-note { color: var(--text-2); }
.suggestion-empty .suggestion-biz {
  border-top: 1px dashed var(--border); padding-top: 10px; color: var(--text-2);
}
.suggestion-empty .suggestion-biz a { color: var(--brand-600); font-weight: 600; }
.suggestion-empty .suggestion-tip { color: var(--text-3); }

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

/* ---------- 9. Trust-Leiste / Stats ---------- */
.statbar { background: var(--surface); border-block: 1px solid var(--border); }
.statbar-inner {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
  padding-block: 30px; text-align: center;
}
.stat-value { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; color: var(--brand-900); letter-spacing: -.03em; line-height: 1.1; }
.stat-value span { color: var(--accent-600); }
.stat-label { font-size: .8rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-top: 4px; }

/* ---------- 10. Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }

.feature-icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-700);
  margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-icon--accent { background: var(--accent-100); border-color: #ffe0a8; color: var(--accent-600); }
.feature-icon--green { background: var(--success-50); border-color: #cdeee0; color: var(--success-600); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: .96rem; }

/* Schritte */
.steps { counter-reset: step; display: grid; gap: 24px; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 28px 28px 28px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  counter-increment: step;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--brand-600), var(--brand-800));
  color: #fff; font-weight: 800; font-size: 1.05rem; margin-bottom: 16px;
  box-shadow: 0 6px 16px -6px rgba(20, 80, 140, .9);
}
.step-num::before { content: counter(step); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: .95rem; }

/* ---------- 11. Unternehmens-Kacheln ----------
   Layout-Fix 24.09.2026: Name/Meta und die Bewertungs-Spalte sind Spans.
   Ohne explizites display:block/:flex liefen Text und Sterne in EINER Zeile
   ineinander (Überlappungen). Kacheln stapeln jetzt sauber:
   [Avatar] [Name über Branche·Ort] [Note über Sterne über Anzahl].       */
.company-tile {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  text-decoration: none !important; color: inherit;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.company-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.company-tile .suggestion-avatar { width: 48px; height: 48px; border-radius: 14px; font-size: 1.05rem; flex: none; }
.company-tile-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.company-tile-name {
  display: block; font-weight: 700; color: var(--brand-900); font-size: 1rem;
  line-height: 1.3; overflow-wrap: anywhere;
}
.company-tile-meta {
  display: block; font-size: .82rem; color: var(--text-3); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Runde 78 (Mobile-Audit): am Handy lieber zweizeilig als „…" – Texte sollen
   vollständig lesbar bleiben (z. B. 404-Schnelllinks, Suchvorschläge). */
@media (max-width: 639px) {
  .company-tile-meta { white-space: normal; overflow: visible; text-overflow: clip; }
}
.company-tile-rating {
  text-align: right; flex: none;
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
}
.company-tile-rating b { display: block; font-size: 1.05rem; color: var(--brand-900); line-height: 1.2; }
.company-tile-rating .stars { flex-wrap: nowrap; }

/* ---------- 12. Bewertungs-Karten ---------- */
.review-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.review-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.review-head > span:not(.avatar):not(.badge) { min-width: 0; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .95rem;
}
.review-author { font-weight: 700; font-size: clamp(.98rem, .3vw + .92rem, 1.08rem); color: var(--brand-900); line-height: 1.3; overflow-wrap: break-word; }
.review-date { font-size: clamp(.8rem, .2vw + .76rem, .86rem); color: var(--text-3); }
.review-head .badge { margin-left: auto; }
.review-text {
  color: #33425a;
  font-size: clamp(.97rem, .35vw + .9rem, 1.08rem);
  line-height: 1.68;
  flex: 1;
  /* maximale Lesbarkeit ohne Überlauf: lange Wörter/URLs brechen um */
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
.review-reply {
  background: var(--success-50); border-left: 3px solid var(--success-600);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px; font-size: clamp(.9rem, .25vw + .85rem, .98rem); color: #0b4a35;
  line-height: 1.6;
  max-height: 210px; overflow-y: auto;
  overflow-wrap: break-word; word-break: break-word; hyphens: auto;
}
.review-reply b {
  display: block; font-size: .68rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--success-600); margin-bottom: 5px;
}
.review-reply time { color: #2f7a5f; }

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

/* ---------- 13. Profil-Kopf ---------- */
.profile-head {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm);
  display: grid; gap: 26px;
}
.profile-id { display: flex; gap: 18px; align-items: flex-start; }
.profile-avatar {
  width: 68px; height: 68px; border-radius: 20px; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.5rem;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-900));
  box-shadow: var(--shadow-sm);
}
.profile-title { min-width: 0; }
.profile-title h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin-bottom: 8px; overflow-wrap: break-word; }
.profile-rating-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.profile-rating-line b { font-size: 1.15rem; color: var(--brand-900); }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.profile-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.profile-stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.profile-stat b { display: block; font-size: 1.3rem; color: var(--brand-900); letter-spacing: -.02em; }
.profile-stat span { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); font-weight: 600; }

/* Verteilung */
.dist { display: grid; gap: 9px; }
.dist-row { display: grid; grid-template-columns: 46px 1fr 42px; align-items: center; gap: 12px; font-size: .84rem; color: var(--text-2); }
.dist-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.dist-fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-500), var(--accent-600)); width: 0; transition: width .8s var(--ease); }
.dist-row.is-low .dist-fill { background: linear-gradient(90deg, #f0a5a5, var(--danger-600)); }
.dist-count { text-align: right; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* Filter-Bar */
.review-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  margin-block: 32px 20px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px; min-height: 38px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: var(--surface);
  font-size: .86rem; font-weight: 600; color: var(--text-2);
  transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--brand-500); color: var(--brand-700); }
.chip[aria-pressed="true"] { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.select {
  padding: 9px 14px; min-height: 38px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: var(--surface);
  font-size: .86rem; font-weight: 600; color: var(--text-2); cursor: pointer;
}

/* ---------- 14. Preis-Tabellen ---------- */
.pricing { display: grid; gap: 24px; }
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; display: flex; flex-direction: column; gap: 18px; position: relative;
  box-shadow: var(--shadow-sm);
}
.price-card--featured {
  border-color: var(--brand-500);
  box-shadow: 0 20px 50px -22px rgba(20, 80, 140, .55);
}
.price-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent-500); color: #3a2606; font-size: .72rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: 5px 14px; border-radius: var(--radius-pill);
  white-space: nowrap;
}
.price-name { font-weight: 700; color: var(--brand-900); font-size: 1.1rem; }
.price-value { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; color: var(--brand-900); line-height: 1; }
.price-value small { font-size: .9rem; font-weight: 600; color: var(--text-3); letter-spacing: 0; }
.price-note { font-size: .86rem; color: var(--text-3); }
.price-list { list-style: none; padding: 0; display: grid; gap: 11px; }
/* Hinweis: kein display:flex hier – sonst werden Textknoten und <strong>-Elemente
   zu eigenen Flex-Items (Spalten-Optik). Icon stattdessen absolut positionieren,
   der Text läuft dann als normaler Fließtext mit hängendem Einzug. */
.price-list li { position: relative; padding-left: 28px; font-size: .93rem; color: var(--text-2); }
.price-list svg { position: absolute; left: 0; top: 3px; width: 18px; height: 18px; color: var(--success-600); }

/* --- Tarif (noch) nicht buchbar: „Bald verfügbar" -----------------------
   Gesteuert über site-config.js → plans.<tarif>.bookable (Admin:
   „Stammdaten → Tarife & Features"). Die Karte bleibt sichtbar und lesbar,
   wirkt aber bewusst zurückgenommen: graue Fläche, gestrichelte Kontur,
   entsättigte Inhalte, deaktivierter Button. Das Band und der
   „Interesse"-Link bleiben voll farbig, damit der Hinweis klar erkennbar
   ist (Kontrast/Barrierefreiheit).                                        */
.price-card--soon {
  background: linear-gradient(180deg, #fbfcfe 0%, var(--surface-2) 100%);
  border: 1px dashed var(--border-strong);
  box-shadow: none;
}
/* Nur die Tarif-Inhalte zurücknehmen – Hinweis-Band, Zusatztext und
   „Interesse"-Link bleiben voll farbig und damit gut lesbar (der Zusatztext
   erklärt ja gerade, warum nicht bestellt werden kann). */
.price-card--soon .price-name,
.price-card--soon .price-value,
.price-card--soon .price-billing-note,
.price-card--soon .price-note,
.price-card--soon .price-list,
.price-card--soon .price-quota { opacity: .72; filter: saturate(.5); }
.price-flag--soon {
  background: var(--border-strong); color: var(--text-2);
  letter-spacing: .1em;
}
/* Kontingent-Block (Monatskontingent + „Warum gibt es Kontingente?"): steht
   seit Runde 33 als LETZTER Punkt der Karte – nach der Feature-Liste, direkt
   vor dem Auswahl-Button. Schriftgrößen und Optik bleiben unverändert; nur
   die Position hat sich geändert. margin-top:auto schiebt Block + Button in
   allen Karten auf dieselbe Höhe (Karten sind gleich hoch, Inhalte nicht). */
.price-quota-block { margin-top: auto; display: grid; gap: .45rem; }
.price-quota {
  font-size: .74rem; color: var(--text-3); margin: 0;
  border-top: 1px dashed var(--border); padding-top: .55rem; letter-spacing: .01em;
}
/* Aufklappbare Kurz-Erklärung zu den Monatskontingenten (Preiskarten) */
.price-quota-info { margin: .45rem 0 0; font-size: .74rem; }
.price-quota-block .price-quota-info { margin: 0; }
.price-quota-info summary {
  cursor: pointer; color: var(--brand-700); font-weight: 600;
  display: inline-flex; align-items: center; gap: .3rem; list-style: none;
}
.price-quota-info summary::-webkit-details-marker { display: none; }
.price-quota-info summary::after { content: "ⓘ"; font-size: .82em; }
.price-quota-info summary:hover { color: var(--brand-900); text-decoration: underline; }
.price-quota-info p { margin: .3rem 0 0; color: var(--text-3); line-height: 1.55; }
/* --- KI in der Preis-Tabelle: lila Akzent, nur für KI-Inhalte ---
   (a) Feature-Zeilen mit KI-Bezug (Erkennungsmerkmal Lila)
   (b) Link „TrustStar Assistent" in der Feature-Zeile
   (c) Aufklapp-Block „Was leistet der TrustStar Assistent?" (gleiches
       Verhalten wie „Warum gibt es Kontingente?", aber im KI-Akzent) */
.price-list li.ai-item { color: var(--text-2); }
.price-list li.ai-item svg { color: var(--ai-600); }
.price-list li.ai-item strong { color: var(--ai-700); }
.ai-link {
  color: var(--ai-700); font-weight: 700; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: var(--ai-border);
  cursor: pointer;
}
.ai-link:hover { color: var(--ai-600); text-decoration-color: var(--ai-600); }
.ai-info {
  border: 1px solid var(--ai-border); background: var(--ai-50);
  border-radius: var(--radius-sm); padding: .55rem .7rem; margin: 0;
}
.ai-info summary { color: var(--ai-700); }
.ai-info summary::after { content: "\2726"; }
.ai-info summary:hover { color: var(--ai-600); }
.ai-info p { color: var(--text-2); }
.ai-info .ai-info-note { margin-top: .4rem; color: var(--ai-700); font-size: .95em; }
.ai-info .ai-info-note a { color: var(--ai-700); }
/* KI-Abschnitt in der Datenschutzerklärung: gleicher Akzent */
.ai-info-section { border-left: 3px solid var(--ai-border); background: var(--ai-50);
  border-radius: var(--radius-sm); padding: 1rem 1.1rem; margin: 18px 0; }
.ai-info-section h2 { color: var(--ai-700); }
.ai-info-section a { color: var(--ai-700); }
.price-card--soon .price-quota-block .ai-info { opacity: .72; filter: saturate(.5); }

.price-soon-note {
  font-size: .84rem; color: var(--text-2); line-height: 1.55;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: .6rem .75rem; margin: .7rem 0 0;
}
.price-soon-link {
  align-self: flex-start; font-size: .86rem; font-weight: 700;
  color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px;
}
.price-soon-link:hover { color: var(--brand-900); }
/* Deaktivierter Button (z. B. „Bald verfügbar"): klar als nicht klickbar
   erkennbar, aber nicht so schwach, dass er wie ein Fehler aussieht. */
.btn[aria-disabled="true"] {
  background: var(--surface-2); border-color: var(--border-strong); color: var(--text-3);
  cursor: not-allowed; pointer-events: none; box-shadow: none;
}
/* Gesperrte Auswahl-Option (Tarif-Auswahl im Antragsformular) */
select option:disabled { color: var(--text-3); }

/* ---------- 15. Testimonials ---------- */
.quote-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.quote-card blockquote { font-size: 1rem; color: var(--text); line-height: 1.7; }
.quote-card blockquote::before { content: "„"; }
.quote-card blockquote::after { content: "\201C"; }
.quote-author { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.quote-author .avatar { width: 42px; height: 42px; }
.quote-author b { display: block; font-size: .92rem; color: var(--brand-900); }
.quote-author span { font-size: .8rem; color: var(--text-3); }

/* ---------- 16. FAQ / Accordion ---------- */
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item.is-open { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; text-align: left; font-weight: 600; font-size: 1rem; color: var(--brand-900);
}
.faq-q:hover { background: var(--brand-50); }
.faq-icon { width: 22px; height: 22px; flex: none; color: var(--brand-600); transition: transform .28s var(--ease); }
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 22px 22px; color: var(--text-2); font-size: .96rem; }
.faq-item.is-open .faq-a { display: block; animation: fadeIn .22s var(--ease); }
.faq-a p + p { margin-top: 12px; }
.faq-a a { font-weight: 600; }

/* ---------- 17. CTA-Banner ---------- */
.cta-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-800), var(--brand-900) 60%, #071a33);
  border-radius: var(--radius-lg); padding: clamp(30px, 5vw, 56px);
  color: #eaf2ff; box-shadow: var(--shadow-lg);
}
.cta-banner::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 138, 224, .45), transparent 70%);
  top: -180px; right: -120px;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: #b9cdea; max-width: 58ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cta-banner .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.cta-banner .btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }

/* ---------- 18. Formulare ---------- */
.form-grid { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .87rem; font-weight: 600; color: var(--brand-900); }
.field label .req { color: var(--danger-600); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="url"], .field input[type="number"], .field select, .field textarea {
  width: 100%; padding: 13px 15px; min-height: 48px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); font-size: .96rem; transition: border-color .18s, box-shadow .18s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--brand-500); box-shadow: var(--ring);
}
.field .hint { font-size: .8rem; color: var(--text-3); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--danger-600); }
.field .error-msg { display: none; font-size: .8rem; color: var(--danger-600); font-weight: 600; }
.field.has-error .error-msg { display: block; }

.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--text-2); }
.checkbox input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--brand-700); }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow-sm); }
.field-label { font-size: .87rem; font-weight: 600; color: var(--brand-900); }
.field-label .req { color: var(--danger-600); }

/* Sterne-Vergabe im Formular */
.rating-input {
  display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px;
  padding: 6px 0;
}
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label {
  font-size: 0; width: 44px; height: 44px; cursor: pointer; border-radius: 10px;
  display: grid; place-items: center; transition: transform .15s var(--ease);
}
.rating-input label::before {
  content: ""; width: 34px; height: 34px; display: block;
  background: #d8dfea;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 3.4 2.6 5.5 5.9.8-4.3 4.2 1 6-5.2-2.9-5.2 2.9 1-6L3.5 9.7l5.9-.8L12 3.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 3.4 2.6 5.5 5.9.8-4.3 4.2 1 6-5.2-2.9-5.2 2.9 1-6L3.5 9.7l5.9-.8L12 3.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rating-input label:hover { transform: scale(1.12); }
.rating-input label:hover::before,
.rating-input label:hover ~ label::before,
.rating-input input:checked ~ label::before { background: linear-gradient(135deg, var(--accent-500), var(--accent-600)); }
.rating-input input:focus-visible + label { outline: 2px solid var(--brand-600); outline-offset: 2px; }

/* Kontakt-Info */
.info-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.info-card .feature-icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 0; }
.info-card .feature-icon svg { width: 22px; height: 22px; }
.info-card b { display: block; color: var(--brand-900); margin-bottom: 3px; }
.info-card span, .info-card a { font-size: .93rem; color: var(--text-2); }

/* ---------- 19. Hinweis-Boxen ---------- */
.notice {
  display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius);
  font-size: .92rem; line-height: 1.6; border: 1px solid;
}
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.notice--info { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-800); }
.notice--warn { background: #fff8ec; border-color: #ffe0a8; color: #7a5208; }
.notice--success { background: var(--success-50); border-color: #cdeee0; color: #0b4a35; }
.notice a { font-weight: 700; }

/* Demo-Banner */
.demo-banner {
  display: none; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  background: var(--accent-100); color: #7a5208; border-bottom: 1px solid #ffe0a8;
  padding: 10px 16px; font-size: .85rem; text-align: center;
}
.demo-banner.is-visible { display: flex; }
.demo-banner a { font-weight: 700; color: #7a5208; text-decoration: underline; }

/* ---------- 20. Breadcrumb ---------- */
.breadcrumb { font-size: .83rem; color: var(--text-3); padding-block: 18px 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; align-items: center; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--border-strong); }
.breadcrumb a { color: var(--text-2); font-weight: 500; }
.breadcrumb [aria-current] { color: var(--brand-700); font-weight: 600; }

/* Page-Hero für Unterseiten */
.page-hero {
  background: linear-gradient(180deg, #fff, var(--brand-50));
  border-bottom: 1px solid var(--border);
  padding-block: clamp(2.2rem, 5vw, 3.4rem);
}
.page-hero h1 { margin-bottom: 14px; }
.page-hero .lead { max-width: 68ch; }

/* ---------- 21. Inhalte / Prosa ---------- */
.prose { max-width: 76ch; }
.prose h2 { margin-top: 2.4rem; margin-bottom: 14px; font-size: clamp(1.35rem, 3vw, 1.7rem); }
.prose h3 { margin-top: 1.8rem; margin-bottom: 10px; font-size: 1.12rem; }
.prose p { margin-bottom: 14px; color: var(--text-2); }
.prose ul, .prose ol { margin: 0 0 16px 22px; color: var(--text-2); }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--brand-500); }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .92rem; }
/* Mobile: Tabellen in scrollbaren Container legen, statt das Layout zu sprengen
   (Tabellen können nicht unter ihre min-content-Breite schrumpfen). */
.table-scroll { overflow-x: auto; margin: 18px 0; -webkit-overflow-scrolling: touch; }
.table-scroll table { margin: 0; }
/* Lange deutsche Komposita in Überschriften sauber umbrechen statt überlaufen */
h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: auto; }
.prose th, .prose td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); }
.prose th { background: var(--surface-2); color: var(--brand-900); font-weight: 700; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 30px 0; }
.prose .toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 30px; }
.prose .toc b { display: block; margin-bottom: 10px; color: var(--brand-900); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.prose .toc ol { margin: 0 0 0 18px; }
.prose .toc li { margin-bottom: 5px; font-size: .92rem; }

/* Team */
.team-card { text-align: center; }
.team-avatar {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.7rem;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-800));
  box-shadow: var(--shadow-sm);
}
.team-card b { display: block; color: var(--brand-900); font-size: 1.05rem; }
.team-card .role { font-size: .82rem; color: var(--accent-600); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.team-card p { font-size: .9rem; }

/* Timeline */
.timeline { position: relative; padding-left: 30px; display: grid; gap: 26px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--border-strong); }
.timeline-item { position: relative; }
.timeline-item::before {
  content: ""; position: absolute; left: -28px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--brand-600);
}
.timeline-item b { color: var(--brand-900); font-size: 1rem; }
.timeline-item span { display: block; font-size: .78rem; color: var(--accent-600); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 4px; }
.timeline-item p { color: var(--text-2); font-size: .94rem; margin-top: 4px; }

/* Werte-Liste */
.value-row { display: grid; gap: 14px; }

/* ---------- 22. Footer ---------- */
.site-footer { background: var(--brand-900); color: #b9cdea; margin-top: auto; }
.footer-top { display: grid; gap: 38px; padding-block: clamp(40px, 6vw, 64px); }
.footer-brand p { font-size: .92rem; color: #93aacb; margin-top: 16px; max-width: 34ch; }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text small { color: #7f97ba; }
.footer-col h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: #b9cdea; font-size: .93rem; }
.footer-col a:hover { color: #fff; }
.footer-col address { font-style: normal; font-size: .93rem; line-height: 1.8; color: #93aacb; }
.footer-col address a { color: #dce8fa; font-weight: 600; }
.footer-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.footer-trust span {
  display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  padding: 6px 12px; border-radius: var(--radius-pill); color: #dce8fa;
}
.footer-trust svg { width: 14px; height: 14px; color: var(--accent-500); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 22px;
  display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center;
  font-size: .84rem; color: #7f97ba;
}
.footer-bottom nav ul { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; padding: 0; justify-content: center; }
.footer-bottom a { color: #93aacb; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 23. Zustände: Loader / Empty / Error ---------- */
.loader { display: none; justify-content: center; align-items: center; gap: 14px; padding: 60px 0; color: var(--text-3); font-size: .95rem; }
.loader.is-visible { display: flex; }
.spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--brand-600);
  animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 56px 24px;
  background: var(--surface); border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg); color: var(--text-3);
}
.empty-state svg { width: 46px; height: 46px; margin: 0 auto 14px; color: var(--border-strong); }
.empty-state h3 { margin-bottom: 8px; }
.empty-state .btn { margin-top: 18px; }
/* Runde 76d: Sichtbarer Leer-Zustand braucht Luft zur Inhalts-Spalte darunter
   (Claim-CTA links, „Bewertungsverteilung" rechts) – gleicher Abstand wie
   zwischen den Sidebar-Karten (20 px, Betreiber-Feedback 07.10.2026).
   Gilt NUR bei sichtbarer Empty-State-Karte; Profile mit Bewertungen behalten
   ihr bestehendes Spacing (margin-bottom von #profileHead). */
.empty-state:not([hidden]) + .profile-split { margin-top: 20px; }

/* ---------- OSM-Profile ohne Inhaber-Konto (Runde 76d) ----------
   Claim-CTA: eigene Box UNTERHALB der „Noch keine Bewertungen"-Karte, in der
   linken Spalte von .profile-split (rechts daneben die Sidebar-Karten) –
   bewusst NICHT in der Empty-State-Box (Betreiber-Feedback 07.10.2026).
   Dazu: Hinweis am Bewertungsformular (Bestätigungsfrist läuft ohne Betrieb). */
.osm-claim-cta {
  margin: 0 0 26px; padding: 22px 24px; text-align: left;
  background: #eef4fb; border: 1px solid #cfe0f4; border-radius: var(--radius-lg);
  color: var(--text-2);
}
.osm-claim-cta strong { display: block; margin-bottom: 6px; color: var(--text-1); font-size: 1.05rem; }
.osm-claim-cta p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.6; }
.osm-claim-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.osm-claim-actions .btn { margin-top: 0; }
.osm-review-hint {
  margin: 0 0 18px; padding: 12px 16px; font-size: 14px; line-height: 1.55;
  background: #fff8e6; border: 1px solid #f0dfae; border-radius: var(--radius-md, 10px);
  color: #6b5518;
}

.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, #e8eef7 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---------- 24. Cookie-Banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 560px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 24px; display: none;
}
.cookie-banner.is-visible { display: block; animation: slideUp .35s var(--ease); }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.cookie-banner h2 { font-size: 1.1rem; margin-bottom: 8px; }
.cookie-banner p { font-size: .88rem; color: var(--text-2); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cookie-options { display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.cookie-opt { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--text-2); }
.cookie-opt input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand-700); }
.cookie-opt b { color: var(--brand-900); display: block; font-size: .88rem; }

/* Back to top */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand-800); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--brand-700); transform: translateY(-2px); }
.to-top svg { width: 20px; height: 20px; }

/* Reveal-Animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* 404 */
.error-art { font-size: clamp(4.5rem, 18vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -.05em;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-900)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 25. Breakpoints ---------- */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .statbar-inner { grid-template-columns: repeat(4, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .form-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .cookie-banner { left: auto; right: 24px; bottom: 24px; margin: 0; }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .pricing { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .profile-head { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; }
  .profile-split { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
  .contact-split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
  .value-row { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile Feintuning */
@media (max-width: 639px) {
  :root { --header-h: 64px; }
  .container { padding-inline: 16px; }
  .card, .step, .price-card, .quote-card { padding: 22px; }
  .profile-head { padding: 20px; }
  .profile-id { gap: 14px; }
  .profile-avatar { width: 56px; height: 56px; border-radius: 16px; font-size: 1.2rem; }
  .profile-actions .btn { flex: 1 1 auto; }
  .search-box { padding-left: 16px; }
  .search-input { font-size: 1rem; padding: 11px 0; }
  .review-toolbar { flex-direction: column; align-items: stretch; }
  .select { width: 100%; }
  .footer-top { gap: 30px; }
  .hero-badges { gap: 8px 16px; }
}

@media (max-width: 400px) {
  .logo-text { font-size: 1.18rem; }
  .btn { padding-inline: 18px; }
}

/* ---------- 26. Print & Reduced Motion ---------- */
@media print {
  .site-header, .site-footer, .cookie-banner, .to-top, .search, .cta-banner, .demo-banner { display: none !important; }
  body { background: #fff; color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Honeypot-Feld (für Menschen unsichtbar, für Bots verlockend) */
.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* ---------- Textsicherheit: nichts läuft aus weißen Containern ---------- */
.card, .review-card, .notice, .step, .price-card, .faq-a, .profile-stat,
.quote-card, .info-card { overflow-wrap: break-word; min-width: 0; }
.card a, .notice a, .faq-a a { overflow-wrap: anywhere; }
/* Runde 33: zusätzlich abgesichert – lange Bezeichner, Links, Tabellen und
   Code-Auszüge bleiben innerhalb ihrer weißen Fläche (kein Überlauf). */
.widget-demo figcaption, .wd-desc, .price-list li, .price-quota, .price-quota-info,
.ai-info, .stat-label, .stat-value, .cmp-table td, .cmp-table th,
.tsd-banner, .tsd-carousel-widget, .browser-body { min-width: 0; overflow-wrap: break-word; }
.tsd-banner-company, .tsd-cw-author, .tsd-cw-text, .tsd-cw-reply { overflow-wrap: anywhere; }
code, pre, .embed-block { max-width: 100%; overflow-wrap: anywhere; }
.table-scroll, .table-card { overflow-x: auto; max-width: 100%; }
.container > * { max-width: 100%; }

/* ---------- Zahlweise-Umschalter & Jahrespreis-Hinweis (Preistabelle) ---------- */
.billing-toggle .btn.is-active { background: var(--ink, #0b2545); border-color: var(--ink, #0b2545); color: #fff; }
.price-billing-note { font-size: .8rem; color: var(--success-600, #15803d); font-weight: 600; margin: .2rem 0 0; }

/* ---------- Bewertung melden (Notice-and-Action, DSA Art. 16) ---------- */
.review-foot { display:flex; justify-content:flex-end; margin-top:.55rem; }
.report-btn { background:none; border:0; color:var(--muted, #9ca3af); font-size:.74rem; cursor:pointer; padding:.15rem .3rem; border-radius:6px; }
.report-btn:hover { color:#dc2626; text-decoration:underline; background:#fef2f2; }
.badge--review { background:#fef3c7; color:#92400e; }
/* Selbstverwaltung (Runde 35): eigene Änderung + Ergänzung der bewertenden Person */
.badge--edited { background:#eef2ff; color:#3730a3; }
.review-update {
  margin: 10px 0 0; padding: 10px 12px; background: #fff8ec;
  border-left: 3px solid var(--accent-500, #e0a526); border-radius: 0 10px 10px 0;
  font-size: .9rem; color: #6b4a12; line-height: 1.55; overflow-wrap: break-word;
}
.review-update b { display: block; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .04em; margin-bottom: 3px; color: #7c4a03; }
.review-update time { color: #8a6a2f; font-size: .82rem; }
.report-overlay { position:fixed; inset:0; background:rgba(11,37,69,.45); z-index:1200; display:flex; align-items:center; justify-content:center; padding:1rem; }
.report-overlay[hidden] { display:none !important; }
.report-dialog { background:#fff; border-radius:14px; max-width:520px; width:100%; padding:1.4rem 1.5rem; box-shadow:0 20px 60px rgba(11,37,69,.35); }
.report-dialog h3 { margin:0 0 .4rem; }
.report-lead { font-size:.85rem; color:var(--text-2, #475569); margin:0 0 .8rem; }
.report-dialog label { display:block; font-size:.8rem; font-weight:600; margin:.5rem 0 .2rem; }
.report-dialog select, .report-dialog textarea, .report-dialog input[type=email] {
  width:100%; padding:.5rem .6rem; border:1px solid #d1d5db; border-radius:8px; font-size:.9rem; font-family:inherit; }
.report-actions { display:flex; gap:.5rem; justify-content:flex-end; margin-top:.9rem; }
.report-msg { font-size:.85rem; margin:.6rem 0 0; }
.report-msg--ok { color:#15803d; }
.report-msg--error { color:#dc2626; }
.report-overlay .hp, .hp { position:absolute !important; left:-9999px !important; width:1px; height:1px; overflow:hidden; }

/* ---------- Verifiziertes Unternehmen (Badge Profil + Suchkacheln, 23.09.2026) ---------- */
.badge--company-verified {
  background: var(--success-50); color: var(--success-600);
  border: 1px solid #bbf7d0; vertical-align: middle;
  font-size: .68rem; letter-spacing: .02em; white-space: nowrap;
}
.tile-verified {
  display: inline-grid; place-items: center;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--success-600, #16a34a); color: #fff;
  font-size: .68rem; font-weight: 700; line-height: 1;
  vertical-align: middle; margin-left: 4px; flex: none;
}

/* ---------- Bezug/Gegenstand einer Bewertung (24.09.2026) ---------- */
.review-subject { margin-top: -4px; }
.badge--subject {
  background: var(--brand-100, #eef4fb); color: var(--brand-700, #0b4a86);
  font-weight: 600; max-width: 42ch; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; display: inline-block;
}

/* hidden-Attribut darf nie von display-Regeln überschrieben werden
   (Statistik-Leisten & Profil-Kacheln werden per JS ein-/ausgeblendet) */
[hidden] { display: none !important; }

/* ---------- Sprachumschalter DE/EN (Header, alle Seiten) ---------- */
.lang-switch-site { display: inline-flex; gap: 2px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 3px; flex: none; }
.lang-switch-site .lang-pill { display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: var(--text-3); text-decoration: none;
  transition: background .15s, color .15s; }
.lang-switch-site .lang-pill:hover { color: var(--text); }
.lang-switch-site .lang-pill.is-active { background: var(--brand-700); color: #fff; }
@media (max-width: 900px) {
  .lang-switch-site { order: 3; }
}

/* ---------- Ortsverzeichnis-Autocomplete (Registrierungsformular) ---------- */
.city-ac { position: relative; }
/* Eigene positionierte Box direkt um das Orts-Input – die Liste soll am
   Eingabefeld kleben, nicht unter Hinweis-/Fehlertext des Feldblocks. */
.city-ac-box { position: relative; }
.city-ac-list {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 60;
  max-height: 260px; overflow-y: auto; margin-top: 4px;
}

/* ---------- Verzeichnis-Hinweis auf der Startseite (Launch-Phase) ---------- */
.directory-note {
  max-width: 760px; margin: 26px auto 0;
  display: flex; gap: 12px; align-items: flex-start; text-align: left;
  background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: var(--radius); padding: 14px 18px;
  font-size: .88rem; color: var(--text-2); line-height: 1.55;
}
.directory-note > svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--brand-600); }
.directory-note p { margin: 0 0 8px; }
.directory-note p:last-child { margin-bottom: 0; }
.directory-note a { color: var(--brand-600); font-weight: 600; }
.directory-note .directory-note-biz {
  border-top: 1px dashed var(--brand-100); padding-top: 8px;
}
@media (max-width: 600px) {
  .directory-note { font-size: .84rem; padding: 12px 14px; }
}

/* ---------- Launch-Banner („Startvorteil") auf Für Unternehmen ---------- */
.launch-banner {
  position: relative; max-width: 1140px; margin: 0 auto 26px;
  display: flex; gap: 14px; align-items: flex-start;
  background: linear-gradient(135deg, var(--accent-100), #fffaf0 55%, var(--brand-50));
  border: 1px solid #f3ddae; border-radius: var(--radius);
  padding: 18px 22px; font-size: .95rem; color: var(--text);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(16,32,58,.06));
}
.launch-banner-badge {
  flex: none; align-self: center;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
  color: #fff; font-weight: 700; font-size: .74rem; letter-spacing: .04em;
  text-transform: uppercase; border-radius: var(--radius-pill);
  padding: 6px 12px; white-space: nowrap;
}
.launch-banner p { margin: 0; line-height: 1.6; }
/* Runde 78: Startvorteil-Hinweis direkt in der betroffenen Preiskarte */
.price-promo {
  display: inline-block; margin: 10px 0 0; padding: 6px 14px;
  font-size: .82rem; font-weight: 700; line-height: 1.4; color: #8a5a00;
  background: #fdf3dd; border: 1px solid #f0d9a8; border-radius: 99px;
  max-width: 100%;
}
.launch-banner a { color: var(--brand-700); font-weight: 700; white-space: nowrap; }
.launch-banner s { color: var(--text-3); }
@media (max-width: 640px) {
  .launch-banner { flex-direction: column; gap: 8px; padding: 14px 16px; }
  .launch-banner-badge { align-self: flex-start; }
}

/* ---------- Ausgegrautes (noch nicht wählbares) Formularfeld ---------- */
.field--locked {
  background: var(--surface-2); border: 1px dashed var(--border-strong);
  border-radius: var(--radius); padding: 14px 16px;
}
.field--locked > label:first-child { color: var(--text-3); }
.field--locked .checkbox,
.field--locked .checkbox span { color: var(--text-3); cursor: not-allowed; }
.field--locked input[type="radio"] { cursor: not-allowed; accent-color: #9aa7b8; }
.field--locked .hint { color: var(--text-3); }

/* ---------- Vergleichstabelle TrustStar vs. klassische Portale ---------- */
.cmp-table { width: 100%; border-collapse: collapse; font-size: .93rem; background: var(--surface); }
.cmp-table th, .cmp-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; line-height: 1.55; }
.cmp-table thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); border-bottom: 2px solid var(--border-strong); }
.cmp-table thead th.cmp-us { color: var(--brand-700); }
.cmp-table tbody th { font-weight: 600; color: var(--text); width: 24%; }
.cmp-table td { color: var(--text-2); }
.cmp-table td.cmp-us {
  color: var(--text); font-weight: 500;
  background: var(--brand-50); border-left: 3px solid var(--brand-500);
}
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm, 0 1px 2px rgba(16,32,58,.06)); }
/* Runde 78 (Mobile-Audit): .cmp-wrap sitzt auf .table-scroll und dessen
   overflow:hidden hob das overflow-x:auto auf → Vergleichstabellen waren am
   Handy abgeschnitten statt scrollbar. Explizit zurücksetzen (Radius-Clipping
   bleibt über overflow-y erhalten). */
.table-scroll.cmp-wrap { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
@media (max-width: 720px) {
  .cmp-table th, .cmp-table td { padding: 10px 12px; font-size: .86rem; }
  .cmp-table tbody th { width: auto; }
}

/* ==========================================================================
   14. Produkt-Demos „Für Unternehmen" – Widget-Beispiele & 3D-Bewertungskarten
   --------------------------------------------------------------------------
   Statische, echt aussehende Nachbildungen des Embed-Widgets (widget/widget.js)
   und der gedruckten Bewertungskarten (Portal-Design) – nur für die Marketing-
   Seiten, ohne externe Ressourcen. Interaktion in assets/js/app.js: 3D-Tilt
   (Maus), Karte DREHEN per Klick/Tipp (Vorder- ↔ Rückseite), Ansichts-
   Umschalter des Banner-Beispiels. Farben folgen den Stammdaten
   (site-config.js → card_colors/widget_colors, app.js setzt --pc-*/--rw-*);
   prefers-reduced-motion wird respektiert.
   ========================================================================== */

/* ---------- Gemeinsamer Browser-Rahmen ---------- */
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 960px) { .demo-grid { grid-template-columns: 1fr; } }

.browser-frame { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-md); overflow: hidden; transition: max-width .3s var(--ease), border-radius .3s var(--ease); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3dbe7; flex: none; }
.browser-bar i:nth-child(1) { background: #f2a9a0; }
.browser-bar i:nth-child(2) { background: #f6d48b; }
.browser-bar i:nth-child(3) { background: #a5d8b7; }
.browser-bar span { margin-left: 10px; font-size: .72rem; color: var(--text-3); background: var(--surface); border: 1px solid var(--border); padding: 3px 12px; border-radius: var(--radius-pill); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-body { position: relative; padding: 18px; background: #fbfcfe; min-height: 360px; }

/* Platzhalter-Inhalt einer fremden Website */
.fake-nav { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.fake-logo { width: 74px; height: 12px; border-radius: 4px; background: var(--brand-100); }
.fake-link { width: 38px; height: 8px; border-radius: 3px; background: #e6ebf3; }
.fake-hero { height: 70px; border-radius: 10px; background: linear-gradient(120deg, #e8eff9, #dcecff); margin-bottom: 14px; }
.fake-line { height: 9px; border-radius: 4px; background: #e9edf4; margin: 9px 0; }
.fake-line.w45 { width: 45%; } .fake-line.w60 { width: 60%; }
.fake-line.w70 { width: 70%; } .fake-line.w80 { width: 80%; }

/* ---------- Demo 1: Basis-Banner (Nachbildung widget.js .rw-banner) ---------- */
.tsd-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: linear-gradient(135deg, var(--rw-banner-1, #ffffff) 0%, var(--rw-banner-2, #fbfcfe) 60%, var(--rw-banner-3, #f2f6fb) 100%); color: var(--rw-banner-text, #16233a); border: 1px solid var(--rw-banner-border, #e2e8f0); border-radius: 16px; padding: 12px 16px; box-shadow: 0 4px 18px rgba(16, 32, 58, .10); margin: 12px 0; transition: all .3s var(--ease); }
.tsd-banner-brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.tsd-banner-logo { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.tsd-banner-text { display: flex; flex-direction: column; min-width: 0; }
.tsd-banner-company { font-size: 1rem; font-weight: 700; line-height: 1.2; }
.tsd-banner-sub { font-size: .72rem; color: var(--rw-muted, #64748b); line-height: 1.3; }
.tsd-banner-verified { color: #0f9d6e; font-weight: 700; }
.tsd-banner-chips { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.tsd-chip { display: flex; align-items: center; gap: 8px; background: var(--rw-surface, #ffffff); border: 1px solid var(--rw-border, #e3e8ef); border-radius: 12px; padding: 7px 11px; color: var(--rw-text, #16233a); text-decoration: none; }
.tsd-chip-icon { width: 20px; height: 20px; flex: none; border-radius: 4px; }
.tsd-chip-score { display: block; font-size: 1.05rem; font-weight: 800; line-height: 1; }
.tsd-chip-stars { display: block; font-size: .68rem; color: var(--rw-stars, #e0a526); letter-spacing: 1px; line-height: 1; margin-top: 2px; }
.tsd-chip-name { display: block; font-size: .75rem; font-weight: 700; line-height: 1.2; }
.tsd-chip-count { display: block; font-size: .66rem; color: var(--rw-muted, #64748b); line-height: 1.2; }
.tsd-banner-cta { background: var(--rw-cta-bg, #16324f); color: var(--rw-cta-text, #ffffff); border-radius: 12px; padding: 9px 15px; font-size: .82rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.tsd-banner-note { flex-basis: 100%; font-size: .62rem; color: var(--rw-muted, #64748b); margin: 0; }
.tsd-cta-short { display: none; }
.widget-demo[data-wd-view="float"] .tsd-cta-long,
.widget-demo[data-wd-view="mobile"] .tsd-cta-long { display: none; }
.widget-demo[data-wd-view="float"] .tsd-cta-short,
.widget-demo[data-wd-view="mobile"] .tsd-cta-short { display: inline; }

/* Ansicht „schwebend" (Desktop): hochkante Säule rechts unten im Rahmen */
.widget-demo[data-wd-view="float"] .browser-body { padding-bottom: 30px; }
.widget-demo[data-wd-view="float"] .tsd-banner { position: absolute; right: 14px; bottom: 14px; width: 215px; max-width: 62%; margin: 0; flex-direction: column; align-items: stretch; gap: 9px; padding: 13px; border-radius: 16px; box-shadow: 0 12px 32px rgba(11, 37, 69, .4); animation: tsdFloatIn .4s var(--ease) both; }
.widget-demo[data-wd-view="float"] .tsd-banner-chips { flex-direction: column; align-items: stretch; margin-left: 0; gap: 7px; }
.widget-demo[data-wd-view="float"] .tsd-chip { width: 100%; }
.widget-demo[data-wd-view="float"] .tsd-banner-cta { text-align: center; box-sizing: border-box; }
.widget-demo[data-wd-view="float"] .tsd-banner-note { text-align: center; }
@keyframes tsdFloatIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Ansicht „mobil": Rahmen wird zum Telefon, Banner horizontal am unteren Rand */
.widget-demo[data-wd-view="mobile"] .browser-frame { max-width: 330px; margin-inline: auto; border-radius: 26px; }
.widget-demo[data-wd-view="mobile"] .browser-bar span { display: none; }
.widget-demo[data-wd-view="mobile"] .browser-body { min-height: 440px; padding: 14px 12px 84px; }
.widget-demo[data-wd-view="mobile"] .tsd-banner { position: absolute; left: 10px; right: 10px; bottom: 10px; margin: 0; flex-wrap: nowrap; justify-content: flex-start; gap: 8px; padding: 8px 10px; border-radius: 14px; box-shadow: 0 -2px 18px rgba(11, 37, 69, .35); animation: tsdFloatIn .4s var(--ease) both; overflow: hidden; }
.widget-demo[data-wd-view="mobile"] .tsd-banner-brand { flex: 1 1 auto; min-width: 0; }
.widget-demo[data-wd-view="mobile"] .tsd-banner-logo { width: 26px; height: 26px; }
.widget-demo[data-wd-view="mobile"] .tsd-banner-company { font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.widget-demo[data-wd-view="mobile"] .tsd-banner-sub,
.widget-demo[data-wd-view="mobile"] .tsd-chip-stars,
.widget-demo[data-wd-view="mobile"] .tsd-chip-count,
.widget-demo[data-wd-view="mobile"] .tsd-banner-note { display: none; }
.widget-demo[data-wd-view="mobile"] .tsd-banner-chips { margin-left: 0; flex-wrap: nowrap; gap: 6px; }
.widget-demo[data-wd-view="mobile"] .tsd-chip { padding: 5px 8px; gap: 6px; flex: none; }
.widget-demo[data-wd-view="mobile"] .tsd-chip-name { display: none; }
.widget-demo[data-wd-view="mobile"] .tsd-chip-icon { width: 16px; height: 16px; }
.widget-demo[data-wd-view="mobile"] .tsd-chip-score { font-size: .85rem; }
.widget-demo[data-wd-view="mobile"] .tsd-chip-name { font-size: .66rem; }
.widget-demo[data-wd-view="mobile"] .tsd-banner-cta { padding: 7px 10px; font-size: .72rem; flex: none; box-sizing: border-box; max-width: none; }
.widget-demo[data-wd-view="mobile"] .fake-hero { height: 44px; }

/* Ansichts-Umschalter unter dem Beispiel */
.wd-toggle { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.wd-toggle button { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font: inherit; font-size: .8rem; font-weight: 600; padding: 7px 14px; border-radius: var(--radius-pill); cursor: pointer; transition: all .2s var(--ease); }
.wd-toggle button:hover { border-color: var(--brand-500); color: var(--brand-700); }
.wd-toggle button.is-active { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }

/* Beschriftung der Beispiele */
.widget-demo { margin: 0; }
.widget-demo figcaption { margin-bottom: 12px; }
.widget-demo-plan { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--brand-100); padding: 3px 10px; border-radius: var(--radius-pill); margin-bottom: 6px; }
.widget-demo figcaption strong { display: block; font-size: 1.05rem; color: var(--text); margin-bottom: 3px; }
.widget-demo .wd-desc { display: block; font-size: .85rem; color: var(--text-2); line-height: 1.55; }

/* ---------- Demo 2: Erweitertes Widget (Karussell-Nachbildung) ---------- */
.tsd-carousel-widget { background: var(--rw-surface, #ffffff); border: 1px solid var(--rw-border, #e3e8ef); border-radius: 16px; padding: 18px; color: var(--rw-text, #16233a); }
.tsd-cw-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.tsd-cw-top h3 { font-size: 1.15rem; margin: 0 0 2px; }
.tsd-cw-top p { font-size: .8rem; color: var(--rw-muted, #64748b); margin: 0; }
.tsd-verified-badge { display: inline-block; background: #dcfce7; color: #166534; font-size: .66rem; font-weight: 700; padding: 1px 8px; border-radius: var(--radius-pill); vertical-align: middle; }
.tsd-cw-cta { background: var(--rw-cta-bg, #16324f); color: var(--rw-cta-text, #ffffff); border-radius: 12px; padding: 9px 15px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.tsd-cw-hero { background: var(--rw-surface-alt, #f5f7fa); border: 1px solid var(--rw-border, #e3e8ef); border-radius: 16px; padding: 16px; text-align: center; margin-bottom: 12px; }
.tsd-cw-hero-stars { font-size: 1.7rem; color: var(--rw-stars, #e0a526); letter-spacing: 3px; line-height: 1; }
.tsd-cw-hero-label { font-size: 1rem; font-weight: 700; margin-top: 4px; }
.tsd-cw-platforms { background: var(--rw-surface-alt, #f5f7fa); border: 1px solid var(--rw-border, #e3e8ef); border-radius: 16px; padding: 12px 14px; margin-bottom: 14px; text-align: center; }
.tsd-cw-platforms-total { font-size: .82rem; font-weight: 600; color: var(--rw-text, #16233a); margin-bottom: 8px; }
.tsd-cw-platforms-row { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.tsd-cw-platform { display: flex; align-items: center; gap: 8px; text-align: left; }
.tsd-cw-score { font-size: 1.2rem; font-weight: 800; background: var(--rw-surface, #ffffff); border: 1px solid var(--rw-border, #e3e8ef); border-radius: 12px; padding: 4px 8px; min-width: 42px; text-align: center; }
.tsd-cw-pname { font-size: .76rem; font-weight: 700; color: var(--rw-text, #16233a); display: flex; align-items: center; gap: 5px; }
.tsd-cw-pcount { font-size: .68rem; color: var(--rw-muted, #64748b); display: block; }
.tsd-cw-platform-icon { width: 16px; height: 16px; flex: none; }
.tsd-cw-slides { display: flex; gap: 10px; overflow: hidden; }
.tsd-cw-slide { flex: 1 1 0; min-width: 0; background: var(--rw-surface, #ffffff); border: 1px solid var(--rw-border, #e3e8ef); border-radius: 14px; padding: 13px; display: flex; flex-direction: column; }
.tsd-cw-row1 { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.tsd-avatar { width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: .7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.tsd-cw-author { font-weight: 700; font-size: .86rem; }
.tsd-cw-meta { padding-left: 37px; display: flex; gap: 8px; align-items: center; margin-bottom: 5px; flex-wrap: wrap; }
.tsd-cw-stars { color: var(--rw-stars, #e0a526); font-size: .85rem; letter-spacing: 1px; }
.tsd-cw-date { font-size: .7rem; color: var(--rw-muted, #64748b); }
.tsd-cw-text { padding-left: 37px; font-size: .8rem; line-height: 1.55; color: var(--rw-text, #16233a); opacity: .88; }
.tsd-cw-reply { margin: 8px 0 0 37px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 9px; padding: 8px 10px; font-size: .74rem; color: #166534; line-height: 1.5; }
.tsd-cw-reply b { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.tsd-cw-footer { margin-top: auto; padding: 9px 0 0 37px; display: flex; align-items: center; gap: 5px; font-size: .66rem; color: var(--rw-muted, #64748b); }
.tsd-cw-footer svg { width: 13px; height: 13px; flex: none; }
@media (max-width: 560px) { .tsd-cw-slide:nth-child(n+2) { display: none; } }

/* ---------- 3D-Bewertungskarten (Abschnitt Kartendruck) ---------- */
/* Bühne mit Perspektive; die Karte selbst ist ein Flip-Element:
   Klick/Tipp (oder Enter/Space) dreht Vorder- ↔ Rückseite,
   die Maus-Neigung (app.js) liegt auf einer eigenen Ebene (.tsd-flipcard-tilt).
   Beispiel bewusst in GROSSER Schriftgröße (Variante „Groß" der Karten-
   Schriftgrößen-Wahl aus dem Portal). Farben = Stammdaten (card_colors):
   app.js setzt --pc-* auf [data-card-colors], Fallbacks = Marke „klassisch". */
.card3d-stage { perspective: 1400px; display: flex; justify-content: center; padding: 30px 10px 48px; }
.tsd-flipcard { position: relative; width: var(--tsd-card-w, 252px); height: calc(var(--tsd-card-w, 252px) * var(--tsd-ratio, 1.5741)); /* Proportion aus Stammdaten: card_size (Default 54 × 85 mm) */ background: transparent; border: 0; padding: 0; cursor: pointer; transform-style: preserve-3d; -webkit-tap-highlight-color: transparent; }
.tsd-flipcard:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 8px; }
.tsd-flipcard-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .3s var(--ease); will-change: transform; }
.tsd-flipcard.is-tilting .tsd-flipcard-tilt { transition: transform .08s linear; }
.tsd-flipcard-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s var(--ease); }
.tsd-flipcard.is-flipped .tsd-flipcard-inner { transform: rotateY(180deg); }
.tsd-card { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 0; /* echte Druckkante: keine Rundung */ background: #fff; box-shadow: var(--shadow-md); overflow: hidden; display: flex; flex-direction: column; }
.tsd-flipcard.is-tilting .tsd-card { box-shadow: 0 30px 60px -18px rgba(11, 37, 69, .45); }
.tsd-card--back { transform: rotateY(180deg); }
.tsd-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .35), transparent 55%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.tsd-flipcard.is-tilting .tsd-card::after { opacity: 1; }
.tsd-flip-side { position: absolute; top: 8px; right: 10px; z-index: 2; font-size: .64rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .75); pointer-events: none; }
.tsd-card--back .tsd-flip-side { color: var(--text-3); }

/* Kartenvorderseite (Design = Druckbogen aus dem Portal) */
.tsd-card-band { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 13px 10px 11px; background: linear-gradient(135deg, var(--pc-band-1, #0b2545) 0%, var(--pc-band-2, #14508c) 60%, var(--pc-band-3, #1b6fc4) 100%); color: #fff; flex: none; }
.tsd-card-brand { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 15px; letter-spacing: -.01em; line-height: 1; }
.tsd-card-brand svg { width: 20px; height: 20px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .22); }
.tsd-brand-star { color: var(--pc-brand-star, #f5a524); }
.tsd-card-name { font-size: 26px; font-weight: 800; color: var(--pc-name, #0b2545); text-align: center; padding: 22px 14px 0; letter-spacing: -.015em; line-height: 1.15; }
.tsd-card-claim { text-align: center; font-size: 20px; font-weight: 800; color: var(--pc-claim, #d9860b); padding: 10px 14px 0; }
.tsd-card-bottom { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0 14px 12px; }
.tsd-card-qr { width: 118px; height: 118px; background: #fff; }
.tsd-card-qr svg { width: 100%; height: 100%; display: block; }
.tsd-card-url { font-size: 16px; font-family: Consolas, 'Courier New', monospace; font-weight: 700; color: var(--pc-url, #14508c); }
.tsd-card-hint { font-size: 10.5px; color: var(--pc-hint, #6b7280); }
.tsd-card-stripe { height: 7px; background: linear-gradient(90deg, var(--pc-stripe-1, #f5a524), var(--pc-stripe-2, #d9860b)); flex: none; }

/* Kartenrückseite (Firmenlogo + Kontaktdaten) */
.tsd-card-back-inner { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 26px 18px 0; text-align: center; }
.tsd-card-back-logo { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 1px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; }
.tsd-card-back-logo svg { width: 100%; height: 100%; display: block; }
.tsd-card-back-name { font-size: 22px; font-weight: 800; color: var(--pc-name, #0b2545); margin-top: 16px; }
.tsd-card-back-addr { font-size: 14.5px; color: #33415c; margin-top: 12px; line-height: 1.5; }
.tsd-card-back-contact { font-size: 13.5px; color: #33415c; margin-top: 8px; line-height: 1.55; }
.tsd-card-back-note { margin-top: auto; font-size: 9.5px; color: #77869c; padding-bottom: 12px; }

.card3d-hint { text-align: center; font-size: .84rem; color: var(--text-2); max-width: 640px; margin: 0 auto 38px; line-height: 1.55; position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .tsd-flipcard-tilt, .tsd-flipcard-inner { transition: none; }
  .tsd-card::after { display: none; }
  .widget-demo .tsd-banner, .browser-frame { animation: none; transition: none; }
}
@media (max-width: 560px) {
  .tsd-flipcard { --tsd-card-w: 210px; }
  .tsd-card-band { padding: 10px 8px 8px; }
  .tsd-card-brand { font-size: 13.5px; }
  .tsd-card-brand svg { width: 17px; height: 17px; }
  .tsd-card-name { font-size: 21px; padding-top: 16px; }
  .tsd-card-claim { font-size: 16px; }
  .tsd-card-qr { width: 96px; height: 96px; }
  .tsd-card-url { font-size: 13.5px; }
  .tsd-card-hint { font-size: 9px; }
  .tsd-card-stripe { height: 6px; }
  .tsd-card-back-logo { width: 54px; height: 54px; }
  .tsd-card-back-name { font-size: 18px; }
  .tsd-card-back-addr { font-size: 12.5px; }
  .tsd-card-back-contact { font-size: 12px; }
  .card3d-stage { padding: 22px 4px 36px; }
}

/* ==========================================================================
   Runde 118: Profil-Erweiterungen (Logo, Beschreibung, Öffnungszeiten,
   Galerie, Sidebar-Duo bei leeren Profilen, Review-Clamp)
   ========================================================================== */
.profile-logo{margin:14px 0 0}
.profile-logo img{max-width:120px;max-height:60px;object-fit:contain;background:#fff;
  border:1px solid #e3e9f2;border-radius:10px;padding:8px}
@media (max-width:640px){.profile-logo img{max-width:76px;max-height:40px;padding:5px}}
.profile-desc,.profile-hours{margin:16px 0 0;padding:14px 16px;background:#fff;
  border:1px solid #e3e9f2;border-radius:12px}
.profile-desc h3,.profile-hours h3{font-size:.95rem;margin:0 0 8px}
.profile-desc p{margin:0;color:#374151;font-size:.92rem;line-height:1.6}
.profile-hours pre{margin:0;font-family:inherit;color:#374151;font-size:.9rem;line-height:1.6;white-space:pre-wrap}
.profile-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0 0}
.profile-gallery img{width:100%;height:110px;object-fit:cover;border-radius:10px;
  border:1px solid #e3e9f2;background:#fff}
.sidebar-duo{display:grid !important;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
.sidebar-duo .card{margin-bottom:0 !important}
@media (max-width:900px){
  .sidebar-duo{grid-template-columns:1fr}
  .profile-gallery{grid-template-columns:repeat(2,1fr)}
}
.review-text.clamp{max-height:6.3em;overflow:hidden;position:relative}
.review-text.clamp::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2.2em;
  background:linear-gradient(180deg,rgba(255,255,255,0),#fff 85%)}
.review-text.open{max-height:none}
.review-text.open::after{display:none}
.rev-more{border:0;background:none;color:#14508c;font-size:.8rem;font-weight:700;
  cursor:pointer;padding:2px 0;margin-top:2px}

/* Runde 128: Galerie-Lightbox + Logo-Avatar */
.profile-gallery img{cursor:zoom-in}
.pg-lightbox{position:fixed;inset:0;z-index:9999;background:rgba(10,15,25,.88);
  display:flex;align-items:center;justify-content:center;padding:4vh 4vw}
.pg-lightbox img{max-width:100%;max-height:92vh;object-fit:contain;border-radius:10px;
  box-shadow:0 10px 40px rgba(0,0,0,.5);background:#fff}
.pg-lightbox button{position:absolute;top:14px;right:16px;background:#fff;border:0;border-radius:99px;
  width:40px;height:40px;font-size:1.2rem;font-weight:700;cursor:pointer;color:#10203a}
.profile-avatar--img{background:#fff !important;border:1px solid #e3e9f2;padding:3px}
.profile-avatar--img img{width:100%;height:100%;object-fit:contain;border-radius:inherit}
