/* ===== Local Ally – Schwarz auf Creme, kantiger Print-Look passend zum Logo ===== */
:root {
  --bg: #f5f0e2;
  --paper: #faf6ea;
  --paper-2: #ece5d1;
  --ink: #1d1b16;
  --ink-soft: #3a352a;
  --line: rgba(29, 27, 22, 0.22);
  --line-strong: rgba(29, 27, 22, 0.85);
  --soft: rgba(29, 27, 22, 0.06);
  --muted: #6f6759;
  --danger: #a53a2c;
  --ok: #2e7d43;
  --info: #2456a6;
  --input-bg: #fffdf6;
  --shadow-hard: rgba(29, 27, 22, 0.85);
  --shadow-soft: rgba(29, 27, 22, 0.15);
  --chart-2: #a49a86;
  --footer-muted: #d8d0bd;
  --footer-note: #a49a86;
  --radius: 6px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", Consolas, "Courier New", monospace;
}

/* ===== Farb-Presets (im Dashboard umschaltbar) ===== */
:root[data-theme="nacht"] {
  --bg: #17161b;
  --paper: #1f1e24;
  --paper-2: #2a2830;
  --ink: #ece9dd;
  --ink-soft: #cfccc0;
  --line: rgba(236, 233, 221, 0.18);
  --line-strong: rgba(236, 233, 221, 0.8);
  --soft: rgba(236, 233, 221, 0.07);
  --muted: #96928a;
  --danger: #e07a68;
  --ok: #6fce8b;
  --info: #82aae8;
  --input-bg: #26242c;
  --shadow-hard: rgba(0, 0, 0, 0.6);
  --shadow-soft: rgba(0, 0, 0, 0.35);
  --chart-2: #8b8578;
  --footer-muted: #55524a;
  --footer-note: #85816f;
}

:root[data-theme="violett"] {
  --bg: #100f16;
  --paper: #17161f;
  --paper-2: #201e2b;
  --ink: #b7a6ff;
  --ink-soft: #a394e6;
  --line: rgba(183, 166, 255, 0.25);
  --line-strong: rgba(183, 166, 255, 0.8);
  --soft: rgba(183, 166, 255, 0.08);
  --muted: #7d7595;
  --danger: #ff8a76;
  --ok: #7ddf96;
  --info: #8fb5ff;
  --input-bg: #1c1a26;
  --shadow-hard: rgba(0, 0, 0, 0.6);
  --shadow-soft: rgba(0, 0, 0, 0.35);
  --chart-2: #6f6590;
  --footer-muted: #453e6b;
  --footer-note: #574f85;
}

:root[data-theme="ozean"] {
  --bg: #0f1720;
  --paper: #16212c;
  --paper-2: #1e2c3a;
  --ink: #d9e6f2;
  --ink-soft: #b9cbdc;
  --line: rgba(217, 230, 242, 0.18);
  --line-strong: rgba(217, 230, 242, 0.8);
  --soft: rgba(217, 230, 242, 0.07);
  --muted: #7e94a8;
  --danger: #ef8570;
  --ok: #6fd39a;
  --info: #7fb3e8;
  --input-bg: #1a2733;
  --shadow-hard: rgba(0, 0, 0, 0.55);
  --shadow-soft: rgba(0, 0, 0, 0.3);
  --chart-2: #66809a;
  --footer-muted: #46617a;
  --footer-note: #5d7a94;
}

:root[data-theme="wald"] {
  --bg: #eaefe0;
  --paper: #f4f7ec;
  --paper-2: #dde4cd;
  --ink: #253321;
  --ink-soft: #3d4d38;
  --line: rgba(37, 51, 33, 0.22);
  --line-strong: rgba(37, 51, 33, 0.85);
  --soft: rgba(37, 51, 33, 0.06);
  --muted: #67735e;
  --danger: #a53a2c;
  --ok: #2e7d43;
  --info: #2f5e9e;
  --input-bg: #fbfdf4;
  --shadow-hard: rgba(37, 51, 33, 0.85);
  --shadow-soft: rgba(37, 51, 33, 0.15);
  --chart-2: #93a184;
  --footer-muted: #cbd6b8;
  --footer-note: #9aa887;
}

