/* STELLA V2 – CONTENT COMPONENTS */

.stella-content blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    background: #f3f7fb;
    border-left: 4px solid var(--stella-primary);
    border-radius: 0 8px 8px 0;
}

.stella-content figure {
    max-width: 100%;
}

.stella-content img {
    border-radius: 6px;
}

.stella-content a:not(.button) {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.stella-content button,
.stella-content input[type="submit"],
.stella-content .button {
    border-radius: 6px;
}

.stella-content hr {
    border: 0;
    border-top: 1px solid var(--stella-border);
    margin: 30px 0;
}

.stella-content table {
    overflow-wrap: normal;
}

.stella-content th {
    text-align: left;
}

.stella-content .wp-caption {
    max-width: 100%;
    margin: 25px auto;
}

.stella-content .wp-caption-text {
    color: var(--stella-muted);
    font-size: 14px;
    text-align: center;
}

/* STELLA V2 – FEHLERSEITE */

.stella-error-page {
    max-width: 900px;
    min-height: 0;
    margin: 30px auto;
    text-align: center;
    padding: 55px 25px;
}

.stella-error-page h1 {
    color: var(--stella-primary-dark);
    font-size: 64px;
    line-height: 1;
    margin: 0 0 25px;
}

.stella-error-page p {
    margin-bottom: 30px;
}

/* ZENTRALE STELLA SEITENNAVIGATION */
.stella-sidebar-navigation {
    background: #e5f1f9;
    border: 1px solid #d1e4f0;
    border-radius: 9px;
    overflow: hidden;
    box-shadow: var(--stella-shadow);
}

.stella-sidebar-menu {
    margin: 0;
    padding: 8px 0;
    list-style: none;
}

.stella-sidebar-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stella-sidebar-menu a {
    display: block;
    padding: 11px 16px;
    color: #17577e;
    background: transparent;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    border-bottom: 1px solid #d1e4f0;
    transition: background .15s ease;
}

.stella-sidebar-menu a:hover,
.stella-sidebar-menu .current-menu-item > a {
    color: #17577e;
    background: #cfe4f3;
}


.stella-sidebar-menu .current-menu-item > a,
.stella-sidebar-menu a[aria-current="page"] {
    color: #fff;
    background: var(--stella-primary);
    font-weight: 600;
}

/* STELLA V2 – COSTA BLANCA */

.stella-costa-layout {
    align-items: start;
}

.stella-costa-sidebar {
    min-width: 0;
}

.stella-costa-article {
    padding: 28px;
    min-width: 0;
}

.stella-costa-content {
    display: flow-root;
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: break-word;
}

.stella-costa-content h2 {
    color: var(--stella-primary-dark);
    font-size: 25px;
    line-height: 1.35;
    margin: 0 0 20px;
}

.stella-costa-content h3 {
    clear: both;
    color: var(--stella-primary-dark);
    font-size: 22px;
    margin: 28px 0 16px;
}

.stella-costa-content h4 {
    clear: both;
    color: var(--stella-primary-dark);
    font-size: 19px;
    margin: 22px 0 14px;
}

.stella-costa-content p {
    margin: 0 0 16px;
}

.stella-costa-content img {
    max-width: 100%;
    height: auto;
    border-radius: 7px;
}

.stella-costa-content figure {
    margin: 0 0 20px;
}

.stella-costa-content .stella-editorial-image {
    float: right;
    width: 38%;
    max-width: 420px;
    margin: 4px 0 20px 24px;
}

.stella-costa-content .stella-editorial-image img {
    display: block;
    width: 100%;
    height: auto;
}

.stella-costa-content .stella-climate-grid {
    clear: both;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px;
    margin: 24px 0;
}

.stella-climate-grid figure {
    margin: 0;
    padding: 16px;
    background: #f5f9fc;
    border: 1px solid var(--stella-border);
    border-radius: 8px;
    text-align: center;
}

.stella-climate-grid img {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 12px auto 0;
}

.stella-climate-grid figcaption {
    font-weight: 600;
    color: var(--stella-primary-dark);
}

@media(max-width:700px) {
    .stella-costa-article {
        padding: 18px;
    }

    .stella-costa-content .stella-editorial-image {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 20px;
    }

    .stella-costa-content .stella-climate-grid {
        grid-template-columns: 1fr;
    }
}


/* STELLA V2 – REDAKTIONELLE INHALTE */

.stella-editorial,
.stella-editorial > section {
    display: flow-root;
}

.stella-costa-content .stella-editorial-image {
    clear: right;
}

.stella-costa-content .stella-climate-grid {
    align-items: stretch;
}

.stella-climate-grid figure {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stella-climate-grid figcaption {
    min-height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

.stella-costa-content .slogan {
    clear: both;
    padding: 18px 22px;
    background: #e5f1f9;
    border-left: 4px solid var(--stella-primary);
    border-radius: 0 7px 7px 0;
    color: var(--stella-primary-dark);
    font-weight: 600;
}


/* STELLA V2 – INFORMATIONSÜBERSICHT */

.stella-info-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px;
    margin-top: 25px;
}

.stella-info-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    background: #e5f1f9;
    border: 1px solid #d1e4f0;
    border-radius: 9px;
    text-decoration: none !important;
    color: #17577e;
    transition: background .2s ease;
}

.stella-info-card:hover {
    background: #d3e8f6;
}

.stella-info-number {
    font-size: 30px;
    font-weight: 700;
    color: var(--stella-primary);
    line-height: 1;
    margin-bottom: 15px;
}

.stella-info-card h3 {
    font-size: 21px;
    margin: 0 0 12px;
}

.stella-info-card p {
    color: #34495e;
    margin-bottom: 20px;
}

.stella-info-more {
    margin-top: auto;
    font-weight: 600;
    color: var(--stella-primary-dark);
}

@media(max-width:650px) {
    .stella-info-grid {
        grid-template-columns: 1fr;
    }
}


/* STELLA V2 – FAQ ACCORDION */

.stella-faq-item {
    margin: 0 0 10px;
    border: 1px solid #d1e4f0;
    border-radius: 7px;
    background: #fff;
    overflow: hidden;
    scroll-margin-top: 25px;
}

.stella-faq-item > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 20px;
    background: #e5f1f9;
    color: #17577e;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
}

