:root {
    --bg-color: #edede4;
    --text-brown: #3b2514;
    --text-orange: #FF7518;
    --text-brown-muted: #6b4d36;
    --accent-blue: #1d4ed8;
    --accent-blue-hover: #1e40af;
    --btn-bg: #2d1c0f;
    --btn-text: #ffffff;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --art-green: #0E3B2E;  /* Tiefes Smagdgrün */
    --art-orange: #E06D53; /* Warmes Terracotta-Orange */
    --art-cream: #FDFBF7;  /* Cremeweiß */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* WAVY CHECKERBOARD FRAME OVERLAY */
.deco-frame {
    position: fixed;
    inset: 0;
    z-index: 500;
    pointer-events: none;
}

body {
    box-shadow: inset 0 0 0 6px var(--art-cream);
}

@media (max-width: 600px) {
    body {
        box-shadow: inset 0 0 0 4px var(--art-cream);
    }
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-brown);
}

.section-title {
    font-size: 2.8rem;
    color: var(--art-orange);
    margin-bottom: 10px;
}

.subheading-italic {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--text-brown);
}

.lead-text {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 20px;
    color: var(--text-brown);
}

.divider {
    width: 60px;
    height: 1px;
    background-color: var(--text-brown);
    margin: 15px auto 35px;
    opacity: 0.3;
}

/* COVER SCREEN */
.cover-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 40px 20px;
    background-color: var(--bg-color);
}

.cover-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.cover-static-title {
    font-family: var(--font-heading);
    font-size: 3.0rem;
    font-weight: 500;
    color: var(--text-brown);
    line-height: 1.25;
    letter-spacing: 0.5px;
}

.flip-text-wrapper {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 5px 0;
}

.flip-text {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 4.20rem;
    font-weight: 600;
    color: #1d4ed8;
    display: inline-block;
    line-height: 1.3;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.flip-text.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

.flip-text.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Landing Page Größere Flagge / Toggle */
.cover-lang-toggle {
    background: transparent;
    border: none;
    font-size: 2.2rem;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.2s ease;
}

.cover-lang-toggle:hover {
    transform: scale(1.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-brown-muted);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition);
}

.scroll-indicator:hover { color: var(--text-brown); }

.scroll-arrow {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}

/* HEADER & NAVIGATION */
.site-header {
    padding: 35px 20px 20px;
    text-align: center;
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    z-index: 100;
    transition: var(--transition);
    border-bottom: 1px solid rgba(59, 37, 20, 0.08);
}

.header-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    letter-spacing: 0.5px;
    margin-bottom: 22px;
    color: var(--text-brown);
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 35px;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-brown);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    padding-bottom: 6px;
    transition: var(--transition);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-blue);
    transition: var(--transition);
    transform: translateX(-50%);
}

.main-nav a:hover { color: var(--accent-blue-hover); }
.main-nav a.active { color: var(--accent-blue); font-weight: 600; }

.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

/* SECTIONS & HERO */
.section {
    padding: 90px 0;
    position: relative;
}

.section + .section {
    border-top: 1px solid rgba(59, 37, 20, 0.08);
}

.hero-section {
    padding-top: 50px;
    padding-bottom: 70px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-bottom: 70px;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.circle-image-frame {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(59, 37, 20, 0.08);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-details {
    flex: 1;
    text-align: left;
    max-width: 450px;
}

.couple-names {
    display: flex;
    flex-direction: column;
    font-size: 3.2rem;
    line-height: 1.25;
    margin-bottom: 25px;
    color: var(--text-brown);
}

.and-separator {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.8rem;
    font-weight: 400;
    margin: 5px 0;
    color: var(--text-brown-muted);
}

.wedding-date {
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-brown);
}

.wedding-location {
    font-size: 0.95rem;
    color: var(--text-brown-muted);
    line-height: 1.5;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 2px;
}

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

.btn-primary:hover {
    background-color: #432a18;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(45, 28, 15, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-brown);
    border: 1px solid var(--text-brown);
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: rgba(59, 37, 20, 0.05);
}

.hero-intro {
    text-align: center;
    max-width: 820px;
}

.intro-text {
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--text-brown);
}

