/* =========================================
   HELVETICA – Custom Font-Family
   ========================================= */

:root {
  --pow-rot: rgba(224, 32, 38, 1);
}

:root {
  --story-dark: #111412;
  --story-white: #f4f3ef;
    --story-green: #111111bd;
  --story-gold: #0f0f0f;
  --story-text: #101110;
  --story-side: clamp(22px, 6vw, 110px);

  --philo-paper: #ece9e1;
  --philo-paper-deep: #d8d2c6;
  --philo-ink: #111111;
  --philo-dark: #0c0c0c;
  --philo-white: #f4f1ea;
  --philo-red: #d93b27;

    --paper: #F4F1EA;
    --white: #FFFFFF;

    --anthracite-100: #3A3A3A;
    --anthracite-200: #2A2A2A;
    --anthracite-300: #1E1E1E;
    --anthracite-400: #141414;
    --black: #090909;

    --accent: rgb(224, 32, 38);

  --philo-container: 1560px;
  --philo-gutter: clamp(20px, 5vw, 88px);

  --scroll-progress: 0;
  --scroll-velocity: 0;
  --scroll-direction: 1;
  --mouse-x: 0;
  --mouse-y: 0;
}

@font-face {
  font-family: "HelveticaCustom";
  src: url("../fonts/Helvetica.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HelveticaCustom";
  src: url("../fonts/Helvetica-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HelveticaCustom";
  src: url("../fonts/Helvetica-Oblique.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "HelveticaCustom";
  src: url("../fonts/Helvetica-BoldOblique.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "HelveticaCustom";
  src: url("../fonts/helvetica-light-587ebe5a59211.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* === Fonts Root === */
@font-face {
  font-family: "Jinky";
  src: url("../fonts/Jinky.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Pacifico";
  src: url("../fonts/Pacifico-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Martina";
  src: url("../fonts/Martina\ Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html, body {
  font-family: "HelveticaCustom", Helvetica, sans-serif;
  min-height: 100%;
  background-image: src;
}


html, body {
  min-height: 100%;
}
html, body {
  min-height: 100%;
  margin: 0;
}

body {
  background-image:
    linear-gradient(
      135deg,
      rgba(155,155,155,0.7) 10%,
      rgba(0, 0, 0, 0.9) 100%
    ),
    url("../bilder/schiefer.png");

  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  background-position: center, center;
}


body {
  position: relative;
  z-index: 1;
}


button,
input,
textarea {
  font-family: inherit;
}



/* ===== HEADER ===== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: #111;
  z-index: 1000;
}

.header-inner {
  height: 100%;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height:70px;
}

/* ===== BURGER ===== */
.burger-wrap {
  position: static;
}

.burger {
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}
/* ===== GLAS-MENÜ ===== */
.glass-menu {
  position: absolute;
  top: 132px;
  right: 0.5px;
  left: auto;
  width: 260px;

  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(5px) saturate(120%);
  border: 1px solid rgba(224, 32, 38, 0.3);

  border-radius: 1px;

  padding: 1rem;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-menu.open {
  opacity: 1;
  pointer-events: auto;
}

/* ===== HAUPTMENÜ – LANGSAM AUFFÄCHERN ===== */
.menu > li {
  opacity: 0;
  transform: translateY(-14px);
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-delay: calc(var(--i) * 120ms);
}

.glass-menu.open .menu > li {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SUBMENÜ – NOCH FEINER & VERZÖGERT ===== */
.submenu {
  list-style: none;
  margin: 0.4rem 0 0 0.9rem;
  padding: 0;
}

.submenu li {
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Submenü offen → Items nacheinander */
.has-submenu.open .submenu li {
  opacity: 1;
  transform: translateY(0);
}

.has-submenu.open .submenu li:nth-child(1) { transition-delay: 120ms; }
.has-submenu.open .submenu li:nth-child(2) { transition-delay: 240ms; }
.has-submenu.open .submenu li:nth-child(3) { transition-delay: 360ms; }

/* Typo */
.menu a,
.submenu-toggle {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  padding: 0.45rem 0;
  text-align: left;
  cursor: pointer;
  text-shadow: rgba(0, 0, 0, 0.6) 0px 2px 12px !important;
}

.submenu a {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* ===== SUBMENÜ – GESCHLOSSEN ===== */
.submenu {
  list-style: none;
  margin: 0;
  padding: 0;

  max-height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ===== SUBMENÜ – OFFEN ===== */
.has-submenu.open .submenu {
  max-height: 400px; /* ausreichend für Animation */
  pointer-events: auto;
}

.submenu li {
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.has-submenu.open .submenu li {
  opacity: 1;
  transform: translateY(0);
}

.has-submenu.open .submenu li:nth-child(1) { transition-delay: 160ms; }
.has-submenu.open .submenu li:nth-child(2) { transition-delay: 320ms; }
.has-submenu.open .submenu li:nth-child(3) { transition-delay: 480ms; }


.submenu-toggle {
  position: relative;
  padding-right: 0;
}

/* Pfeil */
.submenu-toggle::after {
  content: "▸";
  position: static;      /* nicht mehr absolut */
  display: inline-block;
  margin-left: 0.4rem;   /* Abstand zum Text */
  transform: rotate(0deg);
  font-size: 1.1rem;
  opacity: 1;
  transition: transform 0.35s ease, opacity 0.35s ease;
  vertical-align: middle;
text-shadow:
  0 2px 12px rgba(0, 0, 0, 0.6),
  0 2px 12px rgba(0, 0, 0, 0.6) !important;
}

/* Pfeil drehen wenn offen */
.has-submenu.open .submenu-toggle::after {
  transform: rotate(90deg);
  opacity: 1;
}

/* ===== MENÜPUNKTE – ZUNFTZEICHEN (PNG) ===== */

.menu > li > a,
.menu > li > .submenu-toggle {
  position: relative;
  padding-left: 2.2rem; /* Platz für Symbol */
}

/* Zunftsymbol */
.menu > li > a::before,
.menu > li > .submenu-toggle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);

  background-image: url("../bilder/zunftzeichen-rot.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;

  opacity: 0.85;
}
.submenu li a {
  position: relative;
  padding-left: 1.9rem;
  text-decoration: none;
}

.submenu li a::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
    background-image: url(../bilder/zunftzeichen-rot.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: 0.45;
}

.menu > li:hover > a::before,
.has-submenu.open > .submenu-toggle::before {
  opacity: 1;
}

/* Nur Listenpunkte deaktivieren */
.menu,
.submenu {
  list-style: none;
}

ul.menu {
  padding-left: 1rem;
}

#glassMenu > ul > li > a {
  text-decoration: none;
}

/* Zarte Trennlinien */
.menu > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);

  margin-bottom: 0.4rem;
}

/* letzte Linie entfernen */
.menu > li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Untermenü – flach, klar */
.submenu {
  background: rgba(0, 0, 0, 0.2); /* minimal anderer Ton */
  border-radius: 0;                      /* KEINE Rundungen */
  padding: 0;
  margin-top: 0.4rem;
}

/* Unterpunkte */
.submenu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

/* letzte Linie entfernen */
.submenu li:last-child {
  border-bottom: none;
}

.submenu li a {
  display: block;
  padding: 0.5rem 3rem;  /* ruhig, nicht luftig */
}









/*  ----- FOOTER ----- */

.site-footer {

  padding: 2.5rem 1.5rem 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(224, 32, 38, 0.5);
  color: rgba(255,255,255,0.85);
  z-index: 2;
}

.site-footer{
    position:relative;
    background:transparent;
}

.site-footer::before{
    content:"";
    position:absolute;
    inset:0;

    background:rgba(0,0,0,.50);
    backdrop-filter:blur(8px) saturate(120%);
    -webkit-backdrop-filter:blur(8px) saturate(120%);

    border-top:1px solid rgba(224,32,38,.5);

    z-index:0;
}

.footer-inner,
.footer-bottom,
.footer-logo--index{
    position:relative;
    z-index:1;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.footer-col p {
  margin: 0 0 0.6rem;
  line-height: 1.4;
}

.footer-col a {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

body > footer > div.footer-inner > div:nth-child(2) > a:nth-child(4) {
  text-decoration: underline;
}

.footer-col a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-col svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  opacity: 0.8;
  flex-shrink: 0;
}

.footer-col a:hover svg {
  opacity: 1;
}


.footer-col a:hover {
  color: rgba(224, 32, 38, 1);
}

.footer-col a:hover svg {
  fill: rgba(224, 32, 38, 1);
  opacity: 1;
}


/* Footer Text klar weiß */
.site-footer,
.site-footer p,
.site-footer a,
.site-footer h4 {
  color: #ffffff;
}

/* Icons ebenfalls voll weiß (außer Hover – bleibt rot) */
.site-footer svg {
  fill: #ffffff;
  opacity: 1;
}


/*
body:not(.index-page) .site-footer{
  margin-top:120px;
}
*/








.test-section {
  min-height: 150vh;            /* zwingt Scroll */
  padding: 160px 1.5rem 2rem;   /* oben Platz wegen Header */
  color: #ffffff;
}

.test-section h1 {
  margin-top: 0;
  font-size: 2.5rem;
}

.test-section p {
  max-width: 600px;
  font-size: 1.1rem;
  line-height: 1.5;
}


/* horizontale Trennlinien statt vertikal */

.footer-col {
  border-right: none;
  padding-right: 0;
  border-bottom: 1px solid rgba(224, 32, 38,0.3);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

/* -------------------------- */ 





/* ---------------------------------- */
/* ----- POP UP EXTERNE INHALTE ----- */
/* ---------------------------------- */



/* nutzt dein bestehendes Placeholder-Design als Basis */
#extPopup[hidden] { display: none !important; }

#extPopup {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

#extPopupBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

/* Panel = Desktop Modal */
#extPopupPanel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, 92vw);
  font-family: 'Lato';
  display: flex;
  flex-direction: column;
  gap: 12px;

  padding: clamp(14px, 2.2vw, 22px);
  border-radius: 1px;

  background: rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(5px) saturate(110%);
  backdrop-filter: blur(5px) saturate(110%);

  border: 1px solid rgba(224, 32, 38, 0.6);
  box-sizing: border-box;

  color: rgba(255,255,255,1);
}

#extPopupClose {
  position: absolute;
  top: 10px;
  right: 12px;

  border: 1px solid rgba(224, 32, 38, 0.6);
  background: rgba(255, 255, 255, 0.25);
  color: rgba(255,255,255,1);

  width: 36px;
  height: 36px;
  border-radius: 3px;
  cursor: pointer;
  line-height: 1;
  font-size: 22px;
}

#extPopupActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#extPopupActions button {
  appearance: none;
  border: 1px solid rgba(224, 32, 38, 0.6);
  background: rgba(224, 32, 38, 0.2);
  color: rgba(255, 255, 255, 1);
  padding: 10px 14px;
  border-radius: 3px;
  font: inherit;
  cursor: pointer;
}

#extPopup a {
  color: rgba(224, 32, 38, 0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Mobile = Bottom Sheet */
@media (max-width: 1250px) {
  #extPopupPanel {
    left: 50%;
    top: auto;
    bottom: 12px;
    transform: translateX(-50%);
    width: min(720px, 94vw);
    border-radius: 3px;
  }
}



