* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #151515;
  color: #d8c49a;
}

footer{
  background: #d8c49a;
  padding: .75rem 1rem;
  display:flex;
/*  justify-content:space-between; */
  align-items: left;
  gap: .75rem;
}

.footer-link{ 
  display: flex;
  gap: .5rem;
  align-items: left;
  text-decoration: none;
  color: #151515;
  font-weight: 500;
}

.footer-link:hover{ 
  text-decoration: underline;
}

nav {
  background-color: #d8c49a;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: bold;
  color: #151515;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #151515;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #6f959a;
}

.nav-button {
  background: none;
  border: none;
  color: #151515;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.nav-button:hover {
  color: #6f959a;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #151515;
  margin: 4px 0;
}

@media (max-width: 600px) {
  .nav-links {
     display: none;
     flex-direction: column;
     position: absolute;
     top: 60px;
     right: 0;
     background-color: #d8c49a;
     padding: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}

.page-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  flex-direction: column;
}

.generic-container {
  background-color: #1e1e1e;
  padding: 2rem;
  border-radius: 12px;
  min-width: 600px;
  max-width: 600px;
  margin: 2rem auto;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  color: #fff;
}


    .login-container, .message-container {
      background-color: #1e1e1e;
      padding: 2.5rem;
      border-radius: 12px;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
      width: 100%;
      max-width: 600px;
      margin-bottom: 2rem;
    }

    .login-container h2,
    .message-container h2 {
      margin-bottom: 1.5rem;
      text-align: center;
      color: #d8c49a;
    }

    .form-group {
      margin-bottom: 1rem;
    }

.message-view-container {
  background-color: #1e1e1e;
  border: 1px solid #d8c49a;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2rem auto;
  width: 800px;
  max-width: 800px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  color: #ffffff;
}

.message-view-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid #d8c49a;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.message-view-subject {
  font-size: 1.5rem;
  color: #d8c49a;
  margin: 0;
}

.message-view-date {
  font-size: 0.9rem;
  color: #6f959a;
}

.message-view-meta p {
  margin: 0.2rem 0;
  font-size: 0.95rem;
}

.message-view-body {
  margin: 1rem 0;
  line-height: 1.6;
}

.generic-container ul {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.generic-container li {
  margin-bottom: 0.3rem;
  color: #6f959a;
}

.generic-container a {
  margin-top: 2.5rem;
  text-decoration: none;
  color: #6f959a;
  font-weight: bold;
}

.generic-container a:hover {
  text-decoration: underline;
}

.message-view-attachments ul {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.message-view-attachments li {
  margin-bottom: 0.3rem;
}

.message-view-attachments a {
  text-decoration: none;
  color: #6f959a;
  font-weight: 500;
}

.message-view-attachments a:hover {
  text-decoration: underline;
}

.message-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.message-action-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: 500;
}

.msg-reply-btn {
  background-color: #6f959a;
  color: white;
}

.msg-reply-btn:hover {
  background-color: #5a7e82;
}

.msg-delete-btn {
  background-color: #d9534f;
  color: white;
}

.msg-delete-btn:hover {
  background-color: #c9302c;
}

/* Overlay (Hintergrund) */
.confirmation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(21, 21, 21, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* Box */
.confirmation-box {
  background: #f8f4ea;
  border: 1px solid #d8c49a;
  border-radius: 10px;
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  text-align: center;
}

/* Text */
.confirmation-title {
  margin-top: 0;
  font-size: 1.3rem;
  color: #6f959a;
}

.confirmation-message {
  margin: 1rem 0 1.5rem;
  color: #151515;
}

/* Buttons */
.confirmation-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.confirmation-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cancel-btn {
  background-color: #6f959a;
  color: white;
}

.cancel-btn:hover {
  background-color: #5a7e82;
}

.confirm-btn {
  background-color: #d9534f;
  color: white;
}

.confirm-btn:hover {
  background-color: #c9302c;
}

/* Versteckt standardmäßig */
.hidden {
  display: none !important;
}

.user-details-container {
  background-color: #1e1e1e;
  border: 1px solid #6f959a;
  border-radius: 10px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 800px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  font-family: sans-serif;
  color: #f8f4ea;
}

.user-details-title {
  font-size: 1.5rem;
  color: #d8c49a;
  margin-bottom: 1.5rem;
  text-align: center;
}

.user-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem 2rem;
}

.user-info-item {
  display: flex;
  flex-direction: column;
}

.user-info-item label {
  font-weight: bold;
  margin-bottom: 0.3rem;
  color: #6f959a;
}

.user-info-item p {
  margin: 0;
  font-size: 0.95rem;
  color: #f8f4ea;
}

.user-info-item.full-width {
  grid-column: 1 / -1;
}

.user-meta {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #aaaaaa;
  border-top: 1px solid #6f959a;
  padding-top: 1rem;
  text-align: left;
}

.user-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

.user-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.user-message-btn {
  background-color: #6f959a;
  color: white;
}

.user-message-btn:hover {
  background-color: #5a7e82;
}

.user-delete-btn {
  background-color: #d9534f;
  color: white;
}

.user-delete-btn:hover {
  background-color: #c9302c;
}

.dashboard-message-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dashboard-message-item {
  background-color: #1e1e1e;
  border: 1px solid #2c2c2c;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  color: #eaeaea;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.dashboard-message-item:hover {
  background-color: #2b2b2b;
}

.dashboard-message-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.dashboard-message-subject {
  font-weight: bold;
  color: #d8c49a;
  font-size: 1rem;
  flex-grow: 1;
}

.dashboard-message-timestamp {
  font-size: 0.85rem;
  color: #888;
  white-space: nowrap;
}

.dashboard-event-date {
  font-size: 0.85rem;
  color: #32a852;
  white-space: nowrap;
}

.dashboard-event-canceled {
  font-size: 0.85rem;
  color: #bd0b0b;
  white-space: nowrap;
}

.dashboard-message-from {
  font-size: 0.9rem;
  color: #6f959a;
}

.dashboard-container {
  min-height: 100vh;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  color: #f8f4ea;
  font-family: sans-serif;
}

.welcome-section {
  text-align: center;
  margin-bottom: 2rem;
}

.welcome-section h1 {
  font-size: 2rem;
  color: #d8c49a;
}

.welcome-section p {
  font-size: 1rem;
  color: #aaa;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.dashboard-card {
  display: flex;
  flex-direction: column;
  background-color: #1e1e1e;
  border: 1px solid #6f959a;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  flex-direction: column;
  height: 100%;
}

.dashboard-card h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #d8c49a;
}

