@charset "UTF-8";
/* swimmingpool-kosten.de – Farben und Komponenten auf Basis des apotheke-retz Templates (template.css) */

/* ===================== Farben (Compass Logo: Blau / Gelb) ===================== */
:root {
  --primary-green: #0058a0;      /* Template-Variablen umgefärbt: Primär = Compass Blau */
  --secondary-green: #003c6e;
  --primary-green-2: #1a73ba;
  --dark-green: #0b2742;
  --light-green: #e9f2fa;
  --primary-orange: #f8c000;     /* Akzent = Compass Gelb */
  --light-orange: #ffd84a;
  --primary-turquoise: #0b8fc6;
  --light-turquoise: #8fd0ec;
  --pool-blue: #0058a0;
  --pool-blue-dark: #003c6e;
  --pool-blue-light: #e9f2fa;
  --pool-yellow: #f8c000;
  --pool-yellow-dark: #d9a800;
  --pool-ink: #181018;
  --pool-grey: #f4f7fa;
  --pool-line: #d5e1ec;
}

body {
  background: #fff;
}

h1, .h1 {
  color: var(--pool-blue-dark) !important;
  font-size: 1.9rem;
  line-height: 1.25;
  font-weight: 500;
  margin-bottom: 1rem;
}

@media (min-width: 992px) {
  h1, .h1 { font-size: 2.5rem; }
}

h2 { font-size: 1.6rem; line-height: 1.3; margin-top: 0; margin-bottom: .8rem; }
h3 { font-size: 1.25rem; line-height: 1.35; margin-top: 1.4rem; margin-bottom: .4rem; }
@media (min-width: 992px) {
  h2 { font-size: 2rem; }
  h3 { font-size: 1.35rem; }
}

p { margin-bottom: 1rem; }
* + p { margin-top: 0; }

main ul.list, main ol.list { padding-left: 1.4em; margin-bottom: 1rem; }
main ul.list { list-style: disc; }
main ol.list { list-style: decimal; }
main ul.list li, main ol.list li { margin-bottom: .35rem; }

/* ===================== Header / Navigation ===================== */
.rd-navbar-brand .brand-logo {
  width: auto;
  height: 54px;
  max-width: none;
  margin: 8px 0;
}

@media (min-width: 1200px) {
  .rd-navbar-brand .brand-logo { height: 70px; margin: 18px 0; }
}

.rd-navbar-static .rd-navbar-nav > .rd-nav-item > .rd-nav-link {
  font-size: 13px !important;
  letter-spacing: 0;
}

.rd-navbar-static .rd-navbar-nav > .rd-nav-item + .rd-nav-item { padding-left: 12px !important; }
.rd-navbar-static .rd-navbar-nav-wrap { padding-left: 10px !important; }
.rd-navbar-static .rd-navbar-nav { flex-wrap: nowrap; white-space: nowrap; }

@media (min-width: 1400px) {
  .rd-navbar-static .rd-navbar-nav > .rd-nav-item > .rd-nav-link { font-size: 15px !important; }
  .rd-navbar-static .rd-navbar-nav > .rd-nav-item + .rd-nav-item { padding-left: 20px !important; }
}

.rd-navbar-static .rd-nav-item.active > .rd-nav-link,
.rd-navbar-static .rd-nav-item:hover > .rd-nav-link {
  color: var(--pool-blue) !important;
}

.rd-navbar .nav-cta,
.rd-navbar-static .rd-nav-item-cta > .rd-nav-link.nav-cta {
  background: var(--pool-yellow);
  color: var(--pool-ink) !important;
  padding: 9px 14px;
  border-radius: 4px;
  font-weight: 600;
}

.rd-navbar .nav-cta:hover { background: var(--pool-yellow-dark); }

.rd-navbar-fixed .rd-nav-item-cta { margin-top: 10px; padding: 0 15px; }
.rd-navbar-fixed .nav-cta { display: block; text-align: center; }

.rd-megamenu-head {
  height: auto !important;
  line-height: 1.4 !important;
  font-weight: 700;
  color: var(--pool-blue-dark);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .06em;
  margin-bottom: 6px;
}

.rd-navbar-fixed .rd-megamenu-head { padding: 8px 18px 2px; }
.rd-megamenu-all { margin-top: 12px; font-weight: 600; }

@media (min-width: 1200px) {
  .rd-navbar-static .rd-navbar-megamenu {
    display: flex;
    gap: 30px;
    max-width: 920px;
    left: auto;
    right: 0;
  }
  .rd-navbar-static .rd-navbar-megamenu > .rd-megamenu-item { flex: 1 1 0; }
}

