:root {
  --bg-dark: #234258;
  --text-light: #ffffff;
}

/* verhindert das Springen/Zucken beim Seitenwechsel */
html {
  overflow-y: scroll;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
}

.page {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px 40px;
}

/* HEADER + MENÜ (für alle Seiten gleich) */
.logo-bar {
  background: #ffffff;
  padding: 25px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
  /* leichter Schatten unter dem weißen Menü */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.logo-bar img {
  max-height: 80px;
  height: auto;
  max-width: 100%;
}

/* Navigation */
.nav {
  display: flex;
  gap: 18px;
  font-size: 15px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: #234258;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
}

.nav a:hover {
  background: #e5edf3;
}

.nav a.active {
  background: #234258;
  color: #ffffff;
}

/* FOOTER (alle Seiten) */
.footer {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  gap: 20px;
  color: var(--text-light);
  flex-wrap: wrap;
}

.footer a {
  color: #ffffff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* INDEX + KONTAKT – Grundlayout (linke/rechte Spalte) */
.main {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Linke Textspalte (Index + Kontakt) */
.info {
  flex: 1.1;
  font-size: 16px;
  line-height: 1.6;
  min-width: 260px;
}

.info h1 {
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: 700;
}

.info p {
  margin-bottom: 4px;
}

.info p.section-space {
  margin-bottom: 18px;
}

.info strong {
  font-weight: 600;
}

.info a {
  color: var(--text-light);
  text-decoration: none;
}

.info a:hover {
  text-decoration: underline;
}

/* Rechte Bildspalte auf der Startseite */
.portrait {
  flex: 1;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  border-radius: 12px;
}

.portrait img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* KONTAKT – Kontaktkarten rechts */
.contacts {
  flex: 1.3;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  min-width: 260px;
}

.contact-card {
  background: #ffffff;
  color: #111827;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.contact-header img {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  object-fit: cover;
}

.contact-header h2 {
  font-size: 18px;
  margin: 0;
}

.contact-header p {
  font-size: 14px;
  margin-top: 3px;
  color: #6b7280;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

button,
.button-link {
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

button:hover,
.button-link:hover {
  background: #f3f4f6;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.hint {
  font-size: 12px;
  color: #6b7280;
}

/* IMPRESSUM + DATENSCHUTZ – Inhaltsbox */
.content {
  background: #ffffff;
  color: #234258;
  padding: 24px 20px 28px;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1.7;
}

.content h1 {
  font-size: 24px;
  margin-bottom: 16px;
  font-weight: 700;
}

.content h2 {
  font-size: 19px;
  margin-top: 22px;
  margin-bottom: 8px;
  font-weight: 600;
}

.content p {
  margin-bottom: 6px;
}

.content ul {
  margin-bottom: 8px;
  padding-left: 18px;
}

.content li {
  margin-bottom: 4px;
}

.content a {
  color: #234258;
  text-decoration: none;
}

.content a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .page {
    margin: 20px auto 30px;
    padding: 0 16px 30px;
  }

  .logo-bar {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-bottom: 30px;
    text-align: center;
  }

  .nav {
    justify-content: center;
  }

  .main {
    flex-direction: column;
    gap: 24px;
  }

  .portrait {
    order: -1;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .nav {
    gap: 10px;
    font-size: 14px;
  }

  .nav a {
    padding: 5px 10px;
  }

  .info h1 {
    font-size: 20px;
  }

  .content {
    font-size: 15px;
  }
}
