/* ========== ENTRANCE ANIMATION ========== */

.animate-entrance {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 🆕 UX: Subtiler Video-Hintergrund (weniger unruhig) */

#bgVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Passt zum Screen */
    z-index: -1;
    /* Hinten */
    filter: blur(2px) saturate(0.6) brightness(0.8);
    /* Weich + gedimmt – reduziert Flimmern */
    opacity: 0.3;
    /* Transparent, Content im Vordergrund */
}

@media (prefers-reduced-motion: reduce) {
    /* Zugänglichkeit: Für sensible User */
    #bgVideo {
        animation: none;
        filter: none;
        opacity: 0;
    }
}

/* ========== GRUNDLEGENDE STYLES ========== */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 15pt;
    background-color: #C0C0C0;
    color: silver;
}

/* ========== VIDEO BACKGROUND ========== */

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    will-change: transform;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: translateZ(0);
    backface-visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.video-background video.loaded {
    opacity: 1;
}

.bg-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.bg-video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.bg-video-container video.loaded {
    opacity: 1;
}

.video-overlay,
.bg-video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* 🆕 UX: Video-Toggle-Button (ähnlich goBack-Button: fixed, semi-transparent, Hover) */

.video-toggle-button {
    position: fixed !important;
    /* Fixed: Bleibt beim Scroll */
    top: 10px !important;
    /* Oben, wie goBack (rechts statt links) */
    right: 10px !important;
    /* Rechts (goBack ist links?) */
    z-index: 9999 !important;
    /* Über allem (Calculator, Video) */
    padding: 8px 12px !important;
    /* Kompakt, wie Buttons */
    background: rgba(0, 0, 0, 0.7) !important;
    /* Semi-transparent schwarz (wie goBack? – passe an) */
    color: white !important;
    /* Weißer Text */
    border: none !important;
    /* Kein Rand */
    border-radius: 5px !important;
    /* Runde Ecken */
    cursor: pointer !important;
    /* Hand-Zeiger */
    font-size: 14px !important;
    /* Lesbar */
    font-family: Arial, sans-serif !important;
    /* Konsistent */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    /* Leichter Schatten, wie goBack */
    transition: all 0.3s ease !important;
    /* Smooth Hover/Changes */
    min-width: 120px;
    /* Mindestbreite für Text */
    text-align: center;
    /* Zentriert */
}

/* Hover-Effekt (ähnlich goBack: Heller/dunkler) */

.video-toggle-button:hover {
    background: rgba(0, 0, 0, 0.9) !important;
    /* Dunkler bei Hover */
    transform: translateY(-1px) !important;
    /* Leichter Lift (optional, wie goBack?) */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    /* Stärkerer Schatten */
}

/* Debug-Modus: Rot für Test (entferne später) */

.video-toggle-button[style*="background: rgba(255"] {
    /* Falls du rot behalten willst */
    background: rgba(255, 0, 0, 0.8) !important;
}

.video-toggle-button:hover[style*="background: rgba(255"] {
    background: rgba(255, 165, 0, 0.8) !important;
    /* Orange bei Hover */
}

/* ========== CONTAINER ========== */

