/* ===================================================================
   BESENFEIN — Gebäudereinigung & Service
   Stylesheet
=================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Allura&family=Inter:wght@300;400;500;600;700&display=swap');

:root{
  --navy: #13273F;
  --navy-deep: #0B1A2C;
  --navy-soft: rgba(19,39,63,0.06);
  --gold: #C6A15A;
  --gold-soft: #E4CE9E;
  --cream: #F6F1E7;
  --cream-alt: #FBF8F3;
  --paper: #FFFFFF;
  --ink: #1D2A3A;
  --ink-muted: #5C6B7C;
  --line: rgba(19,39,63,0.12);
  --shadow: 0 20px 45px -25px rgba(11,26,44,0.35);
  --radius: 4px;
  --container: 1180px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
/* Prevents CSS Grid/Flex items from forcing horizontal overflow via their
   content's intrinsic min-width (the classic "min-width:auto" grid bug) */
.split > *, .feature-grid > *, .service-grid > *, .why-grid > *, .cta-grid > *,
.footer-grid > *, .contact-layout > *, .form-row > *, .stat-row > *, .value-grid > * {
  min-width: 0;
}
body{
  overflow-x: hidden;
  width: 100%;
  margin:0;
  font-family:'Inter', sans-serif;
  color: var(--ink);
  background: var(--cream-alt);
  -webkit-font-smoothing: antialiased;
  font-weight:400;
}
img{ max-width:100%; display:block; }
iframe, video{ max-width: 100%; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; overflow-wrap: break-word; }
h1,h2,h3,h4{
  font-family:'Playfair Display', serif;
  margin:0;
  color: var(--navy);
  font-weight:600;
  letter-spacing:0.2px;
  overflow-wrap: break-word;
}
p{ margin:0; line-height:1.7; color: var(--ink-muted); overflow-wrap: break-word; }
.container{ max-width: var(--container); width: 100%; margin:0 auto; padding:0 32px; }

/* Belt-and-suspenders: nothing in the page is ever allowed to force the
   document wider than the viewport, regardless of its own width rules. */
.site-header, .hero, .page-hero, .section, .why-band, .cta-strip, .site-footer,
.hero-inner, .service-card, .contact-card, .split, .split-copy {
  max-width: 100%;
}

.script{
  font-family:'Allura', cursive;
  font-weight:400;
  line-height:1;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:0.78rem;
  letter-spacing:3px;
  text-transform:uppercase;
  color: var(--gold);
  font-weight:600;
  margin-bottom:14px;
}
.eyebrow::before, .eyebrow.center::after{
  content:"";
  width:26px; height:1px;
  background: var(--gold);
  display:inline-block;
}
.eyebrow.center{ justify-content:center; width:100%; }
.section-head{ text-align:center; max-width:640px; margin:0 auto 56px; }
.section-head p{ margin-top:14px; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 30px;
  border-radius: 2px;
  font-size:0.92rem;
  font-weight:600;
  letter-spacing:0.3px;
  cursor:pointer;
  border:1px solid transparent;
  transition: all .25s ease;
  white-space:nowrap;
}
.btn-gold{
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: var(--navy-deep);
}
.btn-gold:hover{ filter:brightness(1.06); transform:translateY(-1px); box-shadow: var(--shadow); }
.btn-outline{
  border-color: rgba(255,255,255,0.55);
  color:#fff;
}
.btn-outline:hover{ background:rgba(255,255,255,0.1); }
.btn-navy{
  background: var(--navy);
  color:#fff;
}
.btn-navy:hover{ background: var(--navy-deep); }

