/* ================================================================
   Schmitt GmbH — Shared Stylesheet
   Ändere Farben unter "Brand Tokens" → gilt für alle Seiten.
   Tailwind-Utilities in tailwind-config.js (separate Datei).
   ================================================================ */

/* ----------------------------------------------------------------
   Brand Tokens — NUR HIER ändern
   ---------------------------------------------------------------- */
:root {
  --c-navy:        #1A2B38;
  --c-navy-light:  #24404F;
  --c-navy-dark:   #101D27;
  --c-teal:        #00B4C8;
  --c-teal-dark:   #0099AB;
  --nav-h:         5.5rem; /* Navbar-Höhe mobil  (88px)  */
  --nav-h-lg:      7rem;   /* Navbar-Höhe Desktop (112px) */
  --logo-h:        4rem;   /* Logo-Höhe mobil   (64px)  */
  --logo-h-lg:     5.5rem; /* Logo-Höhe Desktop (88px)  */
}

/* ----------------------------------------------------------------
   Base
   ---------------------------------------------------------------- */
html { scroll-behavior: smooth; }

/* Alpine.js: Elemente bis zur Initialisierung verbergen (kein Flackern) */
[x-cloak] { display: none !important; }

/* ----------------------------------------------------------------
   NAVBAR  (.site-header, .site-nav, .nav-*)
   ---------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(26, 43, 56, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.site-nav {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px)  { .site-nav { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .site-nav { padding: 0 2rem; } }

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
@media (min-width: 1024px) { .nav-row { height: var(--nav-h-lg); } }

.nav-logo {
  height: var(--logo-h);
  width: auto;
  flex-shrink: 0;
  display: block;
}
@media (min-width: 1024px) { .nav-logo { height: var(--logo-h-lg); } }

/* Startseite: Logo ist oben ausgeblendet und gleitet beim Scrollen
   aus dem Hero in die Navbar (Scroll-Handoff). */
.nav-logo-home {
  opacity: 0;
  transform: translateY(-0.85rem) scale(0.88);
  transform-origin: left center;
  transition: opacity 450ms ease,
              transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.nav-logo-home.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .nav-logo-home { transition: opacity 200ms ease; transform: none; }
  .nav-logo-home.is-visible { transform: none; }
}

/* Desktop Nav Links */
.nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(226, 232, 240);
  border-radius: 0.375rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms, background-color 150ms;
}
.nav-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link-active {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  text-decoration: none;
  white-space: nowrap;
}

/* Telefon im Header */
.nav-phone {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 150ms;
}
.nav-phone:hover { color: rgb(226, 232, 240); }

/* Hamburger Button (mobil) */
.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.375rem;
  color: rgb(226, 232, 240);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 150ms, background-color 150ms;
}
.hamburger:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Mobiles Menü */
.mobile-menu {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  background: var(--c-navy);
}

.mobile-nav-link {
  display: block;
  padding: 0.625rem 1rem;
  margin: 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(226, 232, 240);
  border-radius: 0.375rem;
  text-decoration: none;
  transition: background-color 150ms;
}
.mobile-nav-link:hover { background-color: rgba(255, 255, 255, 0.1); }

.mobile-nav-link-active {
  display: block;
  padding: 0.625rem 1rem;
  margin: 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  text-decoration: none;
}

/* ----------------------------------------------------------------
   BUTTONS  (.btn-*)
   ---------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  background-color: var(--c-teal);
  color: #fff;
  font-weight: 700;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.875rem;
  min-height: 2.75rem;
  border: none;
  cursor: pointer;
  transition: background-color 150ms;
  white-space: nowrap;
}
.btn-primary:hover { background-color: var(--c-teal-dark); }

.btn-primary-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  border-radius: 0.75rem;
  min-height: 3.25rem;
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border: 2px solid #fff;
  color: #fff;
  font-weight: 700;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.875rem;
  min-height: 2.75rem;
  transition: background-color 150ms, color 150ms;
  white-space: nowrap;
}
.btn-outline-white:hover { background-color: #fff; color: var(--c-navy); }

.btn-outline-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--c-navy);
  color: var(--c-navy);
  font-weight: 700;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.875rem;
  min-height: 2.75rem;
  transition: background-color 150ms, color 150ms;
}
.btn-outline-navy:hover { background-color: var(--c-navy); color: #fff; }

/* ----------------------------------------------------------------
   FOOTER  (.site-footer, .footer-*)
   ---------------------------------------------------------------- */
