/* ============================================================
   Site Chrome: Top Caution + Sticky Header + Footer
   Wird auf index.html, impressum.html, datenschutz.html eingebunden.
   ============================================================ */

/* ----- Top Caution Stripe (rot/schwarz) ----- */
.ed-caution {
  height: 10px;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--ed-red) 0px,
    var(--ed-red) 18px,
    var(--ed-pitch) 18px,
    var(--ed-pitch) 36px
  );
}
.ed-caution--thin { height: 8px; }

/* ----- Header: micro-line above main nav ----- */
.site-header { position: sticky; top: 0; z-index: 60; }
.site-microline {
  background: var(--ed-pitch);
  border-bottom: 1px solid var(--ed-rule);
  color: rgba(216,210,196,.55);
  font-family: var(--ed-font-mono);
  font-size: 10.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-align: center;
  padding: 9px 16px;
  font-weight: 500;
}
.site-microline .yel { color: var(--ed-yellow); font-weight: 600; }

.site-nav { background: var(--ed-black); border-bottom: 1px solid var(--ed-rule); }
.site-nav__inner {
  max-width: 1400px; margin: 0 auto; padding: 18px 56px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 48px;
}
.site-nav__brand img { height: 38px; filter: brightness(0) invert(1); display: block; }
.site-nav__links { display: flex; gap: 38px; justify-content: center; }
.site-nav__link {
  position: relative;
  font-family: var(--ed-font-mono); font-size: 14px;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(216,210,196,.82);
  padding: 10px 0;
  border-bottom: 0;
  transition: color 220ms cubic-bezier(.2,.7,.2,1);
  white-space: nowrap;
  text-decoration: none;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1.5px;
  background: var(--ed-yellow);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
}
.site-nav__link:hover { color: var(--ed-yellow); }
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__link.is-active { color: var(--ed-yellow); }
.site-nav__link.is-active::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .site-nav__link::after { transition: none; }
}
.site-nav__right { display: flex; align-items: center; gap: 22px; }
.site-nav__phone {
  font-family: var(--ed-font-display); font-weight: 700; font-size: 22px;
  color: var(--ed-bone); letter-spacing: .02em; white-space: nowrap; text-align: right;
  line-height: 1; transition: color 150ms; text-decoration: none;
}
.site-nav__phone:hover { color: var(--ed-yellow); }
.site-nav__phone .lab {
  font-family: var(--ed-font-mono); font-size: 10px; letter-spacing: .22em;
  color: rgba(216,210,196,.55); display: block; margin-bottom: 4px; font-weight: 500;
}
.site-nav__cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ed-font-mono); text-transform: uppercase;
  letter-spacing: .14em; font-size: 11.5px; font-weight: 600;
  padding: 12px 18px; background: var(--ed-red); color: #fff;
  transition: background 150ms;
  white-space: nowrap;
  text-decoration: none;
}
.site-nav__cta:hover { background: var(--ed-red-deep); }
.site-nav__cta::after { content: "\2192"; font-family: var(--ed-font-display); font-size: 18px; line-height: 1; transform: translateY(-1px); }

