:root {
    --brand: #2E8B57; /* Primärgrün */
    --brand-light: #A7D49B;
    --cta: #FF8C00; /* Orange für CTAs */
    --bg: #FFFFFF;
    --text: #222222;
}

/* Grundfarben + Typo Overrides */
body {
    background: #FFFFFF !important;
    color: var(--text) !important;
}

a {
    color: var(--brand) !important;
}
/* Brand font for the store name */
#banner h1,
.logo strong,
.brand-name {
    font-family: 'Cormorant SC', Georgia, 'Times New Roman', serif !important;
    letter-spacing: 0.04em;
}

a:hover {
    color: var(--cta) !important;
}

/* Header logo: fixed top-left */
#header {
    background: rgba(255,255,255,0.98) !important;
    color: var(--text) !important;
    box-shadow: 0 1px 6px rgba(34,34,34,0.06);
    height: 6.8em !important;
    line-height: 6.8em !important;
    transition: box-shadow 0.8s ease;
}

#header .logo {
    position: absolute;
    top: 0.85rem;
    left: 1rem;
    transform: none;
    display: inline-flex !important;
    align-items: center;
    padding: 0.35rem 0.9rem !important;
    height: auto;
    background: #FFFFFF;
    border-radius: 0.35rem;
    box-shadow: 0 2px 8px rgba(34,34,34,0.08);
}

#header .logo img {
    display: block;
    width: auto;
    height: 5.4em;
    max-width: none;
}

#header.alt {
    height: 6.8em !important;
    line-height: 6.8em !important;
}

#header.alt .logo {
    top: 0.75rem;
    right: auto;
    transform: none;
}

#header.alt .logo img {
    height: 8em;
}

#header.alt .logo,
#header.alt.is-scrolled .logo {
    background: #FFFFFF;
    padding: 0.35rem 0.9rem;
    box-shadow: 0 2px 8px rgba(34,34,34,0.08);
}

/* Make the header 'burger' (menu) icon visible on white background */
#header nav a[href="#menu"]:before,
#header nav a[href="#menu"]:after {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='32' viewBox='0 0 24 32' preserveAspectRatio='none'%3E%3Cstyle%3Eline %7B stroke-width: 2px%3B stroke: %23222222%3B %7D%3C/style%3E%3Cline x1='0' y1='11' x2='24' y2='11' /%3E%3Cline x1='0' y1='21' x2='24' y2='21' /%3E%3Cline x1='0' y1='16' x2='24' y2='16' /%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 24px 32px;
}

/* hover variant (colored) */
#header nav a[href="#menu"]:after {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='32' viewBox='0 0 24 32' preserveAspectRatio='none'%3E%3Cstyle%3Eline %7B stroke-width: 2px%3B stroke: %232E8B57%3B %7D%3C/style%3E%3Cline x1='0' y1='11' x2='24' y2='11' /%3E%3Cline x1='0' y1='21' x2='24' y2='21' /%3E%3Cline x1='0' y1='16' x2='24' y2='16' /%3E%3C/svg%3E");
    opacity: 0;
    z-index: 1;
}

#header nav a[href="#menu"]:hover:after,
#header nav a[href="#menu"]:active:after {
    opacity: 1;
}

/* Make all site buttons use the CTA look (like 'Unsere Auswahl') */
.button, a.button, button, input[type="submit"] {
    background: linear-gradient(90deg, rgba(255,255,255,0.98), rgba(255,255,255,0.95));
    color: var(--text) !important;
    padding: 0.45rem 0.85rem;
    border-radius: 0.45rem;
    box-shadow: 0 8px 30px rgba(34,34,34,0.06);
    border: none !important;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.button.primary, a.button.primary {
    background: linear-gradient(90deg, rgba(255,255,255,0.98), rgba(255,255,255,0.95)) !important;
    color: var(--text) !important;
    border-color: transparent !important;
}

.button:hover, a.button:hover, button:hover, input[type="submit"]:hover {
    transform: translateY(-1px);
}

/* Stronger shadow for buttons on the Contact card to improve contrast */
#contact .button,
#contact .actions a.button,
#contact .actions .button {
    box-shadow: 0 18px 50px rgba(34,34,34,0.18) !important;
    transition: box-shadow 200ms ease, transform 120ms ease;
}

#contact .button:hover,
#contact .actions a.button:hover,
#contact .actions .button:hover {
    box-shadow: 0 22px 60px rgba(34,34,34,0.22) !important;
    transform: translateY(-2px);
}

@media screen and (max-width: 1280px) {
    #header {
        height: 5.8em !important;
        line-height: 5.8em !important;
    }

    #header .logo img {
        height: 4.8em;
    }

    #header.alt {
        height: 5.8em !important;
        line-height: 5.8em !important;
    }

    #header.alt .logo img {
        height: 4.8em;
    }
}

@media screen and (max-width: 736px) {
    #header {
        height: 4.8em !important;
        line-height: 4.8em !important;
    }

    #header .logo {
        top: 0.55rem;
        left: 0.75rem;
    }

    #header .logo img {
        height: 3.9em;
    }

    #header.alt {
        height: 4.8em !important;
        line-height: 4.8em !important;
    }

    #header.alt .logo {
        top: 0.55rem;
        left: 0.75rem;
    }

    #header.alt .logo img {
        height: 3.9em;
    }
}

@media screen and (max-width: 480px) {
    #header .logo img {
        height: 3.2em;
    }

    #header.alt .logo img {
        height: 3.2em;
    }
}

.header-info {
    position: absolute;
    right: 1.25rem;
    top: 0.9rem;
    font-size: 0.9rem;
    color: var(--text);
    text-align: right;
}

.header-info a { color: var(--text); text-decoration: none; }

