/* =========================================
   Basisvariablen
   ========================================= */
:root {
  --bg: #1f1f1f;
  --fg: #ffffff;
  --muted: #95a150;
  --brand: #0ebde9;
  --brand-2: #c53b22;
  --maxw: 72rem;
  --space: clamp(1rem, 2vw, 2rem);
}
/* =========================================
   Reset & Basistypografie
   ========================================= */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif;
  color: var(--fg);
  background: var(--bg);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
/* =========================================
   Layout-Container
   ========================================= */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--space);
}
/* =========================================
   Skip-Link (Accessibility)
   ========================================= */
.skip {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip:focus {
  left: var(--space);
  top: var(--space);
  background: #fff;
  padding: 0.25rem 0.5rem;
  box-shadow: 0 0 0 2px var(--brand);
}
/* =========================================
   Header & Navigation
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  background: linear-gradient(90deg, var(--bg), #c53b22);
  border-bottom: 1px solid #1f1f1f;
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem var(--space);
}
.brand {
  font-weight: 700;
}
.navlist {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* =========================================
   Hero-Section
   ========================================= */
.hero {
  color: #1f1f1f;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  padding-block: clamp(2.5rem, 8vw, 5rem);
}
.hero-grid {
  display: grid;
  gap: 1rem;
  align-items: center;
}
.portrait {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
}
.hero-text .btn {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  background: #fff;
  color: #1f1f1f;
  border-radius: 0.5rem;
  font-weight: 600;
}
/* =========================================
   Allgemeine Abschnittsgestaltung
   ========================================= */
.section {
  padding-block: clamp(2rem, 6vw, 3.5rem);
}
/* =========================================
   Footer
   ========================================= */
.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 1.25rem 0;
}
/* =========================================
   Responsive (ab 768px)
   ========================================= */
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 128px 1fr;
  }
}
/* =========================================
   Druckansicht
   ========================================= */
@media print {
  .site-header,
  .site-footer,
  .btn {
    display: none;
  }
  a {
    color: inherit;
    text-decoration: underline;
    font-family: 'Lora', serif;
  }
}
.cv { display: grid; gap: 1rem; }
.cv .row {
  display: grid;
  grid-template-columns: 12ch 1fr;
  gap: .5rem 1rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  background: #1f1f1f;
}
.cv .year { font-weight: 600; opacity: .9; }
.cv .detail h3 { margin: 0 0 .25rem 0; }
@media (max-width: 767px) {
  .cv .row { grid-template-columns: 1fr; }
  .cv .year { opacity: .75; }
}
.skills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.skills li {
  display: grid;
  gap: 0.25rem;
}

.skills span {
  font-weight: 600;
}

.bar {
  height: 0.75rem;
  background: #e5e7eb;   /* hellgrauer Hintergrund */
  border-radius: 999px;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: translateZ(0);
}
.cards {
  display: grid;
  gap: 1rem;
}

.card {
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  background: #1f1f1f;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

/* Kontaktformular */
.contact-form {
  display: grid;
  gap: .5rem;
  max-width: 32rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: .6rem;
  background: #111;
  color: #fff;
  font-weight: bold;
}

.btn:hover {
  opacity: .9;
}

/* Fußbereich */
.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid #e5e7eb;
}

/* Mobile Navigation */
@media (max-width: 767px) {
  .nav-toggle {
    display: inline-block;
    padding: .4rem .7rem;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    background: #fff;
  }

  .navlist {
    display: none;
    flex-direction: column;
    position: absolute;
    right: var(--space);
    top: 3rem;
    padding: .75rem;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    background: #fff;
  }

  .navlist.is-open {
    display: flex;
  }
}

/* Desktop Layout */
@media (min-width: 768px) {
  .hero .container {
    grid-template-columns: 160px 1fr;
  }

  .cv {
    grid-template-columns: 1fr 1fr;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Druckansicht */
@media print {
  .site-header,
  .site-footer,
  .navlist,
  .btn {
    display: none;
  }

  a {
    color: inherit;
    text-decoration: underline;
  }
}