/* site.css – gemeinsames Stylesheet (Startseite DE/EN/IT, Impressum). Showcasy-Design. */
/* ─────────────────────────────────────────────
   TOKENS  (Showcasy-Palette: dark default, light via data-theme="light")
   ───────────────────────────────────────────── */
:root {
  /* Dark = Standard */
  --bg:      #030712;
  --bg-2:    #111827;
  --line:    #1f2937;
  --line-2:  #374151;
  --muted-2: #4b5563;
  --muted:   #6b7280;
  --text-2:  #d1d5db;
  --text:    #ffffff;

  --font:  'Inter Tight', system-ui, sans-serif;
  --mono:  'Fragment Mono', ui-monospace, monospace;

  --max:   1280px;
  --pad:   clamp(20px, 5vw, 64px);
  --radius: 8px;
  --ease: cubic-bezier(.22,1,.36,1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg:      #ffffff;
  --bg-2:    #f9fafb;
  --line:    #e5e7eb;
  --line-2:  #d1d5db;
  --muted-2: #aeb2ba;
  --muted:   #6b7280;
  --text-2:  #374151;
  --text:    #030712;
  color-scheme: light;
}

/* ───────────── BASE ───────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: .1px;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
}

/* Buttons – Pill wie in Showcasy */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 40px;
  background: var(--text);
  color: var(--bg);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.btn:hover { transform: translateY(-2px); opacity: .9; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translate(2px,-2px); }

/* ───────────── NAV ───────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 20px; letter-spacing: -.3px; }
.logo img { height: 32px; width: auto; filter: brightness(0) invert(1); }   /* monochrom weiss */
:root[data-theme="light"] .logo img { filter: brightness(0); }                 /* monochrom schwarz */
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 16px; color: var(--text-2); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.lang { display: flex; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.lang a { padding: 4px 6px; border-radius: 4px; }
.lang a.on { color: var(--text); background: var(--bg-2); }
.nav .btn { padding: 11px 20px; font-size: 15px; }
@media (max-width: 860px) { .nav-links, .lang { display: none; } .nav .wrap { height: 72px; } }

/* ───────────── HERO ───────────── */
.hero { padding: clamp(64px, 10vw, 140px) 0 clamp(48px, 6vw, 96px); }
.hello { display: flex; align-items: center; gap: 10px; font-size: 22px; color: var(--text-2); margin-bottom: 28px; }
.hello .wave { display: inline-block; animation: wave 2.4s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave { 0%,60%,100% { transform: rotate(0) } 10% { transform: rotate(14deg) } 20% { transform: rotate(-8deg) } 30% { transform: rotate(14deg) } 40% { transform: rotate(-4deg) } 50% { transform: rotate(10deg) } }

h1.display {
  font-size: clamp(44px, 8vw, 102px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 500;
  max-width: 1120px;
}
h1.display .w { display: inline-block; opacity: 0; transform: translateY(28px); filter: blur(6px); }
h1.display.in .w { animation: wordIn .9s var(--ease) forwards; }
@keyframes wordIn { to { opacity: 1; transform: none; filter: blur(0); } }

.hero-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 72px);
}
.hero-foot p { max-width: 560px; font-size: 22px; line-height: 1.45; color: var(--text-2); letter-spacing: .1px; }
.hero-meta { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-meta li { font-family: var(--mono); font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.hero-meta li b { display: block; font-family: var(--font); font-size: 28px; font-weight: 500; letter-spacing: -.3px; color: var(--text); text-transform: none; }

/* ───────────── SECTION HEADS ───────────── */
section { padding: clamp(56px, 7vw, 112px) 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head h2 { font-size: clamp(32px, 4.2vw, 56px); letter-spacing: -0.03em; font-weight: 500; line-height: 1.1; }
.sec-head a { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; color: var(--text-2); white-space: nowrap; }
.sec-head a:hover { color: var(--text); }

/* ───────────── WORKS – Sticky Stack (Karten legen sich beim Scrollen übereinander) ───────────── */
.stack { --top: 108px; --step: 18px; position: relative; }
.card {
  position: sticky; top: calc(var(--top) + var(--i) * var(--step));
  margin-bottom: 40px;
  height: min(72vh, 720px);
  display: grid; grid-template-columns: 1fr 1.35fr;
  border-radius: 16px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line);
  transform-origin: top center;
  will-change: transform;
  transition: transform .1s linear, opacity .1s linear;
}
.card:last-child { margin-bottom: 0; }
.card-body { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px, 3vw, 44px); }
.card-body .mono { display: flex; justify-content: space-between; }
.card-body h3 { font-size: clamp(26px, 2.9vw, 40px); letter-spacing: -0.03em; font-weight: 500; line-height: 1.08; overflow-wrap: anywhere; }
.card-body p { margin-top: 16px; font-size: 18px; line-height: 1.5; color: var(--text-2); max-width: 420px; }
.card-body .btn { align-self: flex-start; margin-top: 24px; }
.card-media { position: relative; overflow: hidden; background: var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform: scale(1.02); transition: transform 1.2s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
@media (max-width: 860px) {
  .stack { --top: 88px; --step: 12px; }
  .card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: min(78vh, 720px); }
  .card-body p { display: none; }
  .card-body h3 { font-size: 26px; }
}

/* ───────────── ABOUT STATEMENT ───────────── */
.about { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.statement { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.22; letter-spacing: -0.02em; font-weight: 500; }
.statement span { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.tags li {
  font-family: var(--mono); font-size: 12px; letter-spacing: .5px; text-transform: uppercase;
  padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 40px; color: var(--text-2);
}
.about-side .portrait { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.about-side .portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter .6s; }
.about-side .portrait:hover img { filter: grayscale(0); }
.about-side p { margin-top: 24px; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.about-side .btn { margin-top: 24px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ───────────── TESTIMONIAL ───────────── */
.testi { border-top: 1px solid var(--line); }
.testi .label { margin-bottom: 40px; }
.testi blockquote {
  font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500;
  max-width: 1000px;
}
.testi blockquote::before { content: '“'; color: var(--muted-2); }
.testi blockquote::after  { content: '”'; color: var(--muted-2); }
.testi .who { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.testi .who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; filter: grayscale(100%); }
.testi .who b { display: block; font-size: 18px; font-weight: 500; letter-spacing: -.2px; }
.testi .who span { display: block; font-size: 15px; color: var(--muted); line-height: 1.4; }

/* ───────────── LIST ROWS (Services / Certs / Experience) ───────────── */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 64px 1fr 1fr; gap: 24px; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--line);
  transition: padding .4s var(--ease);
}
.row:hover { padding-left: 8px; }
.row .num { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .5px; }
.row h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; letter-spacing: -.3px; }
.row .sub { font-size: 16px; color: var(--muted); margin-top: 4px; }
.row ul { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 16px; color: var(--text-2); }
.row ul li::before { content: '– '; color: var(--muted-2); }
.row p { font-size: 16px; line-height: 1.6; color: var(--text-2); }
.row.two { grid-template-columns: 1fr auto; }
.row.two .right { font-family: var(--mono); font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); text-align: right; }
@media (max-width: 720px) { .row { grid-template-columns: 1fr; gap: 10px; } .row .num { display: none; } }

/* ───────────── CTA ───────────── */
.cta { border-top: 1px solid var(--line); padding: clamp(80px, 12vw, 180px) 0; }
.cta h2 {
  font-size: clamp(40px, 7.4vw, 96px); line-height: 1; letter-spacing: -0.04em;
  font-weight: 500; text-transform: uppercase; max-width: 1100px;
}
.cta h2 .o { color: var(--muted-2); }
.cta-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 72px); }
.cta .mail { font-size: clamp(22px, 3vw, 36px); letter-spacing: -.02em; font-weight: 500; display: inline-flex; align-items: baseline; gap: 4px; }
.cta .mail span { color: var(--muted); }
.cta .mail:hover span { color: var(--text); }
.cta p { font-size: 18px; color: var(--text-2); max-width: 460px; }

/* ───────────── FOOTER ───────────── */
footer { border-top: 1px solid var(--line); padding: 56px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.foot-grid ul li { margin-bottom: 10px; }
.foot-grid ul a { font-size: 16px; color: var(--text-2); }
.foot-grid ul a:hover { color: var(--text); }
.foot-brand .logo { margin-bottom: 16px; }
.foot-brand p { font-size: 16px; color: var(--muted); max-width: 320px; }
.foot-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.foot-bottom a:hover { color: var(--text); }
.theme-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: none; border: 1px solid var(--line-2); border-radius: 40px; padding: 6px 12px;
  font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px;
}
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ───────────── REVEAL ───────────── */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv, h1.display .w { opacity: 1; transform: none; filter: none; transition: none; animation: none; }
  .hello .wave { animation: none; }
}

/* ───────────── LEGAL (Impressum & Datenschutz) ───────────── */
.legal { padding: clamp(48px, 8vw, 112px) 0 clamp(64px, 8vw, 128px); }
.legal-wrap { max-width: 760px; margin-left: 0; }
.legal .mono { margin-bottom: 20px; }
.legal h1 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.035em; font-weight: 500; line-height: 1.05; margin-bottom: 48px; }
.legal h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.025em; font-weight: 500; margin: 64px 0 20px; padding-top: 32px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 20px; font-weight: 500; letter-spacing: -.2px; margin: 32px 0 8px; }
.legal p, .legal li { font-size: 17px; line-height: 1.6; color: var(--text-2); }
.legal p { margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; color: var(--text); }
