/* =======================
   PristineLoom Elegant Classic - style.css
   ======================= */

/* -----------------------
   CSS RESET & NORMALIZE
------------------------ */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
    box-sizing: border-box;
}
html {
    font-size: 16px;
    scroll-behavior: smooth;
}
body {
    line-height: 1.6;
    font-family: 'Open Sans', Georgia, 'Times New Roman', Times, serif;
    color: #294D49;
    background: #F6F4F1;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    font-size: 1rem;
}
main {
    min-height: 60vh;
}
img {
    max-width: 100%;
    display: block;
    height: auto;
}
a {
    color: #294D49;
    text-decoration: none;
    transition: color 0.18s cubic-bezier(.37,.69,.46,1), text-decoration 0.18s;
}
a:focus {
    outline: 2px solid #A3C7B5;
    outline-offset: 2px;
}
button {
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
}
ul, ol {
    list-style: none;
}

/* ------------------------------
   TYPOGRAPHY & HEADINGS
------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Georgia, serif;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #294D49;
}
h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.18;
}
h2 {
    font-size: 2rem;
    margin-bottom: 18px;
    line-height: 1.22;
}
h3 {
    font-size: 1.375rem;
    margin-bottom: 13px;
}
h4 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}
p {
    font-size: 1.0625rem; /* ~17px */
    margin-bottom: 16px;
    color: #294D49;
}
strong {
    font-weight: 700;
    color: #294D49;
}

/* Mini reset for buttons/links inside lists/testimonials */
.section a.cta, .section a.primary-btn {
    font-family: inherit;
}


/* ------------------------------
   CONTAINER & LAYOUTS
------------------------------- */
.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 20px;
}
.content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 8px 36px 0 rgba(41,77,73,0.07);
}

@media (max-width: 768px) {
    .section {
        padding: 28px 10px;
        margin-bottom: 36px;
    }
    .container {
        padding: 0 10px;
    }
}

/* Card layouts */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 20px;
}
.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 28px 0 rgba(41,77,73,0.06);
    padding: 22px 24px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 260px;
    flex: 1 1 290px;
    transition: box-shadow 0.18s;
}
.card:hover, .card:focus-within {
    box-shadow: 0 6px 32px 0 rgba(163,199,181,0.11);
}

