/* Verbraucherschutz Verband Deutschland – Stylesheet
   Markenfarbe: Dunkelrot. */

:root {
  --primary: #8b1e2d;   /* Dunkelrot – Primär */
  --primary-light: #a83246;   /* Akzent heller */
  --primary-lighter: #c2566a;
  --primary-dark: #6e1421;
  --dark1: #2b2b2b;
  --dark2: #5c5c5c;
  --dark3: #7c7c7c;
  --light1: #fafafa;
  --light2: #c8c8c8;
  --white2: #f2f2f2;
  --white3: #e6e6e6;
  --max: 1200px;
  --font: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--dark1);
  background: #fff;
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--primary); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; display: block; }
mark { background: #fff3a0; color: inherit; padding: 0 1px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--primary); color: #fff; font-size: 14px; }
.topbar .wrap { display: flex; justify-content: flex-end; gap: 22px; height: 38px; align-items: center; }
.topbar a { color: #fff; text-decoration: none; opacity: .92; }
.topbar a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 0 var(--white3); }
.header-main { display: flex; align-items: center; gap: 28px; padding: 16px 20px; max-width: var(--max); margin: 0 auto; }
.brand { display: flex; flex-direction: column; text-decoration: none; flex-shrink: 0; line-height: 1.15; }
.brand strong { display: block; color: var(--dark1); font-size: 21px; letter-spacing: .2px; }
.brand span { color: var(--primary); font-weight: 700; font-size: 14px; }

/* ---------- Feather-Icons (Inline-SVG) ---------- */
.icon { width: 1em; height: 1em; stroke: currentColor; stroke-width: 2; fill: none;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: -.125em; flex-shrink: 0; }

/* ---------- Search ---------- */
.search { margin-left: auto; position: relative; display: flex; align-items: center;
  border: 2px solid var(--primary); border-radius: 4px; max-width: 340px; width: 100%; background: #fff; }
.search input { border: 0; padding: 9px 12px; flex: 1; font-size: 15px; outline: none; background: transparent; }
.search button { border: 0; background: var(--primary); color: #fff; padding: 0 16px; height: 40px; cursor: pointer; display: grid; place-items: center; align-self: stretch; }
.search button .icon { width: 18px; height: 18px; }
.search button:hover { background: var(--primary-light); }
.search-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff;
  border: 1px solid var(--white3); border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.15);
  overflow: hidden; z-index: 200;
}
.suggest-item { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px; text-decoration: none; border-bottom: 1px solid var(--white2); }
.suggest-item:last-child { border-bottom: 0; }
.suggest-item:hover { background: var(--light1); }
.suggest-tag { font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; }
.suggest-title { color: var(--dark1); font-size: 15px; line-height: 1.3; }
.suggest-empty { padding: 14px; color: var(--dark3); font-size: 14px; }

/* ---------- Primary nav with dropdowns ---------- */
.mainnav { background: var(--white2); border-top: 1px solid var(--white3); }
.mainnav > ul { list-style: none; margin: 0 auto; padding: 0; max-width: var(--max); display: flex; flex-wrap: wrap; }
.mainnav .has-sub { position: relative; }
.mainnav > ul > li > a {
  display: block; padding: 14px 18px; color: var(--dark1); text-decoration: none;
  font-weight: 700; font-size: 16px; border-bottom: 3px solid transparent; white-space: nowrap;
}
.mainnav > ul > li > a:hover, .mainnav .has-sub:hover > a { color: var(--primary); border-bottom-color: var(--primary-light); }
.mainnav > ul > li > a.active { color: var(--primary); border-bottom-color: var(--primary); }
.caret { display: inline-flex; opacity: .65; }
.caret .icon { width: 14px; height: 14px; }

.submenu {
  list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0;
  min-width: 260px; background: #fff; border: 1px solid var(--white3);
  box-shadow: 0 12px 30px rgba(0,0,0,.16); border-radius: 0 0 8px 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .15s ease; z-index: 200;
}
.mainnav .has-sub:hover > .submenu, .mainnav .has-sub.open > .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.submenu a { display: block; padding: 9px 18px; color: var(--dark2); text-decoration: none; font-size: 15px; }
.submenu a:hover { background: var(--light1); color: var(--primary); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 14px; color: var(--dark3); padding: 14px 0; }
.breadcrumb a { color: var(--dark2); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; color: var(--light2); }

/* ---------- Tags ---------- */
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: .6px; }
.tag-lg { margin-bottom: 6px; font-size: 13px; }

/* ---------- Article ---------- */
.article { max-width: 820px; margin: 0 auto; padding-bottom: 40px; }
.article h1 { font-size: 40px; line-height: 1.15; margin: 6px 0 20px; color: var(--dark1); }
.teaser { font-size: 21px; line-height: 1.5; color: var(--dark2); margin: 0 0 26px; }
.hero-img { position: relative; border-radius: 8px; overflow: hidden; margin: 0 0 28px; background: var(--white2); }
.hero-img img { width: 100%; max-height: 460px; object-fit: cover; }
.hero-img .credit { position: absolute; bottom: 0; right: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 3px 8px; }

