.team-section {
    padding: var(--spacing-large) var(--spacing-medium);
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 80px;
}

.team-intro {
    text-align: center;
    margin-bottom: var(--spacing-large);
}

.team-intro h2 {
    font-size: 2.2rem;
    font-weight: normal;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.team-intro p {
    font-size: 1.1rem;
    color: var(--text-color, #333);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---------- PDF Bereich ---------- */
.pdf-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-large) var(--spacing-medium);
    text-align: center;
}

.pdf-section h3 {
    font-size: 1.6rem;
    font-weight: normal;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.pdf-viewer-wrap {
    margin: 0 auto;
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.pdf-viewer-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.pdf-viewer {
    width: 100%;
    height: 80vh;          /* groß am Desktop */
    border: 0;
    display: block;
}

.pdf-actions {
    margin-top: var(--spacing-medium);
    display: flex;
    justify-content: center;
    gap: 1rem;
}
/* Vollbreit-Ansicht für den PDF-Viewer */
.pdf-section.fullwidth {
  max-width: none;
  margin: 0 auto;
  padding: 0; /* kein Innenabstand */
}

.pdf-section.fullwidth .pdf-viewer-wrap {
  width: 100%;
  max-width: none;
  height: 92vh;          /* höher als vorher */
  margin: 0 auto;
  border: 0;             /* optional: Rahmen weg */
  box-shadow: none;      /* optional: Schatten weg */
  overflow: hidden;
}

/* Sicherheitsnetz: iFrame füllt den Wrapper */
.pdf-section.fullwidth .pdf-viewer-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Mobile: etwas geringer, damit Header/Browser-UI Platz haben */
@media (max-width: 768px) {
  .pdf-section.fullwidth .pdf-viewer-wrap { height: 88vh; }
}

/* Buttons nur für den PDF-Bereich, unabhängig von index.css */
.btn-pdf {
    display: inline-block;
    text-decoration: none;
    background: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--primary-color);
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}
.btn-pdf:hover { 
    background: var(--secondary-color);
    transform: translateY(-3px); /* passt zu eurer .btn Hover-Transition */
}
.btn-pdf.secondary {
    background: transparent;
    color: var(--primary-color);
}
.btn-pdf.secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

@media (max-width: 1024px) {
    .team-members {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .team-members {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    .pdf-viewer-wrap {
        width: 100%;
        height: 70vh;
    }
    .pdf-actions {
        flex-direction: column;
    }
  .pdf-actions,
  .pdf-section div[style*="justify-content:center"][style*="gap"] {
    flex-direction: column !important;
    align-items: center !important;
  }

  .btn-pdf {
    width: 100%;
    max-width: 300px;  
    text-align: center;
  }
}


@media (max-width: 768px) {
  .pdf-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }
  .pdf-actions .btn-pdf {
    width: 100% !important;
    max-width: 360px !important; 
    text-align: center !important;
  }
}

/* Responsive Container für den PDF-Viewer */
.pdf-viewer-wrap.responsive {
  margin: 0 auto;
  width: 90%;
  max-width: 1200px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  overflow: hidden;
}

/* Desktop: groß */
@media (min-width: 1025px) {
  .pdf-viewer-wrap.responsive {
    width: 80%;
    height: 90vh;
  }
}

/* Tablet: mittel */
@media (min-width: 769px) and (max-width: 1024px) {
  .pdf-viewer-wrap.responsive {
    width: 85%;
    height: 80vh;
  }
}

/* Smartphone: kleiner, damit man die Seite noch scrollen kann */
@media (max-width: 768px) {
  .pdf-viewer-wrap.responsive {
    width: 100%;
    height: 50vh;
  }
}
