﻿/* Grundlayout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: rgb(203, 206, 217);
  font-family: Verdana, sans-serif;
  color: #222222;
  line-height: 1.6;
  padding: 30px 15px;
}

/* Fade-in */
.fade-container {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-container.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Schwebender Container */
.page-container {
  width: min(1200px, 100%);
  margin: 0 auto;
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  overflow: hidden;
}

/* Header */
.site-header {
  background-color: rgb(51, 67, 127);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 30px;
}

.header-left p {
  font-size: 1rem;
  font-weight: bold;
}

.header-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.header-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
}

.header-nav a:hover,
.header-nav a:focus {
  text-decoration: underline;
}

/* Titelbereich */
.title-section {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 5% 30px 30px 30px;
  background-color: #ffffff;
}

.title-image {
  flex: 0 0 220px;
}

.title-image img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #cccccc;
}

.title-text {
  flex: 1;
}

.title-text h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  text-align: left;
}

.title-text h2 {
  font-size: 1.4rem;
  font-weight: normal;
  text-align: left;
}

/* Hauptbereich */
.main-content {
  display: grid;
  grid-template-columns: 18% 60% 18%;
  gap: 20px;
  padding: 0 30px;
}

.column {
  border-top: 6px solid #444444;
  border-bottom: 6px solid #444444;
  padding: 25px 20px;
}

.left-column {
  background-color: rgb(228, 230, 242);
}

.middle-column {
  background-color: rgb(240, 240, 240);
}

.right-column {
  background-color: rgb(217, 223, 203);
}

/* Linkbereiche */
.link-box + .link-box {
  margin-top: 28px;
}

.link-box h2 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.link-box ul {
  list-style: none;
  padding-left: 0;
}

.link-box li {
  margin-bottom: 2%;
}

.link-box li::before {
  content: "• ";
  color: #222222;
  font-weight: bold;
}

.link-box a {
  color: #1f2f6b;
  text-decoration: none;
}

.link-box a:hover,
.link-box a:focus {
  text-decoration: underline;
}

/* Mittlere Spalte */
.content-header {
  margin-bottom: 24px;
}

.pre-heading {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.content-header h1 {
  font-size: 2rem;
  line-height: 1.2;
}

.intro-section {
  margin-bottom: 28px;
}

.intro-section h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.intro-section p {
  min-height: 120px;
}

.keyword-block {
  margin-bottom: 24px;
}

.keyword-block h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.keyword-block p {
  margin-bottom: 2%;
}

.middle-footer-links {
  margin-top: 30px;
  text-align: center;
}

.middle-footer-links a {
  display: inline-block;
  color: #1f2f6b;
  text-decoration: none;
  margin: 8px 0;
  font-weight: bold;
}

.middle-footer-links a:hover,
.middle-footer-links a:focus {
  text-decoration: underline;
}

.flag-link {
  display: block;
}

.flag-link img {
  width: 42px;
  height: auto;
  display: inline-block;
  margin-top: 8px;
}

/* Footer */
.site-footer {
  margin-top: 5%;
  background-color: rgb(51, 67, 127);
  padding: 20px 30px;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  text-decoration: underline;
}

/* Fokus sichtbar */
a:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Tablet */
@media (max-width: 992px) {
  .main-content {
    grid-template-columns: 25% 50% 25%;
  }

  .title-section {
    gap: 20px;
  }

  .title-image {
    flex: 0 0 180px;
  }

  .content-header h1 {
    font-size: 1.7rem;
  }
}

/* Smartphone */
@media (max-width: 768px) {
  body {
    padding: 15px 10px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .title-section {
    flex-direction: column;
    align-items: flex-start;
    padding: 5% 20px 20px 20px;
  }

  .title-image {
    flex: none;
    width: 100%;
    max-width: 320px;
  }

  .main-content {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .column {
    padding: 20px 16px;
  }

  .site-footer {
    padding: 20px;
  }

  .site-footer nav {
    flex-direction: column;
    gap: 12px;
  }
}
