/* hipobuyguide.click — gemeinsames Stylesheet für die statischen Artikel */
:root {
  --bg: #f6f4f2;
  --bg-soft: #fbf9f7;
  --line: #e4ded8;
  --ink: #1f1d1a;
  --ink-soft: #57514b;
  --ink-muted: #7a736c;
  --primary: #565f83;
  --primary-dark: #414a68;
  --accent: #c08f8a;
  --sage: #8fa08c;
  --dark: rgba(12, 17, 25, 0.88);
  --font-heading: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --shell: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary); }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 500; letter-spacing: -0.015em; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--ink);
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--dark);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(9, 12, 18, 0.22);
}

@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .site-header { background: #0e131b; }
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #f7f5f2;
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  padding: 6px 2px;
}
.brand:hover, .brand:focus-visible { color: #fff; text-decoration: none; }
.brand i { color: var(--accent); font-size: 18px; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 6px; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(247, 245, 242, 0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: 6px;
  white-space: nowrap;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
}
.nav-link:hover, .nav-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  outline: none;
}
.nav-link:focus-visible { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.65); }

.cat-wrap { position: relative; }

.cat-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 420px;
  max-width: 78vw;
  background: #10151d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 24px 50px rgba(5, 8, 13, 0.45);
  padding: 12px;
  display: none;
}
.cat-panel[data-open="true"] { display: block; }
.cat-panel h2 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 245, 242, 0.55);
  margin: 4px 6px 10px;
  font-weight: 600;
}
.cat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.cat-list a {
  color: rgba(247, 245, 242, 0.88);
  text-decoration: none;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-list a:hover, .cat-list a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
}

.header-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #2a1c1a;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 6px;
  white-space: nowrap;
}
.header-cta:hover { background: #cf9f9a; color: #2a1c1a; text-decoration: none; }
.header-cta i { font-size: 15px; }

/* ---------- Breadcrumb + Artikel ---------- */
.wrap { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }

.breadcrumb {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px 24px 0;
  font-size: 13px;
  color: var(--ink-muted);
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: #b6aea6; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); }

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 26px 24px 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
  background: #eceef4;
  border: 1px solid #dcdfe9;
  padding: 5px 11px;
  border-radius: 999px;
  margin: 8px 0 18px;
}

.article h1 {
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.16;
  margin: 0 0 18px;
}

.lead {
  font-size: 18px;
  line-height: 1.66;
  color: var(--ink-soft);
  margin: 0 0 26px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--ink-muted);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }

figure { margin: 0 0 30px; }
figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: #e8e3de;
  object-fit: cover;
}
figcaption { font-size: 12.5px; color: var(--ink-muted); margin-top: 9px; line-height: 1.55; }

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 34px;
}
.toc h2 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 10px;
  font-weight: 700;
}
.toc ol { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.9; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--primary); text-decoration: underline; }

.article h2 {
  font-size: clamp(22px, 2.7vw, 28px);
  line-height: 1.26;
  margin: 42px 0 14px;
  scroll-margin-top: 92px;
}
.article h3 { font-size: 18px; margin: 26px 0 8px; }
.article p { margin: 0 0 16px; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 18px; }
.article li { margin-bottom: 8px; }
.article strong { font-weight: 700; }

