/*---------------------------------------------------------------------------------

	Theme Name: Session Culture
    Text Domain: session-culture
	Version: 1.0.1
	Description: Custom theme for the Session Culture movie project. High-performance, single-page design.
	Tags: movie, one-page, custom-theme
	Author: Florian Breitenberger
	Author URI: https://session-culture.com
	License: GNU General Public License version 2.0
	License URI: http://www.gnu.org/licenses/gpl-2.0.html
	Theme URI: https://session-culture.com
	Requires PHP: 7.4
	Tested up to: 6.4
	
	All files, unless otherwise stated, are released under the GNU General Public License
	version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html)

-----------------------------------------------------------------------------------

	0.	CSS Reset
	1.	Document Setup
	2.  Structure
	3.	Header
	4.	Blog
	5.  Entry Content
	6.	Comments
	7.	Pagination
	8.	Error 404
	9.	Footer
	10. Media Queries

----------------------------------------------------------------------------------- */

/* Grundzustand: unsichtbar + verschoben */
/* Wir verwenden data-bh-layout um die Richtung automatisch zu steuern */
.home .wp-block-media-text__content,
.home .wp-block-media-text__media {
  opacity: 0;
  transition: opacity .6s ease-out, transform .6s ease-out;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* Default: Text von links, Bild von rechts */
.home .wp-block-media-text[data-bh-layout="media-right"] .wp-block-media-text__content {
  transform: translateX(-24px);
}

.home .wp-block-media-text[data-bh-layout="media-right"] .wp-block-media-text__media {
  transform: translateX(24px);
}

/* In-view: auf Position */
.home .wp-block-media-text.in-view[data-bh-layout="media-right"] .wp-block-media-text__content,
.home .wp-block-media-text.in-view[data-bh-layout="media-right"] .wp-block-media-text__media {
  opacity: 1;
  transform: translateX(0);
}

/* Wenn media zuerst (media links): Bild von links, Text von rechts */
.home .wp-block-media-text[data-bh-layout="media-left"] .wp-block-media-text__content {
  transform: translateX(24px);
}

.home .wp-block-media-text[data-bh-layout="media-left"] .wp-block-media-text__media {
  transform: translateX(-24px);
}

.home .wp-block-media-text.in-view[data-bh-layout="media-left"] .wp-block-media-text__content,
.home .wp-block-media-text.in-view[data-bh-layout="media-left"] .wp-block-media-text__media {
  opacity: 1;
  transform: translateX(0);
}

/* optional: leichter Versatz / Stagger */
.home .wp-block-media-text.in-view .wp-block-media-text__content {
  transition-delay: 0ms;
}

.home .wp-block-media-text.in-view .wp-block-media-text__media {
  transition-delay: 80ms;
}

.home .wp-block-media-text[data-bh-layout="media-left"].in-view .wp-block-media-text__content {
  transition-delay: 80ms;
}

.home .wp-block-media-text[data-bh-layout="media-left"].in-view .wp-block-media-text__media {
  transition-delay: 0ms;
}

/* Mobile: gestapelt — keine seitlichen Bewegungen */
@media (max-width: 720px) {

  .home .wp-block-media-text__content,
  .home .wp-block-media-text__media {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}

/* Reduced motion: respektieren */
@media (prefers-reduced-motion: reduce) {

  .home .wp-block-media-text__content,
  .home .wp-block-media-text__media {
    transform: none !important;
    transition: none !important;
    opacity: 1 !important;
  }
}

/* -------------------------------------------------------------------------------- */
/*	0. CSS Reset
/* -------------------------------------------------------------------------------- */


html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html.no-scroll,
body.no-scroll {
  overflow: hidden;
}

h3,
h4,
h5,
h6,
blockquote,
address,
cite,
img,
fieldset,
form,
label,
legend,
table,
caption,
tr,
th,
td {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: normal;
  font-style: normal;
  font-size: 100%;
  line-height: 1;
  text-align: left;
}

h2 em {
  font-weight: normal;
}

h3 {
  font-size: 28px;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* -------------------------------------------------------------------------------- */
/*	1. Document Setup
/* -------------------------------------------------------------------------------- */

body * {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

a {
  color: #000;
}

a:hover {
  color: #00778a;
}

body a:not(.underline-link):not(.wp-block-button__link):hover

/*,
body a:focus*/
  {
  text-decoration: underline;
}

.wp-block-accordion-heading__toggle-title {
  margin-left: 12px;
}

.wp-block-accordion-heading__toggle {
  background: transparent !important;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

iframe {
  display: block;
  width: 100%;
}

.clear {
  clear: both;
}

::selection {
  background: #000;
  color: #FFF;
}

input::-webkit-input-placeholder {
  color: #767676;
}

input:-ms-input-placeholder {
  color: #767676;
}

input::-moz-placeholder {
  color: #767676;
}

.underline-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

/* Pseudo-Element als Linie */
.underline-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  /* Abstand unterhalb des Textes */
  height: 6px;
  /* Linienstärke */
  width: 100%;
  /* volle Breite, wird mit transform skaliert */
  background: #00778a;
  /* nutzt Textfarbe */
  transform: scaleX(0);
  /* initial unsichtbar (skaliert horizontal auf 0) */
  transform-origin: left;
  /* Animation läuft von links nach rechts */
  transition: transform 0.3s ease;
  /* Dauer 0.3s wie gefordert */
  pointer-events: none;
}

/* Hover / Fokus: skaliere die Linie auf 100% */
.underline-link:hover::after {
  transform: scaleX(1);
}

/* Reduced motion: keine Animation, Linie erscheint sofort bei Hover */
@media (prefers-reduced-motion: reduce) {
  .underline-link::after {
    transition: none;
  }
}

/* -------------------------------------------------------------------------------- */
/*	2.	Structure
/* -------------------------------------------------------------------------------- */

@media (min-width: 769px) {

  /* Oder global für alle Elemente, die eine ID haben könnten */
  html {
    scroll-padding-top: 180px;
  }
}

@media (max-width: 768px) {

  /* Oder global für alle Elemente, die eine ID haben könnten */
  html {
    scroll-padding-top: 100px;
  }
}

/* Core Performance Fix für alle animierten TOC-Elemente */
#mobile-toc-trigger,
#rank-math-toc,
#desktop-toc-indicator,
.toc-dot {
  will-change: transform, top, opacity;
}

body:not(.home) .wp-block-columns {
  background-color: #f9f9f9;
  padding: 24px 36px 48px;
  margin-top: 38px;
  gap: 38px;
}

@media (min-width: 769px) {
  #rank-math-toc.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
  }
}

/* Styling der Liste im Panel */
#rank-math-toc nav ul {
  list-style: none;
  padding: 0;
}

#rank-math-toc li {
  margin-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 8px;
}

#rank-math-toc a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  display: block;
}

