:root {
  color-scheme: light;
  --ink: #14201c;
  --muted: #596862;
  --line: #d9e1dc;
  --paper: #fbfcfa;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-dark: #0b4d49;
  --warm: #b8652f;
  --soft: #edf4ef;
  --shadow: 0 18px 60px rgba(20, 32, 28, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 225, 220, 0.82);
  background: rgba(251, 252, 250, 0.93);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand strong {
  font-size: 0.98rem;
  line-height: 1.15;
}

.brand span {
  color: var(--muted);
  font-size: 0.82rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

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

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

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.language-switch button {
  min-width: 38px;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
}

.language-switch button[aria-pressed="true"] {
  background: var(--accent);
  color: #ffffff;
}

html[data-lang="de"] [lang="en"],
html[data-lang="en"] [lang="de"] {
  display: none !important;
}

.hero {
  min-height: calc(100svh - 68px);
  display: grid;
  align-items: stretch;
  background:
    linear-gradient(90deg, rgba(8, 20, 17, 0.86) 0%, rgba(8, 20, 17, 0.75) 36%, rgba(8, 20, 17, 0.16) 69%, rgba(8, 20, 17, 0.02) 100%),
    url("../assets/softwareapp-hero.png") center right / cover no-repeat;
}

.hero-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) 0 42px;
  display: grid;
  align-content: center;
}

.hero-content {
  max-width: 680px;
  color: white;
}

.eyebrow {
  margin: 0 0 18px;
  color: #bfe5dc;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.7rem, 7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0;
  max-width: 11ch;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2.5vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: #ffffff;
  color: #10201b;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.button.dark {
  background: var(--ink);
  color: #ffffff;
}

.hero-meta {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.94rem;
  font-weight: 700;
}

.hero-meta > span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.hero-meta > span::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bfe5dc;
  content: "";
  box-shadow: 0 0 0 4px rgba(191, 229, 220, 0.1);
}

main {
  overflow: hidden;
}

section {
  padding: clamp(58px, 8vw, 96px) 0;
}

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

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 740px;
  margin-bottom: 34px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: 0;
}

[id] {
  scroll-margin-top: 96px;
}

.section-heading p,
.muted {
  color: var(--muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.contact-panel,
.legal-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(20, 32, 28, 0.04);
}

.service-card {
  min-height: 260px;
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 18px;
}

.icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent-dark);
}

.icon svg {
  width: 23px;
  height: 23px;
  stroke-width: 2;
}

h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

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

.projects {
  background: #ffffff;
}

.page-section {
  min-height: calc(100svh - 68px);
}

.page-section h1 {
  max-width: 760px;
  color: var(--ink);
}

.page-eyebrow {
  color: var(--accent-dark);
}

.project-hero {
  position: relative;
  min-height: auto;
  padding-bottom: clamp(68px, 9vw, 108px);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(184, 101, 47, 0.08)),
    #f8fbf8;
}

.project-hero h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 6vw, 4.7rem);
}

.project-hero-layout,
.split-section,
.project-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.project-lead {
  max-width: 780px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.5vw, 1.28rem);
}

.project-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.project-preview > a {
  padding: 8px 11px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.project-preview > a:hover,
.project-preview > a:focus-visible {
  border-color: rgba(15, 118, 110, 0.42);
  background: #ffffff;
  outline: none;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
  transform: translateX(-50%);
}

.scroll-cue::after {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-2px);
}

.button.outline {
  border-color: var(--ink);
  color: var(--ink);
}

.project-status,
.stack-panel {
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.project-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 22px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

.project-status h2,
.stack-panel h3 {
  margin-bottom: 22px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.1;
}

.project-status dl,
.stack-panel dl {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.project-status dl div,
.stack-panel dl div {
  padding: 16px;
  background: #f8fbf8;
}

.project-status dt,
.stack-panel dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-status dd,
.stack-panel dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.funding-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf8;
}

.funding-head,
.funding-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.funding-head {
  margin-bottom: 14px;
}

.funding-head strong {
  color: var(--ink);
}

.funding-head > span,
.funding-stats {
  color: var(--muted);
  font-size: 0.92rem;
}

.funding-progress {
  height: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #d9e1dc;
}

.funding-progress span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--warm));
}

.funding-stats {
  margin-bottom: 14px;
}

.funding-updated {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.why-section {
  background: #ffffff;
}

.why-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.why-copy h2 {
  margin-bottom: 18px;
}

.why-copy > p {
  color: var(--muted);
}

.why-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.why-points article {
  min-height: 158px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf8;
}

.why-points strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.why-points span {
  color: var(--muted);
}

.project-detail {
  padding: clamp(58px, 8vw, 96px) 0;
}

.muted-band {
  background: #eef3ef;
}

.problem-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: stretch;
}

