:root {
  color-scheme: dark;

  /* paXCry-Markenfarben: Schwarz/Weiß/Grau mit rotem Akzent - dieselbe
     Palette wie in der pc-app (styles.css) und der Bedienungsanleitung. */
  --bg: #0c0c0e;
  --surface: #16161a;
  --surface-alt: #1e1e23;
  --border: #2c2c32;
  --text: #f2f2f2;
  --text-muted: #a3a3ab;
  --red: #e0212f;
  --red-hover: #ff3b48;

  font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

img {
  max-width: 100%;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 12, 14, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8em 1.5em;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

/* Gruppiert Navigationslinks + Sprachumschalter zusammen auf der rechten
   Seite - auf Mobilgeräten ist das die Klapp-Fläche des Hamburger-Menüs
   (siehe .menu-toggle unten), am Desktop einfach eine normale Flex-Zeile. */
.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.8em;
}

/* Klassisches 3-Balken-Menü, nur auf schmalen Bildschirmen sichtbar
   (siehe Media Query unten) - .nav-panel ist dort standardmäßig
   eingeklappt (display: none) und wird per Klick auf diesen Button
   ein-/ausgeblendet (siehe nav.js). */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.4em;
  height: 2.4em;
  padding: 0;
  background-color: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle-bar {
  display: block;
  width: 1.1em;
  height: 2px;
  background-color: var(--text);
  transition: transform 0.2s ease, opacity 0.15s ease;
}

/* Verwandelt die drei Balken beim Öffnen in ein "X". */
.menu-toggle.open .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  gap: 1.8em;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95em;
  font-weight: 500;
  transition: color 0.15s;
}

.site-nav a:hover {
  color: var(--red-hover);
}

.lang-switch {
  display: flex;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
}

.lang-btn {
  border: none;
  padding: 0.35em 0.7em;
  background-color: transparent;
  color: var(--text-muted);
  font-size: 0.85em;
  font-weight: 600;
  cursor: pointer;
}

.lang-btn:hover {
  color: var(--red-hover);
}

.lang-btn.active {
  background-color: var(--red);
  color: #fff;
}

.lang-btn + .lang-btn {
  border-left: 1px solid var(--border);
}

/* ---------- Hero ---------- */
.hero {
  padding: 6em 0 5em;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(224, 33, 47, 0.18), transparent 55%),
    var(--bg);
}

.hero-logo {
  height: 160px;
  width: auto;
  margin-bottom: 1.2em;
}

.hero h1 {
  font-size: 2.4em;
  line-height: 1.25;
  margin: 0 0 0.5em;
  max-width: 15em;
  margin-left: auto;
  margin-right: auto;
}

.hero-tagline {
  color: var(--text-muted);
  font-size: 1.15em;
  max-width: 38em;
  margin: 0 auto 2em;
}

.hero-actions {
  display: flex;
  gap: 1em;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.7em 1.6em;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95em;
  border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

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

.btn-primary:hover {
  background-color: var(--red-hover);
  border-color: var(--red-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--red);
  color: var(--red-hover);
}

/* ---------- Sections ---------- */
.section {
  padding: 4.5em 0;
}

.section-alt {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  font-size: 1.8em;
  text-align: center;
  margin: 0 0 1.2em;
}

.lead {
  color: var(--text-muted);
  max-width: 42em;
  margin: 0 auto 1.2em;
  text-align: center;
  font-size: 1.05em;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5em;
  margin-top: 2.5em;
}

.feature-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.6em;
  transition: border-color 0.15s;
}

.feature-card:hover {
  border-color: var(--red);
}

.feature-mark {
  color: var(--red);
  font-weight: 700;
  font-size: 0.9em;
  letter-spacing: 0.05em;
  margin-bottom: 0.6em;
}

.feature-card h3 {
  margin: 0 0 0.5em;
  font-size: 1.1em;
}

.feature-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95em;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 2.5em 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.8em;
}

.steps li {
  display: flex;
  gap: 1em;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  background-color: var(--red);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 {
  margin: 0 0 0.3em;
  font-size: 1.05em;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95em;
}

/* ---------- Status box ---------- */
.status-box {
  max-width: 42em;
  margin: 2em auto 0;
  background-color: var(--bg);
  border: 1px solid var(--red);
  border-radius: 10px;
  padding: 1.8em 2em;
}

.status-box p {
  margin: 0 0 1em;
  color: var(--text);
}

.status-box p:last-child {
  margin-bottom: 0;
}

.status-box .status-note {
  color: var(--text-muted);
}

.status-email-line a {
  color: var(--red-hover);
  font-weight: 600;
  text-decoration: none;
}

.status-email-line a:hover {
  text-decoration: underline;
}

/* ---------- Contact form ---------- */
.contact-form {
  max-width: 32em;
  margin: 2em auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.9em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7em 0.9em;
  border-radius: 6px;
  border: 1px solid var(--border);
  background-color: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95em;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
}

.contact-form .btn {
  align-self: flex-start;
  border: 1px solid var(--red);
  cursor: pointer;
}

.hint-small {
  max-width: 32em;
  margin: 1em auto 0;
  color: var(--text-muted);
  font-size: 0.85em;
  text-align: center;
}

/* ---------- Legal pages (Impressum/Datenschutz) ---------- */
.legal-page h1 {
  font-size: 2em;
  margin: 0 0 0.4em;
}

.legal-page h2 {
  font-size: 1.2em;
  text-align: left;
  margin: 1.6em 0 0.6em;
}

.legal-page p {
  color: var(--text-muted);
}

.legal-page .lead {
  text-align: left;
  margin: 0 0 1.4em;
}

.legal-page .hint {
  color: var(--text-muted);
  font-size: 0.9em;
  margin: 0 0 1.6em;
}

.wrap-narrow {
  max-width: 46em;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0 1.6em;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 0.5em 0.8em 0.5em 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95em;
}

.legal-table th {
  color: var(--text-muted);
  font-weight: 600;
  width: 8em;
  white-space: nowrap;
}

.legal-table a {
  color: var(--red-hover);
}

/* ---------- Footer legal links ---------- */
.footer-legal {
  margin-top: 0.8em !important;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--red-hover);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 3em 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 1em;
  opacity: 0.85;
}

.site-footer p {
  margin: 0.3em 0;
  color: var(--text-muted);
  font-size: 0.9em;
}

@media (max-width: 620px) {
  .header-row {
    flex-wrap: wrap;
    padding: 0.8em 1em;
  }

  .menu-toggle {
    display: flex;
  }

  /* Standardmäßig eingeklappt, volle Breite als eigene Zeile unter dem
     Logo/Hamburger-Button, wenn per .open (siehe nav.js) aufgeklappt. */
  .nav-panel {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    margin-top: 1em;
  }

  .nav-panel.open {
    display: flex;
  }

  .site-nav {
    flex-direction: column;
    align-items: center;
    gap: 0.8em;
  }

  .hero {
    padding: 4em 0 3em;
  }

  .hero h1 {
    font-size: 1.8em;
  }

  .hero-logo {
    height: 110px;
  }
}
