/* Global Styles */
:root {
    /* Farbpalette */
    --color-background: #e2e7cc;
    --color-text: #333333;
    --color-accent: #e07a5f;
    --color-card: #ffffff;
    --color-shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0px;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: 'Roboto', sans-serif;
    width: 1366px;
    height: 1024px;
    margin: 0 auto;
}

/* Flex Layout */
.page-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 1024px;
    padding: 1rem;
}

/* Logo Section */
.logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    width: 100%;
    margin-bottom: 1rem;
}

/* Card Container */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    height: calc(100% - 200px - 3rem); /* Gesamthöhe minus Logo-Höhe und Abstand */
}

.logo {
    height: 130px;
    width: auto;
}

/* Logo Section mit Titel */
.logo-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100px;
    margin-bottom: 1rem;
    padding: 1rem;
    position: relative;
    box-sizing: border-box;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.page-title {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    transform: translateY(25px) translateX(-20px);
}

.back-link {
    transform: translateY(0px);
}

.back-icon {
    height: 40px;
    width: auto;
    transition: all 0.15s ease;
    transform: translateY(25px);
}

.back-link:active .back-icon {
    transform: translateY(25px) scale(0.85);
}

/* Seitenspezifische Titelfarben */
.lovestory-color {
    color: #bd2a3b;
}

.freude-color {
    color: #fb5a7b;
}

.events-color {
    color: #799654;
}

.angebote-color {
    color: #eb733f;
}

.news-color {
    color: #8f2d76;
}

.garden-color {
    color: #9e96d2;
}

/* Lovestory Page Styles */
.lovestory-content {
    display: flex;
    gap: 2rem;
    padding: 0;
    padding-right: 1rem;
    height: calc(100% - 120px);
}

.story-image-container {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 0rem;
}

.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 14% -1%;
    border-radius: 15px;
    border: 3px solid white;
    box-shadow: 0 4px 8px var(--color-shadow);
}

.story-text-container {
    flex: 1;
    padding: 0rem;
    padding-left: 5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 0;
}

.story-text-container h1 {
    font-size: 2.2rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.story-text-container p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--color-text);
}

