/* =============================================
   SchlafenTipps.de — Ultra Clean White Minimal
   ============================================= */

:root {
  --white:        #ffffff;
  --bg:           #ffffff;
  --bg-subtle:    #f9fafb;
  --text:         #0f172a;
  --text-muted:   #64748b;
  --text-light:   #94a3b8;
  --accent:       #4338ca;
  --accent-hover: #3730a3;
  --accent-light: #eef2ff;
  --border:       #e2e8f0;
  --border-hover: #c7d2fe;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow:       0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:    0 4px 16px rgba(0,0,0,.07);
  --max:          1180px;
  --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

/* ---- LAYOUT ---- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 60px;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.3px;
  white-space: nowrap;
}
.logo-accent { color: var(--accent); }
.logo-icon { display: block; flex-shrink: 0; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--text); background: var(--bg-subtle); }
.main-nav a.active { color: var(--accent); background: var(--accent-light); }

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .2s;
}

/* ---- MOBILE MENU ---- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 60px 0 0 0;
  background: #fff;
  z-index: 99;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.mobile-menu a:hover { background: var(--bg-subtle); }

/* ---- HERO ---- */
.hero {
  padding: 80px 0 72px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  color: var(--text);
  max-width: 760px;
  margin: 0 auto 20px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: all .15s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* ---- STATS BAR ---- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  display: block;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---- SECTION HEADER ---- */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 12px;
}
.section-header p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ---- CATEGORY GRID ---- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s, transform .15s;
  text-decoration: none;
  color: inherit;
}
.cat-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}
.cat-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cat-card h3 { font-size: 16px; font-weight: 700; color: var(--text); }
.cat-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; flex: 1; }
.cat-count {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-top: auto;
}

/* ---- CONTENT GRID (Cards) ---- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.filter-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.content-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.content-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-md); }
.content-card a { color: inherit; text-decoration: none; }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
}
.card-body h3 { font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--text); }
.card-body p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
  padding-top: 8px;
}

/* ---- TWO-COL ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.two-col-text h2 { font-size: clamp(22px, 3.5vw, 32px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 16px; }
.two-col-text p { font-size: 16px; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }

/* ---- RECHNER ---- */
.rechner-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.rechner-box h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.rechner-box p { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; }
.rechner-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.form-group select, .form-group input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .15s;
  font-family: var(--font);
}
.form-group select:focus, .form-group input:focus { border-color: var(--accent); }
.rechner-result {
  display: none;
  margin-top: 20px;
  padding: 20px;
  background: var(--accent-light);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
}
.rechner-result.show { display: block; }
.result-times { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.result-time {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--border-hover);
  border-radius: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
}
.result-note { font-size: 13px; color: var(--text-muted); margin-top: 10px; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--border); }
.page-hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.page-hero .lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.6;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.article-meta .meta-sep {
  color: var(--border);
}
.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body a:hover {
  text-decoration: none;
}

/* ---- ARTICLE LAYOUT ---- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
.article-body h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 36px 0 14px;
}
.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 10px;
}
.article-body p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 18px;
}
.article-body ul, .article-body ol {
  padding-left: 20px;
  margin-bottom: 18px;
}
.article-body li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 6px;
  color: var(--text);
}
.info-box {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}
.info-box p { margin: 0; font-size: 15px; }

/* ---- SIDEBAR ---- */
.sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 20px; }
.sidebar-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.sidebar-box h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.sidebar-links { display: flex; flex-direction: column; gap: 8px; }
.sidebar-links a {
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all .15s;
}
.sidebar-links a:hover { color: var(--accent); background: var(--accent-light); border-color: var(--border-hover); }

/* ---- GLOSSAR ---- */
.glossar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.glossar-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .15s;
}
.glossar-card:hover { border-color: var(--accent); }
.glossar-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.glossar-card p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font);
  transition: background .15s;
}
.faq-q:hover { background: var(--bg-subtle); }
.faq-q svg { flex-shrink: 0; width: 16px; height: 16px; stroke: var(--text-muted); transition: transform .2s; }
.faq-q.open svg { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 20px 18px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}
.faq-a.open { display: block; }

/* ---- FOOTER ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
  margin-top: 80px;
  background: var(--bg-subtle);
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 12px;
}
.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.footer-col nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col nav a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s;
}
.footer-col nav a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  max-width: var(--max);
  margin: 0 auto;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---- TRUST SECTION ---- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.trust-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.trust-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}
.trust-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.trust-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}
@media (max-width: 768px) {
  .trust-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---- MITTEL COMPARISON TABLE ---- */
