/*
Theme Name: TL Objektservice
Theme URI: https://tl-objektservice.de
Author: AUVIM / Kudret Taskiran
Author URI: https://auvim.de
Description: Custom Theme für TL Objektservice & Räumung Köln
Version: 1.2
License: Private
Text Domain: tl-objektservice
*/

/* ── RESET & VARIABLES ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:   #0F2039;
  --dark2:  #0a1828;
  --green:  #4C6E56;
  --green2: #3a5542;
  --pale:   #C8DDD0;
  --bg:     #F9F8F6;
  --bg2:    #FFFFFF;
  --bg3:    #F2EFEA;
  --ink:    #1A2636;
  --muted:  #697586;
  --bdr:    #E5E7EB;
  --r:      14px;
  --r-sm:   10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow:    0 2px 8px rgba(0,0,0,.07), 0 8px 24px rgba(0,0,0,.07);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── LAYOUT ─────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section       { padding: 88px 0; }
.section-white { background: var(--bg2); }
.section-stone { background: var(--bg3); }
.section-dark  { background: var(--dark); }
.section-hd { margin-bottom: 52px; }
.section-hd.centered { text-align: center; }
.section-hd.centered p { margin: 8px auto 0; }
.section-hd h2 { margin-bottom: 8px; }
.section-hd p { font-size: 15px; color: var(--muted); max-width: 520px; line-height: 1.75; }

/* ── TYPOGRAPHY ─────────────────────────────────── */
.label {
  display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
}
.label-light { color: var(--pale); }
.label-muted { color: var(--muted); }
h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; line-height: 1.06; letter-spacing: -2px; color: var(--dark); }
h2 { font-size: clamp(26px, 3.5vw, 40px); font-weight: 700; line-height: 1.1; letter-spacing: -1px; color: var(--dark); }
h2.on-dark, h3.on-dark { color: #fff; }
h3 { font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--dark); }
.txt-accent { color: var(--green); }
.txt-pale   { color: var(--pale); }

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Poppins', sans-serif; font-weight: 600;
  border-radius: var(--r-sm); border: none; cursor: pointer;
  text-decoration: none; transition: all .18s; white-space: nowrap;
}
.btn-primary     { background: var(--dark); color: #fff; }
.btn-primary:hover { background: var(--dark2); transform: translateY(-1px); }
.btn-green       { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green2); transform: translateY(-1px); }
.btn-outline     { background: transparent; color: var(--dark); border: 1.5px solid rgba(15,32,57,.2); }
.btn-outline:hover { background: rgba(15,32,57,.04); }
.btn-outline-light { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.25); }
.btn-outline-light:hover { background: rgba(255,255,255,.18); }
.btn-white       { background: #fff; color: var(--green); }
.btn-white:hover { background: var(--bg3); }
.btn-sm  { font-size: 12.5px; padding: 8px 16px; }
.btn-md  { font-size: 13.5px; padding: 11px 22px; }
.btn-lg  { font-size: 15px;   padding: 14px 28px; }
.btn-xl  { font-size: 15px;   padding: 17px 34px; }

/* ── HEADER / NAV ────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(249,248,246,.92);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--bdr);
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-sq {
  width: 36px; height: 36px; border-radius: 9px; background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: #fff; position: relative;
}
.logo-sq::after {
  content: ''; position: absolute; bottom: 4px; right: 4px;
  width: 6px; height: 6px; background: var(--green); border-radius: 50%;
}
.logo-words b { font-size: 13.5px; font-weight: 700; color: var(--dark); display: block; line-height: 1.1; }
.logo-words span { font-size: 10px; font-weight: 600; color: var(--green); }
nav { display: flex; align-items: center; gap: 2px; }
nav a { font-size: 13.5px; font-weight: 500; color: var(--ink); padding: 7px 12px; border-radius: 8px; transition: background .18s; white-space: nowrap; }
nav a:hover { background: rgba(0,0,0,.05); }
.nav-cta { background: var(--dark) !important; color: #fff !important; padding: 8px 18px !important; border-radius: 10px !important; font-weight: 600 !important; margin-left: 6px; }
.nav-cta:hover { background: var(--dark2) !important; }
.nav-active { color: var(--green) !important; font-weight: 600 !important; }
.hbg { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 8px; border: none; background: none; }
.hbg span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.mob-nav {
  display: none; background: rgba(249,248,246,.97); backdrop-filter: blur(20px);
  border-top: 1px solid var(--bdr); padding: 12px 24px 20px;
  flex-direction: column; gap: 2px;
}
.mob-nav a { display: block; padding: 11px 0; font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--bdr); }
.mob-nav .mb { margin-top: 12px; background: var(--dark); color: #fff; padding: 13px; border-radius: 12px; text-align: center; font-weight: 600; border-bottom: none; }
.mob-nav.open { display: flex; }

/* ── BREADCRUMB ──────────────────────────────────── */
.breadcrumb { padding: 12px 0; border-bottom: 1px solid var(--bdr); background: var(--bg2); }
.bc-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.bc-inner a { color: var(--muted); } .bc-inner a:hover { color: var(--ink); }
.bc-sep { color: var(--bdr); } .bc-current { color: var(--ink); font-weight: 500; }

/* ── FOOTER ──────────────────────────────────────── */
.site-footer { background: var(--dark2); padding: 56px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.06); }
.foot-brand .logo { margin-bottom: 16px; }
.foot-brand p { font-size: 13px; color: rgba(255,255,255,.35); line-height: 1.75; }
.foot-col h4 { font-size: 11.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: rgba(255,255,255,.25); margin-bottom: 16px; }
.foot-col a { display: block; font-size: 13px; color: rgba(255,255,255,.45); margin-bottom: 8px; transition: color .18s; }
.foot-col a:hover { color: rgba(255,255,255,.8); }
.foot-contact a { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.45); margin-bottom: 10px; transition: color .18s; }
.foot-contact a:hover { color: rgba(255,255,255,.8); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.foot-bottom p { font-size: 11.5px; color: rgba(255,255,255,.22); }
.foot-links { display: flex; gap: 16px; }
.foot-links a { font-size: 11.5px; color: rgba(255,255,255,.28); transition: color .18s; }
.foot-links a:hover { color: rgba(255,255,255,.65); }

/* ── MOBILE ──────────────────────────────────────── */
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { nav { display: none; } .hbg { display: flex; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ── NAV DROPDOWN ────────────────────────────────── */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px; font-weight: 500; color: var(--ink);
  background: none; border: none; cursor: pointer;
  padding: 7px 12px; border-radius: 8px;
  display: flex; align-items: center; gap: 5px;
  transition: background .18s; white-space: nowrap;
}
.nav-drop-btn:hover, .nav-drop:hover .nav-drop-btn { background: rgba(0,0,0,.05); }
.nav-drop-btn.nav-active { color: var(--green) !important; font-weight: 600 !important; }
.nav-drop-btn svg { opacity: .4; transition: transform .2s; margin-top: 1px; }
.nav-drop:hover .nav-drop-btn svg { transform: rotate(180deg); }
.nav-drop-menu {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: var(--bg2);
  border: 1px solid var(--bdr);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(15,32,57,.13);
  min-width: 310px;
  padding: 8px;
  z-index: 400;
}
.nav-drop:hover .nav-drop-menu { display: block; }
.nav-drop-menu a {
  display: flex !important; align-items: center; gap: 14px;
  padding: 11px 14px !important; border-radius: 10px !important;
  text-decoration: none; transition: background .15s;
  white-space: normal !important;
}
.nav-drop-menu a:hover, .nav-drop-menu a.active { background: var(--bg3); }
/* Bridge: keeps hover active in the 8px gap between button and menu */
.nav-drop-menu::before { content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.ndm-icon { font-size: 19px; flex-shrink: 0; width: 28px; text-align: center; }
.ndm-text b { display: block; font-size: 13.5px; font-weight: 600; color: var(--dark); line-height: 1.2; }
.ndm-text small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
/* Mobile nav additions */
.mob-section-label { font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); padding: 14px 0 4px; }
.mob-nav .mob-sub { padding: 9px 0 9px 12px; font-size: 14px; border-bottom: 1px solid var(--bdr); color: var(--muted); }

/* ── SERVICE CARDS AS LINKS ─────────────────────── */
a.sc { display: block; text-decoration: none; color: inherit; }
.sc-cta { display: block; margin-top: 16px; font-size: 12.5px; font-weight: 600; color: var(--green); }

/* ── IMAGE FEATURE BLOCK ─────────────────────────── */
.img-feature-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.img-feature-block.img-rev .img-feature-photo { order: 2; }
.img-feature-block.img-rev .img-feature-text { order: 1; }
.img-feature-photo img { width: 100%; border-radius: 18px; object-fit: cover; aspect-ratio: 4/3; }
.img-feature-text { display: flex; flex-direction: column; gap: 16px; }
.img-feature-text h2 { margin: 0; }
.img-feature-text p { font-size: 15px; color: var(--muted); line-height: 1.75; }
@media(max-width:768px) { .img-feature-block { grid-template-columns: 1fr; } }

/* ── SERVICE PAGE HERO WITH BACKGROUND IMAGE ─────── */
.page-hero-img {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 420px;
  display: flex;
  align-items: center;
}
.page-hero-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10,24,40,.92) 0%, rgba(10,24,40,.78) 50%, rgba(10,24,40,.42) 100%);
  z-index: 0;
}
.page-hero-img > .container { position: relative; z-index: 1; }
.page-hero-img .hero-badge {
  color: rgba(255,255,255,.85) !important;
  background: rgba(255,255,255,.1) !important;
  border-color: rgba(255,255,255,.2) !important;
}
.page-hero-img h1 { color: #fff !important; }
.page-hero-img h1 em { color: var(--pale) !important; }
.page-hero-img .page-hero-sub { color: rgba(255,255,255,.72) !important; }
.page-hero-img .ht { color: rgba(255,255,255,.65) !important; }
.page-hero-img .ht-dot { background: var(--pale) !important; }
.page-hero-img .btn-outline {
  background: rgba(255,255,255,.1) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.3) !important;
}
.page-hero-img .btn-outline:hover { background: rgba(255,255,255,.18) !important; }

