/* =========================================================
   Richard Roman — Websites für lokale Unternehmen
   Design tokens
   ========================================================= */
:root {
  --ink: #15140F;
  --charcoal: #201F19;
  --charcoal-2: #2B2A22;
  --paper: #F6F2E7;
  --paper-dim: #EAE3D2;
  --copper: #B1602C;
  --copper-dark: #8C4A21;
  --brass: #C9A467;
  --ink-text: #2A281F;
  --ash: #8C877A;
  --line-dark: rgba(246, 242, 231, 0.14);
  --line-light: rgba(42, 40, 31, 0.14);

  --font-display: "Big Shoulders Display", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --container: 1120px;
  --radius: 4px;
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   Type
   ========================================================= */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 14px;
}
.section--ink .eyebrow,
.section--charcoal .eyebrow { color: var(--brass); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.02;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }

.lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ash);
  max-width: 46ch;
  font-weight: 400;
}
.section--paper .lede, .section--paperdim .lede { color: #5B5748; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--copper);
  color: var(--ink);
}
.btn--primary:hover { background: var(--brass); }

.btn--outline {
  background: transparent;
  border-color: currentColor;
}
.section--ink .btn--outline, .section--charcoal .btn--outline { color: var(--paper); border-color: var(--line-dark); }
.section--ink .btn--outline:hover, .section--charcoal .btn--outline:hover { border-color: var(--brass); color: var(--brass); }
.section--paper .btn--outline, .section--paperdim .btn--outline { color: var(--ink-text); border-color: var(--line-light); }
.section--paper .btn--outline:hover, .section--paperdim .btn--outline:hover { border-color: var(--copper); color: var(--copper-dark); }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 20, 15, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-dark);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.nav__brand {
  font-family: var(--font-display);
  color: var(--paper);
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}
.nav__brand span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--ash);
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 400;
  margin-top: 2px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav__links a:not(.btn) {
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 4px;
}
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1.5px;
  background: var(--copper);
  transition: right 0.25s ease;
}
.nav__links a:not(.btn):hover::after,
.nav__links a.is-active::after { right: 0; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--paper);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 780px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 66px; left: 0; right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--line-dark);
    transition: max-height 0.3s ease;
  }
  .nav.is-open .nav__links { max-height: 320px; }
  .nav__links a:not(.btn) { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
  .nav__links .btn { margin: 16px 0; }
}

/* =========================================================
   Sections
   ========================================================= */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section--ink { background: var(--ink); color: var(--paper); }
.section--charcoal { background: var(--charcoal); color: var(--paper); }
.section--paper { background: var(--paper); color: var(--ink-text); }
.section--paperdim { background: var(--paper-dim); color: var(--ink-text); }
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }

.section-head { margin-bottom: 52px; max-width: 640px; }
.section-head--center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }

/* Blueprint grid texture for hero */
.hero {
  position: relative;
  padding: clamp(90px, 14vw, 160px) 0 clamp(70px, 10vw, 110px);
  background:
    linear-gradient(rgba(21,20,15,0.94), rgba(21,20,15,0.98)),
    repeating-linear-gradient(0deg, rgba(201,164,103,0.06) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(201,164,103,0.06) 0 1px, transparent 1px 64px),
    var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.hero__inner { max-width: 780px; }
.hero h1 { margin-bottom: 20px; }
.hero .lede { margin-bottom: 34px; color: #C9C4B4; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero__scroll-hint {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ash);
}

.hero--small { padding: clamp(70px, 9vw, 100px) 0 clamp(50px, 7vw, 70px); }
.hero--small .lede { color: #C9C4B4; margin-bottom: 0; }

/* =========================================================
   Cards / Problem grid
   ========================================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .cards-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.section--paperdim .card { background: var(--paper); }
.card__icon { color: var(--copper); margin-bottom: 18px; }
.card h3 { text-transform: none; font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; margin-bottom: 10px; letter-spacing: 0; }
.card p { color: #5B5748; font-size: 0.98rem; }

/* Stagger for grids */
.cards-grid.is-visible .card:nth-child(1) { transition-delay: 0ms; }
.cards-grid.is-visible .card:nth-child(2) { transition-delay: 90ms; }
.cards-grid.is-visible .card:nth-child(3) { transition-delay: 180ms; }

/* =========================================================
   Badges (solution / included)
   ========================================================= */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
@media (max-width: 940px) { .badges-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .badges-grid { grid-template-columns: 1fr; } }
.badge-item { text-align: left; }
.badge-seal {
  width: 64px; height: 64px;
  border: 2px solid var(--brass);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--brass);
  position: relative;
}
.badge-seal::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(201,164,103,0.5);
  border-radius: 50%;
}
.badge-item h3 { text-transform: none; font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; letter-spacing: 0; color: var(--paper); }
.badge-item p { color: var(--ash); font-size: 0.95rem; }

