/* André Koch – persönliche Bewerbungswebsite: Stylesheet */
:root {
  --bg: #FBFAF7;
  --bg-glass: rgba(251, 250, 247, .92);
  --surface: #F1EDE4;
  --ink: #22262B;
  --muted: #565C64;
  --accent: #1E3A5F;
  --accent-ink: #FFFFFF;
  --line: #DDD6C8;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 68px;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14181D;
    --bg-glass: rgba(20, 24, 29, .92);
    --surface: #1B2128;
    --ink: #E8E5DE;
    --muted: #A5ABB3;
    --accent: #9DBBE3;
    --accent-ink: #14181D;
    --line: #2C343D;
  }
}
:root[data-theme="dark"] {
  --bg: #14181D;
  --bg-glass: rgba(20, 24, 29, .92);
  --surface: #1B2128;
  --ink: #E8E5DE;
  --muted: #A5ABB3;
  --accent: #9DBBE3;
  --accent-ink: #14181D;
  --line: #2C343D;
}

*, *::before, *::after { box-sizing: inherit; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + var(--header-h));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: .6rem 1rem; border-radius: 4px; text-decoration: none;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + .75rem); }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--bg);
  background: var(--bg-glass);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
}
.brand {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 500;
  color: var(--ink); text-decoration: none; letter-spacing: .01em;
}
.brand:hover { text-decoration: none; color: var(--accent); }
.progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  pointer-events: none;
}
.nav-toggle {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 44px; padding: .4rem .9rem;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 4px;
  font: inherit; font-size: .95rem; cursor: pointer;
}
.nav-toggle-bars { position: relative; width: 16px; height: 2px; background: currentColor; }
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
}
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: .5rem clamp(1.25rem, 5vw, 2.5rem) 1rem;
}
.site-nav[data-open="true"] { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .8rem 0;
  color: var(--muted); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.site-nav li:last-child a { border-bottom: 0; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="true"] { color: var(--ink); font-weight: 600; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block; position: static; background: none; border: 0; padding: 0;
  }
  .site-nav ul { display: flex; gap: 2rem; }
  .site-nav a {
    padding: .5rem 0; border-bottom: 2px solid transparent; font-size: .97rem;
    transition: color .2s ease, border-color .2s ease;
  }
  .site-nav li:last-child a { border-bottom: 2px solid transparent; }
  .site-nav a:hover { border-bottom-color: var(--line); }
  .site-nav a[aria-current="true"] { border-bottom-color: var(--accent); }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem); overflow-x: clip; }
.hero-grid { display: grid; gap: 2.25rem; align-items: center; }
.portrait { order: -1; position: relative; width: min(56vw, 230px); }
.portrait::before {
  content: ""; position: absolute; inset: 1rem -1rem -1rem 1rem;
  background: var(--surface); border-radius: 6px;
}
.portrait img {
  position: relative; display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px;
}
h1 {
  margin: 0;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.04; letter-spacing: -.012em;
}
.role { margin: .9rem 0 1.5rem; font-size: 1.25rem; font-weight: 500; color: var(--accent); }
.lead { margin: 0; max-width: 34rem; font-size: 1.125rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: .7rem 1.4rem;
  border: 1px solid var(--accent); border-radius: 4px;
  font-weight: 500; text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { text-decoration: none; background: transparent; color: var(--accent); }
.btn-secondary { color: var(--accent); background: transparent; }
.btn-secondary:hover { text-decoration: none; background: var(--accent); color: var(--accent-ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.focus {
  display: grid; gap: 1.75rem; margin: clamp(2.5rem, 6vw, 4rem) 0 0; padding: 1.75rem 0 0;
  border-top: 1px solid var(--line);
}
.focus h3 { margin: 0 0 .55rem; font-size: 1.15rem; }
.focus ul { list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: .96rem; line-height: 1.55; }
.focus li { margin: .2rem 0; }
@media (min-width: 640px) { .focus { grid-template-columns: repeat(2, 1fr); gap: 2rem 2.5rem; } }
@media (min-width: 1000px) { .focus { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; } .focus h3 { min-height: 2.5em; } }

@media (min-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 5rem; }
  .portrait { order: 0; width: min(100%, 340px); justify-self: end; margin-right: 1rem; }
  .portrait::before { inset: 1.25rem -1.25rem -1.25rem 1.25rem; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--tint { background: var(--surface); }
.split { display: grid; gap: 1.75rem; }
h2 {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.75rem, 3.4vw, 2.25rem); line-height: 1.15;
}
h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.25; }
h4 { margin: 0 0 .4rem; font-size: 1rem; font-weight: 600; color: var(--accent); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 4rem; }
  .split > h2 {
    position: sticky; align-self: start;
    top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 1.75rem);
  }
}
.prose { max-width: 40rem; }
.prose p { margin: 0 0 1.25rem; }
.prose h3 { margin: 2rem 0 .8rem; }
.split > .tags { align-content: flex-start; }

