/* =========================================================
   RSchreckeneder, IT- & Wirtschaftsberatung
   Design: refined terminal / amber phosphor CRT heritage
   ========================================================= */

:root {
  --bg: #0b0d10;
  --bg-raised: #14171b;
  --bg-raised-2: #1b1f24;
  --border: #262b31;
  --border-soft: #1d2126;

  --text: #e9e6df;
  --text-dim: #9a9d9f;
  --text-faint: #6b6e70;

  --accent: #e8a34d;
  --accent-dim: #b97f3a;
  --accent-soft: rgba(232, 163, 77, 0.14);
  --accent-glow: rgba(232, 163, 77, 0.35);

  --danger: #d9705f;
  --success: #6fae8e;

  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", "SFMono-Regular",
    Consolas, "Liberation Mono", Menlo, monospace;
  --sans: ui-sans-serif, "Segoe UI", system-ui, -apple-system, "Helvetica Neue",
    Arial, sans-serif;

  --radius: 6px;
  --max-w: 1040px;
}

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/eb-garamond-v33-latin-500.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;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: 84px;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* subtle ambient scanline texture, very low opacity */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.012) 0px,
    rgba(255, 255, 255, 0.012) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
}
h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.25;
}
h3 {
  font-size: 1.15rem;
}

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

.eyebrow {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "$";
  color: var(--text-faint);
}

.page-home .eyebrow::before {
  content: "\00B7";
  color: var(--text-faint);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #14100a;
  padding: 0.7em 1.2em;
  z-index: 100;
  font-family: var(--mono);
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
}

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 13, 16, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  white-space: nowrap;
}
.brand-mark {
  flex-shrink: 0;
  display: block;
}
.brand:hover {
  text-decoration: none;
}
.brand:hover .brand-mark rect:first-child {
  stroke: var(--accent-dim);
}
.brand:hover .brand-word {
  color: var(--accent-dim);
}
.brand-word {
  font-family: "EB Garamond", var(--sans);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.88rem;
}
.nav-links a {
  color: var(--text-dim);
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

.lang-switch {
  position: relative;
  font-family: var(--mono);
  font-size: 0.85rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 4px;
  padding: 0.35em 0.6em;
  cursor: pointer;
  min-height: 36px;
}
.lang-toggle:hover,
.lang-toggle[aria-expanded="true"] {
  color: var(--accent);
  border-color: var(--accent-dim);
}
.lang-globe {
  flex-shrink: 0;
}
.lang-current {
  letter-spacing: 0.03em;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 160px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  z-index: 30;
}
.lang-menu[hidden] {
  display: none;
}
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.55em 0.7em;
  border-radius: 4px;
  color: var(--text-dim);
  font-size: 0.88rem;
}
.lang-menu a:hover,
.lang-menu a:focus-visible {
  background: var(--accent-soft);
  color: var(--text);
  text-decoration: none;
}
.lang-menu a[aria-current="true"] {
  color: var(--accent);
}
.lang-menu-name {
  flex: 1;
}
.lang-menu-short {
  color: var(--text-faint);
  font-size: 0.78rem;
}
.lang-check {
  color: var(--accent);
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
}

.lang-mobile-item {
  display: none;
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open {
    max-height: 420px;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: 0.9em 1.5rem;
    width: 100%;
    border-bottom: 1px solid var(--border-soft);
    min-height: 44px;
    box-sizing: border-box;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 4px;
    padding: 0;
    cursor: pointer;
  }

  .brand-word {
    font-size: 1.02rem;
    letter-spacing: 0.06em;
  }

  /* Language switch moves inside the mobile menu; the standalone
     desktop dropdown button is hidden to avoid two separate controls. */
  .lang-switch-desktop {
    display: none;
  }
  .lang-mobile-item {
    display: block;
    padding: 0.7em 1.5rem;
    border-bottom: none;
  }
  .lang-mobile-row {
    display: flex;
    gap: 0.6rem;
  }
  .lang-mobile-row a {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4em;
    width: auto !important;
    min-height: 40px;
    padding: 0.4em 0.9em;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--text-dim);
  }
  .lang-mobile-row a[aria-current="page"] {
    color: var(--accent);
    border-color: var(--accent-dim);
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero h1 span {
  color: var(--accent);
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 44ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--mono);
  font-size: 0.92rem;
  padding: 0.75em 1.4em;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  box-sizing: border-box;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #14100a;
  border-color: var(--accent);
  font-weight: 600;
}
.btn-primary:hover {
  background: #f0b264;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.btn-ghost {
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* terminal window */
.terminal {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7em 1em;
  background: var(--bg-raised-2);
  border-bottom: 1px solid var(--border);
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.terminal-title {
  margin-left: 0.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-faint);
}
.terminal-body {
  padding: 1.4em 1.4em 1.6em;
  font-family: var(--mono);
  font-size: 0.88rem;
  min-height: 220px;
}
.terminal-line {
  white-space: pre-wrap;
  color: var(--text-dim);
  margin-bottom: 0.35em;
}
.terminal-line .prompt {
  color: var(--accent);
}
.terminal-line .out {
  color: var(--text);
}
.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .terminal-body {
    font-size: 0.8rem;
    padding: 1.1em 1em 1.3em;
    min-height: 180px;
  }
  .hero {
    padding-top: 2.2rem;
  }
  .container {
    padding: 0 1.1rem;
  }
}

