* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  width: 100%;
  height: auto;
}

body {
  font: 100%/1.5 Verdana, Helvetica, Arial, sans-serif;
  color: #000000;
  background-color: #fff;
}

/* =================== main =================== */

main {
  width: 90%;
  max-width: 960px;
  min-width: 400px;
  margin: 2em auto;
}

/* ========================== nav ========================== */

nav ul {
  list-style-type: none;
  /* hier flexbox für das Menü definieren! */
  display: flex;
  gap: 20px;
  justify-content: end;
  align-items: center;
}

nav li.meinLogo {
  /* das Logo muss via CSS nach links gesetzt werden */
 margin-right: auto;
  img {
    width: 70px;
  }
}

nav li.current {
  font-weight: bold;
  border-bottom: 3px solid;
}

/* =========================== nav links =========================== */

nav a:link {
  color: #ffffff;
  text-decoration: none;
}

nav a:visited {
  color: #000000;
  text-decoration: none;
}

nav a:hover,
nav a:focus {
  color: red;
}

/* ============================= inhalt ============================= */

.inhalt {
  margin-top: 3em;

  a:link {
    color: black;
  }
  a:visited {
    color: #040404;
  }
  a:hover,
  a:focus {
    color: red;
  }
}

h2 {
  font-size: 100%;
}

article {
  margin-top: 3em;
  div {

    display: flex;
    gap: 20px;
    align-items: top;
    div {
    display: flex;
    gap: 10px
}

/* Ausrichtung an der oberen Kante */
div.flex-start {
    /* Default-Settings, müsste nicht extra eingestellt werden */
    align-items: flex-start;
}

/* Ausrichtung an der Mittellinie */
div.center {
    align-items: center;
}

/* Ausrichtung an der unteren Kante */
div.flex-end {
    align-items: flex-end;
}/* hier flexbox für Bild und Text daneben definieren! */
main {
    width: 96%;
    max-width: 960px;
    margin: 0 auto;
}

article {
    margin-bottom: 3em;

    /* Angaben für Flexbox */
    display: flex;
    align-items: flex-start;
    gap: 20px;

    /*
    entscheidende Zeilen – damit sich die Elemente
    den zur Verfügung stehenden Platz zu gleichen Teilen auf
    */
    img,
    p {
        width: 100%;
    }
}
    /* wie klappt es, dass beide Elemente nebeneinander stehen
    und den gleichen Platz benötigen? */
    figure{

    
    
      nav ul {
    list-style-type: none;

    display: flex;

    padding: 0 10px 0 0;
    /* hier das entscheidende! *
    display: flex;
    /* Abstand zwischen den Elementen */
    gap: 20px;
}

/* 
Markierung, auf welcher Seite man sich gerade befindet;
dafür habe ich bei "index.html" die Klasse "current" hinzugefügt
*/
.current {
    border-bottom: 5px solid;
    
}
    ;
    }
  }
}

figcaption {
  background-color: #000000;
  color: #ffffff;
  text-align: center;
  font-size: 90%;
  margin-top: 0;
}

/* ======================== footer ======================== */

footer {
  text-align: right;
  font-size: 80%;
  margin: 2em auto;
  padding: 1em;
  max-width: 960px;
  width: 90%;
  border-top: 3px solid #000;
}

/* ======================== bike images: uniform size ======================== */
/* Make images inside the content articles the same displayed size.
   Use object-fit to preserve a good crop when aspect ratios differ. */
.inhalt article figure img {
  width: 500px;        /* fixed display width on larger screens */
  height: 300px;       /* fixed display height to make all images equal */
  object-fit: cover;   /* crop to fill without distortion */
  display: block;
}

/* Responsive: on narrow viewports stack content and let images scale */
@media (max-width: 560px) {
  .inhalt article div {
    flex-direction: column;
    gap: 1rem;
  }
  .inhalt article figure img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}
