/*
Theme Name: KiwiO Minimal
Author: KiwiO
Version: 28.0
Description: Schlankes, pluginfreies Custom-Theme für KiwiO Software Solutions
*/

/* ==========================================================================
   1. RESET & BODY HINTERGRUND
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #ffffff;
    background: #111111 url('images/kiwi.jpg') center/cover no-repeat fixed;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================================================================
   2. HEADER & DESKTOP NAVIGATION
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px !important;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

body.admin-bar .site-header {
    top: 32px;
}

.site-header .logo img {
    display: block;
    height: 44px;
    width: auto;
}

.main-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.main-nav .nav-list li {
    position: relative;
}

.main-nav .nav-list a {
    text-decoration: none;
    color: #222222;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s ease;
    display: block;
    padding: 8px 0;
}

.main-nav .nav-list a:hover {
    color: #5a8025;
}

/* Submenu Desktop Dropdown */
.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 240px;
    list-style: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    display: none;
    padding: 12px 0;
    border-radius: 4px;
}

.main-nav li:hover > .sub-menu {
    display: block;
}

.main-nav .sub-menu a {
    padding: 10px 22px;
    color: #333333;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.8px;
}

.main-nav .sub-menu a:hover {
    background: #f4f4f4;
    color: #5a8025;
}

/* Burger Button CSS */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #222222;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ==========================================================================
   3. INHALTSBEREICH (Symmetrischer 50px Mindestabstand)
   ========================================================================== */
.hero-container, 
.page-wrapper {
    background: transparent !important;
    flex: 1 0 auto;
    width: 100%;
    margin-top: 80px !important;
    padding: 50px 20px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

body.admin-bar .hero-container,
body.admin-bar .page-wrapper {
    margin-top: 112px !important;
}

.kiwi-grid, 
.page-container {
    margin: 0 !important;
}

.page-container {
    max-width: 1280px; 
    width: 100%;
    background: rgba(18, 26, 14, 0.90);
    border-radius: 8px;
    padding: 45px 50px !important;
    color: #ffffff;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   4. STARTSEITE: KACHEL-GRID
   ========================================================================== */
.kiwi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1280px;
    width: 100%;
}

.kiwi-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    position: relative;
    z-index: 2;
}

.kiwi-card {
    background-color: #3b4d2a;
    border-radius: 8px;
    padding: 35px 25px !important;
    color: #ffffff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center !important;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.kiwi-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.48);
    border-color: rgba(255, 255, 255, 0.35);
}

.kiwi-card-header {
    width: 100%;
    height: 65px !important;
    padding: 0 !important; 
    background-position: center center !important; 
    background-origin: content-box !important;
    background-size: contain !important; 
    background-repeat: no-repeat;
    flex-shrink: 0;
    margin-bottom: 18px !important;
}

.kiwi-card-body {
    width: 100%;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 1;
    z-index: 2;
}

.kiwi-card-body > *:last-child,
.kiwi-card-text p:last-child {
    margin-bottom: 0 !important;
}

.kiwi-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 30, 15, 0.75);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
    pointer-events: none;
}

.kiwi-card:hover::after {
    opacity: 1;
}

.kiwi-card:hover .kiwi-card-header,
.kiwi-card:hover .kiwi-card-body {
    opacity: 0.12;
    filter: blur(2px);
}

.kiwi-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.5px;
}

.kiwi-card p {
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.55;
    color: #f0f0f0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    margin: 0;
}

/* ==========================================================================
   5. UNTERSEITEN INHALT & CUSTOM AUFZÄHLUNGSZEICHEN (▷)
   ========================================================================== */
.saas-intro-section {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start !important;
    margin-bottom: 0;
}

