/*
Theme Name: TL Objektservice & Räumung
Theme URI: https://tl-objektservice.de
Author: AUVIM Marketing & Web Agentur
Description: Custom WordPress Theme für TL Objektservice & Räumung – All-in-One Dienstleister für Entrümpelung, Nachlassräumung, Hausverwaltung-Services und Winterdienst in Köln und Umgebung. Optimiert für SEO, GEO, Conversion und Mobile.
Version: 1.0
Requires PHP: 7.4
Text Domain: tl-objektservice
*/

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    /* Basis-Markenfarben (warm, durchgehend) */
    --color-petrol: #1B3A3F;
    --color-petrol-dark: #122A2E;
    --color-petrol-light: #2C5358;
    --color-sand: #F0E4D3;
    --color-sand-light: #FBF3EA;
    --color-cream: #FBF7F0;
    --color-terracotta: #D87B5C;
    --color-terracotta-dark: #BC6346;
    --color-anthracite: #2B2D2D;
    --color-white: #FFFFFF;
    --color-gray-mid: #6B6E6C;
    --color-success: #4A7A5E;
    --color-border: #E5DFD2;

    /* Gezielte Akzentfarben (nur für B2B/Vertrauen bzw. Nachhaltigkeit) */
    --color-trust-blue: #1A5C8C;
    --color-trust-blue-dark: #0F3D5C;
    --color-trust-blue-bg: #EAF2FA;
    --color-trust-blue-tag-bg: #D6E8F7;
    --color-eco-green: #5C8C3E;
    --color-eco-green-dark: #2C4D16;
    --color-eco-green-bg: #EEF5E6;
    --color-eco-green-tag-bg: #DCEBC8;

    /* Typografie */
    --font-display: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-utility: 'Inter', sans-serif;

    /* Größen */
    --container-max: 1240px;
    --container-narrow: 800px;
    --radius-sm: 24px;
    --radius-md: 16px;
    --space-section: clamp(4rem, 8vw, 8rem);

    /* Schatten */
    --shadow-card: 0 2px 16px rgba(27, 58, 63, 0.06);
    --shadow-elevated: 0 8px 32px rgba(27, 58, 63, 0.12);
}

/* ============================================
   RESET & BASICS
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-anthracite);
    background: var(--color-white);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { padding-left: 1.2em; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--color-petrol);
    line-height: 1.25;
    margin: 0 0 0.6em;
    font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.8vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2.3vw, 1.5rem); }
p { margin: 0 0 1.2em; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}
.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 24px;
}
.section { padding: var(--space-section) 0; }
.section--sand { background: var(--color-cream); }
.section--petrol { background: var(--color-petrol); color: var(--color-sand-light); }
.section--petrol h2, .section--petrol h3 { color: var(--color-white); }
/* Gezielte Akzent-Sektionen: NUR auf B2B/Hausverwaltungs-Seiten bzw. Nachhaltigkeits-Seite verwenden */
.section--trust { background: var(--color-trust-blue-bg); }
.section--trust h2, .section--trust h3 { color: var(--color-trust-blue-dark); }
.section--eco { background: var(--color-eco-green-bg); }
.section--eco h2, .section--eco h3 { color: var(--color-eco-green-dark); }

.eyebrow {
    font-family: var(--font-utility);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    margin-bottom: 0.8em;
    display: inline-block;
    background: #FBE4DA;
    padding: 4px 14px;
    border-radius: 99px;
}
.eyebrow--trust { color: var(--color-trust-blue-dark); background: var(--color-trust-blue-tag-bg); }
.eyebrow--eco { color: var(--color-eco-green-dark); background: var(--color-eco-green-tag-bg); }

/* ============================================
   BUTTONS / CTA
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-display);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--color-terracotta);
    color: var(--color-white);
}
.btn-primary:hover {
    background: var(--color-terracotta-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-elevated);
}
.btn-secondary {
    background: var(--color-white);
    border-color: var(--color-petrol);
    color: var(--color-petrol);
}
.btn-secondary:hover {
    background: var(--color-petrol);
    color: var(--color-white);
}
.section--petrol .btn-secondary {
    border-color: var(--color-sand);
    color: var(--color-sand-light);
    background: transparent;
}
.btn-trust { background: var(--color-trust-blue); color: var(--color-white); }
.btn-trust:hover { background: var(--color-trust-blue-dark); transform: translateY(-1px); }
.btn-eco { background: var(--color-eco-green); color: var(--color-white); }
.btn-eco:hover { background: var(--color-eco-green-dark); transform: translateY(-1px); }
.btn-block { width: 100%; justify-content: center; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    max-width: var(--container-max);
    margin: 0 auto;
}
.site-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--color-petrol);
}
.site-logo span { color: var(--color-terracotta); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-anthracite);
    position: relative;
}
.main-nav a:hover { color: var(--color-terracotta); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone {
    font-weight: 700;
    color: var(--color-petrol);
    font-size: 0.95rem;
    white-space: nowrap;
}
.header-phone svg { vertical-align: -3px; margin-right: 4px; }

.menu-toggle { display: none; background: none; border: none; padding: 8px; }
.menu-toggle svg { width: 26px; height: 26px; color: var(--color-petrol); }

/* ============================================
   HERO
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--color-sand-light) 0%, var(--color-sand) 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
    position: relative;
    z-index: 1;
    min-height: 480px;
}
.hero-text-col { padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { color: var(--color-petrol); }
.hero-sub { font-size: 1.1rem; color: #5A554C; max-width: 480px; margin-bottom: 2em; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 24px; margin-top: 2.2em; flex-wrap: wrap; }
.hero-trust-item { font-size: 0.88rem; color: var(--color-petrol); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.hero-trust-item svg { width: 18px; height: 18px; color: var(--color-terracotta); flex-shrink: 0; }

.hero-photo-col {
    background: var(--color-sand);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 280px;
}
.photo-placeholder {
    text-align: center;
    color: #8A7D68;
    padding: 24px;
    border: 2px dashed #C9B99A;
    border-radius: var(--radius-md);
    margin: 24px;
}
.photo-placeholder svg { width: 40px; height: 40px; margin: 0 auto 10px; display: block; }
.photo-placeholder span { font-size: 0.78rem; font-weight: 600; line-height: 1.4; display: block; }

/* ============================================
   ÜBERGABE-TIMELINE (Signature Element)
   ============================================ */
