:root {
  --bg: #111315;
  --bg-subtle: #16191c;
  --row-hover: #1a1e22;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  --accent: #31a6ca;
  --text: #eef1f4;
  --text-muted: #a6b0ba;
  --text-dim: #8b96a1;

  --max-width: 880px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 40px, var(--max-width));
  margin-inline: auto;
}

/* Intro / Brand */
.intro {
  padding: 76px 0 68px;
}

.intro-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.brand-mark-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: 220px;
  height: auto;
}

.domain-note {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.intro-text h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 650;
  color: var(--text);
}

.intro-text p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 16.5px;
  max-width: 54ch;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

.intro-text strong {
  color: var(--text);
  font-weight: 600;
}

.muted-note {
  font-size: 14.5px !important;
  color: var(--text-dim) !important;
}

/* Software Releases */
.releases {
  padding: 44px 0 72px;
  border-top: 1px solid var(--line);
}

.releases-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

.releases-bar h2 {
  margin: 0;
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.os-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
}

.os-tab {
  appearance: none;
  border: 0;
  border-bottom: 1.5px solid transparent;
  background: transparent;
  padding: 4px 0 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
}

.os-tab:hover {
  color: var(--text-muted);
}

.os-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.release-entry {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 44px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.release-entry:last-child {
  padding-bottom: 8px;
}

.release-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.release-heading h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.release-version {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}

.release-desc {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-points li {
  position: relative;
  padding-left: 14px;
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.5;
}

.feature-points li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.release-files {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.platform-block[hidden] {
  display: none;
}

.platform-heading {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.dl-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.dl-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.14s ease, padding-left 0.14s ease;
}

.dl-row:hover,
.dl-row:focus-visible {
  background-color: var(--row-hover);
  outline: none;
}

.dl-title {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
}

.dl-spec {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
}

.dl-cta {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}

.dl-row:hover .dl-cta,
.dl-row:focus-visible .dl-cta {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Kurze FAQ */
.faq-section {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
}

.section-kicker {
  margin: 0 0 20px;
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.faq-list {
  border-top: 1px solid var(--line);
}

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

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: color 0.15s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "–";
  color: var(--accent);
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item p {
  margin: 0 0 16px;
  padding: 0 4px;
  max-width: 68ch;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Laufschrift (nur Logos) */
.logo-strip {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-color: var(--bg-subtle);
}

.marquee-viewport {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: bojett-scroll 34s linear infinite;
}

.marquee-viewport:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-right: 64px;
}

.marquee-group img {
  height: 28px;
  width: auto;
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.marquee-group img:hover {
  opacity: 1;
}

@keyframes bojett-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-33.333333%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    padding: 0 20px;
  }
  .marquee-group[aria-hidden="true"] {
    display: none;
  }
}

/* Footer */
.site-footer {
  padding: 26px 0 38px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

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

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Contact Page */
.contact-page {
  padding: 64px 0 80px;
  min-height: calc(100vh - 96px);
}

.contact-wrap {
  max-width: 640px;
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.15s ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--text);
}

.contact-head {
  margin-bottom: 32px;
}

.contact-head h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.6vw, 34px);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.contact-head p {
  margin: 0;
  font-size: 15.5px;
  color: var(--text-muted);
}

.notice {
  margin-bottom: 28px;
  padding: 16px 18px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: 3px;
  font-size: 14.5px;
}

.notice strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-weight: 600;
}

.notice p {
  margin: 0;
  color: var(--text-muted);
}

.notice ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.notice-success {
  border-left-color: #3a9c6e;
}

.notice-error {
  border-left-color: #c95656;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.field .optional {
  font-weight: 400;
  color: var(--text-dim);
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  background-color: var(--bg-subtle);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: #191d21;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 4px;
}

.submit-btn {
  appearance: none;
  padding: 11px 22px;
  background-color: #196d88;
  color: #f3f7f9;
  border: 1px solid var(--accent);
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.submit-btn:hover,
.submit-btn:focus-visible {
  background-color: var(--accent);
  color: #0d1215;
  outline: none;
}

.form-hint {
  font-size: 13px;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 780px) {
  .intro {
    padding: 48px 0 44px;
  }
  .intro-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .brand-mark-wrap {
    justify-self: start;
  }
  .brand-logo {
    width: 176px;
  }
  .release-entry {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 0;
  }
}

@media (max-width: 520px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .dl-row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 2px;
  }
  .dl-spec {
    grid-column: 1;
    grid-row: 2;
  }
  .dl-cta {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}
