/* ==========================================================================
   Basis-Styles und Resets
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #000;
  color: white;
  overflow-x: hidden;
  line-height: 1.8;
}

body::before { /* Nur noch die obere Leiste */
    content: '';
    position: fixed;
    left: 0;
    width: 100%;
    height: 2em;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    z-index: 999;
    top: 0;
    display: none; /* Initially hidden */
}

body.scrolled::before {
    display: block; /* Show only when scrolled */
}

body.legal-page {
    background-color: #111;
    color: #eee;
    overflow-x: visible;
}

body.detail-page {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}
body.detail-page::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: -1;
}


body.menu-open-no-scroll {
    overflow: hidden;
}


/* ==========================================================================
   Typografie
   ========================================================================== */
h1, h2 { font-family: 'Merriweather', serif; font-size: 2.4rem; margin-bottom: 24px; font-weight: 400; color: white; letter-spacing: 0.03em; }
h1 { font-size: 2.6rem; }
h2.sub-headline { margin-top: 60px; }
p, ul, li, ol { font-size: 1.05rem; max-width: 700px; margin-left: auto; margin-right: auto; margin-bottom: 1em; }
a { color: white; text-decoration: none; transition: color 0.3s ease; }
a:hover { text-decoration: none; }
a.link-styled { text-decoration: underline; font-weight: bold; }
a.link-styled:hover { color: #5f9ea0; } /* Green hover */
a.link-styled:active { color: #ff6347; } /* Red active/click */


/* ==========================================================================
   Layout: Header, Sections, Footer (Hauptseite)
   ========================================================================== */
header, section {
    min-height: 100vh;
    padding: 120px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}
header > *, section > * {
    z-index: 1;
    position: relative;
}

/* Hintergrundbilder */
#header { background-image: url('Assets/_MG_9458-2.webp'); }
#unternehmen { background-image: url('Assets/ModernWorkingSpace_768143348.webp'); }
#werte { background-image: url('Assets/ModernWorkingSpace_768456187.webp'); }
#leistungen { background-image: url('Assets/_MG_9524.webp'); }
#kontakt { background-image: url('Assets/Duesseldorf_485127278.webp'); }


#header {
    color: #555555;
}

#header h1, #header h2 {
    color: #555555;
}

/* NEUE REGEL: Angleichung der Schriftgröße */
#header h2 {
    font-size: 2.6rem;
}

section h2 {
    color: white;
}


footer {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    padding: 10px;
    text-align: center;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #555555;
}
footer .footer-copyright {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    margin-bottom: 0;
    max-width: none;
}
footer .footer-links {
    font-family: 'Merriweather', serif;
    font-size: 1.0rem;
    font-weight: 400;
    margin-bottom: 0;
    max-width: none;
    letter-spacing: 0.03em;
}
footer a {
    color: #555555;
    margin: 0 12px;
}

footer a:hover {
    color: #5f9ea0;
    text-decoration: none;
}
footer a:active {
    color: #ff6347;
}


/* ==========================================================================
   Hauptnavigation (Basis-Styles für Mobile/Default)
   ========================================================================== */

#main-nav {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 15px;
  z-index: 1000;
  width: 100%;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  justify-content: flex-end;
  position: sticky;
  top: 2em;
  height: 1.8em;
}

.nav-logo {
    display: block;
    height: 158px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(0.9em - 79px - 3px);
    z-index: 1001;
}
.nav-logo img { height: 100%; width: auto; display: block; }

.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1011;
}
.hamburger-line {
    width: 100%;
    height: 2.25px;
    background-color: #555555;
    border-radius: 10px;
    transition: all 0.3s linear;
}

#main-nav .mobile-menu-items {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.97);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1010;
  padding: 20px 0;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
#main-nav.menu-open .mobile-menu-items {
    display: flex;
    margin-top: 2em;
}

#main-nav.menu-open .mobile-menu-items a {
  display: block;
  width: 100%;
  padding: 27px 20px;
  text-align: center;
  color: #555555;
  font-size: 1.2rem;
  font-weight: 400;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-family: 'Merriweather', serif;
  letter-spacing: 0.03em;
}
#main-nav.menu-open .mobile-menu-items a:last-child { border-bottom: none; }
#main-nav.menu-open .mobile-menu-items a:hover,
#main-nav.menu-open .mobile-menu-items a:focus { background-color: rgba(0, 0, 0, 0.05); }

#main-nav.menu-open .hamburger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#main-nav.menu-open .hamburger-line:nth-child(2) { opacity: 0; }
#main-nav.menu-open .hamburger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.desktop-nav-logo { display: none; }

/* ==========================================================================
   Komponenten (Buttons, Listen, Triptychon etc.)
   ========================================================================== */
.btn {
    display: inline-block;
    background: white;
    color: #555555;
    padding: 14px 28px;
    border-radius: 0;
    font-family: 'Merriweather', serif;
    font-weight: 400;
    margin-top: 1em;
    margin-bottom: 1em;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 80%);
    transform: skewX(-20deg);
    transition: left 0.6s ease-in-out;
}

