/*
Theme Name: Stephan Juers Portfolio
Theme URI: https://stephan-juers.de
Author: Stephan Jürs
Description: Maßgeschneidertes, barrierearmes One-Page-Portfolio für Stephan Jürs.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: stephan-juers
*/

:root {
  --ink: #112626;
  --muted: #526665;
  --paper: #f6f5ef;
  --surface: #fffefa;
  --line: #d8ded7;
  --teal: #0b6b62;
  --teal-dark: #075149;
  --lime: #c9e265;
  --navy: #173a48;
  --shadow: 0 18px 50px rgba(17, 38, 38, .09);
  --radius: 24px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
img { max-width: 100%; height: auto; }
.wrap { width: min(calc(100% - 40px), var(--wrap)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 999; padding: 10px 16px; background: white; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
}
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 760; letter-spacing: -.03em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: 13px; letter-spacing: -.06em; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.menu-list { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.main-nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 650; }
.main-nav a:hover { color: var(--teal); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.language-switcher { display: flex; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.5); }
.language-switcher a { display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 750; }
.language-switcher a[aria-current="page"] { background: var(--ink); color: white; }
.language-switcher a:not([aria-current="page"]) { filter: grayscale(.7); }

.hero { position: relative; min-height: 760px; display: grid; align-items: center; overflow: hidden; padding: 100px 0 120px; }
.hero::before { content: ""; position: absolute; width: 640px; height: 640px; right: -210px; top: 15px; border: 1px solid rgba(11,107,98,.22); border-radius: 50%; box-shadow: 0 0 0 72px rgba(11,107,98,.04), 0 0 0 150px rgba(11,107,98,.025); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 80px; align-items: end; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; color: var(--teal); font-size: 13px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
h1, h2, h3 { margin-top: 0; line-height: 1.1; letter-spacing: -.045em; }
h1 { max-width: 820px; margin-bottom: 30px; font-size: clamp(52px, 7vw, 96px); font-weight: 780; }
h1 span { color: var(--teal); }
.hero-copy { max-width: 690px; margin: 0; color: var(--muted); font-size: clamp(19px, 2vw, 23px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 22px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: white; text-decoration: none; font-weight: 750; font-size: 15px; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); background: var(--teal-dark); }
.button.secondary { background: transparent; color: var(--ink); }
.button.secondary:hover { background: white; }
.hero-aside { padding: 30px; border: 1px solid rgba(11,107,98,.22); border-radius: var(--radius); background: rgba(255,255,255,.48); box-shadow: var(--shadow); }
.metric { padding: 20px 0; border-bottom: 1px solid var(--line); }
.metric:first-child { padding-top: 0; }.metric:last-child { padding-bottom: 0; border: 0; }
.metric strong { display: block; color: var(--teal); font-size: 32px; line-height: 1; letter-spacing: -.04em; }
.metric span { color: var(--muted); font-size: 14px; }

.section { padding: 110px 0; }
.section-dark { color: white; background: var(--ink); }
.section-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; align-items: end; margin-bottom: 58px; }
.section-head h2 { margin-bottom: 0; font-size: clamp(38px, 5vw, 62px); }
.section-intro { margin: 0; color: var(--muted); font-size: 20px; }
.section-dark .section-intro { color: #b8c7c5; }

.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.expertise-card { min-height: 290px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card-number { color: var(--teal); font-size: 13px; font-weight: 800; letter-spacing: .14em; }
.expertise-card h3 { margin: 66px 0 14px; font-size: 25px; }
.expertise-card p { margin: 0; color: var(--muted); font-size: 16px; }

.timeline { position: relative; }
.role { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 60px; padding: 50px 0; border-top: 1px solid rgba(255,255,255,.18); }
.role:first-child { padding-top: 0; border-top: 0; }
.role-meta { color: #a9bcba; font-size: 14px; }
.role-meta strong { display: block; margin-bottom: 8px; color: var(--lime); font-size: 16px; }
.role h3 { margin-bottom: 8px; font-size: clamp(27px, 3vw, 38px); }
.role-company { margin: 0 0 22px; color: #b8c7c5; font-weight: 650; }
.role ul { margin: 0; padding-left: 20px; color: #d9e2e0; }
.role li + li { margin-top: 10px; }

.impact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.impact-card { padding: 34px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.impact-card h3 { margin: 18px 0 12px; font-size: 25px; }
.impact-card p { margin: 0; color: var(--muted); font-size: 16px; }
.impact-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: #e3efc0; color: var(--teal-dark); font-weight: 900; }

.skills-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.skill-group { padding: 24px 0; border-top: 1px solid var(--line); }
.skill-group:first-child { border-top: 0; padding-top: 0; }
.skill-group h3 { margin-bottom: 14px; font-size: 19px; }
.tags { display: flex; flex-wrap: wrap; gap: 9px; }
.tag { padding: 7px 12px; border: 1px solid #cbd4cb; border-radius: 999px; background: rgba(255,255,255,.55); color: var(--muted); font-size: 14px; font-weight: 650; }
.education-item { padding: 24px 0; border-top: 1px solid var(--line); }
.education-item:first-child { border-top: 0; padding-top: 0; }
.education-item h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.02em; }
.education-item p { margin: 0; color: var(--muted); font-size: 15px; }

.contact { position: relative; overflow: hidden; padding: 100px 0; background: var(--teal); color: white; }
.contact::after { content: "SJ"; position: absolute; right: -30px; bottom: -120px; color: rgba(255,255,255,.06); font-size: 340px; font-weight: 900; line-height: 1; letter-spacing: -.1em; }
.contact-inner { position: relative; z-index: 1; max-width: 850px; }
.contact h2 { margin-bottom: 26px; font-size: clamp(42px, 6vw, 74px); }
.contact p { max-width: 660px; margin-bottom: 38px; color: #d8ebe8; font-size: 21px; }
.contact .button { background: var(--lime); border-color: var(--lime); color: var(--ink); }

.site-footer { padding: 36px 0; background: #0b1d1d; color: #a9bcba; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; gap: 20px; }
.footer-links .menu-list { gap: 20px; }
.footer-links a:hover { color: white; }
.entry-content { max-width: 780px; margin: 0 auto; padding: 100px 20px; }
.entry-content h1 { font-size: clamp(42px, 6vw, 70px); }

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-grid, .section-head, .skills-layout { grid-template-columns: 1fr; gap: 42px; }
  .hero-aside { display: grid; grid-template-columns: repeat(3, 1fr); }
  .metric { padding: 0 18px; border: 0; border-right: 1px solid var(--line); }
  .metric:first-child { padding-left: 0; }.metric:last-child { padding-right: 0; border: 0; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .wrap { width: min(calc(100% - 28px), var(--wrap)); }
  .site-header { background: var(--paper); }
  .menu-toggle { display: block; }
  .header-inner { gap: 12px; }
  .brand > span:last-child { display: none; }
  .language-switcher a span { display: none; }
  .main-nav { display: none; position: absolute; left: 14px; right: 14px; top: 70px; padding: 22px; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
  .main-nav .menu-list { flex-direction: column; align-items: flex-start; }
  .main-nav.is-open { display: flex; }
  .hero { padding: 74px 0 80px; }
  .hero::before { width: 400px; height: 400px; right: -260px; }
  .hero-grid { gap: 48px; }
  .hero-aside { grid-template-columns: 1fr; }
  .metric { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:first-child { padding-top: 0; }
  .section { padding: 78px 0; }
  .expertise-grid, .impact-grid { grid-template-columns: 1fr; }
  .expertise-card { min-height: auto; }
  .expertise-card h3 { margin-top: 38px; }
  .role { grid-template-columns: 1fr; gap: 20px; padding: 38px 0; }
  .footer-inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