/* TOC */
/* Der schwebende Button mittig oben */
/* TOC Button mit fixem Pfeil */
@media (max-width: 768px) {
  #mobile-toc-trigger {
    width: 90%;
    /* Etwas breiter, da wir keinen Text abschneiden */
    height: 60px;
    position: fixed;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    color: #000;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: top 0.5s cubic-bezier(0.16, 1, 0.3, 1);

    /* Das Grid-System */
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    /* Außen fix, Mitte flexibel */
    align-items: center;
    background: #FFF;
  }

  /* Der Text in der Mitte */
  .toc-label {
    grid-column: 2;
    text-align: center;
    line-height: 1.2;
    /* Kein Abschneiden mehr */
    white-space: normal;
    font-size: 18px;
  }

  /* Der Pfeil rechts (fixer Platz) */
  #mobile-toc-trigger::after {
    grid-column: 3;
    content: '↓';
    text-align: center;
    width: 20px;
  }

  #mobile-toc-trigger.is-active::after {
    content: '↑';
  }

  /* Ein leerer Pseudo-Platzhalter links für perfekte Symmetrie */
  #mobile-toc-trigger::before {
    content: '';
    grid-column: 1;
  }

  /* Erscheint beim Runterscrollen */
  #mobile-toc-trigger.is-ready {
    top: 12px;
  }

  /* Das Rank-Math-TOC Panel */
  #rank-math-toc {
    left: 0;
    width: 100%;
    max-height: 85vh;
    background: #fff;
    z-index: 1000;
    padding: 60px 25px 30px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

    /* Slide-Effekt */
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /*
	.toc-label {    
	    white-space: nowrap;
	    overflow: hidden;
	    text-overflow: ellipsis; /* Fügt "..." bei langen Titeln hinzu
	    display: block;
	    width: 100%;
	}
	*/
  #rank-math-toc.is-visible {
    transform: translateY(0);
  }
}

/*
 * DESKTOP 
 *
 *
 */