.btn:hover::after {
    left: 150%;
}

.btn:hover {
    background-color: #f0f0f0;
    color: #5f9ea0;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}
.btn:active {
    background-color: #fff;
    color: #ff6347;
    transform: translateY(0);
    box-shadow: none;
}


.logo-placeholder {
    width: 400px;
    height: auto;
    margin-bottom: 30px;
}

.intro-list { list-style: none; padding: 0; }
/* NEUE REGEL: Schriftgröße vergrößert */
.intro-list li {
    margin-bottom: 0.5em;
    font-size: 1.2rem;
}

.ablauf-liste { text-align: center; max-width: 600px; }
.ablauf-liste p { margin-bottom: 1em; }

.leistungen-triptychon {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}
.leistungen-triptychon a {
    display: block;
    text-align: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}
.leistungen-triptychon img {
    width: 100%;
    max-width: 250px;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.leistungen-triptychon a:hover img {
    transform: scale(1.05);
}

.leistungen-triptychon h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    padding: 15px;
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    width: 100%;
    transition: color 0.2s ease-in-out;
    text-shadow: 0 0 8px rgba(0,0,0,0.7);
    letter-spacing: 0.03em;
}

.leistungen-triptychon a:hover h3 {
    color: #5f9ea0;
}
.leistungen-triptychon a:active h3 {
    color: #ff6347;
}


.leistungen-triptychon a { max-width: 300px; }
.empfehlungen-text p {
    margin-bottom: 0.5em;
}


/* ==========================================================================
   Stile für Rechts- und Detailseiten
   ========================================================================== */
.legal-content-wrapper, .detail-content-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    position: relative;
    z-index: 1;
}
.legal-content-wrapper { background-color: rgba(20, 20, 20, 0.5); border-radius: 5px; }
.detail-content-wrapper { background-color: rgba(0, 0, 0, 0.3); border-radius: 5px; }

.legal-section, .detail-section { padding-top: 80px; margin-top: -80px; margin-bottom: 40px; }
.legal-section h1, .detail-section h1 { font-size: 2rem; margin-bottom: 20px; text-align: center; }
.legal-section p, .detail-section p { font-size: 1rem; line-height: 1.7; max-width: none; text-align: left; margin-left: 0; margin-right: 0; color: #ddd; }
.legal-section a { color: white; text-decoration: underline; }
.legal-section a:hover { color: #ccc; }


/* ==========================================================================
   Angepasste Stile für den Cookie Banner
   ========================================================================== */

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: white;
    z-index: 2000;
    display: flex;
    border-top: 1px solid rgba(255,255,255,0.1);
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 25px 15px;
}
#cookie-banner.show {
    transform: translateY(0);
}

#cookie-banner p {
    margin: 0 0 15px 0;
    flex-grow: 0;
    max-width: 100%;
}

#cookie-banner a {
    text-decoration: underline;
}

#cookie-banner .cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

#cookie-banner .btn {
    margin: 0;
    min-width: 150px;
    flex-grow: 0;
}

.btn.btn-primary {
    background: white;
    color: #555555;
    border: 2px solid white;
}

.btn.btn-primary:hover {
    background-color: #f0f0f0;
    color: #5f9ea0;
    border-color: #f0f0f0;
}

.btn.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ccc;
    color: white;
}


/* === Schein- und Schatten-Effekte nur für den Header === */
#header h1, #header h2, #header .intro-list {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}
#header .logo-placeholder {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 1.0));
}
#header .btn {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
#header .btn:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px);
}


/* ==========================================================================
   DESKTOP Media Query (min-width: 769px)
   ========================================================================== */
@media (min-width: 769px) {
  body { padding-top: 0; }

  #main-nav {
      justify-content: center;
  }

  #main-nav .mobile-menu-items {
    display: flex;
    position: static;
    flex-direction: row;
    background-color: transparent;
    border: none;
    padding: 0;
    gap: 24px;
    z-index: auto;
    align-items: center;
    margin: 0;
    flex: 1 1 auto;
    justify-content: center;
  }

  .logo-spacer {
      width: 180px;
  }

  #main-nav .mobile-menu-items a {
      padding: 5px 0;
      width: auto;
      border: none;
      font-size: 1.05rem;
      font-weight: 400;
      font-family: 'Merriweather', serif;
      display: block;
      color: #555555;
      letter-spacing: 0.03em;
  }
   #main-nav .mobile-menu-items a:hover {
       background-color: transparent;
       text-decoration: none;
       color: #5f9ea0;
   }
   #main-nav .mobile-menu-items a:active {
       color: #ff6347;
   }

  .hamburger-btn { display: none; }

  .desktop-nav-logo {
      display: block;
      height: 40px;
      margin: 0 20px;
  }
  .desktop-nav-logo img {
      height: 100%;
      width: auto;
  }
  #main-nav.has-side-logos {
      justify-content: space-between;
  }
}


