/* Heatotec – eigene Smartphone-Ansicht (bis 767 px) */
@media (max-width:767px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  body{font-size:15px}
  .container{width:calc(100% - 32px);max-width:none;margin:0 auto}

  /* Eigener kompakter Smartphone-Header */
  .header{height:62px;position:sticky;top:0;background:#fff;box-shadow:0 2px 14px rgba(10,35,55,.10)}
  .nav{height:62px;min-height:62px;gap:12px}
  .brand{min-width:0;flex:1;display:flex;align-items:center}
  .brand-logo{width:150px;height:auto;max-height:none;display:block;object-fit:contain}
  .menu-btn{display:flex;flex:0 0 42px;width:42px;height:42px;border:1px solid #dfe7eb;background:#f7f9fa;border-radius:8px;font-size:22px;color:#102b43}
  .menu{display:none;position:absolute;top:62px;left:0;right:0;background:#fff;padding:10px 16px 16px;box-shadow:0 12px 28px rgba(10,35,55,.14);flex-direction:column;align-items:stretch;gap:2px;border-top:1px solid #edf0f2}
  .menu.open{display:flex}
  .menu a{padding:13px 12px;font-size:15px;border-radius:7px}
  .menu .nav-cta{text-align:center;margin-top:7px;padding:13px 16px}

  /* Hero komplett neu für Smartphone */
  .hero{min-height:0;height:auto;background-position:58% center}
  .hero-overlay{background:linear-gradient(180deg,rgba(5,28,45,.78) 0%,rgba(5,28,45,.86) 100%)}
  .hero-content{padding:82px 0 58px;max-width:none}
  .eyebrow{font-size:10px;letter-spacing:1.5px;margin-bottom:12px}
  .hero h1{font-size:35px;line-height:1.08;letter-spacing:-1.1px;margin-bottom:18px;max-width:100%}
  .hero p{font-size:15.5px;line-height:1.6;margin-bottom:24px;max-width:100%}
  .actions{display:grid;grid-template-columns:1fr;gap:10px}
  .actions .btn{width:100%;min-height:48px;padding:13px 16px}

  /* Vorteile als 2x2 kompakte Karten */
  .benefits{background:#f7f9fa}
  .benefit-grid{grid-template-columns:1fr 1fr;gap:0;padding:0}
  .benefit-grid>div{min-height:86px;padding:14px 5px;border-bottom:1px solid #e7edf0;align-items:flex-start}
  .benefit-grid>div:nth-child(odd){border-right:1px solid #e7edf0;padding-right:10px}
  .benefit-grid>div:nth-child(even){padding-left:10px}
  .benefit-grid span{width:30px;height:30px;min-width:30px;font-size:12px}
  .benefit-grid strong{font-size:12px;line-height:1.25}
  .benefit-grid small{font-size:10px;line-height:1.35;margin-top:3px}

  /* Sections */
  .section{padding:54px 0}
  .section-kicker{font-size:10px;letter-spacing:1.5px;margin-bottom:10px}
  .section h2{font-size:29px;line-height:1.13;letter-spacing:-.7px;margin-bottom:12px}
  .lead{font-size:15px;line-height:1.6;margin-bottom:26px}

  /* Leistungsbereich: echte 1-Spalten-Mobile-Karten */
  .cards{grid-template-columns:1fr;gap:16px}
  .card{border-radius:10px;box-shadow:0 6px 20px rgba(17,44,64,.08)}
  .card-img{height:190px}
  .card-body{padding:18px}
  .card h3{font-size:19px}
  .card p{font-size:14px;line-height:1.55;min-height:0;margin-bottom:14px}
  .card a{font-size:13px}

  /* Vorteile / Bild */
  .split-grid{grid-template-columns:1fr;gap:28px}
  .split-grid p{font-size:15px;line-height:1.65;margin-bottom:22px}
  .split-grid .btn{width:100%}
  .house-image{min-height:320px;border-radius:10px}
  .checklist{left:10px;right:10px;bottom:10px;padding:12px 14px;border-radius:7px}
  .checklist div{margin:6px 0;font-size:11px}
  .checklist span{margin-left:5px}

  /* Referenzen: saubere 1-Spalten-Galerie */
  .work-gallery{grid-template-columns:1fr;grid-auto-rows:230px;gap:12px;margin-top:24px}
  .work-item,.work-item-wide{grid-column:span 1;min-height:230px;border-radius:9px}
  .work-item span{left:12px;right:12px;bottom:11px;font-size:12px}

  .partners{padding:48px 0}
  .partner-row{justify-content:flex-start;gap:10px 18px;font-size:15px;margin-top:20px}
  .partner-row span{white-space:nowrap}

  /* Kontakt */
  .contact{padding:52px 0}
  .contact-grid{grid-template-columns:1fr;gap:26px}
  .contact h2{font-size:29px;line-height:1.12}
  .contact p{font-size:15px;line-height:1.6}
  .contact-form{padding:17px;border-radius:9px;gap:14px}
  .form-row{grid-template-columns:1fr;gap:14px}
  .contact-form input:not([type="checkbox"]),.contact-form select,.contact-form textarea{padding:12px 13px;font-size:16px;min-height:48px}
  .contact-form textarea{min-height:135px}
  .contact-form .btn{width:100%;min-height:50px}
  .contact-form .consent{font-size:11px;line-height:1.45}

  /* Footer */
  .footer-grid{grid-template-columns:1fr;gap:28px;padding:42px 0}
  .footer-brand .brand-logo{width:150px}
  .footer-grid p{font-size:13px;line-height:1.55}
  .copyright{padding:16px 12px;font-size:10px;line-height:1.5}

  /* Alle Leistungs-Unterseiten */
  .service-hero{min-height:0;height:auto;background-position:center}
  .service-hero-overlay{background:linear-gradient(180deg,rgba(5,29,46,.78),rgba(5,29,46,.91))}
  .service-hero-content{padding:76px 0 55px;max-width:none}
  .service-hero h1{font-size:35px;line-height:1.08;letter-spacing:-1px;margin-bottom:17px}
  .service-hero p{font-size:15.5px;line-height:1.6;margin-bottom:24px}
  .feature-grid{grid-template-columns:1fr;gap:13px;margin-top:24px}
  .feature-grid article{padding:18px;border-radius:9px}
  .feature-grid h3{font-size:17px;margin:8px 0 6px}
  .feature-grid p{font-size:13px;line-height:1.55}
  .service-photo,.heating-photo,.energy-photo,.maintenance-photo{min-height:280px;border-radius:9px}
  .steps{gap:15px}
  .steps>div{gap:12px}
  .steps b{width:34px;min-width:34px;height:34px}
  .steps p{font-size:13px;line-height:1.55}
  .info-box{padding:20px;border-radius:7px}
  .info-box strong{font-size:18px}
  .mini-contact{padding:22px;border-radius:8px}

  /* Rechtliche Seiten */
  .legal-hero{padding:55px 0 48px}
  .legal-hero h1{font-size:34px;line-height:1.08;letter-spacing:-.8px}
  .legal-hero p{font-size:15px;line-height:1.6}
  .legal-content h2{font-size:22px;margin-top:32px}
  .legal-content p{font-size:14px;line-height:1.7}
}

/* Feinabstimmung Smartphone: Original-Logo + kompakter Kontaktbereich */
@media (max-width:767px){
  .header .nav{gap:8px}
  .header .brand{flex:0 1 auto;min-width:0;max-width:calc(100% - 50px)}
  .header .brand-logo{width:132px;height:auto;max-width:100%;max-height:none;object-fit:contain}
  .header .menu-btn{flex:0 0 40px;width:40px;height:40px}

  /* Kontaktbereich bewusst kompakter auf kleinen Displays */
  .contact{padding:42px 0}
  .contact-grid{gap:20px}
  .contact .section-kicker{font-size:9px;letter-spacing:1.2px;margin-bottom:8px;line-height:1.35}
  .contact h2{font-size:25px;line-height:1.15;letter-spacing:-.4px;margin-bottom:10px}
  .contact p{font-size:14px;line-height:1.5;margin:0}
  .contact-form{padding:15px;gap:11px}
  .contact-form label{font-size:12px;gap:5px}
  .contact-form label span{font-size:11px}
  .contact-form input:not([type="checkbox"]),
  .contact-form select,
  .contact-form textarea{font-size:15px;padding:11px 12px;min-height:44px}
  .contact-form textarea{min-height:115px}
  .contact-form .consent{font-size:10.5px;line-height:1.4;gap:8px}
  .contact-form .btn{min-height:46px;padding:11px 14px;font-size:14px}
  .contact-form .form-note{font-size:9.5px;line-height:1.4}
}