/* --- DESKTOP TOC --- */
@media (min-width: 769px) {
  #desktop-toc-indicator {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 1000;
    padding: 40px 80px 40px 35px;
    /* Breiterer Padding-Bereich rechts für Hover-Stability */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    contain: layout;
    /* Performance-Boost */
  }

  #desktop-toc-indicator.is-visible {
    opacity: 1;
    visibility: visible;
  }

  .toc-dot {
    width: 15px;
    height: 2px;
    background: rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
  }

  /* Der unsichtbare "Brücken"-Layer gegen das Zappeln */
  .toc-dot::before {
    content: '';
    position: absolute;
    left: -35px;
    right: -150px;
    /* Deckt den gesamten Textbereich ab */
    top: -12px;
    /* Schließt das 24px Gap zur Hälfte nach oben */
    bottom: -12px;
    /* Schließt das 24px Gap zur Hälfte nach unten */
    background: transparent;
  }

  .toc-dot::after {
    content: attr(data-label);
    position: absolute;
    left: 55px;
    font-size: 16px;
    font-weight: 500;
    color: #111;
    /* Deine Wunschfarbe */
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
  }

  /* Hover-Zustand des gesamten Menüs */
  #desktop-toc-indicator:hover .toc-dot::after {
    opacity: 0.4;
    transform: translateX(0);
  }

  #desktop-toc-indicator:hover .toc-dot.is-active::after {
    opacity: 0.8;
  }

  /* Hover-Zustand des spezifischen Punktes */
  .toc-dot:hover {
    width: 45px;
    background: #00778a;
  }

  .toc-dot:hover::after {
    opacity: 1 !important;
    color: #000 !important;
    font-weight: 700;
    transform: translateX(5px);
  }

  /* Active State (Scrollen) */
  .toc-dot.is-active {
    width: 35px;
    background: #00778a;
    height: 3px;
  }

  .toc-dot.is-active::after {
    opacity: 0;
    font-weight: 700;
    transform: translateX(0);
  }
}

/* -------------------------------------------------------------------------------- */
/*	4.	Blog
/* -------------------------------------------------------------------------------- */

#cmplz-manage-consent .cmplz-manage-consent {
  left: 40px !important;
  right: auto !important;
}

.cmplz-video.cmplz-iframe-styles {
  background-color: transparent
}

.cmplz-video.cmplz-hidden {
  visibility: hidden !important
}

.cmplz-blocked-content-notice {
  display: none
}

.cmplz-placeholder-parent {
  height: inherit
}

.cmplz-optin .cmplz-blocked-content-container .cmplz-blocked-content-notice,
.cmplz-optin .cmplz-wp-video .cmplz-blocked-content-notice,
.cmplz-optout .cmplz-blocked-content-container .cmplz-blocked-content-notice,
.cmplz-optout .cmplz-wp-video .cmplz-blocked-content-notice {
  display: block
}

.cmplz-blocked-content-container,
.cmplz-wp-video {
  animation-name: cmplz-fadein;
  animation-duration: 600ms;
  background: #FFF;
  border: 0;
  border-radius: 3px;
  box-shadow: 0 0 1px 0 rgba(0, 0, 0, .5), 0 1px 10px 0 rgba(0, 0, 0, .15);
  display: flex;
  justify-content: center;
  align-items: center;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  height: inherit;
  position: relative
}

.cmplz-blocked-content-container.gmw-map-cover,
.cmplz-wp-video.gmw-map-cover {
  max-height: 100%;
  position: absolute
}

.cmplz-blocked-content-container.cmplz-video-placeholder,
.cmplz-wp-video.cmplz-video-placeholder {
  padding-bottom: initial
}

.cmplz-blocked-content-container iframe,
.cmplz-wp-video iframe {
  visibility: hidden;
  max-height: 100%;
  border: 0 !important
}

.cmplz-blocked-content-container .cmplz-custom-accept-btn,
.cmplz-wp-video .cmplz-custom-accept-btn {
  white-space: normal;
  text-transform: initial;
  cursor: pointer;
  position: absolute !important;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 200px;
  font-size: 14px;
  padding: 10px;
  background-color: rgba(0, 0, 0, .5);
  color: #fff;
  text-align: center;
  z-index: 98;
  line-height: 23px
}

.cmplz-blocked-content-container .cmplz-custom-accept-btn:focus,
.cmplz-wp-video .cmplz-custom-accept-btn:focus {
  border: 1px dotted #cecece
}

.cmplz-blocked-content-container .cmplz-blocked-content-notice,
.cmplz-wp-video .cmplz-blocked-content-notice {
  white-space: normal;
  text-transform: initial;
  position: absolute !important;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 300px;
  font-size: 14px;
  padding: 10px;
  background-color: rgba(0, 0, 0, .5);
  color: #fff;
  text-align: center;
  z-index: 98;
  line-height: 23px
}

.cmplz-blocked-content-container .cmplz-blocked-content-notice .cmplz-links,
.cmplz-wp-video .cmplz-blocked-content-notice .cmplz-links {
  display: block;
  margin-bottom: 10px
}

.cmplz-blocked-content-container .cmplz-blocked-content-notice .cmplz-links a,
.cmplz-wp-video .cmplz-blocked-content-notice .cmplz-links a {
  color: #fff
}

.cmplz-blocked-content-container .cmplz-blocked-content-notice .cmplz-blocked-content-notice-body,
.cmplz-wp-video .cmplz-blocked-content-notice .cmplz-blocked-content-notice-body {
  display: block
}

.cmplz-blocked-content-container div div {
  display: none
}

.cmplz-wp-video .cmplz-placeholder-element {
  width: 100%;
  height: inherit
}

@keyframes cmplz-fadein {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}


/* -------------------------------------------------------------------------------- */
/*	12. Footer Styles from Index (Moved)
/* -------------------------------------------------------------------------------- */