/* ==========================================================================
   MOBILE Media Query (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  h1, h2 { font-size: 1.8rem; }
  h1 { font-size: 2rem; }
  #header h2 { font-size: 2rem; } /* Anpassung für Mobile */
  p, ul, li, ol { font-size: 1rem; }
  .intro-list li { font-size: 1.1rem; } /* Anpassung für Mobile */


  header, section {
    padding: 100px 15px;
    min-height: 80vh;
    background-attachment: scroll;
  }

  .logo-placeholder {
      width: 267px;
  }
  .btn { padding: 12px 24px; font-size: 0.9rem; }

  footer { padding: 15px; }

  #main-nav {
      top: 1.5em;
      height: 2.2em;
      justify-content: flex-end;
  }
  .nav-logo {
      height: 105px;
      top: calc(1.1em - 52.5px - 3px);
      left: 50%;
      transform: translateX(-50%);
  }

  #main-nav.menu-open .mobile-menu-items a {
      font-family: 'Merriweather', serif;
  }
  #main-nav.menu-open .mobile-menu-items a:hover {
      color: #5f9ea0;
      background-color: rgba(0, 0, 0, 0.05);
  }
  #main-nav.menu-open .mobile-menu-items a:active {
      color: #ff6347;
  }

  .desktop-nav-logo {
      display: none;
  }

  .hamburger-btn {
      display: flex;
  }

  #main-nav .nav-logo {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
  }

  #main-nav {
      align-items: center;
  }

  body.detail-page, body.legal-page { padding-top: 100px; }
  body.detail-page::before { background-attachment: scroll; position: absolute; height: 100%; z-index: -1; }
  .detail-content-wrapper, .legal-content-wrapper { margin: 20px auto; padding: 20px 15px; }
  .detail-section, .legal-section { padding-top: 60px; margin-top: -60px; }
  .detail-content-wrapper h1, .legal-content-wrapper h1 { font-size: 1.8rem; }

  #cookie-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  h1, h2 { font-size: 1.6rem; }
  h1 { font-size: 1.8rem; }
  #header h2 { font-size: 1.8rem; } /* Anpassung für Mobile */
  p, ul, li, ol { font-size: 0.95rem; }
  .intro-list li { font-size: 1rem; } /* Anpassung für Mobile */

  header, section { padding: 80px 10px; min-height: 70vh; }
  .btn { padding: 10px 20px; font-size: 0.85rem; }

  #main-nav {
      top: 1em;
      height: 2em;
  }
  .nav-logo {
      height: 107px;
      top: calc(1em - 53.5px - 3px);
  }
  .hamburger-btn { width: 28px; height: 28px; }
  .hamburger-line {
    height: 1.5px;
  }
  #main-nav.menu-open .hamburger-line:nth-child(1) { transform: translateY(5.25px) rotate(45deg); }
  #main-nav.menu-open .hamburger-line:nth-child(3) { transform: translateY(-5.25px) rotate(-45deg); }

  #main-nav.menu-open .mobile-menu-items a {
    font-size: 1.1rem;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  body.detail-page, body.legal-page { padding-top: 90px; }

  .detail-content-wrapper, .legal-content-wrapper { margin: 15px auto; padding: 15px; }
  .detail-content-wrapper h1, .legal-content-wrapper h1 { font-size: 1.6rem; }
}

/* ==========================================================================
   Stile für Flip-Karten im Werte-Bereich
   ========================================================================== */

#werte .flip-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1000px;
    margin: 20px 0;
}

#werte .flip-card {
    background-color: transparent;
    width: 250px;
    height: 250px;
    perspective: 1000px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

#werte .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    pointer-events: none;
}

#werte .flip-card.is-flipped .flip-card-inner {
    transform: rotateY(180deg);
}

#werte .flip-card-front,
#werte .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transform: translateZ(0);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
    box-sizing: border-box;
}

#werte .flip-card-back {
    transform: rotateY(180deg);
}

#werte .flip-card-front img,
#werte .flip-card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    transition: transform 0.4s ease-out;
}

#werte .flip-card:hover .flip-card-front img {
    transform: scale(1.08);
}

#werte .card-content {
    position: relative;
    z-index: 1;
    max-width: 80%;
}

#werte .card-content p {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0;
    max-width: none;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.9), 0 0 5px rgba(0, 0, 0, 0.7);
}

#werte .card-front-text {
    position: relative;
    z-index: 1;
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.9), 0 0 5px rgba(0, 0, 0, 0.7);
    padding: 10px;
    line-height: 1.2;
    transition: color 0.3s ease;
    letter-spacing: 0.03em;
}

#werte .flip-card:hover .card-front-text {
    color: #5f9ea0; /* Petrol */
}

#werte .flip-card-front::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

#werte .flip-card:hover .flip-card-front::after {
    background-color: rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Stile für Social Media Icons
   ========================================================================== */

.social-icons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px; /* Abstand zwischen den Icons */
    margin-top: 20px;
    margin-bottom: 20px;
}

.social-icon {
    height: 2.4rem; /* Gleiche Höhe wie h2 font-size */
    width: auto;
    filter: grayscale(1) opacity(0.7);
    transition: filter 0.3s ease-in-out;
}

.social-icon:hover {
    filter: grayscale(0) opacity(1);
    transform: scale(1.1);
}