/* CTA-Buttons */
.button.primary {
    background: var(--cta) !important;
    color: #fff !important;
    border-color: var(--cta) !important;
}

.button.primary:hover {
    background: #e06f00 !important;
    border-color: #e06f00 !important;
}

/* Banner overlay und Textfarbe */
#banner.style2:after {
    background-color: rgba(46,139,87,0.30) !important;
}

#banner .inner, #banner .content, #banner header.major h1 {
    color: var(--text) !important;
}

/* Spotlights / Section text */
.spotlights .content h3, .spotlights .content p {
    color: var(--text) !important;
}

/* Karten / Kacheln */
.inner { color: var(--text) !important; }

/* Override dark/blue backgrounds from the template spotlights */
.spotlights > section {
    background-color: transparent !important;
}

.spotlights > section:nth-child(2n) {
    background-color: transparent !important;
}

.spotlights > section > .image:before {
    background: rgba(0,0,0,0) !important;
}

/* Ensure content blocks are on light background */
.spotlights > section > .content,
.inner,
.content {
    background-color: transparent !important;
    color: var(--text) !important;
}

/* Footer contrast */
#footer { background: transparent !important; color: #333 !important; }

/* Ensure buttons on light bg keep visibility */
.button { color: #333 !important; }

/* Small responsive tweak */
@media screen and (max-width: 736px) {
    .header-info { display: none; }
}

/* Strong global overrides to ensure light background and readable text */
html, body, #wrapper, #main, #banner, section, .spotlights, .tiles, .inner, .content {
    background-color: #FFFFFF !important;
    color: var(--text) !important;
}

/* Headings and paragraphs */
h1, h2, h3, h4, h5, h6, p, li, span, a, strong {
    color: var(--text) !important;
}

/* Buttons: ensure contrast on light bg */
.button, button, input[type="submit"], .button.primary {
    color: #fff !important;
}

/* If any template rules use pseudo-element overlays, reduce opacity */
section:before, section:after, .spotlights > section:before, .tiles article:before {
    background: transparent !important;
    opacity: 1 !important;
}

/* Banner content box: clearer separation and spacing */
#banner > .inner .content {
    background: rgba(255,255,255,0.95) !important;
    color: var(--text) !important;
    padding: 1.1rem 1.6rem !important;
    margin: 0 0 1.25rem 0 !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 10px 30px rgba(34,34,34,0.06) !important;
}

/* Add horizontal padding to the banner inner container so items don't touch the edge */
#banner > .inner {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

/* Increase space between banner header and content */
#banner > .inner header.major { margin-bottom: 0.8rem !important; }

/* Make the 'next' button a prominent CTA on light background */
#banner .button.next,
#banner a.button.next.scrolly {
    background: var(--cta) !important;
    color: #ffffff !important;
    border: 0 !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12) !important;
    padding: 0.6rem 1.4rem !important;
    border-radius: 0.45rem !important;
    text-transform: none !important;
    letter-spacing: 0.02em !important;
}

/* Ensure arrow pseudo stays visible on colored button */
#banner .button.next:before, #banner .button.next:after,
#banner a.button.next.scrolly:before, #banner a.button.next.scrolly:after {
    filter: brightness(0) invert(1) !important;
}

/* Mobile: make CTA full-width and touch-friendly */
@media screen and (max-width: 736px) {
    #banner .button.next,
    #banner a.button.next.scrolly {
        width: 100% !important;
        display: block !important;
        margin: 0.8rem 0 0 0 !important;
        padding: 0.9rem 1rem !important;
        font-size: 1rem !important;
        min-height: 48px !important;
        box-shadow: 0 8px 20px rgba(0,0,0,0.12) !important;
        text-align: center !important;
    }

    /* hide arrow pseudo-elements on small screens to avoid overlap */
    #banner .button.next:before, #banner .button.next:after,
    #banner a.button.next.scrolly:before, #banner a.button.next.scrolly:after {
        display: none !important;
    }

    /* slightly reduce content padding for narrow screens */
    #banner > .inner .content { padding: 0.9rem 1rem !important; }
}

/* Uiverse CTA styles (alexmaracinaru) adapted */
.cta {
    border: none;
    background: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.cta span {
    padding-bottom: 7px;
    letter-spacing: 4px;
    font-size: 14px;
    padding-right: 15px;
    text-transform: uppercase;
    color: var(--text) !important;
    font-weight: 700;
}

.cta svg {
    transform: translateX(-8px);
    transition: all 0.3s ease;
    height: 14px;
}

.cta:hover svg {
    transform: translateX(0);
}

.cta:active svg {
    transform: scale(0.95);
}

.hover-underline-animation {
    position: relative;
    color: var(--text);
    padding-bottom: 6px;
}

.hover-underline-animation:after {
    content: "";
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--text);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.cta:hover .hover-underline-animation:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* ensure svg path matches text color */
.cta svg path { fill: var(--text); }

/* make CTA stand out on banner: add subtle bg and padding */
#banner .cta {
    background: linear-gradient(90deg, rgba(255,255,255,0.98), rgba(255,255,255,0.95));
    padding: 0.45rem 0.7rem;
    border-radius: 0.45rem;
    box-shadow: 0 8px 30px rgba(34,34,34,0.06);
}

@media screen and (max-width: 736px) {
    #banner .cta {
        width: 100% !important;
        display: block !important;
        text-align: center !important;
        padding: 0.9rem 1rem !important;
    }

    /* hide svg on very small screens to keep text clear */
    #banner .cta svg { display: none !important; }
}

@media screen and (max-width: 480px) {
        #banner > .inner { padding-left: 1rem !important; padding-right: 1rem !important; }
}
