/* components.css */

/* Grid */
.services-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  text-align: left;
}

/* Wrapper für Card + Titel */
.service-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

/* Cards */
.service-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

/* ICON */
.service-card .service-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-md);
  opacity: 0.95;
}

/* Titel unter der Card */
.service-title {
  margin-top: var(--space-md);
  font-size: 1.2rem;
  text-align: center;
  width: 100%;
}

/* -------------------------------- */
/* OVERLAY */
/* -------------------------------- */

.service-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  padding: var(--space-xl);
  z-index: 9999;
  overflow-y: auto;
}

.service-overlay.active {
  display: flex;
}

/* Overlay Content */
.overlay-content {
  .overlay-content {
    max-height: calc(90vh - 4rem);
    overflow-y: auto;
    white-space: pre-line;
  }
}

/* Icon im Overlay */
.overlay-content img {
  width: 80px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin-bottom: var(--space-md);
  z-index: 1;
}

.overlay-content-wrapper {
  position: relative;
  max-width: 700px;
  width: 90%;
}

.overlay-box {
  position: relative;
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem 2.5rem;
  overflow: hidden; /* WICHTIG */
}

/* Text */
.overlay-content h2,
.overlay-content p {
  position: relative;
  z-index: 1;
}

/* Close Button */
.overlay-close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--color-white);
}

.overlay-prev {
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
}

.overlay-next {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
}

.overlay-close:hover {
  opacity: 1;
}

/* Pfeile */
.overlay-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: var(--color-white);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  user-select: none;
  z-index: 10;
}

.overlay-nav:hover {
  opacity: 1;
}

/* -------------------------------- */
/* Sonstige Komponenten */
/* -------------------------------- */

.icon {
  width: 32px;
  height: 32px;
  margin-bottom: var(--space-sm);
  fill: var(--color-cyan);
  opacity: 0.9;
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.callout {
  padding: var(--space-md);
  border-left: 4px solid var(--color-cyan);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  margin: var(--space-md) 0;
}

.callout p {
  margin: 0;
  color: var(--color-gray-light);
}

.divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: var(--space-lg) 0;
}

.badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-blue-mid);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-small);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-blue-deep);
}

.navbar a {
  margin-left: var(--space-md);
  color: var(--color-gray-light);
  transition: color var(--transition-fast);
}

.navbar a:hover {
  color: var(--color-cyan);
}

/* Kontaktseite */
.kontakt-page {
  padding: 4rem 0;
}

.kontakt-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #e5e7eb;
}

.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 600px;
}

.kontakt-form label {
  font-size: 1rem;
  color: #d1d5db;
}

.kontakt-form input,
.kontakt-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #2a2f35;
  background-color: #0f141a;
  color: #e5e7eb;
  border-radius: 6px;
  font-size: 1rem;
}

.kontakt-form input:focus,
.kontakt-form textarea:focus {
  outline: none;
  border-color: #3b82f6;
}

.kontakt-submit {
  padding: 0.9rem 1.4rem;
  background-color: #1e293b;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.kontakt-submit:hover {
  background-color: #334155;
}

.kontakt-dsgvo {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #d1d5db;
  line-height: 1.4;
}

.kontakt-dsgvo input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.kontakt-dsgvo a {
  color: #3b82f6;
  text-decoration: underline;
}

.kontakt-dsgvo a:hover {
  color: #60a5fa;
}

.kontakt-form select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #2a2f35;
  background-color: #0f141a;
  color: #e5e7eb;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.kontakt-form select:focus {
  outline: none;
  border-color: #3b82f6;
}

/* Danke-Seite */
.danke-page {
  padding: 4rem 0;
}

.danke-section {
  max-width: 700px;
}

.danke-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #e5e7eb;
}

.danke-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #d1d5db;
  margin-bottom: 2rem;
}

.danke-back {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  background-color: #1e293b;
  color: #ffffff;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.danke-back:hover {
  background-color: #334155;
}

/* Leistungsseite */
.leistungen-page {
  padding: 4rem 0;
}

.leistungen-title {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #e5e7eb;
  text-align: center;
}

/* Grid */
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Karten */
.leistung-card {
  background-color: #0f141a;
  border: 1px solid #1f2937;
  padding: 2rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.leistung-card:hover {
  transform: translateY(-4px);
  border-color: #3b82f6;
}

.leistung-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: #e5e7eb;
}

.preis {
  font-size: 1.8rem;
  font-weight: 600;
  color: #3b82f6;
  margin-bottom: 1rem;
}

.preis-klein {
  font-size: 1rem;
  color: #9ca3af;
}

.leistung-card ul {
  margin: 1rem 0 2rem;
  padding-left: 1.2rem;
  color: #d1d5db;
  line-height: 1.6;
}

.card-btn {
  display: inline-block;
  text-align: center;
  padding: 0.8rem 1.4rem;
  background-color: #1e293b;
  color: #ffffff;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.card-btn:hover {
  background-color: #334155;
}