/* ---------------- Header ---------------- */
.site-header{
  position: sticky; top:0; z-index:100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  height:84px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand-mark{ width:46px; height:auto; display:block; }
.brand-name{
  font-family:'Playfair Display', serif;
  color:#fff;
  font-size:1.05rem;
  letter-spacing:3px;
  font-weight:600;
}
.main-nav{ display:flex; align-items:center; gap:40px; }
.main-nav a{
  color: rgba(255,255,255,0.82);
  font-size:0.88rem;
  letter-spacing:0.4px;
  font-weight:500;
  position:relative;
  padding:6px 0;
  transition:color .2s ease;
}
.main-nav a:hover, .main-nav a.active{ color: var(--gold); }
.header-actions{ display:flex; align-items:center; gap:18px; }
.phone-pill{
  display:flex; align-items:center; gap:8px;
  color:#fff; font-size:0.85rem; font-weight:600;
  letter-spacing:0.3px; white-space:nowrap;
  padding:8px 14px; border:1px solid rgba(255,255,255,0.25); border-radius:20px;
  transition: border-color .2s ease, color .2s ease;
}
.phone-pill svg{ width:16px; height:16px; color:var(--gold-soft); flex-shrink:0; }
.phone-pill:hover{ border-color:var(--gold-soft); color:var(--gold-soft); }
.nav-toggle{
  display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:6px;
}
.nav-toggle span{ width:24px; height:2px; background:#fff; display:block; }

/* ---------------- Hero ---------------- */
.hero{
  position:relative;
  background: var(--navy-deep);
  overflow:hidden;
  color:#fff;
  padding: 90px 0 130px;
}
.hero-bg{
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  opacity:0.55;
}
.hero-bg::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(11,26,44,0.35) 0%, rgba(11,26,44,0.55) 55%, var(--navy-deep) 100%);
}
.hero-inner{
  position:relative; z-index:2;
  text-align:center;
  max-width:720px;
  margin:0 auto;
}
.hero-logo{ width:min(420px, 78%); margin:0 auto 26px; }
.hero-script{
  font-size:2.6rem;
  color: var(--gold-soft);
  margin-top:6px;
}
.hero-divider{
  width:1px; height:40px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  margin: 22px auto;
}
.hero-cta{ margin-top:30px; display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }
.hero-curve{
  position:absolute; left:-10%; right:-10%; bottom:-2px; height:70px;
  background: var(--cream-alt);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* Page header (non-home hero, smaller) */
.page-hero{
  background: var(--navy-deep);
  color:#fff;
  padding:74px 0 64px;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.page-hero .eyebrow{ color:var(--gold-soft); }
.page-hero h1{ color:#fff; font-size:2.4rem; }
.page-hero p{ color:rgba(255,255,255,0.72); max-width:560px; margin:16px auto 0; }

/* ---------------- Über uns / generic split ---------------- */
.section{ padding:96px 0; }
.section.tight{ padding:72px 0; }
.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:70px;
  align-items:center;
}
.split img{ border-radius: var(--radius); box-shadow: var(--shadow); }
.split-copy h2{ font-size:2rem; margin-bottom:18px; line-height:1.25; }
.split-copy p{ margin-bottom:14px; }

.feature-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:36px;
  margin-top:64px;
  padding-top:56px;
  border-top:1px solid var(--line);
}
.feature{ text-align:center; padding:0 10px; }
.feature-icon{
  width:52px; height:52px; margin:0 auto 18px;
  border:1px solid var(--gold-soft);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color: var(--gold);
}
.feature h4{
  font-size:0.85rem; letter-spacing:1px; text-transform:uppercase;
  margin-bottom:10px; font-family:'Inter',sans-serif; font-weight:700;
  color: var(--navy);
}
.feature p{ font-size:0.92rem; }

/* ---------------- Services ---------------- */
.section-alt{ background: var(--cream); }
.service-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:32px;
}
.service-card{
  background:#fff;
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 14px 34px -22px rgba(19,39,63,0.28);
  transition: transform .25s ease, box-shadow .25s ease;
  display:flex; flex-direction:column;
}
.service-card:hover{ transform:translateY(-6px); box-shadow: var(--shadow); }
.service-media{
  height:190px;
  background-size:cover; background-position:center;
  position:relative;
}
.service-media.tile{
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  display:flex; align-items:center; justify-content:center;
}
.service-media.tile svg{ width:56px; height:56px; color: var(--gold-soft); }
.service-body{ padding:26px 26px 28px; flex:1; display:flex; flex-direction:column; }
.service-body h3{ font-size:1.08rem; margin-bottom:10px; letter-spacing:0.2px; }
.service-body p{ font-size:0.92rem; flex:1; }
.service-link{
  margin-top:18px; font-size:0.82rem; font-weight:700; letter-spacing:0.5px;
  color: var(--gold); text-transform:uppercase; display:inline-flex; align-items:center; gap:8px;
}
.service-link svg{ width:14px; height:14px; }

/* ---------------- Why us (navy band) ---------------- */
.why-band{
  background: var(--navy);
  color:#fff;
  padding:92px 0;
}
.why-band .section-head h2{ color:#fff; }
.why-band .eyebrow{ color: var(--gold-soft); }
.why-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
}
.why-item{
  text-align:center; padding:0 30px;
  border-left:1px solid rgba(255,255,255,0.14);
}
.why-item:first-child{ border-left:none; }
.why-icon{
  width:50px; height:50px; margin:0 auto 20px; color: var(--gold-soft);
}
.why-item h4{
  color:#fff; font-size:0.86rem; letter-spacing:1px; text-transform:uppercase;
  font-family:'Inter',sans-serif; font-weight:700; margin-bottom:12px;
}
.why-item p{ color:rgba(255,255,255,0.68); font-size:0.9rem; }

