/* ============================================================
   WEBWINGS DIGITAL — BRUTALIST EDITION
   Shared stylesheet · alle Seiten
   ============================================================ */

:root {
  --ink: #0E0E0E;
  --ink-soft: #1A1A1A;
  --paper: #FFFFFF;
  --paper-warm: #F5F2ED;
  --paper-deep: #E8E3DC;
  --accent: #E85D2F;
  --accent-deep: #C24820;
  --accent-light: #FEF3EE;
  --gray-1: #6B6B6B;
  --gray-2: #A3A3A3;
  --gray-3: #D4D0CA;

  --f-display: 'Archivo Black', 'Impact', sans-serif;
  --f-body: 'Archivo', -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', 'Courier New', monospace;

  --border: 1.5px solid var(--ink);
  --border-thick: 2.5px solid var(--ink);
  --border-fat: 4px solid var(--ink);

  --gutter: clamp(1rem, 3vw, 2.5rem);
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--paper); }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

/* Grid overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(to right, rgba(14,14,14,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14,14,14,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: var(--border-thick);
  display: flex;
  align-items: stretch;
}
.logo-block {
  flex: 0 0 auto;
}
.nav-links {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-cta {
  flex: 0 0 auto;
}
.menu-btn {
  flex: 0 0 auto;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.5rem;
  border-right: var(--border);
}

.logo-mark {
  width: 36px; height: 36px;
  background: var(--ink);
  position: relative;
  flex-shrink: 0;
}
.logo-mark::before {
  content: '';
  position: absolute;
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 11px solid var(--accent);
  top: 8px; left: 8px;
}
.logo-mark::after {
  content: '';
  position: absolute;
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 11px solid var(--paper);
  bottom: 8px; right: 8px;
}

.logo-text {
  font-family: var(--f-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}
.logo-text .sub {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--gray-1);
  margin-top: 2px;
}

.nav-links li {
  display: flex;
  align-items: stretch;
  border-right: var(--border);
  transition: background 0.2s;
}
.nav-links li:hover { background: var(--paper-warm); }
.nav-links li a {
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav-links li a::before {
  content: attr(data-num);
  color: var(--accent);
  margin-right: 0.5rem;
  font-weight: 600;
}
.nav-links li.active { background: var(--ink); }
.nav-links li.active a { color: var(--paper); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 2rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.3s;
}
.nav-cta:hover { background: var(--accent); }
.nav-cta::after {
  content: '→';
  font-family: var(--f-display);
  font-size: 1.1rem;
  transition: transform 0.3s;
}
.nav-cta:hover::after { transform: translateX(4px); }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  place-items: center;
  font-family: var(--f-display);
  border-left: var(--border);
}

@media (max-width: 1000px) {
  .nav-links {
    /* Keep it as a flex spacer so CTA hugs the right side */
    flex: 1 1 auto;
    overflow: hidden;
    height: 0;
    visibility: hidden;
  }
  .nav.menu-open .nav-links {
    height: auto;
    visibility: visible;
    overflow: auto;
  }
  .nav-cta {
    padding: 0 1rem !important;
    min-width: auto;
    font-size: 0.7rem;
    margin-left: auto;
  }
  .nav-cta span { display: inline !important; font-size: 0.7rem; letter-spacing: 0.05em; }
  .nav-cta::after { display: none !important; }
  .menu-btn { display: grid; }
}

/* ============ PAGE HERO ============ */
.page-hero {
  padding-top: 70px;
  border-bottom: var(--border-thick);
  background: var(--paper);
}

.ph-meta {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: stretch;
  border-bottom: var(--border);
}
.ph-meta > div {
  padding: 1rem var(--gutter);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  display: flex;
  align-items: center;
  border-right: var(--border);
}
.ph-meta > div:last-child { border-right: none; }
.ph-meta .section { color: var(--accent); }
.ph-meta .crumbs { color: var(--gray-1); }
.ph-meta .date { color: var(--gray-1); }

.ph-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 50vh;
}

.ph-left {
  padding: 4rem var(--gutter);
  border-right: var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ph-title {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.ph-title .accent { color: var(--accent); }
.ph-title .outline { -webkit-text-stroke: 2px var(--ink); color: transparent; }
.ph-title .box { background: var(--accent); color: var(--paper); padding: 0 0.25em; display: inline-block; }

.ph-lead {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.55;
  max-width: 500px;
  color: var(--gray-1);
}

.ph-right {
  padding: 4rem var(--gutter);
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ph-right > * { position: relative; z-index: 1; }

.ph-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}

.ph-spec {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1rem;
}

.ph-spec .k {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 0.5rem;
}

.ph-spec .v {
  font-family: var(--f-display);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.ph-spec .v .unit { color: var(--accent); }

.ph-tag {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.ph-tag::before {
  content: '';
  width: 24px; height: 1.5px;
  background: var(--accent);
}

.ph-quote {
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}
.ph-quote .mark { color: var(--accent); }

@media (max-width: 900px) {
  .ph-body { grid-template-columns: 1fr; }
  .ph-left { border-right: none; border-bottom: var(--border); padding: 3rem var(--gutter); }
  .ph-meta { grid-template-columns: 1fr; }
  .ph-meta > div { border-right: none; border-bottom: var(--border); }
  .ph-meta > div:last-child { border-bottom: none; }
}

/* ============ SECTION HEADER ============ */
.section-hdr {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: stretch;
  border-bottom: var(--border-thick);
  background: var(--paper);
}

.section-num {
  padding: 2rem var(--gutter);
  border-right: var(--border);
  font-family: var(--f-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  color: var(--accent);
}

.section-ttl {
  padding: 2.5rem var(--gutter);
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  display: block;
  align-self: center;
}
.section-ttl .accent { color: var(--accent); }
.section-ttl .outline {
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent;
}

.section-badge {
  padding: 2rem var(--gutter);
  border-left: var(--border);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-1);
}
.section-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

@media (max-width: 900px) {
  .section-hdr { grid-template-columns: 1fr; }
  .section-num { border-right: none; border-bottom: var(--border); padding: 1rem var(--gutter); }
  .section-badge { border-left: none; border-top: var(--border); padding: 1rem var(--gutter); }
  .section-ttl { padding: 1.5rem var(--gutter); }
}

/* ============ CONTENT BLOCK ============ */
.content-block {
  padding: 4rem var(--gutter);
  border-bottom: var(--border-thick);
  max-width: 1400px;
  margin: 0 auto;
}

.content-block.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.content-block.grid-3 {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
}

@media (max-width: 900px) {
  .content-block.grid-2,
  .content-block.grid-3 { grid-template-columns: 1fr; gap: 2rem; }
}

.cb-label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: var(--border);
}

.cb-h {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.cb-h .accent { color: var(--accent); }

.cb-p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  color: var(--ink);
}
.cb-p strong { font-weight: 700; }

.cb-list {
  list-style: none;
  margin: 1.5rem 0;
}
.cb-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
  border-bottom: 1px dashed var(--gray-3);
}
.cb-list li::before {
  content: '+';
  color: var(--accent);
  font-weight: 700;
  font-family: var(--f-mono);
  flex-shrink: 0;
  font-size: 1rem;
}

/* ============ FEATURE GRID ============ */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: var(--border-thick);
}

.feat {
  padding: 3rem 2rem;
  border-right: var(--border);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  transition: background 0.3s;
}
.feat:last-child { border-right: none; }
.feat:hover { background: var(--paper-warm); }

.feat-num {
  font-family: var(--f-display);
  font-size: 4rem;
  line-height: 0.85;
  letter-spacing: -0.05em;
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent;
  margin-bottom: 1.5rem;
}
.feat:hover .feat-num { -webkit-text-stroke: 1.5px var(--accent); }

.feat-title {
  font-family: var(--f-display);
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: var(--border);
}

.feat-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--gray-1);
}

