/*
Theme Name: Königswieser Child Theme
Theme URI: https://koenigswieser.com
Description: Custom Child Theme für Königswieser Gerätetechnik
Author: Königswieser Gerätetechnik GmbH
Template: kadence
Version: 1.1.0
Text Domain: koenigswieser-child
*/

:root {
    /* CI Farben laut Logo-Guide */
    --kw-bordeaux: #97233F;
    --kw-bordeaux-dark: #7A1C33;
    --kw-bordeaux-light: #B02A4A;
    --kw-sand: #A79E70;
    --kw-olive: #65551C;
    --kw-army: #4C4726;
    --kw-cream: #F5F0EB;
    --kw-white: #FFFFFF;
}

/* Global Typography */
body {
    font-family: "PT Serif", serif;
    color: var(--kw-army);
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Josefin Sans", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Buttons */
.wp-block-button__link,
.kt-button,
a.kb-btn-global-fill {
    font-family: "Josefin Sans", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation */
.header-navigation .menu > li > a {
    font-family: "Josefin Sans", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

/* CTA Button in Menu */
.menu-cta-button > a {
    background: var(--kw-bordeaux) !important;
    color: var(--kw-white) !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
}
.menu-cta-button > a:hover {
    background: var(--kw-bordeaux-dark) !important;
}

/* Links */
a {
    color: var(--kw-bordeaux);
}
a:hover {
    color: var(--kw-bordeaux-dark);
}

/* Footer link styling */
.site-footer a {
    color: #CCCCCC;
    text-decoration: none;
}
.site-footer a:hover {
    color: #FFFFFF;
}
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer ul li {
    padding: 4px 0;
}

/* Selection color */
::selection {
    background: var(--kw-bordeaux);
    color: var(--kw-white);
}

/* ===== LAYOUT COMPONENTS ===== */

.kw-section {
    padding: 80px 40px;
    max-width: 100%;
}
.kw-section-narrow {
    max-width: 1500px;
    margin: 0 auto;
}

/* Hero */
.kw-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: #fff;
}
.kw-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(76,71,38,0.75);
    z-index: 1;
}
.kw-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px;
}
.kw-hero h1 {
    font-size: 52px;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
}
.kw-hero h2 {
    font-size: 20px;
    color: #F5F0EB;
    font-family: "PT Serif", serif;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 40px;
}
@media (max-width: 768px) {
    .kw-hero { min-height: 450px; }
    .kw-hero h1 { font-size: 32px; }
    .kw-hero h2 { font-size: 17px; }
}

/* Buttons */
.kw-btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: "Josefin Sans", sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.kw-btn-primary {
    background: #97233F;
    color: #fff;
}
.kw-btn-primary:hover {
    background: #7A1C33;
    color: #fff;
}
.kw-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.kw-btn-outline:hover {
    background: #fff;
    color: #97233F;
}
.kw-btn-outline-dark {
    background: transparent;
    color: #97233F;
    border: 2px solid #97233F;
}
.kw-btn-outline-dark:hover {
    background: #97233F;
    color: #fff;
}
.kw-btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* USP Bar */
.kw-usps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: #fff;
    text-align: center;
    border-bottom: 1px solid #eee;
}
.kw-usp {
    padding: 40px 20px;
    border-right: 1px solid #eee;
}
.kw-usp:last-child { border-right: none; }
.kw-usp-num {
    font-family: "Josefin Sans", sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #97233F;
    line-height: 1;
    margin-bottom: 8px;
}
.kw-usp-label {
    font-family: "Josefin Sans", sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #4C4726;
}
@media (max-width: 768px) {
    .kw-usps { grid-template-columns: repeat(2, 1fr); }
    .kw-usp { border-bottom: 1px solid #eee; }
    .kw-usp-num { font-size: 32px; }
}

/* Section Headings */
.kw-section-heading {
    font-size: 38px;
    color: #4C4726;
    text-align: center;
    margin-bottom: 48px;
}
@media (max-width: 768px) {
    .kw-section-heading { font-size: 28px; }
}

/* Card Grid */
.kw-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1500px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .kw-card-grid { grid-template-columns: 1fr; }
}

/* Product Card */
.kw-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.kw-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.kw-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}
.kw-card-body {
    padding: 24px;
    text-align: center;
}
.kw-card-body h3 {
    font-size: 24px;
    color: #4C4726;
    margin-bottom: 8px;
}
.kw-card-body p {
    color: #65551C;
    font-size: 15px;
    margin-bottom: 20px;
}

/* Testimonial */
.kw-testimonial {
    background: #F5F0EB;
    border-radius: 8px;
    padding: 32px;
}
.kw-testimonial blockquote {
    font-family: "PT Serif", serif;
    font-style: italic;
    font-size: 16px;
    color: #4C4726;
    margin: 0 0 16px 0;
    padding: 0;
    border: none;
}
.kw-testimonial cite {
    font-family: "Josefin Sans", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #97233F;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-style: normal;
}