/* ---------------- CTA / contact strip ---------------- */
.cta-strip{ padding:90px 0; }
.cta-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr;
  gap:60px;
  align-items:center;
}
.cta-grid h2{ font-size:1.9rem; margin:14px 0 26px; line-height:1.3; }
.contact-list{ display:flex; flex-direction:column; gap:16px; }
.contact-list li{ display:flex; align-items:center; gap:14px; font-size:0.98rem; color: var(--ink); }
.contact-list svg{ width:20px; height:20px; color: var(--gold); flex-shrink:0; }
.cta-visual{
  display:flex; align-items:center; justify-content:center; gap:26px;
}
.cta-visual img{ width:150px; height:auto; }

/* ---------------- Footer ---------------- */
.site-footer{ background: var(--navy-deep); color: rgba(255,255,255,0.7); padding-top:70px; }
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap:40px;
  padding-bottom:50px;
  border-bottom:1px solid rgba(255,255,255,0.1);
}
.footer-mark{ width:44px; height:auto; margin-bottom:14px; }
.footer-brand .brand-name{ color:#fff; }
.footer-brand p{ color:rgba(255,255,255,0.55); margin-top:16px; font-size:0.9rem; max-width:260px; }
.footer-col h5{
  color: var(--gold-soft); font-size:0.78rem; letter-spacing:2px; text-transform:uppercase;
  margin-bottom:20px; font-weight:700;
}
.footer-col ul{ display:flex; flex-direction:column; gap:12px; }
.footer-col a{ font-size:0.9rem; color:rgba(255,255,255,0.62); transition:color .2s ease; }
.footer-col a:hover{ color: var(--gold-soft); }
.footer-col li{ display:flex; align-items:center; gap:10px; font-size:0.9rem; color:rgba(255,255,255,0.62); }
.footer-col li a{ display:flex; align-items:center; gap:10px; color:rgba(255,255,255,0.62); }
.footer-col li a:hover{ color: var(--gold-soft); }
.contact-list a{ color: var(--ink); display:flex; align-items:center; gap:14px; }
.contact-list a:hover{ color: var(--gold); }
.info-row strong a{ color: var(--navy); }
.info-row strong a:hover{ color: var(--gold); }
.footer-col svg{ width:15px; height:15px; color: var(--gold); flex-shrink:0; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding:26px 0; font-size:0.82rem; color:rgba(255,255,255,0.45); flex-wrap:wrap; gap:10px;
}
.footer-bottom a{ color:rgba(255,255,255,0.55); }
.footer-bottom a:hover{ color:var(--gold-soft); }
.footer-legal{ display:flex; gap:20px; }

/* ---------------- Contact page ---------------- */
.contact-layout{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:60px;
  align-items:flex-start;
}
.contact-card{
  background:#fff; border-radius:var(--radius); padding:44px;
  box-shadow: var(--shadow);
}
.contact-card h3{ font-size:1.4rem; margin-bottom:8px; }
.contact-card > p{ margin-bottom:28px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-group{ margin-bottom:20px; display:flex; flex-direction:column; gap:8px; }
.form-group label{ font-size:0.82rem; font-weight:600; color: var(--navy); letter-spacing:0.3px; }
.form-group input, .form-group select, .form-group textarea{
  border:1px solid var(--line);
  border-radius:2px;
  padding:13px 14px;
  font-family:'Inter',sans-serif;
  font-size:0.95rem;
  background: var(--cream-alt);
  color: var(--ink);
}
.form-group textarea{ resize:vertical; min-height:120px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus{
  outline:2px solid var(--gold-soft); outline-offset:1px; background:#fff;
}
.info-block{ margin-bottom:36px; }
.info-block h4{
  font-size:0.8rem; letter-spacing:2px; text-transform:uppercase; color: var(--gold);
  margin-bottom:18px; font-weight:700;
}
.info-row{ display:flex; align-items:flex-start; gap:14px; margin-bottom:16px; }
.info-row svg{ width:20px; height:20px; color: var(--navy); flex-shrink:0; margin-top:2px; }
.info-row strong{ display:block; color: var(--navy); font-size:0.95rem; }
.info-row span{ font-size:0.88rem; color: var(--ink-muted); }
.hours-table{ width:100%; border-collapse:collapse; }
.hours-table td{ padding:8px 0; font-size:0.9rem; color: var(--ink-muted); border-bottom:1px dashed var(--line); }
.hours-table td:last-child{ text-align:right; color: var(--navy); font-weight:600; }
.map-embed{
  border-radius:var(--radius); overflow:hidden; box-shadow: var(--shadow); margin-top:8px;
}
.map-embed iframe{ width:100%; height:260px; border:0; display:block; }

/* ---------------- Über uns extras ---------------- */
.stat-row{
  display:grid; grid-template-columns:repeat(4,1fr); gap:30px;
  margin-top:56px;
}
.stat{ text-align:center; }
.stat .num{ font-family:'Playfair Display',serif; font-size:2.4rem; color: var(--navy); }
.stat .label{ font-size:0.82rem; letter-spacing:1px; text-transform:uppercase; color: var(--ink-muted); margin-top:6px; }

.timeline{ margin-top:20px; }
.timeline-item{
  display:grid; grid-template-columns:110px 1fr; gap:26px;
  padding:26px 0; border-top:1px solid var(--line);
}
.timeline-item:last-child{ border-bottom:1px solid var(--line); }
.timeline-item .year{ font-family:'Playfair Display',serif; color: var(--gold); font-size:1.2rem; }
.timeline-item h4{ font-size:1.02rem; margin-bottom:6px; }
.timeline-item p{ font-size:0.92rem; }

.value-grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:26px; margin-top:20px;
}
.value-card{
  background:#fff; border-radius:var(--radius); padding:30px; box-shadow:0 14px 34px -24px rgba(19,39,63,0.3);
}
.value-card h4{ font-size:1rem; margin-bottom:10px; }
.value-card p{ font-size:0.92rem; }

/* ---------------- WhatsApp floating button ---------------- */
.whatsapp-float{
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 12px 28px -8px rgba(0,0,0,0.45);
  z-index: 200;
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover{
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 34px -8px rgba(0,0,0,0.5);
}
.whatsapp-float svg{ width:32px; height:32px; }
.whatsapp-float .wa-pulse{
  position:absolute; inset:0; border-radius:50%;
  background:#25D366; opacity:0.55;
  animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse{
  0%{ transform:scale(1); opacity:0.5; }
  100%{ transform:scale(1.6); opacity:0; }
}
@media (max-width:760px){
  .whatsapp-float{ right:18px; bottom:18px; width:54px; height:54px; }
  .whatsapp-float svg{ width:28px; height:28px; }
}

/* Responsive */
@media (max-width: 980px){
  .split, .cta-grid, .contact-layout{ grid-template-columns:1fr; }
  .feature-grid, .why-grid{ grid-template-columns:repeat(2,1fr); }
  .why-item{ border-left:none; margin-bottom:30px; }
  .service-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .stat-row{ grid-template-columns:repeat(2,1fr); }
  .value-grid{ grid-template-columns:1fr; }
}
/* Switch to the off-canvas mobile nav earlier so tablets never get a
   squeezed desktop nav bar between ~761px and ~900px */
@media (max-width: 900px){
  .main-nav{
    position:fixed; inset:84px 0 0 0; background: var(--navy-deep);
    flex-direction:column; padding:36px 32px; gap:26px;
    transform:translateX(100%); transition:transform .3s ease; z-index:90;
  }
  .main-nav.open{ transform:translateX(0); }
  .nav-toggle{ display:flex; }
  .header-actions .btn-gold{ display:none; }
  .site-header .container{ position:relative; }
  .phone-pill{
    position:absolute;
    left:50%; top:50%;
    transform:translate(-50%,-50%);
  }
}
@media (max-width: 360px){
  .phone-pill{
    font-size: 0.76rem;
    padding: 6px 10px;
    gap: 6px;
  }
  .phone-pill svg{ width:14px; height:14px; }
}
@media (max-width: 760px){
  .hero-logo{ width:82%; }
  .service-grid, .feature-grid, .why-grid{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .section{ padding:64px 0; }
}

/* ---------------- Legal pages (Impressum / Datenschutz) ---------------- */
.legal-content{ max-width: 780px; margin: 0 auto; }
.legal-content h2{
  font-size: 1.4rem;
  margin-top: 44px;
  margin-bottom: 14px;
}
.legal-content h2:first-child{ margin-top: 0; }
.legal-content h3{
  font-size: 1.05rem;
  margin-top: 26px;
  margin-bottom: 10px;
  color: var(--navy);
}
.legal-content p{ margin-bottom: 14px; }
.legal-content ul{ margin: 0 0 14px 0; padding-left: 22px; list-style: disc; }
.legal-content li{ margin-bottom: 6px; color: var(--ink-muted); line-height: 1.7; }
.legal-content a{ color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold-soft); }
.legal-content a:hover{ color: var(--gold); }
.legal-content strong{ color: var(--navy); }
.legal-note{
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 28px 0;
  border-radius: 2px;
}