@media (max-width: 900px) {
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .feat:nth-child(odd) { border-right: var(--border); }
  .feat:nth-child(even) { border-right: none; }
  .feat:not(:nth-last-child(-n+2)) { border-bottom: var(--border); }
}
@media (max-width: 600px) {
  .feat-grid { grid-template-columns: 1fr; }
  .feat { border-right: none !important; border-bottom: var(--border); }
  .feat:last-child { border-bottom: none; }
}

/* ============ SPEC TABLE ============ */
.spec-wrap {
  border-bottom: var(--border-thick);
  overflow-x: auto;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  min-width: 700px;
}

.spec-table thead {
  background: var(--ink);
  color: var(--paper);
}

.spec-table th {
  padding: 1.25rem 1rem;
  text-align: left;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.spec-table th:first-child { padding-left: var(--gutter); }
.spec-table th:last-child { border-right: none; }
.spec-table th.center { text-align: center; }
.spec-table th .tier-num {
  display: block;
  font-family: var(--f-display);
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.spec-table td {
  padding: 1rem;
  border: var(--border);
  border-left: none;
  font-size: 0.88rem;
  vertical-align: middle;
}
.spec-table td:first-child {
  padding-left: var(--gutter);
  font-weight: 500;
  background: var(--paper-warm);
  border-left: var(--border);
}
.spec-table td.center { text-align: center; font-family: var(--f-mono); font-weight: 600; }
.spec-table td.yes { color: var(--accent); font-size: 1.1rem; }
.spec-table td.no { color: var(--gray-2); }
.spec-table td.partial { color: var(--gray-1); font-family: var(--f-mono); font-size: 0.75rem; }

.spec-table tbody tr:hover td:first-child { background: var(--accent-light); }

.spec-cat {
  background: var(--paper-deep) !important;
  font-family: var(--f-mono);
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent) !important;
}

.spec-table td.spec-group {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem var(--gutter);
  text-align: left;
}
.spec-table td.price-row {
  background: var(--paper-warm);
  font-family: var(--f-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.spec-table td.price-row strong { color: var(--accent); font-weight: 800; }

/* ============ QUOTE BLOCK ============ */
.quote {
  background: var(--accent);
  color: var(--paper);
  padding: 4rem var(--gutter);
  border-bottom: var(--border-thick);
  position: relative;
  overflow: hidden;
}

.quote::before {
  content: '"';
  position: absolute;
  top: -3rem; left: 1rem;
  font-family: var(--f-display);
  font-size: 22rem;
  line-height: 0.8;
  color: var(--ink);
  opacity: 0.12;
}

.quote-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.quote-text {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.quote-text .outline { -webkit-text-stroke: 1.5px var(--paper); color: transparent; }

.quote-sig {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
  display: inline-block;
}
.quote-sig .name {
  font-family: var(--f-display);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
}

/* ============ STATS BAND ============ */
.stats-band {
  background: var(--ink);
  color: var(--paper);
  border-bottom: var(--border-thick);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 3rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.1);
  position: relative;
}
.stat:last-child { border-right: none; }

.stat-val {
  font-family: var(--f-display);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}
.stat-val .unit { color: var(--accent); }

.stat-lbl {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-2);
}

@media (max-width: 800px) {
  .stats-band { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat:nth-child(even) { border-right: none; }
}

/* ============ CTA BIG ============ */
.cta-big {
  background: var(--ink);
  color: var(--paper);
  padding: 5rem var(--gutter);
  border-bottom: var(--border-thick);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-big::before {
  content: 'START';
  position: absolute;
  top: -3rem;
  left: -1rem;
  font-family: var(--f-display);
  font-size: 22rem;
  line-height: 0.8;
  letter-spacing: -0.06em;
  -webkit-text-stroke: 1px rgba(255,255,255,0.08);
  color: transparent;
  text-transform: uppercase;
  pointer-events: none;
}

.cta-big::after {
  content: 'HERE';
  position: absolute;
  bottom: -4rem;
  right: -1rem;
  font-family: var(--f-display);
  font-size: 22rem;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--accent);
  opacity: 0.08;
  text-transform: uppercase;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.cta-tag {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.cta-tag::before, .cta-tag::after {
  content: '';
  width: 24px; height: 1.5px;
  background: var(--accent);
}

.cta-title {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.cta-title .outline { -webkit-text-stroke: 2px var(--paper); color: transparent; }
.cta-title .accent { color: var(--accent); }

.cta-sub {
  font-size: 1.1rem;
  color: var(--gray-2);
  max-width: 620px;
  margin: 0 auto 3rem;
  line-height: 1.5;
}

.cta-btn-row {
  display: inline-flex;
  border: var(--border-thick);
  border-color: var(--paper);
}

.cta-btn {
  padding: 1.2rem 2rem;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.cta-btn:last-child { background: transparent; border: var(--border-thick); border-color: var(--paper); }
.cta-btn:hover { background: var(--paper); color: var(--ink); }
.cta-btn:last-child:hover { background: var(--paper); color: var(--ink); }

@media (max-width: 600px) {
  .cta-btn-row { flex-direction: column; }
}

/* ============ FOOTER ============ */
footer {
  background: transparent;
  border-top: var(--border-thick);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  border-bottom: var(--border);
}

.footer-col {
  padding: 3rem 2rem;
  border-right: var(--border);
}
.footer-col:last-child { border-right: none; }

.footer-brand .logo-block {
  border-right: none;
  padding: 0 0 1.5rem;
}

.footer-tagline {
  font-family: var(--f-display);
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  max-width: 340px;
}
.footer-tagline .accent { color: var(--accent); }

.footer-socials {
  display: flex;
  gap: 0;
  border: var(--border);
  width: fit-content;
}

.social {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 700;
  border-right: var(--border);
  transition: all 0.3s;
}
.social:last-child { border-right: none; }
.social:hover { background: var(--ink); color: var(--paper); }

.footer-col h4 {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: var(--border);
}

.footer-col ul { list-style: none; }
.footer-col li {
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}
.footer-col a { transition: color 0.3s; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 1rem var(--gutter);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-1);
}

.footer-bottom .center {
  text-align: center;
  color: var(--accent);
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-col:nth-child(1) { grid-column: 1 / -1; border-right: none; border-bottom: var(--border); }
  .footer-col:nth-child(2) { border-right: var(--border); border-bottom: var(--border); }
  .footer-col:nth-child(3) { border-right: none; border-bottom: var(--border); }
  .footer-col:nth-child(4) { border-right: var(--border); }
  .footer-bottom { grid-template-columns: 1fr; gap: 0.5rem; text-align: center; }
}

/* ============ FAQ ============ */
.faq-wrap { border-bottom: var(--border-thick); }
.faq-item {
  border-bottom: var(--border);
  background: var(--paper);
  transition: background 0.3s;
}
.faq-item:last-child { border-bottom: none; }
.faq-item:hover { background: var(--paper-warm); }

.faq-q {
  width: 100%;
  padding: 2rem var(--gutter);
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  gap: 2rem;
  text-align: left;
}

.faq-num {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.faq-text {
  font-family: var(--f-display);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.faq-icon {
  width: 44px; height: 44px;
  border: var(--border-thick);
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-size: 1.4rem;
  transition: all 0.3s;
  justify-self: end;
}

.faq-item.open .faq-icon {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}
.faq-item.open .faq-a { max-height: 800px; }

.faq-a-inner {
  padding: 0 var(--gutter) 2rem calc(var(--gutter) + 60px + 2rem);
  color: var(--ink);
  line-height: 1.65;
  max-width: 860px;
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .faq-q { grid-template-columns: 40px 1fr 40px; gap: 1rem; padding: 1.25rem var(--gutter); }
  .faq-icon { width: 36px; height: 36px; font-size: 1.1rem; }
  .faq-a-inner { padding: 0 var(--gutter) 1.5rem calc(var(--gutter) + 40px + 1rem); }
}

/* ============ CASE CARD ============ */
.case {
  border-right: var(--border);
  border-bottom: var(--border);
  background: var(--paper);
  transition: background 0.3s;
  cursor: pointer;
}

.case-body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 440px;
}

.case-top {
  padding: 1.5rem 2rem;
  border-bottom: var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.case-top .tag { display: flex; align-items: center; gap: 0.5rem; }
.case-top .tag::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.case-top .id { color: var(--gray-1); }

.case-visual {
  background: var(--paper-warm);
  padding: 2rem;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: background 0.3s;
}
.case:hover .case-visual { background: var(--ink); }

.case-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(-45deg, transparent 0, transparent 12px, rgba(14,14,14,0.05) 12px, rgba(14,14,14,0.05) 13px);
  pointer-events: none;
}
.case:hover .case-visual::after {
  background-image:
    repeating-linear-gradient(-45deg, transparent 0, transparent 12px, rgba(232,93,47,0.15) 12px, rgba(232,93,47,0.15) 13px);
}

.case-mock {
  width: 75%;
  max-width: 400px;
  background: var(--paper);
  border: var(--border);
  position: relative;
  box-shadow: 8px 8px 0 var(--ink);
  transition: transform 0.4s var(--ease);
  z-index: 1;
}
.case:hover .case-mock { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--accent); }

.case-mock::before {
  content: '● ● ●';
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.6rem;
  letter-spacing: 4px;
  color: var(--gray-1);
  border-bottom: 1px solid var(--gray-3);
  background: var(--paper-deep);
}

.case-mock-body { padding: 1rem; }
.case-mock-title {
  font-family: var(--f-display);
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.case-mock-line {
  height: 3px;
  background: var(--gray-3);
  margin-bottom: 0.3rem;
}
.case-mock-line.accent { background: var(--accent); width: 45%; margin-top: 0.5rem; }
.case-mock-box {
  margin-top: 0.7rem;
  height: 28px;
  background: var(--ink);
}
.case-mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  margin-top: 0.5rem;
}
.case-mock-grid div {
  height: 18px;
  background: var(--gray-3);
}

.case-bottom {
  padding: 1.5rem 2rem 2rem;
  border-top: var(--border);
}

.case-title {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.case-title .accent-stat { color: var(--accent); }

.case-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.case-meta span {
  padding: 0.35rem 0.7rem;
  background: var(--paper-warm);
  border: 1px solid var(--gray-3);
}

/* ============ PACK CARD (Pakete-Sektion) ============ */
.tabs-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: var(--border);
}

.tab {
  padding: 1.5rem 2rem;
  border-right: var(--border);
  background: var(--paper-warm);
  font-family: var(--f-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.3s;
  cursor: pointer;
}
.tab:last-child { border-right: none; }
.tab:hover { background: var(--paper); }
.tab.active { background: var(--ink); color: var(--paper); }
.tab .tab-num { color: var(--accent); }
.tab .tab-count {
  font-family: var(--f-display);
  font-size: 1.25rem;
  color: var(--accent);
  letter-spacing: 0;
}

.tab-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.pack {
  border-right: var(--border);
  background: var(--paper);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.3s;
}
.pack:last-child { border-right: none; }
.pack:hover { background: var(--paper-warm); }

.pack.featured {
  background: var(--ink);
  color: var(--paper);
}
.pack.featured:hover { background: var(--ink-soft); }

.pack.featured::before {
  content: 'Meistgewählt';
  position: absolute;
  top: 0; right: 2rem;
  background: var(--accent);
  color: var(--paper);
  padding: 0.4rem 0.9rem;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.pack-head {
  padding-bottom: 1.5rem;
  border-bottom: var(--border);
  margin-bottom: 1.5rem;
}
.pack.featured .pack-head { border-color: rgba(255,255,255,0.15); }

.pack-tier {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-1);
  margin-bottom: 0.75rem;
}
.pack.featured .pack-tier { color: var(--accent); }

.pack-name {
  font-family: var(--f-display);
  font-size: 2.25rem;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.pack-tag {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--gray-1);
  min-height: 60px;
}
.pack.featured .pack-tag { color: var(--gray-2); }

.pack-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-family: var(--f-display);
}
.pack-price .amount { font-size: 3rem; line-height: 1; letter-spacing: -0.04em; }
.pack-price .amount::before {
  content: '€';
  font-size: 0.5em;
  vertical-align: super;
  margin-right: 0.1em;
  color: var(--accent);
}
.pack-price .unit {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-1);
}

.pack-monthly {
  padding: 0.5rem 0.75rem;
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2rem;
}
.pack.featured .pack-monthly {
  background: rgba(232,93,47,0.15);
  color: var(--paper);
}

.pack-feats {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pack-feats li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.88rem;
  line-height: 1.4;
  border-bottom: 1px dashed var(--gray-3);
}
.pack.featured .pack-feats li { border-bottom-color: rgba(255,255,255,0.1); }

.pack-feats li::before {
  content: '+';
  color: var(--accent);
  font-weight: 700;
  font-family: var(--f-mono);
  flex-shrink: 0;
  font-size: 1rem;
}

.pack-btn {
  padding: 1rem 1.5rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: var(--border-thick);
}
.pack-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.pack.featured .pack-btn {
  background: var(--accent);
  border-color: var(--accent);
}
.pack.featured .pack-btn:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.pack-btn::after { content: '→'; font-family: var(--f-display); }

@media (max-width: 900px) {
  .tab-panel { grid-template-columns: 1fr; }
  .pack { border-right: none; border-bottom: var(--border); }
  .pack:last-child { border-bottom: none; }
  .tabs-bar { grid-template-columns: 1fr; }
  .tab { border-right: none; border-bottom: var(--border); }
  .tab:last-child { border-bottom: none; }
}

/* ============ FORM ============ */
.form-block {
  padding: 4rem var(--gutter);
  border-bottom: var(--border-thick);
}

.form-inner {
  max-width: 800px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 0;
  border: var(--border-thick);
  border-bottom: none;
}
.form-row:last-of-type { border-bottom: var(--border-thick); }
.form-row.single { grid-template-columns: 1fr; }

.form-field {
  padding: 1.25rem 1.5rem;
  border-right: var(--border);
}
.form-row > .form-field:last-child { border-right: none; }
.form-row.single .form-field { border-right: none; }

.form-field label {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--f-body);
  font-size: 1rem;
  outline: none;
  color: var(--ink);
}

.form-field textarea { resize: vertical; min-height: 120px; }

.form-submit {
  margin-top: 2rem;
  display: inline-flex;
  padding: 1.2rem 2.5rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  gap: 1rem;
  align-items: center;
  transition: background 0.3s;
  border: var(--border-thick);
}
.form-submit:hover { background: var(--accent); border-color: var(--accent); }

@media (max-width: 700px) {
  .form-row { grid-template-columns: 1fr; }
  .form-field { border-right: none; border-bottom: var(--border); }
  .form-row > .form-field:last-child { border-bottom: none; }
}

/* ============ Prose (legal pages) ============ */
.prose-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem var(--gutter);
  border-bottom: var(--border-thick);
}

.prose {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
}

.prose h2 {
  font-family: var(--f-display);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 3rem 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: var(--border-thick);
}
.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-family: var(--f-display);
  font-size: 1.15rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 2rem 0 0.75rem;
  color: var(--accent);
}

.prose p { margin-bottom: 1.25rem; }
.prose ul { margin: 1rem 0 1.5rem 1.5rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-deep); }
.prose strong { font-weight: 700; }

/* ============ Scrollbar ============ */
::-webkit-scrollbar { width: 12px; height: 12px; background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
/* ============================================================
/* ============================================================
   FIXES · Typography, spacing, list rendering polish
   Appended after base styles — these override any weaker specifics.
   ============================================================ */

/* --- cb-h as H2 (main): ensure proper vertical rhythm --- */
.cb-h {
  margin-top: 0;
  margin-bottom: 1.5rem !important;
}

/* --- cb-h as H3 subheading: smaller, tight bottom, loose top --- */
h3.cb-h {
  font-size: 1.15rem !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
  margin-top: 2.5rem !important;
  margin-bottom: 1rem !important;
  text-transform: uppercase;
  font-weight: 800;
}

/* --- cb-p: ensure proper reading rhythm --- */
.cb-p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 1.25rem 0;
  color: var(--ink);
}
.cb-p + .cb-p { margin-top: 0; }
.cb-p strong { font-weight: 700; color: var(--ink); }
.cb-p em { font-style: italic; color: var(--gray-1); }
.cb-p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- content-block: more generous padding on long-form pages --- */
.content-block {
  padding: 3.5rem var(--gutter);
  border-bottom: var(--border);
}
.content-block:last-child { border-bottom: var(--border-thick); }

/* --- cb-list: cleaner, flex items with better strong/text balance --- */
.cb-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}
.cb-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2rem;
  font-size: 1rem;
  line-height: 1.6;
  border-bottom: 1px solid var(--gray-3);
  color: var(--ink);
}
.cb-list li:last-child { border-bottom: none; }
.cb-list li::before {
  content: '+';
  position: absolute;
  left: 0;
  top: 0.85rem;
  color: var(--accent);
  font-weight: 700;
  font-family: var(--f-mono);
  font-size: 1rem;
  line-height: 1.6;
}
.cb-list li strong {
  color: var(--ink);
  font-weight: 700;
}
.cb-list li em { color: var(--gray-1); font-style: italic; }