/* ===================== Breadcrumb ===================== */
.breadcrumb-bar {
  background: var(--pool-grey);
  border-bottom: 1px solid var(--pool-line);
  font-size: 14px;
}

.breadcrumb-bar .breadcrumb {
  margin: 0;
  padding: 10px 0;
  background: none;
}

.breadcrumb-item + .breadcrumb-item::before { content: "›"; color: #889; }
.breadcrumb-item a { text-decoration: none; }
.breadcrumb-item.active { color: #555; }

/* ===================== Abschnitte ===================== */
.section-page { padding: 35px 0 10px; }
.section-page:last-child { padding-bottom: 50px; }
@media (min-width: 992px) { .section-page { padding: 55px 0 15px; } }

.section-tint { background: var(--pool-grey); padding: 40px 0; margin: 25px 0; }

.lead-text { font-size: 1.1em; }

.content-narrow { max-width: 860px; }

/* ===================== Hero (Startseite) ===================== */
.hero-pool {
  position: relative;
  background: var(--pool-blue-dark) url(../images/layout/header-start.jpg) center / cover no-repeat;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
}

.hero-pool::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 30, 60, .05) 0%, rgba(0, 30, 60, .75) 100%);
}

.hero-pool .container { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 40px; }
.hero-pool h1 { color: #fff !important; text-shadow: 0 1px 3px rgba(0,0,0,.4); max-width: 820px; }
.hero-pool p { color: #fff; font-size: 1.15em; max-width: 720px; text-shadow: 0 1px 2px rgba(0,0,0,.5); }

@media (min-width: 992px) { .hero-pool { min-height: 480px; } }

/* ===================== Buttons / CTA ===================== */
.button-accent, a.button-accent {
  background: var(--pool-yellow);
  border: 2px solid var(--pool-yellow);
  color: var(--pool-ink) !important;
  font-weight: 600;
  border-radius: 4px;
}

.button-accent:hover, a.button-accent:hover, .button-accent:focus {
  background: var(--pool-yellow-dark);
  border-color: var(--pool-yellow-dark);
  color: var(--pool-ink) !important;
}

.button-blue, a.button-blue {
  background: var(--pool-blue);
  border: 2px solid var(--pool-blue);
  color: #fff !important;
  border-radius: 4px;
}

.button-blue:hover, a.button-blue:hover { background: var(--pool-blue-dark); border-color: var(--pool-blue-dark); }

.button-outline, a.button-outline {
  background: transparent;
  border: 2px solid var(--pool-blue);
  color: var(--pool-blue) !important;
  border-radius: 4px;
}

.button-outline:hover, a.button-outline:hover { background: var(--pool-blue); color: #fff !important; }

.cta-block {
  background: var(--pool-blue-light);
  border-left: 4px solid var(--pool-yellow);
  padding: 22px 24px;
  margin: 28px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}

.cta-block .button { margin: 0; }
.cta-block .cta-note { flex: 1 1 260px; font-size: .92em; color: #44505c; margin: 0; }

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  padding: 10px 15px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .12);
}

.sticky-cta .button { display: block; width: 100%; margin: 0; text-align: center; }

@media (max-width: 1199.98px) {
  body { padding-bottom: 70px; }
}

/* ===================== Modellkarten ===================== */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  margin: 10px 0 30px;
}

.model-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--pool-line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .2s;
}

.model-card:hover { box-shadow: 0 6px 20px rgba(0, 60, 110, .12); }
.model-card-img { display: block; aspect-ratio: 4 / 3; background: var(--pool-grey); }
.model-card-img img { width: 100%; height: 100%; object-fit: cover; }
.model-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.model-card h3 { margin: 0 0 2px; font-size: 1.25rem; }
.model-card h3 a { text-decoration: none; }
.model-card .model-size { font-size: .9em; color: #5a6672; margin-bottom: 8px; }
.model-card p { font-size: .95em; flex: 1; }
.model-card-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.model-card-actions .button { padding: 8px 16px; font-size: 14px; margin: 0; }

/* ===================== Modellseite ===================== */
.model-hero-img { border-radius: 6px; overflow: hidden; margin-bottom: 20px; }
.model-hero-img img { width: 100%; height: auto; }

/* ===================== Tabellen ===================== */
.table-wrap { overflow-x: auto; margin: 10px 0 24px; }

table.table-pool {
  width: 100%;
  border-collapse: collapse;
  font-size: .95em;
}

table.table-pool th, table.table-pool td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--pool-line);
  text-align: left;
  vertical-align: top;
}

table.table-pool thead th {
  background: var(--pool-blue);
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
}

table.table-pool tbody tr:nth-child(even) { background: var(--pool-grey); }
table.table-pool td.nowrap { white-space: nowrap; }