#site-footer {
  position: relative;
  background-color: #0f0f0f;
  /* Tiefschwarz */
  color: #fff;
  z-index: 800;
  /* Über dem Rest */
  padding: 100px 5% 40px 5%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  gap: 40px;
}

/* Spalten Layout */
.footer-col {
  flex: 1;
  min-width: 200px;
}

/* Logo Spalte etwas breiter */
.footer-brand {
  flex: 1.5;
}

.footer-logo-img {
  width: 150px;
  height: auto;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-logo-img:hover {
  opacity: 1;
}

/* Überschriften */
.footer-col h5 {
  font-family: 'Rouge Vintage', cursive;
  color: #fec81d;
  /* Gold */
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: normal;
}

/* Links Listen */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-family: 'Instrument Sans', sans-serif;
  color: #999;
  text-decoration: none;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.footer-col ul li a:hover {
  color: #fff;
  transform: translateX(5px);
}

/* Partner CTA Bereich */
.footer-cta p {
  font-family: 'Instrument Sans', sans-serif;
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
  width: 100% !important;
  /* Override für mobile styles */
  text-align: left !important;
}

.partner-btn {
  display: inline-block;
  padding: 12px 30px;
  border: 1px solid #fec81d;
  color: #fec81d;
  font-family: 'Instrument Sans', sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.partner-btn:hover {
  background-color: #fec81d;
  color: #000;
}

/* Copyright Zeile ganz unten */
.footer-bottom {
  margin-top: 80px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.copyright {
  font-family: 'Instrument Sans', sans-serif;
  color: #444;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* --- FOOTER NOTICE STYLE --- */
.cookies {
  margin-top: 15px;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.8rem;
  color: #444;
  /* Sehr dezent */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

/* Optional: Icon Styling falls gewünscht */
.cookies span {
  color: #fec81d;
}

/* Mobile Anpassungen */
@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    gap: 60px;
  }

  .footer-col {
    width: 100%;
    text-align: center;
  }

  .footer-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }

  .footer-cta p {
    text-align: center !important;
  }

  .partner-btn {
    width: 100%;
    text-align: center;
  }
}

/* Container für die Sections */
.about-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  z-index: 20;
  background-color: transparent !important;
}

.starring-label {
  position: fixed;
  top: 50%;
  left: 12%;
  transform: translateY(-50%);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--base-200);
  pointer-events: none;
  z-index: 200;
  /* über allen Polaroids */
}

@media (max-width: 768px) {

  .starring-label {
    top: auto !important;
    bottom: 10% !important;
  }

  .polaroid-caption {
    bottom: 35% !important;
    top: auto !important;
    left: 5% !important;
    right: auto !important;
    right: auto !important;
    transform: translateY(45%) !important;
  }

  [class^="polaroid-canvas-"] {
    top: 40% !important;
    left: 10% !important;
  }
}

/* WICHTIG: Canvas ist jetzt FIXED */
/* Das bedeutet: Es scrollt nicht mit dem Text weg. Es bleibt da, wo wir es hin animieren. */
[class^="polaroid-canvas-"] {
  position: fixed;
  /* <--- HIER GEÄNDERT */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  /* Damit 3D-Flips gut aussehen: */
  perspective: 1000px;
  /* CRITICAL: Override border-box to prevent padding from shrinking the canvas content area.
     Without this, the renderer buffer (300x380) doesn't match the CSS content area (276x308),
     causing horizontal stretching of the image. */
  box-sizing: content-box;
}

/* sobald Polaroid-Modus aktiv ist, kontrolliert JS die Größe */
[class^="polaroid-canvas-"].is-polaroid {
  width: auto;
  height: auto;
  /* Größe kommt aus JS */
}

/* Text und Caption Styles bleiben gleich */
.about-text {
  width: 40%;
  padding-left: 5%;
  z-index: 10;
  position: relative;
  pointer-events: none;
  color: #fff;
}

.polaroid-caption {
  position: fixed;
  /* Bleibt am Stapel kleben */
  z-index: 100;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  width: auto;
  white-space: nowrap;
  pointer-events: none;
  display: block;
  /* WICHTIG: Von rechts nach links aufblasen */
  transform-origin: right center;
}

.polaroid-caption h3 {
  font-family: 'Rouge Vintage', cursive !important;
  color: var(--base-200);
  margin: 0;
  padding: 0;
  line-height: 1;
  /* Wir lassen font-size im CSS weg, da GSAP das jetzt übernimmt */
}

/* Starring muss über alles */
.starring-label {
  z-index: 200 !important;
}

.finale-container {
  overflow: hidden;
}

.finale-minis-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.mini-outro-polaroid {
  position: absolute;
  width: 300px;
  height: auto;
  background-color: #fff;

  /* Flexbox für Layout */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  /* Weißer Polaroid-Rand — matching starring polaroids */
  padding: 12px 12px 60px 12px;
  box-sizing: border-box;

  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border-radius: 2px;
  z-index: 40;
  will-change: transform;
}