/* Ordered lists like ol.cb-list also use + marker — but we can differentiate */
ol.cb-list { counter-reset: item; }
ol.cb-list li::before {
  content: counter(item, decimal-leading-zero);
  counter-increment: item;
  color: var(--accent);
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.85rem;
  top: 1rem;
}

/* --- Plain <h2>, <h3>, <p>, <ul>, <ol> inside content-block without class: give them defaults --- */
.content-block h2:not(.cb-h) {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
  color: var(--ink);
}
.content-block h3:not(.cb-h) {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 2.5rem 0 1rem;
  color: var(--ink);
}
.content-block p:not(.cb-p) {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 1.25rem;
  color: var(--ink);
}
.content-block ul:not(.cb-list),
.content-block ol:not(.cb-list) {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}
.content-block ul:not(.cb-list) li,
.content-block ol:not(.cb-list) li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2rem;
  font-size: 1rem;
  line-height: 1.6;
  border-bottom: 1px solid var(--gray-3);
  color: var(--ink);
}
.content-block ul:not(.cb-list) li:last-child,
.content-block ol:not(.cb-list) li:last-child { border-bottom: none; }
.content-block ul:not(.cb-list) li::before {
  content: '+';
  position: absolute;
  left: 0;
  top: 0.85rem;
  color: var(--accent);
  font-weight: 700;
  font-family: var(--f-mono);
  line-height: 1.6;
}
.content-block ol:not(.cb-list) { counter-reset: olitem; }
.content-block ol:not(.cb-list) li::before {
  content: counter(olitem, decimal-leading-zero);
  counter-increment: olitem;
  position: absolute;
  left: 0;
  top: 1rem;
  color: var(--accent);
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.85rem;
}
.content-block ul:not(.cb-list) li strong,
.content-block ol:not(.cb-list) li strong { color: var(--ink); font-weight: 700; }

