:root {
  --paper: #f3efe7;
  --paper-soft: #faf8f3;
  --ink: #292621;
  --muted: #6d6860;
  --line: #d9d1c4;
  --wood: #3c3129;
  --teal: #2f6670;
  --teal-dark: #214c54;
  --white: #fff;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 20; padding: .7rem 1rem; background: var(--ink); color: var(--white); }
.skip-link:focus { top: 1rem; }
.site-header {
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; text-decoration: none; letter-spacing: -.02em; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 1.35rem; }
.site-header nav a, .site-footer nav a { text-decoration: none; color: var(--muted); }
.site-header nav a:hover, .site-footer nav a:hover { color: var(--ink); }
.section { width: min(calc(100% - 2.5rem), var(--max-width)); margin: 0 auto; }
.hero { min-height: 700px; padding: 5.5rem 0 6.5rem; display: grid; grid-template-columns: 1.06fr .76fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.hero-copy { max-width: 680px; }
.eyebrow { margin: 0 0 1rem; color: var(--teal-dark); font-size: .75rem; font-weight: 750; line-height: 1.35; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; line-height: 1.07; }
h1 { max-width: 790px; font-size: clamp(3.2rem, 7vw, 6.7rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 4.4rem); }
h3 { font-size: clamp(1.75rem, 2.7vw, 2.55rem); }
.lead { max-width: 660px; margin: 2rem 0 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: .7rem 1.15rem; border: 1px solid transparent; border-radius: 999px; font-weight: 700; line-height: 1.2; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover { background: var(--wood); }
.button-secondary { border-color: var(--line); background: transparent; }
.button-secondary:hover { background: var(--paper-soft); }
.button-light { background: var(--white); color: var(--ink); }
.portrait-wrap { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 180px 180px 24px 24px; background: var(--line); }
.portrait-wrap::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(41, 38, 33, .12); border-radius: inherit; pointer-events: none; }
.portrait-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.statement { padding: 7.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: .7fr 1.3fr; column-gap: 4rem; }
.statement .eyebrow { grid-row: 1 / 3; }
.statement h2 { max-width: 900px; }
.statement > p:last-child { max-width: 760px; margin: 2rem 0 0; color: var(--muted); font-size: 1.1rem; }
.projects { padding: 8rem 0; }
.section-heading { display: grid; grid-template-columns: 1.4fr .6fr; gap: 4rem; align-items: end; margin-bottom: 3rem; }
.section-heading > p { margin: 0; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.project-card { min-height: 340px; padding: clamp(1.5rem, 3vw, 2.35rem); border: 1px solid var(--line); border-radius: 20px; background: var(--project-tint, var(--paper-soft)); box-shadow: inset 0 4px 0 var(--project-color, var(--teal)); display: flex; flex-direction: column; }
.project-prime { --project-color: #2f6670; --project-tint: #edf5f4; }
.project-kontor { --project-color: #0f2e5d; --project-tint: #eef2f7; }
.project-startup { --project-color: #153e32; --project-tint: #edf4f0; }
.project-unterricht { --project-color: #183753; --project-tint: #eef3f6; }
.card-topline { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: auto; color: var(--project-color, var(--muted)); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.status { padding: .28rem .58rem; border: 1px solid var(--project-color, currentColor); border-radius: 999px; color: var(--white); background: var(--project-color, var(--teal)); font-size: .7rem; }
.project-card h3 { margin-top: 4rem; }
.project-card > p { max-width: 540px; margin: 1.2rem 0 1.5rem; color: var(--muted); }
.project-button { width: fit-content; margin-top: auto; padding: .66rem .9rem; border: 1px solid var(--project-color, var(--ink)); border-radius: 999px; color: var(--white); background: var(--project-color, var(--ink)); font-size: .86rem; font-weight: 750; line-height: 1.2; text-decoration: none; transition: transform .2s ease, opacity .2s ease; }
.project-button:hover { transform: translateY(-2px); }
.project-button-disabled { cursor: not-allowed; opacity: .58; }
.about { padding: 8rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; }
.about-copy { color: var(--muted); font-size: 1.1rem; }
.about-copy p:first-child { margin-top: 0; }
.path { padding: 0 0 8rem; }
.path > h2 { max-width: 740px; margin-bottom: 3rem; }
.path-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.path-list li { display: grid; grid-template-columns: 80px 1fr; gap: 1rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.path-number { color: var(--teal-dark); font-size: .82rem; font-weight: 750; letter-spacing: .08em; }
.path-list strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 500; }
.path-list p { margin: .35rem 0 0; color: var(--muted); }
.contact { margin-bottom: 2rem; padding: clamp(2rem, 5vw, 4.5rem); border-radius: 24px; background: var(--wood); color: var(--white); display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: end; }
.contact .eyebrow { color: #b7d4d6; }
.contact h2 { max-width: 780px; }
.contact p { max-width: 680px; margin: 1.5rem 0 0; color: rgba(255,255,255,.75); }
.site-footer { width: min(calc(100% - 2.5rem), var(--max-width)); margin: 0 auto; padding: 3rem 0; display: grid; grid-template-columns: 1fr auto; gap: 1rem 3rem; align-items: start; color: var(--muted); font-size: .88rem; }
.site-footer strong { color: var(--ink); }
.site-footer p { margin: .25rem 0 0; }
.site-footer > p { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.legal { max-width: 820px; padding: 6rem 0 8rem; }
.legal h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
.legal h2 { margin-top: 3rem; font-size: 1.65rem; }
.legal h3 { margin-top: 2rem; font-family: inherit; font-size: 1.08rem; font-weight: 750; letter-spacing: 0; }
.legal p, .legal li { color: var(--muted); }
.legal-notice { margin: 2rem 0 3rem; padding: 1.2rem; border-left: 4px solid var(--teal); background: var(--paper-soft); }
.legal-placeholder { color: #9f3e30; font-weight: 700; }
.legal-back { display: inline-block; margin-bottom: 2rem; color: var(--teal-dark); font-weight: 700; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }

@media (max-width: 820px) {
  .site-header { padding: 1.2rem 0; align-items: flex-start; }
  .site-header nav { justify-content: flex-end; gap: .7rem 1rem; font-size: .9rem; }
  .hero { min-height: auto; padding: 4rem 0 5rem; grid-template-columns: 1fr; }
  .hero-copy { order: 1; }
  .portrait-wrap { order: 2; width: min(100%, 520px); border-radius: 130px 130px 20px 20px; }
  .statement, .section-heading, .about, .contact { grid-template-columns: 1fr; gap: 2rem; }
  .statement .eyebrow { grid-row: auto; }
  .project-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer > p { grid-column: auto; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .site-header, .section, .site-footer { width: min(calc(100% - 1.5rem), var(--max-width)); }
  .site-header { display: grid; }
  .site-header nav { justify-content: flex-start; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.4rem); }
  .statement, .projects, .about { padding-top: 5rem; padding-bottom: 5rem; }
  .project-card { min-height: 310px; }
  .path-list li { grid-template-columns: 48px 1fr; }
  .contact { margin-bottom: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .project-button { transition: none; }
}
