/*
Theme Name: Distner Fenster Theme
Description: Distner Fenster & Türen — Premium WordPress Theme by CodLab
Version: 2.0
Author: CodLab
*/

/* ═══════════════════════════════════════════
   SELF-HOSTED FONTS (DSGVO-konform)
   ═══════════════════════════════════════════ */

@font-face {
    font-family: 'Mulish';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./fonts/mulish-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Mulish';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./fonts/mulish-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Mulish';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('./fonts/mulish-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Mulish';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('./fonts/mulish-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Mulish';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('./fonts/mulish-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Mulish';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('./fonts/mulish-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Mulish';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('./fonts/mulish-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Mulish';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('./fonts/mulish-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Mulish';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('./fonts/mulish-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Mulish';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('./fonts/mulish-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ═══════════════════════════════════════════
   DESIGN SYSTEM
   ═══════════════════════════════════════════ */

:root {
    --d-teal: #00A4A4;
    --d-teal-light: #00C4C4;
    --d-teal-dark: #007D7D;
    --d-teal-bg: rgba(0,164,164,0.06);
    --d-orange: #EC870E;
    --d-navy: #203343;
    --d-navy-deep: #0a1a25;
    --d-charcoal: #1a1a2e;
    --d-text: #444;
    --d-text-light: #777;
    --d-light: #f7f7f5;
    --d-border: #e8e8e6;
    --d-white: #ffffff;
    --d-radius: 10px;
    --d-radius-lg: 16px;
    --d-shadow: 0 4px 30px rgba(0,0,0,0.06);
    --d-shadow-lg: 0 16px 48px rgba(0,0,0,0.1);
    --d-shadow-hover: 0 20px 60px rgba(0,0,0,0.14);
    --d-transition: all 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
    --d-font: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--d-font);
    color: var(--d-text);
    line-height: 1.7;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    background: var(--d-white);
}

a { color: var(--d-teal); text-decoration: none; transition: var(--d-transition); }
a:hover { color: var(--d-teal-dark); }

img { max-width: 100%; height: auto; }

/* ═══════════════════════════════════════════
   HEADER — Glass morphism sticky
   ═══════════════════════════════════════════ */

.distner-header {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0 clamp(20px, 4vw, 60px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: var(--d-transition);
}

.distner-logo img {
    height: 42px;
    width: auto;
    transition: var(--d-transition);
}
.distner-logo:hover img { opacity: 0.8; }

/* Navigation */
.distner-nav {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.distner-nav li { position: relative; }

.distner-nav > li > a {
    display: block;
    padding: 26px 16px;
    color: var(--d-charcoal);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: var(--d-transition);
    position: relative;
}

.distner-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--d-teal);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
    transform-origin: left;
}

.distner-nav > li:hover > a::after,
.distner-nav > li.current-menu-item > a::after {
    transform: scaleX(1);
}

.distner-nav > li:hover > a,
.distner-nav > li.current-menu-item > a {
    color: var(--d-teal);
}

/* Kontakt button in nav */
.distner-nav > li:last-child > a {
    background: var(--d-teal);
    color: var(--d-white) !important;
    padding: 10px 24px;
    border-radius: 6px;
    margin-left: 8px;
    font-size: 12.5px;
    letter-spacing: 1.2px;
}
.distner-nav > li:last-child > a::after { display: none; }
.distner-nav > li:last-child > a:hover {
    background: var(--d-teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,164,164,0.3);
}

/* Dropdown */
.distner-nav .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% - 4px);
    left: 0;
    background: var(--d-white);
    min-width: 240px;
    box-shadow: var(--d-shadow-lg);
    list-style: none;
    padding: 12px 0;
    margin: 0;
    border-radius: 0 0 var(--d-radius) var(--d-radius);
    border-top: 3px solid var(--d-teal);
    z-index: 100;
    animation: dropIn 0.25s ease;
}

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.distner-nav .sub-menu a {
    display: block;
    padding: 10px 24px;
    color: var(--d-text);
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--d-transition);
    border-left: 3px solid transparent;
}

.distner-nav .sub-menu a:hover {
    background: var(--d-teal-bg);
    color: var(--d-teal);
    border-left-color: var(--d-teal);
    padding-left: 28px;
}

/* Mobile hamburger */
.distner-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.distner-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--d-charcoal);
    border-radius: 2px;
    transition: var(--d-transition);
}

/* ═══════════════════════════════════════════
   GLOBAL CONTENT STYLING
   ═══════════════════════════════════════════ */

article h2 {
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 800;
    color: var(--d-charcoal);
    margin: 50px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--d-teal);
    display: inline-block;
}

article h3 {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 700;
    color: var(--d-charcoal);
    margin: 35px 0 15px;
}

article p {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--d-text);
}

article ul {
    padding-left: 0;
    list-style: none;
    margin: 20px 0;
}

article ul li {
    padding: 10px 0 10px 28px;
    position: relative;
    font-size: 15.5px;
    line-height: 1.6;
    border-bottom: 1px solid var(--d-border);
}

article ul li:last-child { border-bottom: none; }

article ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    background: var(--d-teal);
    border-radius: 50%;
}

