/* ================= GRUNDEINSTELLUNGEN & FARBEN ================= */
:root {
    --bg-color: #f4e4bc; /* Helles Pergament */
    --text-color: #1a1a1a; /* Fast Schwarz (Tusche) */
    --accent-color: #a83f3f; /* Alchemisten-Rot */
    --line-color: #3e3e3e; /* Dunkelgrau für Linien */
}

/* Pergament-Hintergrund Textur */
body {
    background-color: var(--bg-color);
    background-image: url('https://www.transparenttextures.com/patterns/aged-paper.png'); /* Subtile Papiertextur */
    color: var(--text-color);
    font-family: 'Cormorant Garamond', serif; /* Klassische Schrift für Fließtext */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    text-align: center;
    border: 20px solid transparent;
    border-image: url('https://i.imgur.com/3k93gY7.png') 30 stretch; /* Ein einfacher Rahmen im alten Stil */
}

/* Überschriften Stil (Fraktur-ähnlich) */
h1, h2, h3 {
    font-family: 'Cinzel Decorative', cursive;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

h1 { font-size: 3.5rem; color: var(--text-color); margin-top: 1rem;}
h2 { font-size: 1.5rem; color: var(--accent-color); }
h3 { font-size: 2rem; border-bottom: 2px solid var(--accent-color); display: inline-block; padding-bottom: 10px; margin-top: 2rem;}

/* Links */
a { color: var(--accent-color); text-decoration: none; transition: all 0.3s ease;}
a:hover { color: var(--text-color); text-shadow: 0 0 5px var(--accent-color);}

/* Trenner */
.separator { font-size: 2rem; color: var(--accent-color); margin: 3rem 0; opacity: 0.7;}
.separator-small { font-size: 1.5rem; color: var(--accent-color); margin: 1rem 0;}

/* ================= SECTIONS ================= */
section {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

section.music-section {
    max-width: 1400px;
    padding: 2rem 1.5rem;
}

/* --- Hero Section --- */
.hero-section { padding-top: 0; }
.banner-container { width: 100%; overflow: hidden; border-bottom: 3px double var(--line-color); }
.hero-banner { width: 100%; height: auto; display: block;}

.profile-container {
    margin-top: -70px; /* Schiebt das Profilbild in das Banner */
    position: relative;
    z-index: 10;
}
.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px double var(--accent-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background-color: var(--bg-color);
}
.subline { font-style: italic; font-size: 1.2rem; opacity: 0.9;}

/* Mobile: Banner sichtbar halten */
@media (max-width: 768px) {
    .profile-container {
        margin-top: 1rem;
    }
    .banner-container {
        margin-bottom: 1rem;
    }
}

/* Social Links im Hero */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.social-seal {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--line-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    background: var(--bg-color);
    letter-spacing: 0.05em;
    font-family: 'Cinzel', serif;
}
.social-seal::before { content: '✻ '; color: var(--accent-color);}
.social-seal:hover {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: var(--bg-color);
    text-shadow: none;
    transform: translateY(-2px);
}

/* --- Manifest --- */
.manifest-section .content-block {
    font-size: 1.15rem;
    text-align: justify;
    text-justify: inter-word;
}
.signature { text-align: right; font-weight: bold; margin-top: 1.5rem; color: var(--accent-color);}

/* --- Music Grimoire --- */
.music-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}
.music-header h3 { margin: 0;}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}
.toggle-btn {
    background: var(--bg-color);
    border: 2px solid var(--line-color);
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
}
.toggle-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.toggle-btn.active {
    background: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}

