/* 
  CUSTOM CSS – Sanitär Notdienst Expert24
  Eigenständig geschrieben: modernes Layout, klare Typo, bessere CTA.
*/

@font-face {
  font-family: 'Open Sans';
  src: url('/fonts/open-sans-v44-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('/fonts/open-sans-v44-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root{
  --primary-color: #0f2f4a;
  --secondary-color: #d13a2f;
  --accent-color: #1f6aa5;
  --light-bg: #f6f8fb;
  --dark-text: #1b1f24;
  --light-text: #ffffff;

  --font-heading: 'Open Sans', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;

  --radius: 14px;
  --shadow-sm: 0 6px 18px rgba(0,0,0,0.06);
  --shadow-md: 0 14px 30px rgba(0,0,0,0.10);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }

body{
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--dark-text);
  background:#fff;
  padding-top: 115px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,h2,h3,h4,h5{
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.18;
  padding: 10px 0;
}
h1{ font-size: clamp(1.5rem, 2.2vw, 2.2rem); }
h2{ font-size: clamp(1.4rem, 2vw, 2rem); }
p{ font-size: 1rem; color: #1f2933; }

strong,
b{
  font-weight: 700;
}

em,
i{
  font-style: normal;
}

a{ color: var(--accent-color); text-decoration:none; transition: color .2s ease; }
a:hover{ color: #004c80; }

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

.container{
  width:100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section{ padding: 64px 0; }

.section-title{
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  text-align:center;
  margin-bottom: 10px;
  display:inline-block;
  padding-bottom: 8px;
  border-bottom: 2px dotted #004c80;
  color: var(--accent-color);
}
.section-subtitle{
  font-size: 1.05rem;
  text-align:center;
  max-width: 720px;
  margin: 0 auto 36px auto;
  color:#4b5563;
  font-style: normal;
}

/* Cookie */
#cookie-banner{
  position: fixed;
  bottom:0; left:0;
  width:100%;
  background:#111827;
  color:#fff;
  padding: 18px;
  display:none;
  z-index: 9999;
  box-shadow: 0 -2px 12px rgba(0,0,0,.35);
}
.cookie-container{
  max-width:1200px;
  margin:auto;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}
.cookie-text{ font-size: 14px; line-height: 1.5; flex: 1 1 600px; color:#e5e7eb; }
.cookie-text a{ color:#93c5fd; text-decoration: underline; }
.cookie-actions button{
  background: var(--accent-color);
  border:none;
  color:#fff;
  padding: 10px 16px;
  font-size:14px;
  font-weight: 700;
  cursor:pointer;
  border-radius: 10px;
}
.cookie-actions button:hover{ filter: brightness(1.05); }

/* Header */
.main-header-wrapper{
  position: fixed;
  top:0; left:0;
  width:100%;
  z-index:1000;
  background: var(--primary-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.emergency-bar{
  background: #004c80;
  color: var(--light-text);
  text-align:center;
  padding: 9px;
  font-size: 1rem;
  font-weight: 700;
}
.emergency-bar a{ color:#fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.mini-badges{ opacity:.92; margin-left:10px; font-weight: 700; }

.main-header{
  padding: 12px 0;
  background:#fff;
}
.header-container{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 14px;
}

.main-logo{ display:flex; align-items:center; }
.main-logo img{ max-height: 48px; margin-right: 12px; }
.site-title{
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  display:none;
}

.main-nav{ display:none; }
.main-nav ul{ list-style:none; display:flex; gap: 6px; }
.main-nav ul li a{
  color:#111827;
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 12px;
  border-radius: 12px;
}
.main-nav ul li a:hover{
  background: rgba(31,106,165,0.10);
  color: var(--primary-color);
}

.header-cta{ display:none; }
.menu-toggle{
  background:none;
  border:none;
  color:#111827;
  cursor:pointer;
  padding: 6px;
  border-radius: 10px;
}
.menu-toggle:focus-visible{
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

.mobile-nav{
  display:none;
  background: var(--primary-color);
  max-height: 0;
  overflow:hidden;
  transition: max-height .35s ease-in-out;
}
.mobile-nav.is-open{ max-height: 420px; display:block; }
.mobile-nav ul{ list-style:none; }
.mobile-nav ul li{ border-bottom: 1px solid rgba(255,255,255,0.12); }
.mobile-nav ul li a{
  color:#fff;
  font-weight: 700;
  text-transform: uppercase;
  display:block;
  padding: 15px 20px;
}
.mobile-nav ul li a:hover{ background: rgba(255,255,255,0.08); }

/* Buttons */
.btn{
  display:inline-block;
  padding: 12px 22px;
  background: #c12e1d;
  color:#fff;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 999px;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover{ transform: translateY(-1px); filter: brightness(0.95); }
.btn-lg{ padding: 14px 26px; }
.btn-ghost{
  background: transparent;
  color: var(--primary-color);
  border: 2px solid rgba(15,47,74,0.18);
}
.btn-ghost:hover{
  border-color: rgba(15,47,74,0.35);
  color: var(--primary-color);
  filter:none;
}

.phone-link{
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* HERO */
.hero-split{
  background:
    radial-gradient(1000px 450px at 10% 10%, rgba(31,106,165,0.18), transparent 60%),
    radial-gradient(900px 420px at 90% 20%, rgba(209,58,47,0.14), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  padding: 56px 0 38px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: start;
}
.hero-kicker{
  display:inline-block;
  font-weight: 700;
  color: var(--primary-color);
  background: rgba(31,106,165,0.12);
  padding: 8px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.hero-lead{ font-size: 1.05rem; color:#374151; max-width: 60ch; }
.hero-actions{ display:flex; gap: 12px; flex-wrap:wrap; margin-top: 16px; }

.trust-row{
  list-style:none;
  display:flex;
  gap: 14px;
  flex-wrap:wrap;
  margin-top: 18px;
  color:#1f2937;
  font-weight: 700;
}

.hero-card{
  background:#fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.06);
  overflow:hidden;
}
.hero-card-inner{ padding: 18px 18px 16px; }
.muted{ color:#6b7280; }
.contact-box{
  margin: 14px 0 10px;
  background: var(--light-bg);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 12px;
}
.contact-line{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.12);
}
.contact-line:last-child{ border-bottom: none; }
.contact-line .label{ color:#6b7280; font-weight: 700; }
.mini-note{
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(209,58,47,0.08);
  border: 1px solid rgba(209,58,47,0.18);
}

/* Content sections */
.content-section{ background:#fff; }
.content-section.bg-light{ background: var(--light-bg); }

.service-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.service-card{
  background:#fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card img{ max-height: 600px; margin: 0 auto 12px auto; }
.service-card h3{ font-size: 1.25rem; }
.service-card--accent{
  border-color: rgba(31,106,165,0.25);
  background: linear-gradient(180deg, rgba(31,106,165,0.08), #ffffff 55%);
}
.checklist{ list-style:none; margin-top: 10px; }
.checklist li{
  padding-left: 26px;
  margin: 6px 0;
  position: relative;
  color:#374151;
}
.checklist li::before{
  content: "✓";
  position:absolute;
  left: 8px;
  top: 0;
  color: var(--accent-color);
  font-weight: 700;
}

/* Steps */
.steps{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 10px;
}
.step{
  background:#fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.step-badge{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 700;
  color:#fff;
  background: var(--accent-color);
  margin-bottom: 10px;
}
.callout{
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(15,47,74,0.06);
  border: 1px solid rgba(15,47,74,0.12);
}

/* Pricing */
.price-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.price-card{
  background:#fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

/* FAQ */
.faq-item{
  margin-bottom: 16px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow-sm);
}
.faq-question{
  background: var(--primary-color);
  color:#fff;
  padding: 14px 18px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor:pointer;
  display:flex;
  justify-content: space-between;
  align-items:center;
}
.faq-question::after{ content:'+'; font-size: 1.6rem; line-height: 1; }
.faq-question.active::after{ content:'-'; }
.faq-answer{
  padding: 0;
  max-height: 0;
  overflow:hidden;
  transition: max-height .28s ease, padding .28s ease;
  background:#fff;
}
.faq-answer.active{
  padding: 16px 18px;
  max-height: 520px;
}

/* Footer */
.main-footer{
  background: var(--primary-color);
  color:#fff;
  padding: 44px 0 18px;
}
.main-footer p{ color:#fff; }
.main-footer a{ color:#fff; text-decoration: underline; text-underline-offset: 3px; }

.footer-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.footer-widget h5{
  color:#e5e7eb;
  margin-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 700;
}
.footer-widget ul{ list-style:none; }
.footer-widget ul li{ margin-bottom: 8px; }

.footer-bottom{
  text-align:center;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: .95rem;
}
.footer-legal a{
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.footer-legal a:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 6px;
}

/* Mobile call bar */
@media (max-width: 1010px){
  .telefon_bottom{
    position: fixed;
    bottom:0;
    width:100%;
    height: 60px;
    background: #004c80;
    z-index: 10;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .telefon_link{
    color:#fff;
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
  }
  .telefon_link:hover,
  .telefon_link:focus{
    color:#ffecec;
    outline: 2px solid #fff;
    outline-offset: 4px;
  }
}

/* Responsive header */
@media (max-width: 992px){
  .main-nav{ display:none; }
  .header-cta{ display:none; }
  .mobile-nav{ display:block; }
  .hero-grid{ grid-template-columns: 1fr; }
}

@media (min-width: 992px){
  body{ padding-top: 120px; }
  .site-title{ display:block; }
  .main-nav{ display:block; }
  .header-cta{ display:block; }
  .menu-toggle{ display:none; }
  .mobile-nav{ display:none; }
}

.hero-with-image .hero-media{
  display: grid;
  gap: 14px;
}
.hero-image{
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.06);
}
.hero-image img{
  width: 100%;
  height: 240px;
  object-fit: cover;
}
@media (min-width: 992px){
  .hero-image img{ height: 260px; }
}
.img-inline{
  float:inline-start;
  margin-inline-end:16px;
  margin-bottom:8px;
  width:110px;
  max-width:30%;
  height:auto;
}
.logo-sanitaer {
  max-width: 320px;
  width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
}