/* 
Theme Name: CD Design 
Author: Coni Dubach
Version: 1.1
Description: Mein Theme ist für Testzwecke gebaut. Mega cool, dass ich ein eigenes Theme habe.
*/


/* Basis-Reset und Box-Modell-Anpassung */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Padding und Border in der Gesamtbreite einberechnen */
}

/* Grundstil des Body */
body {
  font-family: Arial, sans-serif;
  background-color: #fff;
  color: #000;
}

/* Begrenzung des Inhalts auf eine Maximalbreite und Zentrierung */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: center;
}

main{
  flex-direction: column;
}

/* Kopf- und Fußbereich mit Hintergrundfarbe */
.header, .footer {
  background-color: #ccc;
  width: 100%;
}


/* Linke Hälfte im Header: Logo */
.logo {
  
  width: 50%;
}

/* Rechte Hälfte im Header: Navigation */
.nav {
  width: 50%;
  text-align: right;
}

/* Textabschnitt mit Abstand */
.text-section {
  margin: 30px 0;
  clear: both; /* Trennung vom gefloateten Header */
}

.text-section h1 {
  margin-bottom: 10px;
}

.text-section p {
  margin-bottom: 10px;
}

/* Raster für Bilder: 2 Spalten mit float */
.image-grid {
  margin-bottom: 40px;
  display: flex;
  flex-flow: row wrap;
  gap: 2%;
}

/* Einzelne Bildbox als Quadrat mit Text mittig */
.image-box {
  width: 49%;         /* Zwei Boxen pro Zeile mit Abstand */
  margin-bottom:2%;
  background-color: #aaa;
  height:400px;
  position: relative;
  text-align: center;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Fußzeileninhalt */
.footer-content {
  padding: 10px 0;
  text-align: center;
  clear: both; /* Verhindert Überlappung bei float */
}

@media screen and (max-width: 800px) {
  .image-box {
    height: 300px;
  }
}
@media screen and (max-width: 600px) {
  .image-box {
    height: 200px;
    width: 100%;
  }
}