/* GALLERY CAROUSEL */
.gallery-section { padding: 70px 0 90px; }

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin: 40px 0 40px;
    padding: 0 40px;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    list-style: none;
    gap: 25px;
}

.carousel-slide {
    flex: 0 0 calc((100% - 50px) / 3);
    aspect-ratio: 4 / 3;
    overflow: hidden;
    cursor: pointer;
    border-radius: 2px;
    box-shadow: 0 4px 15px rgba(59, 37, 20, 0.08);
}

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

.carousel-slide:hover .gallery-img { transform: scale(1.05); }

.carousel-arrow {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-brown);
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: var(--transition);
}

.carousel-arrow:hover { color: var(--accent-blue); }
.prev-btn { left: 0; }
.next-btn { right: 0; }
.gallery-action { margin-top: 20px; }

/* CONTENT SECTIONS */
.content-section {
    background-color: transparent;
    margin: 0 auto;
    max-width: 900px;
}

.story-content {
    max-width: 750px;
    margin: 0 auto;
    color: var(--text-brown);
}

.story-timeline {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: left;
}

.timeline-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px 30px;
    border-radius: 6px;
    border-left: 3px solid var(--text-brown);
    box-shadow: 0 4px 12px rgba(59, 37, 20, 0.03);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.timeline-item-content {
    width: 100%;
    text-align: left;
}

/* NEU: Container für mehrere Bilder NEBENEINANDER UNTER DEM TEXT */
.timeline-item-images {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 15px;
    width: 100%;
    margin-top: 5px;
}

.timeline-item-image {
    width: 120px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(59, 37, 20, 0.1);
    flex-shrink: 0;
}

.timeline-item-image2 {
    width: 120px;
    height: 220px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(59, 37, 20, 0.1);
    flex-shrink: 0;
}

.trip-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.timeline-item-image:hover .trip-img {
    transform: scale(1.08);
}

.timeline-date {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-brown-muted);
}

.guestbook-form-container {
    max-width: 600px;
    margin: 30px auto 0;
}

.form-group { margin-bottom: 20px; }

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(59, 37, 20, 0.2);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-brown);
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.85);
    border-color: var(--accent-blue);
}

.support-cards {
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: stretch;
    margin-top: 40px;
    flex-wrap: wrap;
}

.support-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    flex: 1 1 220px;
    max-width: 270px;
    padding: 34px 24px 30px;
    text-align: center;
    text-decoration: none;
    color: var(--text-brown);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(59, 37, 20, 0.15);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(59, 37, 20, 0.03);
    transition: var(--transition);
}

.support-badge svg {
    width: 68px;
    height: 68px;
    display: block;
}

.support-badge circle {
    fill: none;
    stroke: var(--text-brown);
    stroke-width: 1.5;
    opacity: 0.55;
    transition: var(--transition);
}

.support-badge text {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 600;
    font-size: 30px;
    fill: var(--art-orange);
    text-anchor: middle;
    transition: var(--transition);
}

.support-name {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    color: var(--text-brown);
}

.support-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-brown-muted);
}

.support-card:hover,
.support-card:focus-visible {
    transform: translateY(-4px);
    border-color: var(--art-orange);
    box-shadow: 0 10px 24px rgba(59, 37, 20, 0.1);
}

.support-card:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 4px;
}

.support-card:hover .support-badge circle,
.support-card:focus-visible .support-badge circle {
    stroke: var(--art-orange);
    opacity: 1;
}

/* LIGHTBOX MODAL */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 12, 6, 0.92);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 80%;
    max-height: 85vh;
    margin: 0 auto;
}

.lightbox-content {
    max-width: 100%;
    max-height: 78vh;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.lightbox-counter {
    color: #e0d0c0;
    margin-top: 15px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-family: var(--font-body);
    text-align: center;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 15px 20px;
    transition: var(--transition);
    user-select: none;
    z-index: 1010;
    border-radius: 4px;
}

.lightbox-arrow:hover {
    color: #60a5fa;
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.08);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1020;
    line-height: 1;
}

