/* ========== Base Styles ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --primary-color: #4ba060;
  --secondary-color: #3a8a54;
  --background-color: #f9f9f9;
  --text-color: #222;
  --sidebar-width: 200px;
  --header-height: 70px;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  min-height: 100vh;
  display: grid;
  grid-template-rows: var(--header-height) 1fr auto;
}

/* ========== Header ========== */
header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--background-color);
  border-bottom: 1px solid var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 2000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-right-placeholder {
  flex-grow: 1;
  margin-right: 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
}

/* ========== Navigation (Desktop) ========== */
nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.1rem;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s;
}

nav a:hover {
  background-color: rgba(75, 160, 96, 0.1);
  color: var(--primary-color);
}

/* ========== Sidebar ========== */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100%;
  background-color: transparent;
  padding: 20px;
  border-right: 1px dashed rgba(75, 160, 96, 0.3);
}

.right-sidebar {
  border-left: 1px dashed rgba(75, 160, 96, 0.3);
  border-right: none;
}

/* ========== Mobile Sidebar ========== */
.mobile-sidebar {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 80%;
  max-width: 300px;
  height: 100%;
  background: #ffffff;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
  padding: 2rem 1.5rem;
  flex-direction: column;
  z-index: 1500;
  border-right: 2px solid var(--primary-color);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.mobile-sidebar .close-btn {
  align-self: flex-end;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.mobile-sidebar .close-btn:hover {
  color: var(--secondary-color);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.mobile-nav a {
  font-size: 1.2rem;
  color: var(--text-color);
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 8px;
  transition: background-color 0.3s, color 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-nav a:hover {
  background-color: rgba(75, 160, 96, 0.1);
  color: var(--primary-color);
}

/* ========== Main Container & Content ========== */
.container {
  display: flex;
  width: 100%;
  min-height: calc(100vh - var(--header-height) - 60px);
}

.content {
  flex: 1;
  max-width: 1500px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* ========== Typography ========== */
h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

h2 {
  font-size: 1.8rem;
  margin: 30px 0 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
  color: var(--secondary-color);
}

p {
  margin-bottom: 15px;
  line-height: 1.7;
}

ul {
  padding-left: 30px;
  margin-bottom: 20px;
}

li {
  margin-bottom: 10px;
}

/* ========== Code Example Block ========== */
.definition {
  background-color: rgba(75, 160, 96, 0.08);
  padding: 20px;
  border-left: 4px solid var(--primary-color);
  border-radius: 0 4px 4px 0;
  margin: 20px 0;
  font-family: monospace;
  font-size: 1.2rem;
  overflow-x: auto;
}

.monospace {
  font-family: monospace;
  font-weight: bold;
}

/* ========== Footer ========== */
footer {
  text-align: center;
  padding: 20px;
  background-color: rgba(75, 160, 96, 0.05);
  border-top: 1px solid var(--primary-color);
  color: #555;
}

/* ========== Burger-Menü Button ========== */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary-color);
  background: none;
  border: none;
}

/* ========== Responsive Design ========== */
@media (max-width: 1100px) {
  :root {
    --sidebar-width: 150px;
  }
}









.flat-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #f0f0f0; /* helles Grau */
  color: #555; /* dunkleres Grau für guten Kontrast */
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
  text-decoration: none; /* falls als <a> verwendet */
  overflow: hidden;
}

.flat-button:hover {
  background-color: #e0e0e0; /* etwas dunkleres Grau beim Hover */
  color: var(--primary-color); /* Akzentfarbe beim Hover */
  transform: scale(1.03);
}

.flat-button:active {
  transform: scale(0.97);
}













@media (max-width: 1000px) {
  :root {
    --header-height: 60px;
  }
  .flat-button {
    display: none;  /* hier verstecken */
  }

  header {
    flex-direction: row;
    height: auto;
    padding: 10px 20px;
  }

  nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
    .flat-button {
    display: none;
  }

  h1 {
    font-size: 2rem;
  }
}
/* Minimalistische Sidebar-Links */
.sidebar-link {
  display: block;
  padding: 10px 16px;
  margin-bottom: 12px;
  background-color: #f0f0f0;
  color: #333;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.sidebar-link:hover {
  background-color: #e0e0e0;
  color: var(--primary-color);
  transform: translateX(4px);
}

.sidebar-link:active {
  transform: scale(0.98);
}





