/* ============================================================
   webspace-und-domain.de · LAYOUT 3
   SOFT GLASS / NEO-MINT TECH
   Helles, freundliches Tech-Startup-Layout mit Glasmorphismus,
   abgerundeten Formen, Pill-Buttons und farbigen Hintergrund-Blobs.
   Akzentfarbe einheitlich GRÜN/Mint (#10b981) über alle Bereiche.
   ============================================================ */

/* ---- Design-Tokens ---- */
:root {
  --c-primary: #10b981;          /* default / start -> mint */
  --c-primary-deep: #0d9488;
  --c-primary-soft: rgba(16,185,129,.14);
  --c-primary-glow: rgba(16,185,129,.40);

  --bg: #f1f5f9;                 /* sehr helles, leicht getöntes Slate */
  --bg-tint: #eef2f7;
  --ink: #0f172a;                /* fast-schwarzes Slate für Text */
  --ink-soft: #475569;
  --ink-mute: #64748b;
  --line: rgba(15,23,42,.08);

  /* Glas-Flächen */
  --glass: rgba(255,255,255,.55);
  --glass-strong: rgba(255,255,255,.72);
  --glass-line: rgba(255,255,255,.65);
  --blur: 16px;

  --radius: 22px;
  --radius-lg: 30px;
  --radius-pill: 999px;

  --shadow-sm: 0 4px 16px rgba(15,23,42,.06);
  --shadow: 0 14px 40px rgba(15,23,42,.10);
  --shadow-lg: 0 28px 70px rgba(15,23,42,.14);
  --shadow-glow: 0 18px 50px var(--c-primary-glow);

  --font-head: 'Quicksand', 'Nunito', system-ui, sans-serif;
  --font-alt: 'Nunito', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --maxw: 1180px;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --ease: cubic-bezier(.22,1,.36,1);
}

/* data-section schaltet die Primärfarbe um */
/* Einheitlich GRÜN/Mint über alle Themenbereiche (auf Kundenwunsch) */
body[data-section="domains"]    { --c-primary:#10b981; --c-primary-deep:#0d9488; --c-primary-soft:rgba(16,185,129,.14); --c-primary-glow:rgba(16,185,129,.40); }
body[data-section="webhosting"] { --c-primary:#10b981; --c-primary-deep:#0d9488; --c-primary-soft:rgba(16,185,129,.14); --c-primary-glow:rgba(16,185,129,.40); }
body[data-section="recht"]      { --c-primary:#10b981; --c-primary-deep:#0d9488; --c-primary-soft:rgba(16,185,129,.14); --c-primary-glow:rgba(16,185,129,.40); }
body[data-section="start"]      { --c-primary:#10b981; --c-primary-deep:#0d9488; --c-primary-soft:rgba(16,185,129,.14); --c-primary-glow:rgba(16,185,129,.40); }

/* ---- Reset / Basis ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ---- Farbige Hintergrund-Blobs ---- */
body::before, body::after {
  content: "";
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  pointer-events: none;
  transition: background .6s var(--ease);
}
body::before {
  width: 46vw; height: 46vw;
  top: -10vw; right: -8vw;
  background: radial-gradient(circle at 30% 30%, var(--c-primary-glow), transparent 70%);
}
body::after {
  width: 40vw; height: 40vw;
  bottom: -12vw; left: -10vw;
  background: radial-gradient(circle at 60% 40%, rgba(13,148,136,.28), transparent 70%);
}
/* dezenter dritter Tönungs-Layer */
.site-main::before {
  content: "";
  position: fixed;
  z-index: -2;
  width: 32vw; height: 32vw;
  top: 38%; left: 42%;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  background: radial-gradient(circle, rgba(52,211,153,.26), transparent 70%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: var(--c-primary-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); margin-top: 1.6em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---- Skip-Link ---- */
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  background: var(--c-primary); color: #fff;
  padding: .7rem 1.2rem; border-radius: var(--radius-pill);
  font-family: var(--font-alt); font-weight: 700;
  box-shadow: var(--shadow);
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 16px; text-decoration: none; }

/* ---- Scroll-Progress ---- */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  z-index: 120;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-deep));
  box-shadow: 0 0 12px var(--c-primary-glow);
  border-radius: 0 3px 3px 0;
}

/* ---- Header (Glas) ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  padding: .55rem 0;
  transition: padding .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-stuck {
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--glass-line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-deep));
  box-shadow: var(--shadow-glow);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--ink); }
.brand-text small { color: var(--ink-mute); font-size: .76rem; }

/* ---- Navigation ---- */
.main-nav { display: flex; align-items: center; }
.nav-menu {
  display: flex; align-items: center; gap: .35rem;
  list-style: none; margin: 0; padding: .35rem;
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.nav-menu a {
  display: block;
  white-space: nowrap;
  text-align: center;
  line-height: 1.1;
  padding: .4rem .85rem;
  border-radius: 14px;
  color: var(--ink-soft);
  font-family: var(--font-alt);
  font-weight: 700;
  font-size: .9rem;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-menu a:hover { text-decoration: none; color: var(--c-primary-deep); background: var(--c-primary-soft); }
.nav-menu a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-deep));
  box-shadow: 0 6px 18px var(--c-primary-glow);
}

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--glass-line);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  border-radius: 14px;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  display: block; position: absolute; left: 50%; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transform: translateX(-50%);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.main-nav.open .nav-toggle span:nth-child(1) { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.main-nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.main-nav.open .nav-toggle span:nth-child(3) { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* ---- Buttons (Pill) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.7rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-alt);
  font-weight: 800;
  font-size: .98rem;
  border: 0; cursor: pointer;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  will-change: transform;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-deep));
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { box-shadow: 0 24px 60px var(--c-primary-glow); }
.btn-ghost {
  color: var(--ink);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { color: var(--c-primary-deep); border-color: var(--c-primary); }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}
