/* ============ Fonts (lokal, DSGVO) ============ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-variable.woff2') format('woff2-variations');
}

/* ============ Reset + Tokens ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-card: #ffffff;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --text: #0f172a;
  --text-mid: #475569;
  --text-light: #94a3b8;
  --accent: #10b981;
  --accent-dk: #059669;
  --accent-soft: #d1fae5;
  --accent-bg: #ecfdf5;
  --danger: #ef4444;
  --shadow: 0 1px 3px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.04);
  --r: 8px;
  --r-lg: 12px;
  --t: .2s ease;
  --max: 1100px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-dk); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ============ Domain-Verkauf Sticky-Banner ============ */
.sale-banner {
  background: var(--text);
  color: #fff;
  padding: 16px 0;
  font-size: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--accent);
}
.sale-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  text-align: center;
}
.sale-banner-text { color: #fff; line-height: 1.4; }
.sale-banner-text strong { color: var(--accent); }
.sale-banner-cta {
  background: var(--accent);
  color: var(--text) !important;
  padding: 10px 20px;
  border-radius: var(--r);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}
.sale-banner-cta:hover { background: #fff; color: var(--text) !important; }
@media (max-width: 640px) {
  .sale-banner { font-size: 15px; padding: 14px 0; }
  .sale-banner-inner { gap: 12px; }
  .sale-banner-cta { padding: 9px 16px; font-size: 14px; }
}

/* ============ Header / Navigation ============ */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}
.site-logo {
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -.01em;
}
.site-logo:hover { color: var(--text); }
.site-logo em { color: var(--accent-dk); font-style: normal; }
.site-nav { display: flex; gap: 26px; align-items: center; }
.site-nav a {
  color: var(--text-mid);
  font-size: 16px;
  font-weight: 500;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent-dk); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; margin-right: -10px; }
.menu-toggle svg { display: block; width: 28px; height: 28px; stroke: var(--text); }
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    z-index: 90;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 17px;
  }
  .site-nav a:last-child { border-bottom: 0; }
}

/* ============ Hero ============ */
.hero {
  padding: 60px 0 48px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}
.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 800px;
}
.hero .lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-mid);
  max-width: 720px;
  margin-bottom: 24px;
}
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.cta-row .btn { flex: 1 1 220px; max-width: 280px; justify-content: center; text-align: center; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--t);
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: var(--text) !important;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dk); border-color: var(--accent-dk); color: #fff !important; }
.btn-secondary {
  background: transparent;
  color: var(--text) !important;
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-dk) !important; }

/* ============ Sections ============ */
.section { padding: 56px 0; }
.section-narrow { padding: 56px 0; }
.section-narrow > .container-narrow > * { margin-bottom: 18px; }
.section-narrow > .container-narrow > *:last-child { margin-bottom: 0; }
.section h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 16px;
  margin-top: 0;
}
.section h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  margin: 28px 0 10px;
  letter-spacing: -.01em;
}
.section p { color: var(--text); margin-bottom: 16px; }
.section ul, .section ol { padding-left: 22px; margin-bottom: 16px; color: var(--text); }
.section li { margin-bottom: 6px; }

.section-alt { background: var(--bg-soft); }

.section-title-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dk);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

/* ============ Card-Grid ============ */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 24px 0;
}
@media (min-width: 540px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .card-grid { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  transition: border-color var(--t), transform var(--t);
}
.card:hover { border-color: var(--accent-soft); transform: translateY(-2px); }
.card h3 { margin-top: 0; font-size: 18px; }
.card p { font-size: 15px; color: var(--text-mid); margin-bottom: 0; }
.card .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--accent-bg);
  color: var(--accent-dk);
  border-radius: var(--r);
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 700;
}

/* ============ Inline-Highlight ============ */
.highlight-box {
  background: var(--accent-bg);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 var(--r) var(--r) 0;
  margin: 24px 0;
  font-size: 16px;
}
.highlight-box strong { color: var(--accent-dk); }

/* ============ Tabellen ============ */
.table-wrap { overflow-x: auto; margin: 24px 0; }
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.table-wrap th, .table-wrap td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.table-wrap th {
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--text);
}
.table-wrap tr:hover td { background: var(--bg-soft); }

/* ============ FAQ Akkordeon ============ */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin: 12px 0;
  background: var(--bg-card);
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  margin-left: auto;
  font-size: 20px;
  color: var(--accent-dk);
  transition: transform var(--t);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 20px 18px; color: var(--text-mid); font-size: 15px; line-height: 1.7; }

/* ============ Bilder + Figures ============ */
figure {
  margin: 24px 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
figure img { width: 100%; display: block; }
figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-light);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

/* ============ Forms ============ */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-family: inherit;
  font-size: 16px;
  background: var(--bg-card);
  color: var(--text);
  transition: border-color var(--t), box-shadow var(--t);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group textarea { min-height: 160px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 13px; color: var(--text-light); margin-top: 6px; }
.form-privacy { font-size: 13px; color: var(--text-light); margin-top: 18px; line-height: 1.6; }
.msg-ok { background: var(--accent-bg); border: 1px solid var(--accent-soft); padding: 14px 18px; margin-bottom: 22px; border-radius: var(--r); color: var(--accent-dk); font-size: 15px; }
.msg-err { background: #fef2f2; border: 1px solid #fecaca; padding: 14px 18px; margin-bottom: 22px; border-radius: var(--r); color: #991b1b; font-size: 15px; }

/* ============ Breadcrumb ============ */
.crumbs {
  font-size: 14px;
  color: var(--text-light);
  padding: 14px 24px;
}
.crumbs a { color: var(--text-mid); }
.crumbs .sep { margin: 0 6px; }

/* ============ Footer ============ */
.site-footer {
  background: var(--text);
  color: #cbd5e1;
  padding: 40px 0 22px;
  margin-top: 60px;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-bottom: 24px;
}
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #94a3b8; font-size: 14px; }
.site-footer a:hover { color: var(--accent); }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #64748b;
}

/* ============ Accessibility ============ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--accent);
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--r);
  z-index: 200;
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 8px; }
