:root {
  --bg: #f7f5f0;
  --paper: #fffdfa;
  --ink: #202326;
  --muted: #646b70;
  --line: #ded8cf;
  --green: #2f6f5e;
  --blue: #244f73;
  --rose: #a85f55;
  --focus: #0b6bcb;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 52px);
  background: rgba(247, 245, 240, 0.92);
  border-bottom: 1px solid rgba(222, 216, 207, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  gap: 0;
  text-decoration: none;
}

.brand span {
  font-size: 18px;
  font-weight: 700;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
}

.main-nav a {
  text-decoration: none;
}

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

.back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.back-link:hover {
  color: var(--ink);
}

.hero {
  background: var(--paper);
  position: relative;
}

.hero picture,
.hero img {
  display: block;
  width: 100%;
}

.hero img {
  height: auto;
}

.hero-menu-trigger {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.hero-menu-trigger:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -8px;
}

.hero-menu {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  justify-items: end;
  background: rgba(32, 35, 38, 0);
  pointer-events: none;
  transition: background 200ms ease;
}

.hero-menu.is-open,
.hero-menu:target {
  background: rgba(32, 35, 38, 0.36);
  pointer-events: auto;
}

.hero-menu-panel {
  display: grid;
  align-content: start;
  gap: 6px;
  width: min(420px, calc(100vw - 28px));
  max-height: 100dvh;
  min-height: 100dvh;
  padding: 26px;
  background: rgba(255, 253, 250, 0.96);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 70px rgba(32, 35, 38, 0.18);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform 240ms ease;
}

.hero-menu.is-open .hero-menu-panel,
.hero-menu:target .hero-menu-panel {
  transform: translateX(0);
}

.hero-menu-close {
  position: sticky;
  top: 0;
  z-index: 2;
  justify-self: end;
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  margin-bottom: 18px;
  background: var(--ink);
  border-radius: 50%;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  text-decoration: none;
}

.hero-menu-panel a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 22px;
  font-weight: 750;
  text-decoration: none;
}

.hero-menu-panel a:hover {
  color: var(--green);
}

.section {
  padding: clamp(68px, 9vw, 120px) clamp(18px, 4vw, 52px);
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.muted {
  background: var(--paper);
}

.intro-grid,
.offer-grid,
.split,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: start;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(34px, 5vw, 60px);
}

.intro h1 {
  max-width: 640px;
  font-size: clamp(38px, 5.2vw, 66px);
  hyphens: auto;
  overflow-wrap: anywhere;
}

#einstieg h2 {
  max-width: 660px;
  font-size: clamp(36px, 4.6vw, 56px);
  hyphens: auto;
  overflow-wrap: anywhere;
}

h2 + p {
  margin-top: 22px;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
}

.intro-copy,
.text-stack {
  color: var(--muted);
  font-size: 20px;
}

.lead {
  color: var(--ink);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 750;
  line-height: 1.18;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 10px;
  padding: 0 20px;
  background: var(--ink);
  border-radius: 6px;
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.button-link:hover {
  background: #111315;
  transform: translateY(-2px);
}

.intro-copy p:last-child,
.text-stack p:last-child,
.offer-grid p:last-child {
  margin-bottom: 0;
}

.strategy-section {
  background:
    linear-gradient(90deg, rgba(47, 111, 94, 0.08), transparent 62%),
    var(--paper);
}

.strategy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: start;
}

.strategy-copy {
  color: var(--muted);
  font-size: 20px;
}

.strategy-copy p {
  margin-top: 0;
}

.strategy-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.strategy-copy li {
  padding: 9px 12px;
  background: rgba(255, 253, 250, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.offer-grid p {
  color: var(--muted);
  font-size: 20px;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  position: absolute;
  top: 9px;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  content: "";
}

.usp-list,
.why-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.usp-list li,
.why-list li {
  min-height: 58px;
  padding: 15px 16px 15px 44px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  position: relative;
}

.usp-list li::before,
.why-list li::before {
  position: absolute;
  left: 16px;
  top: 17px;
  color: var(--green);
  content: "✓";
  font-weight: 800;
}

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: start;
}

.trust-compact {
  max-width: 980px;
}

.trust-details {
  margin-top: 18px;
}

.trust-details summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}

