/* ==========================================================================
   largu.ch – Stylesheet
   Farben und Schrift abgeleitet vom Lebenslauf (PDF)
   ========================================================================== */

/* ---------- Schrift: Lato (selbst gehostet, SIL OFL 1.1) ---------- */
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lato-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lato-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design-Tokens ---------- */
:root {
  --navy: #2E3A48;
  --navy-deep: #252F3B;
  --accent: #5B9BB5;
  --accent-dark: #3F7F99;   /* Akzent für Text auf Weiss (besserer Kontrast) */
  --text: #2B333D;
  --muted: #5E6872;
  --muted-light: #9DA2A9;
  --on-navy: #FFFFFF;
  --on-navy-muted: #C5CCD4;
  --bg: #FFFFFF;
  --bg-alt: #F4F6F8;
  --border: #E1E6EB;

  --font: "Lato", "Carlito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 10px;
  --container: 880px;
  --narrow: 880px;
  --header-h: 60px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
ul, ol { margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container.narrow { max-width: var(--narrow); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}
.brand {
  color: var(--on-navy);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
}
.main-nav a {
  color: var(--on-navy-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s;
}
.main-nav a:hover { color: var(--on-navy); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--on-navy-muted);
}
.lang-current { color: var(--accent); }
.lang-sep { color: var(--muted); font-weight: 400; }
.lang-switch a {
  color: var(--on-navy-muted);
  text-decoration: none;
}
.lang-switch a:hover { color: var(--on-navy); }

/* Auf schmalen Bildschirmen nur Name + Sprache */
@media (max-width: 760px) {
  .main-nav { display: none; }
  .lang-switch { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--on-navy);
  padding: 56px 0 64px;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero-role {
  margin: 6px 0 0;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  color: var(--accent);
}
.hero-meta {
  margin: 8px 0 0;
  color: var(--on-navy-muted);
  font-size: 0.98rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 640px) {
  .hero { padding: 40px 0 48px; }
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .hero-photo { width: 160px; height: 160px; }
  .hero-actions { justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Abschnitte ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  padding-bottom: 8px;
  margin-bottom: 28px;
  border-bottom: 3px solid var(--accent);
}
.section-title-light { color: var(--on-navy); }

.lead {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text);
}

@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .lead { font-size: 1.1rem; }
}

/* ---------- Zeitstrahl ---------- */
.timeline {
  list-style: none;
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--accent);
  opacity: 0.45;
}
.timeline-item {
  position: relative;
  padding-bottom: 36px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 3px solid var(--accent);
}
.timeline-item:first-child::before { background: var(--accent); }

.timeline-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
}
.timeline-head h3 {
  font-size: 1.2rem;
  color: var(--navy);
}
.timeline-date {
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}
.timeline-org {
  margin: 2px 0 10px;
  color: var(--muted);
}
.timeline-item ul {
  list-style: none;
}
.timeline-item ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}
.timeline-item ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Ausbildung ---------- */
.edu-list { list-style: none; }
.edu-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.edu-list li:first-child { padding-top: 0; }
.edu-list li:last-child { border-bottom: 0; }
.edu-year {
  color: var(--accent-dark);
  font-weight: 700;
  white-space: nowrap;
}
.edu-text strong { color: var(--navy); }
.edu-text { color: var(--muted); }

@media (max-width: 520px) {
  .edu-list li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Kacheln ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
}
.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 16px;
}
.dot-list { list-style: none; }
.dot-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 7px;
}
.dot-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.def-list { margin: 0; }
.def-list > div { margin-bottom: 14px; }
.def-list > div:last-child { margin-bottom: 0; }
.def-list dt {
  font-weight: 700;
  color: var(--navy);
}
.def-list dd {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
}

/* ---------- Kontakt ---------- */
.section-contact {
  background: var(--navy);
  color: var(--on-navy);
}
.contact-inner .hero-actions { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--on-navy-muted);
  font-size: 0.9rem;
  padding: 20px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer a {
  color: var(--on-navy-muted);
}
.site-footer a:hover { color: var(--on-navy); }

/* ---------- Druck ---------- */
@media print {
  .site-header, .skip-link, .hero-actions, .section-contact, .site-footer { display: none; }
  .hero, .section-alt { background: none; color: var(--text); }
  .hero-role { color: var(--accent-dark); }
  .section { padding: 24px 0; }
}

@media (max-width: 640px) {
  .timeline-head { flex-direction: column; gap: 0; }
}

/* ---------- Rechtliche Seiten / 404 ---------- */
.legal { min-height: calc(100vh - var(--header-h) - 62px); }
.legal h2 {
  font-size: 1.15rem;
  color: var(--navy);
  margin: 28px 0 8px;
}
.legal p { margin: 0 0 12px; }
.legal-date {
  margin-top: 32px !important;
  color: var(--muted);
  font-size: 0.9rem;
}
