:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --text: #12181f;
  --text-muted: #4a5560;
  --border: #e2e6ea;
  --brand-dark: #0f172a;
  --brand-accent: #0d9488;
  --brand-accent-dark: #0f766e;
  --radius: 10px;
  --max-width: 1080px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

section[id] { scroll-margin-top: 80px; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; }
p { margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--brand-dark);
}
.brand-text span { color: var(--brand-accent); }
.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-accent-dark) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35);
}
.brand-icon svg { width: 18px; height: 18px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--brand-accent-dark);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta {
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.35);
}
.nav-cta:hover { background: #115e59; }

/* Hero */
.hero {
  position: relative;
  background: radial-gradient(circle at 20% -10%, #1e293b, var(--brand-dark) 60%);
  color: #fff;
  padding: 110px 20px 100px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.15);
  border: 1px solid rgba(13, 148, 136, 0.4);
  color: #5eead4;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #fff;
}
.hero-sub {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto 2em;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-badges span {
  font-size: 0.8rem;
  color: #cbd5e1;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 6px 14px;
}
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--brand-accent-dark);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}
.btn-primary:hover { background: #115e59; box-shadow: 0 6px 18px rgba(13, 148, 136, 0.45); }
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-secondary:hover { border-color: #fff; }

/* USP */
.usp { padding: 60px 20px; background: var(--bg-alt); }
.usp-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.usp-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.usp-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}
.usp-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.12);
  color: var(--brand-accent-dark);
}
.usp-icon svg { width: 24px; height: 24px; }
.usp-card h3 { font-size: 1.1rem; }
.usp-card p { font-size: 0.95rem; margin: 0; }

/* Sections generic */
.kicker {
  display: block;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-accent-dark);
  margin-bottom: 0.6em;
}
.kicker-dark { color: #5eead4; }
section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  text-align: center;
}
.section-sub {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5em;
}

/* Produkte */
.produkte { padding: 80px 20px; max-width: var(--max-width); margin: 0 auto; }
.produkte-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.produkt-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.produkt-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}
.produkt-card h3 { color: var(--brand-dark); font-size: 1.05rem; }
.produkt-icon { margin: 0 0 14px; width: 44px; height: 44px; }
.produkt-icon svg { width: 22px; height: 22px; }
.produkt-card p { font-size: 0.9rem; margin: 0; }

/* Preise */
.preise { padding: 80px 20px; background: var(--bg-alt); }
.preise-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.preis-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.preis-card:not(.featured):hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}
.preis-card.featured {
  position: relative;
  border-color: var(--brand-accent);
  border-width: 2px;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.15);
}
.preis-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.preis-card h3 { color: var(--brand-dark); font-size: 1.1rem; }
.preis-amount { font-size: 1.9rem; font-weight: 700; margin: 8px 0 16px; }
.preis-amount span { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }
.preis-features {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex: 1;
}
.preis-features li { padding: 4px 0 4px 1.3em; position: relative; }
.preis-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-accent-dark);
  font-weight: 700;
}
.preise-note {
  text-align: center;
  max-width: 640px;
  margin: 32px auto 0;
  font-size: 0.9rem;
}

/* Hinweis direkt unter den Tarifen: keine Cloud, Server beim Kunden */
.preise-server {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-accent);
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 0.95rem;
}

/* Warum */
.warum {
  position: relative;
  background: radial-gradient(circle at 80% 110%, #1e293b, var(--brand-dark) 60%);
  color: #fff;
  padding: 80px 20px;
  overflow: hidden;
}
.warum::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 100%, #000 40%, transparent 100%);
  pointer-events: none;
}
.warum-inner { position: relative; max-width: 700px; margin: 0 auto; text-align: center; }
.warum h2 { color: #fff; }
.warum p { color: #cbd5e1; }

/* Ueber mich */
.ueber-mich { padding: 80px 20px; max-width: var(--max-width); margin: 0 auto; }
.ueber-mich { background: var(--bg-alt); max-width: none; }
.ueber-mich-inner {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  max-width: 760px;
  margin: 0 auto;
}
.avatar {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-dark));
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.ueber-mich h2 { text-align: left; }
.kicker-left { text-align: left; }

/* FAQ */
.faq { padding: 80px 20px; max-width: 760px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 2em; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 20px;
  background: #fff;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 32px 18px 0;
  font-weight: 600;
  color: var(--text);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--brand-accent-dark);
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 20px; margin: 0; font-size: 0.95rem; }

