/* --- Globale Einstellungen & Neo-Glass Setup --- */
:root {
    /* Farben (Neon Akzent & Tiefes Dunkel) */
    --color-neon-primary: #68aeff; /* Helles Cyan-Grün (Aktivität/Hervorhebung) */
    --color-neon-secondary: #ff58a6; /* Neon Magenta (Aktion/Löschen) */
    --color-text-light: #e0e0e0;
    --color-text-dark: #1a1a1a;
    --color-background: #0d0d15; /* Sehr dunkles, leicht bläuliches Schwarz */
    --color-surface: #1e1e2e; /* Dunkle Oberflächen */

    /* Glass-Effekt Variablen */
    --color-glass-base: rgba(30, 30, 46, 0.6); /* Dunklere, tiefere Glass Basis */
    --color-border: rgba(136, 208, 250, 0.801); /* Neon-Border */
    --border-radius-base: 12px;
    --blur-intensity: 15px; /* Stärkere Unschärfe */

    /* Schatten (Dynamisch und Neon-Glow) */
    --shadow-neon-glow: 0 0 15px rgba(112, 196, 252, 0.63); /* Leichter Neon-Schein */
    --shadow-deep: 0 10px 40px rgba(0, 0, 0, 0.9);
    
    --font-family-primary: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Basis-Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-primary);
    background-color: var(--color-background);
    color: var(--color-text-light);
    line-height: 1.7;
    padding: 20px;
    min-height: 100vh;
    /* Futuristische Hintergrund-Animation/Muster */
    background-image: 
        radial-gradient(circle at 10% 20%, #fd5ed622 0%, transparent 25%), 
        radial-gradient(circle at 90% 80%, #58baf322 0%, transparent 25%);
}

/* --- Neo-Glass-Effekt für Boxen --- */
.glass-effect {
    background: var(--color-glass-base);
    border-radius: var(--border-radius-base);
    box-shadow: var(--shadow-neon-glow); /* Anfangs-Glow */
    backdrop-filter: blur(var(--blur-intensity)); 
    -webkit-backdrop-filter: blur(var(--blur-intensity));
    border: 1px solid var(--color-border);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
}

.glass-effect:hover {
    box-shadow: var(--shadow-deep), 0 0 25px rgba(83, 168, 247, 0.8); /* Intensiverer Glow beim Hover */
    transform: translateY(-5px); /* Auffälliger Lift-Effekt */
}


/* --- Header & Typography --- */
header {
    text-align: center;
    padding: 60px 20px 40px;
    margin-bottom: 40px;
}

header h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    color: var(--color-neon-primary);
    text-shadow: 0 0 20px rgba(89, 156, 243, 0.9); /* Starker Neon-Schein */
    letter-spacing: 2px;
    text-transform: uppercase;
}

header p {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 300;
}

h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--color-neon-primary);
    border-left: 5px solid var(--color-neon-secondary);
    padding-left: 15px;
    font-weight: 600;
}

/* --- Main Content Layout (Größere Wunschliste) --- */
main {
    max-width: 1100px; /* VERGRÖSSERT für eine breitere Wunschliste */
    margin: 0 auto;
}

/* --- Formular-Stile --- */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--color-neon-primary);
    text-transform: uppercase;
    font-size: 0.9rem;
}

input[type="url"],
input[type="text"] {
    width: 100%;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-base);
    background-color: rgba(255, 255, 255, 0.05); 
    color: var(--color-text-light);
    font-size: 1.1rem;
    transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s;
}

input[type="url"]:focus,
input[type="text"]:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-neon-primary);
    box-shadow: 0 0 10px rgba(110, 182, 241, 0.6);
}

/* --- Button-Stile --- */
.btn {
    padding: 14px 30px;
    border: none;
    border-radius: var(--border-radius-base);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.primary-btn {
    background-color: var(--color-neon-primary);
    color: var(--color-text-dark);
    box-shadow: 0 5px 20px rgba(45, 171, 255, 0.5);
}

.primary-btn:hover {
    background-color: #33adff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 162, 255, 0.8);
}

.secondary-btn {
    background-color: var(--color-neon-secondary);
    color: var(--color-text-light);
    box-shadow: 0 5px 20px rgba(243, 70, 151, 0.5);
}

.secondary-btn:hover {
    background-color: #f870b4;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 0, 119, 0.8);
}

.tertiary-btn {
    /* Subtle Glass Look */
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-light);
    margin-left: 15px;
    border: 1px solid var(--color-neon-primary);
    box-shadow: none;
}

.tertiary-btn:hover {
    background: rgba(96, 198, 245, 0.2);
    border-color: var(--color-neon-primary);
}

/* --- Wunschlisten-Container --- */
#wishlist-container {
    list-style: none;
    padding: 0;
}

.wish-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px 30px;
    
    /* Neo-Glass-Effekt wird hier über Klasse angewendet */
    background: var(--color-glass-base);
    border-radius: var(--border-radius-base);
    box-shadow: var(--shadow-neon-glow); 
    backdrop-filter: blur(var(--blur-intensity)); 
    border: 1px solid var(--color-border);

    transition: all 0.3s ease;
}

.wish-item:hover {
    border-left: 5px solid var(--color-neon-primary); /* Hervorhebung beim Hover */
    box-shadow: 0 0 20px rgba(98, 170, 252, 0.6);
}

.wish-item a {
    color: var(--color-text-light);
    text-decoration: none;
    flex-grow: 1;
    display: block;
    padding-right: 20px;
}

.wish-item a:hover .item-title {
    color: var(--color-neon-primary);
    text-decoration: underline;
}

.item-title {
    font-weight: 500;
    font-size: 1.3rem; /* Größerer Titel */
}

.remove-btn {
    background: none;
    border: 2px solid var(--color-neon-secondary);
    color: var(--color-neon-secondary);
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.8;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.remove-btn:hover {
    opacity: 1;
    background-color: var(--color-neon-secondary);
    color: var(--color-text-light);
    transform: scale(1.1);
}

.hidden {
    display: none !important;
}

#empty-state {
    text-align: center;
    padding: 80px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--color-neon-primary);
    opacity: 0.5;
}

/* --- Speicher-Bereich --- */
.save-section p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.link-output {
    margin-top: 25px;
    padding: 20px;
    border-radius: var(--border-radius-base);
    background-color: var(--color-surface);
    border: 2px dashed var(--color-neon-primary);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.link-output p {
    margin-bottom: 0;
    margin-right: 20px;
    font-weight: 600;
    color: var(--color-neon-primary);
    min-width: 80px;
}

#generated-link {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--color-text-light);
    font-size: 1rem;
    font-family: monospace; /* Für Links gut lesbar */
    overflow-x: auto;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 40px 20px 20px;
    margin-top: 60px;
    opacity: 0.4;
    font-size: 0.85rem;
    border-top: 1px solid rgba(82, 169, 250, 0.1);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    header h1 {
        font-size: 3rem;
    }
    
    .glass-effect {
        padding: 25px;
    }

    .btn {
        width: 100%;
        margin-top: 15px;
    }

    /* Tertiärer Button neben Primär/Sekundär auf Mobil */
    .btn.tertiary-btn {
        margin-left: 0;
        margin-top: 10px;
    }

    .link-output {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .link-output p {
        margin-bottom: 15px;
        margin-right: 0;
    }

    #generated-link {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .wish-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .wish-item a {
        padding-right: 0;
        margin-bottom: 15px;
    }
}