/* Basis & konsequenter reinweißer Hintergrund */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: white !important;
  background-color: white !important;
}

body {
  margin: 0;
  padding: 16px 0 40px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  color: #222222;
  background: white !important;
  background-color: white !important;
}

strong, b {
  font-weight: 600;
}

.page-wrapper {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  background: white;
}

/* Kopfbereich & Hauptnavigation */
.site-title {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 2.1em;
  line-height: 1.15;
  color: #111111;
}

.header-banner {
  display: block;
  width: 100%;
  height: auto;
  background: white;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 10px 0 6px;
  background: white;
}

.nav-links a {
  font-weight: 600;
  font-size: 1.1em;
  color: #1e3a5f;
  text-decoration: none;
  text-underline-offset: 3px;
}

.nav-links a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  color: #0f294a;
}

/* Sprachauswahl */
.language-bar {
  margin: 6px 0 22px;
  background: white;
}

.language-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78em;
  font-weight: 600;
  color: #333333;
}

.flags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.flags img {
  display: block;
  height: 36px;
  width: auto;
  border: 0;
  border-radius: 2px;
  background: white;
}

/* Zweispaltiges Hauptlayout */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 32px;
  align-items: start;
  background: white;
}

.main-content {
  min-width: 0;
  background: white;
}

.main-content h2 {
  margin: 24px 0 10px;
  font-size: 1.2em;
  line-height: 1.3;
  color: #111111;
}

.main-content p {
  margin: 0 0 14px;
  text-align: justify;
}

.main-content a {
  color: #1e3a5f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.main-content a:hover {
  color: #0f294a;
}

/* Inhaltsbilder: links, Text fließt herum, max. 50 % der aktiven Anzeigebreite */
.main-content img {
  float: left;
  width: auto;
  max-width: 50vw;
  height: auto;
  margin: 2px 18px 12px 0;
  background: white;
  border-radius: 2px;
}

/* Hinweis- und Linkboxen */
.quick-links {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-left: 3px solid #1e3a5f;
  background: white;
}

.quick-links p {
  margin: 0 0 6px;
  text-align: left;
}

.quick-links p:last-child {
  margin-bottom: 0;
}

.notice-box {
  margin: 16px 0 20px;
  padding: 12px 16px;
  border: 1px solid #cccccc;
  background: white;
}

/* Tabellen */
.table-wrap {
  clear: both;
  width: 100%;
  overflow-x: auto;
  margin: 14px 0 20px;
  background: white;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 0.95em;
}

table.data-table th,
table.data-table td {
  padding: 8px 10px;
  border: 1px solid #999999;
  text-align: left;
  background: white;
}

table.data-table th {
  font-weight: 600;
  color: #111111;
}

/* Seitenleiste */
.sidebar {
  width: 240px;
  line-height: 1.4;
  font-size: 0.95em;
  background: white;
}

.sidebar h2 {
  margin: 14px 0 4px;
  font-size: 1.02em;
  font-weight: 600;
  color: #111111;
}

.sidebar h2:first-child {
  margin-top: 0;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar li {
  margin-bottom: 3px;
}

.sidebar a {
  color: #1e3a5f;
  text-decoration: none;
  text-underline-offset: 2px;
}

.sidebar a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  color: #0f294a;
}

/* Responsive Umbruch für Tablets & Smartphones */
@media (max-width: 820px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .main-content p {
    text-align: left;
  }

  .main-content img {
    float: none;
    display: block;
    max-width: 100%;
    margin: 0 auto 14px;
  }
}