/* ============================================================
   Etzler GmbH – Sanitär & Heizung | Hauptstylesheet
   Farbschema: Blau #1a5fa8, Akzent #e84c1d, Basis Weiß
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Roboto+Condensed:wght@700&display=swap');

:root {
  --primary:       #1a5fa8;
  --primary-dark:  #134a85;
  --primary-light: #e8f0fb;
  --accent:        #e84c1d;
  --accent-dark:   #c43a10;
  --text-dark:     #1e1e1e;
  --text-mid:      #4a4a4a;
  --text-light:    #777;
  --bg-gray:       #f5f6f8;
  --border:        #dde2ea;
  --white:         #ffffff;
  --header-h:      80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 {
  font-family: 'Roboto Condensed', sans-serif;
  line-height: 1.2;
  color: var(--text-dark);
}

/* ── Utilities ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  border: none;
  text-align: center;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }
.btn-secondary { background: var(--primary); color: var(--white); }
.btn-secondary:hover { background: var(--primary-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }

.section { padding: 72px 0; }
.section-gray { background: var(--bg-gray); }
.section-blue { background: var(--primary); color: var(--white); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.section-header .eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-header p { color: var(--text-mid); max-width: 600px; margin: 0 auto; }

/* ── TOPBAR ── */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 7px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: rgba(255,255,255,0.85); }
.topbar a:hover { color: var(--white); }
.topbar-items { display: flex; gap: 20px; align-items: center; }
.topbar-items span { display: flex; align-items: center; gap: 6px; }

/* ── HEADER ── */
.site-header {
  background: var(--white);
  height: var(--header-h);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 900;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 52px; height: 52px;
  background: var(--primary);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -1px;
}
.logo-img { 
	height: 64px; 
	width: auto; 
	border-radius: 4px;
	 }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: 18px; font-family: 'Roboto Condensed', sans-serif; color: var(--primary); }
.logo-text span { font-size: 12px; color: var(--text-light); }

/* NAV */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a, .nav-dropdown > a {
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: 3px;
  white-space: nowrap;
  display: flex; align-items: center; gap: 4px;
}
.main-nav > a:hover { color: var(--primary); background: var(--primary-light); }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 8px;
  background: transparent;
  min-width: 220px;
  display: none;
  z-index: 1000;
}
.nav-dropdown-menu::before {
  content: '';
  display: block;
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  border-radius: 4px;
  border-top: 3px solid var(--accent);
  z-index: -1;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover { background: var(--primary-light); color: var(--primary); }
.nav-cta { margin-left: 12px; }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.mobile-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 600px; height: 600px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-text { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(30px, 4vw, 52px);
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.1;
}
.hero h1 span { color: #ffd04a; }
.hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image {
  position: relative; z-index: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.hero-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Placeholder for missing images */
.img-placeholder {
  background: linear-gradient(135deg, #b8cde8 0%, #8aafd4 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

/* ── USP BAR ── */
.usp-bar { background: var(--accent); padding: 20px 0; }
.usp-bar .container { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.usp-item { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 700; font-size: 14px; }
.usp-item svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ── LEISTUNGEN CARDS ── */
.leistungen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.leistung-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.leistung-card:hover { box-shadow: 0 8px 32px rgba(26,95,168,0.12); transform: translateY(-3px); }
.leistung-card-img { height: 200px; overflow: hidden; }
.leistung-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.leistung-card:hover .leistung-card-img img { transform: scale(1.04); }
.leistung-card-img .img-placeholder { height: 100%; }
.leistung-card-body { padding: 24px; }
.leistung-card-icon {
  width: 44px; height: 44px;
  background: var(--primary-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.leistung-card-icon svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 2; }
.leistung-card-body h3 { font-size: 20px; margin-bottom: 8px; color: var(--primary-dark); }
.leistung-card-body p { color: var(--text-mid); font-size: 14px; margin-bottom: 16px; }
.leistung-card-body a { font-size: 14px; font-weight: 700; color: var(--accent); display: flex; align-items: center; gap: 4px; }
.leistung-card-body a:hover { color: var(--accent-dark); }

/* ── TOOLS (Konfiguratoren) ── */
.tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tool-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: box-shadow 0.2s;
}
.tool-card:hover { box-shadow: 0 6px 24px rgba(26,95,168,0.1); }
.tool-icon {
  width: 56px; height: 56px; min-width: 56px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.tool-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--white); stroke-width: 2; }
.tool-icon.blue { background: var(--primary); }
.tool-icon.orange { background: var(--accent); }
.tool-icon.green { background: #2ea05a; }
.tool-icon.navy { background: #0e3d6e; }
.tool-content h3 { font-size: 19px; margin-bottom: 6px; }
.tool-content p { color: var(--text-mid); font-size: 14px; margin-bottom: 14px; }

/* ── VERTRAUEN ── */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.trust-card {
  text-align: center;
  padding: 32px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
}
.trust-number { font-size: 42px; font-family: 'Roboto Condensed', sans-serif; color: var(--primary); font-weight: 700; line-height: 1; margin-bottom: 8px; }
.trust-label { font-size: 14px; color: var(--text-mid); font-weight: 600; }

/* ── ZERTIFIKATE ── */
.cert-bar { background: var(--primary-dark); padding: 32px 0; }
.cert-bar .container { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.cert-item { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.85); }
.cert-badge {
  width: 50px; height: 50px;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: #ffd04a;
}
.cert-item span { font-size: 14px; font-weight: 600; max-width: 160px; }

/* ── CTA BAND ── */
.cta-band { background: var(--accent); padding: 48px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(22px, 3vw, 32px); color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.85); margin-top: 6px; }

/* ── FOOTER ── */
.site-footer { background: #1a1f2e; color: rgba(255,255,255,0.75); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo-mark { background: rgba(255,255,255,0.1); }
.footer-brand .logo-text strong { color: var(--white); }
.footer-brand .logo-text span { color: rgba(255,255,255,0.5); }
.footer-desc { font-size: 14px; margin-top: 16px; color: rgba(255,255,255,0.6); line-height: 1.7; }
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.65); }
.footer-col ul li a:hover { color: var(--white); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 14px; }
.footer-contact-item svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2; min-width: 16px; margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom-links { display: flex; gap: 20px; }

/* ── INNER PAGE HERO ── */
.page-hero {
  background: var(--primary);
  padding: 48px 0;
  color: var(--white);
}
.page-hero h1 { font-size: clamp(24px, 3vw, 40px); color: var(--white); }
.page-hero .breadcrumb { font-size: 14px; color: rgba(255,255,255,0.7); margin-top: 8px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.7); }

/* ── FORMS ── */
.form-wrapper { max-width: 720px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  color: var(--text-dark);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,95,168,0.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13px; color: var(--text-light); margin-top: 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .section { padding: 48px 0; }
  .main-nav { display: none; flex-direction: column; align-items: flex-start; }
  .main-nav.open { display: flex; }
  .mobile-toggle { display: flex; }
  .nav-cta { display: none; }
  .usp-bar .container { gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band .container { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
}