/* Events Page Styles */
.events-content {
    /* padding: 0 1rem; */
    height: calc(100% - 120px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.events-header {
    text-align: left;
    padding: 0.5rem 0;
}

.events-header h1 {
    font-size: 2.2rem;
    color: var(--color-text);
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.events-header h2 {
    font-size: 1.8rem;
    color: var(--color-text);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.events-header p {
    font-size: 20px;
    color: var(--color-text);
    max-width: 800px;
    margin: 0;
    line-height: 1.5;
}

.events-cards {
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    flex-wrap: wrap;
    flex: 1;
    align-items: stretch;
    padding-top: 27px;
}

.event-card {
    background-color: var(--color-card);
    border-radius: 15px;
    border: 3px solid white;
    box-shadow: 0 4px 8px var(--color-shadow);
    overflow: hidden;
    width: calc(33.33% - 1rem);
    max-width: none;
    height: 95%;
    min-height: 509px;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    perspective: 1000px;
    position: relative;
}

.event-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.event-card.flipped .event-card-inner {
    transform: rotateY(180deg);
}

.event-card-front,
.event-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
}

.event-card-back {
    transform: rotateY(180deg);
    background-color: #799654;
    padding: 1.5rem;
    justify-content: flex-start;
    position: relative;
    overflow-y: auto;
    max-height: 100%;
}

/* Scrollbalken sichtbar machen */
.event-card-back::-webkit-scrollbar {
    width: 10px;
}

.event-card-back::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

.event-card-back::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
}

/* Scroll-Indikator am unteren Rand - nur für Cards mit viel Inhalt */
.event-card-back.scrollable::after {
    content: "↓ Scrollen für mehr ↓";
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, #799654 50%);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-size: 0.9rem;
    padding: 0.8rem 0;
    pointer-events: none;
    margin: 0 -1.5rem -1.5rem -1.5rem;
    transition: opacity 0.3s ease;
    font-weight: bold;
}

.event-card-back.scrollable.scrolled::after {
    opacity: 0;
}

.event-card-back .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    font-weight: bold;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.event-card-back h3 {
    display: none;
}

.event-card-back p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: white;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.event-card-back .event-details {
    font-size: 1rem;
    line-height: 1.5;
    color: white;
}

.event-card-back .event-details strong {
    font-weight: 700;
    color: white;
}

.event-card-back .event-details a {
    color: white;
    text-decoration: underline;
}

.event-card:active {
    box-shadow: 0 0 0 var(--color-shadow);
    transform: scale(0.98);
}

.event-card img {
    width: 100%;
    flex: 1;
    object-fit: cover;
    /* display: block; */
    min-height: 417px;
    height: 84%;
}

.event-card h3 {
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 1.4rem;
    color: white;
    background-color: #799654;
    margin: 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 15%;
    min-height: 78px;
}

/* Angebote Page Styles */
.angebote-content {
    /* padding: 0 1rem; */
    height: calc(100% - 120px);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.angebote-header {
    text-align: left;
    padding: 0;
    margin: 0 0 0.8rem 0;
}

.angebote-header h1 {
    font-size: 1.8rem;
    color: var(--color-text);
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.angebote-header h2 {
    font-size: 1.4rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.angebote-header p {
    font-size: 20px;
    color: var(--color-text);
    max-width: 800px;
    margin: 0;
    line-height: 1.5;
}

.angebote-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    flex: 1;
    align-content: flex-start;
    height: auto;
    overflow: visible;
    margin: 0;
}

.offer-card {
    background-color: var(--color-card);
    border-radius: 15px;
    border: 3px solid white;
    box-shadow: 0 4px 8px var(--color-shadow);
    overflow: hidden;
    width: calc(33.33% - 0.67rem);
    height: 350px;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    perspective: 1000px;
    position: relative;
    margin-bottom: 1rem;
}

.offer-card:active {
    box-shadow: 0 0 0 var(--color-shadow);
    transform: scale(0.98);
}

.offer-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.offer-card.flipped .offer-card-inner {
    transform: rotateY(180deg);
}

.offer-card-front,
.offer-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
}

.offer-card-back {
    transform: rotateY(180deg);
    background-color: #eb733f;
    padding: 1.5rem;
    justify-content: flex-start;
    position: relative;
    text-align: left;
}

.offer-card-back .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    font-weight: bold;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    z-index: 10;
}

.offer-card-back h3.back-title {
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: left !important;
    margin-top: 0.5rem;
    padding: 0;
    background: none;
    height: auto;
    display: block;
}

.offer-card-back .image-window {
    display: none;
}

.offer-card-back .image-window img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-card-back p {
    font-size: 1.3rem;
    line-height: 1.5;
    color: white;
    margin-bottom: 2rem;
    text-align: left;
}

.offer-card-back .offer-footer {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offer-card-back .pot-size {
    font-size: 1.1rem;
    color: white;
    font-weight: 600;
}

.offer-card-back .price {
    font-size: 1.5rem;
    color: white;
    font-weight: 800;
    font-style: italic;
    font-family: 'Roboto', sans-serif;
}

.offer-card-back .price .decimal {
    font-size: 1rem;
    vertical-align: super;
    text-decoration: underline;
    font-weight: 800;
}

.offer-card img {
    width: 100%;
    height: 285px;
    object-fit: cover;
    display: block;
}

.offer-card h3 {
    padding: 0.7rem;
    text-align: center;
    font-size: 1.3rem;
    color: white;
    background-color: #eb733f;
    margin: 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 65px;
    line-height: 1.2;
}

/* Cards */
.card {
    background-color: var(--color-card);
    border-radius: 15px;
    border: 3px solid white;
    box-shadow: 0 4px 8px var(--color-shadow);
    overflow: hidden;
    transition: box-shadow 0.1s ease;
    width: calc(33.33% - 0.67rem); /* Ein Drittel der Breite minus anteiliger Abstand */
    height: 420px; /* Feste Höhe für alle Cards */
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.card:active {
    box-shadow: 0 0 0 var(--color-shadow);
    transform: scale(0.98);
}

.card img {
    width: 100%;
    height: 357px; /* 85% von 420px */
    object-fit: cover;
    display: block; /* Verhindert unerwünschte Abstände */
}

/* Spezifische Anpassung für Blüten News Bild */
.bluetenNews-card img {
    /* transform: scale(1.2); */
    transform-origin: center center;
    overflow: hidden;
}

/* Individuelle Bildanpassungen */
.card img[src*="Lovestory"] {
    /* Anpassungen für Lovestory-Bild */
    object-position: 0% 4%;
}

.card img[src*="Freude_schenken"] {
    /* Anpassungen für Freude-Schenken-Bild - Positionierung für bessere Sicht auf den Blumenstrauß */
    object-position: 20% 20%;
}

.card img[src*="GrueneEvents"] {
    /* Anpassungen für Grüne-Events-Bild */
}

.card img[src*="BluehendeAngebote"] {
    /* Anpassungen für Blühende-Angebote-Bild */
    object-position: 1% 57%;
}

.card img[src*="BluetenNews"] {
    /* Anpassungen für Blüten-News-Bild */
}

.card img[src*="Gardenendecken"] {
    /* Anpassungen für Garden-Entdecken-Bild */
}

.card h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    padding: 0.8rem;
    text-align: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 63px; /* 15% von 420px */
    margin: 0;
}

/* Individuelle h2 Farben */
.lovestory-card h2 {
    background-color: #bd2a3b;
}

.freude-card h2 {
    background-color: #fb5a7b;
}

.events-card h2 {
    background-color: #799654;
}

.angebote-card h2 {
    background-color: #eb733f;
}

.news-card h2 {
    background-color: #8f2d76;
}

.garden-card h2 {
    background-color: #9e96d2;
}

/* ===== FREUDE SCHENKEN GUTSCHEIN SYSTEM ===== */
.freude-content {
    padding: 0;
    height: calc(100% - 120px);
    overflow: hidden;
}

.freude-header {
    text-align: left;
    margin-bottom: 15px;
}

.freude-header h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.0em;
    color: var(--accent-color);
    margin-bottom: 12px;
    text-align: left;
}

.freude-header p {
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-text);
    text-align: left;
}

.freude-main {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    height: auto;
    max-height: calc(100% - 180px);
}

.freude-left {
    flex: 2;
}

.freude-right {
    flex: 1;
}

/* Motiv Selection */
.motiv-section {
    margin-bottom: 25px;
}

.motiv-section h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.9em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.motiv-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.motiv-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    height: 180px;
    display: flex;
    flex-direction: column;
}