/* ===================== Schritte / FAQ ===================== */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 10px 0 20px; }
.steps > li { position: relative; padding-left: 52px; margin-bottom: 18px; }
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pool-blue);
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps > li h3 { margin-top: 4px; }

.faq h3 { font-size: 1.15rem; margin-top: 1.5rem; }

.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: .45rem; }
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--pool-blue);
  font-weight: 700;
}

.info-box {
  background: var(--pool-grey);
  border: 1px solid var(--pool-line);
  border-radius: 6px;
  padding: 20px 22px;
  margin: 20px 0;
}

.info-box h2 { font-size: 1.35rem; }

.link-more { font-weight: 600; }

/* ===================== Footer ===================== */
.pre-footer-corporate { background: var(--pool-blue-dark) !important; color: #dfe9f3; padding: 45px 0 30px; }
.pre-footer-corporate h6 { color: var(--pool-yellow) !important; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; margin-bottom: 10px; }
.pre-footer-corporate a { color: #fff; text-decoration: none; }
.pre-footer-corporate a:hover { color: var(--pool-yellow); text-decoration: underline; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 4px; }
.footer-contact { color: #dfe9f3 !important; font-size: .95em; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.2); margin-top: 20px; padding-top: 15px; font-size: .9em; }

/* ===================== Konfigurator ===================== */
.konfig-steps {
  display: flex;
  margin: 0 0 25px;
  padding: 0;
  list-style: none;
  counter-reset: kstep;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--pool-line);
}

.konfig-steps li {
  flex: 1 1 0;
  counter-increment: kstep;
  padding: 10px 6px;
  text-align: center;
  font-size: 13px;
  line-height: 1.3;
  color: #5a6672;
  background: var(--pool-grey);
  border-right: 1px solid var(--pool-line);
}

.konfig-steps li:last-child { border-right: 0; }
.konfig-steps li::before { content: counter(kstep); display: block; font-weight: 700; font-size: 18px; color: #9aa7b4; }
.konfig-steps li.active { background: var(--pool-blue); color: #fff; }
.konfig-steps li.active::before { color: var(--pool-yellow); }
@media (max-width: 575.98px) {
  .konfig-steps li span { display: none; }
  .konfig-steps li.active span { display: block; }
}

.konfig h2 { font-size: 1.5rem; margin-top: 10px; }

.konfig-filter {
  background: var(--pool-grey);
  border: 1px solid var(--pool-line);
  border-radius: 6px;
  padding: 16px 18px;
  margin-bottom: 25px;
}

.konfig-filter .filter-row { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.konfig-filter label { font-weight: 600; margin-right: 6px; }
.konfig-filter input[type=text] { width: 70px; padding: 6px 8px; border: 1px solid #b9c7d4; border-radius: 4px; }

.konfig-card {
  border: 1px solid var(--pool-line);
  border-radius: 6px;
  margin-bottom: 22px;
  overflow: hidden;
  background: #fff;
}

.konfig-card .konfig-card-img img { width: 100%; height: auto; display: block; }
.konfig-card .konfig-card-body { padding: 16px 18px; }
.konfig-card h3 { margin-top: 0; }
.konfig-card .variants { font-size: .92em; color: #44505c; margin: 10px 0 14px; }
.konfig-card .variants strong { color: var(--pool-ink); }

.konfig-option {
  border: 1px solid var(--pool-line);
  border-radius: 6px;
  padding: 12px;
  height: 100%;
  background: #fff;
}

.konfig-option img { width: 100%; height: auto; border-radius: 4px; margin-bottom: 8px; }
.konfig-option h4 { font-size: 1rem; margin: 6px 0; color: var(--pool-blue-dark); display: inline; }
.konfig-option input[type=radio] { margin-right: 6px; }

.konfig-size h4 { font-size: 1.05rem; color: var(--pool-blue-dark); margin: 0 0 6px; }

.konfig-check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.konfig-check input[type=checkbox] { width: 20px; height: 20px; }

.konfig .buttongreen, .konfig input.buttongreen {
  background: var(--pool-yellow);
  border: 2px solid var(--pool-yellow);
  color: var(--pool-ink);
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 4px;
  cursor: pointer;
}

.konfig .buttongreen:hover { background: var(--pool-yellow-dark); }

.konfig .buttonrot, .konfig input.buttonrot {
  background: #fff;
  border: 2px solid #b33;
  color: #b33;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
}

.konfig .buttonrot:hover { background: #b33; color: #fff; }

.konfig .status { color: #c00; }
.konfig .status-ok { color: var(--pool-blue); font-weight: 600; }

.konfig-form .form-row { display: flex; flex-wrap: wrap; margin-bottom: 12px; }
.konfig-form .form-row > label, .konfig-form .form-label-col { flex: 0 0 160px; font-weight: 600; padding-top: 6px; }
.konfig-form .form-field { flex: 1 1 260px; }
.konfig-form .textfeld, .konfig-form .textfeld3, .konfig-form .ddl { width: 100%; padding: 8px 10px; border: 1px solid #b9c7d4; border-radius: 4px; }
.konfig-form .textfeld2 { width: 90px; padding: 8px 10px; border: 1px solid #b9c7d4; border-radius: 4px; }
.konfig-form .plz-city { display: flex; gap: 8px; }
.konfig-form .plz-city .textfeld3 { flex: 1; }
.konfig-form .req { color: #c00; }

.konfig-cart {
  background: var(--pool-grey);
  border: 1px solid var(--pool-line);
  border-radius: 6px;
  padding: 16px;
}

.konfig-cart img { width: 100%; height: auto; border-radius: 4px; margin-bottom: 10px; }
.konfig-cart h2 { font-size: 1.2rem; }

.konfig-intro { max-width: 860px; }

.chk-hidden-label label { position: absolute; left: -9999px; }
.konfig .konfig-check input[type=checkbox] { width: 20px; height: 20px; }
.konfig-option input[type=radio] { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }

.rd-navbar-fixed .rd-megamenu-list-link, .rd-navbar-fixed .rd-dropdown-link { color: #333 !important; }
.rd-navbar-fixed .rd-megamenu-list-link:hover, .rd-navbar-fixed .rd-dropdown-link:hover { color: var(--pool-blue) !important; }
.ui-to-top { background: var(--pool-blue) !important; color: #fff !important; }
@media (max-width: 1199.98px) { .ui-to-top { bottom: 85px !important; } }

.model-card-img { display: block; aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--pool-line); overflow: hidden; }
.model-card-img img { width: 100% !important; height: 100% !important; object-fit: contain; }
.model-card-actions .button { padding: 8px 12px !important; font-size: 13px; }

/* Fehlerseite (error.htm, ohne Navigation) */
.error-header { border-bottom: 1px solid var(--pool-line); padding: 10px 0; }
.error-header .brand-logo { height: 60px; width: auto; }

/* Barrierefreiheits-Button (library/accessability.js) über dem mobilen "Preis berechnen"-Balken */
@media (max-width: 1199.98px) {
  .accessibility-container { bottom: 85px !important; }
}

.konfig-filter input.filter-name { width: 170px; }

/* Runder "Preis berechnen"-Button in der Navigation (wie "Zum Shop" bei apotheke-retz), ab 1200px */
.ui-price {
  position: fixed;
  top: 55px;
  right: calc((100% - 1140px) / 2 + 12px);
  z-index: 1040;   /* unter dem Bild-Popup (1042) */
  width: 112px;
  height: 112px;
  border-radius: 100%;
  background: var(--pool-yellow);
  color: var(--pool-ink) !important;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .2);
  transition: background-color .2s, transform .2s;
}
.ui-price:hover, .ui-price:focus { background: var(--pool-yellow-dark); transform: scale(1.04); }
@media (min-width: 1200px) { .rd-navbar-static .rd-navbar-nav-wrap { padding-right: 125px !important; } }
@media (min-width: 1400px) { .ui-price { right: calc((100% - 1320px) / 2 + 12px); width: 124px; height: 124px; font-size: 19px; } .rd-navbar-static .rd-navbar-nav-wrap { padding-right: 140px !important; } }
@media (min-width: 2000px) { .ui-price { right: calc((100% - 1600px) / 2 + 12px); } }
@media (min-width: 2800px) { .ui-price { right: calc((100% - 2000px) / 2 + 12px); } }

/* Barrierefreiheits-Button 50px höher, damit er "Impressum" nicht verdeckt */
.accessibility-container { bottom: 65px !important; }
@media (max-width: 1199.98px) { .accessibility-container { bottom: 135px !important; } }

/* Datenschutz-Checkbox im Konfigurator: Text neben der Checkbox statt darunter */
.konfig-form #chk_ds { width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; }
.konfig-form label[for=chk_ds] { display: inline; font-weight: 400; }

.ui-to-top::before { font-size: 26px; }

/* Konfigurator: "Weiter" mittig, deutlicher Abstand zu "Neu beginnen", darunter eine Trennlinie */
.konfig-next { text-align: center; margin: 30px 0 0; }
.konfig-restart { text-align: center; margin: 60px 0 45px; padding-bottom: 45px; border-bottom: 1px solid var(--pool-line); }
.konfig-restart:empty { display: none; }

/* Template setzt li auf display:block – dadurch fehlten Nummern/Aufzählungspunkte */
main ul.list > li, main ol.list > li { display: list-item; }
