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

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #fff;
    text-align: center;
}

/* ---------- HEADER ---------- */
header {
    background-image: url('AI/adultlaptop.png');
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    height: 500px;
    
}
.image-source {
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-size: 0.75rem;
  color: #666;
  font-style: italic;
}

/* ---------- NAVIGATION ALT ----------*/
nav {
    background-color: #333;
}

nav ul.hauptmenue {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul.hauptmenue > li {
    position: relative;
    margin: 0 20px;
}

nav ul.hauptmenue > li > a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    display: block;
}

nav ul.hauptmenue > li > a:hover {
    text-decoration: underline;
}

/* Dropdown */
nav ul.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    list-style-type: none;
    padding: 0;
    margin: 0;
    min-width: 150px;
    z-index: 1000;
    border-radius: 0 0 5px 5px;
}

nav ul.dropdown li a {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
}

nav ul.dropdown li a:hover {
    background-color: #444;
}

/* Dropdown beim Hover anzeigen */
nav ul.hauptmenue li:hover > ul.dropdown {
    display: block;
}

/* ---------- TITEL ---------- */
h1 {
    margin: 20px 0;
    font-size: 2.5em;
}

/* ---------- MAIN MIT BANNERN ---------- */
main.mit-banner {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    font-size: 1.2em;
    gap: 20px;
}

 main {
    padding: 40px 0;
    max-width: 1200px;
    margin: auto;
  }

  .bild-container {
    text-align: center;
    margin-bottom: 40px;
  }

  .bild-container img {
    max-width: 100%;
    height: auto;
  }
  .bild-container h2 {
   font-size: 1.5em;
    margin-bottom: 10px;
  }

  .bild-2er-reihe {
      display: flex;
      justify-content: space-between;
      gap: 20px;
     flex-wrap: wrap;
     margin-bottom: 40px;
  }

  .bild-2er-reihe .einzelbild {
     flex: 1;
     text-align: center;
  }

 .bild-2er-reihe img {
     max-width: 100%;
     height: auto;
 }
 .bild-2er-reihe h2 {
    margin-bottom: 10px;
 }
/* Inhaltsteil */
.inhalt {
    max-width: 700px;
    flex: 1;
    text-align: center;
}

/* Galerie-Kacheln Übersicht */
.galerie-übersicht {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px;
  max-width: 1200px;
  margin: auto;
}

.galerie-kachel {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  background-color: #fff;
}

.galerie-kachel:hover {
  transform: scale(1.03);
}

.galerie-kachel img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.galerie-kachel h2 {
  margin: 0;
  padding: 15px;
  font-size: 1.2em;
  background-color: #333;
  color: white;
  text-align: center;
}

.galerie-kachel a {
  text-decoration: none;
  color: inherit;
  display: block;
}


/* ---------- SIDEBARS / BANNER ---------- */
.banner {
    width: 150px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    font-size: 0.9em;
    background-color: #f2f2f2;
}

.banner.links {
    background-color: #ffeedd;
}

.banner.rechts {
    background-color: #e0f7ff;
}

/* ---------- LISTE OHNE PUNKTE ---------- */
.ohne-punkte {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

/* ---------- FOOTER ---------- */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    position: relative;
    bottom: 0;
    width: 100%;
    font-size: 1em;
}

footer a {
    color: #ff9900;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