.hero-media {
  position: absolute; top: 50%; right: clamp(-1rem, 2vw, 2.5rem);
  transform: translateY(-50%);
  width: clamp(300px, 42vw, 560px);
  height: clamp(240px, 34vw, 430px);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 1;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-lg);
  filter: saturate(108%);
  z-index: 0;
}
/* dekorativer Glas-Blob: hinter das Bild gelegt, nur als weicher Schein */
.hero::after {
  content: "";
  position: absolute;
  right: clamp(-6rem, -4vw, -2rem); top: 4%;
  width: clamp(220px, 34vw, 460px); aspect-ratio: 1;
  border-radius: 46% 54% 60% 40% / 50% 42% 58% 50%;
  background: linear-gradient(135deg, var(--c-primary-glow), rgba(13,148,136,.22));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: -1;
  animation: blobFloat 12s var(--ease) infinite alternate;
}
@keyframes blobFloat {
  to { transform: translateY(-22px) rotate(8deg) scale(1.04); border-radius: 54% 46% 40% 60% / 42% 58% 50% 50%; }
}
@media (prefers-reduced-motion: reduce) { .hero::after { animation: none; } }

.hero-inner {
  position: relative; z-index: 1;
  max-width: 760px;
}
.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--c-primary-soft);
  color: var(--c-primary-deep);
  border: 1px solid var(--glass-line);
  font-family: var(--font-alt); font-weight: 800;
  font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-primary); box-shadow: 0 0 10px var(--c-primary-glow); }
.hero h1 { margin-bottom: .4em; }
.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 1.8em;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---- Layout-Grid: Content + Sidebar ---- */
.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.content { min-width: 0; }
.content > * { max-width: 70ch; }
.content > .cards, .content > .stats, .content > .steps,
.content > .faq, .content > .checker, .content > .contact-grid { max-width: none; }
.content p { color: var(--ink-soft); }
.content h2 { color: var(--ink); }
.content a:not(.btn) { font-weight: 600; border-bottom: 2px solid var(--c-primary-soft); transition: border-color .2s var(--ease); }
.content a:not(.btn):hover { text-decoration: none; border-color: var(--c-primary); }

.sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1.2rem; }
.sidebar-nav {
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem 1.4rem;
}
.sidebar-nav h3 { font-size: 1rem; margin: 0 0 .8rem; color: var(--ink); }
.sidebar-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.sidebar-nav a {
  display: block; padding: .55rem .85rem; border-radius: 14px;
  color: var(--ink-soft); font-family: var(--font-alt); font-weight: 700; font-size: .92rem;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.sidebar-nav a:hover { text-decoration: none; background: var(--c-primary-soft); color: var(--c-primary-deep); }
.sidebar-nav a[aria-current="page"] { background: var(--c-primary-soft); color: var(--c-primary-deep); box-shadow: inset 3px 0 0 var(--c-primary); }

/* ---- Glas-Karten-Basis (gemeinsam) ---- */
.callout, .cards .card, .stat, .step, .faq-item, .checker,
.contact-card, .ad-slot {
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
}

/* ---- Stats ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.stat {
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem;
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-num {
  display: block;
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-deep));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--c-primary-deep);
}
.stat-label { display: block; margin-top: .5rem; color: var(--ink-mute); font-size: .9rem; font-weight: 600; }

/* ---- Callout ---- */
.callout {
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
  margin: 2rem 0;
  position: relative;
  border-left: 4px solid var(--c-primary);
  background: linear-gradient(135deg, var(--c-primary-soft), var(--glass));
}
.callout h3 { margin: 0 0 .4rem; color: var(--c-primary-deep); }
.callout p { margin: 0; color: var(--ink-soft); }

/* ---- Cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}
.cards .card {
  position: relative;
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.7rem;
  display: flex; flex-direction: column;
  color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  overflow: hidden;
}
.cards a.card:hover { text-decoration: none; transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--c-primary); }
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--c-primary), transparent);
  opacity: 0; transition: opacity .3s var(--ease);
}
.cards a.card:hover::before { opacity: 1; }
.card-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  margin-bottom: 1rem;
  color: var(--c-primary-deep);
  background: var(--c-primary-soft);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin: 0 0 .4rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.card-arrow {
  margin-top: 1rem;
  font-size: 1.3rem; font-weight: 700;
  color: var(--c-primary-deep);
  transition: transform .25s var(--ease);
}
.cards a.card:hover .card-arrow { transform: translateX(6px); }

/* ---- Steps ---- */
.steps {
  list-style: none; margin: 2rem 0; padding: 0;
  display: grid; gap: 1rem;
}
.step {
  display: flex; gap: 1.1rem; align-items: flex-start;
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  transition: transform .3s var(--ease);
}
.step:hover { transform: translateX(4px); }
.step-num {
  flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-deep));
  box-shadow: 0 8px 20px var(--c-primary-glow);
}
.step-body h3 { margin: .15rem 0 .3rem; }
.step-body p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ---- Checklist ---- */
.checklist { list-style: none; margin: 1.8rem 0; padding: 0; display: grid; gap: .7rem; }
.checklist li { display: flex; align-items: flex-start; gap: .8rem; color: var(--ink-soft); }
.checklist svg {
  flex: none; width: 22px; height: 22px;
  padding: 4px; border-radius: 50%;
  color: var(--c-primary-deep); background: var(--c-primary-soft);
  margin-top: .15rem;
}