/* Links inside plain content-block paragraphs */
.content-block p a,
.content-block li a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Feat grid: when inside grid-template-columns: repeat(4,1fr) force 4 columns properly --- */
.feat-grid {
  border-top: var(--border);
  border-bottom: var(--border-thick);
}
.feat {
  padding: 3rem 2rem;
  border-right: var(--border);
  border-bottom: var(--border);
  min-height: 280px;
}

/* .feat-cell is same as .feat but used as a link — inherit all box styling */
.feat-cell {
  padding: 3rem 2rem;
  border-right: var(--border);
  border-bottom: var(--border);
  min-height: 280px;
  display: flex !important;
  flex-direction: column;
  transition: background 0.3s;
  text-decoration: none;
  color: inherit;
}
.feat-cell:hover {
  background: var(--paper-warm);
}
/* Last column in row should have no right border */
.feat-grid > .feat:nth-child(3n),
.feat-grid > .feat-cell:nth-child(3n) {
  border-right: none;
}
/* 4-col grids (inline style) */
.feat-grid[style*="repeat(4"] > .feat:nth-child(4n),
.feat-grid[style*="repeat(4"] > .feat-cell:nth-child(4n) {
  border-right: none;
}
.feat-grid[style*="repeat(4"] > .feat:nth-child(3n),
.feat-grid[style*="repeat(4"] > .feat-cell:nth-child(3n) {
  border-right: var(--border);
}

