/* =========================================================
   Ocean Balaia – Homepage Styles v2
   ========================================================= */

/* Schriften werden selbst gehostet und in pages/home.php über assets/css/fonts.css
   eingebunden. Vorher wurde an dieser Stelle das Google-Fonts-CDN nachgeladen. */

:root {
  --brand-primary: #34A8E5;
  --brand-dark:    #145f8f;
  --brand-sand:    #EDE8DF;
  --text-dark:     #1a1a1a;
  --text-mid:      #555;
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'Open Sans', Arial, sans-serif;
  --nav-h:         64px;
}

.ob-home * { box-sizing: border-box; margin: 0; padding: 0; }

.ob-home { font-family: var(--font-body); color: var(--text-dark); background: #fff; overflow-x: hidden; }

html, body { overflow-x: hidden; max-width: 100%; }

/* ── Hero ───────────────────────────────────────────────── */
.ob-hero {
  position: relative; width: 100%;
  height: 100vh;
  height: var(--hero-h, 100svh); /* Set once by JS — never jumps */
  min-height: 580px; overflow: hidden;
}

.ob-hero__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center 35%;
  will-change: transform;
  transform: translateZ(0); /* Force GPU layer — prevents repaint jitter */
  -webkit-transform: translateZ(0);
}

.ob-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(8,24,40,0.68) 0%, rgba(8,24,40,0.30) 60%, rgba(8,24,40,0.10) 100%);
}

.ob-hero__content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: var(--nav-h) 48px 0;
}

.ob-hero__eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--brand-primary); margin-bottom: 24px;
  opacity: 0; animation: fadeUp 0.8s 0.3s forwards;
}

.ob-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 120px);
  font-weight: 300; line-height: 0.9; color: #fff;
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 24px;
  opacity: 0; animation: fadeUp 0.9s 0.5s forwards;
}

.ob-hero__headline em { font-style: italic; color: var(--brand-primary); text-transform: none; letter-spacing: 0.02em; }

.ob-hero__subline {
  font-size: 15px; font-weight: 300; color: rgba(255,255,255,0.75);
  letter-spacing: 0.12em; margin-bottom: 48px;
  opacity: 0; animation: fadeUp 0.9s 0.7s forwards;
}

.ob-hero__cta {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  opacity: 0; animation: fadeUp 0.9s 0.9s forwards;
}

.ob-hero__scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer;
  opacity: 0; animation: fadeUp 1s 1.2s forwards;
}

.ob-hero__scroll span { font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.45); }

.ob-hero__scroll-line { width: 1px; height: 44px; background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent); animation: scrollPulse 2s infinite; }

/* ── Buttons ────────────────────────────────────────────── */
.ob-btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body);
  font-size: 12px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  text-decoration: none; padding: 15px 36px; border-radius: 2px; cursor: pointer;
  transition: all 0.3s; white-space: nowrap; border: 2px solid transparent;
}

.ob-btn--primary { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }

.ob-btn--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(52,168,229,0.35); }

.ob-btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }

.ob-btn--outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; transform: translateY(-2px); }

.ob-btn--dark { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }

.ob-btn--dark:hover { background: #0d4b72; border-color: #0d4b72; transform: translateY(-2px); }

/* ── Brand Strip ────────────────────────────────────────── */
.ob-brand-strip { padding: 80px 40px; text-align: center; background: #fff; }

.ob-brand-strip__headline { font-size: 11px; font-weight: 600; letter-spacing: 0.35em; text-transform: uppercase; color: var(--brand-primary); margin-bottom: 20px; }

.ob-brand-strip__title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 46px); font-weight: 400; color: var(--text-dark); letter-spacing: 0.08em; margin-bottom: 20px; }

.ob-brand-strip__sub { font-size: 15px; font-weight: 300; color: var(--text-mid); line-height: 1.75; max-width: 520px; margin: 0 auto; }

/* ── Carousel ───────────────────────────────────────────── */
.ob-carousel {
  position: relative;
  width: 100%;
  height: var(--carousel-h, 500px);
  overflow: hidden;
  background: #111;
}

.ob-carousel__track {
  display: flex;
  flex-wrap: nowrap;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.ob-carousel__slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ob-carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.25); color: #fff; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  border-radius: 50%; font-size: 16px; transition: background 0.25s; line-height: 1;
}

.ob-carousel__btn:hover { background: rgba(255,255,255,0.25); }

.ob-carousel__btn--prev { left: 24px; }

.ob-carousel__btn--next { right: 24px; }

.ob-carousel__dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }

.ob-carousel__dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; border: none; padding: 0; transition: all 0.3s; }

.ob-carousel__dot.active { background: #fff; width: 24px; border-radius: 4px; }

/* ── Sand Strip ─────────────────────────────────────────── */
.ob-sand-strip { padding: 88px 40px; background: var(--brand-sand); text-align: center; }

.ob-sand-strip__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.35em; text-transform: uppercase; color: var(--brand-dark); margin-bottom: 20px; }

.ob-sand-strip__title { font-family: var(--font-display); font-size: clamp(26px, 4vw, 44px); font-weight: 400; font-style: italic; color: var(--text-dark); margin-bottom: 24px; }

