/* ============================================================
   CSS-Variablen für zentrale Farben & Schrift
============================================================ */
:root {
  --color-primary: #006ab6;
  --color-primary-dark: #004f72;
  --color-link: #005a8c;
  --color-link-hover: #003d5c;
  --color-light-bg: #f9f9f9;
  --color-footer-bg: #f1f1f1;
  --color-footer-text: #777;
  --color-border: #ccc;
  --font-base: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-size-base: 16px;
  --font-size-small: 0.85em;
  --font-size-menu: 1.2rem;
}

/* ============================================================
   Allgemeines Layout
============================================================ */
body.site {
  background-color: var(--color-light-bg);
  font-family: var(--font-base);
  color: #333;
  line-height: 1.6;
  font-size: var(--font-size-base);
}

/* ============================================================
   Header
============================================================ */
.container-header {
  background-image: linear-gradient(to right top, var(--color-primary), var(--color-primary));
  font-weight: bold;
}

/* ============================================================
   Links und Tags
============================================================ */
a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

.tags a.btn {
  background-color: var(--color-primary);
  font-weight: 700;
}

/* ============================================================
   Inhalte (Artikel etc.)
============================================================ */
.com-content-article {
  background-color: #fff;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  margin-bottom: 2em;
}

.com-content-article img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1em 0;
}

/* ============================================================
   Überschriften
============================================================ */
h1, h2, h3, h4 {
  color: var(--color-primary-dark);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* ============================================================
   Menüleisten (Top, Horizontal, Sidebar)
============================================================ */
ul.menu-horizontal > li > a {
  font-size: var(--font-size-menu) !important;
}

ul.nav.nav-pills > li > a {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 3rem;
  color: var(--color-primary-dark);
  padding: 0.8em 1em;
}

ul.nav-list > li > a:hover,
ul.nav-list > li.current > a {
  background-color: #e0eff5;
  border-radius: 4px;
  color: #002c3e;
}

#header .mod-menu a {
  font-size: var(--font-size-menu) !important;
}

/* ============================================================
   Sidebar-Module
============================================================ */
div[class*="sidebar"] .moduletable {
  background-color: #fff;
  border-left: 4px solid #2074a0;
  padding: 1em;
  margin-bottom: 1.5em;
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(0,0,0,0.05);
}

/* ============================================================
   Footer
============================================================ */
#footer {
  font-size: var(--font-size-small);
  color: var(--color-footer-text);
  padding: 2em 1em;
  background: var(--color-footer-bg);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

#footer img {
  max-height: 50px;
  margin: 0 10px;
  vertical-align: middle;
}

/* ============================================================
   Responsive Design (ab max 768px)
============================================================ */
@media (max-width: 768px) {
  ul.nav.nav-pills > li > a {
    font-size: 1.5rem;
    padding: 0.5em 0.8em;
  }

  .com-content-article {
    padding: 1em;
  }

  h1, h2, h3, h4 {
    margin-top: 1em;
  }
/* --- 0) Sanity-Check: Wird die user.css geladen? --- */
#top-a { outline: 2px solid red !important; }  /* kurz sehen, ob's greift */

/* --- 1) Außenabstände der Position eliminieren --- */
#top-a { padding-top: 0 !important; padding-bottom: 0 !important; }
#top-a .moduletable, 
#top-a .mod-menu,           /* Menü-Module haben oft nav.mod-menu statt .moduletable */
#top-a .module {
  margin: 0 !important;
}

/* --- 2) Höhe wirklich erzwingen (auch für Menüs) --- */
#top-a .moduletable, 
#top-a .mod-menu, 
#top-a .module {
  display: block !important;
  height: 40px !important;
  min-height: 40px !important;
  overflow: hidden !important;  /* verhindert, dass Inhalt die Höhe sprengt */
}

/* --- 3) Falls ein Grid-/Container die Höhe festlegt --- */
/* --- 0) Sanity-Check: Wird die user.css geladen? --- */
#top-a { outline: 2px solid red !important; }  /* kurz sehen, ob's greift */

/* --- 1) Außenabstände der Position eliminieren --- */
#top-a { padding-top: 0 !important; padding-bottom: 0 !important; }
#top-a .moduletable, 
#top-a .mod-menu,           /* Menü-Module haben oft nav.mod-menu statt .moduletable */
#top-a .module {
  margin: 0 !important;
}

}

