/**
 * Content page styles
 * Scoped to .content-page to avoid conflicts with other pages
 * Site colors: #eda82e (accent), #363636 (dark), #607e82 (teal), #e6f1f3 (light teal)
 */

.content-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    text-align: left;
}

/* Headings - centered, sizes in px, bold */
.content-page h1 {
    font-size: 37px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 1.5rem;
    line-height: 1.2;
}

.content-page h2 {
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.content-page h3 {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin: 2rem 0 0.75rem;
    line-height: 1.3;
}

.content-page h4 {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin: 1.5rem 0 0.5rem;
    line-height: 1.4;
}

/* Paragraphs - left aligned */
.content-page p {
    margin: 0 0 1rem;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
}

/* Lists */
.content-page ul,
.content-page ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
    text-align: left;
}

.content-page ul {
    list-style-type: disc;
}

.content-page ol {
    list-style-type: decimal;
}

.content-page li {
    margin-bottom: 0.5rem;
    font-size: 16px;
    line-height: 1.5;
}

/* Table wrapper for responsive overflow */
.content-page__table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 0 0 1.5rem;
    -webkit-overflow-scrolling: touch;
}

.content-page table {
    width: 100%;
    min-width: 300px;
    border-collapse: collapse;
    text-align: left;
}

.content-page th,
.content-page td {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
}

