/* Main content layout - Optimized for larger displays */
.results-content-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 2;
  margin: 0 auto;
  margin-top: -50px; /* Reduced margin for more space */
  width: 100%;
  max-width: 1420px; /* Subtly reduced maximum width */
}

.results-dashboard-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Results Section */
.results-section {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #10b981;
  width: fit-content;
  min-width: 280px;
}

.results-section-title {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--heading-color, #1e3a8a);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Results List Styles */
.results-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.results-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.results-list-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.results-list-item:hover {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(16, 185, 129, 0.05),
    transparent
  );
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 6px;
}

.results-list-icon {
  font-size: 1.4em;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10b981, #34d399);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.results-list-content {
  flex: 1;
  display: flex;
  align-items: center;
}

.results-list-content strong {
  font-size: 1em;
  font-weight: 600;
  color: var(--heading-color, #1e3a8a);
  line-height: 1.2;
}

/* Dashboard Section - Optimized for maximum presentation size */
.results-dashboard-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  height: fit-content;
}

.results-dashboard-screenshot {
  position: relative;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  border: 2px solid #e2e8f0;
  padding: 28px;
  padding-bottom: 0px; /* Extra space for annotations */
  width: 100%;
  max-width: 1420px; /* Subtly reduced for smaller content */
}

/* Preview Container - Maximum display for presentation */
.results-preview-container {
  margin-left: 70px;
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  width: 100%;
  max-width: 1280px;
}

/* Desktop Frame - Maximum size for optimal presentation */
.result-desktop-frame {
  width: 1150px; /* Subtly reduced for smaller overall content */
  height: 600px; /* Subtly reduced height for better proportion */
  border: 3px solid #e2e8f0;
  flex: none;
  background: #f8fafc;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: transform 0.3s ease;
}