/* ----- Burger-Button (Mobile-Navigation Trigger) ----- */
.site-nav__burger {
  display: none;
  width: 46px; height: 46px;
  background: rgba(228,27,18,.0);
  border: 1.5px solid var(--ed-yellow, #ffe112);
  cursor: pointer;
  padding: 12px 10px;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  flex-shrink: 0;
  border-radius: 2px;
  transition: background .15s ease, border-color .15s ease;
}
.site-nav__burger:hover,
.site-nav__burger:focus-visible { background: rgba(228,27,18,.85); border-color: var(--ed-yellow); outline: none; }
.site-nav__burger span {
  display: block;
  width: 100%; height: 2.5px;
  background: var(--ed-yellow, #ffe112);
  transition: transform .2s ease, opacity .2s ease, background .15s ease;
  transform-origin: center;
  border-radius: 1px;
}
.site-nav__burger:hover span,
.site-nav__burger:focus-visible span { background: #fff; }
.site-nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ----- FOOTER ----- */
.foot {
  background: #050505;
  color: rgba(216,210,196,.7);
  padding: 80px 0 32px;
  border-top: 1px solid var(--ed-rule);
}
.foot a { color: inherit; transition: color 150ms; text-decoration: none; }
.foot a:hover { color: var(--ed-yellow); }
.foot__inner {
  max-width: 1400px; margin: 0 auto; padding: 0 56px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 56px;
}
.foot__brand img { height: 44px; filter: brightness(0) invert(1); opacity: .92; }
.foot__brand .foot__logo { display: inline-block; line-height: 0; }
.foot__brand .foot__logo img { height: 56px; width: auto; filter: none; opacity: 1; }
.foot__brand .lockup { font-family: var(--ed-font-display); font-weight: 700; font-size: 56px; color: #fff; line-height: 1; letter-spacing: .02em; }
.foot__brand .lockup .dot { color: var(--ed-red); }
.foot__brand p { margin: 22px 0 0; max-width: 38ch; font-family: var(--ed-font-body); font-size: 14.5px; line-height: 1.65; color: rgba(216,210,196,.65); }
.foot__col h5 {
  font-family: var(--ed-font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ed-yellow);
  margin: 0 0 14px;
  font-weight: 600;
}
.foot__col a, .foot__col p {
  display: block; font-family: var(--ed-font-body);
  font-size: 14.5px; line-height: 1.75; margin: 0;
}
.foot__legal {
  margin-top: 56px; padding: 18px 56px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px;
  font-family: var(--ed-font-mono); font-size: 10.5px; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(216,210,196,.45);
  max-width: 1400px; margin-left: auto; margin-right: auto;
  border-top: 1px solid var(--ed-rule);
}
.foot__legal a { color: rgba(216,210,196,.65); }
.foot__legal a.fox,
.foot__legal .foot__fox .fox { color: var(--ed-yellow); font-weight: 600; }
.foot__legal .right { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.foot__fox {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(216,210,196,.65);
  transition: opacity .15s ease;
}
.foot__fox:hover { opacity: .85; }
.foot__fox img { height: 18px; width: auto; opacity: .95; }

/* ----- Responsive Header + Footer ----- */
@media (max-width: 960px) {
  .site-nav { position: relative; }
  .site-nav__inner { padding: 14px 20px; grid-template-columns: auto 1fr auto; gap: 14px; }
  /* Burger immer ganz rechts in der Nav-Bar */
  .site-nav__right { gap: 14px; justify-self: end; margin-left: auto; }
  .site-nav__right .site-nav__cta { display: none; }
  /* Phone in der Nav-Bar auf Mobile verstecken (Floating-Phone, Hero-Phone und Kontakt-Phone reichen) */
  .site-nav__phone { display: none; }
  .site-microline { padding: 8px 12px; font-size: 9.5px; letter-spacing: .2em; }

  /* Burger sichtbar */
  .site-nav__burger { display: flex; }

  /* Links als Drop-Down Overlay */
  .site-nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ed-pitch, #0a0a0a);
    border-top: 1px solid var(--ed-rule, rgba(216,210,196,.12));
    border-bottom: 1px solid var(--ed-rule, rgba(216,210,196,.12));
    padding: 8px 20px 12px;
    gap: 0;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
    z-index: 50;
    box-shadow: 0 14px 24px rgba(0,0,0,.45);
  }
  .site-nav.is-open .site-nav__links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear 0s;
  }
  /* Mobile-Menue-Eintraege: groesser, dichter beieinander */
  .site-nav__link {
    padding: 11px 4px;
    border-bottom: 1px solid rgba(216,210,196,.1);
    font-size: 18px;
    letter-spacing: .14em;
  }
  .site-nav__link:last-child { border-bottom: 0; }
  .site-nav__link::after { display: none; }

  /* Footer: Mobile-Texte zentriert (Timo-Wunsch) */
  .foot__inner { grid-template-columns: 1fr; gap: 36px; padding: 0 20px; text-align: center; }
  .foot__brand p { margin-left: auto; margin-right: auto; }
  .foot__brand .foot__logo { display: inline-block; }
  .foot__legal {
    padding: 18px 20px 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
  }
  .foot__legal > * { align-self: center; }
  .foot__legal .right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
  }
  .foot__legal .right > * { align-self: center; }
  .foot__legal .right a { display: inline-flex; justify-content: center; }
  .foot__fox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: max-content;
    margin: 0 auto;
  }
}