.mini-img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* Square image area like a real Polaroid */
  background: #f0f0f0;
  overflow: hidden;
}

/* Das Bild selbst - unverzerrt */
.mini-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* <--- DER FIX */
  display: block;
}

.polaroid-name {
  font-family: 'Rouge Vintage', cursive;
  color: #333;
  font-size: 1.4rem;
  pointer-events: none;
  line-height: 1.2;
  margin-top: 8px;
}

/* Smaller polaroids on mobile */
@media (max-width: 768px) {
  .mini-outro-polaroid {
    width: 110px;
    padding: 6px 6px 22px 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .polaroid-name {
    font-size: 0.8rem;
    margin-top: 3px;
  }

  /* 2×4 grid — wide horizontal gap, tight vertical rows */
  .mini-outro-polaroid:nth-child(1) {
    left: 2% !important;
    top: 2% !important;
  }

  .mini-outro-polaroid:nth-child(2) {
    left: 65% !important;
    top: 0% !important;
  }

  .mini-outro-polaroid:nth-child(3) {
    left: 0% !important;
    top: 22% !important;
  }

  .mini-outro-polaroid:nth-child(4) {
    left: 67% !important;
    top: 24% !important;
  }

  .mini-outro-polaroid:nth-child(5) {
    left: 3% !important;
    top: 52% !important;
  }

  .mini-outro-polaroid:nth-child(6) {
    left: 64% !important;
    top: 50% !important;
  }

  .mini-outro-polaroid:nth-child(7) {
    left: 1% !important;
    top: 72% !important;
  }

  .mini-outro-polaroid:nth-child(8) {
    left: 66% !important;
    top: 74% !important;
  }
}

/* -------------------------------------------------------------------------------- */
/*	11. Extra Styles from Index (Moved)
/* -------------------------------------------------------------------------------- */

/* 1. Schriftart laden */
@font-face {
  font-family: 'Rouge Vintage';
  /* Path adjusted for style.css location */
  src: url('assets/fonts/RougeVintage.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --base-100: #ebf5df;
  --base-200: #fec81d;
  --base-300: #0f0f0f;
}



body {
  background-color: var(--base-100);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  width: 100%;
  height: auto;
  object-fit: cover;
}



/* =========================================
   TEIL 1: PARALLAX HEADER STYLES
   ========================================= */
.sc-hero-container {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  perspective: 1000px;
  z-index: 20;
  /* Über dem Rest liegen */
}

.sc-layer {
  position: absolute;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.1s linear;
  /* Smooth Mouse Follow */
}

.sc-background {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 100% 100%;
  background-position: center;
  z-index: 0;
}

/* Positionierung */
.sc-rider-kasi {
  z-index: 2;
  top: 38%;
  left: 34%;
  width: 12vw;
}

.sc-rider-lasse {
  z-index: 3;
  top: 15%;
  right: 10%;
  width: 22vw;
}

.sc-rider-oli {
  z-index: 5;
  top: 32%;
  left: 26%;
  width: 10vw;
}

.sc-logo-wrapper {
  z-index: 10;
  top: 10%;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sc-layer img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.sc-logo-img {
  width: 50vw;
  max-width: 600px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
}

/* Nebel Styles */
.sc-fog-gen {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
  transition: none !important;
  background-image:
    radial-gradient(circle at 25% 60%, rgba(255, 255, 255, 0.9) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.7) 0%, transparent 50%),
    radial-gradient(circle at 75% 65%, rgba(255, 255, 255, 0.8) 0%, transparent 45%);
  background-size: 50% 100%;
  background-repeat: repeat-x;
  filter: blur(50px);
  mix-blend-mode: normal;
}

.sc-fog-deep {
  opacity: 0.3;
  animation: fogMove 5s linear infinite;
}

.sc-fog-front {
  opacity: 0.2;
  animation: fogMove 2.5s linear infinite;
  background-position: -20% 0;
}

@keyframes fogMove {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .sc-hero-container {
    aspect-ratio: unset;
    height: 80vh;
  }

  .sc-background {
    background-size: cover;
  }

  .sc-logo-wrapper {
    width: 85vw;
    top: -25%;
    left: 5%;
    right: 5%;
    z-index: 5
  }

  .sc-rider-kasi {
    width: 15%;
    top: 42%;
    left: 24%;
  }

  .sc-rider-lasse {
    width: 33%;
    top: 23%;
    right: 5%;
    z-index: 6
  }

  .sc-rider-oli {
    width: 15%;
    top: 38%;
    left: 12%;
  }

  .sc-fog-gen {
    filter: blur(20px);
    opacity: 0.15;
  }

  /* Update für .hero-img und .hero-canvas */
  .hero-img,
  .hero-canvas {
    position: absolute;
    top: 0 !important;
    /* 5% nach oben */
    left: 0 !important;
    /* 5% nach links */
    width: 100% !important;
    /* Breiter */
    height: 100% !important;
    /* Höher */
    object-fit: cover;
    z-index: 0;
    pointer-events: none;

    /* Hardware-Beschleunigung für flüssige Bewegung */
    will-change: transform;
    /* Keine Transition, damit die Maus direkt greift */
    transition: none;
  }

  .hero-img img {
    height: 100vh;
  }
}

/* =========================================
   TEIL 2: WEBGL MORPH STYLES
   ========================================= */
h1,
h2 {
  text-transform: uppercase;
  font-family: "Instrument Serif", sans-serif;
  font-weight: 500;
  line-height: 0.9;
}

h1 {
  font-size: clamp(4rem, 7.5vw, 10rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 4.5rem);
}

p {
  font-family: "Instrument Sans", sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
}

/* Die WebGL Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 175vh;
  /* WICHTIG: Höhe für Scroll-Weg */
  color: var(--base-200);
  overflow: hidden;
  z-index: 5;
  /* Unter dem Parallax Header */
}

/* Das Bild im Hintergrund */
.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Titel */
.hero-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  z-index: 10;
  pointer-events: none;
}

