:root {
  color-scheme: light;
  --page: #f6f3ed;
  --surface: #fffdfa;
  --surface-soft: #ece9e0;
  --ink: #171717;
  --muted: #66665e;
  --line: #ded8ca;
  --warm: #c96438;
  --green: #2f6f62;
  --blue: #2a84ce;
  --lime: #c4f000;
  --cyan: #47dde6;
  --shadow: 0 22px 55px rgba(34, 28, 18, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(135deg, rgba(42, 132, 206, 0.08), transparent 34rem),
    linear-gradient(315deg, rgba(196, 240, 0, 0.08), transparent 26rem),
    var(--page);
}

a {
  color: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 34px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
  min-height: 330px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 253, 250, 0.95), rgba(255, 253, 250, 0.68)),
    url("assets/project-hanau-help-ai.webp") center / cover;
  overflow: hidden;
}

.hero-copy {
  align-self: end;
  max-width: 760px;
}

.eyebrow,
.trust-kicker,
.project-meta {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--warm);
}

h1 {
  max-width: 840px;
  margin: 12px 0 18px;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.intro {
  max-width: 680px;
  margin: 0;
  color: #34342f;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.trust-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 230px;
  padding: 26px;
  border: 1px solid rgba(23, 23, 23, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.9);
  backdrop-filter: blur(18px);
}

.trust-kicker {
  color: var(--green);
}

.trust-main {
  margin: 12px 0 10px;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
}

.trust-copy {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

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

.project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(23, 23, 23, 0.26);
  box-shadow: var(--shadow);
}

.project-card:focus-visible {
  outline: 3px solid rgba(42, 132, 206, 0.38);
  outline-offset: 3px;
}

.project-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--surface-soft);
}

.project-preview {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface-soft);
}

.warteliste-badge {
  position: absolute;
  z-index: 1;
  display: block;
  aspect-ratio: 1;
  border-radius: 18%;
  background: #ffffff url("assets/warteliste-logo-1.svg") center / 72% auto no-repeat;
  box-shadow: 0 10px 22px rgba(8, 39, 66, 0.14);
  pointer-events: none;
}

.warteliste-badge--main {
  top: 7.8%;
  left: 5.1%;
  width: 7.7%;
}

.warteliste-badge--screen {
  top: 31.4%;
  left: 30.8%;
  width: 2.8%;
  background-size: 70% auto;
  box-shadow: 0 3px 8px rgba(8, 39, 66, 0.1);
}

.project-content {
  display: grid;
  gap: 9px;
  padding: 24px;
}

.project-meta {
  color: var(--muted);
}

.warteliste .project-meta {
  color: var(--blue);
}

.skill-compass .project-meta {
  color: var(--green);
}

.suchthilfe .project-meta {
  color: #7d5298;
}

.hanau .project-meta {
  color: #177f87;
}

.project-title {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.08;
}

.project-description {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.project-link {
  width: fit-content;
  margin-top: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #22221f;
  background: #f7f4ed;
  font-weight: 800;
}

.project-card:hover .project-link,
.project-card:focus-visible .project-link {
  border-color: rgba(23, 23, 23, 0.32);
  background: #ffffff;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a,
.back-link {
  text-underline-offset: 0.18em;
}

.legal-shell {
  max-width: 920px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

.legal-card {
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.92);
}

.legal-card h1 {
  margin-bottom: 24px;
  font-size: 3.2rem;
  line-height: 1.05;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.legal-intro {
  color: var(--muted);
  font-weight: 700;
}

.legal-section {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.legal-section p {
  max-width: 720px;
  margin: 0;
  color: #34342f;
  font-size: 1rem;
  line-height: 1.65;
}

.legal-section p + p {
  margin-top: 12px;
}

@media (max-width: 860px) {
  .site-shell {
    width: min(100% - 22px, 620px);
    padding-top: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 28px;
  }

  .trust-panel {
    min-height: auto;
  }

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

@media (max-width: 480px) {
  .site-shell {
    width: calc(100% - 16px);
  }

  .hero,
  .project-content,
  .trust-panel,
  .legal-card {
    padding: 20px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .legal-card h1 {
    font-size: 1.7rem;
  }

  .trust-main {
    font-size: 1.25rem;
  }
}
