.custom-nav-dropdown {
  position: relative;
  display: inline-block;
  z-index: 200;
}
.nav-dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  width: 12vw;              /* schmaler: ca. 30% weniger als 18vw */
  min-width: 10vw;           /* nicht schmaler als 10% */
  max-width: 14vw;           /* nicht breiter als 14% */
  box-sizing: border-box;
  background: #181818;
  border: 1px solid #333;
  border-radius: 10px;
  box-shadow: 0 2px 12px #000a;
  padding: 1em 0.6em;        /* etwas angepasst für kleinere Breite */
  display: none;
  animation: fadeInNav 0.2s;
  z-index: 100;
}
.nav-dropdown-toggle {
  background: var(--accent);
  color: #181818;
  border: 2px solid var(--accent);
  border-radius: 8px;
  font-size: 1.6rem; /* größeres Icon */
  font-weight: bold;
  padding: 0.4rem 0.4rem; /* symmetrisch für zentriertes Icon */
  width: 12vw; /* gleiche Breite wie Dropdown */
  min-width: 10vw;
  max-width: 14vw;
  height: 3.2rem; /* etwas höher für Optik */
  display: flex;
  align-items: center;
  justify-content: center; /* Icon mittig */
  box-shadow: 0 2px 8px rgba(0,255,204,0.10);
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s, border 0.2s, transform 0.15s ease;
}
.nav-dropdown-toggle:hover {
  background: #181818;
  color: var(--accent);
  border-color: var(--accent);
}
/* Custom NAV Dropdown */
.custom-nav-dropdown {
  position: relative;
  display: inline-block;
  z-index: 200;
}
.nav-dropdown-toggle {
  background: var(--accent);
  color: #181818;
  border: 2px solid var(--accent);
  border-radius: 8px;
  font-size: 1.6rem;
  font-weight: bold;
  padding: 0.4rem 0.4rem;
  width: 12vw;
  min-width: 10vw;
  max-width: 14vw;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,255,204,0.10);
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s, border 0.2s, transform 0.15s ease;
}
.nav-dropdown-toggle:hover {
  background: #181818;
  color: var(--accent);
  border-color: var(--accent);
}
av-dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  width: 320px;
  min-width: 320px;
  background: #181818;
  border: 1px solid #333;
  border-radius: 10px;
  box-shadow: 0 2px 12px #000a;
  padding: 1em 0.5em;
  display: none;
  animation: fadeInNav 0.2s;
}
.nav-dropdown-content ul.nav-group {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}
@keyframes fadeInNav {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-dropdown-content .nav-group {
  margin-bottom: 0.5em;
  padding: 0;
}
.nav-dropdown-content .nav-title {
  cursor: pointer;
  font-weight: normal;
  padding: 0.4rem 1rem;
  background: none;
  color: var(--accent);
  border-radius: 8px;
  margin-bottom: 0.2rem;
  user-select: none;
  transition: color 0.2s;
}
.nav-dropdown-content .nav-title:hover {
  color: #00ffe0;
}
.nav-dropdown-content .nav-group[aria-expanded="false"] li:not(.nav-title) {
  display: none !important;
}
.nav-dropdown-content .nav-group[aria-expanded="true"] li:not(.nav-title) {
  display: block;
  margin: 0 0 .3em 0;
}
.nav-dropdown-content a {
  display: block;
  background: none;
  color: #fff;
  font-weight: normal;
  padding: 0.4rem 1.6rem 0.4rem 2.0rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  margin: 0.1em 0;
  transition: background 0.2s, color 0.2s;
}
.nav-dropdown-content a:hover {
  background: var(--accent);
  color: #181818;
}
.nav-dropdown-content .nav-home-icon {
  display: block;
  margin-bottom: 0.7em;
  font-size: 1.3em;
  color: var(--accent);
  background: none;
  border: none;
  text-align: left;
}
@media (max-width: 600px) {
  .nav-dropdown-content {
    min-width: 160px;
    padding: 0.5em 0.2em;
  }
  .nav-dropdown-toggle {
    font-size: 1rem;
    padding: 0.5em 1em;
  }
}
.nav-toggle-icon {
  font-size: 1em;
  font-weight: normal;
  color: var(--accent);
  vertical-align: middle;
  transition: color 0.2s;
}
/* NAV-Gruppen einklappbar */
.nav-group .nav-title {
  cursor: pointer;
  font-weight: normal;
  padding: 0.4rem 1rem;
  background: none;
  color: var(--accent);
  border-radius: 8px;
  margin-bottom: 0.2rem;
  user-select: none;
  transition: color 0.2s;
}
.nav-group .nav-title:hover {
  color: #00ffe0;
}
.nav-group {
  background: none;
  color: inherit;
  margin-bottom: 0.5em;
  padding: 0;
}
.nav-links {
  background: none;
  color: inherit;
  padding: 0;
}
.nav-group[aria-expanded="false"] li:not(.nav-title) {
  display: none !important;
}
.nav-group[aria-expanded="true"] li:not(.nav-title) {
  display: list-item;
}
.main-button {
  background: var(--accent);
  color: #181818;
  border: 2px solid var(--accent);
  font-size: 1.08rem;
  font-weight: bold;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,255,204,0.10);
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.main-button:hover, .main-button:focus {
  background: #181818;
  color: var(--accent);
  border-color: var(--accent);
}
button {
  background: #333;
  color: #fff;
  border: 2px solid #555;
  border-radius: 7px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  /* width entfernt, damit Buttons nur so breit wie nötig sind */
}
button:hover {
  background: #222;
  color: #00ffcc;
  border-color: #00ffcc;
}
button:hover {
  background: #222;
  color: #00ffcc;
}
/* Subnavigationsleiste unter dem Header */
.subnav {
  background: rgba(0, 0, 0, 0.6);
  padding: 0.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid #333;
}
.subnav a, .subnav button {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: bold;
  padding: 0.4rem 1.1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1.05rem;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  outline: none;
}
.subnav a.active, .subnav a:focus, .subnav button:focus, .subnav button.active {
  background: var(--accent);
  color: #181818;
}
.subnav a:hover, .subnav button:hover {
  background: #232323;
  color: #fff;
}
/* Modal Style */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}
.modal[style*="display: flex"] {
  display: flex !important;
}
:root {
  --accent: #00ffcc;
  --bg: #111;
  --fg: #fff;
  --box: #1c1c1c;
  --hover: #222;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100vh;
  overflow: hidden;
}