:root[data-theme="rose"] {
  --bg: #f6eae6;
  --paper: #fbf2ef;
  --paper-2: #eeddd6;
  --ink: #4a2420;
  --ink-soft: #6b3a34;
  --line: rgba(74, 36, 32, 0.22);
  --line-strong: rgba(74, 36, 32, 0.85);
  --soft: rgba(74, 36, 32, 0.06);
  --muted: #8a6a63;
  --danger: #a53a2c;
  --ok: #2e7d43;
  --info: #2456a6;
  --input-bg: #fef8f5;
  --shadow-hard: rgba(74, 36, 32, 0.85);
  --shadow-soft: rgba(74, 36, 32, 0.15);
  --chart-2: #b39289;
  --footer-muted: #d9beb6;
  --footer-note: #b39289;
}

:root[data-theme="himmel"] {
  --bg: #e9f0f6;
  --paper: #f3f8fc;
  --paper-2: #d9e5ef;
  --ink: #14324b;
  --ink-soft: #2c4d68;
  --line: rgba(20, 50, 75, 0.22);
  --line-strong: rgba(20, 50, 75, 0.85);
  --soft: rgba(20, 50, 75, 0.06);
  --muted: #5d7890;
  --danger: #a53a2c;
  --ok: #2e7d43;
  --info: #2456a6;
  --input-bg: #fafdff;
  --shadow-hard: rgba(20, 50, 75, 0.85);
  --shadow-soft: rgba(20, 50, 75, 0.15);
  --chart-2: #8fa9bd;
  --footer-muted: #c6d8e6;
  --footer-note: #93afc4;
}

:root[data-theme="kohle"] {
  --bg: #131313;
  --paper: #1c1c1c;
  --paper-2: #272727;
  --ink: #f0f0f0;
  --ink-soft: #d2d2d2;
  --line: rgba(240, 240, 240, 0.18);
  --line-strong: rgba(240, 240, 240, 0.8);
  --soft: rgba(240, 240, 240, 0.07);
  --muted: #969696;
  --danger: #e07a68;
  --ok: #6fce8b;
  --info: #85ace0;
  --input-bg: #232323;
  --shadow-hard: rgba(0, 0, 0, 0.6);
  --shadow-soft: rgba(0, 0, 0, 0.35);
  --chart-2: #7f7f7f;
  --footer-muted: #4c4c4c;
  --footer-note: #757575;
}

:root[data-theme="bernstein"] {
  --bg: #191309;
  --paper: #221a0e;
  --paper-2: #2e2414;
  --ink: #f0c274;
  --ink-soft: #d9ad64;
  --line: rgba(240, 194, 116, 0.25);
  --line-strong: rgba(240, 194, 116, 0.8);
  --soft: rgba(240, 194, 116, 0.08);
  --muted: #9b8256;
  --danger: #ff8a76;
  --ok: #9cd67f;
  --info: #8fb5ff;
  --input-bg: #281f11;
  --shadow-hard: rgba(0, 0, 0, 0.6);
  --shadow-soft: rgba(0, 0, 0, 0.35);
  --chart-2: #8a7444;
  --footer-muted: #6b5426;
  --footer-note: #86682f;
}

:root[data-theme="marine"] {
  --bg: #0d1522;
  --paper: #131e2d;
  --paper-2: #1b2a3d;
  --ink: #7ea6c8;
  --ink-soft: #6b93b5;
  --line: rgba(126, 166, 200, 0.22);
  --line-strong: rgba(126, 166, 200, 0.8);
  --soft: rgba(126, 166, 200, 0.08);
  --muted: #64809a;
  --danger: #ef8570;
  --ok: #6fd39a;
  --info: #8fb5ff;
  --input-bg: #162334;
  --shadow-hard: rgba(0, 0, 0, 0.6);
  --shadow-soft: rgba(0, 0, 0, 0.35);
  --chart-2: #4a6c85;
  --footer-muted: #24405c;
  --footer-note: #3a5a7a;
}