.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    margin-top: 3em;
}
.timeline::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: var(--color-border);
    z-index: 0;
}
.timeline-step { position: relative; z-index: 1; text-align: center; padding: 0 12px; }
.timeline-dot {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--color-terracotta);
    border: none;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-weight: 800;
    font-family: var(--font-display);
}
.timeline-step h4 { font-size: 1.05rem; margin-bottom: 6px; font-family: var(--font-display); font-weight: 700; }
.timeline-step p { font-size: 0.9rem; color: var(--color-gray-mid); margin: 0; }
.section--petrol .timeline::before { background: rgba(255,255,255,0.2); }
.section--petrol .timeline-dot { background: var(--color-terracotta); }
.section--petrol .timeline-step p { color: var(--color-sand); }

/* ============================================
   CARDS / GRIDS
   ============================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-card);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-elevated); }
.card-icon {
    width: 48px;
    height: 48px;
    color: var(--color-terracotta);
    margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; font-family: var(--font-display); font-weight: 700; }
.card p { color: var(--color-gray-mid); margin-bottom: 0; }

.usp-list { list-style: none; padding: 0; margin: 0; }
.usp-list li {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--color-border);
}
.usp-list li:last-child { border-bottom: none; }
.usp-list svg { width: 24px; height: 24px; color: var(--color-success); flex-shrink: 0; margin-top: 2px; }
.usp-list strong { display: block; color: var(--color-petrol); margin-bottom: 2px; }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    background: var(--color-terracotta);
    color: var(--color-white);
    border-radius: var(--radius-md);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.cta-banner h3 { color: var(--color-white); margin: 0; font-family: var(--font-display); }
.cta-banner .btn-secondary { border-color: var(--color-white); color: var(--color-white); background: transparent; }
.cta-banner .btn-secondary:hover { background: var(--color-white); color: var(--color-terracotta); }
.cta-banner--trust { background: var(--color-trust-blue); }
.cta-banner--trust .btn-secondary:hover { color: var(--color-trust-blue); }
.cta-banner--eco { background: var(--color-eco-green); }
.cta-banner--eco .btn-secondary:hover { color: var(--color-eco-green); }

/* ============================================
   FAQ (Schema-relevant)
   ============================================ */
.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 20px 0;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-petrol);
    font-size: 1.05rem;
}
.faq-question svg { transition: transform 0.2s ease; flex-shrink: 0; width: 20px; height: 20px; }
.faq-item.active .faq-question svg { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    color: var(--color-gray-mid);
}
.faq-item.active .faq-answer { max-height: 600px; padding-top: 14px; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--color-petrol-dark);
    color: var(--color-sand);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 2.5rem;
}
.footer-grid h4 { color: var(--color-white); font-size: 1rem; margin-bottom: 1em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--color-terracotta); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: rgba(232,226,214,0.7);
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom a { color: rgba(232,226,214,0.7); }
.footer-bottom a:hover { color: var(--color-terracotta); }

/* ============================================
   STICKY MOBILE CTA (Conversion)
   ============================================ */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding: 10px 16px;
    gap: 10px;
}
.mobile-sticky-cta a {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.92rem;
}
.mobile-sticky-cta .call { background: var(--color-petrol); color: var(--color-white); }
.mobile-sticky-cta .whatsapp { background: #25D366; color: var(--color-white); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .timeline { grid-template-columns: 1fr 1fr; gap: 24px; }
    .timeline::before { display: none; }
}
@media (max-width: 720px) {
    .main-nav ul, .header-phone-desktop { display: none; }
    .menu-toggle { display: block; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-banner { flex-direction: column; text-align: center; }
    .mobile-sticky-cta { display: flex; }
    body { padding-bottom: 64px; }
    .timeline { grid-template-columns: 1fr 1fr; }
}

/* Mobile nav drawer */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--color-petrol);
    z-index: 1000;
    padding: 24px;
    overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav li { border-bottom: 1px solid rgba(255,255,255,0.15); }
.mobile-nav a { display: block; padding: 18px 4px; color: var(--color-white); font-size: 1.1rem; font-weight: 600; }
.mobile-nav-close { background: none; border: none; color: var(--color-white); float: right; padding: 8px; }
.mobile-nav-close svg { width: 28px; height: 28px; }

/* Accessibility */
a:focus-visible, button:focus-visible { outline: 3px solid var(--color-terracotta); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