body {
  font-family: 'League Gothic', sans-serif;
  background: url('/pic/background.png') no-repeat center center fixed;
  background-size: cover;
  color: white;
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

#screenshot-wrapper {
  background: url('/pic/background.png') no-repeat center center;
  background-size: cover;
  width: 640px;
  height: 1080px;
  margin: 2rem auto;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 2px solid rgba(0, 255, 204, 0.3);
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.2);
  border-radius: 12px;
  position: relative;
}

/* Header-Navigation oben */
header {
  background: rgba(0, 0, 0, 0.75);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
}

header h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--accent);
}

nav {
  display: flex;
  gap: 0.5rem;
}

nav a {
  text-decoration: none;
}

nav button {
  background: var(--accent);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  color: #000;
}
#discordExport {
  background: linear-gradient(to right, #7289da, #99aab5);
  color: white;
  font-weight: bold;
}
.module-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.module-buttons button {
  background: var(--accent);
  color: #000;
  font-size: 1.2rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  min-width: 240px;
}
/* Subnavigationsleiste unter dem Header */


.subnav label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
}
main {
  flex: 1;
  padding: 2rem;
  overflow: hidden;
}

/* Optional für kleinere Displays */
@media (max-width: 768px) {
  main {
    padding: 1rem;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
  }
}
.greeting-box{
  font-size: 1.4rem;
  color: #00ffcc;
  background: url("https://www.transparenttextures.com/patterns/graphy.png") repeat;
  background-color: rgba(0, 0, 0, 0.75);
  padding: 1rem 2rem;
  border-radius: 10px;
  margin: 1.5rem auto 2rem auto;
  text-align: center;
  max-width: 80%;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 0 2rem;
}

.card {
  background: #1c1c1c;
  border-left: 6px solid #555;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 10px #00000050;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover {
  background: #222;
  transform: scale(1.01);
}

.card h2 {
  margin-top: 0;
  color: #00ffcc;
  font-size: 1.3rem;
}

.card p {
  margin-bottom: 0.2rem;
}