.music-list { margin-top: 2rem; text-align: left;}
.music-grid { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1400px) {
    .music-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1024px) and (max-width: 1399px) {
    .music-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .music-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .music-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.song-entry {
    border: 1px solid var(--line-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.1);
    position: relative;
    /* Kleine Ecken-Markierungen */
    background-image: linear-gradient(var(--accent-color), var(--accent-color)), linear-gradient(var(--accent-color), var(--accent-color)), linear-gradient(var(--accent-color), var(--accent-color)), linear-gradient(var(--accent-color), var(--accent-color));
    background-repeat: no-repeat;
    background-size: 8px 2px, 2px 8px, 8px 2px, 2px 8px;
    background-position: top left, top left, bottom right, bottom right;
}
.song-header { margin-bottom: 1rem; border-bottom: 1px dashed var(--line-color); padding-bottom: 0.5rem;}
.song-title { font-family: 'Cinzel Decorative', cursive; font-size: 1.3rem; font-weight: bold; display: block;}
.song-date { color: var(--accent-color); font-size: 0.9rem;}

.song-links { display: flex; gap: 1rem; flex-wrap: wrap;}
.seal-link {
    padding: 0.5rem 1rem;
    border: 2px solid var(--line-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    position: relative;
    background: var(--bg-color);
}
.seal-link::before { content: '✻ '; color: var(--accent-color);}
.seal-link:hover {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: var(--bg-color);
}

/* --- Kachelansicht (Grid) --- */
.song-card {
    background: rgba(255,255,255,0.3);
    border: 2px solid var(--line-color);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-radius: 4px;
    position: relative;
}
.song-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.song-card:hover::before {
    transform: scaleX(1);
}
.song-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    border-color: var(--accent-color);
}
.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.card-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: var(--line-color);
}
.card-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.song-card:hover .card-thumbnail img {
    transform: scale(1.05);
}
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 4px 20px rgba(0,0,0,0.9);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(168, 63, 63, 0.85);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 8px;
}
.song-card:hover .play-overlay {
    background: rgba(168, 63, 63, 1);
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 30px rgba(168, 63, 63, 0.8);
}
.card-content {
    padding: 1.2rem;
    text-align: left;
    background: linear-gradient(to bottom, rgba(244,228,188,0.95), rgba(244,228,188,1));
}
.card-title {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6em;
}
.card-date {
    color: var(--accent-color);
    font-size: 0.85rem;
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Kontakt --- */
.contact-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 3rem;
    background-color: var(--bg-color);
    border: 3px double var(--accent-color);
    color: var(--accent-color);
    font-family: 'Cinzel Decorative', cursive;
    font-size: 1.5rem;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 5px 5px 0px var(--line-color);
    transition: all 0.2s ease;
}
.contact-button:hover {
    box-shadow: 2px 2px 0px var(--line-color);
    transform: translate(3px, 3px);
    background-color: var(--accent-color);
    color: var(--bg-color);
}
.contact-mail-plain { margin-top: 1rem; font-size: 0.9rem; opacity: 0.7;}

/* --- Footer --- */
footer { margin-top: 4rem; padding-bottom: 2rem; font-size: 0.9rem; opacity: 0.8;}
.footer-subtext { 
    font-size: 0.85rem; 
    margin-top: 0.5rem; 
    opacity: 0.7;
    font-style: italic;
}
.creator-link {
    font-weight: 600;
    text-decoration: underline;
    opacity: 1;
}
.footer-links a { margin: 0 10px;}

/* ================= ANIMATIONEN ================= */
/* Ein subtiles Pulsieren für das Banner oder Profilbild */
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(168, 63, 63, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(168, 63, 63, 0); }
    100% { box-shadow: 0 0 0 0 rgba(168, 63, 63, 0); }
}

.profile-image {
    animation: pulse-red 3s infinite;
}

/* ================= MOBILE SPLASH SCREEN ================= */
.mobile-splash {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f4e4bc 0%, #e8d4a8 100%);
    background-image: 
        url('https://www.transparenttextures.com/patterns/aged-paper.png'),
        linear-gradient(135deg, #f4e4bc 0%, #e8d4a8 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: splashFadeIn 0.8s ease-out;
}

.mobile-splash.fade-out {
    animation: splashFadeOut 0.8s ease-in forwards;
}

.splash-content {
    text-align: center;
    padding: 2rem;
    animation: splashContentSlideUp 1s ease-out 0.3s both;
}

.splash-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px double var(--accent-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
    animation: logoFloat 3s ease-in-out infinite, logoPulse 2s ease-in-out infinite;
}

.splash-title {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 2.5rem;
    color: var(--text-color);
    margin: 1rem 0;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.splash-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--accent-color);
    font-style: italic;
    margin-bottom: 3rem;
}

.enter-button {
    background: var(--accent-color);
    color: var(--bg-color);
    border: 3px double var(--text-color);
    padding: 1.2rem 3rem;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(168, 63, 63, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.enter-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(168, 63, 63, 0.6);
}

.enter-button:active {
    transform: translateY(0);
}

.enter-icon {
    font-size: 1.5rem;
    animation: iconRotate 2s linear infinite;
}

/* Install App Button */
.install-app-btn {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--bg-color);
    border: 2px solid var(--text-color);
    padding: 1rem 1.5rem;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(168, 63, 63, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    animation: installBtnBounce 2s ease-in-out infinite;
    white-space: nowrap;
}

.install-app-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(168, 63, 63, 0.7);
}

.install-icon {
    font-size: 1.2rem;
}

.hidden {
    display: none !important;
}

/* Animationen */
@keyframes splashFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes splashFadeOut {
    to { 
        opacity: 0; 
        transform: scale(1.1);
    }
}

@keyframes splashContentSlideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes logoPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(168, 63, 63, 0.3); }
    50% { box-shadow: 0 10px 40px rgba(168, 63, 63, 0.6); }
}

@keyframes iconRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

