/* Basis-Layout */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
    font-family: sans-serif;
    background-color: #ffffff;
    color: #222; 
    padding: 0;
}

.page-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.layout-container {
    flex: 1;
}

main {
    padding: 1rem 1rem;
    /*padding-top: 80px;*/
    max-width: 1400px;
    margin: 0 auto;
    transition: margin-left 0.3s ease;
}

.site-footer {
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    background: transparent;
}

header {
    background-color: #002244; /* dunkles Blau wie bei deinem Wiki */
    color: #fff;
    height: 75px;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* damit er über allem liegt */
    display: flex;
    align-items: center;
}

header .container {
    max-width: none;     /* entfernt die Begrenzung */
    width: 100%;         /* nimmt volle Breite ein */
    /*height: 75px;
    /*position: fixed;*/
    margin: 0;
    padding: 0 1.5rem;
    border: none;
   display: flex;
   justify-content: space-between;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
}

header nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 1rem;
}

header nav a:hover {
    text-decoration: underline;
}

.benutzername {
    margin-left: 2rem;
    font-weight: bold;
    color: #e0e0e0;
    display: inline-block;
}


/* System-Messages */
.system-message-container {
  display: flex;
  height: 3rem;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0;
  background: transparent;
  margin-top: 80px;
  margin-bottom: 0;
}

.system-message {
  position: relative;
  margin: 0.5rem auto;
  padding: 0.75rem 1.25rem;
  font-weight: bold;
  border-radius: 5px;
  text-align: center;
  min-width: 200px;
  max-width: 90%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  opacity: 0.95;
}

.system-message.hidden {
  display: none;
}

/* Farben */
.system-message.info {
  background-color: #bbdefb;
  color: #0d47a1;
}
.system-message.success {
  background-color: #bbfbd0;
  color: #2ba10d;
}
.system-message.warning {
  background-color: #fff9c4;
  color: #f57f17;
}
.system-message.error {
  background-color: #ffcdd2;
  color: #b71c1c;
}



/* Statisches Geraffel / Footer */

.site-footer {
    margin-top: 40px;
    padding: 15px 0;
    border-top: none;
    font-size: 0.8rem;
    color: #666;
}

.footer-container {
    text-align: center;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    margin: 0;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-sep {
    margin: 0 8px;
    color: #aaa;
    font-weight: 300;
}


/* Navigation */
nav {
  display: inline-block;
  gap: 1rem;
}

nav a {
    display: inline-block;         /* wichtig für Hover-Hintergrund */
    color: white;
    text-decoration: none;
    margin: 0 1em;
    padding: 0.5em 1em;            /* etwas Innenabstand */
    border-radius: 4px;            /* optional: runde Ecken */
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #336699;     /* HINTERGRUND ändert sich nur beim Link */
    text-decoration: underline;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: nowrap;  /* wichtig: verhindert Umbruch */
}

.header-nav a,
.header-nav .sprachwahl-form,
.header-nav .benutzername {
    display: inline-block;
    margin: 0;
}

.sprachwahl-form select {
    padding: 0.3rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: white;
}



.movebar {
    background-color: #dfd9d9;
    color: #336699;
    border: none;
    padding: 0.0em 0em;
    margin-top: 0em;
    cursor: pointer;

}
