body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  background: #23272f url('Hintergrund.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #f1f1f1;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Header-Bereich */
.page-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 20px 0;
  background: transparent;
  border-radius: 16px;
}

.page-logo {
  max-width: 150px;
  margin-bottom: 0;
  padding: 10px;
  background: rgba(44, 49, 58, 0.5);
  border: 2px solid #ff9800;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(255, 152, 0, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.page-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 152, 0, 0.4);
}

.page-title {
  font-size: 2.5em;
  font-weight: 300;
  margin: 30px 0 10px 0;
  color: #ff9800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.page-subtitle {
  font-size: 1.2em;
  color: #b0bec5;
  margin-bottom: 30px;
}

.back-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ff9800;
  color: #23272f;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
  transition: all 0.3s ease;
}

.back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

#nutzerInfoBox {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 160px;
  background: rgba(35, 39, 47, 0.85);
  border-radius: 0 0 0 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  padding: 10px 14px;
  gap: 8px;
  backdrop-filter: blur(10px);
}

.container, .container * { position: relative; z-index: 1; }
h2, h3 {
  color: #FFA900;
  letter-spacing: 1px;
}
h2 {
  text-align: center;
  margin-top: 20px;
  font-size: 2em;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .page-logo {
    max-width: 120px;
    padding: 8px;
  }
  
  .page-title {
    font-size: 1.8em;
  }
  
  .page-subtitle {
    font-size: 1em;
  }
  
  .back-btn {
    position: relative;
    margin-bottom: 20px;
  }
  
  #nutzerInfoBox {
    position: relative;
    border-radius: 12px;
    margin-bottom: 20px;
  }
  
  .container {
    padding: 15px;
  }
}
form {
  margin-bottom: 36px;
  background: #20232a;
  padding: 28px 28px 16px 28px;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.13);
}
label {
  display: block;
  margin-top: 18px;
  font-weight: 500;
  color: #FFA900;
  font-size: 1.08em;
}
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  margin-top: 7px;
  border: 1.5px solid #444a57;
  border-radius: 8px;
  background: #23272f;
  color: #f1f1f1;
  font-size: 1.08em;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px #0002;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #FFA900;
  outline: none;
  background: #23272f;
  box-shadow: 0 2px 12px #FFA90055;
}
textarea { resize: vertical; min-height: 48px; }
button, .reset-btn {
  background: linear-gradient(90deg, #FFA900 0%, #FFA900 100%);
  color: #23272f;
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 1.13em;
  font-weight: 700;
  margin-top: 24px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(255,152,0,0.10);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
button:hover, .reset-btn:hover {
  background: linear-gradient(90deg, #FFA900 0%, #FFA900 100%);
  color: #181b22;
  box-shadow: 0 4px 24px rgba(255,152,0,0.18);
}
.delete-btn {
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 1.08em;
  font-weight: 600;
  margin-left: 8px;
  transition: background 0.2s;
}
.delete-btn:hover {
  background: #c0392b;
}
.dl-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 22px;
  justify-content: flex-start;
}
.dl-card {
  background: #23272f;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  padding: 28px 24px 18px 24px;
  min-width: 270px;
  max-width: 340px;
  flex: 1 1 270px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1.5px solid #444a57;
}
.dl-card:hover {
  box-shadow: 0 10px 40px #FFA90033, 0 4px 24px #0008;
  transform: translateY(-3px) scale(1.025);
  border: 1.5px solid #FFA900;
}
.dl-card .dl-name {
  font-size: 1.28em;
  font-weight: 800;
  color: #FFA900;
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}
.dl-card .dl-firma {
  font-size: 1.08em;
  color: #b0b0b0;
  margin-bottom: 2px;
}
.dl-card .dl-faehigkeiten {
  font-size: 1em;
  color: #FFA900;
  margin-bottom: 2px;
}
.dl-card .dl-bewertung {
  margin-bottom: 2px;
}
.dl-card .dl-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.dl-card .dl-actions button,
.dl-card .dl-actions a {
  font-size: 1em;
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  background: #444a57;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.dl-card .dl-actions button:hover,
.dl-card .dl-actions a:hover {
  background: #FFA900;
  color: #23272f;
}
.dl-card .dl-delete {
  background: #e74c3c;
  color: #fff;
}
.dl-card .dl-delete:hover {
  background: #c0392b;
}
.small {
  font-size: 0.95em;
  color: #b0b0b0;
  margin-top: 2px;
  display: block;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 18px;
  background: #23272f;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
th, td {
  padding: 12px 10px;
  text-align: left;
}
th {
  background: #23272f;
  color: #FFA900;
  font-weight: 600;
  font-size: 1.05em;
  border-bottom: 2px solid #444a57;
  user-select: none;
}
td {
  background: #2c313a;
  border-bottom: 1px solid #353a45;
  color: #f1f1f1;
  font-size: 1em;
}
tr:last-child td {
  border-bottom: none;
}
.kontakt-link {
  color: #ff9800;
  text-decoration: underline;
  transition: color 0.2s;
}
.kontakt-link:hover {
  color: #ffb74d;
}
.stars {
  cursor: pointer;
  user-select: none;
}
.star {
  font-size: 1.3em;
  color: #444a57;
  transition: color 0.2s;
  margin-right: 2px;
}
.star.selected {
  color: #f7b731;
  text-shadow: 0 1px 4px #f7b73144;
}
@media (max-width: 900px) {
  .container { padding: 10px; }
  form { padding: 10px; }
  th, td { font-size: 0.95em; padding: 8px 4px; }
  .sortierbereich { padding: 8px 4px; }
}
@media (max-width: 600px) {
  .container { padding: 2px; }
  form { padding: 2px; }
  table, thead, tbody, th, td, tr { display: block; }
  th, td { padding: 8px 2px; }
  tr { margin-bottom: 10px; }
  th { border-bottom: none; }
  .sortierbereich { flex-direction: column; align-items: flex-start; gap: 6px; }
}
/* Modernes Card-Grid für Dienstleister */
.dl-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  justify-content: flex-start;
}
.dl-card {
  background: #23272f;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.13);
  padding: 22px 20px 16px 20px;
  min-width: 260px;
  max-width: 320px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.dl-card:hover {
  box-shadow: 0 6px 24px #ff980033, 0 2px 12px #0008;
  transform: translateY(-2px) scale(1.02);
}
.dl-card .dl-name {
  font-size: 1.25em;
  font-weight: 700;
  color: #ff9800;
  margin-bottom: 2px;
}
.dl-card .dl-firma {
  font-size: 1.05em;
  color: #b0b0b0;
  margin-bottom: 2px;
}
.dl-card .dl-faehigkeiten {
  font-size: 0.98em;
  color: #ffd180;
  margin-bottom: 2px;
}
.dl-card .dl-bewertung {
  margin-bottom: 2px;
}
.dl-card .dl-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.dl-card .dl-actions button,
.dl-card .dl-actions a {
  font-size: 0.98em;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  background: #444a57;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.dl-card .dl-actions button:hover,
.dl-card .dl-actions a:hover {
  background: #ff9800;
  color: #23272f;
}
.dl-card .dl-delete {
  background: #e74c3c;
  color: #fff;
}
.dl-card .dl-delete:hover {
  background: #c0392b;
}
@media (max-width: 900px) {
  .dl-grid { gap: 12px; }
  .dl-card { min-width: 98vw; max-width: 98vw; }
}
/* Zusätzliche CSS für übersichtliche Listenansicht */
.dl-list-minimal li {
  border-bottom: 1px solid #353a45;
  padding: 14px 0 14px 0 !important;
  transition: background 0.15s;
}
.dl-list-minimal li:last-child { border-bottom: none; }
.dl-list-minimal li:hover { background: #292d36; }
.dl-list-minimal .dl-name {
  font-size: 1.13em;
  font-weight: 700;
  color: #ff9800;
  margin-right: auto;
}
.dl-list-minimal .reset-btn {
  margin-left: auto;
}
.dl-table-minimal {
  width: 100%;
  margin: 12px 0 0 0;
  background: transparent;
  borderCollapse: collapse;
}
.dl-table-minimal td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid #353a45;
  transition: background 0.15s;
}
.dl-table-minimal td:last-child { border-bottom: none; }
.dl-table-minimal td:first-child { width: 40px; text-align: left; }
.dl-table-minimal .dl-name {
  font-size: 1.13em;
  font-weight: 700;
  color: #ff9800;
  text-align: left;
}
.dl-table-minimal .reset-btn {
  text-align: right;
}
@keyframes blink-warn {
  0%, 100% { background: #e74c3c; color: #fff; }
  50% { background: #fff; color: #e74c3c; }
}
.blink-warn {
  animation: blink-warn 1s linear infinite;
}
/* CSS für den modernen Toggle-Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 28px;
  vertical-align: middle;
}
.switch input { display: none; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #444a57;
  transition: .3s;
  border-radius: 28px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 3px;
  background: #fff;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider {
  background: #ff9800;
}
input:checked + .slider:before {
  transform: translateX(26px);
  background: #23272f;
}
.switch-label {
  margin-left: 10px;
  font-weight: 600;
  color: #ff9800;
  font-size: 1em;
  vertical-align: middle;
}
/* CSS für die Positionierung oben rechts in der Karte */
.dl-card .dl-edit-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  padding: 0;
  z-index: 2;
}
/* X-Löschbutton in minimierter Anfragekarte */
.anfrage-loeschen-btn.x-min {
  background: none !important;
  color: #e74c3c !important;
  border: none !important;
  font-size: 1.5em !important;
  font-weight: bold !important;
  cursor: pointer;
  padding: 0 10px 0 10px !important;
  border-radius: 50%;
  margin-left: auto;
  line-height: 1;
  position: static !important;
  display: flex;
  align-items: center;
  height: 34px;
}
.bewertung-form:empty {
  display: none !important;
  background: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
} 
/* Online-Status-Indikator Styling */
.online-status-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4caf50;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 8px #4caf50;
  animation: pulse 2s infinite;
}

.offline-status-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #9e9e9e;
  margin-right: 8px;
  vertical-align: middle;
}

/* Pulsierende Animation für den Online-Status */
@keyframes pulse {
  0% {
    box-shadow: 0 0 8px #4caf50;
  }
  50% {
    box-shadow: 0 0 16px #4caf50, 0 0 24px #4caf50;
  }
  100% {
    box-shadow: 0 0 8px #4caf50;
  }
}

/* Hover-Effekt für den Online-Status */
.online-status-indicator:hover {
  animation: pulse 1s infinite;
  cursor: help;
}

.offline-status-indicator:hover {
  background: #ff9800;
  cursor: help;
}

/* Tooltip für den Online-Status */
.online-status-indicator::after,
.offline-status-indicator::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #23272f;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1000;
}

.online-status-indicator:hover::after,
.offline-status-indicator:hover::after {
  opacity: 1;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .online-status-indicator,
  .offline-status-indicator {
    width: 10px;
    height: 10px;
    margin-right: 6px;
  }
  
  .online-status-indicator::after,
  .offline-status-indicator::after {
    font-size: 0.8em;
    padding: 6px 10px;
  }
} 