/* zoiper.de – Design 2026
   Farben, Schrift und Abstände zentral als Variablen. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+2713;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #12161d;        /* Graphit-Blau */
  --panel: #1a202a;
  --panel-2: #212836;
  --line: #2c3442;
  --text: #e6eaf0;
  --muted: #95a0af;
  --orange: #f39129;    /* Zoiper-Orange */
  --orange-ink: #1b1206;
  --live: #4ade9b;      /* nur für "verbunden" */

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 6px;
  --r-lg: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typo ---------- */
h1, h2, h3 { font-stretch: 125%; font-weight: 700; letter-spacing: -0.01em; line-height: 1.08; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: .6em; }
h3 { font-size: 1.15rem; line-height: 1.3; }
p { max-width: 68ch; }
.lead { font-size: 1.2rem; color: var(--muted); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font: inherit; font-weight: 650; font-size: 1rem;
  padding: .85em 1.35em; border-radius: var(--r-sm);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--orange); color: var(--orange-ink); }
.btn-primary:hover { background: #ffa443; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 22, 29, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 0; text-decoration: none; font-weight: 700; font-stretch: 112%; font-size: 1.2rem; }
.brand img { width: 34px; height: 34px; margin-right: 10px; }
.brand span { color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: 26px; margin-left: auto; list-style: none; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .97rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.site-header .btn { padding: .6em 1.05em; font-size: .95rem; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); font: inherit; padding: .45em .8em; border-radius: var(--r-sm); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero h1 .second { display: block; color: var(--muted); }
.hero .lead { margin-bottom: 2em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 1.4em; font-size: .92rem; color: var(--muted); }

/* SIP-Protokoll */
.trace {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
  font-family: var(--mono); font-size: .86rem; line-height: 1.75;
  overflow: hidden;
}
.trace-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--font); font-size: .88rem; color: var(--muted);
}
.trace-head img { width: 22px; height: 22px; display: inline-block; vertical-align: middle; margin-right: 8px; }
.trace ol { list-style: none; padding: 16px 18px 6px; }
.trace li { display: grid; grid-template-columns: 1.4em 7.6em 1fr; gap: 6px; white-space: nowrap; }
.trace li .dir { color: var(--muted); }
.trace li .msg { color: var(--text); }
.trace li .info { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.trace li.out .msg { color: var(--orange); }
.trace-state {
  display: flex; align-items: center; gap: 10px;
  margin: 8px 18px 18px; padding: 12px 14px;
  background: var(--panel-2); border-radius: var(--r-sm);
  font-family: var(--font); font-weight: 600;
}
.trace-state .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.trace-state.is-live .dot { background: var(--live); box-shadow: 0 0 0 4px rgba(74, 222, 155, .15); }
.trace-state.is-live .label { color: var(--live); }
.trace-state .time { margin-left: auto; font-family: var(--mono); font-weight: 400; color: var(--muted); }
.js .trace li { opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.js .trace li.on { opacity: 1; transform: none; }

/* ---------- Sektionen ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; border-top: 1px solid var(--line); }
.section-intro { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-intro p { color: var(--muted); }

/* Download-Leiste */
.platforms { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.platforms a {
  display: flex; flex-direction: column; gap: 4px;
  padding: 26px 22px; text-decoration: none;
  border-right: 1px solid var(--line);
  transition: background-color .15s;
}
.platforms a:last-child { border-right: 0; }
.platforms a:hover { background: var(--panel); }
.platforms strong { font-stretch: 112%; font-size: 1.15rem; }
.platforms span { color: var(--muted); font-size: .92rem; }
.platforms a:hover span { color: var(--orange); }
.small-print { margin-top: 16px; font-size: .9rem; color: var(--muted); }

/* Funktionen als Liste */
.features { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 6vw, 88px); }
.feature { display: grid; grid-template-columns: 13ch 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.feature h3 { font-stretch: 100%; font-size: 1.05rem; }
.feature p { color: var(--muted); }

/* Preise */
.pricing { display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: stretch; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); }
.plan { padding: 34px 30px; display: flex; flex-direction: column; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan.featured {
  background: var(--panel); border-left: 0;
  outline: 2px solid var(--orange); outline-offset: -1px; border-radius: var(--r-lg);
  margin: -14px 0; padding: 48px 34px;
  position: relative; z-index: 1;
}
.plan.featured + .plan { border-left: 0; }
.plan h3 { margin-bottom: 14px; }
.plan .price { font-stretch: 125%; font-weight: 700; font-size: 2.6rem; line-height: 1; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--muted); font-stretch: 100%; }
.plan .price.text { font-size: 1.9rem; padding-top: .3rem; }
.plan .per { color: var(--muted); margin: 8px 0 24px; font-size: .95rem; }
.plan ul { list-style: none; margin-bottom: 28px; flex: 1; }
.plan li { padding: 9px 0 9px 26px; border-top: 1px solid var(--line); position: relative; }
.plan li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 10px; height: 6px; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }
.plan .btn { justify-content: center; }
.plan .tag { position: absolute; top: -13px; left: 34px; background: var(--orange); color: var(--orange-ink); font-weight: 650; font-size: .85rem; padding: 3px 12px; border-radius: 99px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 20px;
  padding: 22px 0; font-weight: 600; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--muted); }

/* Abschluss */
.closing .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; }
.closing h2 { margin: 0; max-width: 18ch; }

/* ---------- Unterseiten ---------- */
.page-head { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(28px, 4vw, 40px); }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.page-head p { margin-top: .8em; color: var(--muted); }
.prose { padding-bottom: clamp(64px, 9vw, 112px); }
.prose > * { max-width: 72ch; }
.prose h2 { font-size: 1.35rem; margin: 2.2em 0 .6em; }
.prose h3 { font-size: 1.08rem; font-stretch: 100%; margin: 1.8em 0 .5em; }
.prose p, .prose ul { margin-bottom: 1em; color: #c9d0da; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose a { color: var(--orange); }
.facts { display: grid; grid-template-columns: minmax(12ch, 22ch) 1fr; border-top: 1px solid var(--line); max-width: 760px; margin-bottom: 2em; }
.facts dt, .facts dd { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); padding-right: 20px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); max-width: 900px; }
.contact-grid > div { padding: 28px; }
.contact-grid > div + div { border-left: 1px solid var(--line); }
.contact-grid h2 { font-size: 1rem; font-stretch: 100%; color: var(--muted); font-weight: 500; margin-bottom: .4em; }
.contact-grid p, .contact-grid a { font-size: 1.2rem; font-weight: 600; text-decoration: none; color: var(--text); }
.contact-grid a:hover { color: var(--orange); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 36px; font-size: .95rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h2 { font-size: .95rem; font-stretch: 100%; color: var(--text); margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: repeat(2, 1fr); }
  .platforms a { border-bottom: 1px solid var(--line); }
  .platforms a:nth-child(2n) { border-right: 0; }
  .platforms a:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .features { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; border: 0; gap: 20px; }
  .plan, .plan + .plan { border: 1px solid var(--line); border-radius: var(--r-lg); }
  .plan.featured { margin: 0; border: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid > div + div { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-block; }
  .site-header .btn { display: none; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { display: block; padding: 12px 0; font-size: 1.05rem; }
  .feature { grid-template-columns: 1fr; gap: 6px; }
  .trace { font-size: .78rem; }
  .trace li { grid-template-columns: 1.3em 6.8em 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .trace li { opacity: 1; transform: none; transition: none; }
}
