/* ---------------------------------------------------------------------
   IBM Plex, self-hosted.
   Previously loaded from fonts.googleapis.com / fonts.gstatic.com, which
   sends every visitor's IP address to Google before they consent to
   anything (the LG Munchen I ruling, Az. 3 O 17493/20). Serving the files
   ourselves removes that transfer entirely and drops two DNS round trips.
   Only the latin and latin-ext subsets are shipped - enough for English
   and German. IBM Plex is licensed under the SIL OFL 1.1, see
   fonts/LICENSE.txt.
   --------------------------------------------------------------------- */

/* latin-ext — IBM Plex Mono 400 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-400-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;
}
/* latin — IBM Plex Mono 400 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-400-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;
}
/* latin-ext — IBM Plex Mono 500 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-500-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;
}
/* latin — IBM Plex Mono 500 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-500-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;
}
/* latin-ext — IBM Plex Mono 600 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-600-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;
}
/* latin — IBM Plex Mono 600 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-600-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;
}
/* latin-ext — IBM Plex Sans 400 */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-400-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;
}
/* latin — IBM Plex Sans 400 */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-400-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;
}
/* latin-ext — IBM Plex Sans 500 */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-500-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;
}
/* latin — IBM Plex Sans 500 */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-500-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;
}
/* latin-ext — IBM Plex Sans 600 */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-600-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;
}
/* latin — IBM Plex Sans 600 */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-600-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;
}
/* latin-ext — IBM Plex Sans 700 */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-700-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;
}
/* latin — IBM Plex Sans 700 */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-700-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;
}

:root {
  --bg: #0b0f1a;
  --panel: #141b2e;
  --panel-border: #232c44;
  --text: #e7eaf3;
  --text-dim: #8b93a7;
  --accent: #6366f1;
  /* Deeper indigo used wherever white text sits ON the accent: #6366f1
     only reaches 4.47:1 against white, just under the WCAG AA 4.5
     threshold for text this size. Both of these clear it. */
  --accent-strong: #5558eb;
  --accent-strong-hover: #5f62ef;
  --accent-soft: #6366f122;
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --max-w: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.05rem; color: var(--text); }
h4 { font-size: 0.98rem; margin-bottom: 0.4em; }

p { color: var(--text-dim); margin: 0 0 1em; max-width: 62ch; }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: #ffffff0d;
  padding: 0.1em 0.4em;
  border-radius: 4px;
  color: #c8ccf0;
}

/* header */

.site-header {
  border-bottom: 1px solid var(--panel-border);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05rem;
}

.logo-mark {
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 600;
}

.site-nav {
  display: flex;
  /* Ohne das werden die schlichten Links auf die Hoehe des umrandeten
     GitHub-Buttons gedehnt, und ihr Text sitzt dann oben in der gedehnten
     Box statt auf einer Linie mit dem Logo. */
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.15s ease;
}

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

.nav-github {
  border: 1px solid var(--panel-border);
  padding: 6px 14px;
  border-radius: 6px;
  color: var(--text) !important;
}

/* hero */

.hero {
  padding: 88px 0 100px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-sub { font-size: 1.08rem; max-width: 46ch; }

.hero-actions {
  display: flex;
  gap: 14px;
  margin: 28px 0 14px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-family: var(--mono);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* The buttons that end in a <span> ("Download for <span>macOS</span>")
     are flex containers, so the whitespace before the span is dropped as an
     anonymous flex item and the words run together. This restores the gap. */
  gap: 0.35em;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 8px;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent-strong);
  color: white;
}

.btn-primary:hover { background: var(--accent-strong-hover); }

.btn-ghost {
  border: 1px solid var(--panel-border);
  color: var(--text);
}

.btn-ghost:hover { border-color: #3a4568; }

.btn-large { padding: 15px 26px; font-size: 1.02rem; }

/* hero demo mock */

.demo-window {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px #00000080;
}

.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--panel-border);
}

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.demo-titlebar-label {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.demo-body { padding: 20px; }

.demo-msg {
  font-size: 0.86rem;
  padding: 10px 13px;
  border-radius: 9px;
  margin-bottom: 12px;
  max-width: 90%;
}

.demo-msg-user {
  background: var(--accent-strong);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 3px;
}

.demo-msg-ai {
  background: #1c2438;
  color: var(--text-dim);
  border-bottom-left-radius: 3px;
}

.demo-action {
  background: #0e1422;
  border: 1px solid var(--panel-border);
  border-radius: 9px;
  padding: 14px;
  margin-top: 6px;
}

.demo-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.demo-action-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: none;
}

.badge {
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 20px;
  font-family: var(--mono);
}

