/* ============================================================
   datenrettung-guide.de – Design System
   Grundton: ruhig, technisch, klar – bewusst reduziert für
   Nutzer in Stresssituationen (Datenverlust). Kein Overload.
   ============================================================ */

:root {
  --ink:            #10151c;
  --ink-2:          #1a222c;
  --ink-3:          #232d3a;
  --accent:         #376f9f;
  --accent-hover:   #2b587f;
  --accent-light:   #eaf1f7;
  --accent-muted:   #b9d1e4;
  --ok:             #236b44;
  --warn:           #8a5a16;
  --white:          #ffffff;
  --paper:          #f6f7f9;
  --line:           #e3e6ea;
  --line-dark:      #2c3644;
  --text:           #1b222b;
  --muted:          #5b6472;
  --radius:         10px;
  --radius-sm:      7px;
  --radius-lg:      16px;
  --shadow:         0 2px 14px rgba(16,21,28,.06);
  --shadow-md:      0 6px 28px rgba(16,21,28,.10);
  --shadow-lg:      0 12px 48px rgba(16,21,28,.14);
  --transition:     .15s ease;
  --mono:           'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
ul, ol { list-style: none; }
svg { display: block; }

/* Icons – fineline, stroke-basiert, keine Emojis */
.icon {
  width: 1em; height: 1em;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.125em;
}

/* ── Typography ───────────────────────────────── */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; color: var(--text); letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4vw, 2.85rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.15rem; line-height: 1.7; color: var(--muted); }

/* Kleines technisches Label – Monospace, dezent */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-muted);
}

/* ── Layout ───────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
.container--wide   { max-width: 1320px; margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 4.5rem 0; }
.section--sm { padding: 2.75rem 0; }
.section--lg { padding: 6rem 0; }
.section--dark { background: var(--ink); color: var(--white); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark .lead { color: rgba(255,255,255,.7); }
.section--paper { background: var(--paper); }

/* ── Grid ─────────────────────────────────────── */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .72rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .93rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); color: var(--white); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--white); border-color: rgba(255,255,255,.18); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--accent-light); color: var(--ink); }
.btn-lg { padding: .9rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }
.btn-block-mobile { width: auto; }

/* Affiliate-Kennzeichnung */
.ad-label {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin-top: .5rem;
}
.ad-label--dark { color: rgba(255,255,255,.4); }
.cta-btn-wrap { display: inline-flex; flex-direction: column; align-items: center; }

/* In-Content CTA Card */
.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: var(--accent-light);
  border: 1px solid var(--accent-muted);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.inline-cta__text { flex: 1; min-width: 220px; }
.inline-cta__title { font-weight: 700; color: var(--text); margin-bottom: .2rem; }
.inline-cta__sub { font-size: .85rem; color: var(--muted); }
.inline-cta__action { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }

/* ── Cards ────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: var(--accent-muted); box-shadow: var(--shadow); }
.card--accent { background: var(--accent-light); border-color: var(--accent-muted); }
.card--flat { box-shadow: none; }

.icon-feature {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.icon-feature .icon { width: 20px; height: 20px; }
.icon-feature--dark { background: rgba(62,124,177,.16); color: var(--accent-muted); }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .28rem .65rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 600;
  background: var(--paper);
  color: var(--muted);
  border: 1px solid var(--line);
}
.badge-accent { background: var(--accent-light); color: var(--accent-hover); border-color: var(--accent-muted); }
.badge-ok { background: #e8f5ee; color: var(--ok); border-color: #bfe3cf; }
.badge-warn { background: #faf1e3; color: var(--warn); border-color: #ecd3ab; }

/* ── Header / Navigation ──────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--ink);
  box-shadow: 0 2px 16px rgba(0,0,0,.18);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 1.5rem; }
.site-logo {
  font-size: 1.02rem; font-weight: 800; color: var(--white);
  display: flex; align-items: center; gap: .55rem;
  white-space: nowrap; flex-shrink: 0;
}
.site-logo:hover { color: var(--accent-muted); }
.logo-mark {
  width: 27px; height: 27px;
  background: var(--accent);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--white);
}
.logo-mark .icon { width: 15px; height: 15px; stroke-width: 2.4; }
.logo-mark--sm { width: 21px; height: 21px; border-radius: 5px; }
.logo-mark--sm .icon { width: 12px; height: 12px; }

.site-nav { display: flex; align-items: center; gap: .2rem; list-style: none; }
.site-nav > li { position: relative; }
.site-nav > li > a {
  display: flex; align-items: center; gap: .3rem;
  padding: .5rem .8rem;
  color: rgba(255,255,255,.82);
  font-size: .89rem; font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.site-nav > li > a:hover, .site-nav > li > a.active { color: var(--white); background: rgba(255,255,255,.08); }
.nav-cta { background: var(--accent) !important; color: var(--white) !important; font-weight: 600 !important; padding: .45rem 1rem !important; }
.nav-cta:hover { background: var(--accent-hover) !important; color: var(--white) !important; }
.dropdown-arrow { opacity: .65; display: inline-flex; align-items: center; }
.dropdown-arrow .icon { width: 13px; height: 13px; stroke-width: 2.2; }

.has-dropdown { position: relative; }
.dropdown-menu {
  visibility: hidden; opacity: 0; pointer-events: none;
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .5rem; min-width: 230px; z-index: 100;
  border: 1px solid var(--line);
  transition: opacity .15s ease, visibility .15s ease;
  transition-delay: .3s;
}
.has-dropdown:hover .dropdown-menu, .has-dropdown:focus-within .dropdown-menu {
  visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s;
}
.dropdown-menu::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.dropdown-menu li a { display: block; padding: .55rem 1rem; color: var(--text); font-size: .87rem; border-radius: var(--radius-sm); transition: all var(--transition); }
.dropdown-menu li a:hover { background: var(--accent-light); color: var(--accent-hover); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .5rem; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--transition); }

/* ── Hero ─────────────────────────────────────── */
.hero { background: var(--ink); position: relative; overflow: hidden; padding: 4.5rem 0 5rem; }
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 75% 20%, rgba(62,124,177,.16) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }
.hero__tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent-muted);
  background: rgba(62,124,177,.12);
  border: 1px solid rgba(62,124,177,.3);
  padding: .35rem .75rem; border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero h1 span { color: var(--accent-muted); }