/* ── RÜCKRUF FLOATING WIDGET ─────────────────────── */
.rw-wrap {
  position: fixed;
  bottom: 88px;
  right: 24px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.rw-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 13px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(15,32,57,.38);
  transition: transform .2s, background .18s;
  white-space: nowrap;
}
.rw-btn:hover { transform: scale(1.05); background: var(--dark2); }
.rw-panel {
  background: #fff;
  border: 1px solid var(--bdr);
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
  width: 300px;
  padding: 20px;
  animation: rwSlideUp .22s ease;
}
@keyframes rwSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rw-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.rw-head span { font-size: 14px; font-weight: 700; color: var(--dark); }
.rw-close {
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: var(--muted); line-height: 1; padding: 0;
  transition: color .15s;
}
.rw-close:hover { color: var(--ink); }
.rw-field { margin-bottom: 10px; }
.rw-field label { display: block; font-size: 11.5px; font-weight: 600; color: #374151; margin-bottom: 4px; }
.rw-field input,
.rw-field select {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid var(--bdr); border-radius: 8px;
  font-family: 'Poppins', sans-serif; font-size: 13px; color: var(--ink);
  background: var(--bg); transition: border-color .18s;
  appearance: none; -webkit-appearance: none;
}
.rw-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239CA3AF' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.rw-field input:focus,
.rw-field select:focus { outline: none; border-color: var(--dark); background: var(--bg2); }
.rw-submit {
  width: 100%; padding: 11px;
  background: var(--green); color: #fff; border: none; border-radius: 10px;
  font-family: 'Poppins', sans-serif; font-size: 13.5px; font-weight: 600;
  cursor: pointer; margin-top: 4px; transition: background .18s;
}
.rw-submit:hover { background: var(--green2); }
.rw-submit:disabled { opacity: .6; cursor: not-allowed; }
.rw-note { font-size: 11px; color: var(--muted); text-align: center; margin-top: 8px; line-height: 1.5; }
.rw-ok { text-align: center; padding: 14px 0; }
.rw-ok-ic {
  display: inline-flex; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(76,110,86,.1); align-items: center; justify-content: center;
  font-size: 22px; color: var(--green); margin-bottom: 10px;
}
.rw-ok b { display: block; font-size: 15px; color: var(--dark); margin-bottom: 4px; }
.rw-ok p { font-size: 13px; color: var(--muted); }
@media (max-width: 480px) {
  .rw-wrap { bottom: 80px; right: 16px; }
  .rw-panel { width: calc(100vw - 32px); }
}