:root[data-theme="tanne"] {
  --bg: #0f1913;
  --paper: #16231c;
  --paper-2: #1e3026;
  --ink: #d3e7da;
  --ink-soft: #b4cfc0;
  --line: rgba(211, 231, 218, 0.18);
  --line-strong: rgba(211, 231, 218, 0.8);
  --soft: rgba(211, 231, 218, 0.07);
  --muted: #7e9a8a;
  --danger: #ef8570;
  --ok: #7fd6a0;
  --info: #7fb3d8;
  --input-bg: #1a2a21;
  --shadow-hard: rgba(0, 0, 0, 0.55);
  --shadow-soft: rgba(0, 0, 0, 0.3);
  --chart-2: #5e7d6c;
  --footer-muted: #3f5d4d;
  --footer-note: #567a66;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

::selection { background: var(--ink); color: var(--bg); }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; width: 100%; }

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--muted); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); font-weight: 800; margin: 0 0 0.6rem; }
h3 { margin: 0.4rem 0; font-weight: 700; }

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

.kicker {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 0.6rem;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  vertical-align: middle;
  margin-right: 0.6rem;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.18em;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.55rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand:hover { color: var(--ink); }

/* Logo: faerbt sich in der Akzentfarbe des aktiven Themes ... */
.brand-mark {
  display: block;
  width: 25px;
  height: 35px;
  background-color: var(--ink);
  -webkit-mask: url("../assets/logo.png") center / contain no-repeat;
  mask: url("../assets/logo.png") center / contain no-repeat;
}

/* ... nur im Marine-Theme zeigt es die zweifarbige Original-Version */
:root[data-theme="marine"] .brand-mark {
  background: url("../assets/logo-color.png") center / contain no-repeat;
  -webkit-mask: none;
  mask: none;
}

.tabs { display: flex; gap: 0.2rem; flex-wrap: wrap; }

.nav-tab {
  appearance: none;
  background: transparent;
  border: 1.5px solid transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.nav-tab:hover { background: var(--soft); color: var(--ink); }

.nav-tab.active { color: var(--bg); background: var(--ink); }

/* Sprachumschalter DE/EN */
.lang-toggle {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.65rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.12s;
}

.lang-toggle:hover { background: var(--soft); }

/* ===== Panels / Layout ===== */
.tab-panel { animation: fadeIn 0.2s ease; }

/* Durchscrollbare Abschnitte der Startseite */
.page-part { scroll-margin-top: 72px; }
.page-part + .page-part { border-top: 1.5px solid var(--line); }

@media (max-width: 640px) {
  .page-part { scroll-margin-top: 110px; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.2rem 1.2rem 1.2rem;
}

.section:last-child { padding-bottom: 3.2rem; }

.section.narrow { max-width: 480px; }

.section-intro { color: var(--muted); margin-top: 0; max-width: 640px; }

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 800;
  margin: 0.2rem 0 0.6rem;
}

.slogan {
  font-style: italic;
  font-weight: 600;
  font-size: 1.08rem;
  margin: 0 0 1rem;
}

.hero-text { color: var(--muted); margin: 0 0 1.6rem; font-size: 1.02rem; max-width: 480px; }
.hero-text strong { color: var(--ink); }

.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

/* ===== Demo-Fenster ===== */
.demo-window {
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--shadow-soft);
  overflow: hidden;
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 0.9rem;
  border-bottom: 2px solid var(--ink);
  background: var(--bg);
}

.demo-dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); }
.demo-dot:first-child { background: var(--ink); }

.demo-title {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.demo-body { padding: 1.1rem 1.2rem 1rem; }

.demo-listen {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.demo-wave { display: inline-flex; align-items: center; gap: 3px; height: 16px; }

.demo-wave i {
  width: 3px;
  border-radius: 2px;
  background: var(--ink);
  animation: wave 1.1s ease-in-out infinite;
}

.demo-wave i:nth-child(1) { height: 6px; }
.demo-wave i:nth-child(2) { height: 12px; animation-delay: 0.12s; }
.demo-wave i:nth-child(3) { height: 16px; animation-delay: 0.24s; }
.demo-wave i:nth-child(4) { height: 12px; animation-delay: 0.36s; }
.demo-wave i:nth-child(5) { height: 6px;  animation-delay: 0.48s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.5); }
  50%      { transform: scaleY(1); }
}

