/* =========================================================
   GLOBAL BASICS
========================================================= */

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: #1a1a1a;
  background: #ffffff;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-full {
  width: 100%;
  padding: 120px 0;
}

/* =========================================================
   GLOBAL ANIMATIONS 
========================================================= */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-parent > * {
  opacity: 0;
  transform: translateY(20px);
}

.stagger-parent.visible > * {
  animation: staggerFade 0.7s ease forwards;
}

@keyframes staggerFade {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Verzögerung für Kinder */
.stagger-parent.visible > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-parent.visible > *:nth-child(2) { animation-delay: 0.12s; }
.stagger-parent.visible > *:nth-child(3) { animation-delay: 0.19s; }
.stagger-parent.visible > *:nth-child(4) { animation-delay: 0.26s; }
.stagger-parent.visible > *:nth-child(5) { animation-delay: 0.33s; }
.stagger-parent.visible > *:nth-child(6) { animation-delay: 0.40s; }
.stagger-parent.visible > *:nth-child(7) { animation-delay: 0.47s; }
.stagger-parent.visible > *:nth-child(8) { animation-delay: 0.54s; }

/* =========================================================
   HEADER (Sticky + Fade-In)
========================================================= */

header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #ffffff;
  padding: 0;
  border-bottom: 2px solid #ee3338;
  animation: fadeHeader 0.6s ease forwards;
}

@keyframes fadeHeader {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Kontaktzeile */
.header-contact-bar {
  background: #0056a6;
  color: #ffffff;
  padding: 6px 0;
  font-size: 14px;
}

.header-contact-bar .container {
  display: flex;
  align-items: center;
  gap: 25px;
}

.header-contact-bar a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-contact-bar i {
  font-style: normal;
  font-weight: bold;
  font-size: 15px;
}

/* Header-Hauptbereich */
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 18px 0;
  gap: 40px;
}

.logo {
  height: 60px;
  animation: fadeLogo 0.8s ease forwards;
}

