/* =========================================================
   Frank Komplettbäder — Custom CSS (ergänzt Tailwind CDN)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500;1,600&family=Oswald:wght@400;500;600;700&display=swap');

:root {
  --navy: #0e2055;
  --gold: #fbc852;
  --teal: #4db8cc;
}

*, *::before, *::after { box-sizing: border-box; }

::selection { background-color: var(--gold); color: var(--navy); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--navy); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Font aliases for Tailwind CDN custom config */
body { font-family: "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--navy); background: #fff; }
.font-display { font-family: 'Oswald', sans-serif; }
.font-serif  { font-family: 'Cormorant Garamond', serif; }

/* Color helpers not in default Tailwind palette */
.text-navy  { color: var(--navy); }
.bg-navy    { background-color: var(--navy); }
.border-navy { border-color: var(--navy); }
.text-gold  { color: var(--gold); }
.bg-gold    { background-color: var(--gold); }
.border-gold { border-color: var(--gold); }
.text-teal  { color: var(--teal); }
.border-teal { border-color: var(--teal); }

/* Opacity variants */
.text-gold\/75  { color: color-mix(in srgb, var(--gold) 75%, transparent); }
.text-gold\/70  { color: color-mix(in srgb, var(--gold) 70%, transparent); }
.text-gold\/50  { color: color-mix(in srgb, var(--gold) 50%, transparent); }
.text-gold\/40  { color: color-mix(in srgb, var(--gold) 40%, transparent); }
.text-gold\/25  { color: color-mix(in srgb, var(--gold) 25%, transparent); }
.text-gold\/20  { color: color-mix(in srgb, var(--gold) 20%, transparent); }
.text-navy\/70  { color: color-mix(in srgb, var(--navy) 70%, transparent); }
.text-navy\/65  { color: color-mix(in srgb, var(--navy) 65%, transparent); }
.text-navy\/60  { color: color-mix(in srgb, var(--navy) 60%, transparent); }
.text-navy\/50  { color: color-mix(in srgb, var(--navy) 50%, transparent); }
.text-navy\/40  { color: color-mix(in srgb, var(--navy) 40%, transparent); }
.border-navy\/20 { border-color: color-mix(in srgb, var(--navy) 20%, transparent); }
.border-navy\/15 { border-color: color-mix(in srgb, var(--navy) 15%, transparent); }
.border-navy\/10 { border-color: color-mix(in srgb, var(--navy) 10%, transparent); }
.border-teal\/40 { border-color: color-mix(in srgb, var(--teal) 40%, transparent); }
.border-gold\/50 { border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.bg-gold\/10    { background-color: color-mix(in srgb, var(--gold) 10%, transparent); }
.bg-navy\/60    { background-color: color-mix(in srgb, var(--navy) 60%, transparent); }
.bg-navy\/55    { background-color: color-mix(in srgb, var(--navy) 55%, transparent); }
.bg-navy\/35    { background-color: color-mix(in srgb, var(--navy) 35%, transparent); }
.bg-navy\/20    { background-color: color-mix(in srgb, var(--navy) 20%, transparent); }
.bg-navy\/10    { background-color: color-mix(in srgb, var(--navy) 10%, transparent); }
.bg-navy\/80    { background-color: color-mix(in srgb, var(--navy) 80%, transparent); }

/* Nav active link */
.nav-link-active { color: var(--gold) !important; }
@keyframes menuSlideIn {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}
.menu-item-animate {
  opacity: 0;
  animation: menuSlideIn 0.45s cubic-bezier(0.22,1,0.36,1) forwards;
}

/* Marquee */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.animate-marquee { animation: marquee 36s linear infinite; }
/* hover/click pause intentionally removed */

/* Hero masked line reveal */
.masked-line { display: block; overflow: hidden; padding-bottom: 0.18em; margin-bottom: -0.18em; }
.masked-line-inner {
  display: block;
  transform: translateY(130%);
  will-change: transform;
  transition: transform 1.1s cubic-bezier(0.22,1,0.36,1);
}
.masked-line-inner.revealed { transform: translateY(0); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1),
              transform 0.9s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Delayed reveals */
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* Service tile hover */
.service-tile-desc {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.group:hover .service-tile-desc { opacity: 1; transform: translateY(0); }

/* Service tile image zoom */
.group .tile-img { transition: transform 0.7s ease-out; }
.group:hover .tile-img { transform: scale(1.05); }

/* About image hover */
.group .about-img {
  filter: grayscale(1);
  transition: filter 0.7s ease, transform 0.7s ease;
}
.group:hover .about-img { filter: grayscale(0); transform: scale(1.05); }

/* Accordion */
.accordion-content {
  display: grid !important;
  grid-template-rows: 0fr !important;
  overflow: hidden !important;
  transition: grid-template-rows 0.4s cubic-bezier(0.22,1,0.36,1) !important;
}
.accordion-content.open {
  grid-template-rows: 1fr !important;
}
.accordion-inner { overflow: hidden; }

/* Before/After slider */
.ba-wrap {
  cursor: ew-resize;
  user-select: none;
  position: relative;
  display: block;
  overflow: visible;
}
.ba-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ba-before-clip {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  overflow: hidden;
  /* width set via JS */
}
.ba-before-clip img {
  position: absolute;
  top: 0; left: 0;
  width: var(--ba-full-w, 100%);
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.ba-divider {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  pointer-events: none;
}
.ba-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(14,32,85,0.5);
  transition: transform 0.3s ease;
  pointer-events: none;
  z-index: 2;
}
.ba-wrap:hover .ba-handle { transform: translate(-50%, -50%) scale(1.1); }

/* Parallax hero bg */
#hero-bg { will-change: transform; }

/* Input styles (contact form) */
.field-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid color-mix(in srgb, var(--navy) 30%, transparent);
  border-radius: 0;
  padding: 12px 0;
  color: var(--navy);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}
.field-input::placeholder { color: color-mix(in srgb, var(--navy) 40%, transparent); }
.field-input:focus { border-bottom-color: var(--gold); }
select.field-input { background: white; cursor: pointer; }

/* Footer dark bg text helpers */
.text-white\/60 { color: rgba(255,255,255,0.6); }
.text-white\/70 { color: rgba(255,255,255,0.7); }
.text-white\/80 { color: rgba(255,255,255,0.8); }
.text-white\/40 { color: rgba(255,255,255,0.4); }
.text-white\/10 { color: rgba(255,255,255,0.1); }
.border-white\/10 { border-color: rgba(255,255,255,0.1); }
.border-white\/60 { border-color: rgba(255,255,255,0.6); }

/* bg-white/95 for nav */
.bg-white\/95 { background-color: rgba(255,255,255,0.95); }

/* Footer logo — Option 3: Logo + Trennlinie + Firmenname */
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-logo-wrap img {
  height: 100px;
  width: auto;
  object-fit: contain;
  filter: none;
  opacity: 0.9;
}
.footer-logo-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.footer-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.footer-logo-text .name {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.footer-logo-text .sub {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

/* Underline CTA button (Option B) */
.btn-underline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}
.btn-underline::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.btn-underline:hover { color: var(--gold); }
.btn-underline:hover::after { transform: scaleX(1.05); }
.btn-underline svg { transition: transform 0.3s; }
.btn-underline:hover svg { transform: translateX(4px); }

/* Underline variant auf dunklem Hintergrund */
.btn-underline-light {
  color: rgba(255,255,255,0.85);
}
.btn-underline-light::after { background: var(--gold); }
.btn-underline-light:hover { color: var(--gold); }
