/* bzsolutions – minimalist, accent: dark blue */
/* Source Sans 3 – self-hosted (SIL Open Font License), siehe fonts/LICENSE-source-sans-3.txt */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2");
}

:root {
  --bg: #f8f9fc;
  --bg-card: #ffffff;
  --text: #1a1d26;
  --text-muted: #5c6370;
  --accent: #1a365d;
  --accent-soft: #2c5282;
  --accent-faint: rgba(26, 54, 93, 0.08);
  --border: #e8ebf2;
  --radius: 12px;
  --font: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --header-h: 4rem;
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.65rem 1rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

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%;
  height: auto;
}

a {
  color: var(--accent-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 249, 252, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent-soft);
  text-decoration: none;
}

.logo span {
  font-weight: 400;
  color: var(--text-muted);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  color: var(--accent);
}

.nav-toggle:hover {
  background: var(--accent-faint);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.nav-main ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-main a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}

.nav-main a:hover {
  color: var(--accent-soft);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-main {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    display: none;
    box-shadow: 0 12px 24px rgba(26, 54, 93, 0.08);
  }

  .nav-main.is-open {
    display: block;
  }

  .nav-main ul {
    flex-direction: column;
    gap: 0;
  }

  .nav-main li {
    border-bottom: 1px solid var(--border);
  }

  .nav-main li:last-child {
    border-bottom: none;
  }

  .nav-main a {
    display: block;
    padding: 0.75rem 0;
  }
}

/* ——— Sections ——— */
main > section {
  padding-block: 4.5rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

main > section:nth-child(even) {
  background: var(--bg-card);
  border-block: 1px solid var(--border);
}

.hero {
  padding-block: 5rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.hero .tagline {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 400;
}

.hero .location {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.section-title {
  margin: 0 0 2rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 42rem;
}

.lead--align-grid {
  max-width: none;
  margin-top: 3rem;
}

.grid-2 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(26, 54, 93, 0.04);
}

main > section:nth-child(even) .card {
  background: var(--bg);
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}

.skills li {
  font-size: 0.875rem;
  padding: 0.35rem 0.75rem;
  background: var(--accent-faint);
  color: var(--accent);
  border-radius: 999px;
  font-weight: 500;
}

.skills-tier-label {
  margin: 1rem 0 0.4rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.skills-secondary {
  margin-top: 0;
}

.skills-secondary li {
  font-size: 0.8125rem;
  padding: 0.3rem 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
}

.cert-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.cert-list li {
  margin-bottom: 0.5rem;
}

.projects-grid {
  display: grid;
  gap: 1.25rem;
}

/* 2 Spalten: bei 4 Karten symmetrisches 2×2-Raster (3 Spalten würde 3+1 „Löcher“ erzeugen) */
@media (min-width: 600px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--accent);
}

.project-card-icon {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  transform: translateY(-0.05em);
}

/* Globus: stärkerer optischer Ausgleich als bei den anderen Material-Symbolen */
.project-card-icon--language {
  transform: translateY(-0.1em);
}

.project-card-title span {
  min-width: 0;
}

.project-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.contact-box {
  max-width: 36rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-icon {
  flex-shrink: 0;
  display: block;
}

.btn-icon--phone {
  transform: rotate(15deg);
  transform-origin: center;
}

.btn-icon--linkedin {
  transform: scale(0.92);
  transform-origin: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-soft);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent-faint);
  text-decoration: none;
}

/* ——— Footer ——— */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-legal a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ——— Legal pages ——— */
.legal-page {
  padding: 3rem 0 4rem;
  max-width: 42rem;
}

.legal-page h1 {
  font-size: 1.75rem;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.legal-page h2 {
  font-size: 1.125rem;
  margin-top: 1.35rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.legal-page p,
.legal-page li {
  margin-top: 0;
  margin-bottom: 0;
  color: var(--text-muted);
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}

.legal-page .ecg-link {
  display: inline-block;
  line-height: 0;
}

.legal-page .ecg-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