.motiv-card:active,
.motiv-card.selected {
    border-color: #ff69b4;
    transform: translateY(5px) scale(0.95);
    box-shadow: 0 4px 15px rgba(255,105,180,0.3);
}

.motiv-card img {
    width: 100%;
    height: 85%;
    object-fit: cover;
    margin: 0;
}

.motiv-card span {
    font-weight: 700;
    color: white;
    font-size: 1.3em;
    background-color: #ff69b4;
    padding: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 15%;
    margin: 0;
}

/* Recipient inline styling */
.recipient-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.recipient-group span {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1em;
}

.recipient-group input[type="text"] {
    width: 200px;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.recipient-group input[type="text"]:focus {
    outline: none;
    border-color: #ff69b4;
}

/* Inline buyer fields styling */
.inline-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inline-group span {
    font-weight: 600;
    color: var(--text-color);
    min-width: 100px;
    flex-shrink: 0;
    font-size: 1.1em;
}

.inline-group input[type="text"] {
    flex: 1;
    max-width: 280px;
    padding: 6px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95em;
    transition: border-color 0.3s ease;
}

.inline-group input[type="text"]:focus {
    outline: none;
    border-color: #ff69b4;
}

/* Hausnummer specific styling */
.hausnummer-input {
    max-width: 80px !important;
}

/* Form Styling */
.form-section h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.form-section h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5em;
    color: var(--primary-color);
    margin: 15px 0 10px 0;
}