/* When feat-grid uses custom grid-template-columns via inline style, ensure no orphan columns */
@media (max-width: 900px) {
  .feat-grid[style*="repeat(4"] { grid-template-columns: repeat(2, 1fr) !important; }
  .feat-grid[style*="repeat(3"] { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
  .feat-grid[style*="repeat(4"],
  .feat-grid[style*="repeat(2"] { grid-template-columns: 1fr !important; }
}

/* --- Ensure accent/outline/box classes work inside cb-h and plain content h2 --- */
.cb-h .accent, .content-block h2 .accent { color: var(--accent); }
.cb-h .outline, .content-block h2 .outline {
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent;
}
.cb-h .box, .content-block h2 .box {
  background: var(--accent);
  color: var(--paper);
  padding: 0 0.25em;
  display: inline-block;
}

/* --- FAQ polish (override grid from earlier definition) --- */
.faq-wrap { border-top: var(--border); }
.faq-item { border-bottom: var(--border); }
.faq-q {
  display: block !important;
  width: 100%;
  padding: 1.5rem 4rem 1.5rem var(--gutter) !important;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--f-display);
  font-size: 1.1rem !important;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  color: var(--ink);
  position: relative;
  transition: background 0.2s;
  grid-template-columns: none !important;
  text-transform: none !important;
  line-height: 1.4;
}
.faq-q:hover { background: var(--paper-warm); }
.faq-q::after {
  content: '+';
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.5rem;
  font-family: var(--f-mono);
  transition: transform 0.2s;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s;
  padding: 0 var(--gutter);
}
.faq-item.open .faq-a {
  max-height: 600px;
  padding: 0 var(--gutter) 1.5rem;
}
.faq-a p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-1);
  margin: 0;
}

/* --- Spec-table group/price-row styles polished --- */
.spec-table td.spec-group {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem var(--gutter);
  text-align: left;
}
.spec-table td.price-row {
  background: var(--paper-warm);
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.spec-table td.price-row strong { color: var(--accent); }

/* --- Case study content-block lists polished --- */
.content-block strong + p,
.content-block h3 + p { margin-top: 0.5rem; }

/* --- cb-label: line break when br used, now it's " · " so just keep it subtle --- */
.cb-label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.5rem;
  padding: 0 0 0.75rem;
  border-bottom: var(--border);
  display: block;
}

/* --- Hero variants: when ph-body has only ph-left (no ph-right), let it span full width --- */
.ph-body:not(:has(.ph-right)) {
  grid-template-columns: 1fr;
}
.ph-body:not(:has(.ph-right)) .ph-left {
  border-right: none;
  max-width: 900px;
  padding: 5rem var(--gutter);
}

