@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

/* ─────────────────────────────────────────
   VM 2026 — Designsystem
   Palette: warm off-white · tinte schwarz · akzent blau
   Type: Instrument Serif (headlines) + System-Sans (body)
───────────────────────────────────────── */
:root {
  --paper:   #faf9f7;
  --cream:   #f4f2ef;
  --white:   #ffffff;
  --ink:     #1a1a1a;
  --mid:     #5a5a5a;
  --muted:   #8a8a8a;
  --line:    rgba(26,26,26,.1);
  --line-hi: rgba(26,26,26,.18);
  --accent:  #1a5cff;
  --accent-s:#eef3ff;
  --r:       14px;
  --r-lg:    24px;
  --sans: -apple-system, "SF Pro Text", "Segoe UI", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── TOPBAR ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 56px);
  height: 68px;
  background: rgba(250,249,247,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
}

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

.topbar nav a {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  transition: color .18s ease;
}
.topbar nav a:hover { color: var(--ink); }

.topbar .langs { display: flex; align-items: center; }

/* Sprachumschalter */
.vm-lang { position: relative; }

.vm-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 700 12px var(--sans);
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .18s;
}
.vm-lang-btn:hover { border-color: var(--accent); }
.vm-arrow { opacity: .5; font-size: 11px; }

.vm-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 168px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 5px;
  box-shadow: 0 16px 40px rgba(26,26,26,.12);
  z-index: 200;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.vm-lang.open .vm-lang-menu { display: flex; }

.vm-lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font: 600 13px var(--sans);
  cursor: pointer;
  text-align: left;
}
.vm-lang-item:hover { background: var(--cream); }
.vm-lang-item.active { background: var(--accent-s); color: var(--accent); }
.vm-lang-item .vm-code { font-size: 11px; color: var(--muted); font-weight: 600; }
.vm-lang-item.active .vm-code { color: var(--accent); }

/* ── HERO ── */
.hero {
  padding: clamp(64px, 10vw, 112px) clamp(20px, 5vw, 56px) clamp(56px, 8vw, 96px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(46px, 6.5vw, 86px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -.025em;
  color: var(--ink);
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.lead {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--mid);
  line-height: 1.7;
  max-width: 560px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 600 15px var(--sans);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .18s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,26,26,.09); }

.btn.primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn.primary:hover { background: #2a2a2a; }

/* Portrait */
.portrait {
  position: relative;
  justify-self: end;
  width: min(100%, 340px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--cream);
  border: 1px solid var(--line);
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.portrait-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 650;
  color: var(--ink);
}

/* ── QUOTE / PROFIL ── */
.section {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.section-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.section h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 400;
  line-height: 1.07;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: 18px;
}

.section .lead { max-width: 680px; }

/* Pull-Quote */
.pull-quote {
  margin-top: 40px;
  padding: 28px 32px;
  border-left: 2px solid var(--accent);
  background: var(--accent-s);
  border-radius: 0 var(--r) var(--r) 0;
}
.pull-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -.015em;
}

/* Profil — 2-spaltig */
.grid2 {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

/* ── LEISTUNGEN ── */
.section.cream { background: var(--cream); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 40px;
}

.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(26,26,26,.08); }

.card-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
}

.card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

.card p {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.6;
  flex: 1;
}

/* ── DETAILS — CV & SKILLS ── */
.discover {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 36px;
}

.discover-card {
  min-height: 280px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--cream);
  transition: transform .22s ease, box-shadow .22s ease;
}
.discover-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(26,26,26,.08); }
.discover-card:first-child { background: var(--accent-s); }

.discover-card .service-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 20px;
}

.discover-card h3 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 12px;
}

.discover-card p {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 22px;
}

/* ── NEIRON PROJECT ── */
.project-card {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--cream);
}

.project-copy {
  padding: clamp(32px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-copy h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 400;
  color: var(--ink);
  margin: 16px 0 14px;
  letter-spacing: -.03em;
}
.project-copy p {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.65;
  max-width: 440px;
  margin-bottom: 22px;
}

.project-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 26px;
}
.project-facts span {
  padding: 6px 12px;
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  font-size: 12px;
  color: var(--mid);
  background: var(--white);
}

.app-showcase {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 55% 45%, rgba(26,92,255,.14), transparent 62%);
}

