:root {
  --ink: #25313a;
  --muted: #66717a;
  --charcoal: #3f4549;
  --charcoal-deep: #303538;
  --pale: #e7f1f8;
  --paper: #ffffff;
  --line: #d8dde0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.58;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  color: #fff;
  background: rgba(48, 53, 56, 0.96);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.16);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.wordmark {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: clamp(18px, 3vw, 34px);
}

.site-header nav a {
  font-size: 0.9rem;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  text-decoration: underline;
}

.hero {
  position: relative;
  min-height: calc(82vh - 64px);
  color: #fff;
  background-image: url("images/Photo/weitsicht.jpg");
  background-position: center;
  background-size: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(22, 30, 35, 0.76) 0%,
    rgba(22, 30, 35, 0.42) 42%,
    rgba(22, 30, 35, 0.05) 72%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: calc(82vh - 64px);
  flex-direction: column;
  justify-content: center;
  padding-bottom: 8vh;
}

.hero h1 {
  max-width: 950px;
  margin: 0;
  font-size: clamp(3.3rem, 8vw, 7.2rem);
  font-weight: 600;
  letter-spacing: 0.018em;
  line-height: 0.98;
}

.hero p {
  max-width: 650px;
  margin: 32px 0 0;
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  line-height: 1.35;
}

.section {
  padding: 78px 0;
}

.section h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  font-weight: 600;
  letter-spacing: 0.018em;
  line-height: 1.08;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-intro {
  padding-bottom: 48px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 7vw, 82px);
  margin-top: 48px;
  font-size: 1.08rem;
}

.intro-grid p {
  margin: 0;
}

.projects-section {
  padding-top: 0;
  padding-bottom: 96px;
}

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

.project-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid #e2e5e7;
  border-radius: 4px;
  background: #f5f6f7;
  box-shadow: 0 4px 16px rgba(34, 46, 54, 0.07);
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 320ms ease;
}

.project-card:hover img {
  transform: scale(1.025);
}

.project-card figcaption {
  min-height: 58px;
  padding: 12px 14px 14px;
  color: #465159;
  font-size: 0.88rem;
  line-height: 1.35;
}

.about-section {
  background: var(--pale);
}

.about-section h2 {
  margin-bottom: 46px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 30px;
}

.profile-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(20px, 3.5vw, 40px);
  border: 1px solid rgba(75, 94, 108, 0.13);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.58);
}

.profile-portrait {
  width: min(100%, 420px);
  margin: 0 auto 28px;
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  object-fit: cover;
  filter: grayscale(100%);
}

.profile-card h3 {
  margin: 0;
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  font-weight: 600;
  text-align: center;
}

.profile-email {
  display: block;
  margin: 8px 0 30px;
  color: var(--charcoal);
  text-align: center;
}

.profile-card ul {
  margin: 0;
  padding-left: 1.25rem;
}

.profile-card li + li {
  margin-top: 12px;
}

.profile-card li a {
  font-weight: inherit;
  text-decoration-line: underline;
  text-decoration-color: rgba(63, 69, 73, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.profile-card li a:hover,
.profile-card li a:focus-visible {
  text-decoration-color: currentColor;
}

.linkedin-link {
  width: 34px;
  margin: auto auto 0;
  padding-top: 30px;
}

.linkedin-link img {
  width: 34px;
  height: 34px;
}

.legal-links {
  color: var(--charcoal);
  background: #fff;
}

.legal-links .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding-block: 38px;
}

.legal-links a {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  text-decoration: underline;
}

.legal-page-header {
  padding: 72px 0 62px;
  border-bottom: 1px solid var(--line);
  background: #f5f6f6;
}

.legal-page-header h1 {
  margin: 0;
  color: var(--charcoal);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.02;
}

.legal-section {
  scroll-margin-top: 76px;
  padding: 68px 0;
}

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

.legal-copy {
  width: min(920px, calc(100% - 40px));
  overflow-wrap: anywhere;
}

.legal-copy h2 {
  margin: 0 0 38px;
  color: var(--charcoal);
  font-size: clamp(1.85rem, 3.5vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.14;
}

.legal-copy a {
  color: var(--charcoal);
}

.site-footer {
  color: #fff;
  background: var(--charcoal);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 56px;
  min-height: 245px;
  padding-block: 48px;
}

.footer-logo {
  width: min(100%, 400px);
}

.site-footer address {
  font-style: normal;
}

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

  .profile-grid {
    gap: 20px;
  }
}

@media (max-width: 740px) {
  .header-inner {
    min-height: 58px;
  }

  .site-header nav {
    gap: 16px;
  }

  .site-header nav a:first-child {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 68vh;
  }

  .hero-content {
    padding-bottom: 4vh;
  }

  .section {
    padding: 58px 0;
  }

  .legal-page-header,
  .legal-section {
    padding-block: 52px;
  }

  .intro-grid,
  .profile-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    margin-top: 34px;
  }

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

  .footer-grid {
    gap: 38px;
  }
}

@media (max-width: 540px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .wordmark {
    font-size: 0.95rem;
  }

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

  .project-card img {
    aspect-ratio: 3 / 2;
  }

  .project-card figcaption {
    min-height: auto;
  }
}

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

  .project-card img {
    transition: none;
  }
}
