/* Dokumentbasis – One-Page Styles (mobile-first, no external deps) */

:root {
  --bg-primary: #0f172a;
  --bg-secondary: #111827;
  --bg-card: #1e293b;
  --bg-card-hover: #243044;
  --border: #334155;
  --border-subtle: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #0ea5e9;
  --accent-hover: #38bdf8;
  --accent-muted: rgba(14, 165, 233, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  --max-width: 72rem;
  --header-height: 4rem;
  --transition: 0.2s ease;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

h1, h2, h3, h4 {
  color: var(--text-primary);
  line-height: 1.25;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Layout utilities */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background-color: rgba(17, 24, 39, 0.5);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section__intro {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.section__intro--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Header & Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

.site-logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-logo:hover {
  color: var(--accent);
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.nav-toggle-label:hover {
  background: var(--bg-card);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle:checked ~ .nav-toggle-label .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle:checked ~ .nav-toggle-label .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked ~ .nav-toggle-label .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.98);
  padding: 1.5rem 1.25rem 2rem;
  overflow-y: auto;
  border-top: 1px solid var(--border-subtle);
}

.nav-toggle:checked ~ .site-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  font-size: 1rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.site-nav a:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.site-nav .btn {
  margin-top: 1rem;
  text-align: center;
}

.header-cta {
  display: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--block {
  width: 100%;
}

/* Hero */

.hero {
  padding: 4rem 0 5rem;
}

.hero__content {
  max-width: 44rem;
}

.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.1875rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero__note {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Cards */

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--transition), background var(--transition);
}

.card:hover {
  border-color: var(--border);
  background: var(--bg-card-hover);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9375rem;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.75rem;
  background: var(--accent-muted);
  color: var(--accent);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
}

/* Module sections */

.module-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.module-block {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.module-block:first-child {
  padding-top: 0;
}

.module-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.module-block h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.module-block > p {
  margin-bottom: 1rem;
  max-width: 48rem;
}

.feature-list {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
}

.feature-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* Demo section */

.demo-box {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.demo-box p {
  margin-bottom: 1.5rem;
}

.demo-box__note {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Pricing */

.pricing-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
}

.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-muted);
}

.pricing-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.pricing-card__desc {
  flex: 1;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.pricing-card__includes {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.pricing-card .btn {
  margin-top: auto;
}

.pricing-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 auto;
}

/* FAQ – native details/summary */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: var(--border);
}

.faq-item[open] {
  border-color: var(--accent);
}

.faq-item summary {
  padding: 1rem 1.25rem;
  padding-right: 2.5rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
  transition: color var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  display: none;
  content: "";
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item__answer {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9375rem;
  animation: faq-open 0.25s ease;
}

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact */

.contact-card {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-card p {
  margin-bottom: 1.5rem;
}

.contact-card__note {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(17, 24, 39, 0.6);
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.site-footer__brand {
  max-width: 24rem;
  font-size: 0.9375rem;
}

.site-footer__brand strong {
  display: block;
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer__links a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.site-footer__links a:hover {
  color: var(--accent);
}

.site-footer__copy {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Legal placeholder pages */

.legal-page {
  padding: 3rem 0 4rem;
}

.legal-page h1 {
  margin-bottom: 0.5rem;
}

.legal-page .back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}

.legal-placeholder {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 40rem;
}

.legal-placeholder p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Responsive – tablet */

@media (min-width: 640px) {
  .card-grid--2,
  .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid .pricing-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }
}

/* Responsive – desktop */

@media (min-width: 768px) {
  .nav-toggle-label {
    display: none;
  }

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    background: transparent;
    padding: 0;
    overflow: visible;
    border: none;
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
    flex-direction: row;
  }

  .site-nav a {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  .site-nav .btn {
    margin-top: 0;
    margin-left: 0.5rem;
  }

  .header-cta {
    display: none;
  }

  .site-header__nav-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}

@media (min-width: 900px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid--6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-grid .pricing-card:last-child {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }

  .site-footer__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .site-footer__links {
    justify-content: flex-end;
  }
}

@media (min-width: 1100px) {
  .card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
