/*
Theme Name: Los Fontas
Theme URI: https://losfontas.com
Author: Lichtblick
Author URI: https://lichtblick.de
Description: Ein modernes WordPress Theme für Los Fontas - Heizungs- & Sanitärarbeiten auf Gran Canaria & Fuerteventura
Version: 0.5.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: los-fontas
Tags: custom-logo, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */
:root {
    /* Colors - basierend auf dem Screenshot */
    --color-primary: #1a5f5f;
    --color-primary-dark: #0d4a4a;
    --color-primary-light: #2a7a7a;
    --color-secondary: #c9a855;
    --color-secondary-dark: #b08f3a;
    --color-secondary-light: #d4bc70;
    --color-white: #ffffff;
    --color-off-white: #f7f5f0;
    --color-cream: #faf8f3;
    --color-beige: #f5f2eb;
    --color-gray-light: #e8e4dc;
    --color-gray: #8a8580;
    --color-gray-dark: #4a4540;
    --color-text: #2d3436;
    --color-text-light: #5a6568;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Container */
    --container-max: 1200px;
    --container-narrow: 900px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--spacing-3xl) 0;
}

.section--sm {
    padding: var(--spacing-xl) 0;
}

.section--bg-white {
    background-color: var(--color-white);
}

.section--bg-light {
    background-color: var(--color-off-white);
}

.section--bg-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.site-logo-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
}

.site-logo-img {
    object-fit: contain;
}

.site-logo-placeholder {
    padding: 0.5rem 1rem;
    background-color: rgba(13, 92, 99, 0.1);
    border: 1px dashed var(--color-primary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--color-primary);
}

.site-logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 1px;
}

/* Main Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    padding: var(--spacing-xs) 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width var(--transition-normal);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

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

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-left: var(--spacing-lg);
    padding-left: var(--spacing-lg);
    border-left: 1px solid var(--color-gray-light);
}

.language-switcher a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray);
}

.language-switcher a.active {
    color: var(--color-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    transition: all var(--transition-fast);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-beige) 100%);
}

.hero--has-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero--has-bg .hero-title,
.hero--has-bg .hero-subtitle {
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero--has-bg .btn--outline {
    border-color: var(--color-white);
    color: var(--color-white);
}

.hero--has-bg .btn--outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: url('assets/images/wave-pattern.svg') no-repeat bottom center;
    background-size: cover;
    opacity: 0.3;
    pointer-events: none;
}

.hero--has-bg::before {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: var(--spacing-xl);
}

.hero-logo {
    margin: 0 auto var(--spacing-xl);
}

.hero-logo img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-logo--placeholder {
    padding: var(--spacing-lg);
    background-color: rgba(13, 92, 99, 0.1);
    border: 2px dashed var(--color-primary);
    border-radius: var(--radius-lg);
    width: auto;
    max-width: 400px;
}

.hero-logo-hint {
    font-size: 0.875rem;
    color: var(--color-primary);
    text-align: center;
    margin: 0;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xl);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn--primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    border-color: var(--color-secondary);
}

.btn--primary:hover {
    background-color: var(--color-secondary-dark);
    border-color: var(--color-secondary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--white {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

.btn--white:hover {
    background-color: var(--color-off-white);
    color: var(--color-primary);
}

.btn svg,
.btn img {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Services Grid
   ========================================================================== */
.services-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.services-grid--secondary {
    grid-template-columns: repeat(3, 1fr);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-lg);
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.service-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-card__icon {
    width: 60px;
    height: 60px;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.service-card__icon svg {
    width: 100%;
    height: 100%;
}

.service-card__title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
}

/* ==========================================================================
   Info Boxes (Für Unternehmen & Warum Los Fontas)
   ========================================================================== */
.info-section {
    padding: var(--spacing-xl) 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.info-box {
    padding: var(--spacing-lg);
    background-color: var(--color-off-white);
    border-radius: var(--radius-lg);
}

.info-box__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-secondary);
}

.info-box__list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.info-box__list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.95rem;
}

.info-box__list li::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

/* Badges Grid */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
}

.badge__icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.badge__icon svg {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Referenzen (References)
   ========================================================================== */
.references-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-white);
}

.references-section__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-sm);
    border-bottom: 3px solid var(--color-secondary);
    display: inline-block;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.reference-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.reference-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.reference-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reference-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 92, 99, 0.9) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-md);
}

.reference-card:hover .reference-card__overlay {
    opacity: 1;
}

.reference-card__title {
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 600;
}

/* Map Reference Card */
.reference-card--map {
    background-color: var(--color-off-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.reference-card--map .map-image {
    width: 80%;
    height: auto;
    opacity: 0.6;
}

.reference-card--map .locations {
    text-align: center;
    margin-top: var(--spacing-sm);
}

.reference-card--map .location-label {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.reference-card--map .location-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-xl) 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--color-white);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-contact a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact a:hover {
    color: var(--color-white);
}

.footer-contact svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Wave Decorations
   ========================================================================== */
.wave-top,
.wave-bottom {
    position: absolute;
    left: 0;
    right: 0;
    height: 100px;
    pointer-events: none;
}

.wave-top {
    top: 0;
}

.wave-bottom {
    bottom: 0;
}

.wave-top svg,
.wave-bottom svg {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .references-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-3xl: 4rem;
    }

    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--color-white);
        flex-direction: column;
        padding: var(--spacing-xl);
        transform: translateX(100%);
        transition: transform var(--transition-normal);
    }

    .main-navigation.active {
        transform: translateX(0);
    }

    .nav-menu {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .nav-menu a {
        font-size: 1.25rem;
    }

    .language-switcher {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: var(--spacing-lg);
        padding-top: var(--spacing-lg);
        border-top: 1px solid var(--color-gray-light);
    }

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-logo {
        width: 140px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .services-grid--secondary {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-contact {
        align-items: center;
    }
}

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

    .services-grid--secondary {
        grid-template-columns: 1fr;
    }

    .references-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .badges-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.hidden { display: none; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
