@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800&family=Dancing+Script:wght@600;700&display=swap');

:root {
  --bg: #f8f6f1;
  --bg-alt: #f1efe7;
  --bg-card: #ffffff;
  --text: #1c1e24;
  --text-dim: #5c6068;
  --border: #e4e0d6;
  --accent-vuln: #2f6f66;
  /* slate/teal — Vulnerability Check */
  --accent-proto: #8a6a1a;
  /* gold — Business Prototyping */
  --accent: #8a6a1a;
  --radius: 6px;
  --maxw: 920px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: 'Manrope', -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 2.4rem;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.6rem;
  margin: 2.2rem 0 0.8rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}

p {
  color: var(--text-dim);
  margin: 0 0 1rem;
}

a {
  color: inherit;
}

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

/* Nav */
header.site {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
}

header.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.logo {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.02em;
}

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

nav.main {
  display: flex;
  align-items: center;
}

nav.main a {
  text-decoration: none;
  color: var(--text-dim);
  margin-left: 1.6rem;
  font-size: 0.95rem;
}

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

/* Language switch: plain "EN | DE" text, no icons */
.lang-switch {
  display: flex;
  align-items: center;
  margin-left: 1.6rem;
  padding-left: 1.4rem;
  border-left: 1px solid var(--border);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.lang-link {
  color: var(--text-dim);
  text-decoration: none;
  opacity: 0.6;
}

.lang-link:hover {
  opacity: 1;
}

.lang-link.active {
  color: var(--text);
  font-weight: 600;
  opacity: 1;
}

.lang-switch .sep {
  color: var(--border);
  margin: 0 0.45rem;
}

/* Hero */
.hero {
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.hero .kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 0.8rem;
}

/* A literal newline typed into the DB value renders as a line break --
   no HTML/|safe needed, so anyone editing hero_h1 in DB Browser can't
   accidentally inject markup. */
.hero h1 {
  white-space: pre-line;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text);
  max-width: 620px;
}

/* Service panels on home */
.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}

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

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--panel-accent, var(--accent));
  border-radius: var(--radius);
  padding: 1.6rem;
}

.panel h3 {
  color: var(--panel-accent);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.panel h2 {
  margin-top: 0.2rem;
}

.panel .tier {
  border-top: 1px solid var(--border);
  padding: 0.9rem 0;
}

.panel .tier .tier-name {
  font-weight: 600;
  color: var(--text);
}

.panel .tier .tier-price {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.panel .more {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--panel-accent);
  text-decoration: none;
}

/* Triage CTA: a third, neutral option below the two service panels --
   deliberately styled in charcoal rather than either service accent, so
   it reads as a different kind of action (a call, not a tier). */
.triage-cta {
  --panel-accent: var(--text);
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  margin: 0 0 3rem;
}
.triage-cta h3 { margin-bottom: 0.4rem; }
.triage-cta p { max-width: 480px; margin: 0 auto 1rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0.2rem 0.5rem 0.2rem 0;
  border: 1px solid var(--panel-accent, var(--accent));
}

.btn-primary {
  background: var(--panel-accent, var(--accent));
  color: #fbf9f4;
}

.btn-secondary {
  background: transparent;
  color: var(--panel-accent, var(--accent));
}

/* Teaser strip (About / Insights previews on home) */
.strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

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

.strip a.readmore {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

/* Generic content sections */
section.content {
  padding: 2.5rem 0;
}

/* Xi frame: the outer box (top + bottom bar) and a middle bar peeking
   through the pillar gutters -- three strokes, echoing Ξ itself, wrapped
   around the three pillars it introduces. */
.xi-frame {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  margin: 1.5rem 0 2rem;
}
.xi-frame > p:first-child { margin-bottom: 0.5rem; }

.xi-glyph {
  text-align: center;
  color: var(--accent);
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  margin: 0.5rem 0 1.5rem;
}

/* Pillars (About page) */
.pillars {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 0;
}
.pillars::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  background: var(--text);
  transform: translateY(-50%);
  z-index: 0;
}

@media (max-width: 720px) {
  .pillars { grid-template-columns: 1fr; }
  .pillars::before { display: none; }
}

.pillar {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
}

.pillar .glyph {
  display: flex;
  align-items: baseline;
  gap: 0.3em;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

/* Custom pinyin tone typography: a handwritten-cursive convention where
   tone shape maps to letterform. Falling (4th): big-to-small block
   capitals. Low (3rd): small, cursive, sits below the midline. Rising
   (2nd): cursive, angled upward. High (1st, unused so far): tall cursive,
   full height. */
.pinyin {
  display: inline-flex;
  align-items: baseline;
  font-size: 0.7em;
}
.pinyin.t4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
}
.pinyin.t4 span:first-child { font-size: 1.3em; }
.pinyin.t4 span:last-child { font-size: 0.7em; opacity: 0.85; }

.pinyin.t3 {
  font-family: 'Dancing Script', cursive;
  font-weight: 600;
  font-size: 1.15em;
  transform: translateY(0.25em);
  opacity: 0.8;
}

.pinyin.t2 {
  font-family: 'Dancing Script', cursive;
  font-weight: 600;
  font-size: 1.3em;
  display: inline-block;
  transform: rotate(-10deg) translateY(-0.1em);
}

.pinyin.t1 {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  font-size: 1.5em;
}

/* Insight patterns */
.pattern {
  border-left: 2px solid var(--border);
  padding: 0.2rem 0 0.2rem 1.2rem;
  margin-bottom: 2rem;
}

.pattern h3 {
  color: var(--text);
}

.pattern .label {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

/* Tier cards on service detail pages */
.tiercards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem;
}

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

.tiercard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.tiercard .price {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.tiercard ul {
  color: var(--text-dim);
  padding-left: 1.1rem;
}

.tiercard ul li {
  margin-bottom: 0.4rem;
}

/* CTA closing block (Insights page) */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

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

.cta-grid .cta-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.cta-grid .cta-item .svc {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

footer.site {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 2rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

footer.site a {
  color: var(--text-dim);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* Randnotizen / Margin Notes -- footnote-toned asides, smaller and dimmer
   than body copy since they're commentary, not the pitch. */
.randnotizen {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.randnotizen h2 { margin-top: 0; }
.randnotizen p { font-size: 0.85rem; }

/* Legal notice (Impressum), bottom of About page */
.legal-notice {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.legal-notice h2 { margin-top: 0; }
.legal-subheading {
  font-size: 0.85rem;
  margin-top: -0.6rem;
}
.legal-notice dl {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0.5rem 1.5rem;
  margin: 1rem 0;
}
@media (max-width: 620px) {
  .legal-notice dl { grid-template-columns: 1fr; }
  .legal-notice dd { margin: 0 0 0.6rem; }
}
.legal-notice dt {
  color: var(--text-dim);
  font-size: 0.85rem;
}
.legal-notice dd {
  margin: 0;
  color: var(--text);
}
.legal-todo {
  color: var(--accent-proto);
  font-style: italic;
}
.legal-note {
  font-size: 0.8rem;
  margin-top: 1rem;
}