.problem-copy {
  display: flex;
  flex-direction: column;
}

.problem-copy h2 {
  margin-bottom: 18px;
}

.problem-copy p {
  color: var(--muted);
}

.problem-highlight {
  margin-top: auto;
  padding: 22px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(184, 101, 47, 0.06)),
    #f8fbf8;
  color: var(--muted);
}

.problem-highlight strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.issue-list,
.feature-grid {
  display: grid;
  gap: 14px;
}

.feature-tile {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.issue-list {
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.issue-list article {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 18px;
  padding: 24px;
  background: #ffffff;
}

.issue-number {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 900;
}

.issue-list h3,
.feature-tile h3 {
  margin-bottom: 9px;
}

.issue-list p,
.feature-tile p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.feature-tile {
  min-height: 190px;
}

.mvp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mvp-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.mvp-panel h3 {
  margin-bottom: 18px;
}

.mvp-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mvp-panel li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.mvp-panel li::before {
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
}

.in-scope {
  border-top: 4px solid var(--accent);
}

.later-scope {
  border-top: 4px solid var(--warm);
}

.out-scope {
  border-top: 4px solid #6b7280;
}

.in-scope li::before {
  background: var(--accent);
}

.later-scope li::before {
  background: var(--warm);
}

.out-scope li::before {
  background: #6b7280;
}

.funding-section {
  background: #f8fbf8;
}

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

.funding-tiers article {
  min-height: 236px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.funding-tiers article > span {
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 900;
}

.funding-tiers h3 {
  margin-bottom: 8px;
}

.funding-tiers strong {
  display: block;
  margin-bottom: 12px;
  color: var(--warm);
  font-size: 1.05rem;
}

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

.cta-band {
  background: #f8fbf8;
}

.project-cta {
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.project-cta h2 {
  margin-bottom: 12px;
}

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

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
}

.legal-note {
  padding-top: 24px;
  background: #ffffff;
}

.legal-note p {
  max-width: 900px;
  color: var(--muted);
  font-size: 0.94rem;
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
  align-items: stretch;
}

.project-card {
  min-height: 300px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.featured-project {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(184, 101, 47, 0.08)),
    #f8fbf8;
}

.code-card {
  background: #f3f7f4;
}

.project-kicker {
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.08;
}

.project-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.text-link {
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.process {
  background: #eef3ef;
}

.process-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.process-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.process-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 22px;
  background: #ffffff;
}

.process-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #17352f;
  color: #ffffff;
  font-weight: 900;
}

.process-item p {
  margin: 7px 0 0;
  color: var(--muted);
}

.contact {
  background:
    linear-gradient(110deg, rgba(15, 118, 110, 0.11), rgba(184, 101, 47, 0.08)),
    var(--paper);
}

.contact-panel {
  padding: clamp(26px, 5vw, 46px);
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  margin-bottom: 14px;
}

.contact-details {
  display: grid;
  gap: 12px;
}

.detail {
  padding: 15px 16px;
  border-radius: 8px;
  background: #f3f7f4;
}

.detail strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.86rem;
  color: var(--muted);
}

.detail a {
  color: var(--accent-dark);
  font-weight: 800;
}

.email-address {
  display: inline-flex;
  margin-top: 14px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}

.legal {
  background: #ffffff;
}

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

.legal-panel {
  padding: 24px;
}

.legal-panel h2 {
  font-size: 1.55rem;
  margin-bottom: 16px;
}

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

address {
  font-style: normal;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.93rem;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .contact-link {
    min-width: max-content;
  }

  .hero {
    min-height: 720px;
    background:
      linear-gradient(180deg, rgba(8, 20, 17, 0.9) 0%, rgba(8, 20, 17, 0.78) 51%, rgba(8, 20, 17, 0.18) 100%),
      url("../assets/softwareapp-hero.png") center bottom / cover no-repeat;
  }

  h1 {
    max-width: 100%;
  }

  .services-grid,
  .feature-grid,
  .funding-tiers,
  .mvp-grid,
  .project-layout,
  .project-hero-layout,
  .problem-section,
  .why-layout,
  .why-points,
  .process-layout,
  .project-cta,
  .split-section,
  .contact-panel,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-content: flex-start;
  }

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

  .process-item {
    grid-template-columns: 52px 1fr;
    padding: 18px;
  }
}

@media (max-width: 560px) {
  .nav-links {
    font-size: 0.88rem;
  }

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

  .hero-meta {
    margin-top: 34px;
  }
}
