/* === Fonts laden (Fallback) === */
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:700|Lato:400,700&display=swap');

body {
  margin: 0; padding: 0;
  font-family: var(--font-body, 'Lato', sans-serif);
  font-size: var(--size-body, 16px);
  background: var(--bg-color, #fff);
  color: var(--text-color, #333);
  line-height: 1.6;
}

/* Header & Navi */
.header-container {
  background: var(--bg-color, #fff);
  padding: 0.8rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid #ddd;
  position: sticky; top: 0; z-index: 1000;
  max-width: 1000px; margin: 0 auto;
}
.logo-gesamt { max-width: 200px; width: 100%; height: auto; display: block; }
nav { display: flex; gap: 2rem; }
nav a {
  color: var(--nav-color, #777);
  text-decoration: none; font-weight: 700; font-size: 1rem;
  font-family: var(--font-body, 'Lato', sans-serif);
}
nav a:hover, nav a.active { color: var(--nav-hover, #000); }

/* Main */
main { max-width: 820px; margin: 0 auto; padding: 2rem 1rem 3rem 1rem; }

h1 {
  font-family: var(--font-headline, 'Playfair Display', serif);
  color: var(--text-color, #333);
  font-size: var(--size-h1, 24px);
  margin: 2rem 0 1rem 0;
}

/* === Banner FIX === */
.banner {
  width: 100%;
  height: 350px; /* Feste Höhe */
  object-fit: cover; /* Zuschneiden statt verzerren */
  object-position: center;
  display: block; margin: 0 auto 2rem auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

/* Tabellen */
table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
thead th { text-align: left; font-weight: 700; border-bottom: 2px solid #ddd; padding: 0.8rem 0.5rem; }
tbody td { border-bottom: 1px solid #eee; padding: 0.8rem 0.5rem; vertical-align: top; }

/* Buttons & Inputs */
button, .btn-submit {
  background: var(--accent-color, #8B5E3C);
  color: #fff; padding: 0.8rem 1.5rem; border: none; cursor: pointer;
  font-size: 1rem; font-weight: bold; border-radius: 5px;
}
input, textarea, select {
  width: 100%; padding: 0.8rem; border: 1px solid #ccc; border-radius: 5px;
  margin-bottom: 1rem; box-sizing: border-box; background: #fff;
}

/* Footer */
footer {
  background: var(--bg-color, #fff); border-top: 1px solid #ddd;
  padding: 2rem; text-align: center; margin-top: auto;
}
footer a { color: var(--nav-color, #777); text-decoration: none; margin: 0 1rem; font-weight: 600; }

/* Mobile */
@media (max-width: 768px) {
  .header-container { flex-direction: column; align-items: flex-start; }
  nav { flex-wrap: wrap; gap: 1rem; }
  .banner { height: 180px; } /* Banner kleiner am Handy */
  table, thead, tbody, th, td, tr { display: block; }
  thead tr { position: absolute; top: -9999px; left: -9999px; }
  tr { margin-bottom: 1rem; border: 1px solid #ddd; padding: 0.5rem; }
  td { border: none; position: relative; padding-left: 50%; text-align: right; }
  td:before { position: absolute; left: 10px; width: 45%; white-space: nowrap; text-align: left; font-weight: bold; content: attr(data-label); }
}