:root {
  --ink: #16201c;
  --muted-ink: #56625d;
  --paper: #f7f8f4;
  --paper-strong: #ffffff;
  --line: #dfe5dc;
  --teal: #0f766e;
  --teal-dark: #0a4f4a;
  --lime: #b5d85b;
  --amber: #d99b33;
  --charcoal: #22312c;
  --shadow: 0 24px 70px rgba(22, 32, 28, 0.14);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 0;
  padding: 14px 32px;
  background: rgba(247, 248, 244, 0.9);
  border-bottom: 1px solid rgba(223, 229, 220, 0.8);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.footer-inner,
.trust-strip {
  display: flex;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  flex: 0 0 auto;
}

.brand-logo {
  width: 230px;
  height: 115px;
  object-fit: cover;
  object-position: center center;
}

.site-nav {
  gap: 30px;
  color: var(--muted-ink);
  font-size: 0.95rem;
}

.site-nav a,
.direct-mail,
.site-footer a {
  transition: color 160ms ease;
}

.site-nav a:hover,
.direct-mail:hover,
.site-footer a:hover {
  color: var(--teal);
}

.site-nav a.is-current {
  color: var(--ink);
  font-weight: 800;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: var(--paper-strong);
  background: var(--ink);
  border-radius: var(--radius);
  font-weight: 700;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(22, 32, 28, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(22, 32, 28, 0.06);
}

.lang-switch-btn {
  min-width: 42px;
  min-height: 34px;
  padding: 0 10px;
  color: var(--muted-ink);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.lang-switch-btn.is-active {
  color: var(--paper-strong);
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 78svh;
  isolation: isolate;
  display: flex;
  align-items: center;
  background-image: url("assets/workflow-automation-hero.png");
  background-position: center right;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(247, 248, 244, 0.98) 0%, rgba(247, 248, 244, 0.9) 37%, rgba(247, 248, 244, 0.28) 75%),
    linear-gradient(180deg, rgba(247, 248, 244, 0.5), rgba(247, 248, 244, 0.8));
}

.hero-content,
.section-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.hero-content {
  padding: 72px 0 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: 4.35rem;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.65rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 30px;
  color: var(--muted-ink);
  font-size: 1.18rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  color: var(--paper-strong);
  background: var(--teal);
  box-shadow: 0 14px 34px rgba(15, 118, 110, 0.22);
}

.button-primary:hover {
  background: var(--teal-dark);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(22, 32, 28, 0.16);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 1px;
  max-width: 760px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(22, 32, 28, 0.12);
  border-radius: var(--radius);
  background: rgba(22, 32, 28, 0.12);
  box-shadow: var(--shadow);
}

.hero-metrics div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.hero-metrics dt {
  margin-bottom: 4px;
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-metrics dd {
  margin: 0;
  font-weight: 750;
}

.intro-band,
.section,
.contact-section {
  padding: 88px 0;
}

#leistungen,
#prozess,
#kontakt {
  scroll-margin-top: 88px;
}

.intro-band {
  padding-top: 34px;
  background: var(--paper);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 42px;
  align-items: center;
}

.intro-lead {
  margin-bottom: 0;
  font-size: 1.36rem;
  line-height: 1.38;
}

.trust-strip {
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.trust-strip span {
  padding: 10px 13px;
  color: var(--charcoal);
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 750;
}

.section {
  background: var(--paper-strong);
}

.section.muted {
  background: #edf2ea;
}

.section-heading {
  max-width: 690px;
  margin-bottom: 34px;
}

.section-heading.compact {
  margin-bottom: 0;
}

.section-heading p,
.contact-copy p,
.usecase-item p,
.service-card p,
.timeline p {
  color: var(--muted-ink);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 254px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 32px;
  margin-bottom: 28px;
  color: var(--teal-dark);
  background: rgba(181, 216, 91, 0.45);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.split-layout,
.process-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

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

.usecase-item {
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(22, 32, 28, 0.09);
  border-radius: var(--radius);
}

.usecase-item p {
  margin-bottom: 0;
}

.timeline {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  background: var(--paper-strong);
}

.timeline span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--paper-strong);
  background: var(--charcoal);
  border-radius: 50%;
  font-weight: 900;
}

.timeline p {
  margin-bottom: 0;
}

.contact-section {
  color: var(--paper-strong);
  background:
    linear-gradient(135deg, rgba(22, 32, 28, 0.94), rgba(10, 79, 74, 0.92)),
    var(--charcoal);
}

.contact-copy {
  position: sticky;
  top: 104px;
}

.contact-copy .eyebrow {
  color: var(--lime);
}

.contact-copy p {
  max-width: 440px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.06rem;
}

.direct-mail {
  display: inline-flex;
  margin-top: 16px;
  color: var(--lime);
  font-weight: 850;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
  color: var(--ink);
  background: var(--paper-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row.full,
.consent,
.form-submit,
.form-status {
  grid-column: 1 / -1;
}

label {
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfcf9;
  border: 1px solid #cfd8ce;
  border-radius: var(--radius);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
}

.consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted-ink);
  font-size: 0.88rem;
  font-weight: 600;
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.form-submit {
  width: 100%;
  margin-top: 4px;
  border: 0;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--teal-dark);
  font-size: 0.92rem;
  font-weight: 750;
}

.site-footer {
  padding: 28px 0;
  background: #111815;
  color: rgba(255, 255, 255, 0.82);
}

.footer-inner {
  justify-content: space-between;
  gap: 18px;
}

.footer-inner p {
  margin-bottom: 0;
  font-weight: 850;
}

/* Portfolio */
.portfolio-page {
  background: #f3f5ef;
}

.portfolio-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 112px 0 104px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(237, 242, 234, 0.82)),
    #edf2ea;
}

