/* ====== Design Tokens ====== */
    :root {
      --bg: #F8FAFC;               /* Seitenhintergrund */
      --surface: #F1F5F9;           /* Karten / Flächen */
      --text: #141518;              /* Primärtext */
      --muted: #6b7280;             /* Sekundärtext */
      --brand: #4f46e5;             /* Blau/Violett */
      --brand-600: #4338ca;
      --accent: #f59e0b;            /* Orange CTA */
      --shadow: 0 10px 30px rgba(20,21,24,.08);
      --radius: 16px;
      --maxw: 1100px;
    }

    * { box-sizing: border-box; }
    html, body { height: 100%; }
    body {
      margin: 0; background: var(--bg); color: var(--text);
      font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
      line-height: 1.6;
    }

    h1, h2, h3 { font-family: "Poppins", Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial; margin: 0 0 .5rem; line-height: 1.2; color: var(--brand-600); }
    h1 { font-size: clamp(2rem, 3.5vw + 1rem, 3.5rem); color: #ffffff; }
    h2 { font-size: clamp(1.6rem, 1.2vw + 1rem, 2.4rem); }

    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; display: block; }

    .container { width: min(100%, var(--maxw)); margin-inline: auto; padding-inline: 24px; }

    /* ====== Header / Nav ====== */
    .site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(140%) blur(6px); background: rgba(246,247,251,.7); border-bottom: 1px solid rgba(20,21,24,.06); }
    .nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
    .brand { font-weight: 700; letter-spacing: .2px; color: var(--brand-600); }
    .nav-links { display: flex; gap: 22px; }
    .nav-links a { color: var(--muted); font-weight: 600; }
    .nav-links a:hover { color: var(--brand-600); }

/* ===== Hero: Fullscreen Background-Image ===== */
.hero{
  position: relative;
  color: #fff;
  overflow: hidden;
  min-height: 100svh;             
  background-image: url('assets/hero.jpg');  
  background-size: cover;
  background-position: center;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(7,9,36,.12) 0%, rgba(7,9,36,.55) 100%);
}

/* ===== CTA Button ===== */
.cta {
  display: inline-block;
  background: var(--accent);      
  color: #fff;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: background .2s ease, transform .2s ease;
}
.cta:hover {
  background: #d97706;          
  transform: translateY(-2px);
}

.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 120px;
  width: 100%;
  z-index: 2;
}

    /* ====== Sections ====== */
    section { padding: 80px 0; }

    /* About */
    .about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
    .about p { color: var(--muted); }
    .avatar { width: 220px; aspect-ratio: 1/1; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow); margin-left: auto; }

      /* Projects */
      .projects-grid { 
        display: grid; 
        grid-template-columns: repeat(3, 1fr); 
        gap: 22px; 
        margin-top: 24px; 
      }
      .card { 
        background: var(--surface); 
        border-radius: var(--radius); 
        box-shadow: var(--shadow); 
        padding: 20px; 
        transition: transform .18s ease, box-shadow .18s ease; 
      }
      .card:hover { 
        transform: translateY(-4px); 
        box-shadow: 0 14px 40px rgba(20,21,24,.12); 
      }
      .card h3 { color: var(--text); font-size: 1.1rem; margin-bottom: 6px; }
      .card p { color: var(--muted); font-size: .95rem; }
      .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
      .tag { font-size: .78rem; background: #eef2ff; color: var(--brand-600); padding: 4px 10px; border-radius: 999px; }
      .status { display:flex; gap:6px; margin-bottom:8px; }
      .dot { width:10px; height:10px; border-radius:50%; background:#e5e7eb; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
      .dot.green { background:#22c55e; }
      .dot.yellow{ background:#f59e0b; }
      .dot.red   { background:#ef4444; }
      .card .head { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
      .card .head h3 { margin:0; font-size:1.05rem; }
      .card a.title-link { color:inherit; }

      #projects .projects-grid:empty::before{
      content: "Konnte Projekte nicht laden.";
      display: block;
      text-align: center;
      color: var(--muted);
      padding: 24px 0;
      }




    /* Skills */
    .skill { margin: 20px 0; }
    .skill-header { display:flex; justify-content: space-between; align-items:center; font-weight:600; color: var(--muted); margin-bottom:6px; }
    .bar { height: 10px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
    .bar > span { display:block; height:100%; background: linear-gradient(90deg, #6366f1, #4338ca); width: var(--value, 0%); }
    .bar > span { transition: width .5s ease; }

    /* Learning */
    .learning-list { display:grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 12px; }
    .pill { background:#eef2ff; color: var(--brand-600); padding:10px 14px; border-radius: 10px; font-weight:600; }

    /* Footer */
    footer { padding: 40px 0 70px; color: var(--muted); text-align:center; }

    .btn-outline {
      display:inline-block;
      border:2px solid var(--accent);
      color: var(--accent);
      font-weight:600;
      padding:10px 24px;
      border-radius:999px;
      transition:all .2s ease;
    }
    .btn-outline:hover {
      background:var(--accent);
      color:#fff;
    }

        /* Einheitliche Schrift für Formularfelder */
    input, textarea, select, button {
      font-family: inherit;
      font-size: 1rem;
      line-height: 1.5;
    }

    /* Kontakt Section zentrieren */
      #contact {
        text-align: center;
      }

      #contact .contact {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
      }

      #contact h2 {
        margin-bottom: 10px;
      }

      #contact form {
        max-width: 600px;
        width: 100%;
        text-align: left; /* Labels/Felder im Formular selbst bleiben linksbündig */
      }

      #contact .section-intro {
      max-width: 600px;
      margin: 0 auto 20px;
      text-align: center;
      background: var(--surface);
      padding: 18px 22px;
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      color: var(--muted);
}


    /* ====== Utilities / Responsive ====== */
    .section-intro { background: var(--surface); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); color: var(--muted); margin: 14px 0 30px; }

    @media (max-width: 1000px) {
      .hero .container, .about { grid-template-columns: 1fr; }
      .avatar { margin: 0 auto; }
    }
    @media (max-width: 900px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 580px) {
      .nav-links { display:none; }
      .projects-grid { grid-template-columns: 1fr; }
      section { padding: 64px 0; }
    }
