/* =====================================================================
   JUNKERS KUNDENDIENST - "Clean & Bright" redesign overrides
   Recolors / restyles the existing markup without changing content.
   Loaded last so these rules win over inline styles and base CSS.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --navy: #1d3a5f;
  --navy-light: #3a6ea5;
  --navy-deep: #0f2138;
  --bg-light: #f4f7fb;
  --text-dark: #1f2937;
  --text-muted: #5b6b7c;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(29,58,95,0.08);
  --shadow-lg: 0 12px 32px rgba(29,58,95,0.16);
}

/* ---------- Base typography ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

p, li, .lead {
  line-height: 1.7;
}

a:not(.btn):not(.nav-link) {
  color: var(--navy);
}
a:not(.btn):not(.nav-link):hover {
  color: var(--navy-light);
}

img.img-fluid {
  border-radius: 12px;
}

/* ---------- Page backgrounds: old brand-blue full-bleed -> light ---------- */
[style*="background-color: rgb(57,111,168)"],
[style*="background-color: rgb(10,79,143)"],
[style*="background-color: rgb(14,78,140)"],
[style*="background-color: rgb(34,44,129)"],
[style*="background-color: rgb(5,78,160)"] {
  background-color: var(--bg-light) !important;
}

/* ---------- Old brand-blue text -> navy ---------- */
[style*="color: rgb(57,111,168)"] {
  color: var(--navy) !important;
}

/* ---------- White text that relied on the old blue page background -> dark ---------- */
.text-white,
[style*="color: rgb(255,255,255)"] {
  color: var(--text-dark) !important;
}

/* .row-image-txt default white headings/paragraphs (set via CSS, not inline) -> dark */
.row-image-txt h1,
.row-image-txt h2,
.row-image-txt h3,
.row-image-txt p {
  color: var(--text-dark) !important;
}

/* ---------- Self-contained accent bands keep their white text ---------- */
[style*="background-color: #396fa8"][style*="color: rgb(255,255,255)"] {
  color: #ffffff !important;
}
[style*="background-color: #396fa8"] .text-white,
[style*="background-color: #396fa8"] [style*="color: rgb(255,255,255)"],
.highlight-blue .text-white,
.highlight-blue [style*="color: rgb(255,255,255)"] {
  color: #ffffff !important;
}

/* Recolor the accent band backgrounds themselves */
[style*="background-color: #396fa8"] {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%) !important;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.highlight-blue {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%) !important;
  border-radius: var(--radius);
  padding: 30px 0;
}
.highlight-blue,
.highlight-blue p,
.highlight-blue h1,
.highlight-blue h2,
.highlight-blue h3,
.highlight-blue h4,
.highlight-blue h5,
.highlight-blue h6,
.highlight-blue strong {
  color: #ffffff;
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: 50px !important;
  padding: 10px 28px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px;
  border: none !important;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary,
.btn-dark {
  background: #ffffff !important;
  color: var(--navy) !important;
}
.btn-primary:hover,
.btn-dark:hover {
  background: var(--navy) !important;
  color: #ffffff !important;
}

.btn-send {
  background: var(--navy) !important;
  color: #ffffff !important;
}
.btn-send:hover {
  background: var(--navy-light) !important;
  color: #ffffff !important;
}

/* Large "call now" / "Termin vereinbaren" links styled as pill CTAs */
a[href^="tel:"][style*="font-size: 40px"],
a[href^="tel:"][style*="font-size: 50px"] {
  display: inline-block;
  background: var(--navy) !important;
  color: #ffffff !important;
  padding: 16px 40px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s ease, background 0.25s ease;
}
a[href^="tel:"][style*="font-size: 40px"]:hover,
a[href^="tel:"][style*="font-size: 50px"]:hover {
  transform: translateY(-3px);
  background: var(--navy-light) !important;
}

/* ---------- Navbar ---------- */
#nav, #VAILLANT {
  box-shadow: 0 2px 12px rgba(29,58,95,0.08) !important;
  padding: 6px 16px !important;
}

