.modern-dashboard {
  width: 95%;
  height: 85%;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 10px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.5s ease;
}

.dashboard-preview-header {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  background: #f0f4f8;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  height: 36px;
  flex-shrink: 0;
}

.browser-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.browser-address-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  padding: 6px 10px;
  margin: 0 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.browser-lock-icon {
  color: #10b981;
  display: flex;
  align-items: center;
}

.browser-url {
  font-weight: 500;
}

.browser-actions {
  display: flex;
  align-items: center;
}

.browser-action-icon {
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.preview-dot:nth-child(1) {
  background-color: #ef4444;
}

.preview-dot:nth-child(2) {
  background-color: #f59e0b;
}

.preview-dot:nth-child(3) {
  background-color: #10b981;
}

.preview-title {
  margin-left: 15px;
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary-dark);
}

.preview-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.preview-action {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(226, 232, 240, 0.8);
  margin-left: 10px;
}

.dashboard-preview-content {
  display: flex;
  flex: 1;
  overflow: hidden;
  flex-direction: column;
  padding: 0;
}

/* Enhanced preview window styling */
.modern-dashboard {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
  width: 95%;
  height: auto;
  max-height: 95%;
}

/* Optimierungen für die Dashboard-Bildanpassung */
.modern-dashboard {
  max-height: 80vh; /* Verhindert zu große Browser-Fenster auf großen Bildschirmen */
}

.dashboard-screenshot {
  width: 100%;
  height: auto;
  max-height: calc(80vh - 36px); /* 36px ist die Höhe des Browser-Headers */
}

@media (max-height: 800px) {
  .modern-dashboard {
    max-height: 75vh;
  }

  .dashboard-screenshot {
    max-height: calc(75vh - 36px);
  }
}

@media (max-height: 600px) {
  .title-slide-content {
    padding: 20px;
  }

  .modern-dashboard {
    max-height: 70vh;
  }

  .dashboard-screenshot {
    max-height: calc(70vh - 36px);
  }
}

/* Dashboard Image Styling */
.dashboard-image-container {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  border-radius: 0 0 12px 12px;
  background: #f5f7fb;
}
.dashboard-screenshot {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  transform: translateY(0);
  transition: transform 0.5s ease;
}

@keyframes screenshot-appear {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.decorative-grid {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background-image: linear-gradient(
      to right,
      rgba(59, 130, 246, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  transform: perspective(500px) rotateY(-15deg);
  opacity: 0.4;
}

.line-1 {
  width: 150px;
  height: 1px;
  top: 30%;
  right: 40%;
  transform: rotate(45deg);
  animation: pulse 8s infinite ease-in-out;
}

.line-2 {
  width: 100px;
  height: 1px;
  bottom: 35%;
  right: 30%;
  transform: rotate(-30deg);
  animation: pulse 10s infinite ease-in-out 1s;
}

.circle-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.03) 0%,
    rgba(37, 99, 235, 0.01) 70%,
    transparent 100%
  );
  top: -150px;
  right: -100px;
  animation: float-slow 15s infinite ease-in-out;
}

.circle-2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.05) 0%,
    rgba(37, 99, 235, 0.02) 70%,
    transparent 100%
  );
  bottom: -100px;
  left: 10%;
  animation: float-slow 20s infinite ease-in-out reverse;
}

.circle-3 {
  width: 80px;
  height: 80px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.08) 0%,
    rgba(37, 99, 235, 0.04) 70%,
    transparent 100%
  );
  top: 20%;
  right: 15%;
  animation: float-slow 12s infinite ease-in-out 2s;
}

/* Enhanced Decorative Elements */
.decorative-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 1.3em;
  font-weight: 600;
  margin: 0 0 5px 0;
  color: var(--heading-color);
}

.author-title {
  font-size: 1em;
  margin: 0 0 5px 0;
  color: var(--secondary-color);
  font-weight: 500;
}

.author-date {
  font-size: 0.9em;
  margin: 0;
  color: var(--secondary-light);
  font-weight: 400;
}

.author-divider {
  width: 40px;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--primary-light)
  );
  margin-top: 15px;
  border-radius: 2px;
}

/* Modern Dashboard Preview */
.title-slide-graphics {
  flex: 1.2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
}

.title-highlight {
  position: relative;
  color: var(--primary-color);
  font-weight: 800;
}

.title-highlight::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(
    90deg,
    rgba(59, 130, 246, 0.2),
    rgba(59, 130, 246, 0)
  );
  z-index: -1;
  border-radius: 4px;
}

/* Modern Author Section */
.title-slide-author {
  display: flex;
  align-items: center;
  margin-top: 30px;
}

.modern-author {
  position: relative;
  padding-left: 10px;
  border-left: 3px solid var(--primary-color);
}

.title-main {
  font-size: 3em;
  line-height: 1.2;
  margin-bottom: 15px;
  font-weight: 700;
  background: linear-gradient(
    to right,
    var(--heading-color),
    var(--primary-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  letter-spacing: -0.5px;
}

.title-tagline {
  font-size: 1.2em;
  color: var(--secondary-color);
  margin-bottom: 30px;
  font-weight: 400;
  opacity: 0.8;
}

/* Modern Title Slide Styling - Enhanced for 2025 */
.title-slide {
  overflow: hidden;
  position: relative;
  height: 100%;
  width: 100%;
  background: linear-gradient(120deg, #f8fafc, #f1f5f9);
}

.title-slide-container {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  position: relative;
  z-index: 5;
}

.title-slide::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: linear-gradient(
    120deg,
    rgba(59, 130, 246, 0.03),
    rgba(37, 99, 235, 0.07)
  );
  border-radius: 50%;
  z-index: 1;
}

.title-slide::after {
  content: "";
  position: absolute;
  bottom: -15%;
  left: -15%;
  width: 70%;
  height: 70%;
  background: linear-gradient(
    120deg,
    rgba(59, 130, 246, 0.05),
    rgba(37, 99, 235, 0.02)
  );
  border-radius: 50%;
  z-index: 1;
}

.title-slide-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 10;
  position: relative;
  max-width: 50%;
}

.title-slide-header {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}

.title-slide-badge {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.25);
  transform: translateY(0);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 2;
}

@keyframes corner-pulse {
  0%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(2);
  }
}

/* Hide the global logo on the title slide - important fix */
section.title-slide + .logo,
.title-slide + .logo,
.title-slide .logo {
  display: none !important;
}

/* Make sure the title logo is properly visible */
.title-slide-header .title-logo {
  max-width: 100%;
  width: 180px;
  height: auto;
  margin-bottom: 15px;
  display: block !important;
}
