/*
 * Vino Delicato - CMS content pages (Über uns, AGB, Widerruf, Datenschutz).
 * Plain CSS, loaded only on cms_page_view (see Magento_Cms/layout/cms_page_view.xml),
 * so it does not depend on the Tailwind build. Scoped by the page body class.
 */

/* ------------------------------------------------------------------ */
/* Legal pages: AGB, Widerrufsbelehrung, Datenschutz                   */
/* ------------------------------------------------------------------ */
.cms-agb .column.main,
.cms-widerruf .column.main,
.cms-datenschutz .column.main {
    max-width: 100%;
    margin: 1.5rem auto 4rem;
    padding: 2rem 1.25rem;
    background: #FFFEFC;
    border: 1px solid #EEE8DF;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(78, 57, 32, .04), 0 8px 24px rgba(78, 57, 32, .06);
    color: #474747;
    hyphens: auto;
    overflow-wrap: anywhere;
}

@media (min-width: 768px) {
    .cms-agb .column.main,
    .cms-widerruf .column.main,
    .cms-datenschutz .column.main {
        padding: 3.5rem 4rem;
    }
}

/* Content comes from the legal text provider with inline "text-align: justify" */
.cms-agb .column.main [style*="text-align"],
.cms-widerruf .column.main [style*="text-align"],
.cms-datenschutz .column.main [style*="text-align"] {
    text-align: left !important;
}

.cms-agb .column.main h1,
.cms-widerruf .column.main h1,
.cms-datenschutz .column.main h1 {
    font-family: "Libre Baskerville", serif;
    font-weight: 700;
    font-size: 1.625rem;
    line-height: 1.3;
    color: #1F1F1F;
    text-align: center !important;
    margin: 0 0 .75rem;
}

@media (min-width: 768px) {
    .cms-agb .column.main h1,
    .cms-widerruf .column.main h1,
    .cms-datenschutz .column.main h1 {
        font-size: 2.125rem;
    }
}

/* decorative oak line under the title (same as the section titles on the homepage) */
.cms-agb .column.main h1::after,
.cms-widerruf .column.main h1::after,
.cms-datenschutz .column.main h1::after {
    content: "";
    display: block;
    width: 56px;
    height: 2px;
    margin: 1rem auto 0;
    background: #C19B6C;
}

/* "(Stand ab ...)" directly below the title */
.cms-agb .column.main h1 + p,
.cms-widerruf .column.main h1 + p,
.cms-datenschutz .column.main h1 + p {
    display: table;
    margin: 0 auto 2.5rem;
    padding: .25rem .875rem;
    font-size: .8125rem;
    color: #715533;
    background: #F4ECE1;
    border-radius: 999px;
    text-align: center !important;
}

.cms-agb .column.main h2,
.cms-widerruf .column.main h2,
.cms-datenschutz .column.main h2 {
    font-family: "Libre Baskerville", serif;
    font-weight: 700;
    font-size: 1.1875rem;
    line-height: 1.4;
    color: #5A1E2D;
    margin: 2.75rem 0 1rem;
    padding-bottom: .625rem;
    border-bottom: 1px solid #EADBC7;
    scroll-margin-top: 120px;
}

@media (min-width: 768px) {
    .cms-agb .column.main h2,
    .cms-widerruf .column.main h2,
    .cms-datenschutz .column.main h2 {
        font-size: 1.375rem;
    }
}

.cms-agb .column.main h3,
.cms-widerruf .column.main h3,
.cms-datenschutz .column.main h3 {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #1F1F1F;
    margin: 1.75rem 0 .5rem;
}

.cms-agb .column.main p,
.cms-agb .column.main li,
.cms-widerruf .column.main p,
.cms-widerruf .column.main li,
.cms-datenschutz .column.main p,
.cms-datenschutz .column.main li {
    font-size: .9375rem;
    line-height: 1.75;
    color: #474747;
}

.cms-agb .column.main p,
.cms-widerruf .column.main p,
.cms-datenschutz .column.main p {
    margin: 0 0 1rem;
}

/* paragraph numbers like "1.1", "2.3" */
.cms-agb .column.main p > strong:first-child,
.cms-datenschutz .column.main p > strong:first-child {
    display: inline-block;
    min-width: 2.25rem;
    color: #8F6D43;
    font-weight: 600;
}

.cms-agb .column.main strong,
.cms-widerruf .column.main strong,
.cms-datenschutz .column.main strong {
    color: #1F1F1F;
    font-weight: 600;
}

.cms-agb .column.main ul,
.cms-agb .column.main ol,
.cms-widerruf .column.main ul,
.cms-widerruf .column.main ol,
.cms-datenschutz .column.main ul,
.cms-datenschutz .column.main ol {
    margin: .25rem 0 1.25rem;
    padding-left: 1.5rem;
}

