/* Theme CSS for diehl-haustechnik.de */
/* Primary: Teal | Accent: Rose Gold */

/* Import Onest Font */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #14b8a6;
    --accent: #b76e79;
    --accent-light: #d4a5a5;
    --accent-dark: #9a5a63;
    --dark: #1f2937;
    --light: #f9fafb;
    --gray: #6b7280;
    --white: #ffffff;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Onest', sans-serif !important;
    font-size: 18px !important;
    line-height: 1.7 !important;
    color: var(--dark) !important;
    background-color: var(--light) !important;
}

/* CRITICAL: Navigation menu list fixes */
.nav-menu li {
    margin-bottom: 0 !important;
    list-style: none !important;
}

.nav-menu li::before,
.nav-menu li::after {
    display: none !important;
    content: none !important;
}

.nav-menu ul,
.nav-menu ol {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

nav ul,
nav ol,
nav li {
    list-style: none !important;
    margin-bottom: 0 !important;
}

nav ul li::before,
nav ul li::after,
nav ol li::before,
nav ol li::after {
    display: none !important;
    content: none !important;
}

/* Footer list fixes */
footer ul,
footer ol {
    list-style: none !important;
}

footer li {
    margin-bottom: 0.5rem !important;
}

footer li::before,
footer li::after {
    display: none !important;
    content: none !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Onest', sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: var(--dark) !important;
}

h1 {
    font-size: 2.5rem !important;
    margin-bottom: 1.5rem !important;
}

h2 {
    font-size: 2rem !important;
    margin-bottom: 1.25rem !important;
    margin-top: 2rem !important;
}

h3 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
    margin-top: 1.5rem !important;
}

p {
    font-size: 18px !important;
    margin-bottom: 1rem !important;
    color: var(--dark) !important;
}

/* Content Lists with Rose Gold markers */
main ul,
main ol,
section ul:not(.nav-menu ul),
section ol:not(.nav-menu ol),
article ul,
article ol,
.content ul,
.content ol {
    list-style: none !important;
    padding-left: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

main ul li,
main ol li,
section ul:not(.nav-menu ul) li,
section ol:not(.nav-menu ol) li,
article ul li,
article ol li,
.content ul li,
.content ol li {
    position: relative !important;
    padding-left: 1.5rem !important;
    margin-bottom: 0.75rem !important;
    font-size: 18px !important;
}

main ul li::before,
section ul:not(.nav-menu ul) li::before,
article ul li::before,
.content ul li::before {
    content: "●" !important;
    position: absolute !important;
    left: 0 !important;
    color: var(--accent) !important;
    font-size: 0.75rem !important;
    top: 0.5rem !important;
}

main ol {
    counter-reset: list-counter !important;
}

main ol li::before,
section ol:not(.nav-menu ol) li::before,
article ol li::before,
.content ol li::before {
    counter-increment: list-counter !important;
    content: counter(list-counter) "." !important;
    position: absolute !important;
    left: 0 !important;
    color: var(--accent) !important;
    font-weight: 600 !important;
}

/* Links */
a {
    color: var(--primary) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

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

/* Header & Navigation */
header {
    background: var(--white) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

.navbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1rem 2rem !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
}

.logo {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.logo img {
    height: 40px !important;
    width: auto !important;
    box-shadow: none !important;
}

.logo-text {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
}

.nav-menu {
    display: flex !important;
    align-items: center !important;
    gap: 2rem !important;
    list-style: none !important;
}

.nav-menu a {
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: var(--dark) !important;
    padding: 0.5rem 0 !important;
    position: relative !important;
}

.nav-menu a:hover {
    color: var(--primary) !important;
}

.nav-cta {
    background: var(--accent) !important;
    color: var(--white) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    transition: background 0.3s ease !important;
}

.nav-cta:hover {
    background: var(--accent-dark) !important;
    color: var(--white) !important;
}

/* Mobile Navigation */
.mobile-toggle {
    display: none !important;
    flex-direction: column !important;
    gap: 5px !important;
    cursor: pointer !important;
    padding: 0.5rem !important;
    background: none !important;
    border: none !important;
}

.mobile-toggle span {
    width: 25px !important;
    height: 3px !important;
    background: var(--dark) !important;
    border-radius: 2px !important;
    transition: 0.3s !important;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex !important;
    }

    .nav-menu {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        background: var(--white) !important;
        flex-direction: column !important;
        padding: 2rem !important;
        gap: 1rem !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
        transform: translateY(-150%) !important;
        transition: transform 0.3s ease !important;
    }

    .nav-menu.active {
        transform: translateY(0) !important;
    }

    .nav-menu li {
        width: 100% !important;
        text-align: center !important;
    }
}

/* Hero Section */
.hero {
    position: relative !important;
    min-height: 500px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    padding: 4rem 2rem !important;
}

.hero::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.9) 0%, rgba(15, 118, 110, 0.85) 100%) !important;
    z-index: 1 !important;
}