.trust-details summary::-webkit-details-marker {
  display: none;
}

.trust-details summary small {
  color: var(--green);
  font-size: 18px;
  font-weight: 750;
}

.trust-details summary small::before {
  content: "+";
}

.trust-details[open] summary small::before {
  content: "−";
}

.trust-content {
  display: grid;
  gap: 18px;
  padding-top: 24px;
}

.trust-content p {
  margin: 0;
  color: var(--muted);
}

.trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
}

.trust-tags span {
  padding: 8px 11px;
  background: rgba(47, 111, 94, 0.08);
  border: 1px solid rgba(47, 111, 94, 0.18);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.trust-collapse {
  justify-self: start;
  width: auto;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--green);
  font-size: 15px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.service-grid article {
  min-height: 230px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-grid article:hover {
  border-color: rgba(47, 111, 94, 0.42);
  box-shadow: 0 18px 50px rgba(32, 35, 38, 0.08);
  transform: translateY(-4px);
}

.service-grid span {
  display: block;
  margin-bottom: 26px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.service-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.standard {
  background: #eef2ed;
}

.standard h2 {
  margin-bottom: 42px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature-grid article {
  min-height: 230px;
  padding: 28px;
  background: var(--paper);
}

.feature-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.process-steps {
  display: grid;
  gap: 12px;
}

.process-steps article {
  display: grid;
  gap: 8px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.process-steps span {
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
}

.process-steps h3,
.process-steps p {
  margin: 0;
}

.ai-finder-section {
  background: linear-gradient(180deg, var(--bg), var(--paper));
}

.ai-finder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.ai-finder > div:first-child,
.ai-problem-grid {
  grid-column: 1;
}

.ai-problem-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ai-problem-button {
  width: auto;
  min-height: 42px;
  padding: 10px 14px;
  background: rgba(255, 253, 250, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.ai-problem-button:hover,
.ai-problem-button.is-selected {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.ai-result {
  position: sticky;
  top: 96px;
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  gap: 12px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(32, 35, 38, 0.08);
}

.ai-result span {
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.ai-result h3,
.ai-result p {
  margin: 0;
}

.ai-result h3 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.ai-result small {
  color: var(--muted);
}

.ai-page .section {
  padding-top: clamp(64px, 8vw, 104px);
  padding-bottom: clamp(64px, 8vw, 104px);
}

.ai-page h1,
.ai-page h2 {
  max-width: 760px;
}

.ai-page .lead {
  margin-bottom: 20px;
}

.ai-page .intro-copy p + p,
.ai-page .text-stack p + p {
  margin-top: 18px;
}

.ai-page .section-note {
  margin-top: 24px;
  max-width: 720px;
}

.ai-page .process-steps {
  gap: 14px;
}

.ai-page .process-steps article {
  padding: 22px;
}

.ai-page .ai-finder {
  row-gap: 28px;
}

.ai-page .ai-problem-grid {
  margin-top: 8px;
}

.ai-page .service-grid {
  margin-top: 36px;
}

.ai-page .service-grid article {
  min-height: 210px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-list span {
  padding: 10px 14px;
  background: #eef2ed;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #2d3634;
  font-size: 15px;
}

.trade-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 860px;
  margin-top: 24px;
}

.trade-cloud span {
  padding: 8px 11px;
  background: rgba(255, 253, 250, 0.72);
  border: 1px solid rgba(47, 111, 94, 0.18);
  border-radius: 999px;
  color: #34413d;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(32, 35, 38, 0.04);
}

.section-note {
  max-width: 680px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.portal-page .reveal,
.auth-page .reveal,
.admin-page .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.delay-1 {
  transition-delay: 120ms;
}

.delay-2 {
  transition-delay: 220ms;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.reference-card {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: space-between;
  min-height: 158px;
  padding: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, #202326, #2f3a37);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

#referenzen {
  padding-top: clamp(46px, 6vw, 72px);
  padding-bottom: clamp(46px, 6vw, 72px);
}

#referenzen h2 {
  max-width: 760px;
  font-size: clamp(28px, 3.8vw, 44px);
}

.reference-card::after {
  position: absolute;
  right: -34px;
  bottom: -34px;
  z-index: -1;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
  transition: transform 220ms ease, border-color 220ms ease;
}

.reference-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 0%, rgba(185, 211, 107, 0.12) 42%, transparent 70%);
  content: "";
  opacity: 0;
  transform: translateX(-40%);
  transition: opacity 180ms ease, transform 500ms ease;
}

.reference-card:hover {
  background: linear-gradient(145deg, #1f2f2b, #27455a);
  box-shadow: 0 18px 44px rgba(32, 35, 38, 0.16);
  transform: translateY(-3px);
}

.reference-card:hover::before {
  opacity: 1;
  transform: translateX(30%);
}

.reference-card:hover::after {
  border-color: rgba(185, 211, 107, 0.42);
  transform: scale(1.08);
}

.reference-card span {
  color: #b9d36b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.reference-card strong {
  display: block;
  margin: 14px 0 8px;
  font-size: 17px;
  line-height: 1.12;
}

.reference-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.42;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.contact-section {
  background: var(--bg);
}

.content-page {
  min-height: 70vh;
}

.content-page .section {
  padding-top: clamp(58px, 8vw, 104px);
  padding-bottom: clamp(58px, 8vw, 104px);
}

.content-page h1 {
  margin-bottom: 0;
}

.legal-content {
  max-width: 860px;
}

.legal-content h1 {
  margin-bottom: 48px;
}

.legal-content h2 {
  margin: 34px 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}

.legal-content p {
  color: var(--muted);
}

.legal-content a {
  color: var(--green);
  font-weight: 700;
}

.portal-narrow {
  max-width: 720px;
}

.portal-form {
  max-width: 980px;
}

.portal-intro {
  max-width: 760px;
  margin-top: 24px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 20px;
}

.intro-price-note {
  display: inline-flex;
  margin: 22px 0 0;
  padding: 10px 13px;
  background: rgba(47, 111, 94, 0.08);
  border: 1px solid rgba(47, 111, 94, 0.18);
  border-radius: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 36px 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-offer-summary {
  max-width: 760px;
  margin-top: 26px;
  padding: 20px;
  background: rgba(255, 253, 250, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-offer-summary p {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 20px;
}

.hero-offer-summary ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-offer-summary li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.hero-offer-summary li::before {
  position: absolute;
  top: 9px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--green);
  border-radius: 50%;
  content: "";
}

.button-link.secondary {
  background: var(--green);
}

.offer-page {
  background:
    linear-gradient(90deg, rgba(47, 111, 94, 0.08), transparent 62%),
    var(--bg);
}

.offer-hero,
.offer-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: start;
}

.price-card {
  padding: clamp(24px, 4vw, 36px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(32, 35, 38, 0.08);
}

.price-card > span {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.price-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(54px, 7vw, 86px);
  line-height: 0.95;
}

.price-card p {
  margin: 12px 0 26px;
  color: var(--muted);
  font-size: 18px;
}

.price-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.price-card div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.price-card dt {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.price-card dd {
  margin: 2px 0 0;
  color: var(--muted);
}

.offer-cta {
  max-width: 820px;
}

.offer-cta p {
  max-width: 680px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 20px;
}

.offer-cta .button-link {
  margin-top: 8px;
}

.offer-detail-grid h2 {
  font-size: clamp(32px, 4vw, 52px);
}

.demo-offer {
  max-width: 820px;
}

.demo-offer h1 {
  max-width: 620px;
  font-size: clamp(36px, 5vw, 58px);
}

.demo-price {
  margin-top: 30px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.demo-price span {
  display: block;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.demo-price strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(52px, 8vw, 82px);
  line-height: 0.95;
}

.demo-price p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.demo-offer-text {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 17px;
}

.demo-offer-text p {
  margin: 0;
}

.demo-offer-text strong {
  color: var(--ink);
}

.offer-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: start;
}

.offer-columns h2 {
  margin-bottom: 28px;
  font-size: clamp(30px, 4vw, 48px);
}

.simple-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.simple-steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.simple-steps span {
  grid-row: span 2;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.simple-steps strong {
  line-height: 1.25;
}

.simple-steps p {
  margin: 0;
  color: var(--muted);
}

.mini-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 20px;
  padding: 0 14px;
  background: var(--ink);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 38px;
  align-items: start;
}

.portal-panel {
  padding: clamp(22px, 4vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.portal-panel h2 {
  margin-bottom: 24px;
  font-size: clamp(26px, 3vw, 38px);
}

.portal-panel h2 + p {
  margin-top: 0;
}

.admin-insight-panel {
  margin: 38px 0;
}

.insight-list {
  display: grid;
  gap: 8px;
}

.insight-list p {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.insight-list span {
  color: var(--muted);
}

.portal-services article {
  display: grid;
  align-content: start;
}

.portal-start {
  margin-top: 34px;
  padding: 0;
  overflow: hidden;
}

.portal-task-list {
  display: grid;
}

.portal-task-list a {
  display: grid;
  grid-template-columns: 46px minmax(0, 220px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  color: var(--ink);
  text-decoration: none;
}

.portal-task-list a + a {
  border-top: 1px solid var(--line);
}

.portal-task-list a:hover {
  background: #f6f3ed;
}

.portal-task-list span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.portal-task-list strong {
  font-size: 17px;
}

.portal-task-list small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.featured-service {
  background: #f6f3ed;
  border-color: rgba(47, 124, 106, 0.34);
}

.primary-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-top: 36px;
  background: #f6f3ed;
  border-color: rgba(47, 124, 106, 0.34);
}

.primary-offer h2 {
  margin-bottom: 16px;
}

.primary-offer p:last-child {
  margin-bottom: 0;
}

.b2b-note {
  max-width: 820px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.danger-panel {
  margin-top: 34px;
  border-color: rgba(145, 52, 52, 0.24);
}

.delete-details {
  margin-top: 18px;
}

.delete-details summary {
  cursor: pointer;
  color: #8f2f2f;
  font-weight: 800;
}

.delete-details .contact-form {
  margin-top: 18px;
}

.danger-button {
  background: #8f2f2f;
}

.order-list {
  display: grid;
  gap: 14px;
}

.order-list article {
  display: grid;
  gap: 18px;
  padding: 18px;
  background: #f6f3ed;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.order-list span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.order-list h3 {
  margin-bottom: 6px;
}

.order-list h3 a {
  text-decoration: none;
}

.progress-wrap {
  display: grid;
  gap: 8px;
}

.progress-wrap strong {
  color: var(--green);
}

.progress-wrap div {
  height: 10px;
  overflow: hidden;
  background: #e4ded3;
  border-radius: 999px;
}

.progress-wrap span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
}

.timeline {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  padding-left: 22px;
  border-left: 2px solid var(--line);
}

.timeline time {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.timeline strong {
  display: block;
  margin: 4px 0;
}

.timeline p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-form fieldset {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0 0 28px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.contact-form legend {
  margin-bottom: 14px;
  color: var(--green);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-data {
  display: grid;
  gap: 8px;
}

.project-data dt {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-data dd {
  margin: 0 0 14px;
  color: var(--muted);
}

.privacy-search {
  max-width: 760px;
  margin-top: 34px;
}

.privacy-summary {
  margin-top: 34px;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.privacy-panel {
  min-width: 0;
}

.privacy-record {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.privacy-record summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 750;
}

.privacy-record .project-data {
  margin-top: 14px;
}

.privacy-report {
  width: 100%;
  min-height: 360px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}

.privacy-actions {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.privacy-actions li + li {
  margin-top: 8px;
}

.textarea-label {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: #3b4145;
  font-size: 15px;
  font-weight: 700;
}

.admin-template-text {
  width: 100%;
  min-height: 260px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  resize: vertical;
}

.order-summary {
  padding: 22px;
  background: #f6f3ed;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.order-summary h2 {
  margin-bottom: 18px;
  font-size: clamp(24px, 3vw, 34px);
}

.order-summary dl {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
  gap: 10px 18px;
  margin: 0;
}

.order-summary dt {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.order-summary dd {
  margin: 0;
  color: var(--muted);
}

.order-summary dd small {
  display: block;
  color: var(--muted);
}

.file-list {
  padding-left: 20px;
  color: var(--muted);
}

address {
  margin-top: 32px;
  color: var(--muted);
  font-style: normal;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 36px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.portal-narrow .contact-form,
.portal-form .contact-form {
  margin-top: 34px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #3b4145;
  font-size: 15px;
  font-weight: 650;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cfc8bd;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.contact-form input,
.contact-form select {
  min-height: 48px;
  padding: 10px 12px;
}

.contact-form textarea {
  min-height: 150px;
  padding: 12px;
  resize: vertical;
}

.consent {
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-weight: 500;
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 4px;
}

.website-field {
  position: absolute;
  left: -9999px;
}

button {
  min-height: 52px;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-note,
.form-foot {
  margin: 0;
  font-size: 14px;
}

.form-note {
  padding: 12px 14px;
  border-radius: 6px;
}

.form-note.success {
  background: #e6f2ec;
  color: #245c4c;
}

.form-note.error {
  background: #f7e7e3;
  color: #8a4037;
}

.form-foot {
  color: var(--muted);
}

.site-footer {
  padding: clamp(42px, 7vw, 72px) clamp(18px, 4vw, 52px) 30px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.54);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(30px, 6vw, 80px);
  width: min(100%, var(--max));
  margin: 0 auto;
}

.footer-brand {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-brand strong {
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
}

.footer-brand span {
  color: var(--ink);
  font-weight: 650;
}

.footer-brand p {
  max-width: 430px;
  margin: 6px 0 0;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.footer-nav div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-nav span {
  margin-bottom: 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.footer-nav a,
.footer-project {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-nav a:hover,
.footer-project:hover {
  color: var(--ink);
}

.footer-admin-link {
  font-size: 12px;
  opacity: 0.62;
}

.footer-admin-link:hover {
  opacity: 1;
}

.footer-project::before {
  content: "→ ";
  color: var(--green);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 26px;
  border-top: 1px solid rgba(222, 216, 207, 0.72);
  font-size: 13px;
}

.back-to-top {
  position: fixed;
  right: clamp(16px, 4vw, 32px);
  bottom: clamp(16px, 4vw, 32px);
  z-index: 12;
  display: grid;
  place-items: center;
  width: 48px;
  min-height: 48px;
  padding: 0;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow: 0 16px 42px rgba(32, 35, 38, 0.18);
  color: #fff;
  font-size: 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--green);
}

@media (min-width: 921px) {
  :root {
    --max: 1180px;
  }

  body {
    font-size: 16px;
    line-height: 1.62;
  }

  .site-header {
    padding: 16px clamp(36px, 5vw, 68px);
  }

  .brand span {
    font-size: 17px;
  }

  .main-nav {
    gap: 20px;
    font-size: 14px;
  }

  .section {
    padding: clamp(74px, 7vw, 104px) clamp(36px, 5vw, 68px);
  }

  .intro-grid,
  .strategy-grid,
  .offer-grid,
  .offer-hero,
  .offer-detail-grid,
  .split,
  .trust-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
    gap: clamp(56px, 6vw, 92px);
  }

  h1,
  h2 {
    max-width: 680px;
    font-size: clamp(40px, 4.6vw, 60px);
    line-height: 1.04;
  }

  .intro h1 {
    max-width: 610px;
    font-size: clamp(42px, 4.7vw, 62px);
  }

  #einstieg h2 {
    max-width: 610px;
    font-size: clamp(38px, 4.2vw, 54px);
  }

  #referenzen h2 {
    max-width: 700px;
    font-size: clamp(30px, 3.4vw, 40px);
  }

  .lead {
    max-width: 560px;
    font-size: clamp(22px, 2.35vw, 29px);
  }

  .intro-copy,
  .text-stack,
  .offer-grid p,
  .portal-intro {
    font-size: 18px;
  }

  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
  }

  .service-grid article {
    min-height: 205px;
    padding: 22px;
  }

  .service-grid span {
    margin-bottom: 20px;
  }

  .feature-grid article {
    min-height: 205px;
    padding: 24px;
  }

  .usp-list li,
  .why-list li {
    min-height: 54px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .trade-cloud {
    max-width: 860px;
    margin-top: 24px;
  }

  .reference-card {
    min-height: 150px;
    padding: 15px;
  }

  .reference-card strong {
    font-size: 16px;
  }

  .contact-form {
    padding: 30px;
  }
}

@media (max-width: 920px) {
  .feature-grid,
  .reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .site-header:not(.subpage-header) {
    display: none;
  }

  .subpage-header {
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
  }

  .subpage-header .brand {
    min-width: 116px;
  }

  .subpage-header .brand span {
    font-size: 15px;
  }

  .subpage-header .brand small {
    font-size: 11px;
  }

  .subpage-header .main-nav {
    flex: 1;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    padding: 1px 0 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .subpage-header .main-nav::-webkit-scrollbar {
    display: none;
  }

  .subpage-header .main-nav a {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid rgba(222, 216, 207, 0.9);
    border-radius: 999px;
    background: rgba(255, 253, 250, 0.68);
    color: var(--ink);
    font-size: 13px;
    line-height: 1.1;
  }

  .hero-menu {
    align-items: start;
    justify-items: center;
    padding: max(12px, env(safe-area-inset-top)) 12px 12px;
  }

  .hero-menu-panel {
    width: min(100%, 440px);
    max-height: calc(100dvh - 24px);
    min-height: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(32, 35, 38, 0.22);
    transform: translateY(-18px);
    opacity: 0;
    transition: opacity 180ms ease, transform 220ms ease;
  }

  .hero-menu.is-open .hero-menu-panel,
  .hero-menu:target .hero-menu-panel {
    opacity: 1;
    transform: translateY(0);
  }

  .hero-menu-close {
    width: 42px;
    min-height: 42px;
    margin-bottom: 10px;
  }

  .hero-menu-panel a {
    min-height: 46px;
    font-size: 18px;
  }

  .main-nav {
    gap: 14px;
    font-size: 14px;
  }

  .intro-grid,
  .strategy-grid,
  .offer-grid,
  .offer-hero,
  .offer-detail-grid,
  .offer-columns,
  .split,
  .trust-grid,
  .contact-grid,
  .portal-grid,
  .primary-offer {
    grid-template-columns: 1fr;
  }

  .portal-task-list a {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .portal-task-list small {
    grid-column: 2;
  }

  .order-summary dl {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }

  .order-summary dd + dt {
    margin-top: 12px;
  }

  h1,
  h2 {
    font-size: 38px;
  }

  .intro-copy,
  .text-stack,
  .strategy-copy,
  .offer-grid p {
    font-size: 18px;
  }

  .feature-grid,
  .service-grid,
  .usp-list,
  .why-list {
    grid-template-columns: 1fr;
  }

  .reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reference-card {
    min-height: 150px;
    padding: 15px;
  }

  .reference-card strong {
    font-size: 16px;
  }

  .reference-card p {
    font-size: 13px;
  }

  .feature-grid article {
    min-height: auto;
  }

  .ai-finder {
    grid-template-columns: 1fr;
  }

  .ai-finder > div:first-child,
  .ai-problem-grid,
  .ai-result {
    grid-column: auto;
  }

  .ai-result {
    position: static;
    grid-row: auto;
  }

  .footer-inner,
  .footer-nav {
    grid-template-columns: 1fr;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    gap: 22px;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 520px) {
  .main-nav {
    width: 100%;
    justify-content: flex-start;
  }

  h1,
  h2 {
    font-size: 34px;
  }

  .reference-grid {
    grid-template-columns: 1fr;
  }
}
