/**
 * ACF Content Styles fuer parodontitis.com
 * Schwester-Design zu implantate.com
 * Eigenstaendig: Orange-Farbwelt + Logo beibehalten
 */

/* CSS VARIABLEN */
:root {
    --paro-primary: #f79121;
    --paro-primary-dark: #e07a0e;
    --paro-text: #454545;
    --paro-text-light: #666;
    --paro-bg: #fff;
    --paro-bg-light: #f8f9fa;
    --paro-border: #dee2e6;
    --paro-link: #f79121;
    --paro-link-hover: #e07a0e;
}

/* TYPOGRAFIE */
body {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--paro-text);
    background-color: var(--paro-bg);
}

h1 {
    font-family: 'Open Sans', sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.8em;
    color: var(--paro-text);
}

h2 {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
    color: var(--paro-text);
}

h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h4 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 1.2em;
    margin-bottom: 0.4em;
}

a {
    color: var(--paro-link);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--paro-link-hover);
    text-decoration: underline;
}

/* LAYOUT */
.inner-page-wrapper {
    padding-top: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.main-content-block {
    padding-left: 30px;
}

@media (max-width: 767px) {
    .main-content-block {
        padding-left: 15px;
    }
}

/* BREADCRUMBS */
.breadcrumb-section {
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--paro-text-light);
}

.breadcrumb-section a {
    color: var(--paro-text-light);
}

.breadcrumb-section a:hover {
    color: var(--paro-primary);
}

/* SIDEBAR NAVIGATION */
.sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-nav {
    background: var(--paro-bg-light);
    border-radius: 4px;
    padding: 15px 0;
}

.sidebar-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu-list li {
    border-bottom: 1px solid var(--paro-border);
}

.sidebar-menu-list li:last-child {
    border-bottom: none;
}

.sidebar-menu-list a {
    display: block;
    padding: 8px 20px;
    font-size: 14px;
    color: var(--paro-text);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.sidebar-menu-list a:hover,
.sidebar-menu-list .current-menu-item > a,
.sidebar-menu-list .current_page_item > a {
    background: var(--paro-primary);
    color: #fff;
    text-decoration: none;
}

.sidebar-menu-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu-list ul a {
    padding-left: 35px;
    font-size: 13px;
}

.sidebar-menu-list ul ul a {
    padding-left: 50px;
    font-size: 12px;
}

/* ACF CONTENT BLOCKS */
.acf-content-area {
    margin-bottom: 2em;
}

.acf-block {
    margin-bottom: 1em;
}

.acf-text-content {
    margin-bottom: 1em;
}

.acf-text-content p {
    margin-bottom: 1em;
}

.acf-text-content img {
    max-width: 100%;
    height: auto;
}

/* IMAGE BOX */
.img-box {
    margin-bottom: 1.5em;
}

.img-box img {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
}

.img-caption {
    font-size: 0.85em;
    color: var(--paro-text-light);
    margin-top: 0.5em;
}

/* TABELLEN */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5em;
}

.acf-table-block table,
.acf-text-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    margin-bottom: 1em;
}

.acf-table-block th,
.acf-text-content th {
    background-color: var(--paro-primary);
    color: #fff;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.acf-table-block td,
.acf-text-content td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--paro-border);
    vertical-align: top;
}

.acf-table-block tr:nth-child(even),
.acf-text-content tr:nth-child(even) {
    background-color: var(--paro-bg-light);
}

@media (max-width: 576px) {
    .acf-table-block table,
    .acf-text-content table {
        font-size: 14px;
    }

    .acf-table-block th,
    .acf-table-block td,
    .acf-text-content th,
    .acf-text-content td {
        padding: 8px;
    }
}

/* TOGGLE / ACCORDION */
.acf-toggle .toggle-header,
.accordion-item .accordion-header {
    cursor: pointer;
    padding: 12px 15px;
    background: var(--paro-bg-light);
    border: 1px solid var(--paro-border);
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
    user-select: none;
    transition: background 0.15s;
}

.acf-toggle .toggle-header:hover,
.accordion-item .accordion-header:hover {
    background: #eee;
}

.toggle-icon {
    display: inline-block;
    transition: transform 0.2s;
    font-size: 12px;
    margin-right: 5px;
}

.acf-toggle.open .toggle-icon,
.accordion-item.open .toggle-icon {
    transform: rotate(90deg);
}

.acf-toggle .toggle-content,
.accordion-item .accordion-body {
    display: none;
    padding: 15px;
    border: 1px solid var(--paro-border);
    border-top: none;
    border-radius: 0 0 4px 4px;
    margin-bottom: 10px;
}

.acf-toggle.open .toggle-content,
.accordion-item.open .accordion-body {
    display: block;
}

/* BANNER / CTA */
.acf-banner .banner-inner {
    background: var(--paro-bg-light);
    border-left: 4px solid var(--paro-primary);
    padding: 20px 25px;
    border-radius: 0 4px 4px 0;
    margin-bottom: 1.5em;
}

.acf-banner .btn-primary {
    background: var(--paro-primary);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    transition: background 0.2s;
}

.acf-banner .btn-primary:hover {
    background: var(--paro-primary-dark);
    color: #fff;
    text-decoration: none;
}

/* AUTHOR BOX */
.author-section {
    border-top: 2px solid var(--paro-border);
    padding-top: 20px;
}

.aboutAuthor {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--paro-text-light);
}

.last-updated {
    font-size: 14px;
    color: var(--paro-text-light);
}

/* RESPONSIVE */
@media (max-width: 767px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }

    .sidebar {
        display: none;
    }

    .main-content-block {
        padding: 0 10px;
    }

    .img-box {
        width: 100% !important;
        max-width: 100%;
        flex: 0 0 100%;
    }
}

/* PRINT */
@media print {
    .sidebar, .banner-inner, nav {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}