.hero-content {
    position: relative !important;
    z-index: 2 !important;
    text-align: center !important;
    max-width: 800px !important;
    color: var(--white) !important;
}

.hero h1 {
    color: var(--white) !important;
    font-size: 2.75rem !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.hero p {
    color: var(--white) !important;
    font-size: 1.25rem !important;
    margin-bottom: 2rem !important;
    opacity: 0.95 !important;
}

.hero-btn {
    display: inline-block !important;
    background: var(--accent) !important;
    color: var(--white) !important;
    padding: 1rem 2.5rem !important;
    border-radius: 8px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.hero-btn:hover {
    background: var(--accent-dark) !important;
    transform: translateY(-2px) !important;
    color: var(--white) !important;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem !important;
    }

    .hero p {
        font-size: 1.1rem !important;
    }
}

/* Main Content Container */
.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
}

/* Sections */
section {
    padding: 4rem 0 !important;
}

section:nth-child(even) {
    background: var(--white) !important;
}

section:nth-child(odd) {
    background: var(--light) !important;
}

/* Cards */
.card {
    background: var(--white) !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

.card-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 2rem !important;
    margin-top: 2rem !important;
}

/* Tables */
.table-container {
    overflow-x: auto !important;
    margin: 2rem 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}

table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: var(--white) !important;
    min-width: 600px !important;
}

thead {
    background: var(--primary) !important;
}

th {
    color: var(--white) !important;
    font-weight: 600 !important;
    padding: 1rem 1.5rem !important;
    text-align: left !important;
    font-size: 1rem !important;
}

td {
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid #e5e7eb !important;
    font-size: 1rem !important;
}

tbody tr:hover {
    background: #f3f4f6 !important;
}

tbody tr:last-child td {
    border-bottom: none !important;
}

/* Images */
img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
}

.img-float-left {
    float: left !important;
    margin: 0 2rem 1rem 0 !important;
    max-width: 45% !important;
}

.img-float-right {
    float: right !important;
    margin: 0 0 1rem 2rem !important;
    max-width: 45% !important;
}

.img-full {
    width: 100% !important;
    margin: 2rem 0 !important;
}

@media (max-width: 768px) {
    .img-float-left,
    .img-float-right {
        float: none !important;
        max-width: 100% !important;
        margin: 1.5rem 0 !important;
    }
}

/* Conversion Buttons */
.cta-btn {
    display: inline-block !important;
    background: var(--accent) !important;
    color: var(--white) !important;
    padding: 1rem 2rem !important;
    border-radius: 8px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
}

.cta-btn:hover {
    background: var(--accent-dark) !important;
    transform: translateY(-2px) !important;
    color: var(--white) !important;
}

/* Footer */
footer {
    background: var(--dark) !important;
    color: var(--white) !important;
    padding: 4rem 2rem 2rem !important;
}

footer p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer-content {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 3rem !important;
}

.footer-section h4 {
    color: var(--white) !important;
    font-size: 1.25rem !important;
    margin-bottom: 1.5rem !important;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8) !important;
    display: block !important;
    margin-bottom: 0.75rem !important;
    transition: color 0.3s ease !important;
}

.footer-section a:hover {
    color: var(--accent-light) !important;
}

.footer-bottom {
    max-width: 1200px !important;
    margin: 3rem auto 0 !important;
    padding-top: 2rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    text-align: center !important;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.95rem !important;
}

/* Icons */
.bi {
    color: var(--primary) !important;
    font-size: 1.25rem !important;
    vertical-align: middle !important;
}

.icon-accent {
    color: var(--accent) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards !important;
}

.star {
    position: absolute !important;
    width: 4px !important;
    height: 4px !important;
    background: var(--accent-light) !important;
    border-radius: 50% !important;
    animation: twinkle 2s ease-in-out infinite !important;
}

/* Clear floats */
.clearfix::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

/* Utility Classes */
.text-center {
    text-align: center !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.mt-2 {
    margin-top: 2rem !important;
}

.mb-2 {
    margin-bottom: 2rem !important;
}

.py-4 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}