.content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.text-image-section {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
@media (max-width: 768px) {
    .content-grid, .text-image-section {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}

.testimonial-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 16px;
    background: #F6F4F1;
    box-shadow: 0 2px 12px 0 rgba(41,77,73,0.10);
    color: #294D49;
    margin-bottom: 20px;
    position: relative;
    min-width: 220px;
    flex: 1 1 310px;
    font-style: italic;
    transition: box-shadow 0.2s, transform 0.18s;
}
.testimonial-card:hover {
    box-shadow: 0 7px 42px 0 rgba(41,77,73,0.12);
    transform: translateY(-2px) scale(1.012);
}
.testimonial-card p {
    margin-bottom: 10px;
    font-size: 1.0625rem;
    color: #294D49;
}
.testimonial-card span {
    font-size: 0.94rem;
    color: #222;
    font-style: normal;
    font-weight: 500;
    margin-left: auto;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px 0 rgba(41,77,73,0.07);
    padding: 20px 24px;
    margin-bottom: 20px;
}

/* Content Lists with icons */
ul li, ol li {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    line-height: 1.8;
    font-size: 1.06rem;
    margin-bottom: 8px;
    color: #294D49;
}
ul li img, ol li img {
    height: 24px;
    width: 24px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* FAQ Accordion */
.faq-accordion {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.faq-item {
    background: #F6F4F1;
    border-radius: 13px;
    padding: 18px 22px;
    box-shadow: 0 1px 7px 0 rgba(41,77,73,0.07);
    transition: box-shadow 0.15s;
    margin-bottom: 10px;
}
.faq-item h3 {
    font-size: 1.05rem;
    font-family: 'Montserrat', serif;
    font-weight: 500;
    margin-bottom: 10px;
    color: #294D49;
}
.faq-item p {
    font-size: 1rem;
    color: #294D49;
    margin-bottom: 0;
}

/* ------------------------------
   HEADER & NAVIGATION
------------------------------- */
header {
    background: #fffffff0;
    box-shadow: 0 2px 16px 0 rgba(41,77,73,0.05);
    position: sticky;
    top: 0;
    z-index: 90;
}
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 78px;
    max-width: 1100px;
}
.logo {
    display: flex;
    align-items: center;
    padding: 0 8px 0 0;
    height: 56px;
}
.logo img {
    height: 42px;
    width: auto;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}
.main-nav a {
    font-family: 'Montserrat', serif;
    font-size: 1.04rem;
    font-weight: 500;
    color: #294D49;
    padding: 4px 10px;
    border-radius: 4px;
    transition: background 0.13s, color 0.13s;
    position: relative;
}
.main-nav a:hover, .main-nav a:focus {
    background: #A3C7B5;
    color: #fff;
    text-decoration: none;
}
.primary-btn {
    display: inline-block;
    background: #294D49;
    color: #fff !important;
    border-radius: 26px;
    padding: 12px 26px;
    font-family: 'Montserrat', serif;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 2px 6px 0 rgba(41,77,73,0.12);
    border: none;
    transition: background 0.19s cubic-bezier(.43,.35,.42,1), transform 0.18s;
    margin-left: 18px;
    letter-spacing: 0.03em;
}
.primary-btn:hover, .primary-btn:focus {
    background: #A3C7B5;
    color: #294D49 !important;
    transform: translateY(-1px) scale(1.03);
}

/* Hide .main-nav and .primary-btn on mobile when mobile menu is open */
@media (max-width: 980px) {
    .main-nav { display: none; }
    .primary-btn { display: none; }
    header .container {
        gap: 9px;
    }
}

/* Mobile Menu Hamburger */
.mobile-menu-toggle {
    display: none;
    background: #294D49;
    color: #fff;
    font-size: 2rem;
    border-radius: 6px;
    padding: 3px 13px;
    border: none;
    margin-left: 8px;
    transition: background 0.15s;
    z-index: 111;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
    background: #A3C7B5;
    color: #294D49;
}
@media (max-width: 980px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
    position: fixed;
    top: 0; left: 0; 
    width: 100vw;
    height: 100vh;
    background: rgba(246,244,241, 0.99);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    transform: translateX(100vw);
    transition: transform 0.34s cubic-bezier(.78,.08,.41,1);
    visibility: hidden;
    pointer-events: none;
}
.mobile-menu.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: all;
}
.mobile-menu-close {
    font-size: 2.2rem;
    background: none;
    border: none;
    color: #294D49;
    align-self: flex-end;
    margin: 18px 19px 0 0;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 6px;
    transition: background 0.16s;
    z-index: 1021;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
    color: #fff;
    background: #A3C7B5;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin: 30px 0 0 30px;
}
.mobile-nav a {
    font-family: 'Montserrat', serif;
    font-size: 1.32rem;
    color: #294D49;
    padding: 10px 8px;
    border-radius: 5px;
    transition: background 0.13s, color 0.13s;
    font-weight: 500;
    min-width: 180px;
    display: flex;
    align-items: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
    background: #A3C7B5;
    color: #fff;
}

/* -------------- FOOTER --------------- */
footer {
    background: #294D49;
    color: #fff;
    padding: 40px 0 20px;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    width: 100%;
    margin-top: 40px;
}
footer .container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    max-width: 1100px;
}
.logo-footer {
    flex: 0 0 auto;
    margin-right: 24px;
    display: flex;
    align-items: center;
}
.logo-footer img {
    height: 34px;
    width: auto;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-nav a {
    color: #fff;
    opacity: 0.85;
    font-family: 'Montserrat', serif;
    font-size: 1rem;
    transition: color 0.14s, opacity 0.13s;
    padding: 3px 7px;
    border-radius: 3px;
}
.footer-nav a:hover, .footer-nav a:focus {
    color: #A3C7B5;
    background: #fff1;
    opacity: 1;
}
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 0.95rem;
    color: #DEE3DE;
    margin-left: auto;
    align-items: flex-end;
}
@media (max-width: 880px) {
    footer .container {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .footer-contact {
        align-items: flex-start;
        margin-left: 0;
    }
}

/* ------------------------------
   BUTTONS & CTA
------------------------------- */
.cta {
    display: inline-block;
    background: #A3C7B5;
    color: #294D49 !important;
    border-radius: 24px;
    padding: 10px 22px;
    font-family: 'Montserrat', serif;
    font-weight: 600;
    font-size: 1.03rem;
    border: none;
    margin: 7px 0 0 0;
    transition: background 0.19s, color 0.19s, box-shadow 0.16s, transform 0.16s;
    box-shadow: 0 2px 7px 0 rgba(163,199,181,0.07);
    cursor: pointer;
    letter-spacing: 0.01em;
}
.cta:hover, .cta:focus {
    background: #294D49;
    color: #fff !important;
    box-shadow: 0 4px 18px 0 rgba(76,80,78,0.11);
    transform: translateY(-1px) scale(1.034);
}

/* -----------------------------
   RESPONSIVE TYPOGRAPHY & SPACING
------------------------------- */
@media (max-width: 600px) {
    h1 { font-size: 1.63rem; }
    h2 { font-size: 1.23rem; }
    .section {
        padding: 16px 4px;
        margin-bottom: 26px;
    }
}

/* -----------------------------
   FORM ELEMENTS (for Kontakt)
------------------------------- */
input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #A3C7B5;
    background: #fff;
    font-size: 1rem;
    color: #294D49;
    font-family: 'Open Sans', Georgia, serif;
    margin-bottom: 17px;
    outline: none;
    transition: border 0.13s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
    border-color: #294D49;
}
label {
    font-size: 1rem;
    color: #294D49;
    font-family: 'Montserrat', serif;
    font-weight: 500;
    margin-bottom: 7px;
    display: block;
}