.demo-user {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1rem 0 0.4rem;
  min-height: 2.6em;
}

.demo-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--ink);
  vertical-align: -0.12em;
  animation: blink 0.9s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.demo-reply {
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--ink-soft);
  background: var(--soft);
  border-left: 3px solid var(--ink);
  padding: 0.5rem 0.8rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 1rem;
  min-height: 2.4em;
  transition: opacity 0.25s;
}

.demo-foot {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 0.6rem;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .demo-wave i, .demo-caret { animation: none; }
  .tab-panel { animation: none; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font: inherit;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--shadow-hard); }
.btn:active { transform: none; box-shadow: none; }

.btn-primary { color: var(--bg); background: var(--ink); }
.btn-primary:hover { color: var(--bg); }

.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { color: var(--ink); }

.btn-small { padding: 0.35rem 0.8rem; font-size: 0.85rem; border-width: 1.5px; }
.btn-small:hover { box-shadow: 3px 3px 0 var(--shadow-hard); }

.btn-danger { color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { box-shadow: 3px 3px 0 rgba(165, 58, 44, 0.6); }

/* ===== Cards ===== */
.card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.card-icon { width: 1.7rem; height: 1.7rem; }

.card p { color: var(--muted); margin-bottom: 0; }

.social-card { text-decoration: none; color: var(--ink); display: block; border-color: var(--line-strong); transition: transform 0.1s, box-shadow 0.1s; }
.social-card:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--shadow-soft); color: var(--ink); }
.social-link { display: block; margin-top: 0.8rem; font-family: var(--mono); font-size: 0.82rem; word-break: break-all; }
.social-card .btn { margin-top: 0.8rem; }

/* ===== Schritte ===== */
.steps { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0; }

.steps li {
  display: flex;
  gap: 1.3rem;
  padding: 1.2rem 0.2rem;
  border-top: 1.5px solid var(--line);
}

.steps li:last-child { border-bottom: 1.5px solid var(--line); }

.step-num {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  min-width: 2.6rem;
  line-height: 1.3;
}

.steps h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); }

/* ===== Beispiel-Kommandos ===== */
.command-examples {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0.85rem;
}

.command-examples li {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.65rem;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.command-example-type {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.command-examples strong { font-family: var(--mono); font-size: 0.96rem; line-height: 1.4; }

.command-example-result {
  align-self: end;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 0.65rem;
  font-size: 0.86rem;
}

.custom-functions-intro { max-width: 760px; }

.custom-feature {
  margin-top: 1.5rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--soft);
  overflow: hidden;
}

.custom-feature-header {
  padding: 1.35rem clamp(1.25rem, 4vw, 2.5rem);
  background: var(--paper-2);
  border-bottom: 1.5px solid var(--line-strong);
}

.custom-feature-header h3 { margin: 0; font-size: 1.15rem; }
.custom-feature-header p { margin: 0.35rem 0 0; color: var(--ink); }

.custom-flow {
  list-style: none;
  margin: 0;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
}

.custom-flow-step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1.2rem;
  background: var(--input-bg);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
}

.custom-flow-number {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--bg);
  background: var(--ink);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.custom-flow-step > div { display: grid; align-content: start; gap: 0.35rem; }