.stella-faq-item > summary::-webkit-details-marker {
    display: none;
}

.stella-faq-item > summary::after {
    content: "+";
    flex-shrink: 0;
    font-size: 23px;
    font-weight: 400;
    line-height: 1;
    color: inherit;
}

.stella-faq-item[open] > summary::after {
    content: "−";
}

.stella-faq-item > summary:hover {
    background: #d3e8f6;
}

.stella-faq-item[open] > summary {
    background: #1482bd;
    color: #fff;
}

.stella-faq-item > summary:focus-visible {
    outline: 2px solid #006ba6;
    outline-offset: -3px;
}

.stella-faq-answer {
    display: flow-root;
    padding: 20px;
}

.stella-faq-answer > :first-child {
    margin-top: 0;
}

.stella-faq-answer > :last-child {
    margin-bottom: 0;
}

@media(max-width:650px) {
    .stella-faq-item > summary {
        padding: 12px 15px;
        font-size: 15px;
    }

    .stella-faq-answer {
        padding: 15px;
    }
}


/* STELLA V2 – INFORMATIONSABSCHNITTE */

.stella-info-section {
    margin-bottom: 14px;
}

.stella-info-section > summary {
    font-size: 18px;
    padding: 17px 20px;
}

.stella-info-section .stella-faq-answer h4 {
    clear: none;
    color: #006ba6;
    font-size: 17px;
    margin: 24px 0 14px;
}

.stella-info-section .stella-faq-answer h5 {
    clear: none;
    color: #17577e;
    font-size: 15px;
    margin: 20px 0 12px;
}

.stella-info-section .stella-faq-answer > :first-child {
    margin-top: 0;
}

.stella-costa-content .stella-editorial > :first-child,
.stella-costa-content .stella-editorial > section:first-child > :first-child {
    margin-top: 0;
}

@media(max-width:650px) {
    .stella-info-section > summary {
        font-size: 16px;
        padding: 14px 15px;
    }
}


/* STELLA V2 – KAUFNEBENKOSTENRECHNER */

.stella-cost-calculator {
    padding: 25px;
    background: #f1f6fa;
    border: 1px solid #d1e4f0;
    border-radius: 9px;
    margin: 25px 0;
}

.stella-cost-calculator h2 {
    color: #006ba6;
    margin: 0 0 8px;
}

.stella-cost-date,
.stella-cost-note {
    font-size: 13px;
    color: #536779;
    line-height: 1.5;
}

.stella-cost-fields {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
    margin-top: 20px;
}

.stella-cost-fields label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 14px;
    font-weight: 500;
}

.stella-cost-wide {
    grid-column: 1/-1;
}

.stella-cost-fields input[type="number"],
.stella-cost-fields select {
    box-sizing: border-box;
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid #b9d1e1;
    border-radius: 5px;
    background: #fff;
    font: inherit;
    color: #243746;
}

.stella-cost-fields .stella-cost-mainhome {
    flex-direction: row;
    align-items: center;
}

.stella-cost-calculator [hidden] {
    display: none !important;
}

.stella-cost-results {
    background: #fff;
    padding: 18px;
    border-radius: 7px;
}