.lightbox-close:hover { color: #60a5fa; }

@media (max-width: 900px) {
    .cover-static-title { font-size: 2.5rem; }
    .flip-text { font-size: 2.8rem; }
    .hero-container { flex-direction: column; text-align: center; gap: 40px; }
    .hero-image-wrapper { justify-content: center; }
    .hero-details { text-align: center; }
    .circle-image-frame { width: 300px; height: 300px; }
    .couple-names { font-size: 2.5rem; }
    .carousel-slide { flex: 0 0 calc((100% - 25px) / 2); }
}

@media (max-width: 600px) {
    .cover-static-title { font-size: 2rem; }
    .flip-text { font-size: 2.2rem; }
    .flip-text-wrapper { min-height: 65px; }
    .site-header { padding: 25px 15px 15px; }
    .header-title { font-size: 1.8rem; }
    .main-nav ul { gap: 15px; }
    .main-nav a { font-size: 0.85rem; }
    .circle-image-frame { width: 250px; height: 250px; }
    .couple-names { font-size: 2.1rem; }
    .carousel-slide { flex: 0 0 100%; }
    .carousel-wrapper { padding: 0 30px; }
    .lightbox-arrow { font-size: 1.8rem; padding: 10px 12px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-image-container { max-width: 92%; }
    
    .timeline-item-images {
        gap: 10px;
    }
    .timeline-item-image {
        width: calc((100% - 20px) / 3);
        min-width: 80px;
        height: 90px;
    }
}

[hidden] { display: none !important; }

.lightbox-caption {
    color: #ffffff;
    margin-top: 14px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    text-align: center;
}

.lightbox-caption:empty { display: none; }

video.lightbox-content {
    background: #000;
    width: auto;
}

.guestbook-form { text-align: left; }
.guestbook-form .btn-primary { width: 100%; }

.message-field {
    border: 1px solid rgba(59, 37, 20, 0.2);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    transition: var(--transition);
}

.message-field:focus-within {
    background: rgba(255, 255, 255, 0.85);
    border-color: var(--accent-blue);
}

.message-field textarea {
    display: block;
    width: 100%;
    padding: 14px 18px 8px;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-brown);
    resize: vertical;
    min-height: 110px;
    outline: none;
}

.message-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px 10px;
    flex-wrap: wrap;
}

.gb-attach-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: none;
    padding: 6px 8px;
    margin-left: -8px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-brown-muted);
    cursor: pointer;
    transition: var(--transition);
}

.gb-attach-btn:hover,
.gb-attach-btn:focus-visible {
    color: var(--accent-blue);
    background: rgba(29, 78, 216, 0.06);
}

.gb-attach-hint {
    font-size: 0.75rem;
    color: var(--text-brown-muted);
    opacity: 0.8;
}

.gb-attachment-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.gb-attachment-list:empty { display: none; }

.gb-attachment-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(59, 37, 20, 0.15);
    border-radius: 4px;
    font-size: 0.85rem;
}

.gb-chip-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gb-chip-size {
    color: var(--text-brown-muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

.gb-chip-remove {
    background: transparent;
    border: none;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--text-brown-muted);
    cursor: pointer;
    padding: 0 4px;
    transition: var(--transition);
}

.gb-chip-remove:hover,
.gb-chip-remove:focus-visible { color: #dc2626; }

.gb-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.gb-status {
    min-height: 1.5em;
    margin-top: 12px;
    font-size: 0.88rem;
    text-align: center;
    color: var(--text-brown-muted);
}

.gb-status[data-kind="error"] { color: #dc2626; }
.gb-status[data-kind="success"] { color: #15803d; }

.guestbook-form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Öffentliche Einträge */
.guestbook-entries-container {
    max-width: 600px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.guestbook-entries-container:empty { display: none; }

.gb-entry-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(59, 37, 20, 0.15);
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(59, 37, 20, 0.04);
}

.gb-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
    border-bottom: 1px dashed rgba(59, 37, 20, 0.15);
    padding-bottom: 8px;
}

.gb-entry-author {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--art-orange);
    word-break: break-word;
}

.gb-entry-author.is-anonymous {
    font-style: italic;
    font-weight: 500;
    color: var(--text-brown-muted);
}

.gb-entry-date {
    font-size: 0.8rem;
    color: var(--text-brown-muted);
    white-space: nowrap;
}

.gb-entry-message {
    font-size: 0.95rem;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-brown);
}

/* Anhänge: nur anklickbare Einträge, öffnen sich in der Lightbox */
.gb-entry-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.gb-attachment {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: transparent;
    border: 1px solid rgba(29, 78, 216, 0.35);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-blue);
    cursor: pointer;
    transition: var(--transition);
}

