/* Modernisiertes und optimiertes CSS-Stylesheet */

/* Variablen */
:root {
  --primary-color: #009999;
  --secondary-color: rgba(153, 0, 0, 0.5); /* 50% Transparenz */
  --accent-color: #CCCC00;
  --light-bg: #ffffCC;
  --text-color: #000;
}

@media (max-width: 768px) {
  #Navigation {
    flex-direction: column;
  }
  #Kopfteil img {
    width: 100%;
  }
}

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

body {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 1rem;
  line-height: 1.6;
  width: 95%;
  background-color: var(--light-bg);
  color: var(--text-color);
  margin: 0 auto;
  padding: 0 1.3rem;
}

/* Kopfteil mit korrekter Höhe */
#Kopfteil {
  width: 100%;
  background: var(--primary-color); /* Türkiser Hintergrund */
  margin: 0;
  padding: 0;
  text-align: center;
}

/* Bild im Kopfteil */
#Kopfteil img {
  display: block;
  width: 90%;
  height: auto;
  margin: 0 auto;
  padding: 10px 0; /* Optional: Abstand oben/unten */
}


/* Rahmen für die Navigation */
/* Navigation - garantiert horizontal */
#Rahmen {
  background: rgba(153, 0, 0, 0.8) !important; /* Roter Hintergrund */
  width: 90%;
  margin: 0 auto;
  padding: 0;
}

#Inhalt {
  width: 100%;
  max-width: 800px;
  background-color: var(--light-bg);
  color: var(--text-color);
  padding: 1rem;
  margin: 1rem auto;
  clear: both;
  text-align: center;
  }

.nav {
  list-style: none !important;
  display: flex !important; /* Erzwingt horizontale Anordnung */
  justify-content: center !important; /* Zentriert die Buttons */
  padding: 0 !important;
  margin: 0 !important;
  background: inherit !important;
}

.nav li {
  margin: 0 10px !important; /* Abstand zwischen den Buttons */
  padding: 0.5rem 1rem !important;
  border: 1px solid #000 !important;
}

.nav a {
  color: white !important; /* Weiße Schrift */
  text-decoration: none !important;
  display: block !important;
}

.nav a:hover {
  color: #009999 !important; /* Türkis beim Hovern */
}

/* Für mobile Geräte: Vertikale Anordnung */
@media (max-width: 768px) {
  .nav {
    flex-direction: column; /* Buttons untereinander */
    align-items: center; /* Zentriert die Buttons */
  }
  .nav li {
    margin: 5px 0; /* Abstand zwischen den Buttons */
  }
}

/* Listen */
li {
  font-size: 1rem;
  list-style-type: circle;
}

li.text {
  font-size: 1.2rem;
  font-weight: bold;
  list-style-type: disc;
  margin: 1.2rem 0 0 1rem;
}

li.text2 {
  font-size: 1rem;
  font-weight: bold;
  list-style-type: disc;
  margin: 0 0 0 1rem;
}

li.klein {
  font-size: 0.95rem;
  list-style-type: square;
  margin: 0 0 0 4rem;
}

/* Absätze */
p.text {
  margin: 0 0 0 1rem;
}

p.rot {
  font-size: 1.05rem;
  color: var(--secondary-color);
  font-weight: bold;
  margin: 0 0 0 0.95rem;
}

p.Fuss {
  font-size: 0.75rem;
  color: var(--accent-color);
  font-weight: bold;
  margin: 1.2rem 0 0 0;
}

p.klein {
  font-size: 0.75rem;
  margin: 0 2rem 0 1.25rem;
}

p.centered {
  font-size: 0.75rem;
  text-align: center;
}

p.zrot {
  width: 75%;
  font-size: 1.05rem;
  font-weight: bold;
  text-align: center;
  color: var(--secondary-color);
}

p.top {
  font-size: 5rem;
  color: var(--secondary-color);
  font-weight: bold;
  letter-spacing: 0.1em;
  margin: 0.1rem 0 0.2rem 0;
}

/* Divs */
#zentriert {
  width: 75%;
  text-align: center;
  margin-top: 3rem;
}

#Rahmen {
  width: 90%;
  padding: 0;
  margin: 0 auto;
  display: block;
}

#header {
  padding: 0.2rem;
  margin: 0;
  width: 100%;
  display: block;
}

/* Überschriften */
h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  font-weight: bold;
  line-height: 1.2;  /* Zeilenabstand verkleinern */
  margin: 0.5rem 1rem;  /* Abstand oben/unten */
}

h2 {
  font-size: 2rem;
  color: var(--primary-color);
  text-align: center;
  letter-spacing: 0.05em;
  margin: 0.5rem 0 0.1rem 0;
}

h3 {
  font-size: 2.5rem;
  color: rgba(153, 0, 0, 0.8);
  font-weight: bold;
  line-height: 1.2;
  margin: 1.5rem 0 0 0;
}

h4 {
  font-size: 0.95rem;
  color: var(--primary-color);
  font-weight: bold;
  margin: 0 0 0 0.95rem;
}

h5 {
  font-size: 1.3rem;
  color: var(--text-color);
  font-weight: bold;
  margin: 0 0 0 0.95rem;
}

h6 {
  font-size: 1rem;
  color: var(--text-color);
  font-weight: normal;
  margin: 0 0 0 0.95rem;
}

address {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dotted var(--text-color);
}

p.ident {
  margin: 0.5rem 0;
  text-indent: 3rem;
  color: var(--secondary-color);
}