.dashboard-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dashboard-card li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.dashboard-card a {
  color: #6f959a;
  text-decoration: underline;
}

.dashboard-card a:hover {
  color: #8fb2b7;
}
.dashboard-card-actions{
  margin-top: auto;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.dashboard-card-btn {
  background-color: #6f959a;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.dashboard-card-btn:hover {
  background-color: #5a7e82;
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.document-upload-container {
  background-color: #1e1e1e;
  border: 1px solid #6f959a;
  border-radius: 10px;
  padding: 2rem;
  max-width: 600px;
  margin: 2rem auto;
  color: #f8f4ea;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.document-upload-container h2 {
  margin-bottom: 1.5rem;
  color: #d8c49a;
  text-align: center;
}

.document-upload-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.upload-form-group {
  display: flex;
  flex-direction: column;
}

.upload-form-group label {
  font-weight: bold;
  margin-bottom: 0.4rem;
  color: #6f959a;
}

.upload-form-group input[type="file"],
.upload-form-group select {
  background-color: #2b2b2b;
  color: #f8f4ea;
  border: 1px solid #6f959a;
  padding: 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.4rem;
}

.generic-form-group select{
  background-color: #2b2b2b;
  color: #f8f4ea;
  border: 1px solid #6f959a;
  padding: 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.4rem;
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.file-name {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 0.3rem;
}

.upload-btn {
  background-color: #6f959a;
  color: white;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.upload-btn:hover {
  background-color: #5a7e82;
}


    label {
      display: block;
      margin-bottom: 0.5rem;
      color: #d8c49a;
      font-size: 0.95rem;
    }

    input[type="email"],
    input[type="password"],
    input[type="text"],
    textarea,
    button {
      width: 100%;
      padding: 0.75rem;
      border-radius: 8px;
      font-size: 1rem;
    }

    input[type="email"],
    input[type="password"],
    input[type="text"],
    textarea {
      border: 1px solid #6f959a;
      background-color: #2c2c2c;
      color: #fff;
      resize: vertical;
    }

    textarea {
      min-height: 150px;
    }

    input::placeholder,
    textarea::placeholder {
      color: #999;
    }

    .login-btn, .send-btn, .generic-form-btn {
      background-color: #6f959a;
      color: #fff;
      border: none;
      margin-top: 0.5rem;
      cursor: pointer;
      font-weight: bold;
      transition: background-color 0.3s ease;
    }

    .login-btn:hover, .send-btn:hover .generic-form-btn:hover {
      background-color: #5b7d82;
    }

    .register-btn {
      background-color: transparent;
      border: 1px solid #6f959a;
      color: #6f959a;
      margin-top: 0.5rem;
      cursor: pointer;
      font-weight: bold;
      transition: background-color 0.3s ease;
    }

    .register-btn:hover {
      background-color: #6f959a;
      color: #151515;
    }

    .attachment-label {
      display: inline-block;
      background-color: transparent;
      color: #6f959a;
      border: 1px solid #6f959a;
      padding: 0.5rem 1rem;
      border-radius: 8px;
      cursor: pointer;
      font-weight: bold;
      margin-top: 0.5rem;
      transition: background-color 0.3s ease;
    }

    .attachment-label:hover {
      background-color: #6f959a;
      color: #151515;
    }

    .attachment-label input[type="file"] {
      display: none;
    }

    .file-preview {
      margin-top: 0.75rem;
      font-size: 0.9rem;
      color: #ccc;
    }

    .file-preview span {
      display: inline;
    }

    .table-wrapper {
      width: 100%;
      overflow-x: auto;
      background-color: #1e1e1e;
      border-radius: 12px;
      padding: 1rem;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
      max-width: 800px;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      color: #d8c49a;
    }

    thead {
      background-color: #6f959a;
      color: #151515;
    }

    th, td {
      padding: 0.75rem 1rem;
      text-align: left;
      border-bottom: 1px solid #444;
    }

    tbody tr:nth-child(even) {
      background-color: #2a2a2a;
    }

    tbody tr:hover {
      background-color: #3a3a3a;
    }

.table-footer {
  display: flex;
  justify-content: flex-end; /* rechtsbündig, alternativ: center */
  margin-top: 1rem;
}

.table-action-btn {
  background-color: #6f959a;
  color: white;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.table-action-btn:hover {
  background-color: #5a7e82;
  transform: translateY(-1px);
}

.group-create-container {
  background-color: #1e1e1e;
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;
  margin: 2rem auto;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  color: #fff;
}

.group-create-container h2 {
  color: #d8c49a;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
}

.group-create-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.group-input,
.group-textarea {
  background-color: #2a2a2a;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  color: #fff;
  font-size: 1rem;
}

.group-input:focus,
.group-textarea:focus {
  outline: none;
  border-color: #6f959a;
}

.group-submit-btn {
  align-self: flex-start;
  background-color: #6f959a;
  color: white;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

.group-submit-btn:hover {
  background-color: #5a7e82;
  transform: translateY(-1px);
}

.registration-container {
  background-color: #1e1e1e;
  padding: 2rem;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  margin: 2rem auto;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  color: #fff;
}

.registration-container h2 {
  color: #d8c49a;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
}

.registration-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reg-input {
  background-color: #2a2a2a;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  color: #fff;
  font-size: 1rem;
}

.reg-input:focus {
  outline: none;
  border-color: #6f959a;
}

.reg-submit-btn {
  align-self: flex-start;
  background-color: #6f959a;
  color: white;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

.reg-submit-btn:hover {
  background-color: #5a7e82;
  transform: translateY(-1px);
}

.login-register-link {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: #bbb;
}

.login-register-link a {
  color: #6f959a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.login-register-link a:hover {
  color: #d8c49a;
}

.generic-link a {
  color: #6f959a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.generic-link a:hover {
  color: #d8c49a;
}

.container-header-generic {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1e1e1e;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  color: #d8c49a;
}

.container-title-generic {
  font-size: 1.2rem;
  margin: 0;
  color: #d8c49a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.container-close-btn {
  background: none;
  border: none;
  color: #d8c49a;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 0.5;
  line-height: 1;
  transition: color 0.2s ease;
  width: 2rem;
  flex-shrink: 0;
}

.container-close-btn:hover {
  color: #6f959a;
}

.event-layout-wrapper {
  display: flex;
  width: 100%;
  max-width: 1200px;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.event-create-container,
.participant-container {
  background-color: #1e1e1e;
  padding: 1.5rem;
  border-radius: 8px;
  flex: 1 1 300px;
  max-width: 600px;
}

.participant-container h3 {
  margin-bottom: 1rem;
  color: #d8c49a;
  font-size: 1.2rem;
}

.event-create-container h2 {
  margin-bottom: 1rem;
  color: #d8c49a;
  font-size: 1.4rem;
}

.event-form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.event-form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.event-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid #555;
  border-radius: 6px;
  background-color: #2c2c2c;
  color: #f0f0f0;
  font-size: 1rem;
}

.event-input:focus {
  outline: none;
  border-color: #6f959a;
  background-color: #2a2a2a;
}

.event-checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.event-button-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.event-submit-button {
  background-color: #6f959a;
  color: #1e1e1e;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-bottom: 0.2rem;
}

.event-submit-button:hover {
  background-color: #5a7e82;
}

.participant-tag {
  background-color: #2c2c2c;
  border: 1px solid #444;
  color: #f0f0f0;
  padding: 0.4rem 0.75rem;
  border-radius: 5px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.remove-tag {
  cursor: pointer;
  color: #d66;
  font-weight: bold;
}

.generic-select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #555;
  border-radius: 6px;
  background-color: #2c2c2c;
  color: #f0f0f0;
  font-size: 1rem;
}

.generic-select:focus {
  outline: none;
  border-color: #6f959a;
  background-color: #2a2a2a;
}

.pointer-text {
  cursor: pointer;
}

.interactive-text {
  cursor: pointer;
}

.interactive-text:hover {
  cursor: pointer;
  color: #6f959a;
}

.list-div{
  margin-top: 0.2rem;
}

.alert{
  color: #c92a2a;
}

.success{
  color: #2a9f63;
}