.content-page th {
    background-color: #363636;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

.content-page td {
    font-size: 15px;
}

.content-page tbody tr:nth-child(even) {
    background-color: #e6f1f3;
}

.content-page tbody tr:nth-child(odd) {
    background-color: #f8fbfc;
}

.content-page tbody tr:hover {
    background-color: rgba(237, 168, 46, 0.15);
}

.content-page th,
.content-page td {
    border-color: #b8d4da;
}

/* Images */
.content-page figure {
    margin: 1.5rem 0;
    text-align: center;
}

.content-page figure img {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.content-page img:not(.content-page__quote__avatar):not(.content-page__author__avatar):not(.content-page__byline__avatar) {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 1rem auto;
}

/* Pros/Cons block - two columns */
.content-page__pros-cons {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.content-page__pros,
.content-page__cons {
    flex: 1;
    padding: 1.25rem 1.5rem;
    min-width: 0;
}

.content-page__pros {
    background: linear-gradient(135deg, #e8f5f6 0%, #d4edf0 100%);
    border-left: 4px solid #607e82;
}

.content-page__cons {
    background: linear-gradient(135deg, #fef8f0 0%, #fceee0 100%);
    border-left: 4px solid #eda82e;
}

.content-page__pros h4,
.content-page__cons h4 {
    margin: 0 0 0.75rem;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
}

.content-page__pros h4 .i-check,
.content-page__cons h4 .i-caution {
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 1.1em;
    vertical-align: middle;
}

.content-page__pros h4 .i-check {
    color: #607e82;
}

.content-page__cons h4 .i-caution {
    color: #c97d1a;
}

.content-page__pros ul,
.content-page__cons ul {
    margin: 0;
    padding-left: 1.25rem;
}

.content-page__pros li,
.content-page__cons li {
    margin-bottom: 0.35rem;
}

/* Disclaimer block */
.content-page__disclaimer {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    background: #f8fbfc;
    border: 1px solid #e6f1f3;
    border-left: 4px solid #607e82;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.5;
    color: #555;
}

.content-page__disclaimer strong {
    color: #363636;
}

.content-page__disclaimer p {
    margin: 0.5rem 0 0;
}

.content-page__disclaimer p:first-of-type {
    margin-top: 0.25rem;
}

/* Author quote block */
.content-page__quote {
    margin: 2rem 0;
    padding: 0;
    background: #eef5f6;
    border: 1px solid #dcecee;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(96, 126, 130, 0.08);
}

.content-page__quote__inner {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    align-items: flex-start;
}

.content-page__quote .content-page__quote__avatar,
.content-page__quote .content-page__quote__avatar-slot {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 50%;
    border: 3px solid #d4e8eb;
    box-sizing: border-box;
}

.content-page__quote .content-page__quote__avatar {
    object-fit: cover;
}

.content-page__quote .content-page__quote__avatar-slot {
    background: linear-gradient(160deg, #f4fafb 0%, #dcecee 55%, #cfe4e8 100%);
}

.content-page__quote__content {
    flex: 1;
    min-width: 0;
}

.content-page__quote__content p {
    margin: 0 0 0.75rem;
    font-style: italic;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

.content-page__quote__content footer {
    font-size: 15px;
    color: #607e82;
    font-style: normal;
}

/* Author byline — dunkle Teal-Palette wie Referenz (Gradient, weiße Typo) */
.content-page__byline {
    margin: 1.25rem 0 1.75rem;
    padding: 0;
    background: linear-gradient(105deg, #3d7378 0%, #2a5c60 45%, #1a4548 100%);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(26, 69, 72, 0.25), 0 1px 2px rgba(0, 0, 0, 0.08);
}

.content-page__byline__inner {
    display: flex;
    gap: 1.1rem;
    padding: 1rem 1.35rem;
    align-items: center;
}

.content-page__byline__avatar-slot {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.45);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.08) 100%);
    box-sizing: border-box;
}

.content-page__byline .content-page__byline__avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
    margin: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.content-page__byline__meta {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.content-page__byline__line {
    margin: 0 !important;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    line-height: 1.45;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.content-page__byline__line + .content-page__byline__line {
    margin-top: 0.2rem !important;
}

.content-page__byline__line strong {
    font-weight: 700;
    margin-right: 0.25em;
}

.content-page__byline__line time {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

/* FAQ accordion */
.content-page__faq {
    margin: 2rem 0;
}

.content-page__faq__item {
    border: 1px solid #dcecee;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    overflow: hidden;
    background: #f2f8f9;
}

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

.content-page__faq .content-page__faq__question {
    margin: 0 !important;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    text-align: left !important;
    font-size: 17px !important;
    font-weight: 600;
    background: #eef5f6;
    position: relative;
    padding-right: 3rem;
    transition: background-color 0.2s;
}

.content-page__faq__question:hover {
    background: #e4f0f2;
}

.content-page__faq__question::after {
    content: "+";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    font-weight: bold;
    color: #607e82;
    transition: transform 0.2s;
}

.content-page__faq__item:not(.content-page__faq__item--closed) .content-page__faq__question::after {
    content: "−";
}

.content-page__faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.content-page__faq__item:not(.content-page__faq__item--closed) .content-page__faq__answer {
    max-height: 3000px;
    transition: max-height 0.4s ease-in;
}

.content-page__faq__answer > div {
    padding: 0 1.5rem 1.5rem;
    font-size: 16px;
    line-height: 1.6;
    background: #f6fafb;
}

.content-page__faq__answer p {
    margin: 0 0 0.5rem;
}

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

/* Author block */
.content-page__author {
    margin: 2rem 0;
}

.content-page__author__inner {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: #eef5f6;
    border: 1px solid #dcecee;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(96, 126, 130, 0.08);
}

.content-page__author .content-page__author__avatar,
.content-page__author .content-page__author__avatar-slot {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 50%;
    border: 3px solid #d4e8eb;
    box-sizing: border-box;
}

.content-page__author .content-page__author__avatar {
    object-fit: cover;
}

.content-page__author .content-page__author__avatar-slot {
    background: linear-gradient(160deg, #f4fafb 0%, #dcecee 55%, #cfe4e8 100%);
}

.content-page__author__content {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    line-height: 1.6;
}

.content-page__author__content p {
    font-size: 16px;
}

.content-page__author__name {
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 0.25rem !important;
    color: #363636;
}

.content-page__author__role {
    font-size: 15px;
    color: #607e82;
    margin: 0 0 0.75rem !important;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .content-page {
        padding: 1.5rem 1rem;
    }

    .content-page h1 {
        font-size: 28px;
    }

    .content-page h2 {
        font-size: 24px;
    }

    .content-page h3 {
        font-size: 20px;
    }

    .content-page__pros-cons {
        flex-direction: column;
    }

    .content-page__quote__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .content-page__quote__content p {
        text-align: center;
    }

    .content-page__quote__content footer {
        text-align: center;
    }

    .content-page__faq__question {
        padding: 1.125rem 1.25rem;
        padding-right: 2.5rem;
        font-size: 16px !important;
    }

    .content-page__faq__answer > div {
        padding: 0 1.25rem 1.25rem;
    }

    .content-page__author__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .content-page__author__avatar,
    .content-page__author__avatar-slot {
        width: 64px;
        height: 64px;
        min-width: 64px;
    }

    .content-page__quote .content-page__quote__avatar,
    .content-page__quote .content-page__quote__avatar-slot {
        width: 64px;
        height: 64px;
        min-width: 64px;
    }

    .content-page__byline__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .content-page__byline__avatar-slot,
    .content-page__byline .content-page__byline__avatar {
        width: 56px;
        height: 56px;
        min-width: 56px;
    }
}
