/* ==========================================================================
   Benotos SIP-Trunk – eigenes Stylesheet, keine externen Ressourcen
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #f6f8fc;
  --bg-alt: #ecf1f9;
  --surface: #ffffff;
  --text: #0e1a2b;
  --muted: #4b5a73;
  --border: #d8e0ee;
  --brand: #0b66d6;
  --brand-ink: #ffffff;
  --brand-soft: rgba(11, 102, 214, .1);
  --accent: #00a58e;
  --ring: rgba(11, 102, 214, .4);
  --shadow: 0 18px 40px -22px rgba(14, 26, 43, .35);
  --glow-a: rgba(11, 102, 214, .16);
  --glow-b: rgba(0, 165, 142, .14);
  --radius: 16px;
  --maxw: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08101c;
  --bg-alt: #0c1626;
  --surface: #111d30;
  --text: #e8eef9;
  --muted: #9db0cc;
  --border: #223149;
  --brand: #4da3ff;
  --brand-ink: #04121f;
  --brand-soft: rgba(77, 163, 255, .14);
  --accent: #2dd4bf;
  --ring: rgba(77, 163, 255, .5);
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .8);
  --glow-a: rgba(77, 163, 255, .16);
  --glow-b: rgba(45, 212, 191, .1);
}

/* Fallback ohne JavaScript: Systemeinstellung */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #08101c; --bg-alt: #0c1626; --surface: #111d30; --text: #e8eef9;
    --muted: #9db0cc; --border: #223149; --brand: #4da3ff; --brand-ink: #04121f;
    --brand-soft: rgba(77, 163, 255, .14); --accent: #2dd4bf; --ring: rgba(77, 163, 255, .5);
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, .8);
    --glow-a: rgba(77, 163, 255, .16); --glow-b: rgba(45, 212, 191, .1);
  }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
.container { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }
.narrow { width: min(100% - 2rem, 820px); }
.muted { color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--brand); color: var(--brand-ink); padding: .6rem 1rem; border-radius: 10px;
}
.skip-link:focus { top: 1rem; }
.ic { width: 1.25rem; height: 1.25rem; flex: none; }
.ic-sm { width: 1rem; height: 1rem; }
.ic-xs { width: .8rem; height: .8rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--border); box-shadow: 0 8px 24px -18px rgba(0, 0, 0, .4); }
.header-row { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); font-weight: 500; }
.brand strong { font-weight: 800; }
.bm-bg { fill: var(--brand); }
.bm-line { stroke: var(--brand-ink); }
.bm-dot { fill: var(--brand-ink); }
.site-nav { display: flex; gap: .25rem; margin-inline: auto; }
.site-nav a {
  padding: .5rem .85rem; border-radius: 10px; color: var(--muted);
  text-decoration: none; font-weight: 550; font-size: .98rem;
}
.site-nav a:hover { color: var(--text); background: var(--brand-soft); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--brand); }
.show-dark, .show-light, .when-open { display: none; }
:root[data-theme="dark"] .show-dark { display: inline-flex; }
:root[data-theme="light"] .show-light { display: inline-flex; }
.when-closed { display: inline-flex; }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-grid; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: .5rem 1rem 1rem;
    background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); display: none;
  }
  .site-nav a { padding: .8rem .5rem; font-size: 1.05rem; }
  .site-header.nav-open .site-nav { display: flex; }
  .site-header.nav-open .when-closed { display: none; }
  .site-header.nav-open .when-open { display: inline-flex; }
  .header-actions { margin-left: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 10px 24px -12px var(--brand); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px var(--brand); text-decoration: none; }
.btn-primary:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.btn-ghost:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { padding: .5rem .9rem; font-size: .92rem; border-radius: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 2rem;
  background:
    radial-gradient(60% 55% at 85% 10%, var(--glow-a), transparent 70%),
    radial-gradient(50% 50% at 5% 90%, var(--glow-b), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .8rem; border-radius: 999px; font-size: .88rem; font-weight: 650;
  color: var(--brand); background: var(--brand-soft); margin-bottom: 1.2rem;
}
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 40ch; }
.lead.small { font-size: 1.1rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 1.4rem; }
.compat { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; color: var(--muted); font-size: .92rem; margin: 0; }
.chip {
  display: inline-block; padding: .2rem .7rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: .85rem; font-weight: 600;
}
.chip-brand { border-color: transparent; background: var(--brand-soft); color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 0; }