/* Media Queries für Mobile */
@media (max-width: 600px) {
    h1 { font-size: 2.5rem; }
    .profile-image { width: 140px; height: 140px; margin-top: -50px;}
    body { border-width: 10px; padding-bottom: 100px; }
    .music-header { flex-direction: column; text-align: center;}
    .music-grid { grid-template-columns: 1fr; }
    .social-links { gap: 0.5rem; }
    .social-seal { padding: 0.5rem 1rem; font-size: 0.8rem; }
    
    .splash-title { font-size: 2rem; }
    .enter-button { padding: 1rem 2rem; font-size: 1rem; }
    .install-app-btn { 
        bottom: 20px; 
        left: 50%;
        transform: translateX(-50%);
        padding: 0.8rem 1.2rem; 
        font-size: 0.85rem;
        max-width: 90%;
    }
}



/* ================= ANIMATIONEN ================= */

/* Pulsierendes Profilbild */
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(168, 63, 63, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(168, 63, 63, 0); }
    100% { box-shadow: 0 0 0 0 rgba(168, 63, 63, 0); }
}

.profile-image {
    animation: pulse-red 3s infinite;
}

/* Schwebende/atmende Animation für Banner */
@keyframes float-breathe {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: translateY(-8px) scale(1.01);
        filter: brightness(1.05);
    }
}

.hero-banner {
    animation: float-breathe 6s ease-in-out infinite;
}

/* Rotierende/pulsierende Trennzeichen */
@keyframes rotate-pulse {
    0%, 100% { 
        transform: rotate(0deg) scale(1);
        opacity: 0.7;
    }
    25% { 
        transform: rotate(90deg) scale(1.1);
        opacity: 0.9;
    }
    50% { 
        transform: rotate(180deg) scale(1);
        opacity: 0.7;
    }
    75% { 
        transform: rotate(270deg) scale(1.1);
        opacity: 0.9;
    }
}

.separator {
    display: inline-block;
    animation: rotate-pulse 12s ease-in-out infinite;
}

/* Glühender Text-Effekt für Überschriften */
@keyframes glow-text {
    0%, 100% { 
        text-shadow: 0 0 5px rgba(168, 63, 63, 0.3);
    }
    50% { 
        text-shadow: 0 0 20px rgba(168, 63, 63, 0.6),
                     0 0 30px rgba(168, 63, 63, 0.4);
    }
}

h1 {
    animation: glow-text 4s ease-in-out infinite;
}

/* Schwebende Animation für Social Seals */
@keyframes float-gentle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.social-seal {
    transition: all 0.3s ease;
}

.social-seal:hover {
    animation: float-gentle 1s ease-in-out infinite;
}

/* Flackerndes Licht-Effekt für aktive Buttons */
@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
    75% { opacity: 0.98; }
}

.toggle-btn.active {
    animation: flicker 2s ease-in-out infinite;
}

/* Subtile Bewegung für Song Entries beim Laden */
@keyframes fade-slide-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.song-entry, .song-card {
    animation: fade-slide-in 0.6s ease-out forwards;
}

.song-entry:nth-child(1), .song-card:nth-child(1) { animation-delay: 0.1s; opacity: 0; }
.song-entry:nth-child(2), .song-card:nth-child(2) { animation-delay: 0.2s; opacity: 0; }
.song-entry:nth-child(3), .song-card:nth-child(3) { animation-delay: 0.3s; opacity: 0; }
.song-entry:nth-child(4), .song-card:nth-child(4) { animation-delay: 0.4s; opacity: 0; }
.song-entry:nth-child(5), .song-card:nth-child(5) { animation-delay: 0.5s; opacity: 0; }
.song-entry:nth-child(n+6), .song-card:nth-child(n+6) { animation-delay: 0.6s; opacity: 0; }

/* Mystischer Partikel-Effekt für den Hintergrund */
@keyframes float-particles {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

body::before {
    content: '✻';
    position: fixed;
    bottom: -50px;
    left: 10%;
    font-size: 2rem;
    color: var(--accent-color);
    opacity: 0;
    animation: float-particles 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

body::after {
    content: '✻';
    position: fixed;
    bottom: -50px;
    right: 20%;
    font-size: 1.5rem;
    color: var(--accent-color);
    opacity: 0;
    animation: float-particles 20s ease-in-out infinite 5s;
    pointer-events: none;
    z-index: 1;
}

/* Subtile Schatten-Animation für Contact Button */
@keyframes shadow-pulse {
    0%, 100% {
        box-shadow: 5px 5px 0px var(--line-color);
    }
    50% {
        box-shadow: 8px 8px 15px rgba(168, 63, 63, 0.3), 
                    5px 5px 0px var(--line-color);
    }
}

.contact-button {
    animation: shadow-pulse 3s ease-in-out infinite;
}