/*
Theme Name: Brigitte Bacher
Theme URI: https://brigitte-bacher.de/
Description: Individuelles Childtheme für Brigitte Bacher.
Author: TBS
Template: tbs-affiliate-neon
Version: 1.2.2
Text Domain: brigitte-bacher
*/

:root {
  --bb-forest: #174d42;
  --bb-deep: #0b302b;
  --bb-sage: #8db5a0;
  --bb-sand: #e7d7bd;
  --bb-cream: #f7f5ed;
  --bb-ink: #203531;
}

html,
body {
  overflow-x: hidden;
}

body {
  background: var(--bb-cream);
  color: var(--bb-ink);
  padding-top: 170px;
}

.site-header {
  background: rgba(9, 45, 40, 0.98);
  border-bottom-color: var(--bb-sand);
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  box-shadow: 0 6px 22px rgba(7, 39, 34, .18);
}

body.admin-bar .site-header { top: 32px !important; }

.site-title a,
.main-navigation a {
  color: #fff;
}

.site-description {
  color: #d9e9e1;
}

.site-search-bar {
  background: #e9eee8;
  border-color: #a9c4b6;
}

.site-search-bar__form input {
  background: #fff;
  border-color: #8baa9b;
  color: var(--bb-ink);
}

.site-search-bar__form button {
  background: var(--bb-forest);
  color: #fff;
}

a {
  color: #0b706c;
}

a:hover,
a:focus-visible {
  color: var(--bb-deep);
}

.post-card,
.page-content,
.entry-content {
  border-color: #d9c9ad;
}

body:not(.home) .site-main > .container {
  width: min(100% - 40px, 1180px) !important;
  max-width: 1180px !important;
  margin: 2.5rem auto !important;
  padding: 0 1.25rem !important;
}

body:not(.home) .page-article > .page-header {
  display: none;
}

body:not(.home) .page-content,
body:not(.home) .main-content-page,
body:not(.home) .single-entry-summary {
  width: 100% !important;
  max-width: none !important;
}

body:not(.home) .page-content p,
body:not(.home) .page-content li,
body:not(.home) .page-content span {
  color: var(--bb-ink) !important;
  line-height: 1.7;
}

body:not(.home) .page-content a {
  color: #086e69 !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.post-card__more,
.entry-title a,
h1,
h2,
h3 {
  color: var(--bb-forest);
}

button,
input[type="submit"],
.button,
.wp-block-button__link {
  background-color: var(--bb-forest);
  color: #fff;
}

.bb-hero {
  position: relative;
  min-height: clamp(500px, 62vw, 720px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--bb-deep);
}

.bb-hero__slides,
.bb-hero__shade,
.bb-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bb-hero__slides { z-index: -2; }

.bb-hero__image {
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 1s ease, transform 7s ease;
}

.bb-hero__image:first-child { object-position: 56% center; }

.bb-hero__image.is-active {
  opacity: 1;
  transform: scale(1);
}

.bb-hero__shade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(7, 39, 34, .94) 0%, rgba(11, 55, 48, .73) 48%, rgba(11, 55, 48, .12) 78%);
}

.bb-hero__content {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0 112px;
  color: #fff;
}

.bb-hero__kicker {
  margin: 0 0 14px;
  color: #edc77e;
  font-size: .84rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.bb-hero h1 {
  max-width: 850px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.5rem, 5.6vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.bb-hero__content > p:not(.bb-hero__kicker) {
  max-width: 720px;
  margin: 24px 0 30px;
  color: #e1ede7;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.bb-hero__button {
  display: inline-block;
  padding: 14px 22px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background: var(--bb-sand);
  color: var(--bb-deep);
  font-weight: 850;
  text-decoration: none;
}

.bb-hero__button:hover,
.bb-hero__button:focus-visible {
  background: #fff;
  color: var(--bb-deep);
}

.bb-hero__dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.bb-hero__dot {
  width: 11px;
  height: 11px;
  min-width: 0;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.bb-hero__dot.is-active { background: #fff; }

@media (max-width: 760px) {
  body { padding-top: 190px; }
  body.admin-bar .site-header { top: 46px !important; }
  .bb-hero { min-height: 680px; align-items: end; }
  .bb-hero__shade { background: linear-gradient(0deg, rgba(7,39,34,.96) 0%, rgba(11,55,48,.76) 62%, rgba(11,55,48,.16) 100%); }
  .bb-hero__content { width: min(100% - 30px, 1180px); padding: 180px 0 108px; }
  .bb-hero__image:first-child { object-position: 62% center; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .bb-hero__image { transition: none; }
}
