/* ==========================================================================
   Self-Hosted Fonts (DSGVO-konform – kein Google CDN)
   ========================================================================== */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('../fonts/outfit-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('../fonts/outfit-700-800.woff2') format('woff2');
    font-weight: 700 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Caveat';
    src: url('../fonts/caveat-variable.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hangyaboly';
    src: url('../fonts/Hangyaboly.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   CSS Variables & Design Tokens
   ========================================================================== */
:root {
    --color-primary: #cb0101;
    --color-bg: #faf8f5;
    --color-text: #2d3748;
    --color-white: #ffffff;
    --color-overlay: rgba(0, 0, 0, 0.4);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-handwriting: 'Hangyaboly', cursive;

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.25);

    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   CSS Reset
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding: 200px;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    /* Pill shape */
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #a00101;
    /* Darker red */
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(203, 1, 1, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-text);
    transform: translateY(-2px);
}

/* ==========================================================================
   Typewriter Animation (Global)
   ========================================================================== */
.typewriter-cursor {
    display: inline-block;
    position: relative;
}

.typewriter-cursor::after {
    content: '|';
    font-weight: 300;
    color: var(--color-primary);
    animation: cursorBlink 0.8s step-end infinite;
    margin-left: 2px;
}

.typewriter-cursor.done::after {
    display: none;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ==========================================================================
   Premium Floating Badge (Global)
   ========================================================================== */
.hero-badge,
.subpage-hero-badge {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: var(--color-white);
    color: var(--color-text);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transform: rotate(5deg) scale(0);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s;
    pointer-events: none;
}

/* For main page trigger or subpage class */
.hero-badge.visible,
[data-animate].visible .subpage-hero-badge,
.visible.subpage-hero-img-wrapper .subpage-hero-badge {
    transform: rotate(5deg) scale(1);
}

.hero-badge::before,
.subpage-hero-badge::before {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px dashed rgba(203, 1, 1, 0.3);
    border-radius: 9px;
    pointer-events: none;
}

.badge-text-top {
    color: var(--color-primary);
    font-size: 0.65rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.badge-text-bottom {
    font-size: 0.85rem;
}

/* Footer Address & Hours Info */
.footer-links li {
    color: #8a8a8a;
    font-size: 0.82rem;
    line-height: 1.4;
}

/* ==========================================================================
   Premium Reveal & Motion Utilities
   ========================================================================== */

/* Base states for Scroll Reveals (Transitions) */
.reveal-left {
    opacity: 0 !important;
    transform: translateX(-50px) translateY(0) !important;
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1),
                transform 1s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.reveal-right {
    opacity: 0 !important;
    transform: translateX(50px) translateY(0) !important;
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1),
                transform 1s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.reveal-zoom {
    opacity: 0 !important;
    transform: scale(0.95) translateY(20px) !important;
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1),
                transform 1s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Text reveal clip path */
.reveal-text {
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%) !important;
    transition: clip-path 1.2s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Active states when .visible is applied */
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1 !important;
    transform: translateX(0) translateY(0) !important;
}

.reveal-zoom.visible {
    opacity: 1 !important;
    transform: scale(1) translateY(0) !important;
}

.reveal-text.visible {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) !important;
}

/* Floating Animations */
.float-effect {
    animation: premiumFloat 6s ease-in-out infinite !important;
}

@keyframes premiumFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}