article strong {
    color: var(--d-charcoal);
    font-weight: 700;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */

.d-btn {
    display: inline-block;
    padding: 15px 36px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--d-transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.d-btn-primary {
    background: var(--d-teal);
    color: var(--d-white);
    box-shadow: 0 4px 15px rgba(0,164,164,0.25);
}
.d-btn-primary:hover {
    background: var(--d-teal-dark);
    color: var(--d-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,164,164,0.35);
}

.d-btn-outline {
    background: transparent;
    color: var(--d-white);
    border: 2px solid rgba(255,255,255,0.3);
}
.d-btn-outline:hover {
    border-color: var(--d-white);
    background: rgba(255,255,255,0.1);
    color: var(--d-white);
    transform: translateY(-2px);
}

.d-btn-white {
    background: var(--d-white);
    color: var(--d-teal);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.d-btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: var(--d-teal-dark);
}

/* ═══════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════ */

.d-card {
    background: var(--d-white);
    border-radius: var(--d-radius-lg);
    overflow: hidden;
    box-shadow: var(--d-shadow);
    transition: var(--d-transition);
    text-decoration: none;
    display: block;
}

.d-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--d-shadow-hover);
}

.d-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.d-card:hover img {
    transform: scale(1.05);
}

.d-card-body {
    padding: 24px;
}

.d-card-body h3 {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
    color: var(--d-charcoal);
    border: none;
    padding: 0;
}

.d-card-body p {
    margin: 0;
    font-size: 14px;
    color: var(--d-text-light);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════
   PILL LINKS (product categories)
   ═══════════════════════════════════════════ */

.d-pill {
    display: inline-block;
    padding: 10px 24px;
    background: var(--d-white);
    border-radius: 100px;
    color: var(--d-charcoal);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--d-shadow);
    transition: var(--d-transition);
    text-decoration: none;
}

.d-pill:hover {
    background: var(--d-teal);
    color: var(--d-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,164,164,0.25);
}

/* ═══════════════════════════════════════════
   FOOTER — Premium dark
   ═══════════════════════════════════════════ */

.distner-footer {
    background: linear-gradient(180deg, var(--d-navy) 0%, var(--d-navy-deep) 100%);
    color: #fff;
    padding: 70px clamp(20px, 4vw, 60px) 30px;
}

.distner-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.distner-footer h4 {
    color: var(--d-teal-light);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    font-weight: 800;
}

.distner-footer p,
.distner-footer a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.8;
    text-decoration: none;
}

.distner-footer a:hover {
    color: var(--d-teal-light);
}

.distner-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.distner-footer-links li { margin-bottom: 10px; }

.distner-footer-links a {
    position: relative;
    padding-left: 0;
    transition: var(--d-transition);
}
.distner-footer-links a:hover { padding-left: 6px; }

.distner-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    margin-top: 50px;
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.distner-footer-bottom p {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}

.distner-footer-bottom a { color: rgba(255,255,255,0.4); }
.distner-footer-bottom a:hover { color: var(--d-teal-light); }

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.d-animate {
    animation: fadeInUp 0.6s ease both;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 960px) {
    .distner-nav { display: none; }
    .distner-hamburger { display: flex; }

    .distner-nav.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--d-white);
        padding: 20px;
        gap: 0;
        overflow-y: auto;
        animation: fadeIn 0.3s ease;
        z-index: 999;
    }

    .distner-nav.open > li > a {
        padding: 16px 0;
        font-size: 16px;
        border-bottom: 1px solid var(--d-border);
    }
    .distner-nav.open > li > a::after { display: none; }

    .distner-nav.open .sub-menu {
        display: block;
        position: static;
        box-shadow: none;
        border-top: none;
        border-radius: 0;
        padding: 0 0 0 20px;
        animation: none;
    }

    .distner-nav.open > li:last-child > a {
        margin: 20px 0 0;
        text-align: center;
    }

    .distner-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hp-contact-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
    .distner-footer-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   WORDPRESS BLOCK OVERRIDES
   ═══════════════════════════════════════════ */

.wp-block-heading { font-family: var(--d-font); }
.entry-content { font-family: var(--d-font); }

/* ═══════════════════════════════════════════
   CONTACT FORM 7 STYLING
   ═══════════════════════════════════════════ */

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--d-border);
    border-radius: 8px;
    font-family: var(--d-font);
    font-size: 15px;
    transition: var(--d-transition);
    background: var(--d-white);
    color: var(--d-charcoal);
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
    border-color: var(--d-teal);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,164,164,0.1);
}

.wpcf7 textarea { min-height: 140px; resize: vertical; }

.wpcf7 input[type="submit"] {
    background: var(--d-teal);
    color: var(--d-white);
    padding: 16px 40px;
    border: none;
    border-radius: 6px;
    font-family: var(--d-font);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--d-transition);
    box-shadow: 0 4px 15px rgba(0,164,164,0.25);
}

.wpcf7 input[type="submit"]:hover {
    background: var(--d-teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,164,164,0.35);
}

.wpcf7 .wpcf7-acceptance label {
    font-size: 13px;
    color: var(--d-text-light);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.wpcf7-response-output {
    border-radius: 8px !important;
    padding: 16px !important;
    font-size: 14px;
}

/* ═══════════════════════════════════════════
   SMOOTH SCROLL & HOVER EFFECTS
   ═══════════════════════════════════════════ */

html { scroll-behavior: smooth; }

/* Image hover shine effect */
.d-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}
.d-card { position: relative; overflow: hidden; }
.d-card:hover::after { left: 100%; }

/* ═══════════════════════════════════════════
   CODLAB CREDIT BADGE (standard across all sites)
   ═══════════════════════════════════════════ */

.footer-codlab {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 0;
    text-align: center;
    background: var(--d-navy-deep);
}

.codlab-glass-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.codlab-glass-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.codlab-text {
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
    font-family: 'Inter', system-ui, sans-serif;
}

.codlab-glass-badge:hover .codlab-text {
    color: rgba(255, 255, 255, 0.7);
}

.codlab-logo {
    height: 14px;
    width: auto;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.codlab-glass-badge:hover .codlab-logo {
    opacity: 0.85;
}