.form-group {
    margin-bottom: 0px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 1.1em;
}

.form-group input[type="text"],
.form-group input[type="number"] {
    width: 63%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus {
    outline: none;
    border-color: #ff69b4;
}

/* Amount Options */
.amount-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.amount-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    font-size: 1.05em;
}

.amount-options label:hover {
    background-color: #fce4ec;
}

.amount-options input[type="radio"] {
    margin-right: 8px;
    accent-color: #ff69b4;
}

.custom-amount {
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-amount input[type="number"] {
    width: 80px;
    padding: 6px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9em;
}

/* Buyer Info */
.buyer-info {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 8px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Checkbox Group */
.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    line-height: 1.5;
    font-size: 1.05em;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #ff69b4;
    flex-shrink: 0;
}

.form-group p,
.required-info {
    font-size: 20px;
    color: var(--color-text);
    line-height: 1.6;
}

/* Gutschein Preview */
.gutschein-preview {
    position: sticky;
    top: 20px;
}

.gutschein-preview h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: left;
}

.gutschein-card {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    background-size: cover;
    background-position: center;
    color: white;
    border-radius: 20px;
    padding: 0;
    text-align: left;
    box-shadow: 0 10px 30px rgba(255,105,180,0.4);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    transition: background-image 0.3s ease;
    min-height: 320px;
    width: 100%;
}

.gutschein-card::before {
    display: none;
}

.gutschein-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.gutschein-header {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    z-index: 3;
    position: relative;
    padding: 35px 35px 0 35px;
}

.gutschein-motiv {
    display: none;
}

.gutschein-content {
    font-size: 1.4em;
    margin-bottom: 20px;
    z-index: 3;
    position: relative;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    padding: 0 35px;
}

.gutschein-content {
    font-size: 1.4em;
    margin-bottom: 20px;
    z-index: 3;
    position: relative;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    padding: 0 35px;
}

.gutschein-for,
.gutschein-over {
    margin-bottom: 10px;
    font-weight: 600;
}

.gutschein-for span,
.gutschein-over span {
    font-weight: bold;
    text-decoration: underline;
    min-width: 150px;
    display: inline-block;
}

.gutschein-logo {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 3;
}

.gutschein-logo img {
    width: 125px;
    height: auto;
    filter: brightness(0) invert(1);
}

/* Buy Button */
.buy-button {
    width: 100%;
    background: #ff1493;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 15px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255,20,147,0.4);
}

.buy-button:active {
    transform: translateY(2px);
    box-shadow: 0 3px 10px rgba(255,20,147,0.4);
}

/* ===== GARDEN ENTDECKEN QUIZ ===== */
.quiz-content {
    padding: 0;
    height: calc(100% - 120px);
    max-height: calc(1024px - 120px);
}

.quiz-container {
    display: flex;
    height: 100%;
    gap: 60px;
}

.quiz-left {
    flex: 1;
    padding: 0;
    background: var(--color-background);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    max-height: 100%;
}

.quiz-right {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.quiz-header h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5em;
    color: #9e96d2;
    margin-bottom: 20px;
    font-weight: normal;
}

.quiz-header {
    margin: 0;
}

.quiz-header h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.8em;
    color: var(--color-text);
    font-weight: bold;
    line-height: 1.3;
    margin: 0 0 30px 0;
}

.quiz-text {
    margin-bottom: 40px;
    line-height: 1.6;
}

