/* Consolidated stylesheet: Article-Clean, Features-Boxed, Header-Blue, Highlight-Clean, Footer-Basic-icons, Contact-Blue, Custom */

/* === Article-Clean.css === */
.article-clean {
  color: #56585b;
  background-color: #fff;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14px;
}
.article-clean .text h2 {
  margin-top: 28px;
  margin-bottom: 20px;
  line-height: 1.45;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

/* === Features-Boxed.css === */
.features-boxed p { color: #7d8285; }
.features-boxed h2 { font-weight: bold; color: inherit; }
.features-boxed .item { text-align: center; }
.features-boxed .item .name {
  font-weight: bold; font-size: 18px; margin-bottom: 8px; margin-top: 0; color: inherit;
}
/* Equal-height cards and consistent layout */
.features-boxed .features { row-gap: 24px; }
.features-boxed .features .item { display: flex; }
.features-boxed .features .item > .box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px;
  min-height: 300px;
  height: 100%;
  width: 100%;
}

/* === Header-Blue.css === */
.header-blue {
  background: linear-gradient(135deg, #172a74, #21a9af);
  background-color: #184e8e;
  
  font-family: 'Source Sans Pro', sans-serif;
}
.header-blue .navbar { background: transparent; padding-top: .75rem; padding-bottom: .75rem; color: #fff; border-radius: 0; box-shadow: none; border: none; }
/* On mobile we add a subtle top border to the collapsed menu.
   This creates an unwanted line on desktop; override below. */
.header-blue .navbar .navbar-collapse { border-top: 1px solid rgba(255,255,255,0.3); margin-top: .5rem; }
.header-blue .navbar .navbar-toggler { border-color: rgba(255,255,255,0.3); }
.header-blue .navbar .navbar-toggler:hover, .header-blue .navbar-toggler:focus { background: none; }
@media (min-width: 768px) {
  /* Remove the top border on desktop to avoid the thin line */
  .header-blue .navbar .navbar-collapse { border-top: 0; margin-top: 0; }
}
@media (min-width: 768px) { .header-blue .navbar-nav .nav-link { padding-left: .7rem; padding-right: .7rem; } }
@media (min-width: 992px) { .header-blue .navbar-nav .nav-link { padding-left: 1.2rem; padding-right: 1.2rem; } }
.header-blue .hero p { color: rgba(255,255,255,0.8); font-size: 20px; margin-bottom: 30px; font-weight: 300; }

/* === Highlight-Clean.css === */
.highlight-clean p { color: #7d8285; }
.highlight-clean h2 { font-weight: bold; margin-bottom: 25px; line-height: 1.5; padding-top: 0; margin-top: 0; color: inherit; }
.highlight-clean .intro { font-size: 16px; max-width: 500px; margin: 0 auto 25px; }

/* === Footer-Basic-icons.css === */
.bs-icon {
  --bs-icon-size: 0.75rem;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-size: var(--bs-icon-size);
  width: calc(var(--bs-icon-size) * 2);
  height: calc(var(--bs-icon-size) * 2);
  color: var(--primary);
}
.bs-icon.bs-icon-primary { color: var(--white); background: #fff); }
.bs-icon.bs-icon-circle { border-radius: 50%; }

/* === contact-blue.css === */
.contact-blue { color: #fff; background: linear-gradient(135deg, #172a74, #21a9af); background-color: #184e8e; padding-bottom: 30px; }
@media (max-width:767px) { .contact-blue { padding-bottom: 10px; } }
.contact-blue p { color: rgba(255,255,255,0.6); }
.contact-blue h2 { font-size: 2.2rem; font-weight: bold; margin-bottom: 40px; padding-top: 40px; color: inherit; }
@media (max-width:767px) { .contact-blue h2 { margin-bottom: 25px; padding-top: 25px; font-size: 16px; } }
.contact-blue .intro { font-size: 16px; max-width: 500px; margin: 0 auto 60px; }
@media (max-width:767px) { .contact-blue .intro { margin-bottom: 40px; } }
.contact-blue .item { min-height: 100px; padding-left: 80px; margin-bottom: 40px; }
@media (max-width:767px) { .contact-blue .item { min-height: 0; } }
.contact-blue .item .name { font-size: 20px; font-weight: bold; margin-top: 0; margin-bottom: 20px; color: inherit; }
.contact-blue .item .description { font-size: 15px; margin-bottom: 0; }

/* Icon sizing in contact-blue section */
.contact-blue .icon {
  display: block;
  width: 100%;
  max-width: 3.25rem;
  height: auto;
  margin: 0;
}
@media (min-width: 768px) {
  .contact-blue .icon { max-width: 4rem; }
}

/* Place icons left of text in contact section */
.contact-blue .item { display: grid; grid-template-columns: 3.25rem 1fr; column-gap: 14px; align-items: start; padding-left: 0; }
.contact-blue .item > .icon { grid-row: 1 / -1; }
.contact-blue .item > :not(.icon) { grid-column: 2; }
@media (min-width: 768px) { .contact-blue .item { grid-template-columns: 4rem 1fr; } }

/* === custom.css (site overrides, trimmed) === */
:root { --nav-height: 90px; --nav-height-scrolled: 60px; }
body { padding-top: var(--nav-height); }
body.scrolled { padding-top: var(--nav-height-scrolled); }
.navbar.fixed-top { position: fixed; top: 0; left: 0; right: 0; z-index: 1030; }
.navbar { transition: padding 0.25s ease, background 0.25s ease; padding: 14px 0; }
.header-blue .navbar { background: linear-gradient(135deg, #172a74, #21a9af); padding: 14px 0; }
.navbar.scrolled { padding: 6px 0; background: linear-gradient(135deg, #172a74, #21a9af); }
.header-blue .navbar.scrolled { padding: 6px 0; }
@media (max-width: 767.98px) {
  /* Center burger button horizontally, place it below the brand */
  .header-blue .navbar { padding-bottom: 56px; }
  .navbar .navbar-toggler {
    position: absolute;
    left: 50%;
    bottom: 8px;
    top: auto;
    transform: translateX(-50%);
    margin: 0;
    z-index: 1040;
  }
  .navbar .navbar-collapse { background: linear-gradient(135deg, #172a74, #21a9af); }
}
.header-blue { margin-top: calc(-1 * var(--nav-height)); padding-top: var(--nav-height) !important; }
body.scrolled .header-blue { margin-top: calc(-1 * var(--nav-height-scrolled)); padding-top: var(--nav-height-scrolled) !important; }
@media (min-width: 768px) { .navbar .navbar-nav { flex-wrap: nowrap; } .navbar .navbar-nav .nav-item { white-space: nowrap; } }
.anchor-offset { scroll-margin-top: 90px; }

/* (reverted) hero-specific adjustments removed per request */

/* Hero container (homepage) */
.container.hero {
  margin-top: 80px;
  --hero-min-height-desktop: 150px; /* ensure full rotated portrait is visible */
  /* --hero-min-height-mobile: 360px; */
}
/* Larger welcome headline on homepage */
.welcome-title { font-size: 2.5rem; }
/* AudoraPlay hero: align + size like homepage */
.audora-hero { margin-top: 80px; }
@media (min-width: 992px) {
  .audora-hero { min-height: var(--hero-min-height-desktop); display: flex; align-items: center; justify-content: center; }
}
@media (min-width: 992px) {
  .container.hero { min-height: var(--hero-min-height-desktop); }
  .container.hero .row { align-items: center; }
  /* center headline block horizontally */
  .container.hero .mt-10 { text-align: center; margin-left: auto; margin-right: auto; }
  /* center image horizontally in its column */
  .container.hero .phone-holder { display: flex; justify-content: center; margin-left: auto; margin-right: auto; }
  /* neutralize Bootstrap offset on lg so the image sits centered */
  .container.hero .phone-holder.offset-lg-1 { margin-left: 0 !important; }
  /* small extra headroom so the rotated image is fully visible below navbar */
  .container.hero .hero-portrait { margin-top: 12px; }
}
@media (max-width: 767.98px) {
  .container.hero { min-height: var(--hero-min-height-mobile); }
  /* hide image on small screens */
  .container.hero .phone-holder { display: none !important; }
  /* center text block */
  .container.hero .mt-10 { text-align: center; margin-left: auto; margin-right: auto; }
}

/* Section: Endlich besser schlafen */
#besser-schlafen p,
#besser-schlafen h1,
#besser-schlafen h2,
#besser-schlafen h3,
#besser-schlafen h4,
#besser-schlafen h5,
#besser-schlafen h6 { color: #fff !important; }

/* Unified H2 styling across main content
   Excludes header/hero by scoping to `main`. Contact-blue is preserved below. */
main h2 {
  font-weight: bold;
  font-size: var(--h2-size, 1.75rem);
  line-height: 1.5;
  margin-bottom: 25px;
  color: var(--cyan) !important;
}
/* Ensure the contact section keeps its own color (usually white) */
.contact-blue h2 { color: inherit !important; }

/* Hörprobe section background + slightly reduced vertical padding */
#probe {
  background: linear-gradient(135deg, #e8f7fb, #ecfbf9);
  margin-top: 80px;
  padding-top: calc(1.5rem - 20px) !important;  /* py-4 (24px) minus 20px */
  padding-bottom: calc(1.5rem - 20px) !important;
}
@media (min-width: 1200px) {
  /* py-xl-5 = 3rem (48px); reduce by 20px on xl+ */
  #probe {
    padding-top: calc(3rem - 20px) !important;
    padding-bottom: calc(3rem - 20px) !important;
  }
}

/* Accessibly hide skip link until focused */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 10px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: #ffffff;
  color: #000000;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  clip: auto;
  clip-path: none;
  z-index: 1100; /* above navbar (1030) */
}

/* schlafhilfetest page helpers */

.sleep-hero h2 { color: #fff; }
.sleep-hero .title, .sleep-hero .subtitle { color: #fff; }
.sleep-hero .subtitle { font-size: 18px; }
.sleep-hero-img { border: 5px solid #fff; border-radius: 50%; max-width: 360px; width: 100%; height: auto; }
@media (min-width: 768px) {
  .sleep-hero { padding: 50px 0 15px; }
  .sleep-hero-img { margin-left: 80px; }
}
@media (min-width: 992px) { .sleep-hero { min-height: var(--hero-min-height-desktop); } }
.video-fluid { width: 100% !important; height: auto !important; display: block; }
.video-center { display: flex; justify-content: center; }
.player-link { color: var(--cyan); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; transition: color .15s ease; }
.player-link:hover, .player-link:focus { text-decoration: none; color: #1f7f88; }
/* Halve gutter between image and text in sleep-hero */
.sleep-hero .row { margin-left: -7.5px; margin-right: -7.5px; }
.sleep-hero .row > [class^="col-"],
.sleep-hero .row > [class*=" col-"] { padding-left: 7.5px; padding-right: 7.5px; }
.sleep-hero-text { max-width: 420px; }
@media (min-width: 992px) {
  .sleep-hero .row { align-items: center; }
  .sleep-hero .col-md-6 { display: flex; justify-content: center; }
  .sleep-hero .sleep-hero-text { text-align: left; }
}
@media (max-width: 767.98px) {
  /* hide image on small screens similar to homepage hero */
  .sleep-hero-img { display: none !important; }
  .sleep-hero .row { margin-top: 65px; }
}
@media (max-width: 767.98px) { .sleep-hero-text { margin: 0 auto; } }
@media (min-width: 768px) { .sleep-hero-text { margin: 0; } }

/* Brand + tagline */
.header-brand { font-size: 28px; transition: font-size 0.25s ease; text-decoration: none; color: #fff;}
.navbar.scrolled .header-brand { font-size: 22px; }
.nav-tagline { margin: 0; transition: opacity 0.2s ease, height 0.2s ease, margin 0.2s ease; color: #fff;}
.navbar.scrolled .nav-tagline { opacity: 0; height: 0; margin: 0; overflow: hidden; }
.header-brand:hover { text-decoration: none; color: #fff;}

/* Features boxed overrides */
.features-boxed .item .box { transition: transform .15s ease, box-shadow .15s ease, background-color .2s ease; background-color: #fff; border-radius: 30px; box-shadow: 2px 5px 4px #dddddd; }
.features-boxed .item .box:hover { transform: translateY(-2px) scale(1.02); box-shadow: 4px 10px 18px rgba(0,0,0,0.15); background-color: #f7fbfd; }
body.modal-open .features-boxed .item .box:hover { transform: none; box-shadow: 2px 5px 4px #dddddd; background-color: #fff; }
.features-boxed .item .box a[data-toggle="modal"] { text-decoration: none; }
.features-boxed .item .box a[data-toggle="modal"]:hover { text-decoration: none; }
.features-boxed .item .box .btn a { text-decoration: none; }
.features-boxed .item .box .btn a:hover { text-decoration: none; }
.features-boxed .item { color: #1d7898; }
.features-boxed .item .icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
}
.features-boxed .item .icon {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 7rem;
  max-height: 7rem;
}
.features-boxed .item .icon-static,
.features-boxed .item .icon-animated {
  transition: opacity 0.3s ease-in-out;
}
.features-boxed .item .icon-animated {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.features-boxed .item:hover .icon-animated,
.features-boxed .item:focus-within .icon-animated {
  opacity: 1;
}
.features-boxed .item:hover .icon-static,
.features-boxed .item:focus-within .icon-static {
  opacity: 0;
}
@media (min-width: 768px) {
  .features-boxed .item .icon-wrapper {
    width: 7rem;
    height: 7rem;
  }
}
.features-boxed .item .name { color: var(--info); }
.features-boxed .item .btn.btn-primary { background: var(--info); border-color: var(--info); border-radius: 8px; }
.features-boxed .item .btn.btn-primary a { color: #fff; }

/* Leistungen modals: make titles bold + cyan like main headings */
.features-boxed .modal .modal-title {
  font-weight: 700;
  color: var(--cyan);
}

/* Back-to-top */
.back-to-top { position: fixed; right: 16px; bottom: 16px; width: 40px; height: 40px; background: #45A4AD; border: 2px solid #ffffff; border-radius: 6px; z-index: 1060; display: inline-block; opacity: 0; transform: scale(0.9); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.back-to-top.show { opacity: 1; transform: scale(1); pointer-events: auto; }
.back-to-top::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border-left: 3px solid #fff; border-top: 3px solid #fff; transform: translate(-50%, -30%) rotate(45deg); }

/* Footer social icons overrides */
footer .bs-icon { --bs-icon-size: 1rem; display: inline-flex; align-items: center; justify-content: center; background: var(--cyan); color: #fff; line-height: 0; }
footer .list-inline-item { vertical-align: middle; }
footer p.text-muted { font-size: 1rem; }

/* Fragen-CTA section (above footer) */
#fragen-cta, #fragen-cta h2, #fragen-cta p { color: #fff !important; }

/* Utilities */
.mt-10 { margin-top: 10px !important; }
.mt-50 { margin-top: 50px !important; }
.mb-30 { margin-bottom: 30px !important; }
.my-30 { margin-top: 30px !important; margin-bottom: 30px !important; }
.text-cyan { color: var(--cyan) !important; }
.hlk-wrap { background: rgb(238,244,247); margin-top: 74px; padding-bottom: 38px; }
footer .bi-instagram { font-size: 17px !important; }
.mt-12 { margin-top: 12px !important; }
.mt-15 { margin-top: 15px !important; }
.mt-30 { margin-top: 30px !important; }
.mb-8 { margin-bottom: 8px !important; }
.pt-24 { padding-top: 24px !important; }
.rounded-6 { border-radius: 6px !important; }
.rounded-8 { border-radius: 8px !important; }
.minh-250 { min-height: 250px !important; }
.maxw-420 { max-width: 420px !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.fs-20 { font-size: 20px !important; }
.fs-18 { font-size: 18px !important; }
.pb-40 { padding-bottom: 40px !important; }
.pb-64 { padding-bottom: 64px !important; }
.pb-80 { padding-bottom: 80px !important; }
.pt-40 { padding-top: 40px !important; }
.py-20 { padding-top: 20px !important; padding-bottom: 20px !important; }
.overflow-auto { overflow: auto !important; }
.fit-cover { object-fit: cover; }
.nav-link-space-10 { margin-left: 10px !important; }
.nav-link-space-20 { margin-left: 20px !important; }
.hero-portrait { height: 385.266px; border: 4px solid #fff; border-radius: 40px; filter: grayscale(0%) saturate(90%); opacity: 1; transform: perspective(1000px) rotate(-7deg); }
#traum { background: url(../img/sonnenuntergnag_am_meer.jpg) center / cover no-repeat; opacity: 1; height: 260px; padding: 50px 0; }
#traum .intro h3 { font-size: 48px; margin-bottom: 0; width: 100%; text-shadow: 2px 2px var(--gray); line-height: 36px; letter-spacing: 0; color: #fff;}
.h-248 { height: 248px !important; }
.ml-21 { margin-left: 21px !important; }
.mb-21 { margin-bottom: 21px !important; }
.mb-25 { margin-bottom: 25px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-25 { margin-top: 25px !important; }
.mt-55 { margin-top: 55px !important; }
.pt-11 { padding-top: 11px !important; }
.pt-12 { padding-top: 12px !important; }
.pb-12 { padding-bottom: 12px !important; }
.pt-28 { padding-top: 28px !important; }
.fs-30 { font-size: 30px !important; }
.text-info-var { color: var(--info) !important; }
