*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f0ede6;
  --text: #1a1a1a;
  --red: #d4381a;
  --muted: #8a8480;
  --border: rgba(26,26,26,0.12);
  --serif: 'DM Serif Display', serif;
  --sans: 'Lato', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--red);
  text-decoration: none;
}
nav ul { list-style: none; display: flex; align-items: center; gap: 2.5rem; }
nav a {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
nav a:hover, nav a.active { color: var(--red); }

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

.lang-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s;
}
.lang-btn:hover { border-color: var(--red); color: var(--red); }

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  margin-top: 5rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links { display: flex; gap: 2rem; align-items: center; }
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--red); }

/* PAGE WRAP */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 7rem 2rem 5rem;
}

.page-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--red);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 1rem;
}
.page-intro {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 4rem;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--red);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4rem 0;
}

/* HERO */
.hero-section {
  padding-top: 64px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-bottom: 4rem;
}
.hero-text { padding-top: 3rem; padding-bottom: 1.5rem; }
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.hero-name {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.05;
  color: var(--red);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hero-tagline {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 300;
  color: var(--text);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.75;
}
.hero-animation { display: flex; justify-content: center; width: 100%; }
#camCanvas { width: 100%; max-width: 380px; display: block; height: auto; }
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--red);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 0.75rem 1.6rem;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  transition: opacity 0.2s, transform 0.15s;
}
.hero-cta-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.service-box {
  border: 1.5px solid var(--red);
  border-radius: 12px;
  padding: 2rem;
}
.service-box-number {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.service-box h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.7rem;
}
.service-box p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.2rem;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tag {
  font-size: 0.75rem;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}

/* EXPERIENCE */
.experience-list { display: flex; flex-direction: column; gap: 2.5rem; }
.exp-item { display: grid; grid-template-columns: 180px 1fr; gap: 2rem; }
.exp-period { font-size: 0.78rem; color: var(--muted); }
.exp-company { font-size: 0.78rem; color: var(--muted); font-style: italic; margin-top: 0.2rem; }
.exp-content h3 { font-family: var(--serif); font-size: 1.1rem; color: var(--text); margin-bottom: 0.5rem; }
.exp-content ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.exp-content ul li {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
}
.exp-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 0.7rem;
  top: 0.3rem;
}

/* BADGES */
.badges-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.badge {
  display: inline-block;
  border: 1.5px solid var(--red);
  color: var(--red);
  font-size: 0.82rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
}

/* WORK */
.work-list { display: flex; flex-direction: column; }
.work-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.work-item:first-child { border-top: 1px solid var(--border); }
.work-sector { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-bottom: 0.5rem; font-weight: 700; }
.work-client { font-family: var(--serif); font-size: 1.3rem; color: var(--text); margin-bottom: 0.4rem; }
.work-role { font-size: 0.9rem; font-weight: 300; color: var(--muted); line-height: 1.6; }
.work-meta { text-align: right; flex-shrink: 0; }
.work-period { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.6rem; display: block; }
.work-link { font-size: 0.78rem; color: var(--red); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.work-link:hover { border-color: var(--red); }

.web-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.web-item { border: 1.5px solid var(--border); border-radius: 12px; padding: 1.5rem; transition: border-color 0.2s; }
.web-item:hover { border-color: var(--red); }
.web-item a { text-decoration: none; color: inherit; }
.web-name { font-family: var(--serif); font-size: 1.05rem; color: var(--text); }
.web-desc { font-size: 0.85rem; font-weight: 300; color: var(--muted); line-height: 1.55; margin-top: 0.4rem; }
.web-url { font-size: 0.75rem; color: var(--red); margin-top: 0.8rem; display: block; }

/* ABOUT */
.about-hero { display: grid; grid-template-columns: 340px 1fr; gap: 5rem; align-items: start; margin-bottom: 5rem; }
.about-photo { position: sticky; top: 90px; }
.about-photo img { width: 100%; border-radius: 4px; display: block; }
.about-tagline { font-family: var(--serif); font-size: clamp(1.6rem, 2.5vw, 2.2rem); color: var(--red); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 2.5rem; }
.about-body p { font-size: 1.05rem; font-weight: 300; line-height: 1.85; color: var(--text); margin-bottom: 1.4rem; }
.about-body p.statement { font-family: var(--serif); font-size: 1.2rem; color: var(--text); font-weight: 400; line-height: 1.6; }
.about-body p.closing { font-size: 0.95rem; color: var(--muted); font-style: italic; margin-top: 2.5rem; }
.about-meta { display: flex; gap: 3rem; flex-wrap: wrap; padding-top: 2.5rem; border-top: 1px solid var(--border); margin-top: 3rem; }
.about-meta-label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
.about-meta-value { font-size: 0.92rem; color: var(--text); }

/* LEGAL */
.legal-wrap { max-width: 780px; margin: 0 auto; padding: 7rem 2rem 5rem; }
.anchor-nav { display: flex; gap: 1.5rem; margin-bottom: 4rem; flex-wrap: wrap; }
.anchor-nav a { font-size: 0.82rem; color: var(--red); text-decoration: none; border-bottom: 1px solid var(--red); padding-bottom: 1px; }
.legal-section { margin-bottom: 4rem; }
.legal-section h1 { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--red); margin-bottom: 2rem; }
.legal-section h2 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 2.5rem; margin-bottom: 0.8rem; }
.legal-section h3 { font-size: 0.85rem; font-weight: 700; color: var(--text); margin-top: 1.5rem; margin-bottom: 0.5rem; }
.legal-section p { font-size: 0.9rem; font-weight: 300; color: var(--text); line-height: 1.75; margin-bottom: 0.8rem; }
.address-block { font-size: 0.9rem; font-weight: 300; line-height: 1.9; color: var(--text); margin-bottom: 1rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
  #camCanvas { max-width: 300px; }
  .about-hero { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo { position: static; max-width: 260px; }
  .exp-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .work-item { grid-template-columns: 1fr; gap: 0.8rem; }
  .work-meta { text-align: left; }
  .about-meta { gap: 1.5rem; }
  nav ul { gap: 1.2rem; }
  nav a { font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