.quiz-text p {
    margin-bottom: 15px;
    font-size: 20px;
    color: var(--color-text);
}

.quiz-text strong {
    font-weight: bold;
}

.legal-note {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    margin-top: 20px;
}

.quiz-start-btn {
    background: #9e96d2;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(158,150,210,0.4);
    align-self: flex-end;
    margin-right: 0;
    margin-bottom: 2px;
}

.quiz-start-btn:active {
    transform: translateY(2px);
    box-shadow: 0 3px 10px rgba(158,150,210,0.4);
}

.quiz-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid white;
    border-radius: 20px;
}

/* Quiz Screen Management */
.quiz-screen {
    display: none !important;
    height: 100%;
    max-height: 100%;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}

.quiz-screen.active {
    display: flex !important;
}

/* Quiz Questions */
.quiz-header h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.4em;
    color: var(--color-text);
    margin-top: 20px;
    font-weight: normal;
    line-height: 1.4;
}

.quiz-options {
    margin: 30px 0;
}

.quiz-option {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
    padding: 12px 15px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.quiz-option:hover {
    background-color: rgba(158,150,210,0.1);
}

.quiz-option input[type="radio"] {
    margin-right: 15px;
    accent-color: #9e96d2;
    transform: scale(1.2);
}

.quiz-option span {
    font-size: 20px;
    color: var(--color-text);
}

/* Quiz Answer Feedback */
.quiz-option.correct {
    background-color: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.quiz-option.incorrect {
    background-color: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
}

.quiz-feedback {
    margin: 15px 0;
    height: 60px; /* Feste Höhe verhindert Layout-Verschiebung */
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-message {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    font-size: 18px;
}

.quiz-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.quiz-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

.quiz-next-btn {
    background: #9e96d2;
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(158,150,210,0.4);
    align-self: flex-end;
    /* margin-right: 40px; */
    margin-bottom: 2px;
}

.quiz-next-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 8px rgba(158,150,210,0.4);
}

/* Quiz Form */
.quiz-form {
    margin-top: 20px;
}

.quiz-form .form-group {
    margin-bottom: 20px;
}

.quiz-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
    font-size: 20px;
}

.quiz-form input[type="text"],
.quiz-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.quiz-form input[type="text"]:focus,
.quiz-form input[type="email"]:focus {
    outline: none;
    border-color: #9e96d2;
}

.quiz-form .checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    line-height: 1.5;
    font-size: 20px;
}

.quiz-form .checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #9e96d2;
    flex-shrink: 0;
}

.quiz-submit-btn {
    background: #9e96d2;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(158,150,210,0.4);
    margin-top: 10px;
    align-self: flex-end;
    margin-left: auto;
    display: block;
    margin-bottom: 10px;
}

.quiz-submit-btn:active {
    transform: translateY(2px);
    box-shadow: 0 3px 10px rgba(158,150,210,0.4);
}

.final-message {
    margin-top: 30px;
    text-align: center;
}

/* ===== BESTÄTIGUNGS-POPUP ===== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    background: var(--color-background);
    border: 3px solid white;
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
    overflow: hidden;
}

.popup-header {
    background: #ff69b4;
    color: white;
    padding: 25px;
    text-align: center;
}

.popup-header h2 {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 1.8em;
    font-weight: bold;
}

.popup-body {
    padding: 30px;
    line-height: 1.6;
    color: var(--text-color);
}

.popup-body p {
    margin-bottom: 15px;
    font-size: 20px;
}

.popup-body strong {
    color: var(--accent-color);
    font-weight: bold;
}

.popup-signature {
    font-style: italic;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 20px;
    text-align: right;
}

.popup-footer {
    padding: 0 30px 30px 30px;
    text-align: center;
}

.popup-close-btn {
    background: #ff1493;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,20,147,0.3);
}

.popup-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,20,147,0.4);
}

.popup-close-btn:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
