/* Grundlayout */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #eee;
    background-color: #111;
    overflow-x: hidden;
}

/* Hintergrundbild */
.background {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('../images/background.jpg') no-repeat center center/cover;
    filter: brightness(0.4);
    z-index: -1;
}

/* Header / Taskleiste */
header {
    display: flex;
    justify-content: space-between; /* Logo links, Menu rechts */
    align-items: center;
    padding: 15px 50px;
    background-color: rgba(20, 20, 20, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-sizing: border-box; /* wichtig */
}

/* Logo */
header .logo {
    font-size: 28px;
    font-weight: bold;
    color: #ff6600;
}

/* Navigation */
header nav {
    flex: 1;               /* Nimmt den restlichen Platz */
    text-align: right;     /* Menü rechts ausrichten */
}

/* Menu */
header nav ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;  /* horizontal nebeneinander */
    gap: 25px;             /* Abstand zwischen den Links */
}

header nav ul.menu li a {
    color: #eee;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

header nav ul.menu li a:hover {
    color: #ff4500;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #ff6600; /* Orange-Akzent */
}

/* Menü */
nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #eee;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff4500; /* Orange-Rot Hover */
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 35px;
    background-color: #222;
    min-width: 150px;
    border-radius: 5px;
    overflow: hidden;
}

.dropdown-content li {
    padding: 10px;
}

.dropdown-content li a {
    color: #eee;
}

