/* ===== FONTS ===== */
@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-1E9F, U+1EF2-1EFF, U+2020, 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;
}

/* ===== DESIGN TOKENS =====
   Palette: #F7F7F7 · #EEEEEE · #393E46 · #929AAB, Seitenhintergrund als neutraler Grauverlauf
   Abgeleitet: Weiß, dunklerer Nebentext (Lesbarkeit), feine Linien.
   Alte Variablennamen bleiben als Aliase bestehen, damit Seiten-Styles weiter greifen. */
:root {
  --paper:      #F7F7F7;
  --page-top:   #F7F7F7;   /* Seitenverlauf: neutrales Grau, oben hell → unten etwas dunkler */
  --page-bottom:#E3E3E3;
  --surface:    rgba(255,255,255,0.5);   /* Bänder/Flächen: Aufhellung über dem Verlauf */
  --ink:        #393E46;
  --slate:      #929AAB;

  --ink-soft:   #565D69;   /* Nebentext, 6.3:1 auf #F7F7F7 */
  --ink-faint:  #5C636F;   /* Kleingedrucktes, min. 4.7:1 auf dem gesamten Verlauf */
  --line:       #DADDE3;
  --line-strong:#B4B9C3;
  --on-ink:     #F7F7F7;
  --on-ink-soft:#C9CDD6;
  --accent-brand:#7C2C96;  /* Violett aus dem Logo, abgedunkelt und wärmer; ca. 7:1 auf dem Seitenverlauf */
  --accent-brand-hover:#66237C;
  --nav-bg:#1E2228;

  /* Aliase (Legacy) */
  --bg:             var(--paper);
  --bg-card:        #FFFFFF;
  --bg-card-hover:  #FFFFFF;
  --border:         var(--line);
  --border-light:   var(--line-strong);
  --accent:         var(--ink);
  --accent-cyan:    var(--ink);
  --accent-purple:  var(--ink);
  --gradient:       var(--ink);
  --gradient-subtle:transparent;
  --text:           var(--ink);
  --text-muted:     var(--ink-soft);
  --text-dim:       var(--ink-faint);

  --radius:    6px;
  --radius-lg: 8px;
  --shadow-card: 0 1px 2px rgba(57,62,70,.06), 0 12px 32px -16px rgba(57,62,70,.22);
  --shadow-glow: none;
  --transition: 0.15s ease;

  --nav-h: 72px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  background-color: var(--page-bottom);
  background-image: linear-gradient(180deg, var(--page-top) 0%, var(--page-bottom) 100%);
  min-height: 100vh;
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
}

body:not(:has(nav)) { padding-top: 0; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
nav :focus-visible, footer :focus-visible { outline-color: var(--on-ink); }

/* ===== TYPOGRAPHY ===== */
h1, h2 { color: var(--accent-brand); }
h1 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 2.8vw, 2.25rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; }

/* Hervorhebung in Überschriften: nur Tonwert, kein Verlauf */
.gradient-text { color: inherit; }

p { max-width: 68ch; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 112px 0; }

/* ===== BUTTONS ===== */
.btn,
.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

.btn-primary { background: var(--accent-brand); color: #fff; border-color: var(--accent-brand); }
.btn-primary:hover { background: var(--accent-brand-hover); border-color: var(--accent-brand-hover); }

.btn-price-old { text-decoration: line-through; opacity: 0.7; font-weight: 500; font-size: 0.88em; }

.btn-ghost { background: transparent; color: var(--accent-brand-hover); border-color: var(--accent-brand-hover); }
.btn-ghost:hover { background: var(--surface); }

/* ===== NAVIGATION (dunkle Leiste) ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--nav-bg);
  color: var(--on-ink);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
nav .container { width: 100%; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { height: 56px; width: auto; }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.lang-switch a { color: var(--on-ink-soft); padding: 4px 6px; border-radius: 3px; transition: color var(--transition); }
.lang-switch a:hover { color: #fff; }
.lang-switch a.active { color: #fff; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.lang-switch .lang-sep { color: var(--slate); }

.nav-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 4px;
  color: var(--on-ink-soft);
  transition: color var(--transition), background var(--transition);
  flex-shrink: 0;
}
.nav-social:hover { color: #fff; background: rgba(255,255,255,0.1); }

nav .btn-primary { padding: 10px 20px; }

/* Sprachumschalter auf Seiten ohne Navigationsleiste (Kauf, Danke) */
.lang-switch-top .lang-switch a { color: var(--ink-soft); }
.lang-switch-top .lang-switch a:hover { color: var(--ink); }
.lang-switch-top .lang-switch a.active { color: var(--ink); }
.lang-switch-top .lang-switch .lang-sep { color: var(--slate); }

/* ===== BADGES / HINWEISE ===== */
.intro-price-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1.5px solid var(--slate);
  padding-bottom: 1px;
}

