/* tangenta.ch – dunkel wie das Programmzeichen, Akzent im Rot-Orange-Verlauf des Logos */
:root {
  --bg: #0e1115;
  --bg-2: #15191e;
  --card: #1a1f26;
  --line: #2a313b;
  --text: #eef1f5;
  --muted: #9aa4b2;
  --red: #d62624;
  --orange: #ff8c42;
  --grad: linear-gradient(120deg, var(--red), var(--orange));
  --radius: 18px;
  --max: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 70% -10%, rgba(214, 38, 36, 0.18), transparent 60%),
              radial-gradient(900px 500px at 0% 20%, rgba(255, 140, 66, 0.08), transparent 60%), var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
code, pre, kbd { font-family: "Cascadia Code", Consolas, "DejaVu Sans Mono", monospace; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 28px;
  padding: 14px max(16px, calc((100% - var(--max)) / 2));
  background: rgba(14, 17, 21, 0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: 0.08em; }
.nav .links { display: flex; gap: 22px; margin-left: auto; }
.nav .links a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav .links a:hover, .nav .links a[aria-current] { color: var(--text); }

/* Sprachwahl und Handy-Menü */
.nav details { position: relative; border: 0; padding: 0; }
.nav details summary { list-style: none; cursor: pointer; }
.nav details summary::-webkit-details-marker { display: none; }
.nav details summary::after { content: none; }
.nav summary { padding-right: 0; font-size: 13px; }
.lang summary {
  padding: 7px 12px !important; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 700;
  color: var(--muted); letter-spacing: 0.08em;
}
.lang summary:hover, .lang[open] summary { color: var(--text); border-color: #3d4652; }
.lang-menu, .menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 180px; padding: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex; flex-direction: column;
}
.lang-menu a, .menu-panel a { padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--muted); font-size: 15px; }
.lang-menu a b { display: inline-block; width: 28px; color: var(--orange); font-size: 12px; }
.lang-menu a:hover, .menu-panel a:hover, .lang-menu a[aria-current] { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.menu { display: none; }
.menu summary { display: grid; gap: 5px; padding: 10px 8px; }
.menu summary span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* Knöpfe */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 700;
  text-decoration: none; transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(214, 38, 36, 0.35); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-small { padding: 9px 18px; font-size: 14px; }

/* Hero */
.hero { max-width: var(--max); margin: 0 auto; padding: 88px 16px 40px; text-align: center; }
.eyebrow, .label { color: var(--orange); text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; font-weight: 700; }
.label b { color: var(--text); }
h1 { font-size: clamp(44px, 7vw, 92px); line-height: 1.02; margin: 16px 0 22px; letter-spacing: -0.03em; font-weight: 850; }
h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.05; margin: 10px 0 18px; letter-spacing: -0.025em; font-weight: 800; }
h3 { margin: 6px 0 8px; font-size: 20px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 720px; margin: 0 auto 30px; font-size: 20px; color: var(--muted); }
.ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.platforms { margin: 26px 0 2px; color: var(--muted); font-size: 15px; }
.note { margin: 0; color: var(--orange); font-size: 14px; font-weight: 600; }