#nav .nav-link {
  position: relative;
  font-weight: 600 !important;
  letter-spacing: 0.4px;
  padding: 10px 16px !important;
  transition: color 0.2s ease;
}
#nav .nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
#nav .nav-link:hover,
#nav .nav-link.active {
  color: var(--navy) !important;
}
#nav .nav-link:hover::after,
#nav .nav-link.active::after {
  transform: scaleX(1);
}

#VAILLANT a[href^="tel:"] {
  background: var(--navy) !important;
  color: #ffffff !important;
  padding: 8px 20px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  font-size: 16px !important;
  transition: background 0.25s ease;
}
#VAILLANT a[href^="tel:"]:hover {
  background: var(--navy-light) !important;
}
#VAILLANT a[href^="tel:"] span {
  text-decoration: none !important;
}

/* ---------- Hero sections ---------- */
#willkommen-1 {
  background: linear-gradient(135deg, var(--bg-light) 0%, #e3ecf7 100%) !important;
  padding: 50px 20px !important;
}
#willkommen-1 h1 {
  font-size: 2.6rem !important;
  font-weight: 800 !important;
  letter-spacing: 1px;
}
#willkommen-1 img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-top: 20px !important;
}

#main-1 {
  padding: 10px 0;
}

/* ---------- Feature cards ---------- */
.features-clean {
  background-color: var(--bg-light) !important;
  padding: 40px 0 !important;
}
.features-clean .item {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding-top: 24px;
  padding-bottom: 24px;
  padding-right: 24px;
  margin-bottom: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.features-clean .item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ---------- Footer ---------- */
.footer-dark, .footer-dark footer {
  background-color: #ffffff !important;
}
.footer-dark footer {
  padding: 50px 0 20px;
}
.footer-dark footer h3,
.footer-dark footer h6 {
  font-weight: 700 !important;
  margin-bottom: 16px !important;
}
.footer-dark footer ul {
  list-style: none;
  padding: 0;
}
.footer-dark footer ul li {
  margin-bottom: 8px;
}
.footer-dark footer a {
  transition: color 0.2s ease;
}
.footer-dark footer a:hover {
  color: var(--navy) !important;
}
.footer-dark .copyright {
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
  margin-top: 24px;
  font-size: 13px;
  color: #6b7280 !important;
}

/* ---------- Cookie banner ---------- */
.cookiealert {
  background: #ffffff !important;
  color: var(--text-dark) !important;
  box-shadow: var(--shadow-lg) !important;
  border-radius: 16px 16px 0 0 !important;
  padding: 20px !important;
  width: 90% !important;
  max-width: 600px !important;
  left: 50% !important;
  border: 1px solid #e5e7eb;
  transform: translate(-50%, 100%) !important;
}
.cookiealert.show {
  transform: translate(-50%, 0%) !important;
}
.cookiealert .acceptcookies {
  background: var(--navy) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 8px 24px !important;
  text-decoration: none !important;
  display: inline-block;
}

/* ---------- Map / contact (kontakt.html) ---------- */
.map-clean {
  background-color: var(--bg-light) !important;
}
.map-clean iframe {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
#contact .form-control {
  border-radius: 8px;
}

/* ---------- Graz (Tailwind) pages: align accent colors with navy palette ---------- */
.bg-blue-600 {
  background-color: var(--navy) !important;
}
.bg-blue-400 {
  background-color: var(--navy-light) !important;
}

/* Header hero -> light gradient with navy heading */
header.bg-blue-600.text-white {
  background: linear-gradient(135deg, var(--bg-light) 0%, #e3ecf7 100%) !important;
  color: var(--text-dark) !important;
  padding: 40px 0 !important;
}
header.bg-blue-600.text-white h1 {
  color: var(--navy) !important;
  font-weight: 800 !important;
}
header.bg-blue-600.text-white picture img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-top: 16px;
}

/* Page wrapper -> light background, dark body text, navy headings */
main.bg-blue-400.text-white {
  background-color: var(--bg-light) !important;
  color: var(--text-dark) !important;
  padding: 40px 0 !important;
}
main.bg-blue-400 h2 {
  color: var(--navy) !important;
}
main.bg-blue-400 > div.container p {
  color: var(--text-muted) !important;
  font-size: 1.05rem;
  text-align: left !important;
  max-width: 820px;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 1.2rem;
}

/* "Kontaktieren Sie uns" CTA bands -> navy gradient accent band */
main.bg-blue-400 > .bg-blue-600.text-white,
main.bg-blue-400 > .bg-blue-600.text-white > .container > p {
  color: #ffffff !important;
}
main.bg-blue-400 > .bg-blue-600.text-white {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%) !important;
  border-radius: var(--radius);
  margin: 24px 16px !important;
  padding: 36px 20px !important;
}