/* -----------------------------
   COOKIES BANNER & COOKIE MODAL
------------------------------- */
.cookie-banner {
    position: fixed;
    left: 0; right: 0;
    bottom: 0;
    z-index: 2000;
    background: #fff;
    color: #294D49;
    box-shadow: 0 -3px 26px 0 rgba(41,77,73,0.10);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 28px;
    font-size: 1.01rem;
    border-radius: 22px 22px 0 0;
    animation: cookieFadeIn 0.6s cubic-bezier(.63,.01,.58,1);
}
@keyframes cookieFadeIn {
    0% { opacity: 0; transform: translateY(60px); }
    100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
    margin-bottom: 0;
    max-width: 400px;
    font-family: 'Open Sans', serif;
}
.cookie-actions {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
}
.cookie-btn {
    padding: 8px 18px;
    border-radius: 19px;
    font-family: "Montserrat", serif;
    font-weight: 600;
    font-size: 1.01rem;
    border: none;
    cursor: pointer;
    transition: background 0.17s, color 0.14s;
    margin-right: 3px;
}
.cookie-accept {
    background: #294D49;
    color: #fff;
}
.cookie-accept:hover, .cookie-accept:focus {
    background: #A3C7B5;
    color: #294D49;
}
.cookie-reject {
    background: #fff;
    color: #294D49;
    border: 1px solid #A3C7B5;
}
.cookie-reject:hover, .cookie-reject:focus {
    background: #A3C7B5;
    color: #fff;
}
.cookie-settings {
    background: #A3C7B5;
    color: #294D49;
}
.cookie-settings:hover, .cookie-settings:focus {
    background: #294D49;
    color: #fff;
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 8px;
        gap: 10px;
        font-size: 0.99rem;
    }
}