.cms-agb .column.main ul,
.cms-widerruf .column.main ul,
.cms-datenschutz .column.main ul {
    list-style: disc;
}

.cms-agb .column.main ol,
.cms-widerruf .column.main ol,
.cms-datenschutz .column.main ol {
    list-style: decimal;
}

.cms-agb .column.main li,
.cms-widerruf .column.main li,
.cms-datenschutz .column.main li {
    margin-bottom: .375rem;
    padding-left: .25rem;
}

.cms-agb .column.main li::marker,
.cms-widerruf .column.main li::marker,
.cms-datenschutz .column.main li::marker {
    color: #C19B6C;
    font-weight: 600;
}

/* AGB: table of contents ("Inhaltsverzeichnis" + ol) as a highlighted box */
.cms-agb .column.main h2 + ol {
    display: grid;
    grid-template-columns: 1fr;
    gap: .25rem 2rem;
    margin: 0 0 1rem;
    padding: 1.25rem 1.25rem 1.25rem 2.75rem;
    background: #FBF8F4;
    border: 1px solid #F4ECE1;
    border-radius: 10px;
}

@media (min-width: 768px) {
    .cms-agb .column.main h2 + ol {
        grid-template-columns: 1fr 1fr;
    }
}

.cms-agb .column.main h2 + ol li {
    margin: 0;
}

.cms-agb .column.main a,
.cms-widerruf .column.main a,
.cms-datenschutz .column.main a {
    color: #8F6D43;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cms-agb .column.main a:hover,
.cms-widerruf .column.main a:hover,
.cms-datenschutz .column.main a:hover {
    color: #5A1E2D;
}

/* Widerruf: the model withdrawal form (paragraphs with line breaks) reads better with more room */
.cms-widerruf .column.main p br + br {
    display: none;
}

/* ------------------------------------------------------------------ */
/* Über uns                                                            */
/* ------------------------------------------------------------------ */
.vd-about {
    max-width: 100%;
    margin: 0 auto 4rem;
    color: #474747;
}

.vd-about p {
    font-size: 1rem;
    line-height: 1.8;
    color: #474747;
    margin: 0 0 1rem;
}

.vd-about__hero {
    text-align: center;
    padding: .5rem 1rem 1.5rem;
}

.vd-about__eyebrow {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #8F6D43;
    margin-bottom: .75rem;
}

.vd-about__title {
    font-family: "Libre Baskerville", serif;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.25;
    color: #1F1F1F;
    margin: 0;
}

@media (min-width: 768px) {
    .vd-about__title {
        font-size: 2.75rem;
    }
}

.vd-about__title::after {
    content: "";
    display: block;
    width: 56px;
    height: 2px;
    margin: 1.25rem auto 0;
    background: #C19B6C;
}

.vd-about__lead {
    max-width: 760px;
    margin: 1.5rem auto 0 !important;
    font-size: 1.0625rem !important;
    line-height: 1.85 !important;
}

.vd-about__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 3rem;
}

@media (min-width: 900px) {
    .vd-about__facts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.vd-about__fact {
    text-align: center;
    padding: 1.5rem 1rem;
    background: #FFFEFC;
    border: 1px solid #EEE8DF;
    border-radius: 12px;
}

.vd-about__fact-value {
    display: block;
    font-family: "Libre Baskerville", serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #5A1E2D;
}

.vd-about__fact-label {
    display: block;
    margin-top: .375rem;
    font-size: .8125rem;
    color: #715533;
}

.vd-about__section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2.5rem 0;
    border-top: 1px solid #EADBC7;
}

@media (min-width: 900px) {
    .vd-about__section {
        grid-template-columns: 280px 1fr;
        gap: 3rem;
    }
}

.vd-about__section h2 {
    font-family: "Libre Baskerville", serif;
    font-weight: 700;
    font-size: 1.375rem;
    line-height: 1.4;
    color: #1F1F1F;
    margin: 0;
}

.vd-about__cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 1rem 0 2.5rem;
}

@media (min-width: 768px) {
    .vd-about__cards {
        grid-template-columns: 1fr 1fr;
    }
}

.vd-about__card {
    padding: 2rem;
    background: #FBF8F4;
    border: 1px solid #F4ECE1;
    border-radius: 12px;
}

.vd-about__card h3 {
    font-family: "Libre Baskerville", serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: #5A1E2D;
    margin: 0 0 .75rem;
}

.vd-about__card a {
    color: #8F6D43;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.vd-about__quote {
    margin: 0;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: #42141F;
    border-radius: 12px;
}

.vd-about__quote p {
    max-width: 720px;
    margin: 0 auto !important;
    font-family: "Libre Baskerville", serif;
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
    color: #FDFBF7 !important;
}

