/*
 * HowMany - Premium Design System (Vanilla CSS)
 */
:root {
    --accent: #e1fe13;
    --accent-rgb: 225, 254, 19;
    --bg-dark: #14182c;
    --bg-darker: #14141d;
    --danger: #ef4444;
    --focus-ring: 0 0 0 3px var(--accent);
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --glass-bg: #ffffff;
    --glass-border: rgba(0, 0, 0, 0.08);
    --primary: #ececff;
    --primary-glow: rgba(58, 58, 58, 0.1);
    --primary-hover: #1a1a1a;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --secondary: #ffffff;
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1B2;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --thinLine: 0.5px solid rgb(149 149 149 / 60%);
    --font-size-base: 17px;
}

/* Kalender- & Uhrzeit-Icons auf Android/Chrome neutralisieren (Platzbedarf auf 0 setzen) */
input::-webkit-calendar-picker-indicator {
    background: transparent !important;
    bottom: 0 !important;
    color: transparent !important;
    cursor: pointer !important;
    height: auto !important;
    left: 0 !important;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

input::-webkit-inner-spin-button,
input::-webkit-clear-button {
    display: none !important;
    -webkit-appearance: none !important;
}

/* Internes Layout von Date/Time Inputs für echte Zentrierung */
input[type="date"]::-webkit-datetime-edit,
input[type="time"]::-webkit-datetime-edit {
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper,
input[type="time"]::-webkit-datetime-edit-fields-wrapper {
    display: flex !important;
    justify-content: center !important;
}

input[type="date"],
input[type="time"] {
    position: relative !important; /* Wichtig für absolute Positionierung des Invisible-Icons */
    -webkit-appearance: none !important;
    appearance: none !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
    text-align: center !important;
    min-width: 0 !important;
}

.date-time-container {
    gap: 6px !important;
    padding: 0 !important;
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
}

.date-time-container input {
    flex: 1 1 0% !important;
    min-width: 0 !important;
}

/* --- Accessibility: Skip Link --- */
.skip-link {
    background: var(--accent);
    border-radius: 0 0 12px 12px;
    color: var(--bg-dark) !important;
    font-weight: 700;
    left: 50%;
    padding: 0.8rem 1.5rem;
    position: absolute;
    text-decoration: none;
    top: -100px;
    transform: translateX(-50%);
    transition: top 0.3s ease;
    z-index: 99999;
}

.skip-link:focus {
    top: 0;
}

/* --- Global Focus Styles --- */
:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    background-color: var(--bg-dark);
    scrollbar-gutter: stable;
}

body {
    -webkit-tap-highlight-color: transparent;
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 1em;
    user-select: auto;
}

body.no-scroll {
    overflow: hidden !important;
    height: 100dvh !important;
    position: fixed !important;
    width: 100% !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #191923 inset !important;
    -webkit-text-fill-color: #fff !important;
    border-color: var(--accent);
    font-family: var(--font-main);
    transition: background-color 9999s ease-in-out 0s;
}


#legal-modal-content {
    text-align: left;
}


/* --- Layout & Utilities --- */
.container {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 2rem;
}

.header-actions {
    align-items: center;
    display: flex;
    gap: 1rem;
}

/* --- Utility & Helper Classes --- */
.hide-mobile,
.block {
    display: block;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 1rem !important;
}

