body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  display: flex;
  background: #f4f4f4;
}

.sidebar {
  width: 250px;
  background: #2c3e50;
  color: white;
  padding: 20px;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar h2 {
  font-size: 18px;
  margin-bottom: 15px;
}

.sidebar div {
  margin-bottom: 10px;
  font-size: 14px;
}

.content {
  max-width: 800px;
  margin: 100px auto;
  padding: 20px;
  text-align: center;
}

.week {
  background: white;
  margin-bottom: 10px;
  padding: 15px;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.week:hover {
  background: #ecf0f1;
}

.days {
  display: none;
  margin-top: 10px;
  padding-left: 20px;
}

.day {
  background: #ffffff;
  margin: 5px 0;
  padding: 10px;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: 0.2s;
}

.day:hover {
  background: #e3f2fd;
}

.modal {
  display: none;
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  z-index: 10;
  width: 300px;
}

.modal textarea {
  width: 100%;
  height: 120px;
}

.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 5;
}

button {
  margin-top: 10px;
  padding: 5px 10px;
}

.export-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
  margin-top: 20px;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  padding: 10px 20px;
  z-index: 20;
}

.menu-toggle {
  font-size: 22px;
  cursor: pointer;
  user-select: none;
  background: #2c3e50;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
}

.dropdown {
  display: none;
  position: absolute;
  top: 50px;
  right: 20px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  min-width: 160px;
  z-index: 100;
  overflow: hidden;
}

.dropdown a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

.dropdown a:hover {
  background-color: #f2f2f2;
}

.tag {
  color: #555;
  font-size: 12px;
  margin-left: 8px;
  font-style: italic;
}

.settings {
  padding: 30px;
  display: none;
}

.settings input[type="text"] {
  width: 200px;
  margin-bottom: 8px;
}

.settings label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
} 

.auth {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #eef2f3;
  font-family: sans-serif;
}
.auth-form {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.auth-form h2 {
  margin: 0;
  text-align: center;
}
.auth-form input {
  padding: 0.5rem;
  font-size: 1rem;
}
.auth-form button {
  background: #3498db;
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 4px;
  cursor: pointer;
}
.auth-form a {
  color: #3498db;
  text-align: center;
  display: block;
}

/* ---------- Responsive Layout ---------- */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  aside {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ccc;
  }

  main {
    padding: 1rem;
  }
}

/* ---------- Dark Mode ---------- */
body.dark-mode {
  background: #121212;
  color: #f0f0f0;
}

body.dark-mode .card {
  background-color: #1e1e1e;
  color: #ffffff;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

body.dark-mode .cta-button {
  background-color: #444;
  color: #fff;
}

body.dark-mode .cta-button:hover {
  background-color: #666;
}

body.dark-mode .waves svg path {
  fill: #1a1a1a;
}

body.dark-mode .animated-logo svg rect {
  fill: url(#grad-dark);
}

body.dark-mode {
  background: #121212 !important;
  color: #f0f0f0 !important;
}

body.dark-mode .landing h1,
body.dark-mode .landing p,
body.dark-mode .typing-text {
  color: #f0f0f0 !important;
}

body.dark-mode .logo-emoji {
  filter: brightness(1.1) contrast(1.1);
}

body.dark-mode .landing .cta-button {
  background-color: #444;
  color: #fff;
}

body.dark-mode .landing .cta-button:hover {
  background-color: #666;
}

body.dark-mode .waves svg path {
  fill: #1a1a1a;
}
body.dark-mode .waves svg path {
  fill: #1a1a1a !important;
}

/* Button selbst anpassen */
body.dark-mode #darkmode-toggle {
  background-color: #444;
  color: #fff;
  border: none;
  box-shadow: 0 0 4px rgba(255,255,255,0.1);
}

body.dark-mode #darkmode-toggle:hover {
  background-color: #666;
}

/* ---------- Typing Effekt ---------- */
.typing-text::after {
  content: '|';
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

/* ---------- CTA Button ---------- */
.cta-button {
  background: #3498db;
  color: white;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  display: inline-block;
  margin-top: 20px;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: #2c80b4;
}

/* ---------- Waves ---------- */
.waves {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 120px;
  overflow: hidden;
  z-index: 0;
}

.waves svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- Menü Button + Toggle ---------- */
.menu-toggle {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  height: 4px;
  width: 25px;
  background: #333;
  margin: 5px 0;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  aside.collapsed {
    display: none;
  }

  aside.open {
    display: block;
  }
}

/* ---------- Schönere Landing Page (Karten-Stil) ---------- */
body.landing {
  background: linear-gradient(135deg, #d0f0fd, #ffffff);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

.landing .card {
  background: white;
  padding: 60px 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: center;
  max-width: 480px;
  width: 90%;
  animation: fadeInUp 1s ease-out;
}

.landing .logo-animated {
  font-size: 48px;
  margin-bottom: 20px;
  animation: floatLogo 3s ease-in-out infinite;
}

.landing h1 {
  margin-top: 0;
  font-size: 28px;
}

.landing p {
  font-size: 16px;
  color: #555;
}

.landing .cta-button {
  background: #3498db;
  color: white;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  margin-top: 20px;
  transition: background 0.3s ease;
}

.landing .cta-button:hover {
  background: #2c80b4;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.logo-emoji {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: floatLogo 3s ease-in-out infinite;
}

/* ---------- Dashboard Erweiterungen ---------- */
.topbar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

#darkmode-toggle {
  background: #eee;
  border: 1px solid #ccc;
  padding: 6px 10px;
  font-size: 18px;
  border-radius: 6px;
  cursor: pointer;
}

.menu-toggle {
  font-size: 20px;
  background: #eee;
  border: 1px solid #ccc;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.dropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 3.2rem;
  right: 1rem;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  z-index: 100;
}

.dropdown a {
  padding: 6px 10px;
  color: black;
  text-decoration: none;
  display: block;
  border-radius: 4px;
}

.dropdown a:hover {
  background: #f0f0f0;
}

.dropdown.open {
  display: flex;
}

.content button {
  padding: 6px 12px;
  margin: 4px;
  border-radius: 6px;
  border: none;
  background: #3498db;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

.content button:hover {
  background: #2980b9;
}

body.dark-mode .dropdown {
  background: #1e1e1e;
  border-color: #444;
}

body.dark-mode .dropdown a {
  color: #f0f0f0;
}

body.dark-mode .dropdown a:hover {
  background: #333;
}

body.dark-mode .menu-toggle,
body.dark-mode #darkmode-toggle {
  background: #333;
  border-color: #444;
  color: #f0f0f0;
}

body.dark-mode .content button {
  background: #555;
  color: white;
}

body.dark-mode .content button:hover {
  background: #777;
}

body.dark-mode .content {
  background: transparent;
}

.project-card {
  background: white;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

body.dark-mode .project-card {
  background: #1e1e1e;
  color: #f0f0f0;
  box-shadow: 0 2px 5px rgba(255,255,255,0.05);
}