.badges-grid.is-visible .badge-item:nth-child(1) { transition-delay: 0ms; }
.badges-grid.is-visible .badge-item:nth-child(2) { transition-delay: 80ms; }
.badges-grid.is-visible .badge-item:nth-child(3) { transition-delay: 160ms; }
.badges-grid.is-visible .badge-item:nth-child(4) { transition-delay: 240ms; }

/* =========================================================
   Steps (real sequence -> numbered)
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 34px; } }
.step__num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--copper);
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 14px;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}
.step h3 { text-transform: none; font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; margin-bottom: 10px; letter-spacing: 0; }
.step p { color: #5B5748; font-size: 0.98rem; }

.steps.is-visible .step:nth-child(1) { transition-delay: 0ms; }
.steps.is-visible .step:nth-child(2) { transition-delay: 120ms; }
.steps.is-visible .step:nth-child(3) { transition-delay: 240ms; }

/* =========================================================
   Split (why not agency / about intro)
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.split__media img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
}
.split p + p { margin-top: 16px; }
.split .lede { max-width: none; }

/* =========================================================
   Pull quote (about page)
   ========================================================= */
.pull-quote {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.12;
  color: var(--ink-text);
  border-left: 4px solid var(--copper);
  padding-left: 28px;
  margin-bottom: 44px;
  max-width: 20ch;
}

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
@media (max-width: 860px) { .values-grid { grid-template-columns: 1fr; } }
.value-item__label {
  font-family: var(--font-mono);
  color: var(--copper-dark);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.value-item p { color: #5B5748; }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
  background: var(--copper);
  color: var(--ink);
  padding: clamp(54px, 8vw, 84px) 0;
  text-align: center;
}
.cta-band h2 { color: var(--ink); margin-bottom: 14px; }
.cta-band p { font-size: 1.05rem; margin-bottom: 32px; color: rgba(21,20,15,0.78); }
.cta-band .btn--primary { background: var(--ink); color: var(--paper); }
.cta-band .btn--primary:hover { background: var(--charcoal-2); }

/* =========================================================
   Invoice / receipt signature card (Pakete page)
   ========================================================= */
.invoice-wrap { display: flex; justify-content: center; }
.invoice-card {
  width: 100%;
  max-width: 640px;
  background: var(--paper);
  border: 1.5px solid var(--ink-text);
  padding: clamp(28px, 5vw, 48px);
  position: relative;
  box-shadow: 8px 8px 0 var(--paper-dim), 8px 8px 0 1.5px var(--ink-text);
}
.invoice-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid var(--ink-text);
  padding-bottom: 18px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
}
.invoice-card__head h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
}
.invoice-card__meta { text-align: right; font-size: 0.78rem; color: var(--ash); line-height: 1.7; }

.invoice-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  padding: 12px 0;
  border-bottom: 1px dotted var(--line-light);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.invoice-card.is-visible .invoice-line { opacity: 1; transform: translateY(0); }
.invoice-card.is-visible .invoice-line:nth-child(1) { transition-delay: 60ms; }
.invoice-card.is-visible .invoice-line:nth-child(2) { transition-delay: 160ms; }
.invoice-card.is-visible .invoice-line:nth-child(3) { transition-delay: 260ms; }
.invoice-card.is-visible .invoice-line:nth-child(4) { transition-delay: 360ms; }
.invoice-card.is-visible .invoice-line:nth-child(5) { transition-delay: 460ms; }