/* Legal pages (Impressum, Datenschutz) */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 20px 100px;
}
.legal-content h1 { font-size: 2rem; margin-bottom: 0.8em; }
.legal-content h2 { font-size: 1.2rem; margin-top: 1.8em; }
.legal-content p, .legal-content li { color: var(--text-muted); }
.legal-content ul { padding-left: 1.2em; }
.legal-content a { color: var(--brand-accent-dark); }

.todo-marker {
  background: #fff7e6;
  border: 1px dashed #e0a800;
  border-radius: 6px;
  padding: 12px 16px;
  color: #7a5600;
  font-size: 0.95rem;
}

/* Produktbild im Hero */
.hero-shot {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 56px auto -180px;
}
.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 60px rgba(2, 6, 23, 0.45);
}
.hero:has(.hero-shot) { overflow: visible; padding-bottom: 0; display: flow-root; }
.hero:has(.hero-shot) + .usp { padding-top: 240px; }

/* Einblick */
.einblick { padding: 80px 20px; max-width: var(--max-width); margin: 0 auto; }
.einblick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.einblick-grid figure { margin: 0; }
.einblick-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.einblick-grid a:hover img { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14); }
.einblick-grid figcaption { font-size: 0.9rem; color: var(--text-muted); margin-top: 10px; text-align: center; }
.muster-card {
  display: flex;
  border: 1px dashed var(--brand-accent);
  border-radius: var(--radius);
  background: rgba(13, 148, 136, 0.05);
}
.muster-inner { margin: auto; padding: 28px; text-align: center; max-width: 380px; }
.muster-inner svg { width: 40px; height: 40px; color: var(--brand-accent-dark); margin-bottom: 10px; }
.muster-inner h3 { color: var(--brand-dark); font-size: 1.1rem; }
.muster-inner p { font-size: 0.9rem; }

/* Laufzeit-Umschalter (ohne JavaScript) */
.laufzeit-toggle {
  display: flex;
  justify-content: center;
  gap: 4px;
  width: fit-content;
  margin: -1em auto 2.2em;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
}
.laufzeit-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.laufzeit-toggle label {
  cursor: pointer;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}