.portfolio-hero-inner {
  position: relative;
  z-index: 1;
}

.portfolio-hero h1 {
  max-width: 900px;
  margin-bottom: 28px;
}

.portfolio-hero h1 span {
  color: var(--teal);
}

.portfolio-intro {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted-ink);
  font-size: 1.2rem;
}

.portfolio-orb {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.7;
}

.portfolio-orb-one {
  width: 360px;
  height: 360px;
  top: -130px;
  right: 7%;
  background: rgba(181, 216, 91, 0.35);
}

.portfolio-orb-two {
  width: 240px;
  height: 240px;
  right: 22%;
  bottom: -150px;
  background: rgba(15, 118, 110, 0.17);
}

.portfolio-section {
  padding: 88px 0 104px;
}

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

.portfolio-card {
  display: flex;
  min-height: 390px;
  padding: 32px;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(22, 32, 28, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(22, 32, 28, 0.12);
}

.portfolio-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.project-type {
  flex-shrink: 0;
  color: var(--muted-ink);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-card h2 {
  margin-bottom: 0;
  font-size: 2.15rem;
}

.portfolio-card p {
  max-width: 530px;
  margin-bottom: 0;
  color: var(--muted-ink);
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  color: var(--teal-dark);
  border-top: 1px solid var(--line);
  font-weight: 850;
}

.project-link span {
  font-size: 1.3rem;
  transition: transform 160ms ease;
}

.project-link:hover span {
  transform: translate(3px, -3px);
}

.portfolio-cta {
  padding: 78px 0;
  background: #e5ece1;
}

.portfolio-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.portfolio-cta h2 {
  max-width: 650px;
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 22px;
  }

  .site-nav {
    display: none;
  }

  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .card-grid,
  .intro-grid,
  .split-layout,
  .process-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .section-heading.compact,
  .contact-copy {
    position: static;
    margin-bottom: 26px;
  }

  .trust-strip {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 0;
    padding: 12px 16px;
  }

  .brand-logo {
    width: 170px;
    height: 85px;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 13px;
    font-size: 0.88rem;
  }

  .header-actions {
    gap: 8px;
  }

  .lang-switch-btn {
    min-width: 38px;
    min-height: 32px;
    padding: 0 9px;
  }

  .hero {
    min-height: auto;
    background-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(247, 248, 244, 0.99), rgba(247, 248, 244, 0.88)),
      linear-gradient(180deg, rgba(247, 248, 244, 0.52), rgba(247, 248, 244, 0.9));
  }

  .hero-content,
  .section-inner {
    width: min(100% - 32px, 1120px);
  }

  .hero-content {
    padding: 58px 0 42px;
  }

  h1 {
    font-size: 2.45rem;
    line-height: 1.08;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-copy {
    font-size: 1.05rem;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .header-cta {
    flex: 0 1 auto;
    max-width: 250px;
  }

  .hero-metrics,
  .card-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-metrics div {
    padding: 12px 10px;
  }

  .hero-metrics dt {
    font-size: 0.64rem;
  }

  .hero-metrics dd {
    font-size: 0.82rem;
    line-height: 1.22;
  }

  .intro-band,
  .section,
  .contact-section {
    padding: 62px 0;
  }

  .intro-band {
    padding-top: 28px;
  }

  .intro-lead {
    font-size: 1.18rem;
  }

  .service-card {
    min-height: auto;
  }

  .timeline li {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    padding: 20px;
  }

  .timeline span {
    width: 36px;
    height: 36px;
  }

  .contact-form {
    padding: 22px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .portfolio-hero {
    padding: 72px 0 68px;
  }

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

  .portfolio-card {
    min-height: 350px;
    padding: 25px;
    gap: 38px;
  }

  .portfolio-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