.container {
    max-width: 6.875in;
    margin: 0 auto;
    background-color: black !important;
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* ========== ACCORDION GRUNDSTRUKTUR ========== */

.accordion {
    display: flex;
    flex-direction: column;
    padding: 15pt 15pt 10pt 15pt;
}

.accordion-item {
    width: 100%;
    margin: 0.3125pc 0;
}

.accordion-item .section-sum {
    display: block;
    font-size: clamp(14px, 2vw, 16px);
    color: #ffffff;
    margin: 5px 0;
}

.accordion-button {
    width: 100%;
    padding: 0.052083333in;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 600;
    text-align: left;
    background: #2a2d30;
    color: #ffffff;
    border: none;
    border-radius: 0.3125pc;
    cursor: pointer;
    transition: background 0.2s ease-in-out, transform 0.2s ease;
}

.accordion-button:hover:not(.disabled) {
    background: #FF6F61;
    transform: translateY(-2px);
}

.accordion-button.active {
    background: #FF007F; /* Pink als Base – wird unten überschrieben für teal-States */
    color: #ffffff;
}

/* Bestehende Regel: Active + option-changed (erweitert mit Gradient für besseren Override) */
.accordion-button.active.option-changed {
    background: linear-gradient(135deg, teal, darkteal) !important; /* 🆕 FIXED: Gradient-Teal statt solid (stärkerer Override für Pink) */
    color: white !important;
}

/* 🆕 FIXED: Disabled-Regeln (unverändert, aber konsolidiert) */
.accordion-button.disabled {
    background: #2a2d30 !important;
    opacity: 0.5;
    cursor: not-allowed;
}

.accordion-button.disabled.option-changed,
.accordion-button.disabled.has-selection {
    background: #2a2d30 !important;
}

/* 🆕 FIXED: Has-Selection und Option-Changed (unverändert, aber mit !important für Konsistenz) */
.accordion-button.has-selection,
.accordion-button.option-changed {
    background: linear-gradient(135deg, #008080, #006666) !important; /* Force teal-Gradient überall (kein Pink) */
}

/* Bestehende Regel: Option-Changed + Has-Selection (erweitert mit höherer Spezifität) */
.accordion-button.option-changed.has-selection {
    background-color: teal !important;
    color: white !important;
    opacity: 1 !important; /* Nicht ausgegraut */
}

/* 🆕 FIXED: Hover für Option-Changed + Has-Selection (dunkler teal, kein Pink-Rückfall) */
.accordion-button.option-changed.has-selection:hover {
    background-color: darkteal !important;
}

/* 🆕 FIXED: Neue, spezifischere Regeln für Active + Has-Selection (Pink überschreiben, priorisiert für Delivery) */
.accordion-button.active.has-selection,
.accordion-button.active.option-changed.has-selection {
    background: linear-gradient(135deg, #008080, #006666) !important; /* Teal-Gradient (hohe Spezifität gewinnt über .active) */
    color: white !important;
    opacity: 1 !important;
    border: 2px solid teal !important; /* Extra: Teal-Rand für bessere Visibility (optional, entferne bei Bedarf) */
}

/* 🆕 FIXED: Hover für Active + Has-Selection (dunkler teal, smooth Transition) */
.accordion-button.active.has-selection:hover,
.accordion-button.active.option-changed.has-selection:hover {
    background: linear-gradient(135deg, darkteal, #004d4d) !important; /* Dunkler Teal bei Hover */
    transform: translateY(-2px) !important;
}

/* 🆕 FIXED: Speziell für Disabled + Active + Has-Selection (z.B. Delivery in Grau-Teal-Mix, falls relevant) */
.accordion-button.disabled.active.has-selection {
    background: rgba(0, 128, 128, 0.6) !important; /* Halb-transparent teal (nicht full grau) */
    opacity: 0.7 !important;
    border: 1px solid teal !important; /* Leichter Rand */
}


/* ========== ZWISCHENSUMMEN KONTROLLE ========== */

.section-sum {
    visibility: hidden !important;
    display: none !important;
}

.accordion-item:has(.accordion-button.option-changed) .section-sum {
    visibility: visible !important;
    display: block !important;
}

.accordion-item:first-child .section-sum,
.accordion-item:nth-child(2) .section-sum {
    display: none !important;
    visibility: hidden !important;
}

/* ========== ACCORDION INHALT ========== */

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    background-color: #2a2d30;
    border-radius: 0.3125pc;
    transition: max-height 0.25s ease-in-out, padding 0.25s ease-in-out;
}

.accordion-content.open {
    max-height: none !important;
    padding: 1rem;
}

.accordion-content:not(.open) {
    max-height: 0 !important;
    overflow: hidden;
}

.accordion-content h3 {
    font-size: clamp(14px, 2vw, 20px);
    color: white;
    margin: 0.104166667in 0;
}

/* Styling für Checkboxen und Radiobuttons in Akkordeons */

.accordion-content label span,
.accordion-content label {
    flex: 1;
    /* Text nimmt restlichen Platz ein */
    flex-grow: 1;
    /* Text nimmt restlichen Platz ein */
    text-align: left;
    /* Text linksbündig für Lesbarkeit */
    cursor: pointer;
    color: white !important;
    user-select: none;
    display: flex;
    align-items: center;
    /* Vertikale Zentrierung von Input und Text */
    gap: 10px;
    /* Abstand zwischen Input und Text */
    padding: 8px 0;
    /* Vertikaler Innenabstand für bessere Lesbarkeit */
    font-size: 16px;
    /* Standard-Schriftgröße */
    line-height: 1.5;
    /* Verbessert die Lesbarkeit */
    width: 100%;
    /* Volle Breite für konsistente Ausrichtung */
}

/* Styling für Checkboxen und Radiobuttons selbst */

.accordion-content input[type="radio"],
.accordion-content input[type="checkbox"] {
    flex-shrink: 0;
    /* Verhindert, dass Inputs zusammengedrückt werden */
    width: 20px;
    /* Feste Größe für Inputs */
    height: 20px;
    /* Feste Größe für Inputs */
    margin: 0;
    /* Entfernt Standard-Margin */
    cursor: pointer;
    accent-color: #FF007F;
    flex-shrink: 0;
    /* Verhindert Verkleinerung des Radiobuttons */
}

.accordion-content input[type="radio"]:disabled,
.accordion-content input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== INPUT FELDER & OK BUTTONS vergrößern ========== */

.accordion-content input[type="number"],
.accordion-content input[type="text"] {
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #FF007F !important;
    border-radius: 6px;
    background-color: black !important;
    color: white !important;
    width: 180px;
    min-height: 44px;
    box-sizing: border-box;
}

.accordion-content input[type="number"]:focus,
.accordion-content input[type="text"]:focus {
    border-color: #FF007F;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 0, 127, 0.3);
}

.accordion-content button[type="button"] {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    background: linear-gradient(135deg, #FF007F, #FF6699);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    min-height: 44px;
    min-width: 80px;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.accordion-content button[type="button"]:hover {
    background: linear-gradient(135deg, #E6006B, #FF5588);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ========== GRÜNE CHECKMARKS in allen Zusammenfassungen ========== */

.selected-option,
.selected-option ul,
.selected-option li {
    color: silver;
}

/* Erstes Zeichen (✔) jeder Zeile grün machen */

.selected-option::first-letter,
.selected-option li::first-letter {
    color: #16C60C !important;
    font-weight: bold;
}

/* ========== INPUT CONTAINER ========== */

#hourlyRateInputContainer,
#onePageFrameInputContainer,
#albumFrameInputContainer,
#issueFrameInputContainer,
#characterInputContainer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

#profitShareInput,
#fixedShareInput,
#tieredShareInput {
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 10px 0;
}

#profitShareInput input,
#fixedShareInput input,
#tieredShareInput input {
    margin: 5px 10px;
    padding: 10px 14px;
    font-size: 15px;
    min-width: 100px;
}

#profitShareInput button,
#fixedShareInput button,
#tieredShareInput button {
    margin: 5px;
    padding: 10px 20px;
}

/* ========== ARTWORK SECTION ========== */

.artwork-section {
    margin-bottom: 20px;
}

.artwork-section h4 {
    margin-bottom: 10px;
    font-weight: 600;
    color: white;
}

/* ========== AUSGEWÄHLTE OPTIONEN ========== */

.selected-option {
    font-size: clamp(14px, 2vw, 14px);
    color: silver;
    padding: 0.052083333in;
    margin-bottom: 3.75pt;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.selected-option ul {
    list-style-type: none;
    padding: 0;
    color: silver;
    font-size: clamp(14px, 1.8vw, 16px);
    margin: 10px 0;
}

.selected-option li {
    margin-bottom: 5px;
    font-size: 14px;
}

.selected-option ul li.total-price {
    color: #ffffff;
}

/* ========== SECTION DETAILS & SUMMEN ========== */

.section-sum {
    display: block;
    text-align: right !important;
    font-size: clamp(14px, 1.5vw, 16px);
    color: white;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
}

.total-licence-price {
    font-weight: bold !important;
    color: #FF007F !important;
}

.section-divider {
    height: 0.0625pc;
    background: #555;
    margin: 0.104166667in 0;
    border: none;
}

/* ========== LIZENZ SECTION ========== */

.license-section {
    padding: 0.104166667in 0.104166667in 0 0.104166667in;
    transition: opacity 0.25s ease-in-out;
}

.license-section.inactive {
    opacity: 0.5;
    pointer-events: none;
}

.license-section:not(.inactive) {
    opacity: 1;
    pointer-events: auto;
}

.web-label {
    display: none;
    color: #6A0BC0;
    font-size: 14px;
    margin-bottom: 10px;
}

.web-label.show-web-label {
    display: block;
}

.disabled-option {
    opacity: 0.5;
    cursor: not-allowed;
}

.disabled-option input {
    pointer-events: none;
}

/* ========== TOTAL & BUTTONS ========== */

.total-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.25pc;
    position: relative;
}

.total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 0.208333333in;
}

.price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1em;
    width: 100%;
}

#originalPrice {
    font-size: clamp(16px, 3.65vw, 32px);
    font-weight: bold;
    color: #FF007F;
    text-decoration: line-through;
    text-align: right;
    line-height: 1.1;
    display: block;
    width: 100%;
}

#totalPrice {
    font-size: clamp(16px, 3.65vw, 32px);
    font-weight: bold;
    color: #FF007F;
    text-align: right;
    line-height: 1.1;
    display: block;
    width: 100%;
}

