/**
 * Merchant 1 – Overrides only (Raceevent)
 * Portal: theme-components.css + theme-light/dark.css
 * Legacy Shwi bleibt in custom.css
 */

:root,
[data-theme="light"],
[data-theme="dark"] {
    --tw-font-display: "BenchNine", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --tw-font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;

    --tw-color-ink: #4b4b4b;
    --tw-color-moss: #333333;
    --tw-color-leaf: #999999;
    --tw-color-sand: #f4f4f4;
    --tw-color-mist: #ffffff;
    --tw-color-ember: #d9b65f;

    --color-base-100: #ffffff;
    --color-base-200: #f4f4f4;
    --color-base-300: #e5e5e5;
    --color-base-content: #4b4b4b;
    --color-primary: #333333;
    --color-primary-content: #ffffff;
    --color-secondary: #d9b65f;
    --color-secondary-content: #1f1e1d;
    --color-accent: #5b0101;
    --color-accent-content: #ffffff;
    --color-neutral: #1f1e1d;
    --color-neutral-content: #ffffff;
    --color-info: #666666;
    --color-success: #9cc7a1;
    --color-warning: #d9b65f;
    --color-error: #5b0101;

    --tw-cta: #d9b65f;
    --tw-cta-hover: #c4a34e;
    --tw-cta-content: #1f1e1d;
    --tw-header-fixed-bg: #333333;
}

body {
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
    background-color: #ffffff;
    background-image: none;
    color: var(--color-base-content);
    font-family: var(--tw-font-body);
}

/* Display-Schrift überall, wo font-display gesetzt ist (inkl. Bold-Face) */
.font-display {
    font-family: var(--tw-font-display) !important;
}

/* Artikel-Varianten-Titel fett (BenchNine Bold) – Live h3 = 2.15rem */
.article-variant__title {
    font-family: var(--tw-font-display) !important;
    font-weight: 700 !important;
    font-size: 2.15rem !important;
    line-height: 1.15;
    letter-spacing: 0.02em;
}

/* Ticketkategorie-Tabs fett */
[role="tablist"][aria-label="Ticketkategorien"] [role="tab"] {
    font-family: var(--tw-font-display) !important;
    font-weight: 700 !important;
}

/* Social-Icons unter Tabs (Legacy custom.css) */
.pr_detail_social .social_icons li a {
    font-size: 20px;
    color: #666;
}

.pr_detail_social .social_icons li a:hover {
    color: var(--tw-cta);
}

/* Footer-Social Icons: Gold-Hover */
footer .footer-social__link {
    color: rgba(255, 255, 255, 0.75);
}

footer .footer-social__link:hover {
    color: var(--tw-cta);
    background-color: color-mix(in srgb, var(--tw-cta) 15%, transparent);
}

/* Artikel-Posts (minPost): Headline wie Live h1/h3 */
.article-media-post__text h2 {
    font-family: var(--tw-font-display) !important;
    font-weight: 700 !important;
    font-size: 2.15rem !important;
    line-height: 1.15;
    color: #333333 !important;
}