.hero .lead { color: rgba(255,255,255,.68); margin-bottom: 1.75rem; max-width: 46ch; }
.hero__actions { display: flex; gap: .85rem; flex-wrap: wrap; }

.hero__panel {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.hero__panel-title { font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 1rem; }
.scenario-link {
  display: flex; align-items: center; gap: .8rem;
  padding: .75rem .6rem;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background var(--transition);
}
.scenario-link:last-child { border-bottom: none; }
.scenario-link:hover { background: rgba(255,255,255,.05); color: var(--white); }
.scenario-link .icon-feature { background: rgba(62,124,177,.16); color: var(--accent-muted); flex-shrink: 0; }
.scenario-link__text { flex: 1; }
.scenario-link__title { font-size: .9rem; font-weight: 600; }
.scenario-link__sub { font-size: .78rem; color: rgba(255,255,255,.45); }

/* ── Section titles ───────────────────────────── */
.section-title { max-width: 640px; margin: 0 auto 2.75rem; text-align: center; }
.section-title p { color: var(--muted); margin-top: .6rem; }
.section-title--left { margin: 0 0 2.5rem; text-align: left; }

/* ── Trustbox ─────────────────────────────────── */
.trustbox { display: flex; gap: 1.5rem; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; }
.trustbox__avatar { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid var(--accent-light); }
.trustbox__avatar img { width: 100%; height: 100%; object-fit: cover; }
.trustbox__name { font-weight: 800; font-size: 1.05rem; color: var(--text); }
.trustbox__role { font-size: .85rem; color: var(--accent); font-weight: 600; margin-bottom: .6rem; }
.trustbox__text { color: var(--muted); font-size: .93rem; }
.trustbox__creds { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }

/* ── Table ────────────────────────────────────── */
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.compare-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.compare-table th, .compare-table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.compare-table th { background: var(--paper); font-weight: 700; color: var(--text); white-space: nowrap; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .row-highlight td { background: var(--accent-light); }
.compare-table .name-cell { font-weight: 700; color: var(--text); }

/* ── Breadcrumb ───────────────────────────────── */
.breadcrumb-bar { background: var(--paper); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: .4rem; padding: .7rem 0; font-size: .82rem; color: var(--muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { width: 13px; height: 13px; color: var(--line); flex-shrink: 0; }
.breadcrumb li:last-child { color: var(--text); font-weight: 600; }

/* ── Article ──────────────────────────────────── */
.article-body h2 { margin-top: 2.25rem; margin-bottom: .85rem; max-width: 68ch; }
.article-body h3 { margin-top: 1.75rem; margin-bottom: .65rem; max-width: 68ch; }
.article-body p { color: var(--text); margin-bottom: 1.1rem; max-width: 68ch; text-wrap: pretty; }
.article-body ul, .article-body ol { margin: 0 0 1.1rem 1.3rem; color: var(--text); max-width: 68ch; }
.article-body li { margin-bottom: .5rem; }
.article-body a { text-decoration: underline; text-decoration-color: var(--accent-muted); text-underline-offset: 2px; }

.step-list { counter-reset: step; margin: 1.5rem 0; }
.step-item { display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.step-item:first-child { border-top: none; }
.step-num {
  counter-increment: step;
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%; background: var(--ink); color: var(--white);
  font-family: var(--mono); font-size: .82rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.step-num::before { content: counter(step); }
.step-item h4 { margin-bottom: .3rem; }
.step-item p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Callout / Warnbox */
.callout {
  display: flex; gap: .9rem; align-items: flex-start;
  background: var(--accent-light); border: 1px solid var(--accent-muted);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem; margin: 1.5rem 0;
}
.callout--warn { background: #faf1e3; border-color: #ecd3ab; }
.callout .icon { width: 19px; height: 19px; color: var(--accent); flex-shrink: 0; margin-top: .15rem; }
.callout--warn .icon { color: var(--warn); }
.callout p { margin: 0; font-size: .92rem; color: var(--text); max-width: none; }
.callout p:first-child strong { color: var(--text); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0; background: none; border: none; cursor: pointer;
  font-size: 1rem; font-weight: 600; color: var(--text); text-align: left;
}
.faq-question .icon { width: 17px; height: 17px; color: var(--muted); transition: transform var(--transition); flex-shrink: 0; }
.faq-question.open .icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-answer.open { max-height: 600px; padding-bottom: 1.1rem; }
.faq-answer p { color: var(--muted); font-size: .93rem; }

/* ── CTA Section ──────────────────────────────── */
.cta-section { background: var(--ink); padding: 3.5rem 0; text-align: center; }
.cta-section__inner { max-width: 620px; margin: 0 auto; }
.cta-section h2 { color: var(--white); margin-bottom: .75rem; }
.cta-section p { color: rgba(255,255,255,.65); margin-bottom: 1.75rem; }

/* Leadgen box */
.leadgen-box { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; background: var(--ink); border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; color: var(--white); flex-wrap: wrap; }
.leadgen-box h3 { color: var(--white); }
.leadgen-box p { color: rgba(255,255,255,.6); margin: 0; font-size: .88rem; }

/* ── Footer ───────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 3.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-about { max-width: 300px; }
.footer-logo { display: flex; align-items: center; gap: .55rem; font-weight: 800; color: var(--white); font-size: 1rem; margin-bottom: .85rem; }
.footer-about p { font-size: .82rem; color: rgba(255,255,255,.45); line-height: 1.6; }
.footer-nav h4 { color: var(--white); font-size: .85rem; margin-bottom: 1rem; }
.footer-nav ul li { margin-bottom: .6rem; }
.footer-nav a { color: rgba(255,255,255,.55); font-size: .87rem; }
.footer-nav a:hover { color: var(--white); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .8rem; color: rgba(255,255,255,.4); flex-wrap: wrap; gap: 1rem; }
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: var(--white); }
.footer-legal { display: flex; gap: 1.25rem; }
.footer-affiliate { background: var(--ink-2); border-top: 1px solid rgba(255,255,255,.06); }
.footer-affiliate p { padding: .9rem 0; font-size: .78rem; color: rgba(255,255,255,.4); margin: 0; }

/* ── Utility ──────────────────────────────────── */
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }
.text-sm { font-size: .85rem; }
.font-bold { font-weight: 700; }
.mt-0 { margin-top: 0; }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  .header-inner nav {
    position: fixed; top: 62px; left: 0; right: 0; bottom: 0;
    background: var(--ink);
    padding: 1rem 1.5rem 2rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .25s ease;
  }
  nav.open { transform: translateX(0); }
  nav .site-nav { flex-direction: column; align-items: stretch; gap: 0; }
  nav .site-nav > li > a { padding: .8rem .5rem; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  nav .site-nav > li:last-child > a { border-bottom: none; }
  nav .has-dropdown .dropdown-menu { position: static; box-shadow: none; border: none; background: rgba(255,255,255,.05); border-radius: var(--radius-sm); margin: .25rem 0 .5rem; padding: .25rem 0; visibility: visible; opacity: 1; pointer-events: auto; transition: none; }
  nav .dropdown-menu li a { color: rgba(255,255,255,.7); padding: .6rem 1rem; border-radius: 0; }
  nav .dropdown-menu li a:hover { color: var(--white); background: rgba(255,255,255,.06); }
  .nav-cta { margin-top: .75rem; justify-content: center; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .leadgen-box { flex-direction: column; align-items: flex-start; }
  .btn-block-mobile { width: 100%; justify-content: center; }
}