.hero-header p {
  width: 75%;
}

/* Canvas */
.hero-canvas {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

@media (min-width: 769px) {

  /* Update für .hero-img und .hero-canvas */
  .hero-img,
  .hero-canvas {
    position: absolute;
    top: -5% !important;
    /* 5% nach oben */
    left: -5% !important;
    /* 5% nach links */
    width: 110% !important;
    /* Breiter */
    height: 110% !important;
    /* Höher */
    object-fit: cover;
    z-index: 0;
    pointer-events: none;

    /* Hardware-Beschleunigung für flüssige Bewegung */
    will-change: transform;
    /* Keine Transition, damit die Maus direkt greift */
    transition: none;
  }
}

.hero-canvas {
  z-index: 5;
  /* Canvas liegt über dem Bild */
}

/* Text unten */
.hero-content {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 20;
  pointer-events: none;
}

.hero-content h2 {
  width: 75%;
  color: var(--base-300);
  /* Optional: Ein leichter Kontrast-Boost */
  -webkit-font-smoothing: antialiased;
  font-variant-ligatures: none;
}

/* About */
.about {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--base-300);
  color: var(--base-100);
  z-index: 20;
}

.about p {
  width: 40%;
  text-align: center;
}

@media (max-width: 1000px) {

  .hero-content h2,
  .about p {
    width: calc(100% - 4rem);
  }
}

/* GLOBAL HEADER STYLES */
#global-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 40px;
  /* Abstand vom Rand */
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  /* Über ALLEM liegen */
  pointer-events: none;
  /* Klicks gehen durch den leeren Raum */
  mix-blend-mode: difference;
  /* Optional: Cool, damit man es auf hell/dunkel sieht */
}

/* Logo und Burger sind klickbar */
.header-logo,
.header-burger {
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  /* Start: Unsichtbar */
}

.header-logo img {
  width: 120px;
  /* Logo Größe anpassen */
  height: auto;
  display: block;
}

/* Hamburger Style */
.header-burger {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  /* Abstand der Striche */
}

.burger-line {
  width: 100%;
  height: 2px;
  background-color: #fec81d;
  /* Deine Akzentfarbe */
  transition: all 0.3s ease;
}

/* Hover Effekt für Burger */
.header-burger:hover .burger-line:first-child {
  transform: translateY(-2px);
}

.header-burger:hover .burger-line:last-child {
  transform: translateY(2px);
}

@media (max-width: 768px) {
  #global-header {
    padding: 20px;
  }

  .header-logo img {
    width: 90px;
  }
}

/* --- FULLSCREEN MENU STYLES --- */

/* Der Container (Startzustand: unsichtbar oben) */
#fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #0f0f0f;
  /* Schwarz */
  z-index: 9990;
  /* Unter dem Header (9999), aber über allem anderen */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  /* Klicks gehen durch wenn zu */
  transition: opacity 0.4s ease;
}

/* Zustand OFFEN */
body.menu-open #fullscreen-menu {
  opacity: 1;
  pointer-events: auto;
}

/* Burger Animation zum X */
/* Wenn body die Klasse .menu-open hat, verändern wir die Linien */
body.menu-open #global-header {
  mix-blend-mode: normal;
  transform: none !important;
  opacity: 1 !important;
}

body.menu-open .header-logo,
body.menu-open .header-burger {
  opacity: 1 !important;
  transform: none !important;
}

body.menu-open .header-burger .line-1 {
  transform: translateY(6px) rotate(45deg);
  /* Werte anpassen je nach Burger-Höhe */
}

body.menu-open .header-burger .line-2 {
  transform: translateY(-5px) rotate(-45deg);
}

