body { 
  max-width: 1200px;
  margin: 0 auto;
  background: #072358;
  color: #fff;
  font-size: 16px;
  font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* HEADER */
.header {
  background: #072358;
  padding-left: 50px;
  grid-area: header;
}

/* TYPOGRAFIE */
h4 {
  font-size: calc(1em + (24 - 10) * (100vw - 400px) / (800 - 400));
}

.text, .text_unten {
  line-height: 1.2;
  max-width: 800px;
  text-align: left;
}

.topbild {
  padding: 10px 0;
  width: 100%;
  height: auto;
  display: block;
}

/* NAVIGATION */
.navtop {
  display: flex;
  flex-wrap: nowrap; /* kein Umbruch */
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  padding: 5px;
}

.navbar {
  display: flex;
  align-items: flex-start;
}

.nav-rechts {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-rechts li {
  margin: 0;
  padding: 0;
}

.nav-rechts a {
  text-decoration: none;
  color: #FFC000;
}

.logo {
  width: auto;
  max-width: 20%;
  height: auto;
}

a {
  color: #FFC000; /* Goldgelb */
  text-decoration: underline; /* Optional: unterstreicht Links nicht */
}

a:hover,
a:focus {
  color: #e6b800; /* etwas dunkleres Goldgelb beim Hover */
  text-decoration: underline; /* Optional: unterstreicht Links beim Hover */
}

/* LAYOUT-CONTAINER */
.container,
.container2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* INHALT */
.item {
  text-align: left;
  padding: 15px;
  hyphens: auto;
  -webkit-hyphens: auto; /* Safari */
  -moz-hyphens: auto; /* Firefox */
}

.item h2 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #ffc000;
  font-size: clamp(1.1em, 2vw, 1.5em);
  text-align: center;
}

.item img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
  border-radius: 4px;
}

.item p {
  line-height: 1.3;
  font-size: 1em;
  text-align: justify;
}

/* FORMULARFELDER */
#kontaktform input,
#kontaktform textarea {
  background-color: #0e2b8a; /* Hintergrund */
  border: 1px solid #fff; /* schmaler weißer Rand */
  color: #FFFFFF;
  border-radius: 1px;
  padding: 10px 5px 5px 20px;
  font-size: 1em;
  font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin-bottom: 10px;
  box-sizing: border-box;
}

#kontaktform input:focus,
#kontaktform textarea:focus {
  border: none;
  outline: none;
  background-color: #0e2b8a;
  color: #FFFFFF;
}

/* Wenn Feld gültig ausgefüllt ist */
#kontaktform input:valid,
#kontaktform textarea:valid {
  border: none;
  outline: none;
  background-color: #0e2b8a;
  color: #FFFFFF;
}

/* Platzhalter einheitlich */
#kontaktform input::placeholder,
#kontaktform textarea::placeholder {
  color: #D3D3D3;
  font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Zweispaltige Felder gleich breit */
.form-row {
  display: flex;
  gap: 15px; /* Abstand zwischen Feldern */
}

.form-row input {
  flex: 1;
}

/* Volle Breite für Betreff und Nachricht */
.form-full input,
.form-full textarea {
  width: 100%;
}

/* BUTTON */
.button {
  background-color: #FFC000;
  color: #000000;
  padding: 10px 20px;
  border: none;
  border-radius: 1px;
  text-align: center;
  cursor: pointer;
  font-size: 1em;
}

form:valid .button {
  background-color: #FFC000; /* Goldgelb */
  color: #000000;
  cursor: pointer;
	}

.button:hover {
  background-color: #e0a800; /* etwas dunkleres Goldgelb beim Hover */
  color: #000000; /* Schwarz bleibt */
}
/* Grüne Bestätigungsmeldung */
.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 6px;
    max-width: 600px;
    margin: 40px auto;
    font-size: 1.1em;
    text-align: center;
}


/* Rote Fehlermeldung */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 6px;
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
}

/* MEDIA QUERIES */
@media (min-width: 601px) {
 .container { grid-template-columns: repeat(2, 1fr); } /* 2 gleich breite Spalten */
  .container2 { grid-template-columns: repeat(3, 1fr); } /* 3 gleich breite Spalten */
}

@media (max-width: 480px) {
  .navtop {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-rechts {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
}