.badge-confirm { background: #eab30822; color: var(--yellow); }

.demo-command {
  display: block;
  background: #060a13;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.demo-action-buttons { display: flex; gap: 10px; }

.demo-btn {
  font-size: 0.8rem;
  padding: 7px 14px;
  border-radius: 6px;
  font-weight: 500;
}

.demo-btn-approve { background: var(--green); color: #06210f; }
.demo-btn-reject { border: 1px solid var(--panel-border); color: var(--text-dim); }

/* sections */

.section { padding: 84px 0; border-top: 1px solid var(--panel-border); }

.section h2 { margin-bottom: 40px; }

/* how it works */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.steps li { padding-top: 4px; border-top: 2px solid var(--accent); }

.step-index {
  display: block;
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 14px;
}

/* features */

.feature-group { margin-bottom: 56px; }
.feature-group:last-child { margin-bottom: 0; }

.feature-group-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: baseline;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 14px;
  margin-bottom: 24px;
}

.feature-group-head h3 { color: var(--accent); }
.feature-group-head p { margin: 0; font-size: 0.9rem; }

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}

.feature p { font-size: 0.92rem; }

/* closer look (illustrations) */

.showcase h2 { margin-bottom: 12px; }

.showcase-note {
  font-size: 0.9rem;
  max-width: 54ch;
  margin-bottom: 8px;
}

.showcase-item {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
  margin: 0;
  padding: 40px 0;
  border-top: 1px solid var(--panel-border);
}

/* Alternate sides so the column of illustrations doesn't read as a card grid. */
.showcase-item:nth-child(even) .showcase-figure { grid-column: 2; grid-row: 1; }
.showcase-item:nth-child(even) .showcase-caption { grid-column: 1; grid-row: 1; }

.showcase-figure {
  position: relative;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  overflow: hidden;
  /* --bg, not --panel: the illustrations are square artwork centred on a
     #0b0f1a field, so matching that here makes their side margins read as
     one continuous surface with the frame instead of a darker inset block. */
  background: var(--bg);
  /* Matches the 4:3 illustrations, so object-fit never has to crop them.
     Also reserves the slot before the files exist. */
  aspect-ratio: 4 / 3;
}

.showcase-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.badge-illustration {
  position: absolute;
  top: 12px;
  right: 12px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border: 1px solid var(--panel-border);
  color: #a5b4fc;
  letter-spacing: 0.02em;
}

.showcase-index {
  display: block;
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.showcase-caption p { font-size: 0.92rem; margin-bottom: 0; }

/* download */

.download-sub { font-family: var(--mono); font-size: 0.9rem; }

.download-primary { margin: 20px 0 30px; }

.download-meta {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 10px;
}

.download-alt a { color: var(--accent); text-decoration: underline; }
.download-alt { font-size: 0.86rem; }

.download-fallback { margin: 20px 0 30px; }

.download-all summary {
  cursor: pointer;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.download-all-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.download-all-list li a {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 7px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.84rem;
}

.download-all-list li a:hover { border-color: var(--accent); }
.download-all-list .file-size { color: var(--text-dim); }
.download-all-loading { color: var(--text-dim); font-size: 0.88rem; }

/* footer */

.site-footer {
  border-top: 1px solid var(--panel-border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-inner a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--text-dim);
  transition: color 0.15s ease;
}

.footer-inner a:hover { color: var(--text); }

/* legal pages (Impressum, Datenschutz) */

.legal { padding: 64px 0 88px; }

.legal-back {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 28px;
}

.legal-back:hover { color: var(--text); }

.legal h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 8px; }

.legal-updated {
  font-family: var(--mono);
  font-size: 0.82rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.15rem;
  margin: 40px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--panel-border);
}

.legal h3 { font-size: 1rem; margin: 24px 0 8px; }

.legal p, .legal li { font-size: 0.94rem; max-width: 68ch; }

.legal ul { padding-left: 20px; margin: 0 0 1em; }
.legal li { color: var(--text-dim); margin-bottom: 6px; }

.legal address {
  font-style: normal;
  color: var(--text-dim);
  font-size: 0.94rem;
  margin-bottom: 1em;
}

.legal a { color: #a5b4fc; text-decoration: underline; text-underline-offset: 3px; }

/* responsive */

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .feature-group-head { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .showcase-item { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
  /* Reset the alternating placement — stacked, the illustration always
     comes first, then its caption. */
  .showcase-item:nth-child(even) .showcase-figure,
  .showcase-item:nth-child(even) .showcase-caption { grid-column: 1; grid-row: auto; }
  .footer-inner { flex-direction: column; gap: 16px; }
  .footer-links { gap: 8px 18px; }
}

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

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