/* Messen Banner */
.kw-banner-dark {
    background: #4C4726;
    color: #fff;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
}
@media (max-width: 768px) {
    .kw-banner-dark { grid-template-columns: 1fr; }
}
.kw-banner-dark h2 { color: #fff; margin-bottom: 12px; }
.kw-banner-dark p { color: #A79E70; font-size: 18px; margin-bottom: 24px; }

/* CTA Banner */
.kw-cta {
    background: #97233F;
    color: #fff;
    text-align: center;
}
.kw-cta h2 { color: #fff; margin-bottom: 12px; }
.kw-cta p { color: #F5F0EB; font-size: 18px; font-family: "PT Serif", serif; margin-bottom: 32px; }

/* Trust Bar */
.kw-trust {
    background: #97233F;
    color: #fff;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 0;
}
.kw-trust-item { padding: 48px 24px; }
.kw-trust-item h3 { color: #fff; font-size: 20px; margin-bottom: 8px; }
.kw-trust-item p { color: #F5F0EB; font-size: 15px; margin: 0; }
@media (max-width: 768px) {
    .kw-trust { grid-template-columns: 1fr; }
}

/* Key Facts */
.kw-keyfacts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 24px;
}
.kw-keyfact {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}
.kw-keyfact-label {
    font-family: "Josefin Sans", sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #97233F;
    margin-bottom: 4px;
}
.kw-keyfact-value {
    font-family: "Josefin Sans", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #4C4726;
}

/* Footer enhancements */
.site-footer .footer-widget-area .widget-title {
    font-family: "Josefin Sans", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Force hide site title next to logo */
.site-branding .site-title,
.site-branding .site-description,
.site-header .site-title,
.site-header .site-description,
.header-html .site-title,
.custom-logo-link + .site-title-wrap,
.site-title-wrap .site-title,
.site-title-wrap .site-description {
    display: none !important;
}

/* Hide Kadence default footer - we use custom footer */
.site-footer:not(.kw-custom-footer) {
    display: none !important;
}

/* Language bar at top */
.kw-lang-bar {
    background: #4C4726;
    padding: 8px 40px;
    text-align: right;
    font-family: "Josefin Sans", sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
}
.kw-lang-bar a {
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
}
.kw-lang-bar a:hover {
    color: #fff !important;
}
/* Remove old fixed lang switcher */
.kw-lang-switcher {
    display: none !important;
}

/* ===== MOBILE RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
    .kw-hero {
        min-height: 400px !important;
        padding: 40px 20px;
    }
    .kw-hero h1 {
        font-size: 28px !important;
        line-height: 1.3;
    }
    .kw-hero h2 {
        font-size: 16px !important;
    }
    .kw-hero-content {
        padding: 20px;
    }
    .kw-btn-group {
        flex-direction: column;
        align-items: center;
    }
    .kw-btn {
        width: 100%;
        text-align: center;
        max-width: 300px;
    }
    .kw-section {
        padding: 40px 20px !important;
    }
    .kw-section-heading {
        font-size: 24px !important;
    }
    .kw-card img {
        height: 180px;
    }
    .kw-card-body h3 {
        font-size: 20px !important;
    }
    .kw-banner-dark {
        grid-template-columns: 1fr !important;
        padding: 40px 20px !important;
    }
    .kw-trust {
        grid-template-columns: 1fr !important;
    }
    .kw-trust-item {
        padding: 24px 20px !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .kw-keyfacts {
        grid-template-columns: 1fr 1fr !important;
    }
    .kw-usps {
        grid-template-columns: 1fr 1fr !important;
    }
    .kw-usp {
        padding: 24px 12px !important;
    }
    .kw-usp-num {
        font-size: 28px !important;
    }
    .kw-testimonial {
        padding: 24px !important;
    }
    .kw-team-photo {
        width: 120px !important;
        height: 120px !important;
    }
    /* Footer mobile */
    .kw-custom-footer > div:nth-child(2) > div {
        grid-template-columns: 1fr 1fr !important;
        gap: 32px !important;
        padding: 40px 20px !important;
    }
    .kw-custom-footer > div:last-child > div {
        flex-direction: column !important;
        text-align: center !important;
        padding: 12px 20px !important;
    }
    /* CTA section mobile */
    .kw-cta {
        padding: 40px 20px !important;
    }
    .kw-cta h2 {
        font-size: 24px !important;
    }
    /* Lang bar mobile */
    .kw-lang-bar {
        padding: 6px 20px !important;
    }
    /* FAQ mobile */
    .kw-faq summary {
        font-size: 15px !important;
    }
    /* Editor: columns on mobile */
    .wp-block-columns {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (max-width: 480px) {
    .kw-hero h1 {
        font-size: 24px !important;
    }
    .kw-usps {
        grid-template-columns: 1fr !important;
    }
    .kw-keyfacts {
        grid-template-columns: 1fr !important;
    }
    .kw-custom-footer > div:nth-child(2) > div {
        grid-template-columns: 1fr !important;
    }
}

/* Content width constraint */
.wp-block-columns,
.kw-card-grid {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

/* Editor: same constraint */
.editor-styles-wrapper .wp-block-columns {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}
