
/*Nav Balken fixiert damit er oben immmer sichtbar ist*/
nav {
    position: fixed;     /* fixiert das Element */
    top: 0;              /* oben am Bildschirmrand */
    left: 0;
    width: 100%;         /* voller Bildschirm */
    background-color: black;
    padding: 10px 0;     /* Höhe des Balkens */
    z-index: 1000;       /* damit er über allem liegt */
}

nav ul {              /* Alle ul innerhalb der navigation */
    list-style: none; /*entfernt die Aufzählungszeichen */
    display: flex;    /* wandelt die ul in einen Flex-Container um, damit Navigation nebeneinander ist */
    padding: 0;       /* entfernt den inneren Standardabstand */
    margin: 0;        /* entfernt den äusseren Standardabstand */
    gap:20px ;        /* Abstand zwischen den Menüelementen */
    
}

/* Damit die Links nicht am Bildschirmrand kleben */
nav ul li a {
    background-color: black;
    color: white;
    text-decoration: none;
    font-size: 1em;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    padding : 10px 20px;/*Abstand links und rechts zwischen den Texten*/
    display: block;/*wichtig damit die Balken direkt anliegen*/
}

/* Hover-Effekt */
nav ul li a:hover {
    color: green; /*Link wird grün wenn die Maus in den Bereich kommt */
    
}

/* Grundlayout */
.nav__list {
  list-style: none;
  display: flex;
  gap: 16px;
  padding: 0;
  margin: 0;
}

.nav__item {
  position: relative; /* wichtig fürs Dropdown */
}

.nav__link,
.submenu__link {
  display: inline-block;
  padding: 10px 12px;
  text-decoration: none;
}

/* Submenu initial verstecken */
.submenu {
  list-style: none;
  padding: 8px;
  margin: 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;

  display: none;           /* versteckt */
  background: black;
}

/* Öffnen per Hover */
.nav__item--has-submenu:hover .submenu {
  display: block;
}

/* Öffnen per Tastatur: wenn Fokus innerhalb des Menüpunktes */
.nav__item--has-submenu:focus-within .submenu {
  display: block;
}

/* Optional: kleine Abstände & hover */
.submenu__link {
  display: block;
  padding: 8px 10px;
}

.submenu__link:hover,
.nav__link:hover {
  text-decoration: none;
}