.callout {
  border-left: 3px solid var(--sage);
  background: #f0f3ee;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 26px 0;
  font-size: 15px;
  color: #3c463a;
}
.callout strong { color: #2f3a2d; }

.table-scroll { overflow-x: auto; margin: 22px 0 26px; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; background: #fff; }
caption { text-align: left; font-size: 12.5px; color: var(--ink-muted); padding: 10px 14px 0; caption-side: top; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: #f1efec; font-family: var(--font-body); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); font-weight: 700; }
tbody tr:last-child td { border-bottom: none; }

.checklist { list-style: none; padding: 0; margin: 20px 0 26px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.checklist li { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; margin: 0; }
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: "\ea5e"; font-family: "remixicon"; color: var(--sage); font-size: 17px; line-height: 1.4; }

.section-note {
  font-size: 13px;
  color: var(--ink-muted);
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  margin-top: 30px;
}

.related {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 40px 0 28px;
}
.related h2 { margin: 0 0 14px; font-size: 20px; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { margin-bottom: 10px; }
.related li:last-child { margin-bottom: 0; }
.related a { font-size: 15px; font-weight: 600; color: var(--primary-dark); text-decoration: none; }
.related a:hover { text-decoration: underline; }

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--primary);
  color: #fbf9f7;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 6px;
  margin: 6px 0 46px;
  white-space: nowrap;
}
.back-home:hover { background: var(--primary-dark); color: #fff; text-decoration: none; }

/* ---------- Fußbereich ---------- */
.site-footer {
  background: #eae4de;
  border-top: 1px solid #ddd5ce;
  padding: 46px 0 92px;
  margin-top: 26px;
}
.footer-inner { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 34px; justify-content: space-between; }
.footer-brand { max-width: 360px; }
.footer-brand .brand { color: var(--ink); font-size: 22px; padding: 0; }
.footer-brand .brand i { color: var(--accent); }
.footer-brand p { font-size: 13.5px; color: var(--ink-soft); margin: 10px 0 0; line-height: 1.7; }
.footer-col h3 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 12px;
  font-weight: 700;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; max-width: 520px; }
.footer-links a { font-size: 13.5px; color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; color: var(--ink); }
.footer-note {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid #d9d1c9;
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* ---------- Mobile Dock + Sheet ---------- */
.dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--dark);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .dock { background: #0e131b; }
}
.dock button, .dock a {
  appearance: none;
  background: transparent;
  border: none;
  color: rgba(247, 245, 242, 0.82);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  padding: 6px 2px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}
.dock i { font-size: 19px; line-height: 1; }
.dock button:hover, .dock a:hover, .dock button:focus-visible, .dock a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: none;
}

.sheet-root { position: fixed; inset: 0; z-index: 120; display: none; }
.sheet-root[data-open="true"] { display: block; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(8, 11, 16, 0.55); }
.sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 85dvh;
  display: flex;
  flex-direction: column;
  background: #141a22;
  color: #f4f1ee;
  border-radius: 18px 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 -20px 50px rgba(4, 7, 11, 0.5);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.sheet-root[data-open="true"] .sheet-panel { transform: translateY(0); }
.sheet-handle { width: 44px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.3); margin: 10px auto 2px; flex: none; }
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  flex: none;
}
.sheet-head h2 { font-size: 19px; margin: 0; color: #f7f5f2; }
.sheet-close {
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f7f5f2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  flex: none;
}
.sheet-close:hover { background: rgba(255, 255, 255, 0.18); }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 20px calc(26px + env(safe-area-inset-bottom)); }
.sheet-body h3 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 245, 242, 0.55);
  margin: 14px 0 10px;
}
.sheet-body h3:first-child { margin-top: 0; }
.sheet-links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.sheet-links a {
  color: rgba(247, 245, 242, 0.9);
  text-decoration: none;
  font-size: 13.5px;
  padding: 10px 12px;
  border-radius: 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
}
.sheet-links a:hover, .sheet-links a:focus-visible { background: rgba(255, 255, 255, 0.14); color: #fff; outline: none; }
.sheet-links.one { grid-template-columns: 1fr; }

body.sheet-open { overflow: hidden; }

@media (min-width: 900px) {
  .dock, .sheet-root { display: none !important; }
  .site-footer { padding-bottom: 46px; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-inner { gap: 12px; height: 60px; padding: 0 16px; }
  .header-cta span { display: none; }
  .header-cta { padding: 10px 12px; }
  .breadcrumb { padding: 14px 16px 0; font-size: 12px; }
  .article { padding: 18px 16px 8px; }
  .article-meta { font-size: 12px; gap: 6px 14px; }
  .toc { padding: 15px 16px; }
  .footer-inner { padding: 0 16px; }
  .site-footer { padding-top: 34px; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sheet-panel { transition: none; }
}