:root {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --gold-color: #D4AF37;
    --dark-gold-color: #b89b3c;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Lato', sans-serif;
}

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

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(40,40,40,0.5) 0%, rgba(26,26,26,1) 100%), 
                url('https://www.transparenttextures.com/patterns/dark-denim-3.png');
    z-index: -1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

/* --- Animationen --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.content-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content-section.active {
    opacity: 1;
    transform: translateY(0);
}

#winner-card {
    display: none; /* Standardmäßig ausblenden */
    position: relative;
    padding-top: 50px;
    animation: scaleIn 0.5s forwards;
}

/* --- Hero Bereich --- */
.hero {
    padding: 4rem 0;
    animation: fadeIn 1s ease-out;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 300;
    color: #fff;
    margin: 0;
    letter-spacing: 2px;
}

.subtitle {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-color);
    margin: -1rem 0 1rem 0;
}

.intro-text {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* --- Suche --- */
#search-section h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
}

#plz-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 2rem 0;
}

#plz-input {
    font-size: 1.1rem;
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #333;
    color: #fff;
    width: 200px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#plz-input:focus {
    outline: none;
    border-color: var(--gold-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

button {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 400;
    padding: 12px 25px;
    border-radius: 5px;
    border: none;
    background-color: var(--gold-color);
    color: #1a1a1a;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover, button:focus {
    background-color: var(--dark-gold-color);
    transform: translateY(-2px);
}

button:disabled {
    background-color: #555;
    cursor: not-allowed;
    transform: none;
}


/* --- Gewinnerkarte --- */
.winner-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}
.badge-svg {
    width: 100%;
    height: 100%;
}

#winner-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid var(--gold-color);
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

#winner-name {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--gold-color);
    margin: 1rem 0 0.5rem 0;
}

#winner-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

#back-to-search {
    background-color: #444;
    color: #fff;
}
#back-to-search:hover {
    background-color: #555;
}

.error {
    color: #ff8a8a;
    height: 20px;
    transition: opacity 0.3s;
}

/* --- Info Bereich --- */
.info-section {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
    text-align: left;
    animation: fadeIn 1s 0.5s ease-out forwards;
    opacity: 0;
}

.info-box {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--gold-color);
}

.info-box h3 {
    font-family: var(--font-heading);
    color: var(--gold-color);
    margin-top: 0;
}

/* --- Footer --- */
footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #888;
}

:root {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --gold-color: #D4AF37;
    --dark-gold-color: #b89b3c;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Lato', sans-serif;
}

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

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(40,40,40,0.5) 0%, rgba(26,26,26,1) 100%), 
                url('https://www.transparenttextures.com/patterns/dark-denim-3.png');
    z-index: -1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

/* --- Animationen --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.content-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content-section.active {
    opacity: 1;
    transform: translateY(0);
}

#winner-card {
    display: none; /* Standardmäßig ausblenden */
    position: relative;
    padding-top: 50px;
    animation: scaleIn 0.5s forwards;
}

/* --- Hero Bereich --- */
.hero {
    padding: 4rem 0;
    animation: fadeIn 1s ease-out;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 300;
    color: #fff;
    margin: 0;
    letter-spacing: 2px;
}

.subtitle {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-color);
    margin: -1rem 0 1rem 0;
}

.intro-text {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* --- Suche --- */
#search-section h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
}

#plz-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 2rem 0;
}

#plz-input {
    font-size: 1.1rem;
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #333;
    color: #fff;
    width: 200px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#plz-input:focus {
    outline: none;
    border-color: var(--gold-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

button {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 400;
    padding: 12px 25px;
    border-radius: 5px;
    border: none;
    background-color: var(--gold-color);
    color: #1a1a1a;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover, button:focus {
    background-color: var(--dark-gold-color);
    transform: translateY(-2px);
}

button:disabled {
    background-color: #555;
    cursor: not-allowed;
    transform: none;
}


/* --- Gewinnerkarte --- */
.winner-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}
.badge-svg {
    width: 100%;
    height: 100%;
}