.article-media-post__text .content-prose {
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

.article-media-post.back-standard2 {
    background-color: transparent;
}

/* Preis wie Legacy .price */
.price {
    font-family: "BenchNine", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-size: 22px !important;
    line-height: 1.3;
    font-weight: 400;
    color: #333333;
}

.price .fee,
.price .on_sale,
.price del {
    font-size: 0.85em;
}

/* Header: Menüebene + Logo immer #333 (Legacy bottom_header) */
.site-header.nav-top,
.site-header.nav-fixed,
.site-header[data-nav-fixed="true"] {
    background-color: var(--tw-header-fixed-bg) !important;
    border-bottom-color: #1f1e1d !important;
    backdrop-filter: none;
}

.site-header .site-nav-link {
    color: #ffffff !important;
}

.site-header .site-nav-link:hover,
.site-header .site-nav-link[aria-current="page"] {
    color: var(--tw-cta) !important;
}

.site-header .site-icon-btn,
.site-header .site-burger {
    color: #ffffff !important;
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

.site-header .site-icon-btn:hover,
.site-header .site-burger:hover {
    color: var(--tw-cta) !important;
    border-color: var(--tw-cta) !important;
}

.site-header .site-burger__line {
    background-color: #ffffff !important;
}

.site-mobile-nav {
    background-color: var(--tw-header-fixed-bg) !important;
    border-color: #1f1e1d !important;
}

.site-mobile-link {
    color: #ffffff !important;
}

.site-mobile-link:hover,
.site-mobile-link--accent {
    color: var(--tw-cta) !important;
}

/* Preise: Fremdwährung ausblenden (Legacy-Parität) */
.priceForeign,
.foreign_price_list {
    display: none;
}

/* Footer: dunkler Balken – helle Schrift (Tailwind-Utilities überschreiben) */
footer {
    background-color: var(--tw-header-fixed-bg) !important;
    color: rgba(255, 255, 255, 0.88) !important;
    border-color: #1f1e1d !important;
}

footer p,
footer li,
footer span,
footer .text-sm,
footer .text-base-content,
footer [class*="text-base-content"] {
    color: rgba(255, 255, 255, 0.88) !important;
}

footer h2,
footer .font-display,
footer [class*="text-secondary"] {
    color: #ffffff !important;
}

footer a,
footer a.link,
footer .text-primary,
footer [class*="text-primary"] {
    color: var(--tw-cta) !important;
}

footer a:hover,
footer a.link:hover {
    color: #ffffff !important;
}

footer .border-base-300,
footer .border-t {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

footer .bg-neutral\/80,
footer .bg-neutral\/80 {
    background-color: #2a2a2a !important;
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Artikel-Intro: Text linksbündig, Logo zentriert (Legacy-Parität) */
.article-intro__panel {
    text-align: left !important;
}

.article-intro__logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.article-intro__body {
    text-align: left;
    font-size: 14px !important;
    line-height: 1.5;
}

.article-intro__body p,
.article-intro__body li {
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
}

/* Artikel-Hero: Typo wie Legacy .banner_content2 (custom.css) */
.article-hero-slider__shade {
    background: none;
}

.article-hero-slider__content {
    align-items: flex-start;
    justify-content: center;
    padding: 2rem clamp(1rem, 4vw, 3rem);
    text-align: left;
}

.article-hero-slider__eyebrow,
.article-hero-slider__title,
.article-hero-slider__text {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 0 12px;
    font-family: "BenchNine", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    color: #fff !important;
    background-color: rgba(0, 0, 0, 0.4);
}

.article-hero-slider__eyebrow {
    font-weight: 300;
    font-size: clamp(1rem, 2.2vw, 1.75rem);
}

.article-hero-slider__title {
    margin-top: 0.35rem;
    font-size: clamp(1.25rem, 5.5vw, 80px);
    font-weight: 400;
}

.article-hero-slider__text {
    margin-top: 0.35rem;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.article-hero-slider__content .btn {
    margin-top: 1rem;
    border: 1px solid #fff;
    color: #fff;
    background: transparent;
}

.article-hero-slider__content .btn:hover {
    background-color: #000;
    border-color: #000;
    color: #fff;
}

/* Artikel-Hero: Bildformat 1248×431 (kein künstliches min/max) */
.article-hero-slider__swiper {
    aspect-ratio: 1248 / 431;
    min-height: 0;
    max-height: none;
}

@media (max-width: 575px) {
    .article-hero-slider__swiper {
        aspect-ratio: 1248 / 431;
        min-height: 0;
    }

    .article-hero-slider__title {
        font-size: 20px;
        margin-bottom: 0.75rem;
    }
}

/* Spacer ≈ Header-Innenhöhe (weniger Leerraum über dem flachen Banner) */
.site-header-spacer {
    height: 5.5rem;
}

@media (min-width: 640px) {
    .site-header-spacer {
        height: 6.5rem;
    }
}

@media (min-width: 1024px) {
    .site-header-spacer {
        height: 7.25rem;
    }
}

/* Warenkorb / Formulare: klar sichtbare RE-Optik (Gold-CTA, weiße Felder) */
body .cart-page .form-control,
body .cart-panels .form-control,
body .cart-checkout .form-control,
body .cart-page .custom_select,
body .cart-panels .custom_select,
body .cart-checkout .custom_select,
body .cart-page select,
body .cart-panels select,
body .cart-checkout select,
body .cart-page input[type="text"],
body .cart-page input[type="email"],
body .cart-page input[type="password"],
body .cart-page input[type="tel"],
body .cart-page input[type="number"],
body .cart-page textarea,
body .user-auth .form-control,
body .user-auth__input.form-control {
    background-color: #ffffff !important;
    background-image: none !important;
    border: 1px solid #c8c8c8 !important;
    color: #333333 !important;
    border-radius: 7px !important;
    box-shadow: none !important;
    caret-color: #333333;
}

body .cart-page .form-control::placeholder,
body .cart-panels .form-control::placeholder,
body .user-auth .form-control::placeholder {
    color: #8a8a8a !important;
    opacity: 1 !important;
}

body .cart-page .form-control:focus,
body .cart-panels .form-control:focus,
body .cart-checkout .form-control:focus,
body .cart-page input:focus,
body .cart-page select:focus,
body .cart-page textarea:focus,
body .user-auth .form-control:focus {
    border-color: var(--tw-cta) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tw-cta) 35%, transparent) !important;
    outline: none !important;
}

body .cart-page .btn-fill-out,
body .cart-panels .btn-fill-out,
body .cart-checkout .btn-fill-out,
body .cart-page .btn.btn-fill-out,
body .cart-sent-btn,
body .cart-page a.btn-fill-out,
body .btn-addtocart-list,
body .cart-page .btn-primary {
    background-color: var(--tw-cta) !important;
    background-image: none !important;
    border: 1px solid var(--tw-cta) !important;
    color: var(--tw-cta-content) !important;
    border-radius: 7px !important;
    filter: none !important;
    box-shadow: none !important;
}

body .cart-page .btn-fill-out:hover,
body .cart-panels .btn-fill-out:hover,
body .cart-checkout .btn-fill-out:hover,
body .cart-sent-btn:hover,
body .btn-addtocart-list:hover,
body .cart-page .btn-primary:hover,
body .cart-page a.btn-fill-out:hover {
    background-color: var(--tw-cta-hover) !important;
    border-color: var(--tw-cta-hover) !important;
    color: var(--tw-cta-content) !important;
}

body .cart-qty {
    background: #ffffff !important;
    border-color: #c8c8c8 !important;
}

body .cart-qty .minus,
body .cart-qty .plus {
    color: #333333 !important;
}

body .cart-qty .minus:hover,
body .cart-qty .plus:hover {
    background: color-mix(in srgb, var(--tw-cta) 25%, transparent) !important;
}

body .cart-summary {
    background: #f7f7f7 !important;
    border: 1px solid #e0e0e0 !important;
}

body .cart-payment-option {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
}

body .cart-path-card {
    border: 0 !important;
    background: transparent !important;
}

body .cart-path-card__link {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 7px !important;
    min-height: 0 !important;
    padding: 0.65rem 0.9rem !important;
}

body .cart-path-card__link:hover {
    border-color: var(--tw-cta) !important;
    background: #faf8f2 !important;
}

body .cart-path-card__icon {
    color: #333333 !important;
}

body .cart-path-card__title {
    color: #333333 !important;
    font-size: 1.2rem !important;
}

body .cart-path-card__eyebrow,
body .cart-path-card__hint {
    color: #666666 !important;
}

body .shop_cart_table {
    background: #ffffff !important;
    border-color: #e0e0e0 !important;
}

/* Warenkorb: Bestellung-Intro zentriert */
#userSwitchHeader {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

#userSwitchHeader h2,
#userSwitchHeader p {
    text-align: center;
}

/* Warenkorb: Überschriften schwarz statt Gold */
body .cart-page h1,
body .cart-page h2,
body .cart-page h3,
body .cart-page .font-display.text-secondary,
body .cart-page .text-secondary,
body .cart-page [class*="text-secondary"],
body .cart-summary .text-secondary,
body .cart-path-card__title {
    color: #333333 !important;
}

#userSwitchHeader h2 {
    color: #333333 !important;
}

/* -------------------------------------------------------------------------- */
/* Event-Themes je Hauptartikel-ID (body.article-{id} aus base.twig)          */
/* -------------------------------------------------------------------------- */

/* 1000 km Nürburgring – https://1000kmnuerburgring.de/ */
body.article-25 {
    --color-primary: #1f1e1d;
    --color-primary-content: #ffffff;
    --color-secondary: #d7b254;
    --color-secondary-content: #1f1e1d;
    --color-accent: #ae1e1d;
    --color-accent-content: #ffffff;
    --color-warning: #d7b254;
    --tw-color-ember: #d7b254;
    --tw-color-moss: #1f1e1d;
    --tw-cta: #d7b254;
    --tw-cta-hover: #ddb142;
    --tw-cta-content: #1f1e1d;
    --tw-header-fixed-bg: #1f1e1d;
}

/* FAQ-Überschrift + Fragen in Brand-Rot */
body.article-25 .home-faq h2,
body.article-25 .home-faq summary {
    color: var(--color-accent) !important;
}

/* Newsletter-Block: Hintergrund Brand-Rot */
body.article-25 .home-newsletter {
    background-color: var(--color-accent) !important;
}

/* Nürburgring Classic – https://nuerburgringclassic.de/ */
body.article-27 {
    --color-primary: #003253;
    --color-primary-content: #ffffff;
    --color-secondary: #96694c;
    --color-secondary-content: #ffffff;
    --color-accent: #96694c;
    --color-accent-content: #ffffff;
    --color-warning: #96694c;
    --tw-color-ember: #96694c;
    --tw-color-moss: #003253;
    --tw-cta: #96694c;
    --tw-cta-hover: #845b44;
    --tw-cta-content: #ffffff;
    --tw-header-fixed-bg: #000000;
}

/* -------------------------------------------------------------------------- */
/* Kontakt – Portal-Layout (Legacy custom.css Parität)                        */
/* -------------------------------------------------------------------------- */
.contact-card {
    background: #ffffff;
    border-color: #e8e8e8;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
}

.contact-card__icon {
    border-color: #999999;
    color: #333333;
}

.contact-card__icon::before {
    background-color: #ffffff;
}

.contact-card:hover .contact-card__icon {
    color: #000000;
}

.contact-form .form-control {
    background: #ffffff;
    border-color: #d0d0d0;
    color: #333333;
}

.contact-form__submit {
    border-radius: 0;
}
