:root {
  --bg: #ffffff;
  --text: #111;
  --sidebar-bg: #f9f9f9;
  --header-bg: #ffffff;
  --footer-bg: #1f2937;
  --footer-text: #ccc;
  --accent: #00c08b;
}

[data-theme="dark"] {
  --bg: #111827;
  --text: #f5f5f5;
  --sidebar-bg: #1f2937;
  --header-bg: #1f2937;
  --footer-bg: #0f172a;
  --footer-text: #888;
  --accent: #00c08b;
}

/* Grundlayout */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.2s ease, color 0.2s ease;
  min-height: 100%;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.docs-header {
  background: var(--header-bg);
  border-bottom: 1px solid #e5e5e5;
}

.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  height: 32px;
  cursor: pointer;
}

.logo-text {
  font-weight: bold;
  font-size: 1.2rem;
}

.top-nav a {
  margin: 0 1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.top-nav a.active {
  color: var(--accent);
  font-weight: bold;
}

/* Header Controls */
.controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-input {
  padding: 0.4rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f0f0f0;
}

#theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hauptlayout */
.main-layout {
  flex: 1;
  display: flex;
}

.sidebar {
  width: 260px;
  background: var(--sidebar-bg);
  min-height: 100%;
  padding: 1rem;
  border-right: 1px solid #e5e5e5;
}

.sidebar-group {
  margin-bottom: 2rem;
}

.sidebar-group strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: #999;
}

.sidebar a {
  display: block;
  padding: 0.3rem 0;
  color: var(--text);
  text-decoration: none;
}

.sidebar a:hover {
  color: var(--accent);
}

.content-area {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

/* Footer */
/* Footer Layout */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 2rem 1.5rem;
  flex-shrink: 0;
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-container h4 {
  margin-bottom: 0.5rem;
  color: #fff;
}

.footer-container a {
  color: var(--footer-text);
  display: inline-block;
  padding: 10px 0;
  font-size: 0.9rem;
  text-decoration: none;
  position: relative;
}

.footer-container a::before {
  content: "";
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: -6px;
  right: -6px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid #333;
  padding-top: 1rem;
  color: var(--footer-text);
}

/* Mobile: 2 Spalten */
@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}



/* Karten auf Übersichtsseite */
.doc-card {
  background: var(--sidebar-bg);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.2rem;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.doc-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.doc-card h3 {
  margin: 0 0 0.5rem;
}

.doc-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #666;
}

/* Miet-Button */
.rent-btn {
  background: #0074FF;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s ease-in-out;
}

.rent-btn:hover {
  background: #529ffa;
}



/* --- Mobile Anpassungen --- */
/* ---------- MOBILE-ONLY ---------- */
@media (max-width: 768px) {
  .mobile-only {
    display: inline-block;
  }

  .burger {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 0.5rem;
  }

  .top-nav,
  .sidebar {
    display: none;
  }

  .mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--sidebar-bg);
    padding: 1rem;
    border-bottom: 1px solid #ccc;
  }

  .mobile-menu.active {
    display: flex;
  }

  .mobile-menu nav a {
    padding: 0.75rem 0;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
  }

  .mobile-menu nav a:hover {
    color: var(--accent);
  }

  /* Gruppierung */
  .mobile-group {
    margin-bottom: 1.2rem;
  }

  .mobile-toggle {
    background: none;
    border: none;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.75rem 0;
    text-align: left;
    width: 100%;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-submenu {
    display: none;
    flex-direction: column;
    padding-left: 1rem;
  }

  .mobile-group.open .mobile-submenu {
    display: flex;
  }

  .mobile-submenu a {
    font-weight: normal;
    padding: 0.4rem 0;
    color: var(--text);
    text-decoration: none;
  }

  .mobile-submenu a:hover {
    color: var(--accent);
  }

  .mobile-toggle .arrow {
    transition: transform 0.2s ease;
  }

  .mobile-group.open .arrow {
    transform: rotate(180deg);
  }
}

/* ---------- DESKTOP ---------- */
@media (min-width: 769px) {
  .mobile-only {
    display: none;
  }

  .burger {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .rent-btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
}

.footer-heading {
  font-size: 1rem;        /* gleiche Größe wie dein h4 */
  font-weight: bold;
  margin-bottom: 0.75rem;
  color: #fff;
}