/* Service cards (Thermentausch/Thermenwartung/Thermenreparatur) -> white cards */
main.bg-blue-400 .bg-blue-600.rounded-xl {
  background: #ffffff !important;
  color: var(--text-dark) !important;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease;
}
main.bg-blue-400 .bg-blue-600.rounded-xl:hover {
  box-shadow: var(--shadow-lg);
}
main.bg-blue-400 .bg-blue-600.rounded-xl h2 {
  color: var(--navy) !important;
}

/* "Jetzt anrufen" buttons -> white pill with navy text, invert on hover */
a.bg-red-600.text-white {
  background: #ffffff !important;
  color: var(--navy) !important;
  border-radius: 50px !important;
  padding: 14px 32px !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
a.bg-red-600.text-white:hover {
  background: var(--navy) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}
a.bg-red-600.text-white .flex {
  display: inline-flex;
  align-items: center;
}
a.bg-red-600.text-white svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* Service list link hover */
main.bg-blue-400 a.underline:hover {
  background-color: var(--navy) !important;
  color: #ffffff !important;
  border-radius: 4px;
}

/* Sticky call bar */
.sticky.bg-blue-600 {
  box-shadow: 0 -4px 16px rgba(29,58,95,0.15);
}

/* =====================================================================
   Text styling refinements
   ===================================================================== */

h1, h2, h3 {
  letter-spacing: 0.4px;
}

/* Oversized banner headings (#main-1 h1, row-image-txt h2 on navy bands) */
[style*="font-size: 40px"] {
  font-size: clamp(1.7rem, 4vw, 2.4rem) !important;
}

/* "SONDERAKTION" highlight-blue heading */
[style*="font-size: 33px"] {
  font-size: clamp(1.4rem, 3vw, 1.8rem) !important;
}

/* Section heading hierarchy (district / features-clean pages all use 30px) */
.features-clean h2[style*="font-size: 30px"] {
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
}
.features-clean h3[style*="font-size: 30px"],
.features-clean h4[style*="font-size: 30px"],
.features-clean h5[style*="font-size: 30px"],
.features-clean h6[style*="font-size: 30px"] {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem) !important;
}
.features-clean p[style*="font-size: 30px"] {
  font-size: clamp(1.4rem, 3vw, 1.8rem) !important;
}
.features-clean h2,
.features-clean h3,
.features-clean h4,
.features-clean h5,
.features-clean h6 {
  margin-top: 2rem !important;
  margin-bottom: 1rem !important;
}

/* Long body paragraphs (district pages) -> readable column, softer color */
.features-clean p[style*="color: rgb(5,5,5)"] {
  color: var(--text-muted) !important;
  font-size: 1.05rem !important;
  max-width: 820px;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 1.2rem !important;
  text-align: left !important;
}

/* Service checklist (district pages <ul class="lead text-center">) */
.features-clean ul.lead {
  max-width: 820px;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: left !important;
  list-style: none;
  padding-left: 0 !important;
}
.features-clean ul.lead li {
  padding: 6px 0 6px 30px;
  position: relative;
}
.features-clean ul.lead li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 700;
}

/* Intro / lead paragraphs */
#main-1 .lead,
#Thermenwartung-1 p.lead,
.row-image-txt p.lead {
  max-width: 820px;
  font-size: 1.1rem !important;
}
#main-1 .lead,
#Thermenwartung-1 p.lead {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Embedded Fehlercodes table section: match the new font */
section[style*="font-family:Arial"] {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif !important;
}