/* Damit der Burger im offenen Zustand gut sichtbar bleibt */
body.menu-open .header-burger .burger-line {
  background-color: #fec81d;
}

/* Mobile: delayed X animation (no hover on touch) */
@media (max-width: 768px) {

  body.menu-open .header-burger .line-1,
  body.menu-open .header-burger .line-2 {
    transition-delay: 0.4s;
  }
}

/* Navigation Links */
.menu-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.menu-nav li {
  margin-bottom: 2.5rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s ease;
}

/* Stagger Animation beim Öffnen */
body.menu-open .menu-nav li {
  opacity: 1;
  transform: translateY(0);
}

body.menu-open .menu-nav li:nth-child(1) {
  transition-delay: 0.1s;
}

body.menu-open .menu-nav li:nth-child(2) {
  transition-delay: 0.2s;
}

body.menu-open .menu-nav li:nth-child(3) {
  transition-delay: 0.3s;
}

body.menu-open .menu-nav li:nth-child(4) {
  transition-delay: 0.4s;
}

body.menu-open .menu-nav li:nth-child(5) {
  transition-delay: 0.5s;
}

body.menu-open .menu-nav li:nth-child(6) {
  transition-delay: 0.6s;
}

/* Typografie der Links */
.main-link {
  font-family: 'Rouge Vintage', cursive;
  font-size: clamp(3rem, 6vw, 5rem);
  color: #fff;
  text-decoration: none;
  line-height: 1;
  display: block;
  transition: color 0.3s ease;
}

.main-link:hover {
  color: #fec81d;
}

/* Unterpunkte Style */
.sub-links {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.9rem;
  color: #666;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sub-links span {
  margin: 0 8px;
  color: #888;
}

/* Footer unten mittig */
.menu-footer {
  position: absolute;
  bottom: 40px;
  width: 100%;
  text-align: center;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.85rem;
  color: #444;
}

.menu-footer a {
  color: #888;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s;
}

.menu-footer a:hover {
  color: #fff;
}

.menu-footer .sep {
  color: #333;
}

/* --- MOBILE MENU OPTIMIERUNG --- */
@media (max-width: 768px) {

  /* Schriftart drastisch verkleinern auf Mobile */
  .main-link {
    font-size: 2.5rem;
    /* War vorher riesig (clamp startete bei 3rem) */
    line-height: 1.1;
  }

  /* Abstände zwischen den Menüpunkten verringern */
  .menu-nav li {
    margin-bottom: 1.2rem;
    /* War 2.5rem */
  }

  /* Sub-Links (Namen) etwas kleiner und näher dran */
  .sub-links {
    font-size: 0.75rem;
    margin-top: 2px;
  }

  /* Footer im Menü etwas höher ziehen */
  .menu-footer {
    bottom: 25px;
  }

  /* Sicherstellen, dass auf kleinen Screens nichts abgeschnitten wird */
  #fullscreen-menu {
    padding-top: 60px;
    /* Platz für Header lassen */
    padding-bottom: 60px;
    /* Platz für Footer lassen */
    justify-content: center;
  }
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0f0f0f;
  /* Dein base-300 schwarz */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  /* Über dem Header */
  overflow: hidden;
}

.loader-content {
  text-align: center;
  width: 300px;
}

.loader-text {
  font-family: 'Rouge Vintage', cursive;
  color: #fec81d;
  /* Dein base-200 gelb */
  font-size: 2.5rem;
  display: block;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(10px);
}

.loader-bar-wrap {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.loader-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: #fec81d;
}

.loader-percent {
  font-family: 'Instrument Sans', sans-serif;
  color: #666;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 10px;
  display: block;
}

.finale-container {
  will-change: transform, filter;
  /* Verhindert, dass der Blur an den Rändern flackert */
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Weicher Übergang für die Map Sektion nach oben */
.map-section::before {
  content: "";
  position: absolute;
  top: -150px;
  /* Ragdt 150px in die Many-More Sektion hinein */
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to bottom, transparent, #000);
  z-index: 10;
  pointer-events: none;
  transition: none;
}

.scroll-indicator {
  position: absolute;
  bottom: 0;
  /* Abstand von unten */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  /* Abstand Text zu Strich */
  z-index: 50;
  pointer-events: none;
  /* Klicks gehen durch */
  /* 		    mix-blend-mode: difference; Damit man es auch auf hellen Flächen sieht */
}

.scroll-indicator span {
  font-family: 'Instrument Sans', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--base-200);
  /* Dein Gelb/Gold */
  /* Der Schatten für die Lesbarkeit */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);

  opacity: 1;
}

.scroll-line {
  width: 2px;
  height: 70px;
  /* Länge des Strichs */
  background: rgba(254, 200, 29, 0.2);
  /* Transparente Basis-Farbe */
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.scroll-line-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--base-200);
  /* Volle Farbe */
  animation: scrollPulse 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
  box-shadow: 0 0 10px var(--base-200);
}