.hero-visual { display: grid; place-items: center; }
.vis { width: 100%; max-width: 520px; height: auto; }
.stop-a { stop-color: var(--brand); }
.stop-b { stop-color: var(--accent); }
.vis-node { fill: var(--surface); stroke: var(--border); stroke-width: 2; }
.vis-bar { fill: var(--brand-soft); }
.vis-led { fill: var(--accent); animation: blink 2s ease-in-out infinite; }
.vis-line { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 10; animation: flow 1s linear infinite; }
.vis-core { filter: drop-shadow(0 12px 18px rgba(11, 102, 214, .35)); }
.vis-core-text { fill: #fff; font: 800 28px var(--font); letter-spacing: .06em; }
.vis-pulse { fill: none; stroke: var(--brand); stroke-width: 2; opacity: .35; transform-origin: 260px 140px; animation: pulse 3s ease-out infinite; }
.vis-globe { fill: none; stroke: var(--brand); stroke-width: 2; opacity: .8; }
.vis-label { fill: var(--muted); font: 600 15px var(--font); }
@keyframes flow { to { stroke-dashoffset: -24; } }
@keyframes pulse { 0% { transform: scale(.9); opacity: .5; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes blink { 50% { opacity: .3; } }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .vis { max-width: 420px; }
}

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 3rem 0 0;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--surface); padding: 1.4rem 1rem; text-align: center; display: flex; flex-direction: column-reverse; }
.stat dd { margin: 0; font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; color: var(--brand); }
.stat dt { color: var(--muted); font-size: .95rem; }

/* ---------- Sections & Cards ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 62ch; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.12rem; margin: 0; }
.subhead { margin: 2rem 0 1rem; color: var(--muted); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow);
}
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4, .grid-5 { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr; } }
.feature p { color: var(--muted); margin: 0; }
.feature-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1rem;
  border-radius: 14px; background: var(--brand-soft); color: var(--brand);
}
.feature-icon .ic { width: 1.5rem; height: 1.5rem; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.step { position: relative; padding-top: 3.4rem; counter-increment: step; }
.step::before {
  content: counter(step); position: absolute; top: 1.2rem; left: 1.6rem;
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: .95rem;
}
.step p { color: var(--muted); margin: 0; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

.service { display: flex; flex-direction: column; gap: .3rem; text-decoration: none; color: var(--text); box-shadow: none; padding: 1.2rem; transition: transform .15s, border-color .15s; }
.service:hover { transform: translateY(-2px); border-color: var(--brand); }
.service strong { display: inline-flex; align-items: center; gap: .35rem; color: var(--brand); }
.service span { color: var(--muted); font-size: .93rem; line-height: 1.4; }

/* ---------- Tarife ---------- */
.rates { padding: clamp(1.25rem, 3vw, 2rem); }
.rates-label { display: block; font-weight: 650; margin-bottom: .6rem; }
.search {
  display: flex; align-items: center; gap: .7rem; width: 100%;
  padding: 0 1.1rem; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; color: var(--muted);
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.15rem; padding: 1rem 0; outline: none; }
.rate-result { margin-top: 1.25rem; }
.rate-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.4rem; border-radius: 14px; background: var(--brand-soft); border: 1px solid var(--border);
}
.rate-dest { font-size: 1.25rem; font-weight: 700; }
.rate-dial { color: var(--muted); font-size: .95rem; }
.rate-price { white-space: nowrap; }
.rate-price strong { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; letter-spacing: -.03em; color: var(--brand); font-variant-numeric: tabular-nums; }
.rate-price span { color: var(--muted); font-weight: 600; margin-left: .35rem; }
.rate-msg { color: var(--muted); margin: 0; }
.rate-h { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1.5rem 0 .6rem; }
.rate-list { list-style: none; display: grid; gap: .4rem; }
.rate-list button {
  width: 100%; display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1rem;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.rate-list button:hover { border-color: var(--brand); }
.rl-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rates-note { margin: 1.25rem 0 0; color: var(--muted); font-size: .9rem; }
.rates[aria-busy="true"] .rate-result { opacity: .6; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.3rem; cursor: pointer; list-style: none; font-weight: 650;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev { transition: transform .2s; color: var(--brand); }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-item[open] { border-color: var(--brand); }
.faq-item p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--muted); }
.faq-more { margin-top: 2rem; color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
.contact-list { list-style: none; display: grid; gap: .9rem; margin-top: 1.5rem; }
.contact-list li { display: flex; align-items: center; gap: .75rem; }
.contact-list .ic { color: var(--brand); }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; padding: .75rem .9rem; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.consent input { margin-top: .3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--brand); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 600; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #d93a3a; }
:root[data-theme="dark"] .form-status.err { color: #ff8a8a; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding-top: 3rem; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand p { color: var(--muted); margin: 1rem 0 0; max-width: 32ch; }
.footer-h { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .9rem; }
.footer-list { list-style: none; display: grid; gap: .5rem; }
.footer-list a, .footer-address a { color: var(--text); text-decoration: none; }
.footer-list a:hover, .footer-address a:hover { color: var(--brand); text-decoration: underline; }
.footer-address { font-style: normal; color: var(--muted); line-height: 1.7; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem;
  padding: 1.25rem 0 2rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem;
}
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { color: var(--muted); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Rechtstexte ---------- */
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-top: 1rem; }
.prose h2 { font-size: 1.25rem; margin-top: 2rem; }
.prose p { color: var(--muted); }
.prose strong { color: var(--text); }

/* ---------- Einblend-Animation (nur mit JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.whatsapp-btn {
   
  position: fixed;
  bottom: 0; left: 0;
  align-items: center;
  background-color: #25D366; /* Originales WhatsApp-Grün */
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.whatsapp-btn:hover {
  background-color: #1ebd56; /* Etwas dunkler beim Drüberfahren */
  color: white;
}