/* ticker / spreadsheet window (business page hero) */
.ticker {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}
.ticker-bar {
  display: flex;
  align-items: center;
  padding: 0.7em 1em;
  background: var(--bg-raised-2);
  border-bottom: 1px solid var(--border);
}
.ticker-title {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-faint);
}
.ticker-body {
  padding: 0.4em 1.4em 0.6em;
  font-variant-numeric: tabular-nums;
  min-height: 220px;
}
.ticker-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1em;
  padding: 0.9em 0;
  border-bottom: 1px solid var(--border-soft);
}
.ticker-row:last-child {
  border-bottom: none;
}
.ticker-label {
  color: var(--text-dim);
  font-size: 0.9rem;
}
.ticker-figure {
  font-family: var(--mono);
  color: var(--text);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  white-space: nowrap;
}
.ticker-up {
  color: var(--success);
}
.ticker-up::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid var(--success);
}
.ticker-down {
  color: var(--danger);
}
.ticker-down::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid var(--danger);
}

@media (max-width: 480px) {
  .ticker-body {
    padding: 0.4em 1em 0.6em;
    min-height: 180px;
  }
}

/* split visual (home hero: IT + business, side by side) */
.split-visual {
  display: flex;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  min-height: 220px;
}
.split-pane {
  flex: 1 1 50%;
  padding: 1.6em 1.4em;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  min-width: 0;
}
.split-pane-it {
  border-right: 1px solid var(--border);
}
.split-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.2em;
}
.split-line {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  overflow-wrap: break-word;
}
.split-line .prompt {
  color: var(--accent);
}
.split-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8em;
  font-size: 0.88rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 0.6em;
}
.split-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.split-figure {
  font-family: var(--mono);
  color: var(--text);
  white-space: nowrap;
}
.split-up {
  color: var(--success);
}

@media (max-width: 560px) {
  .split-visual {
    flex-direction: column;
  }
  .split-pane-it {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

/* ---------- Pillars (homepage services teaser) ---------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 720px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}
.pillar-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.pillar-card h3 {
  margin-bottom: 0.5em;
}
.pillar-link {
  display: inline-block;
  margin-top: 0.6em;
  font-family: var(--mono);
  font-size: 0.9rem;
}

/* ---------- Narrow hero (service subpages) ---------- */
.hero-narrow {
  padding-bottom: 1rem;
}
.hero-narrow .hero-tagline {
  max-width: 62ch;
}

/* ---------- CTA band (service subpages) ---------- */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 2rem;
}
.cta-band p {
  margin: 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: 1rem;
  max-width: none;
}

/* ---------- Cookie / data table ---------- */
.table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.2em 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cookie-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.cookie-table th,
.cookie-table td {
  padding: 0.7em 0.9em;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-soft);
}
.cookie-table th {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  background: var(--bg-raised-2);
  white-space: nowrap;
}
.cookie-table td.mono {
  font-family: var(--mono);
  color: var(--text);
  white-space: nowrap;
}
.cookie-table tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- Scenarios (typical starting situations) ---------- */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.scenario-card {
  border-left: 2px solid var(--border);
  padding: 0.2rem 0 0.2rem 1.2rem;
}
.scenario-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.4em;
}
.scenario-card p {
  font-size: 0.94rem;
  margin-bottom: 0;
}

/* ---------- Featured block (e.g. Gründungsberatung) ---------- */
.featured-block {
  background: var(--bg-raised);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3rem);
}
.featured-block .eyebrow {
  margin-bottom: 0.7em;
}
.featured-intro {
  font-size: 1.02rem;
  color: var(--text);
  max-width: 68ch;
}
.featured-points {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0;
  display: grid;
  gap: 0.8rem;
}
.featured-points li {
  position: relative;
  padding-left: 1.4em;
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 62ch;
}
.featured-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.featured-outro {
  color: var(--text-dim);
  font-style: italic;
  max-width: 62ch;
  margin-bottom: 0;
}