.list { margin: 0; padding-left: 1.15rem; list-style: disc; }
.list li { margin: .35rem 0; padding-left: .2rem; }
.list li::marker { color: var(--accent); }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.tags li {
  padding: .3rem .85rem; font-size: .95rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
}

/* ---------- Werdegang ---------- */
.timeline {
  list-style: none; margin: 0; padding: 0 0 0 1.75rem;
  border-left: 1px solid var(--line); display: grid; gap: 3.25rem;
}
.timeline > li { position: relative; }
.timeline > li::before {
  content: ""; position: absolute; top: .5rem; left: calc(-1.75rem - 6px);
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.timeline > li:first-child::before { background: var(--accent); }
.meta { display: flex; flex-wrap: wrap; gap: .1rem 1rem; margin: .35rem 0 0; color: var(--muted); }
.meta .company { color: var(--ink); font-weight: 500; }
.duties { display: grid; gap: 1.5rem 2.5rem; margin-top: 1.5rem; }
.timeline .list { margin-top: 1rem; }
.duties .list { margin-top: 0; }
@media (min-width: 720px) { .duties { grid-template-columns: 1fr 1fr; } }

.js .timeline > li { opacity: 0; transform: translateY(10px); transition: opacity .7s ease, transform .7s ease; }
.js .timeline > li.is-visible { opacity: 1; transform: none; }

/* ---------- Ausbildung ---------- */
.edu { list-style: none; margin: 0; padding: 0; }
.edu > li { display: grid; gap: .35rem; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.edu > li:first-child { border-top: 0; padding-top: 0; }
.edu > li:last-child { padding-bottom: 0; }
.edu .period { color: var(--muted); }
.edu p { margin: 0; }
.edu .note { margin-top: .4rem; font-weight: 500; color: var(--accent); }
@media (min-width: 720px) {
  .edu > li { grid-template-columns: 12rem minmax(0, 1fr); gap: 2rem; }
}

/* ---------- Kompetenzen ---------- */
.section-title { margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.skill-grid { display: grid; gap: 1.25rem; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}
.card h3 { margin-bottom: 1.1rem; font-size: 1.2rem; }
.card .tags { gap: .5rem; }
.card .tags li { background: var(--surface); font-size: .86rem; padding: .3rem .8rem; color: var(--muted); }
.techs {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem;
}
.techs li {
  padding: .6rem .25rem; text-align: center; font-weight: 600; font-size: .9rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
}
.lang { margin: 0; }
.lang div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.lang div:first-child { padding-top: 0; }
.lang div:last-child { border-bottom: 0; padding-bottom: 0; }
.lang dt { color: var(--muted); }
.lang dd { margin: 0; font-weight: 600; }
@media (min-width: 480px) { .techs { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 800px) { .skill-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Kontakt ---------- */
.contact-list { margin: 0; max-width: 40rem; }
.contact-list div { display: grid; gap: .1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.contact-list div:first-child { border-top: 0; padding-top: 0; }
.contact-list dt { color: var(--muted); font-size: .95rem; }
.contact-list dd { margin: 0; font-family: var(--serif); font-size: 1.3rem; overflow-wrap: anywhere; }
.contact-list a { text-decoration-thickness: 1px; }
address { font-style: normal; }
@media (min-width: 720px) {
  .contact-list div { grid-template-columns: 9rem 1fr; gap: 2rem; align-items: baseline; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 2rem 0 2.5rem; background: var(--surface); color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.site-footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .timeline > li { opacity: 1; transform: none; }
}
@media print {
  .site-header, .skip-link, .hero-actions { display: none; }
  html { padding: 0; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section, .section--tint { background: none; padding: 1.5rem 0; break-inside: avoid-page; }
  .split > h2 { position: static; }
  .js .timeline > li { opacity: 1; transform: none; }
}