.dropdown-content li a:hover {
    background-color: #333;
    color: #ff4500;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Hero */
.hero {
    text-align: center;
    padding: 200px 20px 50px 20px;
}

.hero h1 {
    font-size: 60px;
    margin: 0;
}

.hero .accent {
    color: #ff6600;
}

/*-------------------------------------------------------------------------------------------------------------------index-------------------------------------------------------------------------------------------------------------------*/
.news {
    max-width: 900px;
    margin: 0 auto 100px auto;
    padding: 20px;
}

.news-item {
    background: rgba(30, 30, 30, 0.8);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s, background 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
    background: rgba(40, 40, 40, 0.9);
}

/*-------------------------------------------------------------------------------------------------------------------server-------------------------------------------------------------------------------------------------------------------*/

.server-list {
    max-width: 1000px;
    margin: 150px auto 100px auto;
    padding: 0 20px;
}

.server-list h2 {
    color: #ff6600;
    margin-bottom: 20px;
    border-bottom: 2px solid #ff4500;
    padding-bottom: 5px;
}

.server-card {
    display: flex;
    background: rgba(30,30,30,0.8);
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, background 0.3s;
}

.server-card:hover {
    transform: translateY(-5px);
    background: rgba(40,40,40,0.9);
}

.server-card img {
    width: 180px;
    height: 120px;
    object-fit: cover;
}

.server-info {
    padding: 15px;
    flex: 1;
}

.status {
    position: relative;
    padding-right: 20px; /* Platz für den Punkt */
}

.status::after {
    content: '';
    position: absolute;
    right: 0; /* Punkt rechts vom Text */
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
}


.status.active::after {
    background-color: #0f0; /* Grün = Aktiv */
}

.status.inactive::after {
    background-color: #f00; /* Rot = Inaktiv */
}

.server-info a {
    color: #ff6600;
    text-decoration: none;
}

.server-info a:hover {
    text-decoration: underline;
}

/*-------------------------------------------------------------------------------------------------------------------news-------------------------------------------------------------------------------------------------------------------*/

.news-page {
    max-width: 900px;
    margin: 150px auto 100px auto;
    padding: 0 20px;
}

.news-page h1 {
    color: #ff6600;
    margin-bottom: 30px;
    text-align: center;
    font-size: 48px;
}

.news-item {
    background: rgba(30,30,30,0.8);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s, background 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
    background: rgba(40,40,40,0.9);
}

.news-item h2 {
    color: #ff6600;
    margin-top: 0;
}

.news-item .date {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 10px;
}

/*-------------------------------------------------------------------------------------------------------------------calendar-------------------------------------------------------------------------------------------------------------------*/

.calendar {
    max-width: 900px;
    margin: 150px auto 100px auto;
    padding: 0 20px;
    text-align: center;
}

.calendar h1 {
    color: #ff6600;
    margin-bottom: 30px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day {
    font-weight: bold;
    background: rgba(40,40,40,0.9);
    padding: 10px 0;
    border-radius: 6px;
}

.cell {
    background: rgba(30,30,30,0.8);
    min-height: 80px;
    border-radius: 6px;
    padding: 5px;
    position: relative;
    border: 2px solid transparent; /* Standard-Rand */
    color: #fff;
    font-size: 14px;
    overflow: hidden;
}

/* Heute & vergangene Tage */
.cell.today {
    font-weight: bold;
    background: rgba(255,102,0,0.15);
}
.cell.past { opacity: 0.4; }

.event.izav { border-color: #ff6600; color: #ff6600; }
.event.messen { border-color: #8000ff; color: #8000ff; }
.event.events { border-color: #ff0000; color: #ff0000; }
.event.sonstiges { border-color: #ffffff; color: #fff; }

/* Segment-Balken unten */
.segment-container {
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 6px;
    display: flex;
}

.event-segment {
    height: 100%;
}

/* Pfeile für mehrere Events */
.event-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #fff;
    cursor: pointer;
    user-select: none;
}
.event-arrow.left { left: 2px; }
.event-arrow.right { right: 2px; }

/* Textcontainer oder Tooltip */
.event-text-container {
    margin-top: 18px; /* Abstand über Segmenten */
    font-size: 10px;
    color: #fff;
}

/* Tooltip für Event-Titel beim Hover */
.tooltip {
    visibility: hidden;
    background-color: #222;
    color: #fff;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 4px;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 10;
}
.cell:hover .tooltip { visibility: visible; }

/* Leere Felder */
.cell.empty { background: transparent; }

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.month-btn {
    background: none;
    border: 2px solid #ff6600;
    color: #ff6600;
    font-size: 20px;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}
.month-btn:hover:not(:disabled) {
    background: #ff6600;
    color: #111;
}
.month-btn:disabled { cursor: not-allowed; opacity: 0.5; }

.event-text-container {
    position: relative;
    z-index: 2;
    margin-top: 5px;
    font-size: 10px;
    color: #fff;
    word-break: break-word;
}

.segment-container { position: absolute; bottom: 2px; left: 0; width: 100%; height: 6px; display: flex; z-index: 1; }
.event-segment { height: 100%; }

.event-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #fff;
    user-select: none;
}
.event-arrow.left { left: 2px; }
.event-arrow.right { right: 2px; }


.calendar-legend {
    max-width: 900px;
    margin: 30px auto;
    padding: 15px 20px;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid #ff6600;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.1);
}

.calendar-legend h3 {
    color: #ff6600;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 1px;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #fff;
    background: rgba(40, 40, 40, 0.7);
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-color {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #fff;
}

/* Farben zuordnen */
.legend-color.izav {
    background-color: #ff6600;
    border-color: #ff6600;
}

.legend-color.messen {
    background-color: #8000ff;
    border-color: #8000ff;
}

.legend-color.events {
    background-color: #ff0000;
    border-color: #ff0000;
}

.legend-color.sonstiges {
    background-color: #ffffff;
    border-color: #ffffff;
}
/*-------------------------------------------------------------------------------------------------------------------login-------------------------------------------------------------------------------------------------------------------*/

.login-container {
  max-width: 400px;
  margin: 150px auto;
  padding: 30px;
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid #ff6600;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 102, 0, 0.2);
  text-align: center;
}

.login-container h2 {
  color: #ff6600;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.form-group {
  text-align: left;
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  color: #fff;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 10px;
  background: rgba(40, 40, 40, 0.9);
  border: 1px solid #555;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus {
  border-color: #ff6600;
}

.login-btn {
  width: 100%;
  background: #ff6600;
  color: #111;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.login-btn:hover {
  background: #e55a00;
}

.login-info {
  margin-top: 15px;
  color: #ccc;
  font-size: 0.85rem;
}

.login-info a {
  color: #ff6600;
  text-decoration: none;
}

.login-info a:hover {
  text-decoration: underline;
}

.back-btn {
  width: 100%;
  margin-top: 10px;
  background: #555;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.back-btn:hover {
  background: #ff6600;
  color: #111;
}


/*-------------------------------------------------------------------------------------------------------------------impressum-------------------------------------------------------------------------------------------------------------------*/

#impressum-container {
    max-width: 1000px;
    margin: 80px auto 40px auto;
    background: rgba(20, 20, 20, 0.9);
    border: 2px solid #ff6600;
    border-radius: 12px;
    padding: 30px;
    color: #ddd;
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.15);
}

#impressum-container h2 {
    color: #ff6600;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

/* Oberer Teil in einer Reihe */
.impressum-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.impressum-top p {
    line-height: 1.6;
    margin: 0;
}

.impressum-top strong {
    display: block;
    margin-bottom: 5px;
    color: #ff6600;
}

/* Unterer Teil */
.impressum-bottom p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.impressum-bottom strong {
    color: #ff6600;
}

#impressum-container a {
    color: #ff6600;
    text-decoration: none;
}

#impressum-container a:hover {
    text-decoration: underline;
}

/*-------------------------------------------------------------------------------------------------------------------diagram-------------------------------------------------------------------------------------------------------------------*/

.chart-section {
    max-width: 800px;
    margin: 20px auto;
    text-align: center;
}

.bar-charts {
    max-width: 1000px;
    margin: 40px auto;
}

.bar-chart-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.chart-box {
    background: rgba(30,30,30,0.8);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.chart-box h3 {
    text-align: center;
    margin-bottom: 10px;
}

.filter-section {
    text-align: center;
    margin: 20px 0;
}

.filter-section select {
    padding: 8px 12px;
    font-size: 1rem;
    border-radius: 6px;
    background: #222;
    color: #fff;
    border: 1px solid #444;
}

/*-------------------------------------------------------------------------------------------------------------------Kalender bearbeiten-------------------------------------------------------------------------------------------------------------------*/

 .event-editor { max-width: 900px; margin: 50px auto; }
    .date-block {
      background: #222;
      padding: 10px;
      margin-bottom: 20px;
      border-radius: 8px;
    }
    .date-header {
      font-weight: bold;
      font-size: 1.1em;
      margin-bottom: 8px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .event-list-item {
      background: #333;
      margin: 5px 0;
      padding: 8px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-radius: 4px;
    }
    .event-actions button {
      margin-left: 5px;
      background: none;
      border: 1px solid #ff6600;
      color: #ff6600;
      padding: 3px 6px;
      cursor: pointer;
      border-radius: 4px;
    }
    .event-actions button:hover {
      background: #ff6600;
      color: #000;
    }
    .add-event-form {
      display: flex;
      gap: 10px;
      margin-top: 8px;
    }
    .add-event-form input {
      flex: 1;
      padding: 5px;
    }