/* stsz.de – Szomraky Consulting
   Calm, classic layout: warm paper background, deep navy from the logo, Museo for headings. */

:root {
  --paper: #fbfaf7;
  --paper-2: #f3f1ec;
  --card: #ffffff;
  --ink: #1f1f27;
  --muted: #5d6270;
  --faint: #8a8f9b;
  --navy: #170f49;
  --navy-2: #2a2370;
  --line: #e4e1da;
  --line-strong: #cfcbc2;
  --gold: #a8875a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 15, 73, .04), 0 8px 28px rgba(23, 15, 73, .06);
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Museo-300", Georgia, "Times New Roman", serif;
  --max: 1100px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration-color: rgba(23, 15, 73, .3); text-underline-offset: 3px; }
a:hover { color: var(--navy-2); text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 250, 247, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.topbar .brand img { height: 38px; width: auto; }
.topbar nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.topbar nav a { color: var(--muted); text-decoration: none; letter-spacing: .01em; }
.topbar nav a:hover { color: var(--navy); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px; border-radius: 999px;
  font: 500 15px/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.btn-primary:hover { background: var(--navy-2); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-1px); }
.topbar .btn { padding: 9px 16px; font-size: 14px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px; }
.topbar nav .lang-switch a {
  padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; line-height: 1;
  color: var(--muted); text-decoration: none;
}
.topbar nav .lang-switch a[aria-current] { background: var(--navy); color: #fff; }
.topbar nav .lang-switch a:not([aria-current]):hover { color: var(--navy); background: var(--paper-2); }
.topbar nav a.btn-primary { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 96px;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(23, 15, 73, .06), transparent 70%),
    radial-gradient(800px 420px at -10% 110%, rgba(168, 135, 90, .08), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1fr 300px; gap: 72px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.hero h1 {
  font: 300 clamp(44px, 6.4vw, 76px)/1.02 var(--display);
  color: var(--navy); margin: 0 0 22px; letter-spacing: -.01em;
}
.hero .headline { font: 300 clamp(20px, 2.2vw, 25px)/1.45 var(--display); color: var(--ink); margin: 0 0 14px; max-width: 640px; }
@media (min-width: 821px) { .hero .headline .seg { white-space: nowrap; } } /* keep each title on one line */
.hero .subline { color: var(--muted); font-size: 15.5px; margin: 0 0 30px; }

.status {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px 8px 12px; font-size: 14.5px; color: var(--ink); margin-bottom: 30px;
  box-shadow: var(--shadow);
}
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: #3f9c6d; box-shadow: 0 0 0 4px rgba(63, 156, 109, .15); }

.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.hero .meta svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; color: var(--faint); }

.portrait { position: relative; }
.portrait img {
  width: 100%; height: auto; border-radius: 22px;
  box-shadow: 0 2px 4px rgba(23, 15, 73, .06), 0 24px 60px rgba(23, 15, 73, .14);
}
.portrait::after {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
  border: 1px solid var(--line-strong); border-radius: 22px;
}

/* ---------- Sections ---------- */
section { padding: 92px 0; }
section.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { display: grid; grid-template-columns: 220px 1fr; gap: 48px; margin-bottom: 44px; align-items: baseline; }
.section-head .label { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.section-head h2 { font: 300 clamp(30px, 3.6vw, 42px)/1.15 var(--display); color: var(--navy); margin: 0; }
.section-body { display: grid; grid-template-columns: 220px 1fr; gap: 48px; }
.section-body > .aside { color: var(--muted); font-size: 15px; }

.prose p { margin: 0 0 18px; text-align: justify; hyphens: auto; }
.prose p:last-child { margin-bottom: 0; }
.prose blockquote {
  margin: 28px 0 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--gold);
  font: 300 21px/1.5 var(--display); color: var(--navy);
}

/* Availability chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-size: 15px; color: var(--ink); white-space: nowrap;
}
.chips li strong { font-weight: 600; color: var(--navy); }

/* Focus cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 26px; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 2px 4px rgba(23, 15, 73, .05), 0 16px 40px rgba(23, 15, 73, .10); }
.card .num { font: 300 14px/1 var(--display); color: var(--gold); letter-spacing: .1em; margin-bottom: 16px; }
.card h3 { font: 300 21px/1.3 var(--display); color: var(--navy); margin: 0 0 12px; }
.card p { margin: 0; font-size: 15.5px; color: var(--muted); hyphens: auto; } /* narrow column: left-aligned reads better than justified */

/* Experience */
.timeline { list-style: none; margin: 0; padding: 0; }
.entry { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding: 34px 0; border-top: 1px solid var(--line-strong); }
.entry:first-child { border-top: 0; padding-top: 0; }
.entry .when { font-size: 14.5px; color: var(--muted); letter-spacing: .02em; padding-top: 4px; }
.entry .when .client { display: block; margin-top: 6px; color: var(--ink); font-weight: 600; letter-spacing: 0; }
.entry h3 { font: 300 23px/1.3 var(--display); color: var(--navy); margin: 0 0 4px; }
.entry .where { color: var(--muted); font-style: italic; margin: 0 0 14px; font-size: 15.5px; }
.entry .context { color: var(--muted); font-size: 15.5px; margin: 0 0 14px; text-align: justify; hyphens: auto; }
.entry ul { margin: 0; padding: 0 0 0 18px; }
.entry ul.tags, .role ul.tags { padding: 0; }
.entry li { margin: 0 0 8px; text-align: justify; hyphens: auto; }
.entry li::marker { color: var(--gold); }
.entry li strong { color: var(--navy); font-weight: 600; }

.entry.featured { padding-bottom: 40px; }
.role { margin-top: 28px; padding: 26px 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.role:first-of-type { margin-top: 18px; }
.role h4 { font: 300 20px/1.3 var(--display); color: var(--navy); margin: 0 0 6px; }
.role .intro { color: var(--muted); margin: 0 0 14px; text-align: justify; }

.result {
  display: flex; gap: 18px; align-items: center; margin: 18px 0 6px; padding: 16px 20px;
  border-radius: 12px; background: linear-gradient(135deg, rgba(23, 15, 73, .05), rgba(168, 135, 90, .08));
}
.result .big { font: 300 40px/1 var(--display); color: var(--navy); white-space: nowrap; }
.result p { margin: 0; font-size: 15px; color: var(--ink); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.tags li {
  font-size: 12.5px; line-height: 1; padding: 6px 10px; border-radius: 6px;
  background: var(--paper-2); color: var(--muted); border: 1px solid var(--line); margin: 0;
}
section.alt .tags li { background: var(--card); }

.entry.compact { padding: 24px 0; }
.entry.compact h3 { font-size: 20px; }
.entry.compact p { margin: 0; text-align: justify; hyphens: auto; }

/* Skills */
.skill-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.skill-group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.skill-group.lead { grid-column: 1 / -1; border-color: rgba(23, 15, 73, .25); }
.skill-group h3 { font: 300 19px/1.3 var(--display); color: var(--navy); margin: 0 0 14px; }
.skill-group .tags { margin: 0; }
.skill-group .tags li { font-size: 13.5px; line-height: 1.35; padding: 6px 11px; }

.matrix { margin-top: 44px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.matrix h3 { font: 300 19px/1.3 var(--display); color: var(--navy); margin: 0; padding: 22px 26px 6px; }
.matrix table { width: 100%; border-collapse: collapse; font-size: 15px; }
.matrix th, .matrix td { text-align: left; padding: 11px 26px; border-top: 1px solid var(--line); vertical-align: middle; }
.matrix th { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 500; border-top: 0; }
.matrix td.exp { color: var(--muted); white-space: nowrap; }
.level { display: flex; align-items: center; gap: 12px; white-space: nowrap; color: var(--muted); font-size: 14px; }
.bar { width: 90px; height: 5px; background: var(--paper-2); border-radius: 3px; overflow: hidden; flex: none; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), var(--navy-2)); border-radius: 3px; }

/* Facts (education / languages / private) */
.fact .origin { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 15.5px; }
.fact .origin svg { width: 17px; height: 17px; color: var(--gold); flex: none; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.fact h3 { font: 300 19px/1.3 var(--display); color: var(--navy); margin: 0 0 12px; }
.fact p { margin: 0 0 10px; font-size: 15.5px; color: var(--muted); hyphens: auto; }
.fact p:last-child { margin-bottom: 0; }
.fact h3.sub { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.fact dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15.5px; }
.fact dt { color: var(--ink); font-weight: 600; }
.fact dd { margin: 0; color: var(--muted); }

/* Contact */
.contact { padding: 100px 0; background: var(--navy); color: #e9e7f3; }
.contact .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.contact h2 { font: 300 clamp(32px, 4vw, 48px)/1.15 var(--display); color: #fff; margin: 0 0 18px; }
.contact p { margin: 0; color: #c9c6dc; font-size: 17px; max-width: 520px; }
.contact .eyebrow { color: #cdb48d; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list > li > a, .contact-list > li > span {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 12px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  color: #fff; text-decoration: none; transition: background .2s, border-color .2s;
}
.contact-list > li > a:hover { background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .25); color: #fff; }
.contact-list svg { width: 18px; height: 18px; color: #cdb48d; flex: none; }
.contact-list small { display: block; color: #a9a5c4; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }

footer.site { padding: 30px 0 40px; font-size: 14px; color: var(--faint); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer.site img { height: 26px; width: auto; opacity: .55; }
footer.site a { color: var(--muted); }

/* ---------- Plain pages (impressum, 404) ---------- */
.page { padding: 72px 0 96px; }
.page .wrap { max-width: 820px; }
.page h1 { font: 300 clamp(34px, 4.4vw, 50px)/1.1 var(--display); color: var(--navy); margin: 0 0 28px; }
.page h2 { font: 300 24px/1.3 var(--display); color: var(--navy); margin: 40px 0 10px; }
.page h3 { font: 600 16px/1.4 var(--sans); color: var(--ink); margin: 22px 0 6px; }
.page p { margin: 0 0 14px; text-align: justify; hyphens: auto; }
.page address { font-style: normal; }
.legal-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow); }
.legal-card h2:first-child { margin-top: 0; }

.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font: 300 clamp(110px, 18vw, 180px)/1 var(--display); color: var(--navy); margin: 0; }
.notfound p { color: var(--muted); font-size: 19px; margin: 8px 0 28px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .topbar nav > a:not(.btn) { display: none; }
  .topbar nav { gap: 12px; }
  .hero { padding: 56px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .portrait { max-width: 260px; order: -1; }
  .section-head, .section-body, .entry { grid-template-columns: 1fr; gap: 10px; }
  .section-head { margin-bottom: 30px; }
  section { padding: 68px 0; }
  .cards, .skill-groups, .facts { grid-template-columns: 1fr; }
  .contact .wrap { grid-template-columns: 1fr; gap: 36px; }
  .matrix th:nth-child(3), .matrix td:nth-child(3) { display: none; }
  .matrix th, .matrix td { padding: 10px 18px; }
  .bar { width: 56px; }
  .role { padding: 22px 20px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .chips li { white-space: normal; }
  .result { flex-direction: column; align-items: flex-start; gap: 8px; }
}

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

@media print {
  .topbar, .contact-list, footer.site, .hero .actions { display: none; }
  body { background: #fff; font-size: 11pt; }
  section, .hero, .contact { padding: 18pt 0; background: none; color: var(--ink); }
  .contact h2, .contact p { color: var(--ink); }
  .card, .role, .skill-group, .fact, .matrix { box-shadow: none; break-inside: avoid; }
}
