/*
 * Hasenknopf Pool und Schwimmbad Technik – seitenspezifische Ergänzungen
 * zum Medicio-Template (main.css). Farben kommen aus den CSS-Variablen in main.css.
 */

/* ---------- Barrierefreiheit ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 10000;
  padding: 0.5rem 1rem;
  background: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
  color: var(--contrast-color);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent-color), transparent 40%);
  outline-offset: 2px;
}

/* ---------- Topbar ---------- */
.header .topbar a {
  color: var(--contrast-color);
}

.header .topbar a:hover {
  text-decoration: underline;
}

/* ---------- Logo ---------- */
.header .logo .logo-img {
  display: block;
  width: auto;
  height: 48px;
  max-height: none;
  margin-right: 12px;
}

/* Wortmarke in der Schrift des Logos (EB Garamond, Versalien) */
.header .logo .sitename {
  font-family: "EB Garamond", Garamond, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #143454;
}

.footer .footer-about .logo .logo-img {
  display: block;
  width: auto;
  height: 96px;
  max-height: none;
  margin-right: 0;
}

@media (max-width: 575px) {
  .header .logo .logo-img {
    height: 40px;
    margin-right: 10px;
  }

  .header .logo .sitename {
    font-size: 24px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 90px;
  background:
    radial-gradient(ellipse at 85% 20%, color-mix(in srgb, var(--accent-color), transparent 82%), transparent 60%),
    linear-gradient(180deg, #e9f4fa 0%, #ffffff 100%);
}

.hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 20px;
  border-radius: 50px;
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--accent-color);
}

.hero .lead {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.btn-accent,
.btn-outline-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 4px;
  font-family: var(--nav-font);
  font-weight: 500;
  font-size: 15px;
  transition: 0.3s;
  border: 2px solid var(--accent-color);
}

