/* ── websites.css ── */

/* Mockup grid */
.mockup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 600px) {
  .mockup-grid { grid-template-columns: 1fr; }
}

.mockup-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--bg-darker);
  transition: transform 0.3s ease;
  position: relative;
}

.mockup-item:hover { transform: scale(1.02); }

.mockup-browser {
  height: 400px;
  width: 100%;
  border: none;
  display: block;
  pointer-events: none;
  overflow: hidden;
}

.mockup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  cursor: pointer;
  z-index: 5;
  text-align: center;
  padding: 2rem;
}

.mockup-item:hover .mockup-overlay { opacity: 1; }

.btn-preview {
  background: var(--primary-color);
  color: white;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  transform: translateY(10px);
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.mockup-item:hover .btn-preview { transform: translateY(0); }

.mockup-label {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  font-weight: 500;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── Mockup modal ── */
.mockup-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: clamp(1rem, 5vw, 3rem);
  backdrop-filter: blur(15px);
}

.mockup-modal.active { display: flex; }

.modal-controls {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 2002;
}

.device-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--card-border);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
  font-weight: 500;
  font-family: inherit;
}

.device-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.device-btn:hover:not(.active) { background: rgba(255, 255, 255, 0.2); }

.modal-content {
  width: 100%;
  max-width: 1400px;
  height: 85vh;
  background: #111;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--card-border);
  box-shadow: 0 0 100px rgba(0, 0, 0, 0.7);
  animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1), height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 2rem;
}

.modal-content.mobile-view {
  width: 375px;
  height: 667px;
  max-height: 85vh;
  border: 8px solid #222;
  border-radius: 35px;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 2001;
  background: rgba(255, 255, 255, 0.1);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s, transform 0.3s;
}

.modal-close:hover {
  background: var(--primary-color);
  transform: rotate(90deg);
}

/* ── Was ist enthalten – two-card grid ── */
.website-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 2rem auto 0;
}

@media (max-width: 700px) {
  .website-detail-grid { grid-template-columns: 1fr; }
}

.website-detail-card {
  padding: 2rem;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: rgba(var(--card-bg-rgb), 0.3);
}

.website-detail-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--heading-color);
}

.website-detail-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.website-detail-card .check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.website-detail-card .check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.website-detail-card .check-list li::before {
  content: '✓';
  color: var(--primary-color);
  font-weight: 700;
  flex-shrink: 0;
}