/* Mobile Frame - Larger and more prominent */
.result-mobile-frame {
  width: 260px; /* Subtly reduced width for smaller overall content */
  height: 600px; /* Reduced height to match desktop */
  border: 2px solid #2a2a2a;
  border-radius: 30px;
  position: relative;
  background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
  flex: none;
  box-sizing: border-box;
  margin: 0 auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.results-device-header {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  padding: 0px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #d1d5db;
}

.results-device-buttons {
  display: flex;
  gap: 4px;
}

.results-device-buttons span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.results-btn-close {
  background: #ef4444;
}

.results-btn-minimize {
  background: #f59e0b;
}

.results-btn-maximize {
  background: #10b981;
}

.results-device-title {
  font-size: 0.75em;
  color: #64748b;
  font-weight: 500;
  flex: 1;
  text-align: center;
}

/* Mobile device details and indicators */

.results-mobile-notch {
  position: absolute;
  top: 6px; /* Angepasst für realistischere Position */
  left: 50%;
  transform: translateX(-50%);
  width: 45px; /* Proportional zur neuen Breite */
  height: 14px; /* Proportional angepasst */
  background: linear-gradient(145deg, #0a0a0a, #1a1a1a);
  border-radius: 0 0 8px 8px; /* Angepasst */
  z-index: 3;
  box-shadow: inset 0 -1px 2px rgba(255, 255, 255, 0.1);
}

/* Zusätzliche Details für realistischeres Aussehen */
.results-mobile-notch::before {
  content: "";
  position: absolute;
  top: 5px; /* Angepasst für bessere Position */
  left: 50%;
  transform: translateX(-50%);
  width: 6px; /* Kleiner für bessere Proportionen */
  height: 6px; /* Kleiner für bessere Proportionen */
  background: #333;
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
}

.results-mobile-notch::after {
  content: "";
  position: absolute;
  top: 6px; /* Angepasst */
  left: 12px; /* Angepasst für bessere Position */
  width: 10px; /* Angepasst */
  height: 3px; /* Angepasst */
  background: #2a2a2a;
  border-radius: 2px;
}

.results-mobile-indicator {
  position: absolute;
  bottom: 0px; /* Direkt am Rand für absolut modernste edge-to-edge Ästhetik */
  left: 50%;
  transform: translateX(-50%);
  width: 30px; /* Proportional zur neuen Breite */
  height: 3px;
  background: linear-gradient(90deg, #666, #999, #666);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Batterie-Indikator - Modernes Design */
.results-mobile-battery {
  position: absolute;
  top: 10px; /* Angepasst für bessere Position */
  right: 10px; /* Angepasst für bessere Position */
  width: 20px; /* Proportional zur neuen Breite */
  height: 10px; /* Proportional angepasst */
  border: 1px solid #ffffff;
  border-radius: 2px;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  z-index: 3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Signal-Indikator - Links oben für Symmetrie */
.results-mobile-signal {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 20px;
  height: 10px;
  z-index: 3;
}

.results-mobile-signal::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 2px;
  height: 5px;
  background: #ffffff;
  border-radius: 0.5px;
  box-shadow: 4px -1px 0 #ffffff, 8px -2px 0 #ffffff, 12px -0.5px 0 #ffffff;
  opacity: 0.9;
}

/* Batterie-Kontakt (Plus-Pol) */
.results-mobile-battery::before {
  content: "";
  position: absolute;
  top: 2px;
  right: -2px; /* Angepasst für kleinere Batterie */
  width: 1px; /* Kleiner für bessere Proportionen */
  height: 5px; /* Angepasst für kleinere Batterie */
  background: linear-gradient(145deg, #ffffff, #d1d5db);
  border-radius: 0 1px 1px 0; /* Angepasst */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Batterie-Ladezustand mit modernem Gradient */
.results-mobile-battery::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
  width: 14px; /* Angepasst für kleinere Batterie */
  height: 5px; /* Angepasst für kleinere Batterie */
  background: linear-gradient(90deg, #10b981 0%, #34d399 50%, #6ee7b7 100%);
  border-radius: 1px;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3),
    0 0 4px rgba(16, 185, 129, 0.3);
}

/* Device Screen - Optimized for larger frames */
.results-device-screen {
  width: 100%;
  position: relative;
  overflow: hidden;
  height: calc(100% - 40px); /* Account for header */
}

.result-desktop-frame .results-device-screen {
  height: calc(100% - 20px); /* Optimized for larger desktop frame */
}

.result-mobile-frame .results-device-screen {
  padding: 30px 6px 0px 6px; /* Adjusted for larger mobile frame */
  overflow: hidden;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100% - 30px);
  border-radius: 24px;
  margin: 0 auto;
  box-sizing: border-box;
}

.results-dashboard-image {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Geändert von cover zu contain für vollständige Anzeige */
  object-position: center; /* Zentriert das Bild */
  display: block;
  background: #f8fafc; /* Heller Hintergrund falls das Bild nicht den ganzen Bereich ausfüllt */
}

.result-mobile-frame .results-dashboard-image {
  width: 100%; /* Nutzt die gesamte verfügbare Breite */
  height: 100%; /* Nutzt die gesamte verfügbare Höhe */
  object-fit: contain; /* Behält Seitenverhältnis bei */
  object-position: center; /* Zentriert das Bild */
  border-radius: 4px; /* Reduzierte Rundung für besseren Look */
}

/* Device Labels */
.results-device-label {
  text-align: center;
  margin-top: 10px;
  font-size: 0.85em;
  font-weight: 600;
  color: #475569;
}

/* Legacy styles for backward compatibility */
.results-dashboard-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  /* Schwarz-Weiß-Filter auch für Legacy entfernt */
}

.results-screenshot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  color: #64748b;
  text-align: center;
  padding: 20px;
}

.results-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.results-placeholder-title {
  font-weight: 600;
  font-size: 1.2em;
  color: #475569;
}

.results-placeholder-subtitle {
  font-size: 1em;
  color: #64748b;
  font-weight: 500;
}

.results-placeholder-note {
  font-size: 0.85em;
  color: #94a3b8;
  font-style: italic;
}

.results-screenshot-annotation {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(16, 185, 129, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.results-annotation-pointer {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(16, 185, 129, 0.9);
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
}

/* Bottom Summary */
.results-summary {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
  background: linear-gradient(135deg, #10b981, #34d399);
  color: white;
  padding: 15px 30px;
  border-radius: 30px;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
  max-width: 90%;
}

.results-summary-icon {
  font-size: 1.5em;
}

.results-summary-text {
  font-size: 1em;
  line-height: 1.4;
  text-align: center;
  font-weight: 500;
}