.legal-binding-note {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 48px;
}

/* Dekorative Elemente, bewusst nicht mehr verwendet */
.hero-badge,
.section-tag,
.hero-bg,
.app-window-glow,
.pricing-card-glow,
.compat-dot,
.usecase-icon,
.screenshot-titlebar,
.page-hero-glow,
.page-hero-imgbg { display: none; }

/* ===== HERO (Startseite) ===== */
#hero { padding: 96px 0 112px; }

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 72px;
  align-items: center;
}

.hero-title { margin-bottom: 24px; }

.hero-sub {
  font-size: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 34rem;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.trust-item { display: block; white-space: nowrap; }
.trust-item svg { display: none; }

.hero-visual { display: block; }

.app-window {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
  background: #1f2226;
}
.app-window img { width: 100%; height: auto; }

/* ===== SEITEN-HERO (Unterseiten) ===== */
#page-hero { padding: 104px 0 112px; }
#page-hero .container > div { max-width: 44rem; }

/* ===== KOMPATIBILITÄT ===== */
#compat {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.compat-inner { display: flex; align-items: baseline; gap: 12px 32px; flex-wrap: wrap; }

.compat-label { font-size: 0.9rem; color: var(--ink-soft); white-space: nowrap; }

.compat-items { display: flex; flex-wrap: wrap; gap: 6px 28px; }

.compat-item { font-size: 0.95rem; font-weight: 500; color: var(--ink); }

/* ===== SECTION HEADER ===== */
.section-header { text-align: left; max-width: 44rem; margin-bottom: 64px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.125rem; color: var(--ink-soft); }

/* ===== RASTER MIT HAARLINIEN (Features, Schritte, Einsatzbereiche) ===== */
.features-grid,
.usecases-grid,
.steps,
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 48px;
}

.feature-card,
.usecase-card,
.step,
.problem-card {
  border-top: 1px solid var(--line-strong);
  padding-top: 24px;
}

.feature-icon,
.problem-icon { margin-bottom: 16px; }
.feature-icon svg,
.problem-icon svg { width: 24px; height: 24px; color: var(--slate); display: block; }

.feature-card h3,
.usecase-card h3,
.step h3,
.problem-card h3 { margin-bottom: 10px; }

.feature-card p,
.usecase-card p,
.step p,
.problem-card p { color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }

.step-number { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 12px; }
.step-number::before { content: '0'; }

/* ===== SCREENSHOTS ===== */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line-strong);
}

.tab-btn {
  padding: 12px 0;
  margin-bottom: -1px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--ink); border-bottom-color: var(--ink); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.screenshot-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
  background: #1f2226;
  max-width: 920px;
}
.screenshot-frame img { width: 100%; height: auto; }

.tab-panel > p { margin-top: 16px; }

/* ===== PREISKARTE ===== */
.pricing-card {
  max-width: 480px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: left;
}

.pricing-badge { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 20px; }

.pricing-price { margin-bottom: 8px; }

.price-amount { font-size: 4rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.price-currency { font-size: 1.75rem; font-weight: 600; vertical-align: top; display: inline-block; margin: 8px 4px 0 0; color: var(--ink); }
.price-old { font-size: 1.4rem; font-weight: 500; color: var(--ink-faint); text-decoration: line-through; vertical-align: middle; margin-left: 12px; }
.price-vat { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 32px; }

.pricing-features { margin-bottom: 32px; }

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  color: var(--ink);
}
.pricing-feature:first-child { border-top: 1px solid var(--line); }

