/* Überschriften mit Serifenschrift, Body mit Sans-Serif */
body {
  font-family: Arial, sans-serif;
}
h2, .content h1 {
  font-family: Georgia, serif;
}

/* Mehr Abstand über jeder Sektion */
h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

/* Container für Sidebar + Content */
.container {
  display: flex;
  min-height: 100vh;
  gap: 2rem; /* statt starrer margin: fügt 2rem Abstand zwischen Sidebar und Content ein */
}

/* Sidebar */
.sidebar {
  width: 200px;
  background: #f5f5f5;
  padding: 1rem;
}

/* Navigation */
.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li + li {
  margin-top: 0.5rem;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
}

/* Summary-Pfeil anpassen */
.nav-menu summary {
  cursor: pointer;
  list-style: none;
  padding: 0.5rem 1rem;
}

.nav-menu details > summary::-webkit-details-marker {
  display: none; /* Standard-Dreieck ausblenden */
}

.nav-menu details > summary::before {
  display: inline-block;
  margin-right: 0.5rem;
  transform: rotate(0deg);
  transition: transform 0.2s;
}

.nav-menu details > summary::after {
  content: "▶";
}

.nav-menu details[open] > summary::before {
  transform: rotate(90deg);
}

/* Abstand unter dem Hauptpunkt “Projekte” */
.nav-menu details > summary {
  margin-bottom: 0.75rem; /* Luft nach unten vor den Child-Links */
  font-weight: bold;
}

/* Optional etwas Einzug für Kinder */
.nav-menu details ul {
  padding-left: 1.5rem;
  margin: 0.25rem 0;
}

/* Content-Bereich */
.content {
  flex: 1;
  padding: 2rem;  /* oben/rechts/unten/links – sorgt dafür, dass nichts am Bildschirmrand klebt */
}

/* h1 größer machen */
.content h1 {
  font-size: 2.5rem;
  margin-bottom: 4rem; /* margin-bottom = Abstand nach der Überschrift */
  line-height: 1.2;
}

/* Abstand nach h1 */
.content h1 + p {
  margin-top: 2rem; /* margin-top = Abstand vor dem ersten Absatz */
}

/* Abstand vor Feature-Image-Row */
.content p + .feature-image-row {
  margin-top: 3rem; /* margin-top = Abstand zwischen Absatz und Liste/Bild-Row */
}

/* Flex-Layout für Features + Bild */
.feature-image-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

/* Linke Seite: Liste + Text */
.feature-text-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Feature-Liste */
.inline-features {
  list-style: none;
  margin: 0;
  padding: 0;
}

.inline-features li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.inline-features li::before {
  content: attr(data-emoji);
  margin-right: 0.5rem;
}

/* „Neugierig…“-Text */
.after-features {
  margin-top: 4.5rem;  /* ca. drei Leerzeilen *//* margin-top = Abstand zwischen Liste und Call‑to‑Action */
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.5;
}

/* Bild im Flex-Container */
.feature-image-row img {
  max-width: 40%;
  height: auto;
  margin-left: 0;
  margin-right: 2rem; /* fügt rechts Puffer zwischen Bild und Bildschirm-Rand hinzu */
}

/* Zwischen aufeinanderfolgenden .after-features-Absätzen auf Minimum reduzieren */
.after-features + .after-features {
  margin-top: 0;       /* keine Lücke zwischen diesen beiden */
}

/* Falls du auch zwischen zweiter und dritter Zeile explizit minimal Abstand willst: */
.after-features + .after-features + .after-features {
  margin-top: 0;       /* ebenfalls kein Abstand */
}

/* Navigation allgemein */
.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin-bottom: 0.5rem;
}

/* Link-Styling */
.nav-menu a {
  text-decoration: none;
  color: #333;
}

/* Aktiv markieren */
.nav-menu .active > a {
  font-weight: bold;
}

/* Sub-List (Kinder) einrücken */
.nav-menu ul ul {
  padding-left: 1rem;
  margin-top: 0.25rem;
}

/* Optional: kleinere Schrift für Unterpunkte */
.nav-menu ul ul a {
  font-size: 0.9rem;
}

/* Sidebar: Inhalt horizontal zentrieren und oberen Abstand manuell setzen */
.sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;      /* zentriert alle Kinder (die nav) horizontal */
  padding-top: 7rem;        /* <–– hier den Abstand vom oberen Rand anpassen */
  font-size: 1.1rem;        /* Gesamtgröße der Sidebar-Schrift anpassen */
}

/* Navigations-Liste ebenfalls mittig ausrichten */
.nav-menu {
  width: 100%;              /* volle Breite des Sidebars */
}

.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;              /* damit align-items greift */
  display: flex;
  flex-direction: column;
  align-items: center;      /* zentriert die Listeneinträge */
}

/* Hauptkategorien fett */
.nav-menu > ul > li > a {
  font-weight: bold;
}

/* Extra Abstand zwischen Top-Level-Eintrag und Unterliste */
.nav-menu > ul > li > ul {
  margin-top: 1rem;  /* hier den Abstand nach Bedarf anpassen */
}

/* Flex-Container für Über-mich-Header */
.about-header {
  display: flex;
  align-items: center;      /* richten Text und Bild vertikal mittig aus */
  justify-content: flex-start;                /* Abstand zwischen Text und Bild */
  margin-bottom: 2rem;      /* Abstand nach unten */
}

/* Textbereich nimmt den verfügbaren Raum */
.about-text {
  flex: 0 1 auto;
  margin-right: 5rem;
  line-height: 1.4;
  font-size: 1rem;
}

/* Foto-Bereich */
.about-photo img {
  max-width: 200px;         /* gleiche Größe wie vorher */
  border-radius: 100px;
  display: block;
  margin-left: -1.5rem;
}

/* Buttons für About-Page CTA */
.about-cta {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
}

.btn-contact {
  background-color: #6664ce;
  color: #fff;
}

.btn-dashboard {
  background-color: #6664ce;
  color: #fff;
}

.btn-github {
  background-color: #6664ce; 
  color: #fff;
}

/* Hover-Effekte */
.btn-contact:hover,
.btn-dashboard:hover,
.btn-github:hover, {
  opacity: 0.9;
}

.nav-menu .active > a { 
  border-left: 4px solid #007acc; 
  padding-left: 0.5rem; 
  color: #007acc;
}

/* Aktive Sidebar-Kategorie hervorheben */
.nav-menu .active > a {
  border-left: 4px solid #007acc;  /* blauer Balken */
  padding-left: 0.5rem;            /* Abstand ausgleichen */
  color: #007acc;                  /* Link-Farbe anpassen */
  background-color: rgba(0, 122, 204, 0.1); /* leichter Hintergrund */
}

/* Icon-Listen Stil */
.icon-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.icon-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}
.icon-list li i {
  margin-right: 0.5rem;
  font-size: 1.25rem;
  color: #007acc;
}

/* Abstand vor „Meine Expertise“ reduzieren */
.content h2#meine-expertise,
.content h2:has(~ ul.icon-list) { 
  margin-top: 1rem;  /* statt z.B. 3rem */
}

/* Buttons für Zertifikate */
.cert-cta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-cert {
  background-color: #6664ce;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: bold;
}

.btn-cert:hover {
  opacity: 0.9;
}