.vd-about__quote p + p {
    margin-top: .75rem !important;
    font-family: "Inter", sans-serif;
    font-size: .9375rem !important;
    color: #DEC8AA !important;
}

/* ------------------------------------------------------------------ */
/* Lieferung (clean HTML, classes below)                      */
/* ------------------------------------------------------------------ */
.cms-lieferung .column.main {
    max-width: 100%;
    margin: 20px auto 0 auto;
    padding: 2rem 1.25rem;
    background: #FFFEFC;
    border: 1px solid #EEE8DF;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(78, 57, 32, .04), 0 8px 24px rgba(78, 57, 32, .06);
    color: #474747;
}

@media (min-width: 768px) {
    .cms-lieferung .column.main {
        padding: 3.5rem 4rem;
    }
}

/* "Lieferkonditionen" = page title */
.cms-lieferung .vino-cms-content h2:first-child {
    font-family: "Libre Baskerville", serif;
    font-weight: 700;
    font-size: 1.625rem;
    line-height: 1.3;
    color: #1F1F1F;
    text-align: center;
    margin: 0 0 .75rem !important;
}

@media (min-width: 768px) {
    .cms-lieferung .vino-cms-content h2:first-child {
        font-size: 2.125rem;
    }
}

.cms-lieferung .vino-cms-content h2:first-child::after {
    content: "";
    display: block;
    width: 56px;
    height: 2px;
    margin: 1rem auto 0;
    background: #C19B6C;
}

/* "VINO DELICATO" under the title */
.cms-lieferung .vino-cms-content .vd-badge {
    display: table;
    margin: 0 auto 2rem !important;
    padding: .25rem .875rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    color: #715533;
    background: #F4ECE1;
    border-radius: 999px;
}

.cms-lieferung .vino-cms-content h3 {
    font-family: "Libre Baskerville", serif;
    font-weight: 700;
    font-size: 1.1875rem;
    line-height: 1.4;
    color: #5A1E2D;
    margin: 2.5rem 0 1rem !important;
    padding-bottom: .625rem;
    border-bottom: 1px solid #EADBC7;
}

@media (min-width: 768px) {
    .cms-lieferung .vino-cms-content h3 {
        font-size: 1.375rem;
    }
}

.cms-lieferung .vino-cms-content p {
    font-size: .9375rem;
    line-height: 1.75;
    color: #474747;
    margin: 0 0 1rem !important;
    hyphens: auto;
}

.cms-lieferung .vino-cms-content a {
    color: #8F6D43;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cms-lieferung .vino-cms-content a:hover {
    color: #5A1E2D;
}

/* shipping cost tables */
.cms-lieferung .vino-cms-content table {
    margin: 1rem 0 1.5rem !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border: 1px solid #EADBC7;
    border-radius: 10px;
    overflow: hidden;
}

.cms-lieferung .vino-cms-content th,
.cms-lieferung .vino-cms-content td {
    padding: 10px 5px;
    border: 0 !important;
    border-bottom: 1px solid #F4ECE1 !important;
    font-size: .9375rem;
    color: #474747;
    font-size: 14px !important;
}

