/* 
   Basisvariablen
    */
   :root {
    --bg: #ffffff;
    --fg: #111827;
    --muted: #6b7280;
    --brand: #2f763e;
    --brand-2: #bdeb40;
    --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), #f8fafc);
    border-bottom: 1px solid #e5e7eb;
  }
  .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;
  }
  /* =========================================
     Projekte-Sektion
     ========================================= */
  .projects-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .project-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
  
  .project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .project-content {
    padding: 1.5rem;
  }
  
  .project-content h3 {
    margin: 0 0 0.5rem 0;
    color: var(--fg);
  }
  
  .project-content p {
    margin: 0 0 1rem 0;
    color: var(--muted);
    line-height: 1.6;
  }
  
  .project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .tech-tag {
    background: var(--brand);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
  }
  
  /* =========================================
     Allgemeine Abschnittsgestaltung
     ========================================= */
  .section {
    padding-block: clamp(2rem, 6vw, 3.5rem);
  }
  /* =========================================
     Footer
     ========================================= */
  .site-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1.25rem 0;
  }
  /* =========================================
     Kontakt-Sektion
     ========================================= */
  .contact-content {
    display: grid;
    gap: 3rem;
    margin-top: 2rem;
  }
  
  .contact-info h3 {
    margin: 0 0 1rem 0;
    color: var(--fg);
  }
  
  .contact-details {
    margin-top: 1.5rem;
  }
  
  .contact-details p {
    margin: 0.5rem 0;
  }
  
  .contact-form {
    background: #fff;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--fg);
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s ease;
  }
  
  .form-group input:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
  }
  
  .btn-primary {
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  
  .btn-primary:hover {
    background: #0284c7;
  }
  
  /* =========================================
     Responsive (ab 768px)
     ========================================= */
  @media (min-width: 768px) {
    .hero-grid {
      grid-template-columns: 128px 1fr;
    }
  
    .projects-grid {
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
  
    .contact-content {
      grid-template-columns: 1fr 1.5fr;
      align-items: start;
    }
  }
  /* =========================================
     Responsive Erweiterungen
     ========================================= */
  @media (min-width: 1024px) {
    .projects-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  /* =========================================
     Druckansicht
     ========================================= */
  @media print {
    .site-header,
    .site-footer,
    .btn {
      display: none;
    }
    a {
      color: inherit;
      text-decoration: underline;
    }
  }
  .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: #fff;
  }
  .cv .year {
    font-weight: 600;
    opacity: 0.9;
  }
  .cv .detail h3 {
    margin: 0 0 .25rem 0;
  }
  @media (max-width: 767px) {
    .cv .row {
      grid-template-columns: 1fr;
    }
    .cv .year {
      opacity: 0.75;
    }
  }
  /* 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(0);
  }
  /* ---- Tweaks: Projekte größer & mittig ---- */
.projects-grid {
  justify-content: center;            /* Grid-Inhalt mittig */
  gap: 2.5rem;                        /* etwas mehr Luft */
}

/* ab Tablet: exakt zwei breite Spalten */
@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(360px, 520px));
  }
}

/* ab Desktop: zentriert + größere Bildhöhe */
@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    place-content: center;
    max-width: 1120px;
    margin-inline: auto;
  }
  .project-card { max-width: 560px; margin-inline: auto; }
  .project-image { height: 260px; }   /* Boxen wirken insgesamt größer */
}