#winner-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid var(--gold-color);
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

#winner-name {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--gold-color);
    margin: 1rem 0 0.5rem 0;
}

#winner-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

#back-to-search {
    background-color: #444;
    color: #fff;
}
#back-to-search:hover {
    background-color: #555;
}

.error {
    color: #ff8a8a;
    height: 20px;
    transition: opacity 0.3s;
}

/* --- Info Bereich --- */
.info-section {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
    text-align: left;
    animation: fadeIn 1s 0.5s ease-out forwards;
    opacity: 0;
}

.info-box {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--gold-color);
}

.info-box h3 {
    font-family: var(--font-heading);
    color: var(--gold-color);
    margin-top: 0;
}

/* --- Footer --- */
footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #888;
}

/* ... (alle bisherigen CSS-Regeln) ... */

/* NEU: Styling für den Teilen-Button */
#share-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #777;
    border-radius: 50%;
    color: var(--gold-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0; /* Wichtig, um SVG zu zentrieren */
}

#share-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
    border-color: var(--gold-color);
    transform: scale(1.1);
}

#share-button svg {
    width: 24px;
    height: 24px;
}

/* NEU: Tooltip für "Link kopiert" Feedback */
#share-button .share-tooltip {
    visibility: hidden;
    width: 120px;
    background-color: var(--gold-color);
    color: var(--bg-color);
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Positioniert den Tooltip über dem Button */
    left: 50%;
    margin-left: -60px; /* Zentriert den Tooltip */
    opacity: 0;
    transition: opacity 0.3s;
    font-weight: bold;
}

#share-button .share-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--gold-color) transparent transparent transparent;
}

#share-button.copied .share-tooltip {
    visibility: visible;
    opacity: 1;
}

/* ... (alle bisherigen CSS-Regeln bleiben unverändert) ... */

/* NEU: Trennlinie zwischen Suche und Inhalt */
.content-divider {
    height: 1px;
    width: 100px;
    background-color: var(--gold-color);
    margin: 4rem auto;
    opacity: 0.5;
}

/* NEU: Basis-Styling für die neuen Text-Sektionen */
.text-section {
    max-width: 700px; /* Bessere Lesbarkeit für lange Texte */
    margin: 3rem auto;
    text-align: left;
    animation: fadeIn 1s 0.2s ease-out forwards;
    opacity: 0; /* Für Fade-In Animation */
}

.text-section h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 1rem;
    text-align: center;
}

.text-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #ccc;
}

/* NEU: Styling für die Kriterien-Liste */
.criteria-list {
    list-style: none;
    padding-left: 0;
}

.criteria-list li {
    font-size: 1.1rem;
    padding-left: 30px;
    position: relative;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.criteria-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* NEU: Styling für die Zitat-Sektion */
.quote-section {
    position: relative;
    padding: 2rem;
    margin: 4rem auto;
    text-align: center;
    border-left: 3px solid var(--gold-color);
    background-color: rgba(255, 255, 255, 0.03);
}

.quote-section blockquote {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 400;
    color: #fff;
}

.quote-section cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    color: var(--gold-color);
    font-weight: 700;
}

/* NEU: Styling für den Footer */
footer {
    border-top: 1px solid #444; /* Bereits vorhanden, aber hier zur Klarheit */
}

.footer-links {
    margin-top: 0.5rem;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold-color);
}

/* ... (alle bisherigen CSS-Regeln) ... */

/* ================== NEU: Karten-Styling ================== */
#map {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Hinter allem */
    /* Helligkeit deutlich erhöht und Graustufen reduziert */
    filter: grayscale(60%) brightness(80%); 
    transition: filter 1s ease-in-out;
}

/* Die Karte wird bei der Gewinner-Anzeige noch heller und farbiger */
body.winner-revealed #map {
    filter: grayscale(10%) brightness(100%);
}

