* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff8f0;
  color: #3a2e1d;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center; /* oder flex-start; center, je nach Look */
  background-color: #6b4f2b;
  color: white;
  padding: 10px 20px;
  border-bottom: 3px solid #a97b50;
  flex-wrap: wrap; /* optional falls mobile eng wird */
}

.site-header .logo-area {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-header .site-title {
  font-size: 1.5em;
  line-height: 1.2;
}

.site-header .user-area {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.9em;
  line-height: 1.4;
}

.site-header .login-link,
.site-header .logout-link {
  color: white;
  text-decoration: none;
  font-weight: bold;
}


/* Wrapper für Hauptbereich */
.layout-wrapper {
  display: flex;
  flex: 1;
  flex-direction: row;
  min-height: 0; /* verhindert Overflow */
}

/* Sidebar */
.sidebar {
  background: #f4e4d4;
  width: 250px;
  padding: 20px;
  border-right: 4px solid #d4b48c;
}

.sidebar nav ul {
  list-style: none;
  padding: 0;
}

.sidebar nav ul li {
  list-style: none;
  width: 100%;             /* für gleichmäßige Breite */
}

.sidebar nav ul li a {
  color: #3a2e1d;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  display: flex;
  align-items: center;     /* vertikal zentriert */
  gap: 8px;                /* Abstand zwischen Icon und Text */
  height: 44px;            /* einheitliche Höhe */
  padding: 0 12px;         /* etwas Innenabstand */
  box-sizing: border-box;  /* damit padding zur Gesamtgröße zählt */
  text-decoration: none;
  color: inherit;
}

.sidebar nav ul li a:hover {
  background-color: #e0c6a8;
}

/* Hauptinhalt */
.main-content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}
/* Zentrierter Content-Bereich */
.content {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
  background: #fafafa;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* Footer */
.site-footer {
  position: relative;
  background-color: #e8d8c0;
  padding: 15px 20px;
  border-top: 3px solid #d4b48c;
  font-size: 0.9em;
  text-align: center;
  color: #5a4530;
}

.site-footer .footer-center {
  text-align: center;
}

.site-footer .footer-right {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.site-footer .footer-right a {
  color: #5a4530;
  text-decoration: none;
  font-weight: bold;
}

.site-footer .footer-right a:hover {
  text-decoration: underline;
}

/* Hamburger */
.hamburger {
  display: none;
  background: #a97b50;
  color: white;
  padding: 10px;
  font-size: 1.2em;
  cursor: pointer;
}

/* Responsiv */
@media (max-width: 768px) {
  .layout-wrapper {
    flex-direction: column;
  }

  .sidebar {
    display: none;
    width: 100%;
    border-right: none;
    border-bottom: 3px solid #d4b48c;
  }

  .sidebar.active {
    display: block;
  }

  .hamburger {
    display: block;
  }
}