.app-shot {
  position: absolute;
  width: 190px;
  aspect-ratio: 390/844;
  overflow: hidden;
  border: 6px solid var(--white);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 22px 48px rgba(26,26,26,.18);
  margin: 0;
}
.app-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-shot-main   { z-index: 3; left: 36%; top: 44px;  transform: rotate(1.5deg); }
.app-shot-editor { z-index: 2; left: 8%;  top: 84px;  transform: rotate(-7.5deg) scale(.9); }
.app-shot-help   { z-index: 1; right: 0%; top: 80px;  transform: rotate(7.5deg) scale(.9); }

/* ── KONTAKT ── */
.contactgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input, textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r);
  background: var(--white);
  color: var(--ink);
  font: 15px var(--sans);
  transition: border-color .18s;
  outline: none;
}
input:focus, textarea:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { resize: vertical; min-height: 130px; }

.submit {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font: 600 15px var(--sans);
  cursor: pointer;
  transition: background .18s;
}
.submit:hover { background: #2a2a2a; }

.privacy-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
}

/* Formular-Status */
.vm-form-msg { display: none; padding: 10px 14px; border-radius: var(--r); font-size: 14px; }
.vm-form-msg.ok  { display: block; background: #dff0e8; color: #1a6637; }
.vm-form-msg.err { display: block; background: #fde8e4; color: #a32617; }

/* ── FOOTER ── */
footer {
  padding: 24px clamp(20px, 5vw, 56px);
  border-top: 1px solid var(--line);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer span { font-size: 13px; color: var(--muted); }

.legal-links {
  display: flex;
  gap: 20px;
}
.legal-links a { font-size: 13px; color: var(--muted); transition: color .18s; }
.legal-links a:hover { color: var(--ink); }

/* ── DIALOGE ── */
.profile-dialog {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(26,26,26,.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.profile-dialog.open { display: grid; }

.profile-dialog-panel {
  position: relative;
  width: min(900px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: 0 30px 80px rgba(26,26,26,.2);
}

.profile-dialog-close {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-hi);
  border-radius: 50%;
  background: var(--cream);
  font-size: 22px;
  cursor: pointer;
  color: var(--mid);
  display: grid;
  place-items: center;
  transition: background .18s;
  line-height: 1;
}
.profile-dialog-close:hover { background: var(--line); }

.dialog-head { padding-right: 56px; margin-bottom: 28px; }
.dialog-head .section-label { margin-bottom: 8px; }
.dialog-head h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.dialog-head p { font-size: 15px; color: var(--mid); margin-top: 8px; }

/* CV-Liste */
.cv-list { border-top: 1px solid var(--line); }

.cv-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.cv-row time {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--accent);
  padding-top: 3px;
}

.cv-row h3 {
  font-size: 17px;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 2px;
}

.cv-row strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  margin-bottom: 6px;
}

.cv-row p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* Skills-Grid */
.skill-dialog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.skill-group {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--cream);
}
.skill-group:first-child { background: var(--accent-s); }

.skill-group h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: .01em;
}

.skill-group ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-group li {
  padding: 5px 11px;
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  background: var(--white);
  font-size: 12px;
  color: var(--mid);
  font-weight: 500;
}

/* ── LEGAL SEITEN ── */
.legal-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 56px);
}
.legal-wrap h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 400;
  letter-spacing: -.03em;
  margin-bottom: 32px;
}
.legal-wrap h2 { font-size: 20px; font-weight: 650; margin: 32px 0 10px; }
.legal-wrap p  { font-size: 15px; color: var(--mid); line-height: 1.7; margin-bottom: 14px; }
.legal-wrap a  { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .hero-grid  { grid-template-columns: 1fr; }
  .portrait   { justify-self: start; width: min(280px, 100%); }
  .grid2      { grid-template-columns: 1fr; }
  .cards      { grid-template-columns: 1fr 1fr; }
  .discover   { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; }
  .app-showcase { min-height: 420px; }
  .contactgrid  { grid-template-columns: 1fr; }
  .cv-row       { grid-template-columns: 1fr; gap: 6px; }
  .skill-dialog-grid { grid-template-columns: 1fr; }
  .topbar nav { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(40px, 13vw, 58px); }
  .profile-dialog-panel { padding: 28px 20px; border-radius: 18px; }
  .profile-dialog { padding: 12px; }
  .app-shot { width: 148px; }
  .app-shot-main { left: 32%; top: 32px; }
  .app-showcase { min-height: 340px; }
  footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}