.ob-sand-strip__text { font-size: 15px; font-weight: 300; color: #666; line-height: 1.85; max-width: 900px; margin: 0 auto; }

/* ── Feature Rows ───────────────────────────────────────── */
.ob-feature { display: grid; grid-template-columns: 1fr 1fr; height: 560px; }

.ob-feature--reverse .ob-feature__image { order: -1; }

.ob-feature__image { position: relative; overflow: hidden; background: #e0e0e0; height: 560px; }

.ob-feature__image img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform 7s ease-out; }

@media (hover: hover) and (pointer: fine) {
  .ob-feature:hover .ob-feature__image img { transform: scale(1.04); }
}

.ob-feature__content { display: flex; flex-direction: column; justify-content: center; padding: 80px; background: #fff; height: 560px; overflow: hidden; }

.ob-feature--reverse .ob-feature__content { background: #fff; }

.ob-feature__num { font-family: var(--font-display); font-size: 72px; font-weight: 300; font-style: italic; line-height: 1; color: rgba(52,168,229,0.1); margin-bottom: 4px; display: block; }

.ob-feature__label { font-size: 10px; font-weight: 600; letter-spacing: 0.35em; text-transform: uppercase; color: var(--brand-primary); margin-bottom: 14px; }

.ob-feature__title { font-family: var(--font-display); font-size: clamp(26px, 3vw, 40px); font-weight: 400; line-height: 1.15; color: var(--text-dark); margin-bottom: 18px; }

.ob-feature__text { font-size: 14px; font-weight: 300; color: var(--text-mid); line-height: 1.9; margin-bottom: 28px; }

.ob-feature__link { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand-primary); text-decoration: none; transition: gap 0.3s; }

.ob-feature__link::after { content: '→'; }

.ob-feature__link:hover { gap: 14px; }

/* ── Footer CTA ─────────────────────────────────────────── */
.ob-footer-cta { padding: 108px 40px; background: var(--brand-sand); text-align: center; }

.ob-footer-cta__title { font-family: var(--font-display); font-size: clamp(30px, 5vw, 56px); font-weight: 400; color: var(--text-dark); margin-bottom: 20px; }

.ob-footer-cta__sub { font-size: 14px; font-weight: 300; color: #777; line-height: 1.85; max-width: 480px; margin: 0 auto 44px; }

.ob-footer-cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────── */
.ob-footer { background: #0d1f2d; color: rgba(255,255,255,0.45); padding: 36px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.ob-footer__logo img { height: 32px; opacity: 0.6; }

.ob-footer__copy { font-size: 12px; letter-spacing: 0.04em; }

.ob-footer__links { display: flex; gap: 20px; list-style: none; }

.ob-footer__links a { font-size: 12px; color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }

.ob-footer__links a:hover { color: rgba(255,255,255,0.75); }

/* ── Scroll Reveal ──────────────────────────────────────── */
.ob-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }

.ob-reveal.visible { opacity: 1; transform: none; }

.ob-reveal--left  { transform: translateX(-28px); }

.ob-reveal--left.visible  { transform: none; }

.ob-reveal--right { transform: translateX(28px); }

.ob-reveal--right.visible { transform: none; }

@keyframes fadeUp { to { opacity: 1; transform: none; } }

@keyframes scrollPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.9; } }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {

  /* Keine teuren Animationen auf Mobile */
  .ob-feature__image img {
    transition: none !important;
    transform: none !important;
  }
  .ob-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .ob-carousel__item {
    transition: transform 0.4s ease !important;
  }
  .ob-hero__headline { font-size: 48px; }
  .ob-hero__content { padding: 0 24px; padding-top: var(--nav-h); }
  .ob-feature { grid-template-columns: 1fr; min-height: auto; }
  .ob-feature--reverse .ob-feature__image { order: 0; }
  .ob-feature__image { height: 280px; }
  .ob-feature__content { height: auto; }
  .ob-feature__content { padding: 52px 28px; }
  .ob-carousel { height: 280px; }
  .ob-footer { flex-direction: column; text-align: center; padding: 32px 24px; }
}

@media (max-width: 600px) {
  .ob-hero__headline { font-size: 38px; }

  .ob-hero__cta { flex-direction: column; align-items: center; }}

/* ── Lightbox ───────────────────────────────────────────── */
.ob-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
}

.ob-lightbox.open { display: flex; }

.ob-lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 2px;
  user-select: none;
  animation: lbFadeIn 0.3s ease;
}

@keyframes lbFadeIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

.ob-lightbox__close {
  position: fixed;
  top: 20px; right: 24px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 9001;
  line-height: 1;
}

.ob-lightbox__close:hover { background: rgba(255,255,255,0.25); }

.ob-lightbox__prev,
.ob-lightbox__next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 20px;
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 9001;
  line-height: 1;
}

.ob-lightbox__prev { left: 20px; }

.ob-lightbox__next { right: 20px; }

.ob-lightbox__prev:hover,
.ob-lightbox__next:hover { background: rgba(255,255,255,0.25); }

.ob-lightbox__counter {
  position: fixed;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  font-family: var(--font-body);
  letter-spacing: 0.15em;
}

.ob-carousel__slide { cursor: grab; position: relative; }

.ob-carousel__slide:active { cursor: grabbing; }

.ob-carousel__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.3s;
  pointer-events: none;
}

.ob-carousel__slide:hover::after {
  background: rgba(255,255,255,0.06);
}

/* Fullscreen icon overlay on hover */
.ob-carousel__slide::before {
  content: '⤢';
  position: absolute;
  bottom: 20px;
  right: 24px;
  z-index: 5;
  color: rgba(255,255,255,0);
  font-size: 22px;
  transition: color 0.3s;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.ob-carousel__slide:hover::before {
  color: rgba(255,255,255,0.7);
}