/* Das Overlay ist nun deutlich transparenter */
.background-overlay {
    position: fixed; /* Wichtig für die Positionierung */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Die Deckkraft des Farbverlaufs wurde stark reduziert (z.B. von 0.95 auf 0.85) */
    background: radial-gradient(ellipse at center, rgba(26,26,26,0.3) 0%, rgba(26,26,26,0.85) 100%);
}
/* ================== NEU: "Krassere" Animationen ================== */
@keyframes winnerReveal {
    0% {
        opacity: 0;
        transform: perspective(1000px) rotateY(-30deg) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: perspective(1000px) rotateY(0deg) scale(1);
    }
}

#winner-card.active {
    animation: winnerReveal 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* ================== NEU: Styling für Badge-Sektion ================== */
.embed-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    text-align: left;
}
.embed-section h3 {
    font-family: var(--font-heading);
    color: var(--gold-color);
    text-align: center;
    font-size: 1.5rem;
}
.embed-section p {
    text-align: center;
    font-size: 1rem;
    color: #ccc;
    max-width: 500px;
    margin: 0.5rem auto 1.5rem auto;
}
.code-container {
    position: relative;
}
.code-container pre {
    background-color: rgba(0,0,0,0.5);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #e0e0e0;
}
#copy-code-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #555;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
#copy-code-button:hover {
    background: var(--dark-gold-color);
}
#copy-code-button.copied {
    background: #28a745;
}


/* ================== NEU: Responsive Design ================== */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    .main-title {
        font-size: 2.8rem;
    }
    .subtitle {
        font-size: 1.8rem;
    }
    #plz-form {
        flex-direction: column;
        align-items: stretch;
    }
    #plz-input {
        width: auto;
    }
    #winner-image {
        height: 250px;
    }
    #winner-name {
        font-size: 2rem;
    }
    .text-section {
        padding: 0 1rem;
        text-align: justify;
    }
    .text-section h2 {
        font-size: 1.5rem;
    }
    #share-button {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    .winner-badge {
        width: 100px;
        height: 100px;
        top: -25px;
    }
}


#no-result-promo {
    /* Wir entfernen display:none und opacity:0, da dies von 
       der .content-section Klasse gesteuert wird. */
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.3); /* Goldener Rand */
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
#no-result-promo.active {
    display: block; /* Sichtbar machen, wenn aktiv */
}

.promo-text {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
}

.promo-button {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 5px;
    border: none;
    background-color: var(--gold-color);
    color: #1a1a1a;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.promo-button:hover, .promo-button:focus {
    background-color: var(--dark-gold-color);
    transform: translateY(-2px);
    color: #1a1a1a;
}

.owner-promo-section {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background-color: rgba(212, 175, 55, 0.08); /* Sehr dezenter, heller Gold-Ton */
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.25); /* Etwas stärkerer goldener Rand */
    text-align: center;
}

.owner-promo-section p {
    font-size: 1.2rem; /* Etwas größer, um aufzufallen */
    font-weight: 700;
    font-family: var(--font-heading); /* Nutzt die edle Überschriften-Schrift */
    color: #fff;
    margin: 0 0 1.2rem 0;
}

/* Wir verwenden den bereits existierenden .promo-button Stil wieder,
   stellen aber sicher, dass er korrekt angezeigt wird. */
.owner-promo-section .promo-button {
    display: inline-block; /* Stellt sicher, dass er sich wie ein Button verhält */
}


/* ================== NEU: Styling für die Badge-Vorschau ================== */

.badge-preview-container {
    text-align: center; /* Zentriert das Bild im Container */
    margin: 1.5rem 0;   /* Schafft vertikalen Abstand zur Beschreibung und zum Code */
}

.badge-preview-image {
    width: 150px;       /* Entspricht der Größe im Embed-Code */
    height: auto;
    border-radius: 8px; /* Passt zum restlichen Design */
    background-color: rgba(255, 255, 255, 0.05); /* Falls das Bild transparente Bereiche hat */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);   /* Hebt das Siegel hervor */
    transition: transform 0.3s ease;
}

.badge-preview-image:hover {
    transform: scale(1.05); /* Leichter Zoom-Effekt bei Mouseover */
}