.stella-cost-results > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #e5eaf0;
}

.stella-cost-results strong {
    white-space: nowrap;
    color: #17577e;
    font-variant-numeric: tabular-nums;
}

.stella-cost-results .stella-cost-total {
    background: #e5f1f9;
    padding: 18px;
    margin-top: 12px;
    border: 0;
    border-radius: 6px;
    flex-wrap: wrap;
}

.stella-cost-total strong {
    font-size: 25px;
    color: #006ba6;
}

@media(max-width:650px) {
    .stella-cost-calculator {
        padding: 15px;
    }

    .stella-cost-fields {
        grid-template-columns: 1fr;
    }
}


/* STELLA V2 – KOSTENRECHNER V1.1 */

.stella-cost-calculator {
    padding: 20px;
    margin: 15px 0 22px;
}

.stella-cost-fields {
    gap: 12px 16px;
    margin-top: 15px;
}

.stella-cost-fields label {
    gap: 5px;
}

.stella-cost-fields input[type="text"] {
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #b9d1e1;
    border-radius: 5px;
    background: #fff;
    font: inherit;
    color: #243746;
    font-variant-numeric: tabular-nums;
}

.stella-cost-results {
    padding: 12px 16px;
}

.stella-cost-results > div {
    padding: 9px 0;
}

.stella-cost-results .stella-cost-total {
    padding: 14px;
}

.stella-cost-note {
    margin: 10px 0;
}

@media(max-width:650px) {
    .stella-cost-calculator {
        padding: 14px;
    }
}


/* STELLA V2 – BILDER IN INFORMATIONSABSCHNITTEN */

.stella-info-section .stella-faq-answer > figure {
    float: right;
    clear: right;
    width: 38%;
    max-width: 420px;
    margin: 0 0 20px 25px;
}

.stella-info-section .stella-faq-answer > figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

@media(max-width:750px) {
    .stella-info-section .stella-faq-answer > figure {
        float: none;
        clear: both;
        width: 100%;
        max-width: 420px;
        margin: 15px auto 20px;
    }
}


/* STELLA V2 – HYPOTHEKENRECHNER V1.0 */

.stella-mortgage-slider {
    padding: 14px;
    background: #e5f1f9;
    border-radius: 6px;
}

.stella-mortgage-slider strong {
    color: #006ba6;
    margin-left: 8px;
}

.stella-mortgage-slider input[type="range"] {
    width: 100%;
    accent-color: #1482bd;
    cursor: pointer;
    margin: 12px 0 4px;
}

.stella-mortgage-highlight {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
    margin: 18px 0;
}

.stella-mortgage-highlight > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: #e5f1f9;
    border: 1px solid #d1e4f0;
    border-radius: 7px;
}

.stella-mortgage-highlight span {
    font-size: 14px;
    color: #17577e;
}

.stella-mortgage-highlight strong {
    font-size: clamp(20px,2.4vw,30px);
    line-height: 1.25;
    color: #006ba6;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.stella-cost-results .stella-mortgage-chart {
    display: block;
    border: 0;
    padding-top: 20px;
}

.stella-mortgage-bar {
    display: flex;
    height: 13px;
    background: #edf2f6;
    border-radius: 10px;
    overflow: hidden;
}

.stella-mortgage-bar span {
    display: block;
    width: 0;
    transition: width .15s ease;
}

.stella-mortgage-bar [data-bar="principal"],
.stella-mortgage-legend .principal {
    background: #1482bd;
}

.stella-mortgage-bar [data-bar="interest"],
.stella-mortgage-legend .interest {
    background: #b9d1e1;
}

.stella-mortgage-legend {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    font-size: 13px;
    color: #536779;
}

.stella-mortgage-legend i {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 3px;
    margin-right: 5px;
}

.stella-mortgage-warning {
    background: #fff3dc;
    border-left: 3px solid #c18b26;
    padding: 12px 15px;
    font-size: 14px;
    color: #805a15;
    margin: 15px 0;
}

@media(max-width:650px) {

    .stella-mortgage-highlight {
        grid-template-columns: 1fr;
    }

    .stella-mortgage-highlight > div {
        padding: 15px;
    }

    .stella-mortgage-calculator .stella-cost-results > div {
        flex-wrap: wrap;
    }
}



/* Gemeinsamer Stella-Button: Startseite, Kontakt, Expose und 404 */

.stella-home-button {
    display: inline-block;
    align-self: flex-start;
    padding: 12px 25px;
    background: var(--stella-primary);
    color: white;
    border-radius: 6px;
    font-weight: 700;
}

.stella-home-button:hover {
    background: var(--stella-primary-dark);
    color: white;
}