.saas-icon-box {
    background-color: #3b4d2a;
    border-radius: 8px;
    padding: 25px 20px !important;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.saas-icon-box h2 {
    font-size: 21px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin: 0 0 15px 0 !important;
    padding: 0 5px;
}

.saas-icon-box img {
    width: auto;
    max-width: 140px !important; 
    max-height: 110px !important;
    height: auto;
    display: block;
    margin: 0 auto !important;
    object-fit: contain;
}

.saas-subheading {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.4;
}

.saas-description p {
    font-size: 15.5px;
    color: #e2e2e2;
    margin-bottom: 18px;
    line-height: 1.65;
}

.saas-description ul {
    margin: 20px 0 25px 0;
    list-style: none !important;
    padding-left: 0 !important;
}

.saas-description li {
    font-size: 15px;
    color: #e2e2e2;
    margin-bottom: 10px;
    line-height: 1.5;
    position: relative;
    padding-left: 22px;
}

.saas-description li::before {
    content: '▷';
    position: absolute;
    left: 0;
    top: 1px;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
}

.saas-description > *:last-child {
    margin-bottom: 0 !important;
}

/* ==========================================================================
   6. VALUE PARTNER, DOMAIN WHOLESALE & PREISTABELLEN
   ========================================================================== */
.value-box-orange,
.value-box-green {
    padding: 30px 25px;
    border-radius: 6px;
    margin: 25px 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.value-box-orange { background-color: #f26524; }
.value-box-green { background-color: #4d6c32; }

.value-box-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.value-box-orange p,
.value-box-green p {
    font-size: 14.5px;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 12px;
}

.value-box-orange p:last-child,
.value-box-green p:last-child {
    margin-bottom: 0 !important;
}

.value-box-orange a,
.value-box-green a {
    color: #ffffff !important;
    text-decoration: underline !important;
    font-weight: 600;
}

.domain-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 25px 0 35px 0;
}

.domain-feature-card {
    background-color: #f26524;
    padding: 25px 20px;
    border-radius: 6px;
    text-align: left;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.domain-feature-card ul {
    list-style: none !important;
    margin: 0;
    padding-left: 0 !important;
}

.domain-feature-card li {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.domain-feature-card li::before {
    content: '▷';
    position: absolute;
    left: 0;
    top: 1px;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

.domain-feature-card li:last-child {
    margin-bottom: 0 !important;
}

/* Preistabellen */
.pricing-section {
    margin-top: 35px;
    width: 100%;
}

.pricing-section h3 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.pricing-intro {
    font-size: 15px;
    color: #dddddd;
    margin-bottom: 25px;
}

.pricing-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.pricing-card {
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-header {
    background-color: #3b4d2a;
    padding: 20px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-badge {
    background: #b0cc36;
    color: #2d3e23;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14.5px;
    margin-bottom: 10px;
}

.pricing-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.pricing-body {
    background-color: #f26524;
    padding: 22px 18px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-body p {
    font-size: 14.5px;
    color: #ffffff;
    line-height: 1.55;
    margin: 0;
}

/* ==========================================================================
   7. REFERENZEN (SAMPLES GRID) & CTA-NOTE / LINKS (Kein Umbruch bei E-Mail-Links)
   ========================================================================== */
.samples-wrapper { width: 100%; }
.samples-main-title { font-size: 28px; font-weight: 700; color: #ffffff; margin-bottom: 15px; }
.samples-intro-text { font-size: 15.5px; color: #e2e2e2; margin-bottom: 15px; line-height: 1.6; }

.samples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 25px;
    margin-bottom: 35px;
}

.sample-card { display: flex; flex-direction: column; }

.sample-card .sample-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 15px;
    background-color: #000000;
}

.sample-card h3 { font-size: 18px; font-weight: 700; color: #ffffff; margin-bottom: 8px; }
.sample-card p { font-size: 14px; color: #d1d1d1; line-height: 1.55; margin-bottom: 10px; }
.sample-link { font-size: 14px; color: #ffffff; margin-top: auto; }

.detail-content-img {
    width: 100%;
    max-width: 520px !important;
    height: auto;
    display: block;
    border-radius: 6px;
    margin: 30px auto 20px auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.cta-note {
    font-size: 15.5px;
    font-weight: 400;
    color: #ffffff;
    margin-top: 30px !important;
    margin-bottom: 0 !important;
}

.cta-note a,
.saas-description a[href^="mailto:"],
a.nowrap-link { 
    color: #ffffff !important; 
    text-decoration: underline !important; 
    font-weight: 600; 
    white-space: nowrap !important; /* Verhindert das unschöne Umbrechen von Linktexten wie "send us an e-mail" */
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.site-footer {
    background: #1b2116;
    color: #a0a0a0;
    padding: 45px 20px;
    font-size: 14px;
    width: 100%;
    margin-top: auto !important;
    flex-shrink: 0;
    position: relative;
    z-index: 100;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-col a { color: #a0a0a0; text-decoration: none; display: block; margin-bottom: 7px; transition: color 0.2s ease; }
.footer-col a:hover { color: #ffffff; }

/* ==========================================================================
   9. RESPONSIVE MEDIA QUERIES & BURGER MENÜ (max-width: 850px)
   ========================================================================== */
@media (max-width: 1100px) {
    .kiwi-grid { 
        grid-template-columns: repeat(2, 1fr); 
        max-width: 820px; 
        gap: 22px; 
    }

    .saas-intro-section { 
        grid-template-columns: 240px 1fr; 
        gap: 30px; 
    }
}

@media (max-width: 850px) {
    .site-header {
        height: 70px !important;
        padding: 0 20px;
    }

    .site-header .logo img { height: 36px; }

    .menu-toggle { display: flex; }

    /* Mobile Menü-Container */
    .main-nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(18, 26, 14, 0.98) !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(8px);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .main-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav .nav-list {
        flex-direction: column;
        width: 100%;
        padding: 0;
        gap: 0;
    }

    .main-nav .nav-list li {
        width: 100%;
        text-align: center;
    }

    .main-nav .nav-list a {
        padding: 15px 20px;
        font-size: 15px;
        color: #ffffff !important;
        background: transparent !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav .nav-list li:last-child > a {
        border-bottom: none;
    }

    /* Dunkles Akkordeon-Untermenü */
    .main-nav .sub-menu {
        position: static !important;
        display: none !important;
        box-shadow: none !important;
        min-width: 100% !important;
        background: rgba(10, 15, 8, 0.98) !important;
        padding: 0 !important;
        border-radius: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav .menu-item-has-children.submenu-open > .sub-menu {
        display: block !important;
    }

    .main-nav .menu-item-has-children > a::after {
        content: ' ▼';
        font-size: 12px;
        display: inline-block;
        transition: transform 0.2s ease;
        margin-left: 5px;
        color: #b0cc36;
    }

    .main-nav .menu-item-has-children.submenu-open > a::after {
        transform: rotate(180deg);
    }

    .main-nav .sub-menu a {
        padding: 13px 25px !important;
        font-size: 13.5px !important;
        font-weight: 500 !important;
        color: #d1d1d1 !important;
        background: transparent !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        text-transform: uppercase;
    }

    .main-nav .sub-menu a:hover,
    .main-nav .sub-menu a:focus,
    .main-nav .sub-menu a:active {
        background: rgba(59, 77, 42, 0.4) !important;
        color: #b0cc36 !important;
    }

    .main-nav .sub-menu li:last-child a {
        border-bottom: none !important;
    }

    .hero-container, .page-wrapper {
        margin-top: 0 !important;
        padding-top: 110px !important;
        padding-bottom: 40px !important;
    }

    body.admin-bar .hero-container,
    body.admin-bar .page-wrapper {
        padding-top: 156px !important;
    }

    .pricing-grid-3 {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .kiwi-grid, .footer-grid, .domain-feature-grid, .samples-grid, .saas-intro-section {
        grid-template-columns: 1fr;
    }

    .page-container { padding: 25px 20px !important; }
    .kiwi-card { padding: 25px 20px !important; }
    .kiwi-card-header { height: 60px !important; margin-bottom: 12px !important; }
    .kiwi-card h3 { font-size: 18px; }
    .kiwi-card p { font-size: 13.5px; }
    .detail-content-img { max-width: 100% !important; }
}