/* ============ TaktAgent — Design System ============ */

/* Inter selbst gehostet (DSGVO: keine Google-Server) — Variable Font, alle Gewichte */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --accent: #4A9EFF;
  --accent-dark: #2E7FE0;
  --accent-soft: #EAF3FF;
  --navy: #0A1628;
  --text: #1A1A2E;
  --text-soft: #55617A;
  --line: #E3EAF2;
  --bg: #FFFFFF;
  --bg-soft: #F6F9FC;
  --radius: 16px;
  --pill: 999px;
  --shadow: 0 8px 30px rgba(10, 22, 40, .08);
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { color: var(--navy); line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 6.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
h3 { font-size: 1.12rem; font-weight: 700; }
p  { color: var(--text-soft); }

.accent { color: var(--accent); }

section { padding: 64px 0; }
@media (min-width: 768px) { section { padding: 88px 0; } }

.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head .kicker {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--pill); font-weight: 600; font-size: 1rem;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: 1.5px solid transparent; cursor: pointer; min-height: 48px;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(74, 158, 255, .35); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #14243D; }
.btn-whatsapp { background: #25D366; color: #fff; box-shadow: 0 6px 20px rgba(37, 211, 102, .35); }
.btn-whatsapp:hover { background: #1EBE59; }

/* ============ Top banner ============ */
.topbanner {
  background: var(--navy); color: #fff; text-align: center;
  padding: 10px 16px; font-size: .88rem;
}
.topbanner a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.topbanner strong { color: var(--accent); }

/* ============ Header ============ */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-name { font-size: 1.25rem; font-weight: 500; color: var(--accent); letter-spacing: -0.02em; }
.logo-name span { color: var(--accent); font-weight: 800; }
.nav-links { display: none; align-items: center; gap: 28px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { display: none; }
.burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; background: none; border: none; cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: .2s; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; padding: 10px 20px; min-height: 42px; font-size: .92rem; }
  .burger { display: none; }
}
.mobile-menu {
  display: none; border-top: 1px solid var(--line); background: #fff; padding: 12px 20px 20px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 13px 4px; text-decoration: none; color: var(--navy);
  font-weight: 600; border-bottom: 1px solid var(--line); font-size: 1.02rem;
}
.mobile-menu a:last-child { border-bottom: none; }

/* ============ Hero ============ */
.hero {
  background: linear-gradient(180deg, var(--accent-soft) 0%, #FDFEFF 90%);
  text-align: center; padding: 72px 0 80px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--pill);
  padding: 8px 16px; font-size: .85rem; font-weight: 600; color: var(--text);
  box-shadow: var(--shadow); margin-bottom: 26px;
}
.hero h1 { max-width: 800px; margin: 0 auto 18px; }
.hero .sub { max-width: 620px; margin: 0 auto 32px; font-size: 1.08rem; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; align-items: center; }
@media (min-width: 560px) { .hero-ctas { flex-direction: row; justify-content: center; } }
.hero-note { margin-top: 18px; font-size: .85rem; color: var(--text-soft); }

/* ============ Trust strip ============ */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; padding: 22px 0; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; color: var(--navy); }
.trust-item svg { flex: none; }

/* ============ Cards ============ */
.grid-3 { display: grid; gap: 20px; }
@media (min-width: 820px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow);
}
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: .95rem; }
.card ul { list-style: none; margin-top: 14px; }
.card ul li {
  position: relative; padding-left: 26px; font-size: .92rem; color: var(--text-soft); margin-bottom: 8px;
}
.card ul li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 15px; height: 15px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%234A9EFF" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') no-repeat center / contain;
}

/* ============ E-Rechnung section ============ */
.erechnung { background: var(--bg-soft); }
.timeline { display: grid; gap: 16px; margin: 32px 0; }
@media (min-width: 768px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
.tl-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  border-top: 4px solid var(--accent);
}
.tl-item .date { font-weight: 800; color: var(--navy); font-size: 1.05rem; margin-bottom: 6px; }
.tl-item.now { border-top-color: #E8590C; }
.tl-item.now .date { color: #E8590C; }
.tl-item p { font-size: .92rem; }
.erechnung-box {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 32px 26px; display: flex; flex-direction: column; gap: 18px;
}
@media (min-width: 820px) { .erechnung-box { flex-direction: row; align-items: center; justify-content: space-between; padding: 36px 40px; } }
.erechnung-box h3 { color: #fff; font-size: 1.3rem; margin-bottom: 6px; }
.erechnung-box p { color: #B9C6D8; font-size: .95rem; max-width: 520px; }
.erechnung-box .price { color: var(--accent); font-weight: 700; }

/* ============ Steps ============ */
.steps { counter-reset: step; display: grid; gap: 20px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 22px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(74, 158, 255, .4);
}
.step h3 { margin: 8px 0 8px; }
.step p { font-size: .93rem; }

/* ============ Pricing ============ */
.pricing { background: var(--bg-soft); }
.price-note {
  text-align: center; margin-top: 26px; font-size: .9rem; color: var(--text-soft);
}
.price-card { display: flex; flex-direction: column; }
.price-card .tag {
  align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-soft);
  border-radius: var(--pill); padding: 4px 12px; margin-bottom: 14px;
}
.price-card .amount { font-size: 1.9rem; font-weight: 800; color: var(--navy); margin: 6px 0 2px; }
.price-card .amount small { font-size: .95rem; font-weight: 600; color: var(--text-soft); }
.price-card .sub-amount { font-size: .88rem; color: var(--text-soft); margin-bottom: 14px; }
.price-card ul { margin-bottom: 22px; }
.price-card .btn { margin-top: auto; }
.price-card.featured { border: 2px solid var(--accent); position: relative; }

/* ============ FAQ ============ */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  padding: 18px 22px; font-weight: 600; color: var(--navy); cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: .98rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--accent); flex: none; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; font-size: .93rem; }

/* ============ Contact ============ */
.contact-box {
  background: linear-gradient(135deg, var(--navy) 0%, #14304F 100%);
  border-radius: 24px; padding: 44px 26px; text-align: center; color: #fff;
}
@media (min-width: 768px) { .contact-box { padding: 60px 48px; } }
.contact-box h2 { color: #fff; }
.contact-box > p { color: #B9C6D8; max-width: 520px; margin: 0 auto 30px; }
.contact-ctas { display: flex; flex-direction: column; gap: 12px; align-items: center; }
@media (min-width: 560px) { .contact-ctas { flex-direction: row; justify-content: center; } }
.contact-alt { margin-top: 22px; font-size: .92rem; color: #B9C6D8; }
.contact-alt a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ============ Footer ============ */
footer { padding: 40px 0 30px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 768px) { .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-links { display: flex; gap: 22px; list-style: none; flex-wrap: wrap; }
.footer-links a { color: var(--text-soft); text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: .85rem; color: var(--text-soft); }

/* ============ Legal pages ============ */
.legal { padding: 48px 0 72px; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: 2rem; margin-bottom: 24px; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 10px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal p, .legal li { font-size: .95rem; color: var(--text-soft); margin-bottom: 10px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal a { color: var(--accent); }