.done    { border-color: #00c853; }
.active  { border-color: #ffab00; }
.planned { border-color: #f44336; }

.status {
  font-size: 0.85rem;
  font-weight: bold;
  padding: 0.2rem 0.5rem;
  display: inline-block;
  border-radius: 5px;
}

.card.planned { border-left: 6px solid #aaa; }
.card.active  { border-left: 6px solid #ffab00; }
.card.paused  { border-left: 6px solid #607d8b; }
.card.done    { border-left: 6px solid #00c853; }

.status-select {
  font-size: 1rem;
  padding: 0.3rem 0.6rem;
  margin-top: 0.5rem;
  border-radius: 6px;
  border: none;
}
.progress-box {
  text-align: center;
  margin: 1rem auto 1rem auto;
  padding: 0.5rem 1.5rem;
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #00ffcc66;
  border-radius: 8px;
  width: fit-content;
  color: #ffffffcc;
}
.progress-wrapper {
  position: relative;
  max-width: 600px;
  margin: 1rem auto;
  background: #2b2b2b;
  border-radius: 8px;
  border: 1px solid #00ffcc66;
  height: 24px;
  overflow: hidden;
}
.progress-wrapper {
  position: relative;
  background: #2a2a2a;
  border-radius: 6px;
  overflow: hidden;
  height: 24px;
  margin-bottom: 1rem;
}

.progress-wrapper .bar {
  background: #00ff66;
  height: 100%;
  transition: width 0.3s ease;
}

.progress-wrapper .label {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  text-align: center;
  line-height: 24px;
  font-weight: bold;
  color: white;
  pointer-events: none;
}

.progress-bar {
  height: 100%;
  background: #00c853;
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.95rem;
  pointer-events: none;
}

.subproject-list.hidden {
  display: none;
}

.toggle-subprojects {
  float: right;
  font-size: 0.9rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #00ffcc;
}
.subproject-list.hidden {
  display: none;
}

.toggle-subprojects {
  float: right;
  font-size: 0.9rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #00ffcc;
  margin-left: 1rem;
}
/* Hauptnavigation */
.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none; /* ❌ kein Hintergrund */
  border-bottom: none;
  flex-wrap: nowrap;
  gap: 1rem;
}

/* Externer Abstand für den Nav-Container statt im Element selbst */
#nav {
  margin-left: auto; /* schiebt nach rechts */
  margin-right: 2%;
}

/* Logo / Startseite */
.nav-logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: white;
  background: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
}

/* Button-Links */
.nav-links a,
.nav-links select {
  background: var(--accent);
  color: black;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.nav-links a:hover,
.nav-links select:hover {
  filter: brightness(0.95);
}

/* Dropdown extra styling */
.nav-links select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg fill='%23000' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2rem;
}
.nav-logo-icon {
  font-size: 1.6rem;
  line-height: 2rem;
  text-decoration: none;
  color: white;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem; /* gleich wie select */
  width: 2.5rem;
  cursor: pointer;
}

.nav-logo-icon:hover {
  color: var(--accent);
  transform: scale(1.1);
}
.nav-home-icon {
  font-size: 1.5rem;
  color: white;
  height: 2.5rem;
  width: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  text-decoration: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.nav-home-icon:hover {
  color: var(--accent); /* z. B. #00ffcc */
}
.module-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
}

.module-button {
  background: var(--accent);
  color: black;
  font-weight: bold;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1rem;
  transition: 0.2s ease;
}

.module-button:hover {
  filter: brightness(0.9);
  transform: scale(1.03);
}
.tracker-ui {
  text-align: center;
  margin: 2rem 0 1rem 0;
}

#datePicker {
  font-size: 1rem;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  border: none;
}
#tracker-result {
  max-width: 800px;
  margin: 0 auto;
}
.tracker-entry {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #00ffcc66;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
}
.tracker-entry h3 {
  margin: 0 0 0.3rem 0;
  color: #00ffcc;
}
#liveStatus {
  font-weight: bold;
  font-size: 1rem;
}
#moduleStatusBox {
  font-size: 1.4rem;
  color: #00ffcc;
  background: url("https://www.transparenttextures.com/patterns/graphy.png") repeat;
  background-color: rgba(0, 0, 0, 0.75);
  padding: 1rem 2rem;
  border-radius: 10px;
  margin: 1.5rem auto 2rem auto;
  text-align: center;
  max-width: 80%;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
}

.module-greeting-list {
  list-style: none;
  padding: 0;
  margin: 1rem auto;
  display: inline-block;
  text-align: left;
}

.module-greeting-list li {
  font-weight: bold;
  padding: 0.2rem 1rem;
  border-radius: 8px;
  margin: 0.3rem 0;
  font-size: 1.1rem;
}

.module-greeting-list li.ok {
  background-color: #d4f7dc;
  color: #0c6c2f;
}

.module-greeting-list li.error {
  background-color: #fde0e0;
  color: #a30000;
}