.check-icon { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 4px; }
.check-icon svg { width: 14px; height: 14px; stroke: var(--ink); stroke-width: 2; fill: none; }

.pricing-cta { width: 100%; padding: 16px; font-size: 1rem; }
.pricing-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 16px; }

/* ===== KONTAKT / FORMULARE ===== */
.contact-card {
  max-width: 680px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 24px; }

.form-group label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.required { color: var(--ink-soft); }

.form-control {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form-control:hover { border-color: var(--slate); }
.form-control:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(57,62,70,0.15); }
.form-control::placeholder { color: var(--slate); }

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23393E46' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
select.form-control option { background: #fff; color: var(--ink); }

textarea.form-control { resize: vertical; min-height: 140px; line-height: 1.6; }

.form-submit { width: 100%; padding: 15px; font-size: 1rem; margin-top: 4px; }

.alert {
  padding: 16px 20px;
  border-radius: 4px;
  margin-bottom: 28px;
  font-size: 0.95rem;
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  color: var(--ink);
  border-left: 3px solid var(--ink);
}
.alert-success { border-left-color: var(--slate); }
.alert-error   { border-left-color: var(--ink); }

.hp-field { display: none !important; }

.coming-soon-badge { display: inline-block; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 16px; }

/* ===== FOOTER (dunkle Leiste) ===== */
footer { background: var(--ink); color: var(--on-ink-soft); padding: 48px 0; }

.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }

.footer-logo { height: 40px; width: auto; }

.footer-copy { font-size: 0.9rem; color: var(--on-ink-soft); }

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { font-size: 0.9rem; color: var(--on-ink-soft); transition: color var(--transition); }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* ===== EINSATZBEREICHE ===== */
.usecases-grid { gap: 48px; }

/* ===== FAQ ===== */
.faq-list { max-width: 48rem; }

.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item:first-child { border-top: 1px solid var(--line-strong); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { color: #000; }

.faq-question::after {
  content: '';
  width: 10px; height: 10px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  margin-right: 4px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-question::after { transform: rotate(-135deg); }

.faq-answer { padding-bottom: 24px; }
.faq-answer p { color: var(--ink-soft); font-size: 1rem; line-height: 1.75; }
.faq-answer a { color: var(--ink) !important; text-decoration: underline; text-underline-offset: 3px; }

/* ===== EINBLENDEN: bewusst ohne Effekt (Inhalt immer sichtbar) ===== */
.fade-up { opacity: 1; transform: none; }

/* ===== ZWEISPALTIG: Überschrift links, Inhalt rechts ===== */
#pricing > .container,
#cta-box > .container,
#contact > .container,
#faq > .container {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px 80px;
  align-items: start;
}
#pricing .section-header,
#cta-box .section-header,
#contact .section-header,
#faq .section-header { margin-bottom: 0; position: sticky; top: calc(var(--nav-h) + 40px); }
#pricing .pricing-card,
#cta-box .pricing-card,
#contact .contact-card { max-width: none; }
#pricing .pricing-card,
#cta-box .pricing-card { max-width: 34rem; }
#faq .faq-list { max-width: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  #pricing > .container, #cta-box > .container, #contact > .container, #faq > .container { grid-template-columns: 1fr; gap: 40px; }
  #pricing .section-header, #cta-box .section-header, #contact .section-header, #faq .section-header { position: static; }
  .hero-layout { grid-template-columns: 1fr; gap: 56px; }
  .features-grid, .usecases-grid, .steps, .problems-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .container { padding: 0 20px; }
  section { padding: 72px 0; }
  #hero { padding: 56px 0 72px; }
  #page-hero { padding: 64px 0 72px; }
  .section-header { margin-bottom: 44px; }

  .nav-logo { height: 48px; }
  .nav-actions { gap: 8px; }
  .nav-social { width: 34px; height: 34px; }

  .features-grid, .usecases-grid, .steps, .problems-grid { grid-template-columns: 1fr; gap: 40px; }

  .pricing-card, .contact-card { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  .tabs { gap: 4px 20px; }
}

@media (max-width: 480px) {
  .compat-inner { gap: 8px 20px; }
  .btn { padding: 12px 20px; }
}

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