@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* 1. Eigener Firmen-Header */
.company-name {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
    margin-top: 15px;
    font-weight: 400;
    text-align: center;
    width: 100%;
}

/* 2. Typografie & transparenter Hintergrund für Canvas */
body, h1, h2, h3, h4, h5, .btn, .form-control, input, select, textarea {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

html, body {
    background-color: transparent !important;
    color: #e5e7eb !important;
    min-height: 100vh;
}

/* 3. Canvas exakt im Hintergrund fixieren */
#particles-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

/* 4. Haupt-Container, Inhaltsboxen & Listen */
.page-container,
.content,
.main,
main,
section,
#content,
.container,
.container-fluid,
.panel,
.panel-body,
.card,
.card-body,
.well,
.modal-content,
.popover,
.pretix-widget,
.list-group-item,
.addon-item,
.product-row {
    background-color: #1a1d24 !important;
    color: #e5e7eb !important;
}

.panel, .card {
    border: 1px solid #2d333f !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important;
}

.panel-heading, .card-header {
    background-color: #222630 !important;
    border-bottom: 1px solid #2d333f !important;
    color: #ffffff !important;
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
}

.panel-footer, .card-footer {
    background-color: #222630 !important;
    border-top: 1px solid #2d333f !important;
    border-bottom-left-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
}

/* 5. Texte & Labels (Alert-Boxen, Stripe & Textbubbles ausgenommen) */
h1:not(.alert *):not([class*="textbubble"] *), 
h2:not(.alert *):not([class*="textbubble"] *), 
h3:not(.alert *):not([class*="textbubble"] *), 
h4:not(.alert *):not([class*="textbubble"] *), 
h5:not(.alert *):not([class*="textbubble"] *), 
h6:not(.alert *):not([class*="textbubble"] *), 
.lead:not(.alert *):not([class*="textbubble"] *), 
strong:not(.alert *):not([class*="textbubble"] *):not(.StripeElement *), 
b:not(.alert *):not([class*="textbubble"] *), 
label:not(.alert *):not([class*="textbubble"] *), 
legend:not(.alert *):not([class*="textbubble"] *),
p:not(.alert *):not([class*="textbubble"] *),
span:not(.alert *):not([class*="textbubble"]):not([class*="textbubble"] *):not(.StripeElement *) {
    color: #ffffff !important;
}

.text-muted, small:not(.alert *):not([class*="textbubble"] *) {
    color: #9ca3af !important;
}

/* 6. Alert-, Warnboxen & Textbubbles (Statusanzeigen) */
.alert, 
.alert-warning, 
.alert-info, 
.alert-danger, 
.alert-success {
    border-radius: 12px !important;
}

.alert *,
.alert-warning *,
.alert-info *,
.alert-danger *,
.alert-success * {
    color: inherit !important;
}

.textbubble-warning,
.textbubble-warning *,
[class*="textbubble-warning"],
[class*="textbubble-warning"] * {
    color: #111827 !important;
}

.textbubble-danger,
.textbubble-danger *,
[class*="textbubble-danger"],
[class*="textbubble-danger"] * {
    color: #ffffff !important;
}

/* 7. Formularfelder, Dropdowns & Checkbox/Radio-Wrapper */
.form-control, 
input[type="text"], 
input[type="email"], 
input[type="number"], 
input[type="password"], 
input[type="tel"], 
select, 
textarea {
    background-color: #12141a !important;
    border: 1px solid #374151 !important;
    color: #ffffff !important;
    border-radius: 12px !important;
}

.form-control:focus, input:focus, select:focus, textarea:focus {
    border-color: #4b5563 !important;
    box-shadow: 0 0 0 3px rgba(75, 85, 99, 0.3) !important;
}

.input-group-addon {
    background-color: #222630 !important;
    border: 1px solid #374151 !important;
    color: #9ca3af !important;
}

/* 8. Zahlungsarten, Zusatzprodukte (Add-Ons) & Auswahl-Boxen */
.radio, 
.checkbox,
.payment-provider-form,
.payment-provider-form > div,
.addon-category,
.addons-panel,
.list-group,
.list-group-item {
    background-color: #161820 !important;
    border-color: #2d333f !important;
    color: #ffffff !important;
}

.list-group-item {
    border: 1px solid #2d333f !important;
}

.payment-provider-form {
    border: 1px solid #2d333f !important;
    border-radius: 12px !important;
    padding: 15px !important;
    margin-top: 10px !important;
    margin-bottom: 15px !important;
}

/* 9. Stripe / Kreditkarten-Eingabefelder (Auf Weiß / Original-Look belassen) */
.StripeElement,
.InputElement,
.Input,
.__PrivateStripeElement,
iframe[src*="stripe.com"],
iframe[name^="__privateStripeFrame"] {
    background-color: #ffffff !important;
    color: #32325d !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    filter: none !important;
}

.InputElement svg,
.StripeElement svg {
    filter: none !important;
}

/* Sneak-Peek-Trigger mit Darkmode-Farbverlauf */
.sneak-peek-trigger,
.sneak-peek-trigger:link,
.sneak-peek-trigger:visited,
a.sneak-peek-trigger,
button.sneak-peek-trigger,
div.sneak-peek-trigger {
    background: linear-gradient(
        to bottom, 
        rgba(26, 29, 36, 0) 0%, 
        rgba(26, 29, 36, 0.85) 50%, 
        #1a1d24 100%
    ) !important;
    border: none !important;
    color: #ffffff !important;
}

.sneak-peek-trigger * {
    background-color: transparent !important;
    color: #ffffff !important;
}

.sneak-peek-trigger:hover,
.sneak-peek-trigger:focus {
    background: linear-gradient(
        to bottom, 
        rgba(34, 38, 48, 0) 0%, 
        rgba(34, 38, 48, 0.9) 50%, 
        #222630 100%
    ) !important;
    color: #ffffff !important;
}

/* 10. Das HTML5 <dialog> Element & pretix Modal-Karten */
dialog,
dialog.modal,
.modal-card,
.modal-card-head,
.modal-card-body,
.modal-card-foot {
    background-color: #1a1d24 !important;
    color: #e5e7eb !important;
    border-color: #2d333f !important;
}

dialog {
    border: 1px solid #2d333f !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8) !important;
}

/* 11. Fix: Popup / Lade-Dialog mit Zahnrad (Async Spinner) */
#dialog-cart-extend-title,
.modal-card-title,
.modal-card-head .modal-card-title,
dialog h2,
dialog h3,
dialog p,
dialog span {
    color: #ffffff !important;
    background-color: transparent !important;
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(4px) !important;
}

.sepText,
span.sepText,
div.sepText {
    color: #1a1d24 !important;            /* Abgedunkeltes Grau statt grellem Weiß */
}

.fa-cog,
.fa-spinner,
.fa-spin {
    color: #3b82f6 !important;
}

/* 12. Tabellen */
.table, 
.table > tbody > tr > td, 
.table > tbody > tr > th, 
.table > tfoot > tr > td, 
.table > thead > tr > th {
    background-color: transparent !important;
    border-top: 1px solid #2d333f !important;
    border-bottom: 1px solid #2d333f !important;
    color: #e5e7eb !important;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #161820 !important;
}

.table-hover > tbody > tr:hover {
    background-color: #222630 !important;
}

/* 13. Buttons & pretix-Attribution */
.btn {
    border-radius: 16px !important;
    font-weight: 600 !important;
}

.btn-checkbox,
label.btn.btn-default.btn-checkbox {
    background-color: #12141a !important;
    border: 1px solid #374151 !important;
    color: #e5e7eb !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

.btn-checkbox:hover,
label.btn.btn-default.btn-checkbox:hover {
    background-color: #222630 !important;
    border-color: #4b5563 !important;
    color: #ffffff !important;
}

.btn-checkbox.btn-checkbox-checked,
.btn-checkbox.active,
label.btn.btn-default.btn-checkbox.btn-checkbox-checked,
label.btn.btn-default.btn-checkbox.active {
    background-color: #222630 !important;
    border: 1px solid #3b82f6 !important;
    color: #ffffff !important;
}

.btn-checkbox span,
.btn-checkbox i,
.btn-checkbox .fa,
label.btn.btn-default.btn-checkbox span,
label.btn.btn-default.btn-checkbox i {
    color: #ffffff !important;
}

footer .footer-text,
footer a[href*="pretix.eu"],
footer a[href*="pretix"],
.pretix-widget-attribution {
    display: none !important;
}