:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #edf4f1;
  --text: #1f2933;
  --muted: #62717a;
  --line: #d6dde0;
  --green: #2f765f;
  --green-dark: #1f4f41;
  --blue: #245c84;
  --amber: #a46b2d;
  --shadow: 0 18px 50px rgba(31, 41, 51, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  background: rgba(246, 248, 251, 0.88);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.header-actions,
.language-switcher {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 0.96rem;
  font-weight: 750;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--green-dark);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.nav {
  gap: 6px;
  font-size: 0.92rem;
  color: var(--muted);
}

.header-actions {
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}

.nav a {
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--surface-soft);
  color: var(--text);
  outline: none;
}

.language-switcher {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.language-switcher button {
  min-width: 38px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
}

.language-switcher button:hover,
.language-switcher button:focus-visible,
.language-switcher button.active {
  background: var(--green-dark);
  color: #fff;
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  width: min(1160px, calc(100% - 32px));
  min-height: clamp(440px, 58vh, 660px);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 112px) 0 clamp(34px, 5vw, 64px);
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(4.2rem, 12vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
}

.hero-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.hero-project {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 104px;
  padding: 20px;
  background: var(--surface);
}

.hero-project:hover,
.hero-project:focus-visible {
  background: var(--surface-soft);
  outline: none;
}

.hero-project-name {
  display: block;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 850;
  line-height: 1.1;
}

.hero-project-type {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: right;
}

.projects-band {
  padding: 46px 0 74px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.section-heading,
.project-grid {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

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

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(31, 41, 51, 0.08);
}

.project-image {
  display: grid;
  place-items: center;
  min-height: 320px;
  overflow: hidden;
  background: #eaf0f3;
}

.project-image:hover img,
.project-image:focus-visible img {
  transform: scale(1.025);
}

.project-image:focus-visible {
  outline: 3px solid rgba(47, 118, 95, 0.34);
  outline-offset: -3px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.project-image-phone {
  background: #eef3f2;
}

.project-image-phone img {
  width: min(58%, 310px);
  height: 420px;
  object-fit: cover;
  object-position: top;
  border: 1px solid rgba(31, 41, 51, 0.1);
  border-radius: 28px;
  box-shadow: 0 18px 36px rgba(31, 41, 51, 0.16);
}

.project-image-wide img {
  object-position: center;
}

.project-image-einkauf {
  background: linear-gradient(135deg, #e7f1f6 0%, #f8fbfc 100%);
}

.project-image-einkauf img {
  width: min(42%, 160px);
  height: auto;
  border-radius: 30px;
  box-shadow: 0 18px 34px rgba(36, 92, 132, 0.18);
}

.project-content {
  padding: 24px;
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.project-status {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  letter-spacing: 0;
}

.project-content h3 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.project-content p {
  min-height: 72px;
  margin: 16px 0 22px;
  color: var(--muted);
  font-size: 1rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--green);
  border-radius: 8px;
  color: var(--green-dark);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.button-link:hover,
.button-link:focus-visible {
  background: var(--green-dark);
  color: #fff;
  outline: none;
}

.project-card-done .button-link {
  border-color: var(--amber);
  color: #70471d;
}

.project-card-done .button-link:hover,
.project-card-done .button-link:focus-visible {
  background: #70471d;
  color: #fff;
}

.project-card-einkauf .button-link {
  border-color: var(--blue);
  color: var(--blue);
}

.project-card-einkauf .button-link:hover,
.project-card-einkauf .button-link:focus-visible {
  background: var(--blue);
  color: #fff;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 36px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--green-dark);
  font-weight: 750;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-actions {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
  }

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

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-project {
    min-height: 88px;
  }

  .section-heading {
    display: block;
  }

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

  .project-image {
    min-height: 260px;
  }
}

@media (max-width: 520px) {
  .site-header,
  .hero,
  .section-heading,
  .project-grid,
  .site-footer {
    width: min(100% - 24px, 1160px);
  }

  .nav a {
    padding: 8px;
  }

  .language-switcher {
    width: 100%;
  }

  .language-switcher button {
    flex: 1;
  }

  h1 {
    font-size: clamp(3.35rem, 18vw, 4.8rem);
  }

  .project-content {
    padding: 20px;
  }

  .project-content p {
    min-height: auto;
  }

  .button-link {
    width: 100%;
    justify-content: center;
  }
}