.btn-accent {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.btn-accent:hover {
  color: var(--contrast-color);
  background: color-mix(in srgb, var(--accent-color), #000 15%);
  border-color: color-mix(in srgb, var(--accent-color), #000 15%);
}

.btn-outline-accent {
  color: var(--accent-color);
  background: transparent;
}

.btn-outline-accent:hover {
  color: var(--contrast-color);
  background: var(--accent-color);
}

.hero-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 15px;
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-facts i {
  color: var(--accent-color);
  font-size: 18px;
}

.hero-collage {
  position: relative;
  padding-bottom: 70px;
}

.hero-collage img {
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(22, 56, 77, 0.18);
  object-fit: cover;
}

.hero-collage .hero-main {
  display: block;
  width: 86%;
  margin-left: auto;
  aspect-ratio: 924 / 520;
}

.hero-collage .hero-side {
  position: absolute;
  width: 32%;
  aspect-ratio: 3 / 4;
  border: 6px solid #fff;
}

.hero-collage .hero-side-1 {
  left: 0;
  bottom: 0;
}

.hero-collage .hero-side-2 {
  right: 6%;
  bottom: -40px;
  width: 26%;
}

@media (max-width: 991px) {
  .hero {
    padding: 40px 0 60px;
  }

  .hero-collage {
    padding-bottom: 0;
  }

  .hero-collage .hero-main {
    width: 100%;
  }

  .hero-collage .hero-side {
    display: none;
  }
}

/* ---------- Über uns ---------- */
.about .about-img {
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(22, 56, 77, 0.15);
  max-height: 560px;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

.about .signature {
  margin-top: 20px;
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--heading-color);
}

.about .signature span {
  display: block;
  font-family: var(--default-font);
  font-weight: 400;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

/* ---------- Leistungs-Karten ---------- */
.services .service-item {
  background: var(--surface-color);
  border-radius: 8px;
  padding: 30px 24px;
  box-shadow: 0 4px 24px rgba(22, 56, 77, 0.06);
}

.services .service-item:hover {
  transform: translateY(-4px);
}

.services .service-item .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Galerie ---------- */
.gallery .swiper-slide img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}

/* ---------- Unterseiten ---------- */
.page-title .heading {
  background: linear-gradient(180deg, #e9f4fa 0%, #ffffff 100%);
}

.page-title .heading .lead {
  font-size: 1.1rem;
}

.service-details .services-list a i {
  margin-right: 8px;
  color: var(--accent-color);
}

.service-details .aside-contact {
  padding: 26px 30px;
  border-radius: 8px;
  background: var(--accent-color);
  color: var(--contrast-color);
}

.service-details .aside-contact h4,
.service-details .aside-contact a:not(.btn-light-pill) {
  color: var(--contrast-color);
}

.service-details .aside-contact p {
  margin-bottom: 8px;
}

.service-details .aside-contact i {
  margin-right: 6px;
}

.btn-light-pill {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 24px;
  border-radius: 4px;
  background: #fff;
  color: var(--accent-color);
  font-weight: 500;
}

.btn-light-pill:hover {
  background: color-mix(in srgb, #fff, var(--accent-color) 12%);
  color: var(--accent-color);
}

.service-details .content h3 {
  margin-top: 10px;
}

.service-details .content h4 {
  margin-top: 30px;
}

.service-details .content ul li {
  align-items: flex-start;
}

.service-details .content ul li i {
  line-height: 1.2;
}

.check-list.two-col {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 30px;
}

@media (min-width: 768px) {
  .check-list.two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.highlight-box {
  margin: 30px 0;
  padding: 24px 28px;
  border-left: 4px solid var(--accent-color);
  border-radius: 0 8px 8px 0;
  background: color-mix(in srgb, var(--accent-color), transparent 93%);
}

.highlight-box h4 {
  margin-top: 0 !important;
}

.highlight-box p:last-child,
.highlight-box ul:last-child {
  margin-bottom: 0;
}

.services-img {
  border-radius: 8px;
  width: 100%;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 20px 0 10px;
}

@media (min-width: 768px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .photo-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.photo-grid figure {
  margin: 0;
}

.photo-grid a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.4s;
}

.photo-grid a:hover img {
  transform: scale(1.04);
}

.photo-grid figcaption {
  margin-top: 6px;
  font-size: 13px;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

.side-photo {
  border-radius: 8px;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* ---------- Rechtstexte ---------- */
.legal {
  max-width: 860px;
}

.legal h2 {
  font-size: 1.5rem;
  margin-top: 2.2rem;
}

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

.legal address {
  font-style: normal;
}

/* ---------- Kontaktformular ---------- */
.contact .contact-form .form-label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.contact .contact-form input[type=tel],
.contact .contact-form select {
  font-size: 14px;
  padding: 10px 15px;
  border-radius: 0;
  color: var(--default-color);
  background-color: var(--surface-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .contact-form input[type=tel]:focus,
.contact .contact-form select:focus {
  border-color: var(--accent-color);
}

.contact .contact-form .form-control.is-invalid,
.contact .contact-form .form-select.is-invalid,
.contact .contact-form .form-check-input.is-invalid {
  border-color: #c0182a;
}

.contact .contact-form .field-error {
  min-height: 0;
  margin-top: 4px;
  font-size: 13px;
  color: #c0182a;
}

.contact .contact-form .field-error:empty {
  display: none;
}

.contact .contact-form .human-check {
  padding: 14px 16px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent-color), transparent 93%);
}

.contact .contact-form .human-check .form-control {
  max-width: 140px;
}

.contact .contact-form .form-check-label {
  font-size: 14px;
}

.contact .contact-form .required-note {
  font-size: 13px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.contact .contact-form button[type=submit]:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* Honeypot: für Menschen unsichtbar, für einfache Bots ein normales Feld. */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact .info-item a {
  color: var(--default-color);
}

.contact .info-item a:hover {
  color: var(--accent-color);
}

/* ---------- 404 ---------- */
.not-found {
  padding: 100px 0;
  text-align: center;
}

.not-found .code {
  font-family: var(--heading-font);
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  color: color-mix(in srgb, var(--accent-color), transparent 30%);
}

/* ---------- Footer ---------- */
.footer .credits {
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}
