/* =========================================
   SANITÄTSHAUS POPP
   Gemeinsame Navigation
   ========================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Kopfzeile */
.popp-header {
    background: #44385f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 4px 4%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Navigation */
.popp-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-right: auto;
}

.popp-nav > a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
}

.popp-nav > a:hover,
.popp-nav > a:focus-visible {
    color: #b8e5e0;
    text-decoration: underline;
}

/* Dropdown-Menüs */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-button {
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 5px 18px #00000025;
    z-index: 1100;
    padding: 8px 0;
}

.popp-nav .nav-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: #44385f;
    text-decoration: none;
    white-space: nowrap;
}

.popp-nav .nav-dropdown-menu a:hover {
    background: #D4F0F5;
    color: #245A70;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

/* Facebook */
.popp-facebook {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.popp-facebook:hover {
    color: #b8e5e0;
}

/* Logo */
.popp-logo-link {
    flex-shrink: 0;
}

.popp-logo {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
}

/* Responsive */
@media (max-width: 900px) {
    .popp-header {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .popp-logo-link {
        align-self: flex-end;
    }

    .popp-nav {
        gap: 14px;
    }
}
/* Gestaltung der CMS-Unterseiten */

.page-content {
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #333333;
}

main h1 {
    font-family: Arial, sans-serif;
    font-size: 34px;
    color: #44385f;
}

main h2 {
    font-family: Arial, sans-serif;
    font-size: 24px;
    color: #245A70;
}
/* CMS-Unterseiten: Text links, Bild rechts */

.page-main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.page-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .page-layout {
        grid-template-columns: 1fr;
    }
}
/* Geschichte: Textblock tiefer, Bild unverändert */

.page-text {
    padding-top: 35px;
}

.page-text h1 {
    margin-top: 0;
}

@media (max-width: 768px) {
    .page-text {
        padding-top: 0;
    }
}
/* Einheitliche Navigationsschrift auf allen Seiten */

.popp-nav > a,
.popp-nav .nav-dropdown-button {
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    font-style: normal;
    letter-spacing: normal;
    text-shadow: none;
    -webkit-font-smoothing: auto;
}
/* PDF-Dokumentenkacheln */

.pdf-section {
    margin-top: 60px;
}

.pdf-section h2 {
    margin-bottom: 25px;
}

.pdf-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.pdf-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    background: #fff;
    overflow: hidden;
}

.pdf-preview {
    height: 230px;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 6px;
}

.pdf-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

.pdf-card h3 {
    font-size: 18px;
    margin: 15px 0;
}

.pdf-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pdf-actions a {
    display: inline-block;
    padding: 9px 14px;
    background: #44385f;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.pdf-actions a:hover {
    background: #62517f;
}

@media (max-width: 800px) {
    .pdf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 500px) {
    .pdf-grid {
        grid-template-columns: 1fr;
    }
}
/* POPP Kontaktformular */

.contact-section {
    max-width: 760px;
    margin: 50px auto;
    padding: 30px;
    background: #f7f9f7;
    border-radius: 12px;
}

.contact-section h2 {
    color: #008c95;
    margin-bottom: 15px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-field label {
    font-weight: 600;
    color:#008c95;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5d0;
    border-radius: 6px;
    font: inherit;
    box-sizing: border-box;
}

.contact-field input:focus,
.contact-field textarea:focus {
    outline: 2px solid #008c95a;
    outline-offset: 1px;
}

.contact-hint {
    font-size: 14px;
    color: #666;
}

.contact-form button {
    background: #008c95;
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
}

.contact-form button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
/* ==========================================
   POPP CMS – Dokumente und Downloads
   ========================================== */

.documents-section {
    margin: 40px 0;
}

.documents-section h2 {
    margin-bottom: 24px;
    color: #183f38;
}

/* Dokumentenliste */

.documents-list {
    display: grid;
    gap: 16px;
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: #ffffff;
    border: 1px solid #dce8e5;
    border-radius: 12px;
}

/* PDF-Vorschau und Dokumententitel */

.document-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.documents-section .document-preview {
    width: 75px;
    height: 100px;
    min-width: 75px;
    flex-shrink: 0;
    border: 1px solid #dce8e5;
    border-radius: 5px;
    background: #ffffff;
}

.documents-section .document-title {
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    color: #333333;
    overflow-wrap: anywhere;
}

/* Schaltflächen */

.documents-section .document-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.documents-section .document-actions a {
    display: inline-block;
    padding: 10px 16px;
    background: #008c95;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.documents-section .document-actions a:hover {
    background: #183f38;
    color: #ffffff;
    text-decoration: none;
}

/* Darstellung auf Smartphones */

@media (max-width: 700px) {
    .document-item {
        flex-direction: column;
        align-items: stretch;
    }

    .documents-section .document-actions a {
        text-align: center;
    }
}
/* ==========================================
   POPP CMS – Footer
   ========================================== */

.popp-footer {
    margin-top: 50px;
    padding: 28px;
    background: #D4F0F5;
    color: #245A70;
}

.popp-footer .popp-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.popp-footer-company {
    font-size: 14px;
    color: #245A70;
}

.popp-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.popp-footer-links a {
    color: #245A70;
    text-decoration: none;
    font-size: 14px;
}

.popp-footer-links a:hover {
    color: #245A70;
    text-decoration: underline;
}

@media (max-width: 700px) {
    .popp-footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .popp-footer-links {
        justify-content: center;
    }
}
/* POPP Logo auf Smartphones */
@media (max-width: 900px) {
    .popp-header .popp-logo {
        width: 130px;
        max-width: 100%;
        height: auto;
    }
}

/* POPP – Mobile Navigation */
.popp-mobile-menu-toggle {
    display: none;
}

@media (max-width: 900px) {
    .popp-header {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .popp-mobile-menu-toggle {
        display: block;
        background: transparent;
        color: white;
        border: 1px solid white;
        border-radius: 6px;
        padding: 10px 14px;
        font-size: 16px;
        cursor: pointer;
    }

    .popp-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        order: 3;
        gap: 8px;
    }

    .popp-nav.popp-nav-open {
        display: flex;
    }

    .popp-logo-link {
        margin-left: auto;
    }

    .nav-dropdown {
        display: block;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        margin-top: 6px;
    }
}