.mittel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.mittel-table thead th {
  background: var(--text);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.mittel-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}
.mittel-table tbody tr:last-child { border-bottom: none; }
.mittel-table tbody tr:hover { background: var(--bg-subtle); }
.mittel-table tbody td {
  padding: 12px 16px;
  color: var(--text);
  vertical-align: top;
}

/* ---- SCHLAFPHASEN VISUAL ---- */
.phase-timeline {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 100px;
  padding: 0 8px;
}
.phase-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.phase-step-bar {
  width: 100%;
  background: var(--phase-color, var(--accent));
  border-radius: 4px 4px 0 0;
  transition: opacity .2s;
}
.phase-step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}
.phase-step-label small {
  font-size: 10px;
  font-weight: 400;
}
.phasen-facts {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.phasen-fact {
  text-align: center;
}
.fact-num {
  display: block;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--accent);
  line-height: 1;
}
.fact-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ---- SUMMARY BOX ---- */
.summary-box {
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
}
.summary-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--accent);
  margin-bottom: 14px;
}
.summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.summary-list li {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}
.summary-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---- TREATMENT BOX ---- */
.treatment-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
}
.treatment-title {
  background: var(--text);
  color: #fff;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.treatment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.treatment-item {
  padding: 16px 20px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.treatment-item:nth-child(even) { border-right: none; }
.treatment-type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: 4px;
}
.treatment-desc { font-size: 13px; color: var(--text); line-height: 1.5; }

/* ---- CARD THUMBNAIL ---- */
.card-thumb {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  aspect-ratio: 16 / 9;
  background: var(--bg-subtle);
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
  display: block;
}
.content-card:hover .card-thumb img {
  transform: scale(1.03);
}

/* ---- ARTICLE HERO IMAGE ---- */
.article-hero-img {
  padding: 24px 0 0;
  background: var(--bg);
}
.article-hero-img .container {
  max-width: var(--max);
}
.article-hero-img img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-md);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .hero { padding: 56px 0 48px; }
  .stats-bar { gap: 24px; }
  .section { padding: 48px 0; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}

/* ---- SEARCH ---- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}
.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: color .15s, background .15s;
}
.search-btn:hover { color: var(--text); background: var(--bg-subtle); }

.search-overlay {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 98;
  background: #fff;
  border-bottom: 2px solid var(--border);
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
}
.search-overlay.open { display: block; }
body.search-open::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.25);
  z-index: 97;
  pointer-events: none;
}
.search-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px 24px 20px;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  transition: border-color .15s;
}
.search-bar:focus-within { border-color: var(--accent); }
.search-bar svg { flex-shrink: 0; color: var(--text-muted); }
.search-bar input {
  flex: 1;
  border: none;
  background: none;
  font-size: 16px;
  color: var(--text);
  outline: none;
  font-family: inherit;
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.search-close:hover { color: var(--text); background: var(--border); }

.search-live { margin-top: 8px; }
.sres-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: background .12s;
}
.sres-item:hover { background: var(--bg-subtle); }
.sres-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  margin-top: 2px;
  flex-shrink: 0;
  min-width: 72px;
  text-align: center;
}
.sres-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sres-title { font-size: 14px; font-weight: 600; line-height: 1.3; }
.sres-short { font-size: 12px; color: var(--text-muted); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sres-all {
  display: block;
  text-align: center;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  border-top: 1px solid var(--border);
  margin-top: 4px;
  text-decoration: none;
  border-radius: 8px;
  transition: background .12s;
}
.sres-all:hover { background: var(--accent-light); }
.sres-empty { text-align: center; padding: 16px 12px; color: var(--text-muted); font-size: 14px; }
.sres-hint { text-align: center; padding: 12px; color: var(--text-muted); font-size: 13px; }

/* ---- SEARCH RESULTS PAGE ---- */
.suche-header { margin-bottom: 28px; }
.suche-header .page-title { margin-bottom: 4px; }
.suche-form {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  max-width: 600px;
}
.suche-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  background: #fff;
  transition: border-color .15s;
}
.suche-input-wrap:focus-within { border-color: var(--accent); }
.suche-input-wrap svg { color: var(--text-muted); flex-shrink: 0; }
.suche-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
}
.suche-empty { padding: 48px 0; color: var(--text-muted); }
.suche-group { margin-bottom: 36px; }
.suche-group-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.suche-group-count {
  font-size: 11px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1px 7px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}
.suche-result-item {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.suche-result-item:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(26,26,46,.06);
}
.suche-result-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.suche-result-short { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
