/* Local Font Declarations */
@font-face {
    font-family: 'Recoleta';
    src: url('fonts/recoleta.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy-Bold';
    src: url('fonts/gilroy-bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Futura PT';
    src: url('fonts/futura-heavy.woff') format('woff');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Nautica';
    src: url('fonts/nautica.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 100 700;
    src: url('fonts/material-symbols.woff2') format('woff2');
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Bauhaus Grid effect */
.bauhaus-grid { 
    background-image: radial-gradient(#d8bfd8 4px, transparent 1px); 
    background-size: 60px 60px; 
}

/* Animations and Hover effects */
.hover-scale {
    transition: transform 0.6s ease-in-out;
}
.hover-scale:hover {
    transform: scale(1.05) translateY(-5px);
}

.text-outline-green {
    -webkit-text-stroke: 1px #006e0c;
    color: transparent;
}
.text-outline-green:hover {
    color: #006e0c;
}

.text-outline-purple {
    -webkit-text-stroke: 1px #d8bfd8;
    color: transparent;
}
.text-outline-purple:hover {
    color: #d8bfd8;
}

/* Pure Liquid Cloud Button */
.playful-shape {
    position: relative;
    z-index: 1;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent; /* Always present to prevent jumping */
    box-sizing: border-box;
}

/* Button-specific styling for playful-shape */
a.playful-shape, 
button.playful-shape {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem !important;
    height: 56px !important; /* Fixed height to prevent vertical jumping */
    line-height: 1 !important;
    text-align: center;
    white-space: nowrap;
    min-width: 200px;
    padding-left: calc(2rem + 0.1em) !important; /* Adjusted offset for optimal horizontal centering */
}

@media (min-width: 768px) {
    a.playful-shape, 
    button.playful-shape {
        padding: 0 3.5rem !important;
        height: 60px !important;
        min-width: 240px;
        padding-left: calc(3.5rem + 0.1em) !important;
    }
}

.playful-shape:hover {
    box-shadow: 0 20px 40px -10px rgba(216, 191, 216, 0.8);
    border-color: rgba(216, 191, 216, 0.3);
}

/* Professional Font Swap Effect */
/* Professional Font Swap Effect */
@keyframes rapid-font {
    0% { font-family: 'Helvetica', sans-serif; font-weight: 900; }
    20% { font-family: 'Nautica', cursive; font-weight: 400; }
    40% { font-family: 'Recoleta', serif; font-weight: 700; }
    60% { font-family: 'Gilroy-Bold', sans-serif; font-weight: 900; }
    80% { font-family: 'Futura PT', sans-serif; font-weight: 800; }
    100% { font-family: 'Helvetica', sans-serif; font-weight: 900; }
}

.logo-hover-effect {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start; /* Changed from center to align with body text edges */
    justify-content: center;
    text-align: left; /* Changed from center */
    vertical-align: middle;
    transition: all 0.3s ease;
}

/* Ensure buttons and centered sections with logo-hover-effect remain centered */
.playful-shape.logo-hover-effect,
.text-center .logo-hover-effect,
.hero-section .logo-hover-effect {
    align-items: center;
    text-align: center;
}

/* Ghost element to reserve space for the widest font variant in the animation */
.logo-hover-effect::after {
    content: attr(data-text);
    height: 0;
    visibility: hidden;
    overflow: hidden;
    user-select: none;
    pointer-events: none;
    font-family: 'Recoleta', serif; /* Widest font in the animation cycle */
    font-weight: 900;
    letter-spacing: -0.05em; /* Matches tracking-tighter for perfect stabilization */
    display: block;
}

/* Stabilization anchors for the font-swap effect to prevent element jitter */
/* Each nav link gets a fixed width based on its text length so hovering one doesn't push others */
/* Stabilization anchors for the font-swap effect to prevent element jitter */
header nav .logo-hover-effect {
    align-items: center;
    text-align: center;
    flex-shrink: 0;
}

header nav .logo-hover-effect[data-text="start"] { width: 65px; }
header nav .logo-hover-effect[data-text="video & schnitt"] { width: 185px; }
header nav .logo-hover-effect[data-text="audio"] { width: 65px; }
header nav .logo-hover-effect[data-text="about"] { width: 65px; }
header nav .logo-hover-effect[data-text="kontakt"] { width: 85px; }

@media (min-width: 1024px) {
    header nav .logo-hover-effect[data-text="start"] { width: 75px; }
    header nav .logo-hover-effect[data-text="video & schnitt"] { width: 200px; }
    header nav .logo-hover-effect[data-text="audio"] { width: 75px; }
    header nav .logo-hover-effect[data-text="about"] { width: 85px; }
    header nav .logo-hover-effect[data-text="kontakt"] { width: 105px; }
}

/* Specific stabilization for hero links to prevent them pushing each other */
.hero-section .logo-hover-effect {
    min-width: 5em; /* Responsive based on font-size */
}

/* Wider parking space for the longer "schnitt" link */
.hero-section .logo-hover-effect[data-text*="schnitt"] {
    min-width: 6em;
}

/* Standardized stabilization for the 'on:mass' logo wherever it appears */
.logo-hover-effect[data-text="on:mass"] {
    min-width: 6em; /* Base width */
}

/* High-priority large width for the massive hero logo */
h1.logo-hover-effect[data-text="on:mass"] {
    min-width: 0.8em * 7; /* Approximate for huge font sizes */
    min-width: 6.5em; 
}

/* Header logo specific anchor - restored fixed widths for absolute stability */
header .logo-hover-effect[data-text="on:mass"] {
    min-width: 160px !important;
}

@media (min-width: 768px) {
    header .logo-hover-effect[data-text="on:mass"] {
        min-width: 200px !important;
    }
}

.logo-hover-effect:hover {
    animation: rapid-font 1s infinite steps(1);
}

.logo-hover-effect[data-text="on:mass"]:hover {
    color: #006e0c !important;
}

/* Exception for buttons to keep text readable on green background */
.playful-shape.logo-hover-effect:hover {
    color: #ffffff !important;
}

/* Adjust ghost element for buttons to match their letter spacing */
.playful-shape.logo-hover-effect::after {
    letter-spacing: 0.2em;
    font-family: 'Helvetica', sans-serif;
    font-weight: 900;
}

/* Reveal System */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}

.reveal-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* Consent Banner */
#consent-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    z-index: 1000;
    transform: translateY(150%);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#consent-banner.show {
    transform: translateY(0);
}

.consent-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* External Content Placeholder */
.external-content-placeholder {
    position: relative;
    background: #1a1c1c;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: white;
}

.external-content-placeholder .placeholder-icon {
    font-size: 3rem;
    color: #d8bfd8;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Delay modifiers */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Custom Breathing Animation for Audio Graphic */
@keyframes breath {
    0%, 100% { 
        opacity: 0.4;
        transform: scale(0.98);
        filter: drop-shadow(0 0 5px rgba(216, 191, 216, 0.2));
    }
    50% { 
        opacity: 0.9;
        transform: scale(1.02);
        filter: drop-shadow(0 0 15px rgba(216, 191, 216, 0.5));
    }
}

/* Volume Slider Customization */
.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    background: #e5e7eb;
    height: 4px;
    border-radius: 2px;
    outline: none;
}

/* Firefox Track */
.volume-slider::-moz-range-track {
    background: #e5e7eb;
    height: 4px;
    border-radius: 2px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #006e0c;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #006e0c;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.animate-breath {
    animation: breath 4s ease-in-out infinite;
}