/* Damit Platz unter den Navigation geschaffen wird*/
body {
    margin: 0;
    padding-top: 60px; /* Höhe der Navigation */
    padding-left:50px;

    position: relative;
    background-image: url("../Fotos/hintergrund.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    font-family: Arial, Helvetica, sans-serif;
    max-width: 100%;
}

body::before {
    content: "";
    position: fixed;     /* hält das Overlay beim Scrollen fixiert */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* Einstellungen für den Hintergrund/ Hintergrundbild*/
    background: rgba(255, 255, 255, 0.6); 
    /*
        0.2 = leicht heller
        0.4 = mittel hell
        0.6 = sehr hell
        Wert beliebig anpassen!
    */

    pointer-events: none;  /* verhindert Klick-Probleme */
    z-index: -1;           /* hinter Inhalt platzieren */
}

.haupttitel,
h1 {
    text-align: left;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
    width: 100%;
}

.haupttitel {
    margin-top: 100px;

}

.tablepers {
  max-width: 300px;
  margin: 5px;
  padding: 0;
  background: rgb(119, 27, 173); 
  color:#fff
}

/* jede Zeile = flex-container, aber nur in .tablepers */
.tablepers .row {
  display: flex;
  margin-bottom: 4px;
}

/* Grundstil für jede Zelle in .tablepers */
.tablepers .cell {
  padding: 4px 8px;
}

/* linke Spalte: Bezeichnungen */
.tablepers .cell[role="rowheader"] {
  font-weight: bold;
  width: 100px;
}

/* rechte Spalte: Werte, nimmt den Rest */
.tablepers .cell[role="cell"] {
  flex: 1;
}

.tablelebenslauf {
  max-width: 900px;
  margin: 5px;
  padding: 0;
  background: rgba(53, 98, 149, 0.85);
  color:#fff;
  font-size: 14px;
  border: 1px solid #444;
}


.tablelebenslauf .row.title .cell {
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  background: rgba(66, 107, 153, 0.85);
  color: #fff;
  border-bottom: 1px solid #444;

  /* Über alle 3 Spalten strecken */
  width: 100%;
}

/* jede Zeile */
.tablelebenslauf .row {
  display: flex;
  padding: 4px 0;
  border-bottom: 1px solid #444;  /* Linie zwischen den Zeilen */
}

/* Kopfzeile */
.tablelebenslauf .row.header {
  font-weight: bold;
  border-bottom: 2px solid #ccc;
}

/* Zellen in der Lebenslauf-Tabelle */
.tablelebenslauf .cell {
  padding: 2px 6px;
}

/* (falls mal rowheader in dieser Tabelle sind) */
.tablelebenslauf .cell[role="rowheader"] {
  font-weight: bold;
  width: 100px;
}

/* Spaltenbreiten */
.tablelebenslauf .row:not(.title) .cell:nth-child(1) { width: 160px; }
.tablelebenslauf .row:not(.title) .cell:nth-child(2) { flex: 2; }
.tablelebenslauf .row:not(.title) .cell:nth-child(3) { flex: 1.5; }


footer{ /*gilt für den ganzen footer Bereich*/
 
  background-color:black;
  color:white;
  text-align:right;
  padding:0.5rem;
}


footer a{  /*gilt für alle Links innerhalb des footer*/
  color:white; /*Schriftfarbe*/
  text-decoration:none; /* entfernt Texteigenschaft und underline*/
}

h1 {
  margin-bottom: 2px;
}

p {
  margin-top: 0;
}

.datum {
    font-weight: bold;
    font-size: 16px;
    width:100%;
    color: #333;
}

.schlagzeile {
    font-weight: bold;
    color: #4CAF50;
    font-size: 16px;
    display: block;
    margin-top: 1px;
}

.schlagzeilentitel {
    display: block;       /* macht aus dem span eine Zeile */
    margin-bottom: 8px;   /* Abstand nach unten */
}

.news {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.container-hobby {
    display: flex; /*Element wird zum Flex-Container */
    flex-wrap: wrap; /* Flex Elemente dürfen auf neuer Zeile dargestellt werden */
    gap: 10px; /* definiert den Abstand zwischen den Flex Elementen */
    justify-content: flex-start; /* Elemente beginnen links, Steuerung entlang der Hauptachse */ 
    align-items: flex-start; /* Elemente werden vertikal oben ausgerichtet */
    background-color: #c1dddc; /*Hintergrundfarbe*/
    padding: 10px; /*Innenabstand zwischen Rand und Inhalt */
    border-radius: 20px; /* für Runde Ecken*/
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    /* 0 → kein horizontaler Versatz */
    /*4px → Schatten nach unten*/
    /*8px → weichgezeichneter Schatten */
    /*rgba(0,0,0,0.1) → sehr dezenter schwarzer Schatten */
    width: 100%; /* genutze Breite des Containers */
    max-width: 880px; /* begrenzt die Breite egal wie gross der Bildschirm ist*/
    margin: 10px auto 20px 5px; /* Platz oben,rechts,unten,links */
}

.hobby {
    background-color: #b2b59f;
    display: flex;
    align-items: left;
    width: 1000px;
    height: auto;
    padding: 2px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    margin: 10px;
    margin-left:0px;
}


.beschreibung-hobby p {
    font-size: 14px;
    margin-left: 10px;
    margin-top:20px;
    margin-right: 10px;
    color: black;
}
.beschreibung-hobby h2 {
    
    margin-left: 10px;
}