.window {
  margin: 56px auto 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03);
  background: var(--bg-2);
}
.window-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #1d232b; color: var(--muted); font-size: 13px; }
.window-bar i { width: 12px; height: 12px; border-radius: 50%; background: #3a424d; }
.window-bar i:first-child { background: var(--red); }
.window-bar i:nth-child(2) { background: var(--orange); }
.window-bar span { margin-left: 10px; }

/* Laufband */
.ticker { overflow: hidden; border-block: 1px solid var(--line); margin: 64px 0 0; background: rgba(255, 255, 255, 0.02); }
.ticker-track { display: flex; gap: 46px; width: max-content; padding: 16px 0; animation: ticker 40s linear infinite; }
.ticker span { color: var(--muted); font-weight: 600; white-space: nowrap; }
.ticker span::before { content: "◆"; color: var(--orange); margin-right: 14px; font-size: 11px; vertical-align: 2px; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Abschnitte */
.section { max-width: var(--max); margin: 0 auto; padding: 110px 16px 0; }
.section.narrow { max-width: 820px; }
.sub { max-width: 720px; color: var(--muted); font-size: 19px; }
.keys { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 46px; }
.keys span { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; color: var(--muted); font-size: 15px; }
kbd { background: #262d36; border: 1px solid #3a424d; border-bottom-width: 3px; border-radius: 6px; padding: 1px 7px; color: var(--text); font-size: 13px; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cols3 > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.cols3 p { color: var(--muted); margin: 0; }
.lettered .letter {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad); font-weight: 800; color: #fff; margin-bottom: 8px;
}

.split { display: grid; grid-template-columns: 5fr 7fr; gap: 54px; align-items: center; }
.split.reverse .split-text { order: 2; }
.shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.ticks { list-style: none; padding: 0; margin: 22px 0; }
.ticks li { padding-left: 30px; position: relative; margin: 8px 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--grad); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: 14px; color: var(--muted); }
.chips span:first-child { border-color: var(--orange); color: var(--orange); }

/* Kachelraster */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color 0.2s, transform 0.2s; }
.card:hover { border-color: #3d4652; transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; }
.card.wide { grid-column: span 2; }
.card.full { grid-column: 1 / -1; }
.card.accent { background: linear-gradient(150deg, rgba(214, 38, 36, 0.25), rgba(255, 140, 66, 0.12)), var(--card); border-color: rgba(255, 140, 66, 0.4); }
.card.accent a { display: inline-block; margin-top: 14px; color: var(--orange); font-weight: 700; text-decoration: none; }
.num { color: var(--orange); font-weight: 800; font-size: 14px; letter-spacing: 0.1em; }

/* Download */
.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
.downloads .btn { margin: 20px 0 16px; }
.dl-list { list-style: none; padding: 0; margin: 8px 0 16px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
pre { margin: 0; background: #0b0d10; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-size: 13.5px; color: #ffcf9f; }

/* Fragen */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; position: relative; padding-right: 30px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; color: var(--orange); font-size: 24px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 70px; }
.stats div { border-left: 2px solid var(--orange); padding: 4px 0 4px 18px; }
.stats b { display: block; font-size: clamp(34px, 4vw, 48px); font-weight: 850; letter-spacing: -0.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--muted); font-size: 15px; }

/* Raster und Listen */
.cols4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.cols4 .card p { font-size: 15px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 10px; }
.dots { list-style: none; padding: 0; margin: 12px 0 0; }
.dots li { position: relative; padding-left: 18px; margin: 6px 0; color: var(--muted); font-size: 15px; }
.dots li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 22px 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 0 46px; margin: 0 0 18px; min-height: 32px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 15px;
}
.steps a, .sub a, .table a { color: var(--orange); }
.step p { color: var(--muted); margin: 0; }
.more { color: var(--orange); font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }
.center { text-align: center; margin-top: 30px; }
.sub.small { font-size: 15px; margin-top: 18px; }
.chips.plain span:first-child { border-color: var(--line); color: var(--muted); }
.chips.plain { margin-top: 12px; }

/* Tabellen */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 15px; }
.table th { text-align: left; color: var(--muted); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table td:first-child { white-space: nowrap; }
.table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.table code { color: #ffcf9f; font-size: 13.5px; white-space: normal; word-break: break-word; }

/* Unterseiten */
.page-hero { padding-bottom: 0; }
.page-hero h1 { font-size: clamp(40px, 6vw, 76px); }
.prompts { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.prompts h3 { margin-top: 0; }
blockquote { margin: 14px 0 0; padding: 14px 18px; border-left: 3px solid var(--orange); background: rgba(255, 255, 255, 0.03);
  border-radius: 0 12px 12px 0; color: var(--text); font-size: 16px; }
.split > .split-text + .split-text { order: 0; }

.final { text-align: center; padding: 130px 16px 120px; }
.final p { color: var(--muted); font-size: 20px; margin: 0 0 28px; }

/* Fuss */
.footer { border-top: 1px solid var(--line); padding: 50px max(16px, calc((100% - var(--max)) / 2)) 30px; background: #0b0d10; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.footer-cols a:not(.brand) { display: block; color: var(--text); text-decoration: none; margin: 6px 0; font-size: 15px; opacity: 0.85; }
.footer-cols p { color: var(--muted); font-size: 15px; }
.fine { margin-top: 36px; color: #6f7986; font-size: 13px; }

@media (max-width: 1100px) {
  .cols4, .stats { grid-template-columns: repeat(2, 1fr); }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav { gap: 12px; }
  .nav .links { display: none; }
  .nav .lang { margin-left: auto; }
  .menu { display: block; }
  .menu-panel a { color: var(--text); }
  .split, .downloads, .cols3, .footer-cols, .grid3 { grid-template-columns: 1fr; }
  .split.reverse .split-text { order: 0; }
  .bento { grid-template-columns: 1fr; }
  .card.wide, .card.full { grid-column: auto; }
  .hero { padding-top: 56px; }
  .section { padding-top: 80px; }
}

@media (max-width: 560px) {
  .nav .btn-small { display: none; }
  .cols4 { grid-template-columns: 1fr; }
  .table td:first-child { white-space: normal; }
}
