* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Sorgt dafür, dass Padding Boxen nicht breiter macht */
}

body {
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f7f4ed;
    padding: 20px;
    background-image: url('assets/Wir.JPG');
    background-size: cover;
    background-position:  54% ;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* Eine Hilfsklasse, um Elemente später per JS ein- und auszublenden */
.hidden {
    display: none !important;
}

#question-screen {
    background: #ffffff;
    width: 100%;
    max-width: 420px;           /* Angenehme Breite für mobile und Desktop */
    padding: 32px 24px;
    border-radius: 16px;        /* Weiche, moderne Ecken */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Sanfter, edler Schatten */
    display: flex;
    flex-direction: column;     /* Ordnet alle Elemente sauber untereinander */
    gap: 16px;                  /* Gleichmäßiger Abstand zwischen Texten, Input und Button */
    text-align: center;
}

#question-screen h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

#question-screen p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555555;            /* Leichtes Grau für den Fließtext wirkt eleganter als hartes Schwarz */
}

#answer-button {
    background-color: #ff69b4;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.1s ease, background-color 0.2s ease;
}

#answer-button:active {
    transform: scale(0.98);     /* Gibt beim Klick auf dem Handy haptisches Feedback */
    background-color: #EE6AA7;
}

#captcha-overlay {
    position: fixed;        /* Löst das Overlay aus dem normalen Fluss und legt es drüber */
    top: 0;
    left: 0;
    width: 100vw;           /* Volle Bildschirmbreite */
    height: 100dvh;         /* Volle Bildschirmhöhe */
    background-color: rgba(0, 0, 0, 0.6); /* Dunkler, halbtransparenter Schleier */
    backdrop-filter: blur(3px); /* Macht den Hintergrund dahinter leicht unscharf (sehr edel) */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;          /* Garantiert, dass es immer ganz oben liegt */
    padding: 16px;
}

.captcha-box {
    background-color: #ffffff;
    width: 100%;
    max-width: 360px; /* Perfekte Breite für ein Handy */
    padding: 8px;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    font-family: 'Roboto', sans-serif;
}

#captcha-button {
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 2px;
}

.captcha-header {
    background-color: #1a73e8; /* Typisches Google-Captcha-Blau */
    color: #ffffff;
    padding: 20px 16px;
    margin-bottom: 8px;
}

/* Falls du für "Feinis" ein h2 oder strong genutzt hast, mach es schön groß: */ 
.captcha-header p {
    display: block;
    font-size: 1.0rem;
    margin-top: 4px;
}
#bold {
    font-size: 1.4rem;
    font-weight: 700;
    display: block;
}

.captcha-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 gleich breite Spalten */
    gap: 4px; /* Kleiner weißer Abstand zwischen den Bildern */
}

.captcha-img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Macht jedes Bild quadratisch */
    object-fit: cover;   /* Schneidet Ränder sauber ab, statt das Bild zu quetschen */
    object-position: top center;
    cursor: pointer;
    transition: transform 0.15s ease, border 0.15s ease; /* Weiche Animation beim Antippen */
}

.captcha-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    display: flex; justify-content: flex-end;
}

/* Diese Klasse schalten wir gleich per JavaScript beim Antippen an und aus: */
.captcha-img.selected {
    transform: scale(0.86); /* Bild schrumpft leicht nach innen wie beim Original */
    border: 3px solid #1a73e8;
    border-radius: 4px;
}

#main-content {
    width: 100%;
    max-width: 500px;        /* Verhindert, dass es auf Laptops ins Unendliche wächst */
    padding: 24px 16px;
    box-sizing: border-box;  /* Verhindert horizontales Scrollen */
    display: flex;
    flex-direction: column;  /* Stapelt alles untereinander */
    gap: 32px;               /* Abstand zwischen Texten und Bildern */
}

.polaroid-gallery {
    display: flex;
    flex-wrap: wrap;      
    justify-content: center;
    gap: 24px;
    width: 100%;
}
.polaroid img {
    width: 100%;           
    height: auto;          
    aspect-ratio: 1 / 1;   
    object-fit: cover;     
    display: block;        
}

.polaroid {
    margin: 10;
    width: 60%;
    max-width: 200px;
    background: #ffffff;
    padding: 12px 12px 28px 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.542);
}
.polaroid figcaption {
    font-family: 'Caveat' ;
    font-size: 0.8rem;     
    margin-top: 6px;
    text-align: center;
    color: #2c2c2c;
}
.polaroid.align-left {
    transform: rotate(-3deg);
}

/* Foto nach rechts schieben und leicht im Uhrzeigersinn drehen */
.polaroid.align-right {
    transform: rotate(2.5deg);
}

.note-card {
    max-width: 100%;
    background: #ffffff;
    padding: 18px 22px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    line-height: 1.6;
    color: #444444;
    font-size: 0.95rem;
    align-self: center; /* Hält die Texte schön in der Mitte zwischen den versetzten Bildern */
}

.row {
    display: flex;
    align-items: center;            /* Richtet Bild und Textkärtchen vertikal mittig zueinander aus */
    justify-content: space-between; /* Schiebt Bild und Text an die jeweiligen Außenränder */
    gap: 12px;                      /* Kleiner Zwischenraum */
    width: 100%;
}

.row.reverse {
    flex-direction: row-reverse;
}

.row .polaroid {
    width: 46%;
    max-width: 175px;               /* Ideale Größe fürs Smartphone-Display */
    margin: 0;
    padding: 8px 8px 18px 8px;      /* Zierlicher Polaroid-Rand */
    box-sizing: border-box;
}

.row .note-card {
    width: 48%;
    background: #ffffff;
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-size: 0.85rem;
    line-height: 1.45;
    color: #444444;
    text-align: center;
    box-sizing: border-box;
}

/* Der Button unten */
.author-section {
    margin: 40px 0 20px 0;
    text-align: center;
}

#author-btn {
    background: none;
    border: 1px dashed #aaa;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

#author-btn:hover {
    background: #fff;
    color: #333;
    border-color: #333;
}

/* Das Modal-Overlay */
#author-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Die Visitenkarte */
.author-card {
    background: white;
    width: 85%;
    max-width: 320px;
    padding: 24px 20px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

#author-close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid #f7f4ed;
}

.author-card h3 {
    margin: 6px 0;
    font-size: 1.1rem;
}

.author-bio {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    margin: 10px 0;
}

.counter-box {
    background: #ffffff;
    padding: 16px 20px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    width: 90%;
    max-width: 360px;
    margin: 10px auto;
    box-sizing: border-box;
}

.counter-title {
    display: block;
    font-size: 0.85rem;
    color: #777777;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.counter-display {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-unit .number {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2b2b2b;
}

.time-unit .label {
    font-size: 0.7rem;
    color: #999999;
    margin-top: 2px;
}

#bildOben {
    border-radius: 18px;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.562);
}

#glücklich {
    object-position: top;
    object-fit: cover;
} 

.abtrennung {
    opacity: 50%;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
    letter-spacing: -1px;
    font-size: 0.6rem;
    animation: gentle-float 3s ease-in-out infinite alternate;
}

@keyframes gentle-float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-3px); }
}

#suprise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.überraschung {
    background: white;
    width: 85%;
    max-width: 320px;
    padding: 24px 20px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

#überraschungSchließen {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}

#music-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: none;
    z-index: 900;
    cursor: pointer;
}