/* =========================================
   AGB – MM Stimme Premium
   ========================================= */

.agb-page.site-main,
.page-agb .site-main,
.page-slug-agb .site-main {
    padding: 48px 20px 90px;
    background:
        radial-gradient(circle at top right, rgba(0, 102, 102, 0.06), transparent 26%),
        linear-gradient(180deg, #f8fbfb 0%, #ffffff 100%);
}

.mm-agb-page {
    position: relative;
}

.mm-agb-page-inner {
    max-width: 980px;
    margin: 0 auto;
}

.mm-agb-hero {
    max-width: 860px;
    margin: 0 auto 34px;
    text-align: center;
}

.mm-agb-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(0, 102, 102, 0.08);
    color: #006666;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mm-agb-title {
    margin: 0 0 16px;
    font-size: clamp(2.15rem, 4vw, 3.35rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: #111111;
}

.mm-agb-title strong {
    color: #006666;
    font-weight: 800;
}

.mm-agb-intro {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.06rem;
    line-height: 1.8;
    color: #5f7171;
}

.mm-agb-content-wrap {
    max-width: 860px;
    margin: 0 auto;
}

.mm-agb-content {
    padding: 52px 54px;
    background: #ffffff;
    border: 1px solid rgba(0, 102, 102, 0.08);
    border-radius: 30px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.06);
}

/* Falls im Inhalt ein zusätzlicher H1-Titel aus Gutenberg steht,
   wird dieser ausgeblendet, damit es nicht doppelt aussieht */
.mm-agb-content > h1:first-child,
.mm-agb-content > .wp-block-heading:first-child:is(h1) {
    display: none;
}

/* Standard-Überschriften */
.mm-agb-content h2,
.mm-agb-content h3,
.mm-agb-content h4,
.mm-agb-content .wp-block-heading {
    margin: 40px 0 14px;
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #132424;
}

.mm-agb-content h2:first-child,
.mm-agb-content h3:first-child,
.mm-agb-content h4:first-child,
.mm-agb-content .wp-block-heading:first-child {
    margin-top: 0;
}

/* Fließtext */
.mm-agb-content p {
    margin: 0 0 16px;
    font-size: 1rem;
    line-height: 1.82;
    color: #5f7171;
}

/* Hervorhebungen */
.mm-agb-content strong,
.mm-agb-content b {
    color: #132424;
    font-weight: 800;
}

.mm-agb-content em {
    color: #395454;
}

/* Listen */
.mm-agb-content ul,
.mm-agb-content ol {
    margin: 0 0 20px;
    padding-left: 1.3rem;
}

.mm-agb-content li {
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.75;
    color: #5f7171;
}

.mm-agb-content ul li::marker,
.mm-agb-content ol li::marker {
    color: #006666;
    font-weight: 700;
}

/* Links */
.mm-agb-content a {
    color: #006666;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.mm-agb-content a:hover {
    color: #005454;
    opacity: 0.92;
}

/* Trenner */
.mm-agb-content hr,
.mm-agb-content .wp-block-separator {
    margin: 34px 0;
    border: none;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(0, 102, 102, 0),
        rgba(0, 102, 102, 0.16),
        rgba(0, 102, 102, 0)
    );
}

/* Tabellen, falls du welche in den AGB nutzt */
.mm-agb-content table {
    width: 100%;
    margin: 24px 0 28px;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(0, 102, 102, 0.10);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
}

.mm-agb-content th,
.mm-agb-content td {
    padding: 14px 16px;
    text-align: left;
    font-size: 0.98rem;
    line-height: 1.6;
    border-bottom: 1px solid rgba(0, 102, 102, 0.08);
}

.mm-agb-content th {
    background: rgba(0, 102, 102, 0.06);
    color: #132424;
    font-weight: 800;
}

.mm-agb-content td {
    color: #5f7171;
    background: #ffffff;
}

.mm-agb-content tr:last-child td {
    border-bottom: none;
}

/* Zitate / Hinweise */
.mm-agb-content blockquote {
    margin: 24px 0 28px;
    padding: 20px 24px;
    border-left: 4px solid #006666;
    border-radius: 0 18px 18px 0;
    background: linear-gradient(180deg, rgba(0, 102, 102, 0.05) 0%, rgba(0, 102, 102, 0.02) 100%);
}

.mm-agb-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 991.98px) {
    .agb-page.site-main,
    .page-agb .site-main,
    .page-slug-agb .site-main {
        padding: 38px 18px 74px;
    }

    .mm-agb-hero {
        margin-bottom: 28px;
    }

    .mm-agb-content {
        padding: 40px 34px;
        border-radius: 24px;
    }

    .mm-agb-content h2,
    .mm-agb-content h3,
    .mm-agb-content h4,
    .mm-agb-content .wp-block-heading {
        margin-top: 34px;
    }
}

@media (max-width: 767.98px) {
    .agb-page.site-main,
    .page-agb .site-main,
    .page-slug-agb .site-main {
        padding: 28px 14px 58px;
    }

    .mm-agb-kicker {
        margin-bottom: 14px;
        padding: 7px 14px;
        font-size: 0.72rem;
    }

    .mm-agb-title {
        font-size: 2rem;
        margin-bottom: 14px;
    }

    .mm-agb-intro {
        font-size: 0.98rem;
        line-height: 1.72;
    }

    .mm-agb-content {
        padding: 30px 22px;
        border-radius: 20px;
        box-shadow: 0 16px 38px rgba(0, 0, 0, 0.05);
    }

    .mm-agb-content p,
    .mm-agb-content li {
        font-size: 0.98rem;
        line-height: 1.72;
    }

    .mm-agb-content h2,
    .mm-agb-content h3,
    .mm-agb-content h4,
    .mm-agb-content .wp-block-heading {
        font-size: 1.35rem;
        margin: 30px 0 12px;
    }

    .mm-agb-content table,
    .mm-agb-content thead,
    .mm-agb-content tbody,
    .mm-agb-content th,
    .mm-agb-content td,
    .mm-agb-content tr {
        display: block;
    }

    .mm-agb-content thead {
        display: none;
    }

    .mm-agb-content tr {
        margin-bottom: 14px;
        border: 1px solid rgba(0, 102, 102, 0.08);
        border-radius: 16px;
        overflow: hidden;
    }

    .mm-agb-content td {
        border-bottom: 1px solid rgba(0, 102, 102, 0.06);
    }

    .mm-agb-content tr:last-child td:last-child {
        border-bottom: none;
    }
}

@media (max-width: 479.98px) {
    .mm-agb-content {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .mm-agb-title {
        font-size: 1.8rem;
    }

    .mm-agb-content h2,
    .mm-agb-content h3,
    .mm-agb-content h4,
    .mm-agb-content .wp-block-heading {
        font-size: 1.25rem;
    }
}