.custom-flow-label {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.custom-flow-value { font-size: clamp(1.05rem, 2.5vw, 1.35rem); line-height: 1.3; }
.custom-flow-step small { color: var(--ink-soft); font-size: 0.86rem; }

.custom-flow-arrow {
  position: absolute;
  top: 50%;
  right: -2.35rem;
  width: 1.7rem;
  transform: translateY(-50%);
  text-align: center;
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.custom-flow-result {
  margin: 0 clamp(1.25rem, 4vw, 2.5rem);
  padding: 0.85rem 1rem;
  color: var(--ink-soft);
  background: var(--soft);
  border-left: 3px solid var(--ink);
}

.custom-flow-result strong { color: var(--ink); }

.custom-feature-actions { padding: 1.6rem clamp(1.25rem, 4vw, 2.5rem) 1.8rem; }
.custom-feature-actions h4 { margin: 0 0 0.8rem; font-size: 1rem; }

.custom-feature-capabilities {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.6rem;
}

.custom-feature-capabilities li {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.custom-feature-capabilities strong { font-size: 0.9rem; }
.custom-feature-capabilities span { color: var(--ink-soft); font-size: 0.84rem; }

.custom-feature-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  background: var(--paper-2);
  border-top: 1.5px solid var(--line-strong);
}

.custom-feature-footer p { margin: 0; color: var(--ink); font-size: 0.9rem; }

/* ===== FAQ ===== */
.faq { margin-top: 1.4rem; }

.faq details { border-top: 1.5px solid var(--line); }
.faq details:last-child { border-bottom: 1.5px solid var(--line); }

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.9rem 2rem 0.9rem 0.2rem;
  list-style: none;
  position: relative;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--muted);
}

.faq details[open] summary::after { content: "–"; }

.faq details p { margin: 0 0 1rem; padding: 0 0.2rem; color: var(--muted); max-width: 720px; }

/* ===== Vergleichstabelle ===== */
.table-wrap { overflow-x: auto; margin-top: 1.2rem; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  min-width: 520px;
}

.compare-table th, .compare-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.compare-table thead th {
  background: var(--ink);
  color: var(--bg);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td:first-child { color: var(--muted); }
.compare-table td:last-child { color: var(--muted); }

/* ===== Ankündigungen ===== */
.announcement-list { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.2rem; }

.announcement {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-left: 4px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}

.announcement-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.announcement h3 { margin: 0; font-size: 1.08rem; }
.announcement time { color: var(--muted); font-size: 0.8rem; font-family: var(--mono); }
.announcement p { margin: 0.5rem 0 0; color: var(--muted); white-space: pre-line; }

.pill {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.14rem 0.5rem;
  border-radius: 4px;
  background: var(--soft);
  color: var(--ink);
  border: 1px solid var(--line);
}

.pill.release { background: rgba(46, 125, 67, 0.1); color: var(--ok); border-color: rgba(46, 125, 67, 0.35); }
.pill.update  { background: rgba(36, 86, 166, 0.08); color: var(--info); border-color: rgba(36, 86, 166, 0.3); }
.pill.ok      { background: rgba(46, 125, 67, 0.1); color: var(--ok); border-color: rgba(46, 125, 67, 0.35); }
.pill.err     { background: rgba(165, 58, 44, 0.08); color: var(--danger); border-color: rgba(165, 58, 44, 0.3); }

/* ===== Downloads ===== */
.download-list { display: flex; flex-direction: column; gap: 0.9rem; margin: 1.4rem 0; }

.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}

.download-item h3 { margin: 0; font-size: 1.08rem; }
.download-item a { text-decoration: none; }
.download-meta { color: var(--muted); font-size: 0.85rem; font-family: var(--mono); margin-top: 0.25rem; }

.requirements ul { margin: 0.6rem 0 0; padding-left: 1.2rem; color: var(--muted); }

/* ===== Formulare ===== */
.form-card { display: flex; flex-direction: column; gap: 0.45rem; margin-top: 1.2rem; }

label { font-weight: 700; font-size: 0.9rem; margin-top: 0.5rem; }

input, textarea, select {
  font: inherit;
  color: var(--ink);
  background: var(--input-bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--shadow-soft);
}

input[type="file"] { padding: 0.45rem; }

form .btn { margin-top: 0.9rem; align-self: flex-start; }

#announce-form, #upload-form { display: flex; flex-direction: column; gap: 0.3rem; }

.form-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.form-actions .btn { margin-top: 0.9rem; }

.form-error { color: var(--danger); font-weight: 700; margin: 0.6rem 0 0; }

/* Passwortfeld mit Anzeigen/Verbergen-Auge */
.password-field { position: relative; }
.password-field input { padding-right: 2.7rem; }

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  padding: 0.35rem;
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
}

