:root {
  --ink: #0f1c24;
  --ink-soft: #2a3d4a;
  --paper: #eef2f4;
  --paper-deep: #e2e8ec;
  --surface: #ffffff;
  --accent: #1a6b6b;
  --accent-deep: #0f4f4f;
  --accent-soft: #d5ebe8;
  --line: #c5d0d7;
  --gold: #c4a574;
  --danger: #8b2e2e;
  --ok: #1f5c3a;
  --shadow: 0 18px 40px rgba(15, 28, 36, 0.08);
  --radius: 4px;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(26, 107, 107, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(196, 165, 116, 0.14), transparent 50%),
    linear-gradient(180deg, #f5f7f8 0%, var(--paper) 40%, #e8eef1 100%);
  line-height: 1.65;
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.runtime-error {
  background: #f8e8e8;
  color: var(--danger);
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(238, 242, 244, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(15, 28, 36, 0.05);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.55rem;
  background:
    radial-gradient(circle at 70% 28%, var(--gold) 0 18%, transparent 19%),
    linear-gradient(145deg, var(--accent) 0%, var(--ink) 100%);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-lines::before {
  top: -6px;
}

.nav-toggle-lines::after {
  top: 6px;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.15rem 1rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-list a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.35rem 0;
}

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

.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 0.55rem 0.95rem !important;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--accent-deep);
  color: #fff !important;
}

/* Layout helpers */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.split-reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.stack > * + * {
  margin-top: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.8rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: #fff;
}

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroDrift 22s ease-in-out infinite alternate;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 28, 36, 0.88) 0%, rgba(15, 28, 36, 0.55) 48%, rgba(15, 28, 36, 0.28) 100%),
    linear-gradient(0deg, rgba(15, 28, 36, 0.7) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.25rem 4rem;
  width: 100%;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.98;
  margin: 0 0 1rem;
  max-width: 14ch;
  animation: riseIn 0.9s ease both;
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 500;
  max-width: 28ch;
  margin-bottom: 0.85rem;
  animation: riseIn 0.9s ease 0.12s both;
}

.hero .hero-copy {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  animation: riseIn 0.9s ease 0.22s both;
}

.hero .btn-row {
  animation: riseIn 0.9s ease 0.32s both;
}

.hero .btn-secondary {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.hero .btn-secondary:hover {
  background: #fff;
  color: var(--ink);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.05) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, -1%, 0);
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Offer bands */
.offer-band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.offer-item {
  padding: 0;
}

.offer-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 1rem;
  filter: saturate(0.92);
}

.offer-item h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.offer-item p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Quote / evidence */
.quote-block {
  border-left: 3px solid var(--gold);
  padding: 0.25rem 0 0.25rem 1.25rem;
  max-width: 40rem;
}

.quote-block p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--ink);
}

.quote-meta {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 0.75rem;
}

/* Page heroes (inner) */
.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(26, 107, 107, 0.08), transparent 55%),
    var(--paper);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 18ch;
}

.page-hero-media {
  margin-top: 2rem;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

/* Content */
.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.55rem;
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1.25rem 0;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--accent-soft);
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

/* Pricing */
.rate-list {
  display: grid;
  gap: 1rem;
}

.rate-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.rate-row h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.rate-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.rate-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  white-space: nowrap;
  color: var(--accent-deep);
}

/* Reviews */
.review-list {
  display: grid;
  gap: 2rem;
}

.review {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.review blockquote {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
}

.review footer {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.case-story {
  background: var(--surface);
  padding: 2rem;
  border: 1px solid var(--line);
  margin-top: 2rem;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.blog-card a {
  text-decoration: none;
  color: inherit;
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 0.9rem;
}

.blog-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.blog-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin: 1.5rem 0 2rem;
}

.article-meta {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

/* Forms */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.75rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.field-error {
  color: var(--danger);
  font-size: 0.82rem;
  margin: 0.35rem 0 0;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.form-status.is-success {
  background: #e5f3ea;
  color: var(--ok);
}

.form-status.is-error {
  background: #f8e8e8;
  color: var(--danger);
}

.address-block p {
  margin: 0 0 0.35rem;
}

/* Steps / Ablauf */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1.5rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--accent);
  line-height: 1;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  margin-top: 4rem;
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.6rem;
}

.footer-heading {
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-base {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  animation: riseIn 0.45s ease both;
}

.cookie-banner-inner {
  padding: 1.15rem 1.25rem;
}

.cookie-banner p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.cookie-banner-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem;
}

.error-page h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: 0.4rem;
}

/* Legal narrow */
.legal-wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

/* Responsive */
@media (max-width: 900px) {
  .split,
  .split-reverse,
  .offer-grid,
  .contact-layout,
  .footer-inner,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(238, 242, 244, 0.98);
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .hero {
    min-height: 85vh;
  }

  .hero-content {
    padding-top: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-media img {
    transform: none;
  }
}
