/* ========================================
   SEITE - Styling für allgemeine Inhaltsseiten
   Farbschema: Türkis/Teal (Hauptfarbe der Website)
   ======================================== */

/* ========================================
   HERO SUBPAGE
   ======================================== */

.hero-seite {
    background: #e8f4f4;
    background: -webkit-linear-gradient(315deg, #e8f4f4 0%, #d4ebeb 100%);
    background: linear-gradient(135deg, #e8f4f4 0%, #d4ebeb 100%);
    padding: 3rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid #3d807f;
}

.hero-seite::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(61, 128, 127, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(61, 128, 127, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-seite .container {
    position: relative;
    z-index: 1;
}

.hero-seite h1 {
    color: #2a5a59;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

/* Breadcrumb */
.hero-seite .breadcrumb {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: #3d6b6a;
}

.hero-seite .breadcrumb a {
    color: #3d807f;
    text-decoration: none;
    font-weight: 500;
    -webkit-transition: color 0.2s ease;
    transition: color 0.2s ease;
}

.hero-seite .breadcrumb a:hover {
    color: #2a5a59;
    text-decoration: underline;
}

.hero-seite .breadcrumb-separator {
    margin: 0 0.5rem;
    color: #6b9a99;
}

/* ========================================
   PAGE CONTENT
   ======================================== */

.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

/* Banner */
.page-banner {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article */
.page-article {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
}

/* ========================================
   CONTENT BLOCKS
   ======================================== */

.content-block {
    margin-bottom: 2.5rem;
}

.content-block:last-child {
    margin-bottom: 0;
}

/* Block Text Styling */
.block-text {
    font-size: 1.05rem;
    line-height: 1.7;
}

.block-text p {
    margin: 0 0 1rem 0;
}

.block-text p:last-child {
    margin-bottom: 0;
}

.block-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2a5a59;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(61, 128, 127, 0.3);
}

.block-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3d807f;
    margin: 1.5rem 0 0.75rem 0;
}

.block-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 1.25rem 0 0.5rem 0;
}

.block-text a {
    color: #3d807f;
    text-decoration: underline;
    -webkit-transition: color 0.2s ease;
    transition: color 0.2s ease;
}

.block-text a:hover {
    color: #2a5a59;
}

.block-text ul,
.block-text ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.block-text li {
    margin-bottom: 0.5rem;
}

/* ========================================
   BILD POSITIONEN
   ======================================== */

/* Bild oben */
.position-oben .block-image {
    margin-bottom: 1.5rem;
}

/* Bild unten */
.position-unten .block-image {
    margin-top: 1.5rem;
}

/* Bild rechts */
.position-rechts {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 2rem;
}

.position-rechts .block-image {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 40%;
    flex: 0 0 40%;
    max-width: 40%;
    -webkit-box-ordinal-group: 3;
    -ms-flex-order: 2;
    order: 2;
}

.position-rechts .block-text {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 50%;
    flex: 1 1 50%;
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: 1;
}

/* Bild links */
.position-links {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 2rem;
}

.position-links .block-image {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 40%;
    flex: 0 0 40%;
    max-width: 40%;
}

.position-links .block-text {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 50%;
    flex: 1 1 50%;
}

/* Responsive Bilder */
@media (max-width: 768px) {
    .position-rechts,
    .position-links {
        display: block;
    }
    
    .position-rechts .block-image,
    .position-links .block-image {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
}

/* Block Image Styling */
.block-image {
    margin: 0;
}

.block-image a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    -webkit-transition: box-shadow 0.3s ease;
    transition: box-shadow 0.3s ease;
}

.block-image a:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.block-image img {
    width: 100%;
    height: auto;
    display: block;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
}

.block-image a:hover img {
    -webkit-transform: scale(1.02);
    -ms-transform: scale(1.02);
    transform: scale(1.02);
}

.block-image figcaption {
    padding: 0.75rem 0;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    text-align: center;
}

/* ========================================
   TABELLEN - Besonders für Fachärzteliste
   Mit !important um inline-Styles aus CMS zu überschreiben
   ======================================== */

.block-text table,
.page-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Tabellenkopf - muss inline-Styles überschreiben */
.block-text table thead,
.page-article table thead,
.block-text table thead tr,
.page-article table thead tr {
    background: linear-gradient(135deg, #3d807f 0%, #2a5a59 100%) !important;
    background-color: #3d807f !important;
}

.block-text table thead th,
.page-article table thead th,
.block-text table th,
.page-article table th {
    padding: 1rem 1.25rem !important;
    text-align: left;
    font-weight: 700;
    color: #fff !important;
    background: transparent !important;
    background-color: transparent !important;
    font-size: 0.95rem;
    border-bottom: none !important;
}

.block-text tbody tr,
.page-article tbody tr {
    -webkit-transition: background-color 0.2s ease;
    transition: background-color 0.2s ease;
    background-color: #fff;
}

.block-text tbody tr:nth-child(even),
.page-article tbody tr:nth-child(even) {
    background-color: #f8fafa;
}

.block-text tbody tr:hover,
.page-article tbody tr:hover {
    background-color: #e8f4f4 !important;
}

.block-text td,
.page-article td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e0e0e0 !important;
    vertical-align: top;
    line-height: 1.5;
}

.block-text tbody tr:last-child td,
.page-article tbody tr:last-child td {
    border-bottom: none !important;
}

/* Tabellen-Zellen Formatierung */
.block-text td strong,
.page-article td strong {
    color: #2a5a59;
    display: block;
    margin-bottom: 0.25rem;
}

.block-text td small,
.page-article td small {
    color: #666;
    font-size: 0.85rem;
    display: block;
    margin-top: 0.25rem;
}

/* Responsive Tabellen */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
}

@media (max-width: 768px) {
    .block-text table,
    .page-article table {
        font-size: 0.85rem;
    }
    
    .block-text table thead th,
    .page-article table thead th,
    .block-text table th,
    .page-article table th,
    .block-text td,
    .page-article td {
        padding: 0.75rem !important;
    }
}

/* ========================================
   VIDEO BLOCK
   ======================================== */

.video-block {
    margin: 2.5rem 0;
}

.video-description {
    margin-bottom: 1rem;
    font-style: italic;
    color: #555;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   NAVIGATION BUTTONS
   ======================================== */

.page-navigation-buttons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.page-navigation-buttons .btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.btn-nav-back {
    color: #3d807f;
    border: 2px solid #3d807f;
    background: transparent;
}

.btn-nav-back:hover {
    background: #3d807f;
    color: #fff;
}

.btn-nav-back:hover svg {
    -webkit-transform: translateX(-3px);
    -ms-transform: translateX(-3px);
    transform: translateX(-3px);
}

.btn-nav-forward {
    background: #3d807f;
    color: #fff;
    border: 2px solid #3d807f;
}

.btn-nav-forward:hover {
    background: #2a5a59;
    border-color: #2a5a59;
}

.btn-nav-forward:hover svg {
    -webkit-transform: translateX(3px);
    -ms-transform: translateX(3px);
    transform: translateX(3px);
}

.page-navigation-buttons svg {
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
}

@media (max-width: 500px) {
    .page-navigation-buttons {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    
    .page-navigation-buttons .btn {
        width: 100%;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
}

/* ========================================
   LIGHTBOX
   ======================================== */

.lightbox-overlay {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    -webkit-transition: opacity 0.3s ease, visibility 0.3s ease;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.visible {
    visibility: visible;
    opacity: 1;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 4px;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
    -webkit-transform: scale(0.9);
    -ms-transform: scale(0.9);
    transform: scale(0.9);
}

.lightbox-overlay.visible .lightbox-content {
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    -webkit-transition: color 0.3s ease, -webkit-transform 0.3s ease;
    transition: color 0.3s ease, transform 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    color: #3d807f;
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}

/* ========================================
   MELDUNGEN
   ======================================== */

.meldung {
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
}

.meldung-warning {
    background: linear-gradient(135deg, #fff8e6 0%, #fff3d6 100%);
    border: 1px solid #f0d58c;
    color: #8a6d3b;
}

.meldung-warning h2 {
    color: #8a6d3b;
    margin: 0 0 0.75rem 0;
}

.meldung-warning .btn-solid {
    margin-top: 1rem;
    background: #8a6d3b;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
}

.meldung-warning .btn-solid:hover {
    background: #6d5630;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .hero-seite {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }

    .hero-seite h1 {
        font-size: 1.8rem;
    }
    
    .page-content {
        padding-bottom: 2rem;
    }
    
    .content-block {
        margin-bottom: 2rem;
    }
    
    .block-text {
        font-size: 1rem;
    }
    
    .block-text h2 {
        font-size: 1.35rem;
    }
}

/* ========================================
   PRINT
   ======================================== */

@media print {
    .hero-seite {
        background: none;
        border-bottom: 2px solid #333;
        padding: 1rem 0;
    }
    
    .hero-seite h1 {
        color: #000;
    }
    
    .page-navigation-buttons,
    .lightbox-overlay {
        display: none !important;
    }
    
    .block-image {
        break-inside: avoid;
    }
    
    table {
        break-inside: avoid;
    }
}