/* =========================================
   Basisvariablen
   ========================================= */
:root {
  --bg: #111827;
  --fg: #fff;
  --muted: #6b7280;
  --brand: #000080;
  --brand-2: #553939;
  --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);
  transition: background-color  0.3s, color 0.3s;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #006EFF;
  text-decoration: none;
}

.btn{
  margin: 5px;
}

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: var(--bg);
  border-bottom: 1px solid #e5e7eb;
  z-index: 100;
}
.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: #fff;
  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: #111827;
  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;
  }
}
/* =====================================
   Lebenslauf
   ===================================== */
   .cv { display: grid; gap: 1rem; }
.cv .row {
  display: grid;
  grid-template-columns: 12ch 1fr;
  gap: .5rem 1rem;
  align-items: start;
  padding: 1rem;
  border-radius: .75rem;
  border: 1px solid #fff;
}
.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; }
}
/* =====================================
   download 
   ===================================== */
   .download-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
    margin: 5px;
  }

  .download-btn:hover {
    transform: translateY(-3px);
  }
  /*Projekte */
  .cards
  {
    display: flex;
    align-items:start;
    justify-content: space-evenly;
    padding: 1rem ;
    border-radius: .75rem;
  }
  .card
  {
    padding: 1rem;
    border-radius: .75rem;
    border: 1px solid #fff;
  }
  /* Skills-Block */
.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%;
  background: var(--brand); /* Akzentfarbe aus :root */
  transform: translateZ(1);
}
/* Kontaktformular */
.contact-title
.contact-form {
  display: grid;
  gap: .5rem;
  max-width: 32rem;
  margin: 2rem auto;
}

.contact-form label {
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1rem;
  resize: none;
}

.contact-form button {
  background: #0056b3;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.25s ease;
}

.contact-form button:hover {
  background: #2196f3;
  transform: translateY(-3px);
}