.site-footer {
  background-color: var(--c-navy);
  color: #fff;
  border-top: 3px solid var(--c-teal);
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 2rem;
}
@media (min-width: 640px)  { .footer-inner { padding: 3.5rem 1.5rem 2.5rem; } }
@media (min-width: 1024px) { .footer-inner { padding: 4rem 2rem 3rem; } }

.footer-logo {
  height: 2.5rem;
  width: auto;
  margin-bottom: 0.875rem;
}

.footer-heading {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgb(148, 163, 184);
  margin-bottom: 0.875rem;
}

.footer-link {
  display: block;
  color: rgb(203, 213, 225);
  font-size: 0.875rem;
  text-decoration: none;
  padding: 0.2rem 0;
  transition: color 150ms;
}
.footer-link:hover { color: #fff; }

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.footer-legal-link {
  font-size: 0.75rem;
  color: rgb(100, 116, 139);
  text-decoration: none;
  transition: color 150ms;
}
.footer-legal-link:hover { color: rgb(203, 213, 225); }

/* ----------------------------------------------------------------
   SERVICE CARDS  (.service-card, .service-img)
   ---------------------------------------------------------------- */
.service-card:hover .service-img { transform: scale(1.05); }
.service-img { transition: transform 0.4s ease; }
@media (prefers-reduced-motion: reduce) { .service-img { transition: none; } }

/* ----------------------------------------------------------------
   HERO-HINTERGRÜNDE  (.hero-*, .page-hero-base)
   ---------------------------------------------------------------- */
.hero-bg,
[class^="hero-"],
[class*=" hero-"] {
  background-size: cover;
  background-position: center;
}

/* Vollbild-Hero (Startseite) */
.hero-bg {
  background-image:
    linear-gradient(rgba(20,40,64,0.50), rgba(20,40,64,0.62)),
    url('images/home_banner2.jpg');
}

/* Unterseiten-Hero-Bilder */
.hero-sanitaer {
  background-image:
    linear-gradient(rgba(20,40,64,0.70), rgba(20,40,64,0.60)),
    url('images/sanitaer_banner.jpg');
}
.hero-heizung {
  background-image:
    linear-gradient(rgba(20,40,64,0.70), rgba(20,40,64,0.60)),
    url('images/heizung_banner.jpg');
}
.hero-klima {
  background-image:
    linear-gradient(rgba(20,40,64,0.70), rgba(20,40,64,0.60)),
    url('images/klima_technik_banner.jpg');
}
.hero-wasserschaden {
  background-image:
    linear-gradient(rgba(20,40,64,0.70), rgba(20,40,64,0.55)),
    url('images/wasserschaden_banner.jpg');
}
.hero-ueber-uns {
  background-image:
    linear-gradient(rgba(20,40,64,0.70), rgba(20,40,64,0.55)),
    url('images/ueber_uns_banner.jpg');
}
.hero-karriere {
  background-image:
    linear-gradient(rgba(20,40,64,0.72), rgba(20,40,64,0.55)),
    url('images/job_banner.jpg');
}
.hero-kontakt {
  background-image:
    linear-gradient(rgba(20,40,64,0.75), rgba(20,40,64,0.60)),
    url('images/kontakt_banner.jpg');
}

/* ----------------------------------------------------------------
   FORMULARE  (.form-*)
   ---------------------------------------------------------------- */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-navy);
  margin-bottom: 0.375rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(226, 232, 240);
  font-size: 0.875rem;
  font-family: inherit;
  background: #fff;
  color: rgb(51, 65, 85);
  outline: none;
  transition: border-color 150ms, box-shadow 150ms;
  min-height: 2.75rem;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--c-navy);
  box-shadow: 0 0 0 3px rgba(26, 43, 56, 0.12);
}
.form-textarea { resize: none; }