/* COOKIE MODAL */
.cookie-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(41,77,73,0.17);
    z-index: 3210;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: cookieModalFadeIn 0.35s cubic-bezier(.77,.02,.53,1);
}
@keyframes cookieModalFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
.cookie-modal {
    background: #fff;
    max-width: 390px;
    width: 100%;
    border-radius: 22px;
    padding: 32px 24px 24px 24px;
    box-shadow: 0 8px 42px 0 rgba(41,77,73,0.13);
    position: relative;
    animation: cookieModalBounceIn 0.34s cubic-bezier(.63,.14,.31,1.1);
}
@keyframes cookieModalBounceIn {
    0% { transform: scale(0.91); opacity: 0; }
    70% { transform: scale(1.07); }
    100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 {
    font-family: "Montserrat", serif;
    font-size: 1.25rem;
    color: #294D49;
    margin-bottom: 13px;
}
.cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.cookie-category:last-child { margin-bottom: 0; }
.cookie-category label {
    font-size: 1rem;
    color: #294D49;
    font-family: 'Open Sans', serif;
    margin-bottom: 0;
    font-weight: 500;
}
.cookie-toggle {
    width: 36px;
    height: 20px;
    border-radius: 13px;
    background: #A3C7B5;
    position: relative;
    transition: background 0.18s;
    border: none;
}
.cookie-toggle[aria-checked="true"] {
    background: #294D49;
}
.cookie-toggle::after {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: left 0.18s, background 0.18s;
}
.cookie-toggle[aria-checked="true"]::after {
    left: 18px;
    background: #A3C7B5;
}
.cookie-modal .modal-actions {
    display: flex;
    gap: 13px;
    margin-top: 20px;
    justify-content: flex-end;
}
.cookie-modal .modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #294D49;
    cursor: pointer;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
    color: #A3C7B5;
}

/* -----------------------------
   MICROINTERACTIONS
------------------------------- */
.card, .testimonial-card, .faq-item, .cta, .primary-btn, .main-nav a, .footer-nav a, .mobile-nav a, .mobile-menu-toggle, .cookie-btn, .cookie-toggle, .cookie-modal .modal-close {
    transition: box-shadow 0.17s, background 0.17s, color 0.15s, transform 0.13s;
}

/* Link underline effect (classic accent) */
a:not(.cta):not(.primary-btn):after {
    content: '';
    display: block;
    width: 0%;
    height: 2px;
    background: #A3C7B5;
    transition: width 0.22s cubic-bezier(.63,.18,.86,.74);
    border-radius: 2px;
    margin-top: 2px;
}
a:not(.cta):not(.primary-btn):hover:after { width: 100%; }


/* ------------------------------
   ADDITIONAL UTILITIES
------------------------------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mb-20 { margin-bottom: 20px !important; }
.mt-20 { margin-top: 20px !important; }
.rounded {
    border-radius: 24px !important;
}
.shadow {
    box-shadow: 0 2px 16px 0 rgba(41,77,73,0.08) !important;
}

/* Ensure minimum spacing for all content cards/sections */
.card, .section, .testimonial-card, .feature-item {
    margin-bottom: 20px;
}

/* Remove last margin in containers */
.card-container > .card:last-child, .content-grid > .card:last-child, .section > .testimonial-card:last-child, .feature-list > .feature-item:last-child {
    margin-bottom: 0;
}

/* Icon-only buttons (if needed, e.g., close) */
.btn-icon {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #294D49;
    cursor: pointer;
    border-radius: 5px;
    padding: 5px 8px;
}
.btn-icon:hover { background: #A3C7B5; color: #fff; }

/* Hide visually (for screen readers accessibility in cookie toggle) */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ------------------------------
   SCROLLBARS - Elegant
------------------------------- */
body {
    scrollbar-width: thin;
    scrollbar-color: #A3C7B5 #F6F4F1;
}
body::-webkit-scrollbar {
    width: 9px;
    background: #F6F4F1;
}
body::-webkit-scrollbar-thumb {
    background: #A3C7B5;
    border-radius: 13px;
}

/* ------------------------------
   OVERRIDE FOR PRINT
------------------------------- */
@media print {
    header, nav, .mobile-menu, .cookie-banner, .cookie-modal-overlay, footer { display: none !important; }
    .section, .container { box-shadow: none !important; background: #fff !important; }
}
