/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #214F64;
  --color-dark: #022953;
  --color-text: #000000;
  --color-text-muted: #666666;
  --color-accent: #99CCFF;
  --color-red: #CC0000;
  --color-green: #006600;
  --font-main: Verdana, Arial, Helvetica, sans-serif;
}

body {
  font-family: var(--font-main);
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-text);
  background: #fff;
}

img {
  border: none;
  max-width: 100%;
  height: auto;
}

/* === Skip Link (Barrierefreiheit) === */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  font-size: 12px;
  z-index: 100;
}
.skip-link:focus {
  top: 0;
}

/* === Page Wrapper === */
.page-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

/* === Header === */
.header-panorama {
  display: block;
  width: 100%;
  height: auto;
}

/* === Navigation === */
nav {
  background: var(--color-primary);
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
}

nav ul li {
  flex: 1;
}

nav ul li a {
  display: block;
  padding: 0 4px;
  height: 30px;
  line-height: 30px;
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
  transition: background 0.15s;
}

nav ul li a:hover {
  background: var(--color-dark);
  color: var(--color-accent);
}

nav ul li a[aria-current="page"] {
  background: var(--color-dark);
  color: var(--color-accent);
  font-weight: bold;
}

/* === Header Title Image === */
.header-title {
  display: block;
  width: 100%;
  height: auto;
}

/* === Main Layout === */
main {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 15px 10px 10px 0;
}

.content {
  flex: 1;
  min-width: 0;
  padding: 0 10px;
}

aside {
  flex-shrink: 0;
  width: 320px;
  text-align: right;
}

aside img {
  display: block;
  margin-left: auto;
}

/* === Typography === */
h1 {
  font-size: 15px;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 0.8em;
  line-height: 1.3;
}

h2 {
  font-size: 13px;
  font-weight: bold;
  color: var(--color-text);
  margin: 1em 0 0.4em;
}

h3 {
  font-size: 12px;
  font-weight: bold;
  color: var(--color-text);
  margin: 0.8em 0 0.3em;
}

p {
  margin-bottom: 0.8em;
  font-size: 12px;
}

strong {
  font-weight: bold;
}

em {
  font-style: italic;
}

/* === Inline-Bilder im Fließtext === */
.float-left {
  float: left;
  margin: 0 1em 0.5em 0;
}

/* === Links === */
a {
  color: var(--color-text);
  text-decoration: underline;
}
a:hover {
  color: var(--color-text-muted);
}
a:visited {
  color: var(--color-text-muted);
}

/* === Organisationsliste (ga.html) === */
.org-list {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.5em;
}

.org-list td {
  padding: 0.4em 0.5em 0.4em 0;
  vertical-align: top;
  font-size: 12px;
}

.org-list .org-name {
  width: 45%;
  font-weight: bold;
}

.org-list .org-info {
  width: 55%;
}

.org-divider {
  border-top: 1px solid #ccc;
}

/* === Bücherliste (buecher.html) === */
.book-entry {
  margin-bottom: 0.8em;
}

/* === Intro-Zitat === */
.intro-quote {
  font-size: 15px;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 0.6em;
}

/* === Footer === */
footer {
  border-top: 1px solid #ccc;
  padding: 10px;
  text-align: center;
  font-size: 11px;
  color: var(--color-text);
  margin-top: 10px;
}

/* === Impressum / Datenschutz === */
.legal-section h2 {
  font-size: 12px;
  font-weight: bold;
  margin: 1em 0 0.3em;
}

.dsgvo-placeholder {
  background: #fff3cd;
  border: 1px solid #ffc107;
  padding: 10px;
  margin: 1em 0;
  font-size: 12px;
  color: #856404;
}

/* === Cookie Notice === */
#cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  padding: 10px 16px;
  font-size: 11px;
  z-index: 999;
  flex-wrap: wrap;
}

#cookie-notice p {
  margin: 0;
  font-size: 11px;
  color: #fff;
}

#cookie-notice a {
  color: var(--color-accent);
}

#cookie-notice-close {
  background: #fff;
  color: var(--color-primary);
  border: none;
  padding: 4px 12px;
  font-size: 11px;
  font-family: var(--font-main);
  cursor: pointer;
  font-weight: bold;
  flex-shrink: 0;
}

#cookie-notice-close:hover {
  background: var(--color-accent);
}

/* === Responsive === */
@media (max-width: 768px) {
  nav ul {
    flex-wrap: wrap;
  }

  nav ul li {
    flex: none;
  }

  nav ul li a {
    height: auto;
    line-height: 1.4;
    padding: 6px 8px;
  }

  main {
    flex-direction: column;
    padding: 10px;
  }

  aside {
    width: 100%;
    text-align: center;
    margin-top: 15px;
  }

  aside img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .float-left {
    float: none;
    display: block;
    margin: 0 auto 1em;
  }
}