/* ---- FAQ ---- */
.faq { display: grid; gap: .8rem; margin: 2rem 0; }
.faq-item {
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .3s var(--ease);
}
.faq-item[open] { box-shadow: var(--shadow-lg); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-alt); font-weight: 700; font-size: 1.02rem;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus {
  flex: none; position: relative;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--c-primary-soft);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.faq-plus::before, .faq-plus::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 12px; height: 2px; border-radius: 2px;
  background: var(--c-primary-deep);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease);
}
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-plus { transform: rotate(135deg); background: var(--c-primary); }
.faq-item[open] .faq-plus::before, .faq-item[open] .faq-plus::after { background: #fff; }
.faq-answer { padding: 0 1.4rem 1.2rem; }
.faq-answer p { margin: 0; color: var(--ink-soft); }

/* ---- Domain-Checker ---- */
.checker {
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  margin: 2rem 0;
  background: linear-gradient(135deg, var(--c-primary-soft), var(--glass-strong));
}
.checker-form { margin: 0; }
.checker-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.checker-input, .checker-tld {
  font-family: var(--font-body); font-size: 1rem;
  border: 1px solid var(--glass-line);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  padding: .8rem 1.2rem;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.checker-input { flex: 1 1 220px; min-width: 0; }
.checker-input:focus, .checker-tld:focus {
  outline: none; border-color: var(--c-primary);
  box-shadow: 0 0 0 4px var(--c-primary-soft);
}
.checker-tld { flex: 0 0 auto; cursor: pointer; }
.checker-btn { flex: 0 0 auto; }
.checker-result { margin-top: 1rem; min-height: 1.5rem; }
.checker-note { margin: .9rem 0 0; color: var(--ink-mute); }
.res {
  display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1.1rem;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: .95rem;
  background: var(--glass-strong);
  border: 1px solid var(--glass-line);
}
.res .dot { flex: none; width: 11px; height: 11px; border-radius: 50%; }
.res.free  { color: #047857; background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.4); }
.res.free .dot  { background: #10b981; box-shadow: 0 0 10px rgba(16,185,129,.7); }
.res.taken { color: #b91c1c; background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.35); }
.res.taken .dot { background: #ef4444; box-shadow: 0 0 10px rgba(239,68,68,.6); }
.res.load  { color: var(--ink-mute); }
.res.load .dot { background: var(--c-primary); animation: pulseDot 1s ease-in-out infinite; }
@keyframes pulseDot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }

/* ---- Kontakt ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}
.contact-card { border-radius: var(--radius); padding: 1.6rem 1.7rem; }
.contact-card h3 { margin: 0 0 .6rem; color: var(--c-primary-deep); }
.contact-card p { margin: 0; color: var(--ink-soft); }
.contact-card a { color: var(--c-primary-deep); font-weight: 600; }

/* ---- Werbeplätze ---- */
.ad-slot {
  position: relative;
  border-radius: var(--radius);
  border-style: dashed;
  border-color: rgba(15,23,42,.16);
  padding: 1.6rem;
  text-align: center;
  color: var(--ink-mute);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  min-height: 90px;
}
.ad-slot strong { color: var(--ink-soft); font-family: var(--font-alt); font-weight: 700; }
.ad-label {
  position: absolute; top: .6rem; left: .9rem;
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 700;
  background: var(--c-primary-soft);
  padding: .15rem .55rem; border-radius: var(--radius-pill);
}
.ad-slot-top, .ad-slot-bottom { margin: 1.5rem auto; max-width: var(--maxw); }
.ad-slot-top { margin-top: .5rem; }
.ad-slot-sidebar { min-height: 220px; }
/* zentrierte Container-Breite für Top/Bottom Slots (liegen außerhalb .container) */
.ad-slot-top, .ad-slot-bottom { width: calc(100% - 2rem); }

/* ---- Footer ---- */
.site-footer {
  margin-top: 3.5rem;
  padding: 3rem 0 1.5rem;
  position: relative;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  border-top: 1px solid var(--glass-line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2rem;
}
.footer-brand strong { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--ink); display: block; margin-bottom: .5rem; }
.footer-brand p { color: var(--ink-soft); max-width: 38ch; }
.footer-col h4 {
  font-family: var(--font-alt); font-weight: 800; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-primary-deep); margin: 0 0 .9rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-col a { color: var(--ink-soft); font-size: .94rem; transition: color .2s var(--ease); }
.footer-col a:hover { text-decoration: none; color: var(--c-primary-deep); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 2.2rem; padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.footer-bottom p { margin: 0; color: var(--ink-mute); font-size: .88rem; }
.to-top {
  flex: none;
  width: 46px; height: 46px;
  border: 1px solid var(--glass-line);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-deep));
  color: #fff; font-size: 1.2rem; cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: transform .2s var(--ease);
}
.to-top:hover { transform: translateY(-3px); }

/* ---- Scroll-Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .stat:hover, .step:hover, .cards a.card:hover, .btn:hover, .to-top:hover { transform: none; }
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .layout-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Hero-Bild unter den Text setzen statt rechts daneben */
  .hero-media {
    position: relative; top: auto; right: auto; transform: none;
    width: 100%; height: clamp(200px, 46vw, 320px);
    margin-top: 2rem;
  }
  .hero::after { display: none; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav { position: relative; }
  .nav-menu {
    position: absolute; top: calc(100% + .6rem); right: 0;
    flex-direction: column; align-items: stretch;
    min-width: 230px; padding: .6rem;
    border-radius: var(--radius);
    background: var(--glass-strong);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.97);
    transform-origin: top right;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .main-nav.open .nav-menu { opacity: 1; visibility: visible; transform: none; }
  .nav-menu a { padding: .7rem 1rem; text-align: left; line-height: 1.25; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; }
  body { font-size: 16px; }
}
@media (max-width: 460px) {
  .checker-row { flex-direction: column; }
  .checker-input, .checker-tld, .checker-btn { width: 100%; }
  .hero-cta { flex-direction: column; align-items: stretch; }
}

/* ---- Fallback ohne backdrop-filter ---- */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav-menu, .sidebar-nav, .callout, .cards .card, .stat, .step,
  .faq-item, .checker, .contact-card, .ad-slot, .site-footer,
  .site-header.is-stuck { background: var(--glass-strong); }
}

/* ---- Fokus-Sichtbarkeit ---- */
:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 2px; border-radius: 4px; }
