/* Grundfarben und Maße */
:root {
  --bg: #ffffff;
  --fg: #111111;
  --brand: #1cbde6;
  --brand-2: #1a34c5;
  --maxw: 72rem;
  --space: 1rem;
}

/* Grundlayout */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 16px/1.6 system-ui, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
}

img {
  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;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space);
}

/* Skip-Link */
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--space);
  top: var(--space);
  background: #fff;
  padding: .25rem .5rem;
  border: 2px solid var(--brand);
}

/* Kopfbereich */
.site-header {
  position: sticky;
  top: 0;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem var(--space);
}

.brand {
  font-weight: bold;
}

.navlist {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-toggle {
  display: none;
}

/* Hero-Bereich */
.hero {
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #111;
}

.hero .container {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.portrait {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
}

/* Allgemeine Sektionen */
.section {
  padding: 2rem 0;
}

/* Lebenslauf */
.cv {
  display: grid;
  gap: 1rem;
}
.cv article {
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  background: #fff;
}



/* Fähigkeiten */
.skills {
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.skills li {
  display: grid;
  gap: .25rem;
}

.bar {
  height: .6rem;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--brand);
}

```css
/* Projekte */
.cards {
  display: grid;
  gap: 1rem;
}

/* Nur Projekte nebeneinander ab Tablet */
@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Projektkarten */
.card {
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,.1);
}

/* Kontaktformular bleibt in Spalte */
.contact-form {
  display: grid;
  grid-template-columns: 1fr; /* immer nur 1 Spalte */
  gap: .5rem;
  max-width: 32rem;
}
```



/* Kontaktformular */
.contact-form {
  display: grid;
  gap: .5rem;
  max-width: 32rem;
}

/* Kontaktformular im Box-Stil */
#contact .container {
  display: flex;
  
}

.contact-box {
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
  max-width: 32rem;
  width: 100%;
}

/* 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;
  }
}


/* Allgemeine Boxen für Abschnitte */
.box {
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.box {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.box:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Lebenslauf-Boxen */
.cv-item {
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

.cv-item .year {
  font-weight: bold;
  margin-bottom: .5rem;
  color: var(--brand);
}

.cv-item .detail h3 {
  margin: 0 0 .25rem 0;
}

/* Über mich: */
#about {
  display: none;
}


#about.active {
  display: block;
  animation: fadeIn 0.4s ease;
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


.box {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #ffffff, #f7fafc);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.box:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}


#about .box {
  background-image: url('https://www.transparenttextures.com/patterns/white-diamond.png');
  background-color: #f0f8ff;
}

#resume .box {
  background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
  background-color: #f9f9ff;
}

#skills .box {
  background-image: url('https://www.transparenttextures.com/patterns/cream-paper.png');
  background-color: #fffaf5;
}

#projects .box {
  background-image: url('https://www.transparenttextures.com/patterns/light-paper-fibers.png');
  background-color: #f8ffff;
}

#contact .contact-box {
  background-image: url('https://www.transparenttextures.com/patterns/diamond-upholstery.png');
  background-color: #f6fbff;
}


.cv-item {
  position: relative;
  padding: 1.5rem;
  border: 1px solid #e0e4f2;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cv-item:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}


.cv-item:nth-child(1) { border-left: 6px solid #1cbde6; } /* Ausbildung */
.cv-item:nth-child(2) { border-left: 6px solid #1a34c5; } /* Praktikum */
.cv-item:nth-child(3) { border-left: 6px solid #58a55c; } /* Schule */
.cv-item:nth-child(4) { border-left: 6px solid #e6b91c; } /* Arbeit 1 */
.cv-item:nth-child(5) { border-left: 6px solid #e66a1c; } /* Arbeit 2 */


.cv-item h3::before {
  content: "💼 ";
  font-size: 1.1em;
}

#resume-title::before {
  content: "📄 ";
}

#skills-title::before {
  content: "🧠 ";
}

#projects-title::before {
  content: "💻 ";
}

#contact-title::before {
  content: "✉️ ";
}

#about-title::before {
  content: "👋 ";
}

.hero {
  padding: 3rem 0;
  background: linear-gradient(135deg, #0078d7, #00b4d8);
  color: #fff;
  text-align: center;
}

.hero .container {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
}

.portrait {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero-text h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.hero-text p {
  color: #e0f7ff;
}

/* Neue Schriftarten */
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
}


h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  color: #111;
  letter-spacing: 0.02em;
}


h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

p, li, small {
  font-weight: 400;
  color: #333;
}

/* Navigations plus */
.site-header {
  position: sticky;
  top: 0;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  z-index: 1000; 
}

.section,
.box,
.hero,
.container {
  position: relative;
  z-index: 1;
}