/* ---------- Sections ---------- */
section {
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-top: 1px solid var(--border-soft);
}

.section-head {
  max-width: 60ch;
  margin-bottom: 2.5rem;
}

/* about */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}
@media (max-width: 780px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}
.about-facts {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.fact {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  background: var(--bg-raised);
}
.fact dt {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 0.3em;
}
.fact dd {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

/* services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
@media (max-width: 720px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
.service-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}
.service-card .tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  display: block;
  margin-bottom: 0.8em;
}
.service-card p {
  font-size: 0.94rem;
  margin-bottom: 0;
}

/* ---------- Business page: ledger/data styling instead of terminal cues ---------- */
.page-econ {
  font-variant-numeric: tabular-nums;
}
.page-econ .hero-narrow h1 span {
  display: none;
}
.page-econ .eyebrow::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 7px solid var(--text-faint);
}
.page-econ .service-card {
  border-left: 2px solid var(--accent-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.page-econ .service-card:hover {
  transform: none;
  background: var(--accent-soft);
  border-color: var(--accent-dim);
}
.page-econ .service-card .tag {
  letter-spacing: 0.04em;
  padding-bottom: 0.6em;
  margin-bottom: 0.9em;
  border-bottom: 1px solid var(--border-soft);
}
.page-econ .scenario-card {
  border-left: none;
  border-top: 1px solid var(--border);
  padding: 1rem 0 0;
}
.page-econ .featured-block {
  border: none;
  border-top: 3px double var(--accent-dim);
  border-radius: 0;
}
.page-econ .cta-band {
  border-top: 2px solid var(--accent-dim);
}

/* process timeline */
.process {
  position: relative;
  display: grid;
  gap: 0;
}
.process-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.4rem;
  padding-bottom: 2.2rem;
  position: relative;
}
.process-step:last-child {
  padding-bottom: 0;
}
.process-num {
  font-family: var(--mono);
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  background: var(--accent-soft);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  z-index: 1;
}
.process-step::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.process-step:last-child::before {
  display: none;
}
.process-content h3 {
  margin-bottom: 0.3em;
}
.process-content p {
  margin-bottom: 0;
}

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}
@media (max-width: 780px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.contact-info a {
  font-family: var(--mono);
  font-size: 0.95rem;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.9rem;
}
.contact-list li {
  display: flex;
  gap: 0.6em;
  align-items: baseline;
  font-size: 0.94rem;
  color: var(--text-dim);
}
.contact-list .k {
  font-family: var(--mono);
  color: var(--accent);
  min-width: 5.5em;
  font-size: 0.82rem;
}

form.contact-form {
  display: grid;
  gap: 1.1rem;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field label {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}
.field input,
.field textarea {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.75em 0.9em;
  font-family: var(--sans);
  font-size: 0.95rem;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}
.field-hint {
  font-size: 0.8rem;
  color: var(--text-faint);
}
.consent {
  display: flex;
  gap: 0.6em;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--text-dim);
}
.consent input {
  margin-top: 0.3em;
}

/* honeypot - hidden from sighted users & screen readers, still in tab order trap for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-msg {
  border-radius: var(--radius);
  padding: 0.9em 1.1em;
  font-size: 0.92rem;
  font-family: var(--mono);
  margin-bottom: 1.2rem;
}
.form-msg.success {
  background: rgba(111, 174, 142, 0.12);
  border: 1px solid var(--success);
  color: var(--success);
}
.form-msg.error {
  background: rgba(217, 112, 95, 0.12);
  border: 1px solid var(--danger);
  color: var(--danger);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 2.5rem 0;
  font-size: 0.85rem;
  color: var(--text-faint);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--mono);
}
.footer-links a {
  color: var(--text-dim);
}
.footer-links a:hover {
  color: var(--accent);
}

/* ---------- Legal pages ---------- */
.legal {
  padding: 3rem 0 5rem;
}
.legal h1 {
  margin-bottom: 0.3em;
}
.legal .updated {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 2rem;
}
.legal h2 {
  margin-top: 2.2em;
  font-size: 1.2rem;
}
.legal p,
.legal li {
  color: var(--text-dim);
  max-width: 72ch;
}
.legal ul {
  padding-left: 1.2em;
}
.placeholder {
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.92em;
}