/* ========== BUTTON CONTAINER ========== */

.button-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

/* ========== RESET & PRINT BUTTONS ========== */

.reset-button,
.print-button {
    width: 50px !important;
    height: 50px !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    transition: all 0.3s ease !important;
    color: white !important;
}

.reset-button {
    background: linear-gradient(135deg, #FF6699, #FF007F) !important;
    margin-right: 5px !important;
    z-index: 999;
}

.reset-button:hover {
    background: linear-gradient(135deg, #a133cc, #b32d2d) !important;
    transform: scale(1.05) !important;
}

.reset-button i {
    font-size: 16px;
}

.print-button {
    background: linear-gradient(135deg, #4ECDC4, #44A08D) !important;
}

.print-button:hover {
    background: linear-gradient(135deg, #45B7B8, #3D8B85) !important;
    transform: scale(1.05) !important;
}

/* ========== WEITERE ELEMENTE ========== */

.mwst {
    font-size: clamp(18px, 1.25vw, 18px);
}

.page-price {
    font-size: clamp(24px, 1.65vw, 20px);
}

/* ========== DISCLAIMER ========== */

.disclaimer {
    margin-top: 5pt !important;
    margin-left: 5pt !important;
    margin-right: 5pt !important;
    padding-bottom: 5pt !important;
    font-size: 0.125in;
    color: grey;
    line-height: 1.4;
    max-width: 6.875in;
}

.disclaimer p {
    margin: 3.75pt 0;
}

.disclaimer strong {
    font-size: 0.145833333in;
}

.disclaimer-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #4B0082 !important;
    color: white !important;
    padding: 20px !important;
    border: 2px solid #FF007F !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    z-index: 1000000 !important;
    min-width: 300px;
    text-align: center;
    font-family: Arial, sans-serif;
    width: 550px;
    max-width: 80vw;
}

.disclaimer-popup h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 10px;
}

.disclaimer-popup p {
    color: white;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 120%;
    text-align: center;
}

.disclaimer-popup div {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.disclaimer-popup button {
    padding: 10px 20px;
    cursor: pointer;
    background: linear-gradient(135deg, #FF007F, #FF6699);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.disclaimer-popup button:hover {
    background: linear-gradient(135deg, #a133cc, #b32d2d);
}

/* ========== ALERT POPUP ========== */

.alert-popup {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

Fehlerbehandlung bei leer .alert-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #4B0082;
    color: white;
    padding: 20px;
    border: 2px solid #FF007F;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 99999;
    text-align: center;
    font-family: Arial, sans-serif;
    min-width: 300px;
}

.alert-popup p {
    color: white;
    margin-bottom: 20px;
    font-size: 16px;
}

.alert-popup div {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.alert-popup button {
    margin: 10px;
    padding: 10px 20px;
    cursor: pointer;
    background: linear-gradient(135deg, #FF007F, #FF6699);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.alert-popup button:hover {
    background: linear-gradient(135deg, #a133cc, #b32d2d);
}

.custom-alert {
    pointer-events: auto;
    /* Stelle sicher, dass Klicks registriert werden */
}

.custom-alert-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #4B0082;
    color: white;
    padding: 20px;
    border: 2px solid #FF007F;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 99999;
    text-align: center;
    font-family: Arial, sans-serif;
    min-width: 300px;
}

.custom-alert-popup p {
    color: white;
    margin-bottom: 20px;
    font-size: 16px;
}

.custom-alert-popup button {
    padding: 10px 20px;
    cursor: pointer;
    background: linear-gradient(135deg, #FF007F, #FF6699);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.custom-alert-popup button:hover {
    background: linear-gradient(135deg, #E6006B, #E65C8A);
}

/* ========== NAVIGATION BUTTONS ========== */

#goBackBtn,
#goTopBtn {
    position: fixed;
    background-color: #007bff;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgb(0 123 255 / 0.5);
    transition: background-color 0.3s ease;
    z-index: 99 !important;
}

#goBackBtn {
    right: 1.5rem;
    top: 2.85rem;
}

#goTopBtn {
    right: 1.5rem;
    bottom: 1.5rem;
}

#goBackBtn:hover,
#goTopBtn:hover {
    background-color: #0056b3;
}

/* ========== LOGO SCREEN ========== */

.logoscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 1);
    z-index: 9999 !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hideMe1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 1);
    /* Sicherstellen, dass der Hintergrund sichtbar ist */
    z-index: 9999;
    /* Unter dem Disclaimer-Popup */
    opacity: 1;
    visibility: visible;
    animation: cssAnimation 0.2s ease-in 2s forwards;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

/* Animation nur für Nicht-Erstbesuch oder Reset */

#hideMe1.animate {
    animation: cssAnimation 0.2s ease-in 2s forwards;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

@keyframes cssAnimation {
    to {
        opacity: 0;
        /* Fade-Out statt width/height: 0 */
        visibility: hidden;
    }
}

/* Sicherstellen, dass die Animation bei Erstbesuch deaktiviert ist */

#hideMe1.first-visit {
    animation: none;
}

.fill {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes cssAnimation {
    to {
        width: 0;
        height: 0;
        overflow: hidden;
    }
}

/* ========== TOUCH-FRIENDLY SIZING ========== */

@media (max-width: 768px) {
    .accordion-content input,
    .accordion-content button {
        min-height: 44px;
        min-width: 44px;
    }
    /* Sicherstellen, dass Container nicht zu eng wird */
    .accordion-content {
        margin: 15px 0 10px 0;
        padding: 15px;
        /* Standard-Innenabstand */
        box-sizing: border-box;
        /* Verhindert Überlauf durch Padding */
        font-size: 13px;
        /* Kleinere Schriftgröße für bessere Lesbarkeit */
    }
    .accordion-content label {
        font-size: 14px;
        /* Kleinere Schriftgröße für mobile Geräte */
        padding: 6px 0;
        /* Reduzierter Innenabstand */
        margin: 10px 0;
        gap: 8px;
        /* Kleinerer Abstand für kleinere Bildschirme */
        padding: 10px 5px;
        /* Angepasstes Padding für responsiven Modus */
    }
    .accordion-content input[type="checkbox"],
    .accordion-content input[type="radio"] {
        width: 18px;
        /* Etwas kleinere Inputs für mobile Geräte */
        height: 18px;
    }
    /* Sicherstellen, dass lange Texte nicht überlappen */
    .accordion-content label {
        flex-wrap: nowrap;
        /* Verhindert Umbruch, falls möglich */
        overflow-wrap: break-word;
        /* Textumbruch bei zu langen Wörtern */
    }
    /* Optional: Falls Abschnitte wie "Artwork" Unterabschnitte haben */
    .artwork-section,
    .license-section {
        padding-left: 10px;
        /* Leichter Einzug für Unterabschnitte */
    }
    .accordion-content input[type="radio"] {
        width: 24px;
        /* Etwas größere Radiobuttons für Touch-Freundlichkeit */
        height: 24px;
    }
    /* Optional: Styling für Überschriften in Abschnitten */
    .accordion-content h3,
    .accordion-content h4 {
        margin-bottom: 10px;
        font-size: 18px;
        /* Angepasste Schriftgröße */
    }
}

@media (max-width: 768px) {
    .accordion-content h3,
    .accordion-content h4 {
        font-size: 16px;
        /* Kleinere Überschriften auf mobilen Geräten */
    }
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 600px) {
    .video-background video,
    .bg-video-container video {
        display: none;
    }
    .accordion-content label {
        gap: 6px;
        padding: 8px 5px;
    }
    .accordion-content input[type="radio"] {
        width: 22px;
        height: 22px;
    }
    .accordion-content label span {
        font-size: 12px;
    }
    .accordion-button {
        font-size: 5vw;
    }
    .accordion-content input[type="number"],
    .accordion-content input[type="text"] {
        width: 180px;
        font-size: 14px;
        padding: 10px 12px;
    }
    .accordion-content button[type="button"] {
        font-size: 14px;
        padding: 10px 20px;
        min-width: 70px;
    }
    #hourlyRateInputContainer,
    #onePageFrameInputContainer,
    #albumFrameInputContainer,
    #issueFrameInputContainer,
    #characterInputContainer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    #hourlyRateInputContainer input,
    #characterInputContainer input {
        width: 100%;
        margin-bottom: 10px;
    }
    #hourlyRateInputContainer button,
    #characterInputContainer button {
        width: 100%;
        margin-left: 0;
    }
    .reset-button,
    .print-button {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    .reset-button i,
    .print-button i {
        font-size: 14px;
    }
    #originalPrice,
    #totalPrice {
        font-size: clamp(14px, 4vw, 24px);
    }
    #goBackBtn,
    #goTopBtn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    .video-toggle-button {
        display: none;
    }
}