@keyframes fadeLogo {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Navigation */
nav {
  text-align: right;
}

nav a {
  margin: 0 18px;
  text-decoration: none;
  color: #0056a6;
  font-weight: bold;
  font-size: 14px;
  transition: color 0.25s ease;
}

nav a:hover {
  color: #003f7d;
}

/* Burger */
.burger {
  display: none;
  width: 28px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 3px;
  background: #0056a6;
  border-radius: 2px;
}

/* =========================================================
   HERO (mit Fade-In)
========================================================= */

.hero {
  height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../img/croelle-haustechnik-recklinghausen-hero.jpg") center/cover no-repeat;
  animation: heroZoomPan 22s ease-in-out infinite alternate;
}

@keyframes heroZoomPan {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  50% { transform: scale(1.06) translate3d(-10px, -6px, 0); }
  100% { transform: scale(1.1) translate3d(8px, 4px, 0); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-textbox {
  background: rgba(0,0,0,0.65);
  padding: 36px 40px;
  border-radius: 6px;
  animation: fadeHero 1s ease forwards;
}

@keyframes fadeHero {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-textbox h1 {
  font-size: 42px;
  margin-bottom: 12px;
}

.hero-textbox p {
  font-size: 18px;
  margin: 0;
}

/* =========================================================
   LEISTUNGEN (mit Scroll-Reveal)
========================================================= */

.section-leistungen {
  color: #ffffff;
  padding: 120px 0;
  background-image: radial-gradient(
    circle farthest-corner at 67% 50%,
    #4fa3ff 10%,
    #1a3d7c 69%
  );
}

.leistungen-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.leistungen-grid-2 img {
  width: 100%;
  border-radius: 8px;
}

.leistungen-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.leistungen-grid-3-item {
  background: #ffffff;
  color: #1a1a1a;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leistungen-grid-3-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
}

.leistungen-grid-3-item img {
  width: 160px;
  margin-bottom: 20px;
}

/* =========================================================
   GESCHÄFTSFÜHRER-PANEL (Fade-Upp)
========================================================= */

.gf-panel {
  background: #ffffff;
  border-radius: 18px;
  padding: 60px;
  margin-top: 80px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.gf-flex {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
}

.gf-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.gf-text h2 {
  margin: 0 0 6px;
  color: #1a1a1a;
}

.gf-role {
  margin: 0 0 20px;
  font-weight: bold;
  color: #0056a6;
}

.gf-text blockquote {
  font-size: 20px;
  line-height: 1.5;
  color: #1a1a1a;
  margin: 0;
  padding-left: 20px;
  border-left: 4px solid #0056a6;
}

/* =========================================================
   MARKENPARTNER (mit Stagger)
========================================================= */

.marken-panel {
  background: #ffffff;
  border-radius: 18px;
  padding: 60px;
  margin-top: 120px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.marken-textblock h2 {
  margin-top: 0;
}

/* Text im Marken-Panel schwarz */
.marken-panel .marken-textblock,
.marken-panel .marken-textblock h2,
.marken-panel .marken-textblock p {
  color: #1a1a1a;
}

.marken-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.marken-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.logo-item img {
  max-width: 150px;
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.7);
  opacity: 0.6;
  transform: scale(1);
  transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

.logo-item:hover img {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  transform: scale(1.05);
}

/* =========================================================
   DETAIL-BOXEN
========================================================= */

.section-white {
  background: #ffffff;
  padding: 60px 0;
}

.detail-box {
  border-radius: 12px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.bg-blue   { background: #1a3d7cd9; color: #fff; }
.bg-red    { background: #c03232e6; color: #fff; }
.bg-yellow { background: #f5b000cc; color: #fff; }

.detail-text h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.detail-text h3 {
  font-size: 32px;
  margin-bottom: 16px;
}

.detail-text p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.detail-text ul li {
  font-size: 16px;
  line-height: 1.2;
  margin-bottom: 14px;
}


.detail-image img {
  width: 100%;
  border-radius: 6px;
}

/* =========================================================
   FOOTER (Premium)
========================================================= */

.premium-footer {
  background: #003f7d;
  color: #ffffff;
  padding-top: 40px;
  margin-top: 80px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
}

.footer-logo {
  width: 140px;
  margin-bottom: 20px;
}

.footer-claim {
  font-size: 16px;
  opacity: 0.9;
  margin: 0;
}

.footer-col h4 {
  margin-bottom: 12px;
  font-size: 18px;
  color: #ffffff;
}

.footer-col p,
.footer-col a,
.footer-col li {
  font-size: 15px;
  color: #e6eef7;
  text-decoration: none;
  list-style: none;
  margin: 0 0 8px;
}

.footer-col a:hover {
  color: #ffffff;
}
/* Footer-Links komplett weiß – alle Zustände */
.footer-inner a,
.footer-inner a:visited,
.footer-inner a:active,
.footer-inner a:focus {
  color: #ffffff !important;
  text-decoration: none;
}

.footer-inner a:hover {
  color: #ffffff !important;
  opacity: 0.8;
}


.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: 20px 0;
  margin-top: 20px;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

/* =========================================================
   SCROLL-TO-TOP BUTTON (Premium)
========================================================= */

.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #0056a6;
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .burger {
    display: flex;
  }

  nav {
    display: none;
    flex-direction: column;
    text-align: right;
    gap: 12px;
    margin-top: 12px;
  }

  nav.nav-open {
    display: flex;
  }

  .hero {
    height: 60vh;
  }

  .hero-textbox h1 {
    font-size: 30px;
  }

  .leistungen-grid-2 {
    grid-template-columns: 1fr;
  }

  .leistungen-grid-3 {
    grid-template-columns: 1fr;
  }

  .marken-flex {
    grid-template-columns: 1fr;
  }

  .marken-logos {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-box {
    grid-template-columns: 1fr;
    padding: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

@media (max-width: 900px) {

  .page-title {
    font-size: 28px;
  }

  .page-intro {
    font-size: 16px;
  }

  .privacy-section h2 {
    font-size: 22px;
  }

  .privacy-section p,
  .privacy-section li {
    font-size: 15px;
  }
}


/* Minimalistischer DSGVO-Hinweis */
.privacy-hint {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #1a1a1a;
  color: #ffffff;
  padding: 14px 18px;
  font-size: 14px;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 99999;
  opacity: 0.95;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.privacy-hint.hide {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* =========================================================
   MOBILE OPTIMIERUNG (Premium)
========================================================= */

@media (max-width: 900px) {

  /* Allgemeine Abstände */
  .section-full {
    padding: 80px 0;
  }

  .container {
    width: 92%;
  }

  /* Header */
  .header-inner {
    padding: 14px 0;
    gap: 20px;
  }

  nav a {
    font-size: 16px;
    padding: 6px 0;
  }

  /* Hero */
  .hero {
    height: auto;
    padding: 80px 0 60px;
    text-align: center;
  }

  .hero-textbox {
    padding: 28px 26px;
  }

  .hero-textbox h1 {
    font-size: 28px;
    line-height: 1.25;
  }

  .hero-textbox p {
    font-size: 16px;
  }

  /* Leistungen */
  .leistungen-grid-2 {
    gap: 40px;
    margin-bottom: 60px;
  }

  .leistungen-grid-3 {
    gap: 30px;
  }

  .leistungen-grid-3-item {
    padding: 32px 24px;
  }

  .leistungen-grid-3-item img {
    width: 130px;
  }

  /* Geschäftsführer */
  .gf-panel {
    padding: 40px 30px;
  }

  .gf-flex {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .gf-text blockquote {
    font-size: 18px;
  }

  /* Marken */
  .marken-panel {
    padding: 40px 30px;
  }

  .marken-flex {
    gap: 40px;
  }

  .marken-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .logo-item img {
    max-width: 120px;
    max-height: 50px;
  }

  /* Detail-Boxen */
  .detail-box {
    padding: 40px 30px;
    gap: 30px;
  }

  .detail-text h2 {
    font-size: 26px;
  }

  .detail-text p,
  .detail-text li {
    font-size: 15px;
  }

  /* Footer */
  .footer-inner {
    gap: 40px;
  }

  .footer-col h4 {
    font-size: 17px;
  }

  .footer-col p,
  .footer-col a,
  .footer-col li {
    font-size: 15px;
  }

/* Footer-Links komplett weiß – alle Zustände */
.footer-inner a,
.footer-inner a:visited,
.footer-inner a:active,
.footer-inner a:focus {
  color: #ffffff !important;
  text-decoration: none;
}

.footer-inner a:hover {
  color: #ffffff !important;
  opacity: 0.8;
}

  /* Scroll Button */
  .scroll-top-btn {
    width: 46px;
    height: 46px;
    font-size: 22px;
    bottom: 16px;
    right: 16px;
  }
}

/* Ultra-Small Devices (iPhone SE, 360px) */
@media (max-width: 380px) {

  .hero-textbox h1 {
    font-size: 24px;
  }

  .leistungen-grid-3-item img {
    width: 110px;
  }

  .detail-box {
    padding: 32px 24px;
  }

  .scroll-top-btn {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
}
/* =========================================================
   DATENSCHUTZERKLÄRUNG – Layout
========================================================= */

.section-privacy-blue {
  padding: 120px 0;
  background-image: radial-gradient(
    circle farthest-corner at 67% 50%,
    #4fa3ff 10%,
    #1a3d7c 69%
  );
  color: #ffffff;
}

.section-privacy-blue .page-title {
  color: #ffffff;
}

.section-privacy-blue .page-intro {
  color: #ffffff;
  opacity: 0.95;
}

.section-privacy-blue .privacy-section h2,
.section-privacy-blue .privacy-section h3,
.section-privacy-blue .privacy-section h4 {
  color: #ffffff;
}

.section-privacy-blue .privacy-section p,
.section-privacy-blue .privacy-section li {
  color: #ffffff;
  opacity: 0.95;
}

.section-privacy-blue a {
  color: #ffffff;
  text-decoration: underline;
  opacity: 0.95;
  transition: opacity 0.25s ease;
}

.section-privacy-blue a:hover {
  opacity: 1;
}

.section-privacy-blue ul {
  padding-left: 20px;
}

