/* gehaltrechner.net — Design-System
   Signatur-Element: die 24-Stunden-Uhr auf der Startseite (zeigt live,
   wann Nacht-/Sonntags-/Feiertagszuschläge gelten) — alles andere bleibt
   diszipliniert, damit die Uhr das Auffällige bleibt. */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  --primary: #0B2545;
  --primary-600: #1B4F91;
  --success: #0F9D74;
  --premium: #7C5CFC;
  --warning: #F2A93B;
  --danger: #D64545;
  --background: #F7F8FA;
  --surface: #FFFFFF;
  --text-primary: #0B0C0E;
  --text-secondary: #5A5D63;
  --border: #E3E5E8;
  --radius: 12px;
  /* Nur für den dunklen Hero-Bereich der Startseite: */
  --ink: #060A14;
  --ink-surface: #101A2E;
  --ink-border: #223255;
  --ink-text: #E7ECF7;
  --ink-muted: #93A0C2;
  --glow-night: #5B8CFF;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--background); color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
}
h1, h2, h3, .brand { font-family: var(--font-display); letter-spacing: -0.01em; }
.num, .value, .price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

:focus-visible { outline: 2px solid var(--primary-600); outline-offset: 2px; }

.nav {
  background: var(--primary); color: #fff; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.nav a { color: #fff; text-decoration: none; margin-left: 20px; font-size: 14px; opacity: 0.9; transition: opacity 0.15s; }
.nav a:hover { opacity: 1; }
.nav .brand { font-weight: 600; font-size: 16px; }
.container { max-width: 960px; margin: 0 auto; padding: 32px 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; margin-bottom: 20px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.metric { background: #F1F4F8; border-radius: var(--radius); padding: 16px; transition: transform 0.15s ease; }
.metric:hover { transform: translateY(-2px); }
.metric .label { font-size: 13px; color: var(--text-secondary); }
.metric .value { font-size: 26px; font-weight: 600; margin-top: 4px; }
.metric.success { background: linear-gradient(160deg, #E1F5EE, #F1F4F8); }
.metric.success .value { color: var(--success); }
.metric.premium { background: linear-gradient(160deg, #EEEDFE, #F1F4F8); }
.metric.premium .value { color: var(--premium); }
h1 { font-size: 26px; margin: 0 0 8px; font-weight: 700; }
h2 { font-size: 18px; margin: 0 0 12px; font-weight: 600; }
p.lead { color: var(--text-secondary); margin-top: 0; }
label { display: block; font-size: 13px; color: var(--text-secondary); margin: 12px 0 4px; font-weight: 500; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit; transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary-600); box-shadow: 0 0 0 3px rgba(27,79,145,0.12); outline: none;
}
button, .btn {
  background: var(--primary-600); color: #fff; border: none; padding: 11px 20px;
  border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; margin-top: 16px; display: inline-block;
  text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
button:hover, .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(27,79,145,0.25); }
button:active, .btn:active { transform: translateY(0); }
button.secondary { background: transparent; color: var(--primary-600); border: 1px solid var(--primary-600); }
button.secondary:hover { background: rgba(27,79,145,0.06); box-shadow: none; }
button.danger { background: var(--danger); }
table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { color: var(--text-secondary); font-weight: 500; }
tbody tr { transition: background 0.15s; }
tbody tr:hover { background: #FAFBFC; }
.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.badge.success { background: #E1F5EE; color: #04342C; }
.badge.warning { background: #FAEEDA; color: #412402; }
.badge.danger { background: #FCEBEB; color: #501313; }
.badge.premium { background: #EEEDFE; color: #26215C; }
.error { color: var(--danger); font-size: 14px; margin-top: 8px; }
.muted { color: var(--text-secondary); font-size: 13px; }

/* ===================== LANDINGPAGE / HERO ===================== */
.hero {
  background: radial-gradient(ellipse 120% 80% at 50% -10%, #14203D 0%, var(--ink) 55%), var(--ink);
  color: var(--ink-text);
  padding: 88px 20px 96px;
  position: relative; overflow: hidden;
}
.hero-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; text-align: center; } }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--glow-night); margin-bottom: 14px; display: block;
}
.hero h1 {
  font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; margin: 0 0 20px; color: #fff; font-weight: 700;
}
.hero h1 em { font-style: normal; color: var(--glow-night); }
.hero p.sub { font-size: 17px; color: var(--ink-muted); max-width: 46ch; margin-bottom: 32px; }
@media (max-width: 860px) { .hero p.sub { margin-left: auto; margin-right: auto; } }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .hero-ctas { justify-content: center; } }
.hero .btn-primary {
  background: linear-gradient(135deg, #3B6BFF, var(--glow-night)); color: #fff; padding: 13px 24px;
  border-radius: 10px; font-weight: 600; text-decoration: none; box-shadow: 0 8px 28px rgba(91,140,255,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(91,140,255,0.45); }
.hero .btn-ghost {
  color: var(--ink-text); padding: 13px 22px; border-radius: 10px; text-decoration: none;
  border: 1px solid var(--ink-border); transition: border-color 0.2s, background 0.2s;
}
.hero .btn-ghost:hover { border-color: var(--glow-night); background: rgba(91,140,255,0.08); }

/* Die Uhr */
.clock-wrap { display: flex; justify-content: center; }
.clock {
  --size: 280px; width: var(--size); height: var(--size); border-radius: 50%; position: relative;
  background: conic-gradient(
    from 0deg,
    #1A2744 0deg 137deg,      /* 00:00–09:08 neutral */
    var(--glow-night) 137deg 165deg, /* Marker-Bereich (visuell) */
    #1A2744 165deg 330deg,    /* Tag */
    var(--glow-night) 330deg 360deg  /* 22:00–24:00 Nacht */
  );
  box-shadow: 0 0 0 1px var(--ink-border), 0 0 60px rgba(91,140,255,0.18), inset 0 0 40px rgba(0,0,0,0.4);
  animation: clock-in 1.1s ease-out;
}
.clock::before {
  content: ''; position: absolute; inset: 14%; border-radius: 50%; background: var(--ink-surface);
  border: 1px solid var(--ink-border);
}
.clock-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(91,140,255,0.35), transparent 30deg);
  animation: sweep 6s linear infinite;
  mix-blend-mode: screen;
}
.clock-readout {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; z-index: 2;
}
.clock-readout .zone { font-family: var(--font-mono); font-size: 13px; color: var(--glow-night); letter-spacing: 0.03em; }
.clock-readout .pct { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: #fff; margin-top: 4px; }
.clock-readout .caption { font-size: 12px; color: var(--ink-muted); margin-top: 4px; }
.clock-tick {
  position: absolute; font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted);
}
.clock-tick.t00 { top: 6px; left: 50%; transform: translateX(-50%); }
.clock-tick.t06 { top: 50%; right: -22px; transform: translateY(-50%); }
.clock-tick.t12 { bottom: 6px; left: 50%; transform: translateX(-50%); }
.clock-tick.t18 { top: 50%; left: -22px; transform: translateY(-50%); }

@keyframes clock-in { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }
@keyframes sweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Feature-Sektion */
.section { max-width: 1080px; margin: 0 auto; padding: 72px 20px; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .eyebrow { color: var(--primary-600); }
.section-head h2 { font-size: 30px; color: var(--text-primary); margin-bottom: 10px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.feature-card:hover { box-shadow: 0 12px 32px rgba(11,37,69,0.08); border-color: #C9D3E5; }
.feature-card .tag {
  font-family: var(--font-mono); font-size: 11px; color: var(--primary-600); background: #EAF0FB;
  padding: 3px 9px; border-radius: 6px; display: inline-block; margin-bottom: 12px;
}
.feature-card h3 { font-size: 16px; margin: 0 0 8px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); margin: 0; }

.stat-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 32px 0;
}
.stat-strip .stat { text-align: center; }
.stat-strip .stat .num { font-size: 30px; font-weight: 700; color: var(--primary); display: block; }
.stat-strip .stat .label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

.footer-cta {
  background: linear-gradient(135deg, var(--primary) 0%, #123367 100%); color: #fff;
  border-radius: 20px; padding: 48px; text-align: center; margin: 0 20px 60px;
}
.footer-cta h2 { color: #fff; font-size: 26px; }
.footer-cta p { color: rgba(255,255,255,0.75); max-width: 46ch; margin: 0 auto 24px; }

footer.site {
  padding: 32px 20px; text-align: center; color: var(--text-secondary); font-size: 13px;
}
footer.site a { color: var(--text-secondary); }

/* ===================== DARK LANDINGPAGE (komplette Seite, wie kiwebseiten.com — nur in Blau) ===================== */
:root {
  --glow-cyan: #22D3EE;
}
body.dark-site { background: var(--ink); }

.dark-nav {
  background: rgba(6,10,20,0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ink-border);
  color: var(--ink-text); padding: 16px 24px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.dark-nav .brand { color: #fff; }
.dark-nav a { color: var(--ink-muted); text-decoration: none; margin-left: 22px; font-size: 14px; transition: color 0.15s; }
.dark-nav a:hover { color: #fff; }
.dark-nav .nav-links { display: flex; align-items: center; }
@media (max-width: 760px) { .dark-nav .nav-links a:not(.btn-primary):not(.hero-login) { display: none; } }

.ticker { background: var(--ink-surface); border-top: 1px solid var(--ink-border); border-bottom: 1px solid var(--ink-border); overflow: hidden; padding: 14px 0; }
.ticker-track { display: flex; gap: 40px; white-space: nowrap; animation: ticker 28s linear infinite; width: max-content; }
.ticker-track span { color: var(--ink-muted); font-family: var(--font-mono); font-size: 13px; }
.ticker-track span.dot { color: var(--glow-night); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.dark-section { background: var(--ink); color: var(--ink-text); padding: 80px 20px; }
.dark-section.alt { background: var(--ink-surface); }
.dark-section .section-head { max-width: 640px; margin: 0 auto 44px; text-align: left; }
.dark-section .section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.dark-section .section-head h2 { color: #fff; font-size: 30px; }
.dark-section .section-head p { color: var(--ink-muted); font-size: 15px; }
.dark-inner { max-width: 1080px; margin: 0 auto; }

.dcard {
  background: var(--ink-surface); border: 1px solid var(--ink-border); border-radius: 16px; padding: 26px;
  transition: border-color 0.2s, transform 0.2s;
}
.dcard:hover { border-color: var(--glow-night); transform: translateY(-3px); }
.dcard .tag {
  font-family: var(--font-mono); font-size: 11px; color: var(--glow-night); background: rgba(91,140,255,0.12);
  padding: 3px 9px; border-radius: 6px; display: inline-block; margin-bottom: 14px;
}
.dcard h3 { color: #fff; font-size: 16px; margin: 0 0 8px; }
.dcard p { color: var(--ink-muted); font-size: 14px; margin: 0 0 12px; }
.dcard ul { margin: 0; padding-left: 18px; color: var(--ink-muted); font-size: 13px; }
.dcard ul li { margin-bottom: 4px; }

/* Prozess — echte Reihenfolge, daher nummeriert */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: step; }
.process-card { position: relative; padding-top: 8px; }
.process-card .step-num {
  font-family: var(--font-display); font-size: 34px; font-weight: 700; color: transparent;
  -webkit-text-stroke: 1.5px var(--glow-night); margin-bottom: 10px; display: block;
}
.process-card .when { font-family: var(--font-mono); font-size: 11px; color: var(--glow-cyan); margin-bottom: 6px; display: block; }

/* Zähler */
.counter-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; margin-top: 48px; }
.counter-strip .stat { text-align: center; }
.counter-strip .stat .num { font-size: 32px; font-weight: 700; color: #fff; display: block; }
.counter-strip .stat .label { font-size: 13px; color: var(--ink-muted); margin-top: 4px; }

/* Preise (dunkel) */
.billing-toggle {
  display: inline-flex; background: var(--ink-surface); border: 1px solid var(--ink-border); border-radius: 999px;
  padding: 4px; margin-bottom: 32px;
}
.billing-toggle button {
  background: transparent; color: var(--ink-muted); border: none; border-radius: 999px; padding: 8px 18px;
  font-size: 13px; font-weight: 500; margin: 0; cursor: pointer; transition: all 0.2s;
}
.billing-toggle button.active { background: var(--glow-night); color: #fff; box-shadow: none; transform: none; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.pricing-card {
  background: var(--ink-surface); border: 1px solid var(--ink-border); border-radius: 18px; padding: 30px;
  position: relative; transition: border-color 0.2s, transform 0.2s;
}
.pricing-card.featured { border-color: var(--glow-night); background: linear-gradient(160deg, rgba(91,140,255,0.1), var(--ink-surface)); }
.pricing-card:hover { transform: translateY(-3px); }
.pricing-card .badge-pop {
  position: absolute; top: -12px; left: 30px; background: var(--glow-night); color: #fff; font-size: 11px;
  padding: 4px 12px; border-radius: 999px; font-weight: 600;
}
.pricing-card h3 { color: #fff; font-size: 19px; margin: 0 0 6px; }
.pricing-card .desc { color: var(--ink-muted); font-size: 13px; margin-bottom: 18px; }
.pricing-card .price { font-size: 36px; color: #fff; font-weight: 700; }
.pricing-card .price .cycle { font-size: 13px; color: var(--ink-muted); font-weight: 400; }
.pricing-card .term { font-size: 12px; color: var(--glow-cyan); font-family: var(--font-mono); margin-bottom: 20px; }
.pricing-card ul { list-style: none; padding: 0; margin: 0 0 22px; }
.pricing-card ul li { color: var(--ink-muted); font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--ink-border); }
.pricing-card ul li::before { content: '✓ '; color: var(--glow-night); font-weight: 700; }

/* Beispiel-Personas statt erfundener Kundenstimmen */
.persona-card { text-align: left; }
.persona-card .stars { color: var(--glow-cyan); font-size: 13px; margin-bottom: 10px; }
.persona-card blockquote { margin: 0 0 14px; color: #fff; font-size: 14px; line-height: 1.6; font-style: normal; }
.persona-card .who { font-size: 12px; color: var(--ink-muted); }
.illustrative-note {
  text-align: center; font-size: 12px; color: var(--ink-muted); max-width: 60ch; margin: 24px auto 0;
}

/* FAQ Akkordeon */
.faq-list { max-width: 720px; }
.faq-item { border-bottom: 1px solid var(--ink-border); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left; padding: 18px 0; margin: 0;
  color: #fff; font-size: 15px; font-weight: 500; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  box-shadow: none;
}
.faq-q:hover { color: var(--glow-night); transform: none; box-shadow: none; }
.faq-q .plus { font-family: var(--font-mono); color: var(--glow-night); font-size: 18px; transition: transform 0.2s; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--ink-muted); font-size: 14px; line-height: 1.6; }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 20px; }

/* Kontakt (dunkel) */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info dt { font-family: var(--font-mono); font-size: 11px; color: var(--glow-cyan); text-transform: uppercase; margin-top: 20px; }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: 4px 0 0; color: #fff; font-size: 15px; }
.dark-section input, .dark-section select, .dark-section textarea {
  background: var(--ink); border: 1px solid var(--ink-border); color: #fff;
}
.dark-section input:focus, .dark-section select:focus, .dark-section textarea:focus {
  border-color: var(--glow-night); box-shadow: 0 0 0 3px rgba(91,140,255,0.15);
}
.dark-section label { color: var(--ink-muted); }

/* Footer (dunkel) */
.dark-footer { background: var(--ink); border-top: 1px solid var(--ink-border); padding: 56px 20px 28px; color: var(--ink-muted); }
.dark-footer-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .dark-footer-grid { grid-template-columns: 1fr 1fr; } }
.dark-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; }
.dark-footer a { color: var(--ink-muted); text-decoration: none; display: block; font-size: 13px; margin-bottom: 10px; transition: color 0.15s; }
.dark-footer a:hover { color: var(--glow-night); }
.dark-footer .brand-line { color: #fff; font-family: var(--font-display); font-size: 17px; margin-bottom: 10px; }
.dark-footer-bottom { max-width: 1080px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--ink-border); font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ===================== EFFEKTE (custom cursor, grain, transitions) ===================== */
body.custom-cursor-active, body.custom-cursor-active a, body.custom-cursor-active button { cursor: none; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998; transform: translate(-50%, -50%); }
.cursor-dot { width: 6px; height: 6px; background: var(--glow-night); border-radius: 50%; }
.cursor-ring { width: 34px; height: 34px; border: 1px solid rgba(91,140,255,0.5); border-radius: 50%; transition: width 0.2s, height 0.2s, border-color 0.2s; }
.cursor-ring.grow { width: 52px; height: 52px; border-color: var(--glow-night); }

.grain-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 9997; opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.page-transition {
  position: fixed; inset: 0; background: var(--ink); z-index: 9999; opacity: 0; pointer-events: none;
  transition: opacity 0.38s ease;
}
.page-transition.active { opacity: 1; pointer-events: all; }

.magnetic { display: inline-block; transition: transform 0.15s ease-out; }

/* Split-Text Headline-Reveal */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; }
.split-inner { display: inline-block; will-change: transform; }

/* Partikel-Canvas im Hero */
.hero { position: relative; }
#particle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.8; }
.hero-inner { position: relative; z-index: 1; }