.mt-2 {
    margin-top: 2rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-025 {
    margin-bottom: 0.25rem !important;
}

.mb-05 {
    margin-bottom: 0.5rem !important;
}

.mb-075 {
    margin-bottom: 0.75rem !important;
}

.mb-1 {
    margin-bottom: 1rem !important;
}

.mb-15 {
    margin-bottom: 1rem !important;
}

.mb-2 {
    margin-bottom: 2rem !important;
}

.mb-3 {
    margin-bottom: 3rem !important;
}

.mv-2 {
    margin: 2rem 0 !important;
}

.mv-1-2 {
    margin-bottom: 2rem !important;
    margin-top: 1rem !important;
}

.mt-3 {
    margin-top: 3rem !important;
}

.text-25rem {
    font-size: 2.5rem !important;
}

.mr-02 {
    margin-right: 0.2rem !important;
}

.mr-05 {
    margin-right: 0.5rem !important;
}

.ml-02 {
    margin-left: 0.2rem !important;
}

.ml-auto {
    margin-left: auto !important;
}

.mr-auto {
    margin-right: auto !important;
}

.pt-1 {
    padding-top: 1rem !important;
}

.pt-2 {
    padding-top: 2rem !important;
}

.pr-05 {
    padding-right: 0.5rem !important;
}

.w-100 {
    width: 100% !important;
}

.w-50px {
    width: 50px !important;
}

.max-w-450 {
    max-width: 450px !important;
}

.max-w-500 {
    max-width: 500px !important;
}

.max-w-600 {
    max-width: 600px !important;
}

.max-h-250 {
    max-height: 250px !important;
}

.flex {
    display: flex !important;
}

.flex-center-gap {
    align-items: center !important;
    display: flex !important;
    gap: 0.75rem !important;
}

.flex-column {
    display: flex !important;
    flex-direction: column !important;
}

.align-center {
    align-items: center !important;
}

.justify-between {
    justify-content: space-between !important;
}

.align-end {
    align-items: flex-end !important;
}

.justify-center {
    justify-content: center !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.flex-1 {
    flex: 1 !important;
}

.flex-2 {
    flex: 2 !important;
}

.gap-05 {
    gap: 0.5rem !important;
}

.gap-1 {
    gap: 1rem !important;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.no-underline {
    text-decoration: none !important;
}

.p-06 {
    padding: 0.6rem !important;
}

.p-1 {
    padding: 1rem !important;
}

.p-t-25 {
    padding-top: 2.5rem !important;
}

.mb-25 {
    margin-bottom: 2.5rem !important;
}

.mt-25 {
    margin-top: 2.5rem !important;
}

.pb-05 {
    padding-bottom: 0.5rem !important;
}

.pv-05 {
    padding: 0.5rem 0 !important;
}

.flex-center-wrap {
    align-items: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

.textarea-custom {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-main) !important;
    min-height: 80px !important;
    padding: 0.8rem !important;
    resize: vertical !important;
    width: 100% !important;
}

.line-height-14 {
    line-height: 1.4 !important;
}

.text-primary {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-primary-var {
    color: var(--primary) !important;
}

.text-secondary-var {
    color: var(--secondary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.text-danger {
    color: #f87171 !important;
}

.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-small {
    font-size: 0.9rem !important;
}

.text-xs {
    font-size: 0.8rem !important;
}

.text-xxs {
    font-size: 0.85rem !important;
}

.text-1rem {
    font-size: 1rem !important;
}

.text-11rem {
    font-size: 1.1rem !important;
}

.text-12rem {
    font-size: 1.2rem !important;
}

.text-18rem {
    font-size: 1.8rem !important;
}

.font-bold {
    font-weight: 600 !important;
}

.font-bolder {
    font-weight: 700 !important;
}

.font-normal {
    font-weight: 400 !important;
}

.font-light {
    font-weight: 300 !important;
}

.italic {
    font-style: italic !important;
}

.overflow-y-auto {
    overflow-y: auto !important;
}

.border-accent {
    border: 1px solid var(--accent) !important;
}

.opacity-08 {
    opacity: 0.8 !important;
}

.opacity-07 {
    opacity: 0.7 !important;
}

.vertical.btn-group {
    display: flex;
    gap: 0.5rem;
}

.show-mobile,
.show-mobile-flex,
.show-mobile-only {
    display: none !important;
}

.vertical-middle {
    vertical-align: middle !important;
}

.hidden {
    display: none !important;
}