/* === Scrollbar an der Seite einplanen, damit die website nicht hüpft === */
html {
  overflow-y: scroll;
}

/* === Schriftart lokal einbinden === */
@font-face {
    font-family: 'Lato';
    src: url('../fonts/Lato-Regular.woff2') format('woff2'),
         url('../fonts/Lato-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #222;
}

/* === Header === */
.site-header {
    background-color: #003366;
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
}

.header-left h1 {
    margin: 0;
    font-size: 1.6rem;
}

.header-left h2 {
    margin: 0;
    font-weight: normal;
    font-size: 1.1rem;
}

.header-logo img {
    height: 80px;
    width: auto;
    display: block;
}

.main-nav {
    width: 100%;
    margin-top: 1rem;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.main-nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.main-nav ul li a:hover {
    text-decoration: underline;
}

/* === Hauptbereich === */
main {
    padding: 40px;
}

.welcome {
    max-width: 800px;
    margin: auto;
}

.welcome h2 {
    font-size: 26px;
    color: #003366;
}

.welcome p {
    line-height: 1.6;
}

/* === Navigationslinks (Startseite) === */
.nav-links {
    margin-top: 40px;
    text-align: center;
}

.nav-links a {
    display: inline-block;
    margin: 10px 15px;
    padding: 10px 20px;
    background-color: #003366;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-links a:hover {
    background-color: #005599;
}

/* === Hinweis unterhalb des Logos === */
.disclaimer {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 20px;
}

/* === Footer === */
.footer {
    text-align: center;
    padding: 20px;
    background-color: #f4f4f4;
    font-size: 14px;
    color: #666;
}

/* === Cookie-Popup Styling === */
#cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1f2a44;
    color: #fff;
    padding: 1rem;
    text-align: center;
    z-index: 1000;
    font-size: 0.95rem;
    font-family: 'Lato', sans-serif;
}

#cookie-popup a {
    color: #a7d5ff;
    text-decoration: underline;
}

#cookie-popup button {
    margin-top: 0.5rem;
    padding: 0.4rem 1rem;
    background-color: #f5f5f5;
    color: #111;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
}

/* === Container Styling === */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60vh; /* passt sich an Bildschirmhöhe an */
    text-align: center;
    font-size: 1.2rem;
    color: #003366;
    padding: 2rem;
}

/* === page-content Styling === */
.page-content {
    max-width: 700px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center; /* falls ich es mal doch nicht links will */
}

.page-content a {
    color: #003366;
    text-decoration: none;
    font-weight: bold;
}

.page-content a:hover {
    text-decoration: underline;
}

.page-content.aligned {
    text-align: left;
}
/* === page-content aligned Styling === */
.page-content {
    max-width: 700px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Inhalt innerhalb des Blocks linksbündig – Block selbst bleibt mittig */
.page-content.aligned {
    text-align: left;
}

.page-content a {
    color: #003366;
    text-decoration: none;
    font-weight: bold;
}

.page-content a:hover {
    text-decoration: underline;
}

/* Bild + darunter Text – Block selbst bleibt mittig */
.portrait-block {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.portrait-block img {
  display: block;
  margin: 0 auto 20px auto;
  max-width: 220px;
  width: 100%;
  border-radius: 12px;
}

.portrait-text {
  text-align: left;
}

.portrait-text p {
  margin-bottom: 1.4em;
  line-height: 1.6;
}

/* Standard-Navigationsmenü */
#nav-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* === Burger-Menü Styling === */
.burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  padding: 0.5rem 1rem;
}

.burger-label {
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  margin-left: 0.5rem;
  opacity: 0.85;
  vertical-align: middle;
}

/* Mobilansicht aktivieren */
@media (max-width: 768px) {
  .burger {
    display: block;
    margin: 0 auto 1rem;
  }

#nav-menu {
  max-height: 0;
  opacity: 0;
  padding: 0;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

#nav-menu.open {
  max-height: 500px; /* je nach Umfang des Menüs anpassen */
  opacity: 1;
  padding: 1rem 0;
}

  .main-nav ul li a {
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
  }
}


/* === Aktive Seite hervorgehoben durch Größe und Gewicht === */
.main-nav a.active {
  font-weight: bold;
  font-size: 1.2rem;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* === Bild links oder rechts === */
.image-left {
  float: left;
  margin: 0 20px 20px 0;
  width: 300px;
  border-radius: 12px;
}

.image-right {
  float: right;
  margin: 0 0 20px 20px;
  width: 300px;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .image-left,
  .image-right {
    float: none;
    display: block;
    margin: 0 auto 20px auto;
  }
}

/* === Bild gesamet breite - Banner === */
.full-width-image {
  width: 100%;
  max-height: 400px; /* optional, Höhe begrenzen */
  object-fit: cover; /* Bild wird zugeschnitten, nicht verzerrt */
  display: block;
  margin-bottom: 2rem;
}