.password-toggle:hover { color: var(--ink); background: var(--soft); }
.password-toggle .icon { width: 1.2em; height: 1.2em; }

/* ===== Dashboard ===== */
.dash-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.dash-header-actions { display: flex; gap: 0.5rem; }

.dash-section-title { margin: 2.4rem 0 0.9rem; font-size: 1.2rem; display: flex; align-items: center; gap: 0.5rem; }

.dash-card { margin-bottom: 1rem; }
.dash-card h4 { margin: 0 0 0.8rem; }

#token-box summary { cursor: pointer; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
#token-box[open] summary { margin-bottom: 0.6rem; }
.token-steps { padding-left: 1.2rem; }
.token-steps li { margin-bottom: 0.25rem; }
.token-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.token-row input { flex: 1; min-width: 220px; }
.token-row .btn { margin-top: 0; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat-card { text-align: center; padding: 1.2rem 0.8rem; }
.stat-value { display: block; font-family: var(--mono); font-size: 1.9rem; font-weight: 700; }
.stat-label { color: var(--muted); font-size: 0.85rem; }

.chart { min-height: 120px; }
.chart svg { width: 100%; height: auto; display: block; }

.chart-legend { display: flex; gap: 1.2rem; font-size: 0.82rem; color: var(--muted); margin-bottom: 0.6rem; }
.legend-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 0.35rem; }
.swatch-views { background: var(--ink); }
.swatch-visitors { background: var(--chart-2); }

.bar-row { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.5rem; }
.bar-row .bar-label { width: 90px; color: var(--muted); font-size: 0.85rem; flex-shrink: 0; }
.bar-row .bar-track { flex: 1; background: var(--paper-2); border-radius: 4px; height: 16px; overflow: hidden; }
.bar-row .bar-fill { height: 100%; background: var(--ink); border-radius: 4px; }
.bar-row .bar-value { width: 48px; text-align: right; font-family: var(--mono); font-weight: 700; font-size: 0.85rem; }

.dash-list { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1rem; }

.dash-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 1.1rem;
}

.dash-item .dash-item-main { flex: 1; min-width: 200px; }
.dash-item h4 { margin: 0; font-size: 1rem; }
.dash-item p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.85rem; }
.dash-item-actions { display: flex; gap: 0.4rem; }

/* ===== Farbdesign-Picker ===== */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.7rem;
  margin: 0.9rem 0 0.4rem;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s, border-color 0.1s;
}

.theme-option:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--shadow-soft); }

.theme-option.active { border-color: var(--ink); box-shadow: 3px 3px 0 var(--shadow-hard); }

.theme-dots { display: inline-flex; flex-shrink: 0; }

.theme-dots i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.4);
  margin-left: -5px;
}

.theme-dots i:first-child { margin-left: 0; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: var(--bg); margin-top: 3rem; }

.footer-inner { max-width: 1100px; margin: 0 auto; padding: 2.2rem 1.2rem; text-align: center; }

.footer-brand {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.slogan-small { font-style: italic; font-size: 0.92rem; margin: 0.5rem 0 1rem; color: var(--footer-muted); }

.footer-links { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; margin-bottom: 0.8rem; }
.footer-links a { color: var(--bg); text-decoration: none; font-weight: 600; border-bottom: 1.5px solid transparent; }
.footer-links a:hover { border-bottom-color: var(--bg); color: var(--bg); }

.footer-note { color: var(--footer-note); font-size: 0.82rem; margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.6rem; }
  .demo-window { max-width: 480px; }
}

@media (max-width: 720px) {
  .custom-flow { grid-template-columns: 1fr; }
  .custom-flow-arrow { top: auto; right: auto; bottom: -2.4rem; left: 50%; transform: translateX(-50%) rotate(90deg); }
}

@media (max-width: 640px) {
  .section { padding: 2.2rem 1rem 1rem; }
  .header-inner { justify-content: center; }
  .steps li { gap: 0.9rem; }
  .custom-feature-capabilities { grid-template-columns: 1fr; }
  .custom-feature-footer { align-items: stretch; flex-direction: column; }
  .custom-feature-cta { width: 100%; justify-content: center; }
}