/* ========== TABLET ANPASSUNG ========== */

@media (min-width: 601px) and (max-width: 1024px) {
    .accordion-content input[type="number"],
    .accordion-content input[type="text"] {
        width: 180px;
        font-size: 15px;
    }
    .accordion-content button[type="button"] {
        font-size: 15px;
        padding: 11px 22px;
    }
    .button-container {
        justify-content: flex-start;
    }
}

/* ========== DESKTOP ANPASSUNG ========== */

@media (min-width: 1024px) {
    .button-container {
        justify-content: flex-start;
    }
}

/* ========== PRINT STYLES ========== */

@media print {
    * {
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 12pt !important;
        line-height: 1.2 !important; /* 🆕 ULTRA-REDUZIERT: 1.2 (früher 1.3) – sehr kompakt, minimale Weißraum */
    }
    /* Verstecke alles außer dem gewünschten Inhalt */
    body>*:not(.title-header):not(.container) {
        display: none !important;
    }
    /* Titelkopf ganz oben */
    .title-header {
        display: block !important;
        margin: 0;
        padding: 0;
        text-align: center;
    }
    .title-header h1 {
        font-size: 24px;
        margin: 0 0 10px 0;
        /* Kein Margin oben, nur unten */
        font-family: Arial, sans-serif;
    }
    .title-header p {
        font-size: 14px;
        margin: 0 0 20px 0;
        /* Abstand zum Inhalt darunter */
        font-family: Arial, sans-serif;
    }
    .container {
        background-color: #ffffff !important;
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
        padding: 3mm 5mm !important;
        max-width: 100% !important;
        width: 100% !important;
        page-break-before: avoid !important;
        position: static !important;
    }
    .accordion {
        padding: 0 !important;
        margin: 0 !important;
        page-break-before: avoid !important;
    }
    .button-container,
    .print-button,
    .video-background,
    .bg-video-container,
    .video-overlay,
    .bg-video-overlay,
    .logoscreen,
    .disclaimer-popup,
    #hideMe1,
    #goBackBtn,
    #goTopBtn,
    .donate,
    .reset-button {
        display: none !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        position: static !important;
    }
    /* 🆕 ULTRA-REDUZIERT: ALLE Accordion-Buttons sichtbar (als Headers: bold, schwarz, minimaler Abstand unten) */
    .accordion-button {
        display: block !important;
        font-size: 14pt !important;
        color: #000000 !important;
        font-weight: bold !important;
        padding: 1.5mm 0 1mm 0 !important; /* 🆕 ULTRA-REDUZIERT: Padding-bottom 1mm (früher 2mm) – enger Abstand zur Summary */
        margin: 0.5mm 0 !important; /* 🆕 ULTRA-REDUZIERT: Margin 0.5mm (früher 1mm) */
        border: none !important;
        background: none !important;
        position: static !important;
        line-height: 1.1 !important; /* 🆕 ULTRA-REDUZIERT: 1.1 für Headers – super eng */
        /* 🆕 FIXED: Kein display: none für nicht-erste – alle Headers sichtbar */
    }
    /* 🆕 ULTRA-REDUZIERT: Erste Button etwas größer (minimaler Abstand) */
    .accordion-item:first-of-type .accordion-button {
        margin: 0 !important;
        padding: 1mm 0 1mm 0 !important; /* 🆕 ULTRA-REDUZIERT: Padding-bottom 1mm (früher 1.5mm) */
        font-size: 16pt !important;
        line-height: 1.1 !important;
    }
    /* 🆕 ULTRA-REDUZIERT: ALLE Contents open/sichtbar (Summaries unter Headers – minimaler Padding, no clipping) */
    .accordion-content.open,
    .accordion-content { /* Fallback: Auch ohne .open */
        max-height: none !important;
        background-color: #ffffff !important;
        display: block !important;
        padding: 0.5mm 0 1mm 3mm !important; /* 🆕 ULTRA-REDUZIERT: Padding-top 0.5mm (früher 1mm) – sehr enger Abstand nach Header */
        margin-bottom: 0.5mm !important; /* 🆕 ULTRA-REDUZIERT: 0.5mm (früher 1mm) */
        position: static !important;
        overflow: visible !important; /* 🆕 FIXED: Visible – verhindert Abgeschnittene Punkte/Zeichen */
        line-height: 1.2 !important; /* 🆕 ULTRA-REDUZIERT: 1.2 für Content – minimaler Weißraum */
    }
    /* 🆕 FIXED: Verstecke ALLE interaktiven + License-HTML-Elemente (nur Summary sichtbar – Fix Überlagerung) */
    .accordion-content input,
    .accordion-content button:not(.print-button),
    .accordion-content label:not(.selected-option),
    .accordion-content h3,
    .accordion-content h4,
    .accordion-content .custom-delivery,
    .accordion-content .license-section.inactive,
    .accordion-content .artwork-section input,
    .accordion-content .artwork-section p,
    .accordion-content .input-container,
    /* 🆕 FIXED: License-spezifisch: Verstecke Original-HTML-Text (h3/p/Labels) – verhindert Überlagerung bei "No" */
    .accordion-content .license-section h3,
    .accordion-content .license-section p,
    .accordion-content .license-section label:not(.selected-option),
    .accordion-content .license-section .web-label,
    .accordion-content .license-section .disabled-option { /* Alle License-Elemente außer Summary */
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        font-size: 0 !important; /* 🆕 EXTRA: Force klein, falls font-size Konflikt */
    }
    /* 🆕 ULTRA-REDUZIERT: Summaries (selected-option) IMMER sichtbar unter jedem Header (minimaler margin-top) */
    .selected-option {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        margin: 1mm 0 1mm 0 !important; /* 🆕 ULTRA-REDUZIERT: Margin-top 1mm (früher 1.5mm) – enger, aber sicher gegen Überlappung */
        padding: 0.5mm 0 !important; /* 🆕 ULTRA-REDUZIERT: Padding 0.5mm (früher 1mm) */
        font-size: 12pt !important;
        color: #000000 !important;
        page-break-inside: avoid !important;
        line-height: 1.3 !important; /* 🆕 REDUZIERT: 1.3 (früher 1.4) – kompakt für Texte/Punkte */
        overflow: visible !important; /* 🆕 FIXED: Visible – volle Sichtbarkeit von ✔/Punkten */
        /* 🆕 FIXED: Für alle Items (nicht nur erste) */
    }
    .accordion-item .selected-option { /* Speziell: Jede Summary sichtbar */
        display: block !important;
    }
    .accordion-item:not(:first-of-type) .selected-option { /* Nicht-erste: Auch sichtbar */
        margin-top: 1mm !important; /* 🆕 ULTRA-REDUZIERT: 1mm (früher 1.5mm) – für Artwork/License */
    }
    /* 🆕 FIXED: Falls Summary leer: Zeige Platzhalter (minimaler Abstand) */
    .selected-option:empty::before {
        content: "✔ No selection yet – Please complete before printing" !important;
        display: block !important;
        font-style: italic !important;
        color: #666 !important;
        font-size: 10pt !important;
        margin-top: 0.5mm !important; /* 🆕 ULTRA-REDUZIERT: 0.5mm */
        padding: 0.5mm 0 !important; /* 🆕 ULTRA-REDUZIERT: 0.5mm */
        line-height: 1.2 !important;
    }
    .accordion-item:first-of-type .selected-option:empty::before {
        content: "✔ Hourly Rate: Please set before printing (0.00 USD)" !important;
        margin-top: 0.5mm !important;
    }
    /* 🆕 ULTRA-REDUZIERT: Section-Sums sichtbar (rechtsbündig, unter Summary – minimaler Abstand) */
    .section-sum {
        clear: both !important;
        display: block !important;
        visibility: visible !important;
        text-align: right !important;
        font-size: 12pt !important;
        color: #000000 !important;
        padding: 0.5mm 0 !important;
        margin: 0.5mm 0 0 0 !important; /* 🆕 ULTRA-REDUZIERT: Margin-top 0.5mm (früher 1mm) */
        font-weight: bold !important;
        line-height: 1.1 !important; /* 🆕 ULTRA-REDUZIERT: 1.1 */
        overflow: visible !important; /* 🆕 FIXED: Kein Clipping für Zahlen */
    }
    .total-licence-price {
        color: #000000 !important;
        font-weight: bold !important;
    }
    /* 🆕 ULTRA-REDUZIERT: Listen-Items (li) – minimaler Abstand, kein Bullet-Clipping */
    .selected-option li {
        max-width: 80% !important;
        padding-right: 10px !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        margin-bottom: 0.5mm !important; /* 🆕 ULTRA-REDUZIERT: 0.5mm (früher 1mm) – super kompakt für License-Subrights */
        line-height: 1.3 !important; /* 🆕 REDUZIERT: 1.3 für li – enge Zeilen */
        list-style: none !important; /* 🆕 FIXED: Keine Bullets (Punkte), die clippen könnten */
        margin-left: 0 !important; /* 🆕 FIXED: Kein Einzug – linksbündig */
        padding-left: 0 !important;
    }
    .selected-option ul {
        padding-left: 0 !important; /* 🆕 FIXED: Kein ul-Einzug – verhindert Überlappung */
        margin-left: 0 !important;
    }
    .total-container {
        border-top: 2px solid #000 !important;
        padding-top: 2mm !important;
        margin-top: 3mm !important;
        display: block !important;
        position: static !important;
        page-break-before: avoid !important;
    }
    #totalPrice {
        display: inline !important;
        text-align: right !important;
        font-size: 18pt !important;
        color: #000000 !important;
        font-weight: bold !important;
    }
    #originalPrice {
        display: inline !important;
        text-align: right !important;
        font-size: 16pt !important;
        color: #666 !important;
        text-decoration: line-through !important;
        margin-bottom: 1mm !important;
    }
    @page {
        size: A4;
        margin-top: 10mm !important;
        margin-left: 16mm !important;
        margin-right: 10mm !important;
    }
    /* 🆕 ULTRA-REDUZIERT: Page-Breaks vermeiden (Headers/Summaries zusammen) */
    .accordion-item {
        page-break-inside: avoid !important;
        margin-bottom: 1mm !important; /* 🆕 ULTRA-REDUZIERT: 1mm (früher 2mm) – enger zwischen Items */
    }
    .container {
        page-break-after: avoid !important;
    }
    /* 🆕 ULTRA-REDUZIERT: Für Custom-Delivery (Text sichtbar, falls vorhanden – minimaler Abstand) */
    .custom-delivery {
        display: block !important;
        color: #000000 !important;
        font-style: italic !important;
        margin-top: 0.5mm !important; /* 🆕 ULTRA-REDUZIERT: 0.5mm (früher 1mm) */
        padding: 0.5mm 0 !important; /* 🆕 ULTRA-REDUZIERT: 0.5mm (früher 1mm) */
        line-height: 1.2 !important; /* 🆕 ULTRA-REDUZIERT: 1.2 */
        overflow: visible !important;
    }
}