* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: url('/Grafik/main.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 0.5rem 2rem;
  position: relative;
  text-align: right;
}



.title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.back-button {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background-color: #444;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.back-button:hover {
  background-color: #222;
}

main {
  flex: 1;
  padding: 4rem 2rem;
  background-color: rgba(0, 0, 0, 0.6);
  margin: 2rem;
  border-radius: 15px;
  display: flex;
  gap: 2rem;
}

.content-left {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.content-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.slider {
  width: 100%;
  max-width: 320px;
  height: 420px;
  background: linear-gradient(135deg, #111, #333);
  border: 3px solid rgba(200, 200, 200, 0.5);
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 15px rgba(0,255,213,0.3);
}

.slider img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: 1.1 / 1;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  cursor: pointer;
}

.slider img.active {
  opacity: 1;
  position: relative;
}

section {
  text-align: left;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #00ffd5;
  padding-bottom: 0.5rem;
}

.name-label {
  display: inline-block;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 2px solid #00ffd5;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
  margin-top: -1rem;
}

p, li {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* 1. Allgemeine Listenpunkte entfernen */
ul {
  list-style: none; /* Entfernt die Standard-Bullets (z.B. Kreise/Scheiben) */
  padding-left: 0;
}

/* 2. Entfernt benutzerdefinierte Bullets, falls sie über ::before gesetzt wurden */
ul li::before {
  content: none; 
}


footer {
  background-color: rgba(0, 0, 0, 0.8);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #aaa;
}

@media (max-width: 768px) {
  main {
    flex-direction: column; 
    margin: 1rem;
    padding: 2rem 1rem;
  }

  /* NEU: Reihenfolge auf kleinen Bildschirmen ändern */
  .content-right {
    order: -1; /* Macht, dass content-right VOR content-left erscheint */
  }

  .content-left {
    order: 1;  /* Stellt sicher, dass content-left NACH content-right erscheint */
  }

  /* ... Ihre anderen Media Query Regeln ... */
}

/* Lebenslauf */

/* Container für die gesamte Liste */
.cv-list {
  display: grid;
  /* Definiert zwei Spalten: 
     150px für das Datum, 
     der Rest (1fr) für die Beschreibung */
  grid-template-columns: 150px 1fr;
  grid-gap: 2rem; /* Abstand zwischen den Haupteinträgen */
}

/* Jeder Eintrag ist nun eine logische Zeile im Grid */
.cv-entry {
  display: contents; /* Erlaubt Kind-Elementen, direkt ins Grid zu fließen */
  /* margin-bottom wurde aus cv-entry entfernt, da es bei display:contents ignoriert wird */
}

/* Stil für die Datums-Spalte */
.cv-dates {
  font-weight: bold;
  font-size: 1.1rem;
  color: #00ffd5; /* Akzentfarbe für das Datum */
  text-align: right;
  padding-right: 1rem;
  border-right: 1px solid rgba(0, 255, 213, 0.5); /* Visueller Trenner */
  
  /* Vertikale Ausrichtung am Anfang der Zelle */
  display: flex;
  align-items: flex-start; 
  justify-content: flex-end;
}

/* Stil für die Beschreibungs-Spalte */
.cv-description {
  padding-left: 1rem;
  margin-bottom: 2rem; /* Abstand nach jedem Eintrag */
}

/* Spezifisches Styling für die Sub-Listen im Lebenslauf (stellt sicher, dass keine Bullets kommen) */
.cv-description ul {
  margin-top: 0.5rem;
  padding-left: 0; /* Wichtig: Überschreibt padding-left von 1.5rem */
  list-style: none; /* Redundant, aber schadet nicht */
}

.cv-description ul li::before {
  content: none; /* Entfernt Bullets aus Lebenslauf-Listen */
}


/* Responsive Anpassung für kleinere Bildschirme (Mobile First) */
@media (max-width: 768px) {
  .cv-list {
    /* Wechselt zu einer Einzelspalte */
    grid-template-columns: 1fr;
    grid-gap: 1rem;
  }
  
  .cv-dates {
    /* Datum wird oben links im Eintrag angezeigt */
    text-align: left;
    border-right: none;
    padding-right: 0;
    margin-bottom: 0.5rem;
  }

  .cv-description {
    /* Beschreibung rückt unter das Datum */
    padding-left: 0;
    margin-bottom: 1.5rem;
  }
  
  /* Stellt sicher, dass das Datum und die Beschreibung als normale Blöcke fließen */
  .cv-entry {
    display: block; 
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
  }
}

.content-left a {
  color: #ffffff;
}