/* --- Manifesto block polish (used on ueber-uns) --- */
.manifesto {
  background: var(--ink);
  color: var(--paper);
  padding: 6rem var(--gutter);
  border-top: var(--border-thick);
  border-bottom: var(--border-thick);
}
.manifesto-inner { max-width: 1200px; margin: 0 auto; }
.manifesto-text {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 2rem;
  color: var(--paper);
}
.manifesto-text .accent { color: var(--accent); }
.manifesto-text .outline {
  -webkit-text-stroke: 1.5px var(--paper);
  color: transparent;
}
.manifesto-sig {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --- Quote block: ensure quote-sig variations work --- */
.quote-sig {
  display: block;
  margin-top: 2rem;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.8;
}
.quote-sig .name {
  color: var(--ink);
  background: var(--paper);
  padding: 0.25em 0.75em;
  margin-right: 0.75em;
}

/* --- Reduce visual noise on pure legal pages --- */
body[data-page="impressum"] .content-block h3:not(.cb-h),
body[data-page="datenschutz"] .content-block h3:not(.cb-h),
body[data-page="agb"] .content-block h3:not(.cb-h),
body[data-page="barrierefreiheit"] .content-block h3:not(.cb-h) {
  font-size: 0.9rem;
  font-family: var(--f-mono);
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
/* ============================================================
   TYPOGRAPHY POLISH · line-height fixes for heavy display type
   Appended last — overrides all earlier rules.
   ============================================================ */

/* Hero titles — need breathing room for heavy Archivo Black */
.ph-title {
  line-height: 1.02 !important;
  margin-bottom: 2.25rem !important;
}

/* Section titles in headers */
.section-ttl {
  line-height: 1.05 !important;
}

/* Feat titles */
.feat-title {
  line-height: 1.15 !important;
}

/* CTA titles — bigger headline, more breathing */
.cta-title {
  line-height: 1.05 !important;
  margin-bottom: 1.5rem !important;
}

/* Quote text — larger and often multiline */
.quote-text {
  line-height: 1.1 !important;
}

/* Manifesto text — FORCE all inline spans to paper color (the black-on-black was invisible) */
.manifesto-text,
.manifesto-text span,
.manifesto-text strong,
.manifesto-text em {
  color: var(--paper) !important;
  line-height: 1.15 !important;
}
.manifesto-text .accent { color: var(--accent) !important; }
.manifesto-text .outline {
  -webkit-text-stroke: 1.5px var(--paper) !important;
  color: transparent !important;
}
.manifesto-text {
  margin-bottom: 2.5rem !important;
}

/* Pack name (Starter/Profi/Premium) */
.pack-name {
  line-height: 1 !important;
  margin-bottom: 0.5rem;
}

/* Content block headings — cb-h as h2 */
h2.cb-h {
  line-height: 1.05 !important;
  margin-bottom: 1.5rem !important;
}

/* Inline block text (big headlines with .box class) */
.box {
  line-height: 0.95;
  padding: 0.05em 0.25em !important;
}

/* ph-quote lines */
.ph-quote {
  line-height: 1.7 !important;
}
.ph-quote .mark { color: var(--accent); margin-right: 0.5rem; }

/* ph-spec unit — small suffix glyphs like "S" in "20+S" or "%" in "99,9%" */
.ph-spec .unit {
  font-size: 0.55em !important;
  color: var(--accent);
  vertical-align: baseline;
  margin-left: 0.1em;
  letter-spacing: 0;
}

/* General text-in-heavy-display: ensure spacing stays consistent */
h1, h2, h3 {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Newsletter form + CTA form buttons should align */
.cta-form {
  align-items: stretch;
}

/* Stat values */
.stat-val {
  line-height: 1 !important;
}

/* Removed margin-left on .accent — HTML whitespace is preserved by display:block on parent. */
/* ============================================================
   TYPOGRAPHY POLISH · line-height fixes for heavy display type
   Appended last — overrides all earlier rules.
   ============================================================ */

/* Hero titles — need breathing room for heavy Archivo Black */
.ph-title {
  line-height: 1.02 !important;
  margin-bottom: 2.25rem !important;
}

/* Section titles in headers */
.section-ttl {
  line-height: 1.05 !important;
}

/* Feat titles */
.feat-title {
  line-height: 1.15 !important;
}

/* CTA titles — bigger headline, more breathing */
.cta-title {
  line-height: 1.05 !important;
  margin-bottom: 1.5rem !important;
}

/* Quote text — larger and often multiline */
.quote-text {
  line-height: 1.1 !important;
}

/* Manifesto text — FORCE all inline spans to paper color (the black-on-black was invisible) */
.manifesto-text,
.manifesto-text span,
.manifesto-text strong,
.manifesto-text em {
  color: var(--paper) !important;
  line-height: 1.15 !important;
}
.manifesto-text .accent { color: var(--accent) !important; }
.manifesto-text .outline {
  -webkit-text-stroke: 1.5px var(--paper) !important;
  color: transparent !important;
}
.manifesto-text {
  margin-bottom: 2.5rem !important;
}

/* Pack name (Starter/Profi/Premium) */
.pack-name {
  line-height: 1 !important;
  margin-bottom: 0.5rem;
}

/* Content block headings — cb-h as h2 */
h2.cb-h {
  line-height: 1.05 !important;
  margin-bottom: 1.5rem !important;
}

/* Inline block text (big headlines with .box class) */
.box {
  line-height: 0.95;
  padding: 0.05em 0.25em !important;
}

/* ph-quote lines */
.ph-quote {
  line-height: 1.7 !important;
}
.ph-quote .mark { color: var(--accent); margin-right: 0.5rem; }

/* ph-spec unit — small suffix glyphs like "S" in "20+S" or "%" in "99,9%" */
.ph-spec .unit {
  font-size: 0.55em !important;
  color: var(--accent);
  vertical-align: baseline;
  margin-left: 0.1em;
  letter-spacing: 0;
}

/* General text-in-heavy-display: ensure spacing stays consistent */
h1, h2, h3 {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Newsletter form + CTA form buttons should align */
.cta-form {
  align-items: stretch;
}

/* Stat values */
.stat-val {
  line-height: 1 !important;
}

/* Removed margin-left on .accent — HTML whitespace is preserved by display:block on parent. */
/* ============================================================
   MOBILE RESPONSIVE · comprehensive overrides for viewports < 900px
   Uses !important to defeat inline styles on home/leistungen pages.
   ============================================================ */

/* Tablet breakpoint */
@media (max-width: 900px) {

  /* Homepage hero — inline-styled 2-column grid must stack */
  body[data-page="home"] > section:first-of-type > div[style*="grid-template-columns:1fr 1fr"],
  section > div[style*="grid-template-columns:1fr 1fr"][style*="min-height"] {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }
  /* Each split half must lose the right border and become full-width */
  section > div[style*="grid-template-columns:1fr 1fr"] > div {
    border-right: none !important;
  }

  /* Service rows (leistungen overview + homepage) — stack to block */
  a[style*="grid-template-columns:80px 1fr 1.5fr 140px"] {
    grid-template-columns: 60px 1fr !important;
    grid-template-rows: auto auto !important;
  }
  a[style*="grid-template-columns:80px 1fr 1.5fr 140px"] > div {
    padding: 1.25rem 1rem !important;
  }
  a[style*="grid-template-columns:80px 1fr 1.5fr 140px"] > div:nth-child(1) {
    grid-row: 1;
    grid-column: 1;
    font-size: 0.75rem !important;
  }
  a[style*="grid-template-columns:80px 1fr 1.5fr 140px"] > div:nth-child(2) {
    grid-row: 1;
    grid-column: 2;
    font-size: clamp(1.25rem, 5vw, 1.75rem) !important;
    border-right: none !important;
  }
  a[style*="grid-template-columns:80px 1fr 1.5fr 140px"] > div:nth-child(3) {
    grid-row: 2;
    grid-column: 1 / -1;
    border-right: none !important;
    border-top: var(--border);
    font-size: 0.9rem !important;
  }
  a[style*="grid-template-columns:80px 1fr 1.5fr 140px"] > div:nth-child(4) {
    display: none !important;
  }

  /* Specs 2x2 grids on dark hero halves */
  div[style*="grid-template-columns:1fr 1fr"][style*="gap:2rem"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }

  /* Section header — stack num, title, badge vertically */
  .section-hdr {
    grid-template-columns: 1fr !important;
  }
  .section-num,
  .section-badge {
    border-right: none !important;
    border-bottom: var(--border);
    padding: 1rem var(--gutter) !important;
  }
  .section-badge {
    border-left: none !important;
    justify-content: flex-start;
  }
  .section-ttl {
    padding: 1.5rem var(--gutter) !important;
    font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
  }

  /* Ph-meta (sub-page hero top bar) stack */
  .ph-meta {
    grid-template-columns: 1fr !important;
  }
  .ph-meta > div {
    border-right: none !important;
    border-bottom: var(--border);
    padding: 0.75rem var(--gutter) !important;
  }
  .ph-meta > div:last-child { border-bottom: none; }

  /* Ph-body + ph-right stack on mobile */
  .ph-body {
    grid-template-columns: 1fr !important;
  }
  .ph-left {
    border-right: none !important;
    border-bottom: var(--border);
    padding: 2.5rem var(--gutter) !important;
  }
  .ph-right {
    padding: 2.5rem var(--gutter) !important;
  }
  .ph-specs {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Feat-grid: 3/4-column grids → adapt smartly */
  .feat-grid[style*="repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
  }
  .feat-grid:not([style*="repeat"]) {
    /* Default feat-grids (3 cols by default) — keep 3 cols on tablet */
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .feat-grid[style*="repeat(3"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .feat,
  .feat-cell {
    padding: 2rem 1rem !important;
    min-height: auto !important;
  }
  .feat-title {
    font-size: 1rem !important;
  }
  .feat-desc {
    font-size: 0.85rem !important;
  }
  .feat-num {
    font-size: 1.75rem !important;
  }

  /* Content-block grid-2 stack */
  .content-block.grid-2,
  .content-block.grid-3 {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .content-block {
    padding: 2.5rem var(--gutter) !important;
  }

  /* Pack tiers stack */
  .pakete,
  .pakete > div[style*="grid-template-columns"],
  section > div[style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr !important;
  }
  .pack {
    border-right: none !important;
    border-bottom: var(--border);
  }
  .pack:last-child { border-bottom: none; }

  /* Tabs bar */
  .tabs-bar {
    grid-template-columns: 1fr !important;
  }
  .tab {
    border-right: none !important;
    border-bottom: var(--border);
  }

  /* Stats-band: 4 cols → 2x2 */
  .stats-band {
    grid-template-columns: 1fr 1fr !important;
  }
  .stat {
    border-right: var(--border);
    border-bottom: var(--border);
  }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
  .stat-val { font-size: clamp(1.75rem, 8vw, 2.75rem) !important; }

  /* Footer stack */
  .footer-top {
    grid-template-columns: 1fr !important;
  }
  .footer-col {
    border-right: none !important;
    border-bottom: var(--border);
  }
  .footer-col:last-child { border-bottom: none; }

  /* CTA title smaller on mobile */
  .cta-title {
    font-size: clamp(1.75rem, 8vw, 2.75rem) !important;
  }

  /* Hero display fonts smaller on tight screens */
  .ph-title {
    font-size: clamp(1.75rem, 9vw, 3rem) !important;
  }

  /* Quote text smaller */
  .quote-text {
    font-size: clamp(1.25rem, 6vw, 2rem) !important;
  }

  /* Manifesto text smaller */
  .manifesto-text {
    font-size: clamp(1.25rem, 6vw, 2rem) !important;
  }

  /* Large display headlines (homepage hero, inline h1) */
  section h1[style*="font-family:var(--f-display)"] {
    font-size: clamp(2.25rem, 10vw, 4rem) !important;
    line-height: 1.05 !important;
  }

  /* Inline-styled two-col grids (homepage alt-section variations) */
  div[style*="grid-template-columns:300px 1fr"],
  div[style*="grid-template-columns:1fr 2fr"],
  div[style*="grid-template-columns:2fr 1fr"],
  div[style*="grid-template-columns:200px 1fr 2fr"],
  div[style*="grid-template-columns:200px 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Arbeitsweise phase blocks: stack number, title, description */
  div[style*="grid-template-columns:200px 1fr 2fr"] > div {
    border-right: none !important;
    border-bottom: var(--border);
    padding: 1.5rem var(--gutter) !important;
  }
  div[style*="grid-template-columns:200px 1fr 2fr"] > div:last-child {
    border-bottom: none;
  }
  div[style*="grid-template-columns:200px 1fr 2fr"] > div:first-child {
    font-size: 3rem !important;
    padding: 1rem var(--gutter) !important;
  }

  /* Case study mock-screenshot grids */
  div[style*="grid-template-columns:repeat(2"] {
    grid-template-columns: 1fr !important;
  }

  /* Spec-table: wrap in horizontal scroll */
  .spec-table {
    font-size: 0.75rem;
  }
  .spec-table th,
  .spec-table td {
    padding: 0.5rem 0.4rem;
  }

  /* FAQ question font size */
  .faq-q {
    font-size: 0.95rem !important;
    padding: 1.25rem 3rem 1.25rem var(--gutter) !important;
  }
}

/* Small phones (iPhone SE and similar) */
@media (max-width: 500px) {
  :root {
    --gutter: 1.25rem;
  }

  /* Feat-grid fully stack */
  .feat-grid,
  .feat-grid[style*="repeat(4"],
  .feat-grid[style*="repeat(3"],
  .feat-grid[style*="repeat(2"] {
    grid-template-columns: 1fr !important;
  }

  /* Stats-band single column stack or tight 2 cols */
  .stats-band {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Ph-specs single col */
  .ph-specs {
    grid-template-columns: 1fr !important;
  }

  /* Specs 2-col on dark hero half — keep 2 cols but smaller */
  div[style*="grid-template-columns:1fr 1fr"][style*="gap:2rem"] {
    grid-template-columns: 1fr !important;
  }

  /* Page hero reduces padding */
  .page-hero {
    padding-top: 70px;
  }

  /* Buttons wrap */
  .cta-btn-row, .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-btn, .cta-btn-row .cta-btn {
    width: 100%;
    text-align: center;
  }

  /* Nav logo text */
  .logo-text {
    font-size: 0.9rem;
  }
  .logo-text .sub {
    display: none;
  }

  /* Hero H1 smaller on tiny screens */
  section h1[style*="font-family:var(--f-display)"] {
    font-size: clamp(2rem, 11vw, 3rem) !important;
  }

  /* Spec table — allow horizontal scroll in container */
  .content-block {
    overflow-x: auto;
  }
  .spec-table {
    min-width: 500px;
  }
}

/* ============================================================
   MOBILE NAV — overlay when menu button clicked
   ============================================================ */
@media (max-width: 1000px) {
  .nav {
    position: fixed;
  }
  .menu-btn {
    display: grid !important;
    place-items: center;
    width: 56px;
    height: 70px;
    background: transparent;
    border: none;
    border-left: var(--border);
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--ink);
  }
  .menu-btn:hover { background: var(--paper-warm); }

  /* When menu is open, nav-links overlay */
  .nav.menu-open .nav-links {
    display: block !important;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--paper);
    z-index: 100;
    padding: 2rem 0;
    overflow-y: auto;
    border-top: var(--border);
    visibility: visible;
    height: auto;
  }
  .nav.menu-open .nav-links li {
    width: 100%;
    border-bottom: var(--border);
  }
  .nav.menu-open .nav-links li a {
    display: block;
    padding: 1.5rem var(--gutter);
    font-family: var(--f-mono);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
  }
  .nav.menu-open .nav-links li.active {
    background: var(--ink);
  }
  .nav.menu-open .nav-links li.active a {
    color: var(--paper);
  }
  .nav.menu-open .nav-links li a:hover {
    background: var(--paper-warm);
  }
  body.menu-open {
    overflow: hidden;
  }
}
/* ============================================================
   FINAL POLISH · Article readability, FAQ structure, stats-band
   ============================================================ */

/* --- Blog article content container: max-width for readability --- */
body[data-sub="1"] article > section .content-block,
body[data-page="blog"][data-sub="1"] article > section .content-block {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
body[data-sub="1"] article > section,
body[data-page="blog"][data-sub="1"] article > section {
  padding: 0;
}

/* --- FAQ: fix double-plus. Keep the .faq-icon span, hide the pseudo --- */
.faq-q {
  display: grid !important;
  grid-template-columns: 60px 1fr 60px !important;
  align-items: center;
  gap: 2rem;
  padding: 1.75rem var(--gutter) !important;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  font-family: var(--f-display);
  font-size: 1rem !important;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none !important;
  line-height: 1.3;
  color: var(--ink);
}
.faq-q::after {
  display: none !important; /* kill the pseudo-+ since .faq-icon exists */
}
.faq-num {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.faq-text {
  font-family: var(--f-display);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-weight: 700;
}
.faq-icon {
  width: 40px;
  height: 40px;
  border: var(--border-thick);
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-size: 1.3rem;
  transition: all 0.3s;
  justify-self: end;
  color: var(--ink);
  background: var(--paper);
}
.faq-item.open .faq-icon {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
  transform: rotate(45deg);
}

/* Fallback for simple faq-q without span children (plain text) */
.faq-q:not(:has(.faq-icon)) {
  display: block !important;
  grid-template-columns: none !important;
  padding: 1.5rem 4rem 1.5rem var(--gutter) !important;
  position: relative;
}
.faq-q:not(:has(.faq-icon))::after {
  display: block !important;
  content: '+';
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.5rem;
  font-family: var(--f-mono);
  transition: transform 0.2s;
}
.faq-item.open .faq-q:not(:has(.faq-icon))::after {
  transform: translateY(-50%) rotate(45deg);
}

/* --- FAQ answer padding --- */
.faq-a-inner {
  padding: 0 var(--gutter) 1.5rem;
  max-width: 900px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gray-1);
}

/* --- Stats band: visible borders between stats --- */
.stats-band {
  background: var(--ink);
  color: var(--paper);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: var(--border-thick);
  border-bottom: var(--border-thick);
}
.stats-band .stat {
  padding: 2.5rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.stats-band .stat:last-child {
  border-right: none;
}

/* --- Page-hero first section should have no visible white gap at top --- */
.page-hero {
  padding-top: 0;
  margin-top: 70px;
}

/* --- Mobile: blog article content narrower but with side padding --- */
@media (max-width: 900px) {
  body[data-sub="1"] article > section .content-block,
  body[data-page="blog"][data-sub="1"] article > section .content-block {
    padding: 2rem 1.25rem;
  }
  .faq-q {
    grid-template-columns: 40px 1fr 40px !important;
    gap: 1rem !important;
    padding: 1.25rem var(--gutter) !important;
  }
  .faq-text { font-size: 0.95rem !important; }
  .faq-icon { width: 32px; height: 32px; font-size: 1.1rem; }
}

/* ============================================================
   GLOBAL GRID PATTERN
   Mobile-first: starts at 40px, scales up on bigger screens
   Direct body background — sections with no bg-color let it shine through
   ============================================================ */

body {
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(14, 14, 14, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 14, 14, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  background-attachment: fixed;
}
@media (min-width: 700px) {
  body {
    background-size: 60px 60px;
  }
}
@media (min-width: 1100px) {
  body {
    background-size: 80px 80px;
  }
}

/* Make typically-opaque white sections transparent so the grid shines through.
   Sections that need solid white (like nav fixed bar) keep their own background. */
.page-hero,
section:not(.stats-band):not(.manifesto):not(.cta-big):not(.quote):not([style*="background"]) {
  background: transparent;
}

/* Override inline-styled white panels in homepage hero so grid shines through */
section[style*="padding-top:70px"] > div > div[style*="background:var(--paper)"] {
  background: transparent !important;
}

/* Content blocks (.feat, .feat-cell, .content-block, .pack, .case) keep their own
   subtle backgrounds for legibility — but we make them slightly translucent so the
   grid still shows through faintly */
.feat,
.feat-cell,
.content-block,
.pack,
.spec-table,
.faq-wrap,
.tabs-bar {
  background: rgba(255, 255, 255, 0.6);
}

/* Inverted grid on dark sections (manifesto, stats-band, cta-big, ph-right, quote) */
/* Inverted grid removed — grid only on light backgrounds */