.gb-attachment:hover,
.gb-attachment:focus-visible {
    background: rgba(29, 78, 216, 0.08);
    border-color: var(--accent-blue);
}

.gb-entries-note {
    margin-top: 30px;
    font-size: 0.95rem;
    color: var(--text-brown-muted);
}

.gb-more { margin-top: 30px; }
.gb-more .btn { margin-left: 0; }

/* Responsive Pop-up / Modal Styles */
.gb-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.gb-modal-overlay.active {
    display: flex;
}

.gb-modal-box {
    background: var(--bg-color);
    border: 1px solid rgba(59, 37, 20, 0.2);
    border-radius: 8px;
    padding: 30px 25px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.gb-modal-box h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-brown);
}

.gb-modal-box p {
    font-size: 0.9rem;
    color: var(--text-brown-muted);
    margin-bottom: 25px;
}

.gb-modal-buttons {
    flex-direction: column;
    gap: 12px;
}

.gb-modal-buttons .btn {
    margin-left: 0;
    width: 100%;
    overflow-wrap: anywhere;
}

.gb-btn-cancel {
    background: transparent;
    border: none;
    color: #dc2626;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px;
    margin-top: 5px;
    transition: var(--transition);
}

.gb-btn-cancel:hover {
    text-decoration: underline;
}

html.has-custom-cursor,
html.has-custom-cursor * {
    cursor: none !important;
}

html.has-custom-cursor input,
html.has-custom-cursor textarea {
    cursor: text !important;
}

html.has-custom-cursor *:disabled {
    cursor: not-allowed !important;
}

html.has-custom-cursor {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

html.has-custom-cursor input,
html.has-custom-cursor textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    user-select: text;
}

html.has-custom-cursor img {
    -webkit-user-drag: none;
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 6000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-cursor.is-visible { opacity: 1; }

.custom-cursor-inner {
    position: absolute;
    top: 0;
    left: 0;
    background: center / contain no-repeat;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-cursor.is-hovering .custom-cursor-inner {
    transform: translate(-50%, -50%) scale(1.3);
}

.custom-cursor.is-down .custom-cursor-inner {
    transform: translate(-50%, -50%) scale(0.8);
}

.custom-cursor.is-down.is-hovering .custom-cursor-inner {
    transform: translate(-50%, -50%) scale(1.05);
}

.cursor-tap {
    position: fixed;
    top: 0;
    left: 0;
    background: center / contain no-repeat;
    pointer-events: none;
    z-index: 6000;
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.4);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease;
}

.lang-toggle-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 5px;
    transition: transform 0.2s ease;
    vertical-align: middle;
}

.lang-toggle-btn:hover {
    transform: scale(1.15);
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.12);
    }
    100% {
        transform: scale(1);
    }
}

.cover-lang-toggle {
    background: transparent;
    border: none;
    font-size: 2.4rem;
    cursor: pointer;
    margin-top: 10px;
    
    animation: pulseGlow 2.5s infinite ease-in-out;
    
    transition: transform 0.2s ease, filter 0.2s ease;
    display: inline-block;
}

.cover-lang-toggle:hover {
    animation-play-state: paused;
    transform: scale(1.25);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.cover-lang-toggle:active {
    transform: scale(0.95);
}