@keyframes scrollPulse {
  0% {
    transform: translateY(-101%);
    /* Startet oberhalb */
  }

  50% {
    transform: translateY(0%);
    /* Füllt den Strich */
  }

  100% {
    transform: translateY(101%);
    /* Fließt nach unten raus */
  }
}

/* Optional: Auf Mobile etwas kleiner */
@media (max-width: 768px) {
  .scroll-indicator {
    bottom: 80px;
  }

  /* Höher, wegen Adressleiste */
  .scroll-line {
    height: 50px;
  }
}

/* -------------------------------------------------------------------------------- */
/*	13.	Extracted Inline Styles (Final Cleanup)
/* -------------------------------------------------------------------------------- */

.map-info-box {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  z-index: 700;
  opacity: 0;
  pointer-events: none;
  background: rgba(10, 10, 10, 0.9);
  padding: 25px;
  color: #fff;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.map-info-box h3 {
  font-family: 'Rouge Vintage', cursive !important;
  font-size: 2.5rem !important;
  color: #fec81d !important;
  margin: 0 0 10px 0 !important;
  line-height: 1.1;
}

.map-info-box p {
  font-family: 'Instrument Sans', sans-serif !important;
  font-size: 1.1rem !important;
  line-height: 1.4;
  color: #ddd;
  margin: 0;
}

/* Video Section Hover Effects */
.video-facade:hover img {
  opacity: 0.9 !important;
}

.video-facade:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1) !important;
  background: rgba(254, 200, 29, 0.1) !important;
}

/* -------------------------------------------------------------------------------- */
/*	13.1  Map & Sticky Fixes (Extracted from index.php)
/* -------------------------------------------------------------------------------- */

.map-sticky {
  /* Verhindert Sub-Pixel-Rendering Fehler beim Pinnen */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  /* Wichtig: Auf Mobile fixieren wir die Höhe, damit sie nicht springt */
  height: 100vh;
  height: 100svh;
  /* Modern browsers */
}

/* Der Container drumherum */
.map-section {
  /* Stellt sicher, dass GSAP Platz hat */
  width: 100%;
  /* Verhindert horizontales Wackeln */
  overflow: hidden;
  position: fixed;
  inset: 0;
  z-index: 10;
}

/* --- MAP FIXES --- */
/* Ganze Sektion schwarz machen, damit keine weißen Blitzer entstehen */
.map-section {
  background-color: #000 !important;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

/* Der Container muss IMMER den sichtbaren Bereich füllen */
.map-sticky {
  width: 100%;
  /* 100svh ignoriert die Adressleiste -> Kein Springen */
  height: 100vh;
  /* Fallback */
  height: 100svh !important;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  /* Hardware Beschleunigung */
  transform: translateZ(0);
}

/* Das SVG muss den Container füllen */
#map-svg {
  width: 100% !important;
  height: 100% !important;
  /* Verhindert, dass Touch-Gesten die Seite zoomen */
}

/* Info Boxen Fix für Mobile */
@media (max-width: 768px) {
  .map-info-box {
    /* Fixiert am unteren Rand, aber über der Adressleiste */
    bottom: 100px !important;
    top: auto !important;
    transform: none !important;
    left: 5% !important;
    width: 90% !important;
  }
}

/* Deployment Check 1771098295 */


/* YouTube Comments Section */
.yt-comment-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.yt-comment {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 20px;
}

.yt-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #efefef;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: Arial, sans-serif;
}

.yt-content {
  flex-grow: 1;
}

.yt-header {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 4px;
}

.yt-author {
  font-family: \"Roboto\", \"Arial\", sans-serif;
  /* YouTube fonts */
  font-size: 13px;
  font-weight: 700;
  color: #0f0f0f;
}

.yt-meta {
  font-family: \"Roboto\", \"Arial\", sans-serif;
  font-size: 12px;
  color: #606060;
}

.yt-text {
  font-family: \"Roboto\", \"Arial\", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #0f0f0f;
  margin-bottom: 8px;
}

.yt-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.yt-action {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: \"Roboto\", \"Arial\", sans-serif;
  font-size: 12px;
  color: #0f0f0f;
  cursor: pointer;
  font-weight: 500;
}

.yt-action svg {
  fill: #0f0f0f;
}


/* Stills Gallery */
.stills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 80px;
}

@media (min-width: 768px) {
  .stills-grid {
    grid-template-columns: 1.5fr 2fr;
    /* Asymmetric split like Canva */
    height: 80vh;
    /* Fixed height for desktop to enforce grid look */
    max-height: 800px;
  }
}

.stills-main {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
}

.stills-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  height: 100%;
}

.stills-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
}

.stills-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.stills-main:hover .stills-img,
.stills-item:hover .stills-img {
  transform: scale(1.05);
  /* Subtle zoom */
}