.cms-lieferung .vino-cms-content th {
    background: #F4ECE1 !important;
    color: #4E3920 !important;
    font-weight: 600;
    font-size: .8125rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.cms-lieferung .vino-cms-content tr:nth-child(odd),
.cms-lieferung .vino-cms-content tr:nth-child(even) {
    background: #FFFEFC;
}

.cms-lieferung .vino-cms-content tr:nth-child(even) td {
    background: #FBF8F4 !important;
}

.cms-lieferung .vino-cms-content tr:last-child td {
    border-bottom: 0 !important;
}

/* last column (price) right-aligned and emphasized */
.cms-lieferung .vino-cms-content td:last-child,
.cms-lieferung .vino-cms-content th:last-child {
    text-align: right;
}

.cms-lieferung .vino-cms-content td:last-child {
    font-weight: 600;
    color: #1F1F1F;
}

/* country flag lists (ul.vd-flags) -> chips */
.cms-lieferung .vino-cms-content .vd-flags {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .625rem;
    margin: 1rem 0 1.5rem;
    padding: 0;
    list-style: none;
}

.cms-lieferung .vino-cms-content .vd-flags li {
    display: flex;
    align-items: center;
    gap: .625rem;
    margin: 0;
    padding: .5rem .75rem;
    background: #FBF8F4;
    border: 1px solid #F4ECE1;
    border-radius: 8px;
    font-size: .875rem;
    color: #333333;
}

.cms-lieferung .vino-cms-content .vd-flags img {
    flex: none;
    width: 24px;
    height: auto;
}

.cms-lieferung .vino-cms-content .vd-table {
    width: 100%;
    text-align: left;
}

/* ------------------------------------------------------------------ */
/* FAQ (.vd-faq, accordion with <details>)                            */
/* ------------------------------------------------------------------ */
.cms-faq .column.main {
    width: 100%;
    margin: 20px auto 3rem;
    color: #474747;
}

.vd-faq__eyebrow {
    margin: -.5rem 0 .75rem;
    text-align: center;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #8F6D43;
}

.vd-faq__lead {
    max-width: 640px;
    margin: 0 auto 2.25rem;
    text-align: center;
    font-size: 1rem;
    line-height: 1.7;
    color: #5C5C5C;
}

.vd-faq a {
    color: #8F6D43;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.vd-faq a:hover {
    color: #5A1E2D;
}

.vd-faq__list {
    display: grid;
    gap: .75rem;
    counter-reset: vd-faq;
}

.vd-faq__item {
    background: #FFFEFC;
    border: 1px solid #EEE8DF;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(78, 57, 32, .04), 0 4px 14px rgba(78, 57, 32, .05);
    transition: border-color .15s, box-shadow .15s;
}

.vd-faq__item:hover {
    border-color: #DEC8AA;
}

.vd-faq__item[open] {
    border-color: #DEC8AA;
    box-shadow: 0 1px 2px rgba(78, 57, 32, .04), 0 8px 24px rgba(78, 57, 32, .08);
}

.vd-faq__item summary {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.125rem 3.25rem 1.125rem 1.25rem;
    cursor: pointer;
    list-style: none;
    font-family: "Libre Baskerville", serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.45;
    color: #1F1F1F;
}

@media (min-width: 768px) {
    .vd-faq__item summary {
        padding: 1.25rem 3.75rem 1.25rem 1.5rem;
        font-size: 1.0625rem;
    }
}

.vd-faq__item summary::-webkit-details-marker {
    display: none;
}

/* running number */
.vd-faq__item summary::before {
    counter-increment: vd-faq;
    content: counter(vd-faq, decimal-leading-zero);
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    font-family: inherit;
    font-size: .8125rem;
    color: #8F6D43;
    background: #F4ECE1;
}

.vd-faq__item[open] summary::before {
    color: #FFFFFF;
    background: #5A1E2D;
}

/* plus / minus toggle */
.vd-faq__item summary::after {
    content: "";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    width: 1.5rem;
    height: 1.5rem;
    margin-top: -.75rem;
    border-radius: 50%;
    border: 1px solid #EADBC7;
    background:
        linear-gradient(#8F6D43, #8F6D43) center / 10px 1.5px no-repeat,
        linear-gradient(#8F6D43, #8F6D43) center / 1.5px 10px no-repeat;
    transition: transform .2s;
}

.vd-faq__item[open] summary::after {
    transform: rotate(45deg);
}

.vd-faq__item summary:hover {
    color: #5A1E2D;
}

.vd-faq__item summary:focus-visible {
    outline: 2px solid #C19B6C;
    outline-offset: 2px;
    border-radius: 12px;
}

.vd-faq__answer {
    padding: 0 1.25rem 1.25rem 4.5rem;
    font-size: .9375rem;
    line-height: 1.75;
}

@media (max-width: 639px) {
    .vd-faq__answer {
        padding-left: 1.25rem;
    }
}

@media (min-width: 768px) {
    .vd-faq__answer {
        padding: 0 3.75rem 1.5rem 4.75rem;
    }
}

.vd-faq__answer p {
    margin: 0 0 .75rem;
}

.vd-faq__answer p:last-child {
    margin-bottom: 0;
}

.vd-faq__note {
    padding: .875rem 1rem;
    background: #FBF8F4;
    border-left: 3px solid #C19B6C;
    border-radius: 0 8px 8px 0;
}

.vd-faq__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-top: 2rem;
    padding: 1.5rem 1.75rem;
    color: #F4ECE1;
    background: linear-gradient(150deg, #5A1E2D 0%, #42141F 100%);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(66, 20, 31, .18);
}

.vd-faq__cta p {
    margin: 0;
    color: #F4ECE1;
}

.vd-faq__cta-title {
    margin-bottom: .25rem !important;
    font-family: "Libre Baskerville", serif;
    font-weight: 700;
    font-size: 1.1875rem;
    color: #FFFFFF;
}

.vd-faq .vd-faq__cta-btn {
    display: inline-flex;
    align-items: center;
    padding: .75rem 1.5rem;
    font-weight: 600;
    font-size: .9375rem;
    color: #42141F;
    background: #F4ECE1;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color .15s;
}

.vd-faq .vd-faq__cta-btn:hover {
    color: #42141F;
    background: #FFFFFF;
}