.invoice-line__label { color: var(--ink-text); }
.invoice-line__note { display: block; font-size: 0.76rem; color: var(--ash); margin-top: 2px; }
.invoice-line__price { color: var(--ash); text-decoration: line-through; white-space: nowrap; }

.invoice-total {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 2px solid var(--ink-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.invoice-total__label { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ash); text-transform: uppercase; letter-spacing: 0.05em; }
.invoice-total__price { font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 800; color: var(--ink-text); line-height: 1; }
.invoice-total__price span { font-family: var(--font-mono); font-size: 1rem; font-weight: 500; color: var(--ash); text-transform: none; margin-left: 4px; }

.stamp {
  position: absolute;
  top: -18px;
  right: 24px;
  border: 3px solid var(--copper);
  border-radius: 50%;
  color: var(--copper);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 14px 12px;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
  transform: rotate(-11deg) scale(1.5);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(.2,1.4,.4,1), opacity 0.4s ease;
  background: var(--paper);
}
.invoice-card.is-visible .stamp { opacity: 0.95; transform: rotate(-11deg) scale(1); }

.invoice-footnote { font-size: 0.82rem; color: var(--ash); margin-top: 24px; text-align: center; }

/* =========================================================
   Compare grid (für wen / nicht)
   ========================================================= */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
@media (max-width: 760px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-col {
  background: var(--paper);
  border: 1px solid var(--line-light);
  padding: 30px 28px;
  border-radius: var(--radius);
}
.compare-col h3 { text-transform: none; font-family: var(--font-body); font-size: 1.1rem; letter-spacing: 0; margin-bottom: 20px; }
.compare-col--for h3 { color: var(--copper-dark); }
.compare-col--against h3 { color: var(--ash); }
.compare-col li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.96rem;
  color: #4A4738;
}
.compare-col li:last-child { border-bottom: none; }
.compare-col li svg { flex-shrink: 0; margin-top: 3px; }
.compare-col--for li svg { color: var(--copper); }
.compare-col--against li svg { color: var(--ash); }

/* =========================================================
   Form
   ========================================================= */
.form { max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--ash);
  margin-bottom: 8px;
}
.form-group input, .form-group textarea {
  width: 100%;
  background: var(--paper);
  border: 1.5px solid var(--line-light);
  border-radius: var(--radius);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-text);
  transition: border-color 0.2s ease;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--copper);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.88rem; color: var(--ash); margin-top: 18px; }
.form-note a { color: var(--copper-dark); text-decoration: underline; }
.form-success {
  display: none;
  background: var(--paper-dim);
  border-left: 3px solid var(--copper);
  padding: 20px 24px;
  font-size: 0.98rem;
}
.form-success.is-shown { display: block; }
.form.is-hidden { display: none; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: var(--ash);
  padding: 56px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand {
  font-family: var(--font-display);
  color: var(--paper);
  font-size: 1.2rem;
  text-transform: uppercase;
}
.footer-brand + p { margin-top: 10px; max-width: 32ch; font-size: 0.92rem; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--brass); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
}
.footer-bottom a:hover { color: var(--brass); }

/* =========================================================
   Simple legal pages
   ========================================================= */
.legal { max-width: 720px; }
.legal h2 { text-transform: none; font-family: var(--font-body); font-size: 1.4rem; margin: 36px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: #4A4738; margin-bottom: 10px; }
.legal .placeholder { background: var(--paper-dim); padding: 2px 6px; border-radius: 2px; color: var(--copper-dark); font-family: var(--font-mono); font-size: 0.9em; }

/* =========================================================
   Reveal-on-scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .invoice-line, .stamp, .btn, .nav__links { transition: none !important; }
  .reveal, .invoice-line { opacity: 1 !important; transform: none !important; }
  .stamp { opacity: 0.95 !important; transform: rotate(-11deg) scale(1) !important; }
}