/* Callout / Das Wichtigste */
.callout { background: #fbecef; border-left: 5px solid var(--primary); border-radius: 6px; padding: 20px 24px; margin: 0 0 30px; }
.callout h2 { margin: 0 0 12px; font-size: 19px; color: var(--primary-dark); }
.callout ul { margin: 0; padding-left: 20px; }
.callout li { margin: 7px 0; }

/* TOC */
.toc { background: var(--white2); border-left: 4px solid var(--primary); border-radius: 4px; padding: 18px 22px; margin: 0 0 32px; }
.toc h2 { margin: 0 0 10px; font-size: 18px; color: var(--dark1); }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 6px 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.article h2.section { font-size: 27px; margin: 36px 0 12px; color: var(--dark1); scroll-margin-top: 150px; }
.article p { margin: 0 0 18px; }

/* ---------- Schritt-für-Schritt-Anleitung ---------- */
.guide { margin: 10px 0 4px; }
.steps { list-style: none; counter-reset: step; margin: 18px 0 0; padding: 0; }
.steps li { position: relative; padding: 0 0 22px 64px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 44px; height: 44px;
  background: var(--primary); color: #fff; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px; font-weight: 700;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px;
  width: 2px; background: var(--white3);
}
.steps li h3 { margin: 9px 0 4px; font-size: 18px; color: var(--dark1); }
.steps li p { margin: 0; color: var(--dark2); }

/* ---------- Hilfe- / Kontaktbox ---------- */
.help-box {
  display: flex; gap: 20px; align-items: flex-start;
  background: #fbecef; border: 1px solid #f0c9d1; border-left: 5px solid var(--primary);
  border-radius: 8px; padding: 24px 26px; margin: 34px 0 0;
}
.help-icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: #fff; display: grid; place-items: center; }
.help-icon .icon { width: 26px; height: 26px; }
.help-body h2 { margin: 0 0 8px; font-size: 22px; color: var(--primary-dark); }
.help-body p { margin: 0 0 16px; color: var(--dark2); }
.help-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--primary); color: #fff; text-decoration: none;
  padding: 12px 20px; border-radius: 6px; font-weight: 700; font-size: 16px;
}
.help-btn:hover { background: var(--primary-light); color: #fff; }
.help-btn .icon { width: 18px; height: 18px; }

.toolbar { display: flex; gap: 18px; border-top: 1px solid var(--white3); border-bottom: 1px solid var(--white3);
  padding: 12px 0; margin: 34px 0 0; font-size: 14px; color: var(--dark2); }
.toolbar a { color: var(--dark2); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.toolbar a .icon { width: 16px; height: 16px; }
.toolbar a:hover { color: var(--primary); }

/* ---------- Related cards ---------- */
.related { background: var(--light1); border-top: 1px solid var(--white3); padding: 44px 0; margin-top: 20px; }
.related h2 { max-width: var(--max); margin: 0 auto 26px; padding: 0 20px; font-size: 28px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--white3); border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; text-decoration: none; color: inherit; }
.card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.13); transform: translateY(-3px); }
.card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--white2); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 14px 16px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 16px; margin: 0; line-height: 1.3; color: var(--dark1); }
.card p { font-size: 13px; color: var(--dark2); margin: 0; }

/* ---------- Search page ---------- */
.search-page { max-width: 100%; margin: 20px 0 8px; border-width: 2px; }
.search-page button { width: auto; padding: 0 22px; font-size: 15px; }
.search-count { color: var(--dark3); font-size: 15px; margin: 6px 0 24px; }
.search-results { display: flex; flex-direction: column; gap: 18px; }
.result { display: flex; gap: 18px; border: 1px solid var(--white3); border-radius: 8px; overflow: hidden;
  text-decoration: none; color: inherit; transition: box-shadow .15s; }
.result:hover { box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.result-thumb { width: 200px; flex-shrink: 0; background: var(--white2); }
.result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.result-body { padding: 16px 18px; }
.result-body h3 { margin: 4px 0 8px; font-size: 19px; color: var(--dark1); }
.result-body p { margin: 0; color: var(--dark2); font-size: 15px; }
.no-results { color: var(--dark2); background: var(--white2); padding: 24px; border-radius: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark1); color: var(--light1); padding: 48px 0 24px; font-size: 15px; margin-top: 40px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-cols h4 { color: #fff; font-size: 16px; margin: 0 0 14px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: 8px 0; }
.footer-cols a { color: var(--light2); text-decoration: none; }
.footer-cols a:hover { color: var(--primary-lighter); }
.social { display: flex; gap: 12px; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.12);
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; }
.social a:hover { background: var(--primary); }
.social .icon { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 36px; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--light2); }
.footer-bottom a { color: var(--light2); text-decoration: none; }
.footer-bottom a:hover { color: var(--primary-lighter); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .mainnav > ul > li > a { padding: 14px 13px; font-size: 15px; } }
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .header-main { flex-wrap: wrap; }
  .search { margin-left: 0; max-width: 100%; order: 3; }
  .article h1 { font-size: 31px; }
  .mainnav > ul { flex-direction: column; }
  .mainnav .submenu { position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; padding: 0; background: #fff; display: none; }
  .mainnav .has-sub.open > .submenu { display: block; }
  .mainnav .submenu a { padding-left: 36px; }
  .result-thumb { width: 120px; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .topbar { display: none; }
  .result { flex-direction: column; }
  .result-thumb { width: 100%; aspect-ratio: 16/9; }
}