.laufzeit-toggle input:checked + label { background: var(--brand-accent); color: #fff; }
.laufzeit-toggle input:focus-visible + label { outline: 3px solid var(--brand-accent); outline-offset: 2px; }
.toggle-hint { font-weight: 400; font-size: 0.8rem; opacity: 0.85; }
.preis-jahr { display: none; }
.preis-jahr small {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
}
.preise:has(#lz-jahr:checked) .preis-monat { display: none; }
.preise:has(#lz-jahr:checked) .preis-jahr { display: block; }

/* Ablauf */
.ablauf { padding: 80px 20px; max-width: var(--max-width); margin: 0 auto; }
.ablauf-list {
  list-style: none;
  counter-reset: schritt;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.ablauf-list li { counter-increment: schritt; position: relative; padding-top: 56px; }
.ablauf-list li::before {
  content: counter(schritt);
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.12);
  color: var(--brand-accent-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ablauf-list h3 { font-size: 1.05rem; color: var(--brand-dark); }
.ablauf-list p { font-size: 0.9rem; margin: 0; }

/* Buttons in den Preiskarten */
.btn-outline {
  background: transparent;
  color: var(--brand-accent-dark);
  border: 1px solid var(--brand-accent);
}
.btn-outline:hover { background: rgba(13, 148, 136, 0.08); }
.preis-cta { margin-top: 16px; font-size: 0.95rem; padding: 10px 18px; }

/* Final CTA */
.cta-final {
  padding: 90px 20px;
  text-align: center;
  background: var(--bg-alt);
}
.cta-final h2 { max-width: 620px; margin: 0 auto 0.6em; }
.cta-sub { max-width: 560px; margin: 0 auto 1.6em; }

/* Barrierefreiheit */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--brand-dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .btn:hover, .usp-card:hover, .produkt-card:hover, .preis-card:not(.featured):hover { transform: none; }
}

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 48px 20px 24px; font-size: 0.9rem; }
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer-brand p { margin-top: 12px; max-width: 320px; font-size: 0.9rem; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 {
  margin: 0 0 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}
.footer-col a { text-decoration: none; color: var(--text-muted); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Lightbox fuer die Screenshots */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1440px, 94vw);
  max-height: 92vh;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(2, 6, 23, 0.82); }
.lightbox img { display: block; max-width: 100%; max-height: 84vh; width: auto; height: auto; border-radius: 10px; }
.lightbox p { color: #e2e8f0; text-align: center; margin: 10px 0 0; font-size: 0.95rem; }
.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 2px; }

/* Responsive */
@media (max-width: 900px) {
  .preise-grid { grid-template-columns: repeat(2, 1fr); }
  .ablauf-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-inner { flex-wrap: wrap; row-gap: 8px; }
  section[id] { scroll-margin-top: 120px; }
  .nav-links {
    order: 3;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links {
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
    mask-image: linear-gradient(to right, #000 85%, transparent);
    padding-right: 32px;
  }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .ueber-mich h2, .kicker-left { text-align: center; }
  .nav-links a { white-space: nowrap; }
  .usp-grid { grid-template-columns: 1fr; }
  .produkte-grid { grid-template-columns: 1fr; }
  .preise-grid { grid-template-columns: 1fr; }
  .ablauf-list { grid-template-columns: 1fr; }
  .einblick-grid { grid-template-columns: 1fr; }
  .hero-shot { margin: 40px auto -80px; }
  .hero:has(.hero-shot) + .usp { padding-top: 130px; }
  .preis-card.featured { order: -1; }
  .ueber-mich-inner { flex-direction: column; align-items: center; text-align: center; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f14;
    --bg-alt: #11161c;
    --text: #e6edf3;
    --text-muted: #9aa7b2;
    --border: #232b33;
  }
  .nav { background: rgba(11,15,20,0.85); }
  .usp-card, .produkt-card, .preis-card, .faq-item { background: #12181f; }
  .todo-marker { background: #2a2210; border-color: #a97f00; color: #f0c766; }
  /* --brand-dark als Schriftfarbe waere auf dunklem Grund unsichtbar */
  .brand, .produkt-card h3, .preis-card h3, .ablauf-list h3, .muster-inner h3 { color: var(--text); }
  .btn-outline { border-color: #14b8a6; }
  .ablauf-list li::before { color: #5eead4; }
  .btn-outline { color: #5eead4; }
}

/* E-Rechnungspflicht: Zeitleiste in drei Schritten */
.pflicht { padding: 80px 20px 20px; max-width: var(--max-width); margin: 0 auto; }
.pflicht-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pflicht-list li {
  border-top: 3px solid var(--brand-accent-dark);
  padding-top: 16px;
}
.pflicht-jahr {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-accent-dark);
  margin-bottom: 6px;
}
.pflicht-list h3 { font-size: 1.05rem; color: var(--brand-dark); }
.pflicht-list p { font-size: 0.9rem; margin: 0; }
.cta-mail { margin: 1.4em auto 0; font-size: 0.95rem; }
@media (max-width: 720px) {
  .pflicht-list { grid-template-columns: 1fr; }
}
@media (prefers-color-scheme: dark) {
  .pflicht-list h3 { color: var(--text); }
  .pflicht-jahr { color: #5eead4; }
  .pflicht-list li { border-top-color: #5eead4; }
}

/* ── Animationen (2026-09-27) ─────────────────────────────────────────────
   Alles reines CSS bzw. site.js (CSP script-src 'self'). Bei „Bewegung reduzieren"
   und ohne JavaScript ist alles sofort sichtbar und steht still. */

/* 1. Einblenden beim Scrollen: site.js setzt .reveal-ready am <html> und .reveal an die
   Karten; eingeblendet wird über .sichtbar. Eigene Eigenschaft `translate`, damit die
   Hover-`transform`s der Karten nicht überschrieben werden. */
.reveal-ready .reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.6s ease, translate 0.6s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.reveal-ready .reveal.sichtbar { opacity: 1; translate: none; }

/* 2. Zeitleiste E-Rechnungspflicht: die Linie zeichnet sich von links nach rechts,
   Schritt für Schritt. */
.pflicht-list li { position: relative; border-top: 0; }
.pflicht-list li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-accent-dark);
  transform-origin: left;
}
.reveal-ready .pflicht-list li::before { transform: scaleX(0); transition: transform 0.7s ease; }
.reveal-ready .pflicht-list li.sichtbar::before { transform: scaleX(1); }
.reveal-ready .pflicht-list li:nth-child(2)::before { transition-delay: 0.45s; }
.reveal-ready .pflicht-list li:nth-child(3)::before { transition-delay: 0.9s; }

/* 3. Lebende Rechnung im Hero: Entwurf → Offen (geprüft) → GiroCode → Bezahlt, 9 s Schleife. */
.live-rechnung {
  position: absolute;
  right: -34px;
  top: 16%;
  width: 300px;
  padding: 16px 18px;
  background: #fff;
  color: var(--text);
  text-align: left;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(2, 6, 23, 0.35);
  font-size: 0.85rem;
  animation: lr-schweben 6s ease-in-out infinite;
}
.lr-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lr-titel { font-weight: 600; font-size: 0.74rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-status { position: relative; display: inline-block; width: 70px; height: 22px; }
.lr-s {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0;
}
.lr-s1 { background: #e2e8f0; color: #334155; animation: lr-s1 9s infinite; }
.lr-s2 { background: #fef3c7; color: #92400e; animation: lr-s2 9s infinite; }
.lr-s3 { background: #d1fae5; color: #065f46; animation: lr-s3 9s infinite; }
.lr-betrag { font-size: 1.5rem; font-weight: 700; color: var(--brand-dark); margin: 6px 0 10px; }
.lr-schritte { list-style: none; margin: 0; padding: 0; }
.lr-p {
  position: relative;
  padding-left: 26px;
  margin-top: 6px;
  opacity: 0.45;
}
.lr-p::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #cbd5e1;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lr-p1 { animation: lr-p1 9s infinite; }
.lr-p2 { animation: lr-p2 9s infinite; }
.lr-p3 { animation: lr-p3 9s infinite; }
.lr-p1::before { animation: lr-c1 9s infinite; }
.lr-p2::before { animation: lr-c2 9s infinite; }
.lr-p3::before { animation: lr-c3 9s infinite; }

@keyframes lr-schweben { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes lr-s1 { 0%, 20% { opacity: 1; } 23%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes lr-s2 { 0%, 20% { opacity: 0; } 23%, 64% { opacity: 1; } 67%, 100% { opacity: 0; } }
@keyframes lr-s3 { 0%, 64% { opacity: 0; } 67%, 93% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes lr-p1 { 0%, 20% { opacity: 0.45; } 24%, 93% { opacity: 1; } 97%, 100% { opacity: 0.45; } }
@keyframes lr-p2 { 0%, 42% { opacity: 0.45; } 46%, 93% { opacity: 1; } 97%, 100% { opacity: 0.45; } }
@keyframes lr-p3 { 0%, 64% { opacity: 0.45; } 68%, 93% { opacity: 1; } 97%, 100% { opacity: 0.45; } }
@keyframes lr-c1 { 0%, 20% { background: #cbd5e1; } 24%, 93% { background: #0f766e; } 97%, 100% { background: #cbd5e1; } }
@keyframes lr-c2 { 0%, 42% { background: #cbd5e1; } 46%, 93% { background: #0f766e; } 97%, 100% { background: #cbd5e1; } }
@keyframes lr-c3 { 0%, 64% { background: #cbd5e1; } 68%, 93% { background: #0f766e; } 97%, 100% { background: #cbd5e1; } }

@media (max-width: 1100px) {
  .live-rechnung { right: 16px; top: 16px; width: 260px; }
}
@media (max-width: 600px) {
  .live-rechnung { display: none; }
}

/* Bewegung reduzieren: Endzustand zeigen, nichts bewegt sich. */
@media (prefers-reduced-motion: reduce) {
  .live-rechnung, .lr-s, .lr-p, .lr-p::before { animation: none !important; }
  .lr-p { opacity: 1; }
  .lr-p::before { background: #0f766e; }
  .lr-s3 { opacity: 1; }
}
@media (prefers-color-scheme: dark) {
  .pflicht-list li::before { background: #5eead4; }
  .live-rechnung { background: #fff; color: #12181f; }
  .lr-betrag { color: #0f172a; }
}

/* ── Optik-Feinschliff (2026-09-27) ────────────────────────────────────── */

/* 1. Ausgewogene Zeilenumbrüche: kein einzelnes Wort allein in der letzten Zeile */
h1, h2, h3, .section-sub, .hero-sub, .cta-sub { text-wrap: balance; }
p, dd { text-wrap: pretty; }

/* 2. Vergleich Cloud-Abo / ITIdee im dunklen Abschnitt „Warum ITIdee" */
.warum-inner:has(.vergleich) { max-width: 880px; }
.vergleich {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
  text-align: left;
}
.vergleich-spalte {
  border-radius: var(--radius);
  padding: 22px 24px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
}
.vergleich-itidee {
  border-color: rgba(94, 234, 212, 0.55);
  background: rgba(13, 148, 136, 0.12);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.35);
}
.vergleich-spalte h3 { font-size: 1.05rem; margin-bottom: 14px; }
.vergleich-cloud h3 { color: #94a3b8; }
.vergleich-itidee h3 { color: #5eead4; }
.vergleich dl { margin: 0; }
.vergleich dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-top: 12px;
}
.vergleich dt:first-child { margin-top: 0; }
.vergleich dd {
  position: relative;
  margin: 2px 0 0;
  padding-left: 24px;
  font-size: 0.95rem;
}
.vergleich-cloud dd { color: #94a3b8; }
.vergleich-itidee dd { color: #e2e8f0; }
.vergleich dd::before {
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
}
.vergleich-cloud dd::before { content: "\00d7"; background: rgba(148, 163, 184, 0.2); color: #94a3b8; font-size: 0.8rem; }
.vergleich-itidee dd::before { content: "\2713"; background: #0d9488; color: #fff; }
@media (max-width: 720px) {
  .vergleich { grid-template-columns: 1fr; }
}

/* 3. Ablauf: Verbindungslinie zwischen den nummerierten Schritten */
.ablauf-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 52px;
  right: -12px;
  height: 2px;
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.5), rgba(13, 148, 136, 0.15));
  transform-origin: left;
}
.reveal-ready .ablauf-list li:not(:last-child)::after { transform: scaleX(0); transition: transform 0.6s ease 0.3s; }
.reveal-ready .ablauf-list li.sichtbar:not(:last-child)::after { transform: scaleX(1); }
@media (max-width: 900px) {
  .ablauf-list li::after { display: none; }
}

/* 4. Über mich: Fakten-Chips */
.fakten {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fakten li {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-accent-dark);
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: 999px;
  padding: 4px 12px;
}
@media (max-width: 720px) {
  .fakten { justify-content: center; }
}
@media (prefers-color-scheme: dark) {
  .fakten li { color: #5eead4; }
}

/* ── Feinschliff 2 (2026-09-27) ─────────────────────────────────────── */

/* 5. Große Überschriften etwas enger — wirkt präziser */
h1 { letter-spacing: -0.025em; }
h2 { letter-spacing: -0.02em; }

/* 1. Bildschirmfotos im Browser-Rahmen */
.browser {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 30px;
  padding: 0 12px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}
.browser-dots { display: inline-flex; gap: 6px; }
.browser-dots i { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }
.browser-dots i:nth-child(1) { background: #f87171; }
.browser-dots i:nth-child(2) { background: #fbbf24; }
.browser-dots i:nth-child(3) { background: #34d399; }
.browser-url {
  flex: 0 1 260px;
  margin: 0 auto;
  font-size: 0.7rem;
  color: #64748b;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 2px 10px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-url::before { content: "\1F512\00a0"; font-size: 0.6rem; }
.browser img { border-radius: 0 !important; border: 0 !important; box-shadow: none !important; }
.einblick-grid .browser:has(a:hover) { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14); }
.einblick-grid a:hover img { transform: none; }
.hero-shot .browser {
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 30px 60px rgba(2, 6, 23, 0.45);
}

/* 2. Lichtschein hinter dem Hero-Bild */
.hero-shot::before {
  content: "";
  position: absolute;
  inset: -8% -6% 20%;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 40%, rgba(13, 148, 136, 0.45), rgba(13, 148, 136, 0) 65%);
  filter: blur(30px);
  pointer-events: none;
}

/* 3. Abschluss-Block dunkel wie der Kopf — die Seite beginnt und endet gleich */
.cta-final {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 120%, #134e4a, var(--brand-dark) 60%);
  color: #fff;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 100%, #000 40%, transparent 100%);
  pointer-events: none;
}
.cta-final > * { position: relative; }
.cta-final h2 { color: #fff; }
.cta-final .cta-sub, .cta-final .cta-mail { color: #cbd5e1; }
.cta-final .cta-mail a { color: #5eead4; }
.cta-final .btn-primary { box-shadow: 0 10px 30px rgba(13, 148, 136, 0.45); }

/* 6. Tarifvergleich (aufklappbar) */
.tarif-vergleich { max-width: 980px; margin: 32px auto 0; }
.tarif-vergleich summary {
  cursor: pointer;
  list-style: none;
  width: fit-content;
  margin: 0 auto;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand-accent-dark);
}
.tarif-vergleich summary::-webkit-details-marker { display: none; }
.tarif-vergleich summary::after { content: " \25BE"; }
.tarif-vergleich[open] summary::after { content: " \25B4"; }
.tabelle-scroll { overflow-x: auto; margin-top: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.tarif-vergleich table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 620px; }
.tarif-vergleich th, .tarif-vergleich td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: center; }
.tarif-vergleich tbody th { text-align: left; font-weight: 500; color: var(--text); }
.tarif-vergleich thead th { font-size: 0.85rem; color: var(--text); background: var(--bg-alt); }
.tarif-vergleich thead th:first-child { text-align: left; }
.tarif-vergleich tr:last-child th, .tarif-vergleich tr:last-child td { border-bottom: 0; }
.tarif-vergleich .hl, .tarif-vergleich td:nth-child(4) { background: rgba(13, 148, 136, 0.06); }
.tarif-vergleich .ja { color: var(--brand-accent-dark); font-weight: 700; }
.tarif-vergleich .nein { color: #94a3b8; }
.tarif-vergleich small { color: var(--text-muted); font-size: 0.75rem; }

@media (prefers-color-scheme: dark) {
  .browser { background: #12181f; }
  .browser-bar { background: #1a222b; border-bottom-color: #232b33; }
  .browser-url { background: #0b0f14; border-color: #232b33; color: #9aa7b2; }
  .tarif-vergleich .ja { color: #5eead4; }
}

/* ── Feinschliff 3 (2026-09-27) ─────────────────────────────────────── */

/* 1. Akzent im Hero-Titel: „Ihr Server." mit Petrol-Verlauf (Fallback: einfarbig) */
.hero h1 .akzent { color: #5eead4; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 .akzent {
    background: linear-gradient(90deg, #5eead4, #2dd4bf 45%, #14b8a6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* 2. Navigation: Schatten beim Scrollen, aktiver Abschnitt hervorgehoben (site.js) */
.nav { transition: box-shadow 0.2s ease; }
.nav.gescrollt { box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08); }
.nav-links a:not(.nav-cta) { position: relative; transition: color 0.15s ease; }
.nav-links a.aktiv:not(.nav-cta) { color: var(--brand-accent-dark); font-weight: 600; }
.nav-links a.aktiv:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-accent);
}

/* 3. Empfohlene Preiskarte: leicht angehoben, Verlaufsrahmen */
.preis-card.featured {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #5eead4, #0d9488 50%, #0f766e) border-box;
  transform: translateY(-10px);
  box-shadow: 0 18px 40px rgba(13, 148, 136, 0.22);
}
.preis-badge { background: linear-gradient(90deg, #14b8a6, #0f766e); box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35); }
@media (max-width: 720px) {
  .preis-card.featured { transform: none; }
}
@media (prefers-color-scheme: dark) {
  .nav.gescrollt { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45); }
  .nav-links a.aktiv:not(.nav-cta) { color: #5eead4; }
  .preis-card.featured {
    background:
      linear-gradient(#12181f, #12181f) padding-box,
      linear-gradient(135deg, #5eead4, #0d9488 50%, #0f766e) border-box;
  }
}
