/**
 * Subpage-Styles (für Auditierung, Beratung, Büroservice, IT/OT-Systemhaus, Interim)
 * Gemeinsame Styles für alle Subpages mit Vanta DOTS Hero
 */

/* Hero Section - halbe Höhe wie Hauptseite */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
  padding: 40px 40px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: auto;
  max-height: 45vh;
  display: flex;
  align-items: center;
  /* Vanta Waves wird als Canvas darüber gelegt - Größe bleibt gleich */
}

/* Vanta Canvas Positionierung */
.hero canvas {
  position: absolute !important;
  top: 0 !important;
  left: -5% !important;
  width: 110% !important;
  height: 100% !important;
  object-fit: cover;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(45, 170, 225, 0.1) 0%, transparent 50%);
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Content Sections */
.content-section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.content-section h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--dark);
  text-align: center;
}

.content-section h3 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--dark);
}

.content-section p {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin: 40px 0;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(30, 41, 59, 0.08);
  transition: all 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hard);
  border-color: var(--primary);
}

.card-header {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  margin: -32px -32px 24px -32px;
  text-align: center;
}

.card-header h3,
.card-header h5 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.card ul {
  list-style: none;
  padding-left: 0;
  margin: 16px 0;
}

.card li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text);
  font-size: 15px;
}

.card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 20px;
}

/* Highlight Box */
.highlight-box {
  background: rgba(45, 170, 225, 0.1);
  border-left: 4px solid var(--primary);
  padding: 24px 32px;
  border-radius: 12px;
  margin: 40px 0;
}

.highlight-box h3 {
  margin-top: 0;
}

/* Contact Info */
.contact-info {
  text-align: center;
  padding: 40px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-top: 40px;
}

.contact-info p {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 16px;
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Partner Grid (Kooperationen) */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 32px;
  margin: 40px 0;
}

.partner-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(30, 41, 59, 0.08);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.partner-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hard);
  border-color: var(--primary);
}

.partner-logo {
  text-align: center;
  padding: 20px;
  background: rgba(45, 170, 225, 0.05);
  border-radius: 12px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  max-width: 180px;
  max-height: 100px;
  object-fit: contain;
}

.partner-info h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.partner-details {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.partner-details tr td {
  padding: 8px 0;
  vertical-align: top;
  font-size: 14px;
  color: var(--text);
}

.partner-details tr td:first-child {
  width: 100px;
  font-weight: 600;
  color: var(--dark);
}

.partner-details a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.partner-details a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.partner-description {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
  padding: 16px;
  background: linear-gradient(135deg, rgba(45, 170, 225, 0.08) 0%, rgba(14, 165, 233, 0.04) 100%);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

/* Responsive */
@media (max-width: 900px) {
  .content-section {
    padding: 40px 20px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .partner-grid {
    grid-template-columns: 1fr;
  }

  .partner-card {
    padding: 24px;
  }

  .partner-logo {
    min-height: 80px;
  }

  .partner-logo img {
    max-width: 140px;
    max-height: 80px;
  }
}