/* ==========================================================================
   Design Tokens & CSS Custom Properties (Matched to Figma "Dev_Whiteboard")
   ========================================================================== */
:root {
    /* Color Palette */
    --color-bg-main: #000000;
    --color-bg-surface: #141218;
    --color-bg-card: rgba(255, 255, 255, 0.03);
    --color-bg-card-hover: rgba(255, 255, 255, 0.07);

    --color-text-primary: #FFFFFF;
    --color-text-secondary: #8894A4;
    --color-text-muted: #7C889A;
    --color-text-light: #DED8E1;

    --color-border: #343434;
    --color-border-frame: #CAC4D0;

    /* Coral Accent Tokens */
    --color-accent-coral: #EE7451;
    --color-accent-coral-bg: rgba(238, 116, 81, 0.14);
    --color-accent-coral-border: rgba(238, 116, 81, 0.35);
    --color-accent-coral-glow: rgba(238, 116, 81, 0.5);

    /* Mint Green Accent Tokens (Trash Restore) */
    --color-accent-green: #7CE3A0;
    --color-accent-green-bg: rgba(124, 227, 160, 0.12);
    --color-accent-green-border: rgba(124, 227, 160, 0.35);

    /* Navigation Tokens */
    --color-nav-active-pill: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-family-main: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Sizes & Spacing */
    --viewport-width: 412px;
    --viewport-height: 857px;
    --radius-sm: 9px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-frame: 22px;
    --radius-full: 9999px;

    /* Transitions & Shadows */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-badge: 0px 0px 8px var(--color-accent-coral-glow);
    --shadow-viewport: 0px 24px 48px rgba(0, 0, 0, 0.8), 0px 0px 0px 8px var(--color-border-frame);
}

/* Reset & Box Sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

/* Disable Touch Callout & Text Selection on Navigation & Controls */
button,
a,
input[type="button"],
input[type="submit"],
.bottom-nav,
.nav-item,
.app-header,
.role-card,
.sammeln-draft-card,
.sammeln-create-card,
.stat-card,
.session-card-link,
.legal-item-link,
.mehr-item-link,
.toggle-switch,
.color-swatch,
.wall-option-btn,
.card-popover-menu {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* ==========================================================================
   Cross-Platform PWA Base (iOS & Android)
   ========================================================================== */
html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Verhindert jedes Page-Bouncing auf iOS & Android */
    position: fixed;  /* Bindet den Viewport auf beiden Systemen an den realen Screen */
    inset: 0;
    background-color: #000000;
    font-family: var(--font-family-main);
    color: var(--color-text-primary);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Smartphone-Ansicht (Standard auf Handys bis 600px) */
.app-viewport {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    box-shadow: none;
    background-color: var(--color-bg-main);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}


/* ==========================================================================
   2. App Header (Height: 80px)
   ========================================================================== */
.app-header {
    width: 100%;
    min-height: calc(80px + env(safe-area-inset-top, 0px));
    padding-top: calc(16px + env(safe-area-inset-top, 0px));
    padding-left: calc(24px + env(safe-area-inset-left, 0px));
    padding-right: calc(24px + env(safe-area-inset-right, 0px));
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    background-color: var(--color-bg-main);
    box-sizing: border-box;
}

.page-title {
    font-size: 28px;
    font-weight: 500;
    line-height: 36px;
    color: var(--color-text-primary);
    letter-spacing: 0;
}

/* ==========================================================================
   3. Main Content Container (Scrollable)
   ========================================================================== */
.main-content {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    scrollbar-width: none;
    /* Firefox */
}

.main-content::-webkit-scrollbar {
    display: none;
    /* Chrome / Safari / Edge */
}

/* --- Section: Profile Info --- */
.profile-card-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding-top: 4px;
}

.avatar-container {
    width: 96px;
    height: 96px;
    border-radius: 48px;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: transform var(--transition-fast);
}

.avatar-container:hover {
    transform: scale(1.03);
}

.avatar-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-initial {
    font-size: 40px;
    font-weight: 500;
    font-family: var(--font-family-main);
    color: var(--color-accent-coral);
    -webkit-text-stroke: 1.2px var(--color-accent-coral);
    text-shadow: 0 0 10px rgba(238, 116, 81, 0.4);
    text-transform: uppercase;
    user-select: none;
}

.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    font-display: block;
    font-feature-settings: 'liga';
}

.user-identity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.user-name {
    font-size: 22px;
    font-weight: 500;
    line-height: 26px;
    color: var(--color-text-primary);
}

.role-badge {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background-color: var(--color-accent-coral-bg);
    border: 1px solid var(--color-accent-coral-border);
    box-shadow: var(--shadow-badge);
    color: var(--color-accent-coral);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform var(--transition-fast);
}

.role-badge:hover {
    transform: rotate(12deg) scale(1.1);
}

.user-role-label {
    font-size: 16px;
    font-weight: 500;
    line-height: 19px;
    color: var(--color-text-secondary);
}

/* --- Section: Stats Grid --- */
.stats-grid-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.stat-card {
    height: 73px;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.stat-card:hover {
    background-color: var(--color-bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
}

.stat-number.stat-orange {
    color: var(--color-accent-coral);
}

.stat-number.stat-green {
    color: var(--color-accent-green);
}

.stat-label {
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: 14px;
}

/* --- Section: Session Card Link --- */
.session-section {
    width: 100%;
}

.session-card-link {
    width: 100%;
    height: 50px;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--color-text-primary);
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.session-card-link:hover {
    background-color: var(--color-bg-card-hover);
    transform: translateY(-1px);
}

.session-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.session-icon {
    color: var(--color-text-secondary);
}

.session-title {
    font-size: 14px;
    font-weight: 500;
}

.chevron-icon {
    color: var(--color-text-secondary);
}

/* --- Section: Separator Divider --- */
.section-divider {
    border: none;
    height: 1px;
    background-color: var(--color-border);
    width: 100%;
    margin: 4px 0;
    opacity: 0.8;
}

/* --- Section: Legal List Container --- */
.legal-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-heading {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    padding-left: 4px;
}

.legal-card-group {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.legal-item-link {
    height: 50px;
    padding: 0 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--color-text-primary);
    font-size: 14px;
    font-weight: 400;
    transition: background-color var(--transition-fast);
}

.legal-item-link:hover {
    background-color: var(--color-bg-card-hover);
}

.legal-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-icon {
    font-size: 20px;
    color: var(--color-text-secondary);
}

.legal-divider {
    height: 1px;
    background-color: var(--color-border);
    width: 100%;
}

/* --- Footer --- */
.app-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}

.version-text {
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-muted);
}

/* ==========================================================================
   4. Bottom Navigation Bar (Height: ~89px incl. Handle Bar)
   ========================================================================== */
.bottom-nav,
.app-navigation {
    flex-shrink: 0; /* Darf unter keinen Umständen weggeschoben oder verkleinert werden */
    width: 100%;
    background-color: var(--color-bg-surface);
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Safe-Area-Bottom: Hebt auf dem iPhone die Icons über den Home-Balken */
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    box-sizing: border-box;
}

.nav-items-container {
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.nav-item {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    padding-top: 6px;
    padding-bottom: 4px;
}

.nav-icon-wrapper {
    width: 56px;
    height: 30px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent !important;
    box-shadow: none !important;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.nav-item:hover .nav-icon-wrapper {
    background: transparent !important;
    box-shadow: none !important;
    transform: translateY(-1px);
}

.nav-item.active {
    color: var(--color-text-primary);
}

.nav-item.active .active-pill,
.nav-icon-wrapper.active-pill {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.nav-item.active .nav-icon,
.nav-item.active .material-symbols-rounded,
.nav-item.active svg {
    color: var(--color-accent-coral) !important;
}

.nav-label {
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.5px;
}

/* Home Handle Bar (Disabled to prevent double spacing; replaced by Safe Area inset) */
.home-handle-bar {
    display: none;
    height: 0;
}

.home-handle {
    display: none;
}

/* ==========================================================================
   5. Papierkorb / Trash Page Styles (trash.html)
   ========================================================================== */
.header-with-subtitle {
    height: auto;
    min-height: 80px;
    padding-bottom: 12px;
}

.header-titles {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.page-subtitle {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--color-text-secondary);
}

.trash-group-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}

.section-title-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
}

.group-title {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.group-count {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--color-text-secondary);
}

.trash-card {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    display: flex;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.trash-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.trash-card-accent {
    width: 5px;
    background-color: var(--color-accent-green);
    flex-shrink: 0;
}

.trash-card-content {
    flex: 1;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.trash-card-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #EAF0F7;
}

.trash-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.trash-card-right-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-delete-permanent {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-accent-coral-bg);
    border: 1px solid var(--color-accent-coral-border);
    color: var(--color-accent-coral);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.btn-delete-permanent:hover {
    transform: scale(1.08);
    background-color: rgba(238, 116, 81, 0.25);
}

.trash-time-label {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-muted);
}

.btn-restore,
.btn-send {
    height: 40px;
    padding: 0 18px;
    border-radius: var(--radius-full);
    background-color: var(--color-accent-green-bg);
    border: 1px solid var(--color-accent-green-border);
    color: var(--color-accent-green);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-family-main);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(124, 227, 160, 0.2);
    transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-restore:hover,
.btn-send:hover {
    transform: translateY(-1px);
    background-color: rgba(124, 227, 160, 0.22);
    box-shadow: 0 0 12px rgba(124, 227, 160, 0.35);
}

/* ==========================================================================
   6. Meine Post-Its Page Styles (postits.html)
   ========================================================================== */
.header-with-live {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-titles-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #EE7451;
    box-shadow: 0 0 8px #EE7451;
}

.live-text {
    font-size: 13px;
    font-weight: 500;
    color: #8894A4;
}

.search-section {
    width: 100%;
}

.search-bar-wrapper {
    width: 100%;
    height: 48px;
    background-color: #1A1821;
    border: 1px solid #2D2A36;
    border-radius: 24px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 10px;
}

.search-icon {
    color: #8894A4;
    font-size: 20px;
}

.search-input {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    font-family: var(--font-family-main);
    font-size: 16px;
    color: #FFFFFF;
    outline: none;
}

.search-input::placeholder {
    color: #8894A4;
}

/* Segmented Switch (Mini-Wand vs Liste) */
.segment-switch-section {
    width: 100%;
}

.segment-switch {
    width: 100%;
    height: 50px;
    background-color: #141218;
    border: 1px solid #2B2836;
    border-radius: 25px;
    display: flex;
    padding: 3px;
}

.segment-btn {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    color: #8894A4;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-family-main);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border-radius: 22px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.segment-btn.active {
    background-color: #1E1B26;
    color: #EE7451;
    border: 1px solid #EE7451;
    box-shadow: 0 0 12px rgba(238, 116, 81, 0.35);
}

.segment-btn .check-icon {
    font-size: 18px;
    color: #EE7451;
}

/* Filter Tabs (Links / Mitte / Rechts) */
.tabs-filter-section {
    width: 100%;
    position: relative;
}

.filter-tabs-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 40px;
}

.filter-tab-item {
    background: transparent;
    border: none;
    font-family: var(--font-family-main);
    font-size: 15px;
    font-weight: 500;
    color: #8894A4;
    cursor: pointer;
    position: relative;
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.filter-tab-item.active {
    color: #EE7451;
    font-weight: 600;
}

.active-tab-line {
    position: absolute;
    bottom: -1px;
    width: 36px;
    height: 3px;
    background-color: #EE7451;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(238, 116, 81, 0.6);
}

.tabs-border-bottom {
    width: 100%;
    height: 1px;
    background-color: #2D2A36;
    margin-top: 0;
}

.postit-list-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.postit-card {
    background-color: #141218;
    border: 1px solid #203328;
    border-radius: 22px;
}

.card-action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-bearbeiten {
    height: 40px;
    padding: 0 18px;
    border-radius: 20px;
    background-color: rgba(124, 227, 160, 0.08);
    border: 1px solid rgba(124, 227, 160, 0.4);
    color: #7CE3A0;
    font-family: var(--font-family-main);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-bearbeiten:hover {
    background-color: rgba(124, 227, 160, 0.18);
    border-color: #7CE3A0;
    transform: translateY(-1px);
}

.btn-delete-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(238, 116, 81, 0.12);
    border: 1px solid rgba(238, 116, 81, 0.4);
    color: #EE7451;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-delete-circle:hover {
    background-color: rgba(238, 116, 81, 0.25);
    transform: scale(1.08);
}

.btn-eye-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(243, 122, 89, 0.12);
    border: 1px solid rgba(238, 116, 81, 0.35);
    color: #f37a59;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0px 0px 12px 1px rgba(243, 122, 89, 0.3);
}

.btn-eye-circle:hover {
    background-color: rgba(243, 122, 89, 0.25);
    transform: scale(1.08);
}

.btn-eye-circle.is-hidden-state {
    background-color: rgba(243, 122, 89, 0.08);
    border-color: rgba(238, 116, 81, 0.25);
    color: #ee7451;
}

.postit-card-dimmed {
    opacity: 0.5 !important;
}

/* ==========================================================================
   7. Login Page Styles (login.html)
   ========================================================================== */
.login-body {
    background-color: var(--color-bg-main);
}

.login-viewport {
    background-color: var(--color-bg-main);
    justify-content: space-between;
}

.login-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 20px 24px;
}

.login-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}

.login-logo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-accent-coral-bg);
    border: 2px solid var(--color-accent-coral-border);
    box-shadow: 0 0 20px var(--color-accent-coral-glow);
    color: var(--color-accent-coral);
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.login-error-box {
    background-color: rgba(238, 116, 81, 0.15);
    border: 1px solid var(--color-accent-coral-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: #FF8F70;
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    text-align: center;
    transition: opacity var(--transition-fast);
}

.login-error-box.hidden {
    display: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.input-wrapper {
    width: 100%;
    height: 52px;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-wrapper:focus-within {
    border-color: var(--color-accent-coral);
    box-shadow: 0 0 12px var(--color-accent-coral-glow);
}

.input-icon {
    color: var(--color-text-secondary);
    flex-shrink: 0;
}

.form-input {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    font-family: var(--font-family-main);
    font-size: 15px;
    color: var(--color-text-primary);
    outline: none;
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

.form-actions {
    margin-top: 12px;
    width: 100%;
}

.btn-submit-login {
    width: 100%;
    height: 52px;
    border-radius: var(--radius-full);
    background-color: var(--color-accent-coral);
    border: none;
    color: var(--color-text-primary);
    font-family: var(--font-family-main);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 16px var(--color-accent-coral-glow);
    transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-submit-login:hover {
    transform: translateY(-1px);
    background-color: #F18566;
    box-shadow: 0 6px 20px var(--color-accent-coral-glow);
}

.btn-submit-login:active {
    transform: translateY(1px);
}

/* ==========================================================================
   Responsive Adaptations & Mobile Orientation Landscape Overlay
   ========================================================================== */
/* Desktop-Vorschau: Nur auf echten Bildschirmen (> 600px) als Smartphone-Rahmen darstellen */
@media (min-width: 601px) {
    body {
        position: static;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #0d0c10;
    }
    .app-viewport {
        width: 412px;
        height: 857px;
        max-width: 412px;
        max-height: 857px;
        border-radius: 22px;
        box-shadow: 0px 24px 48px rgba(0, 0, 0, 0.8);
    }
}

/* Landscape Overlay: Fullscreen black background with white text */
@media (orientation: landscape) {

    html,
    body {
        overflow: hidden !important;
    }

    body::after {
        content: "Bitte Gerät drehen";
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background-color: #000000;
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: var(--font-family-main, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
        font-size: 1.5rem;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-align: center;
        padding: 20px;
        z-index: 9999999;
        box-sizing: border-box;
    }
}

/* ==========================================================================
   Welcome Screen (Login-Rollenauswahl) Styles
   ========================================================================== */
.welcome-viewport {
    background-color: #000000;
    justify-content: space-between;
}

/* Status Bar */
.status-bar {
    width: 100%;
    min-height: calc(44px + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    padding-left: calc(20px + env(safe-area-inset-left, 0px));
    padding-right: calc(20px + env(safe-area-inset-right, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    flex-shrink: 0;
    user-select: none;
    box-sizing: border-box;
}

.status-time {
    font-size: 13px;
    font-weight: 500;
    color: #eaf0f7;
}

.status-notch {
    position: absolute;
    top: 13px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background-color: #111111;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.status-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #eaf0f7;
}

.status-icons .material-symbols-rounded {
    font-size: 16px;
}

/* Main Welcome Content */
.welcome-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px 20px;
    width: 100%;
}

.scan-welcome-content {
    justify-content: flex-start;
    padding-top: calc(54px + env(safe-area-inset-top, 0px));
}

.welcome-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    margin: auto 0;
}

.welcome-inner.top-aligned {
    margin: 0;
    margin-top: 16px;
}

/* Hero Section */
.welcome-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
    width: 100%;
}

.welcome-icon-box {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    background-color: rgba(238, 116, 81, 0.1);
    box-shadow: 0px 0px 30px -6px rgba(238, 116, 81, 0.6), inset 0px 0px 0px 1px rgba(238, 116, 81, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.welcome-icon-box:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 40px -4px rgba(238, 116, 81, 0.8), inset 0px 0px 0px 1.5px rgba(238, 116, 81, 0.6);
}

.welcome-icon-box .material-symbols-rounded {
    font-size: 38px;
    color: #ee7451;
}

.welcome-title {
    font-size: 26px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.2;
    margin-top: 3px;
}

.welcome-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #8894a4;
    line-height: 1.5;
}

/* Role Options Container */
.role-cards-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

/* Role Selection Link Card */
.role-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    width: 100%;
    border-radius: 22px;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
}

/* Primary Card (Teilnehmende) */
.role-card-primary {
    background-color: rgba(238, 116, 81, 0.08);
    border: 1.5px solid #cb6346;
    box-shadow: 0px 0px 34px -10px rgba(238, 116, 81, 0.55);
}

.role-card-primary:hover {
    transform: translateY(-2px);
    background-color: rgba(238, 116, 81, 0.14);
    box-shadow: 0px 0px 40px -6px rgba(238, 116, 81, 0.7);
}

.role-card-primary:active {
    transform: translateY(0);
}

.role-card-primary .role-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background-color: rgba(238, 116, 81, 0.14);
    box-shadow: inset 0px 0px 0px 1px rgba(238, 116, 81, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.role-card-primary .role-icon-box .material-symbols-rounded {
    font-size: 24px;
    color: #ee7451;
}

.role-card-primary .role-chevron {
    font-size: 22px;
    color: #ee7451;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.role-card-primary:hover .role-chevron {
    transform: translateX(3px);
}

/* Secondary Card (Moderation) */
.role-card-secondary {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.role-card-secondary:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.4);
}

.role-card-secondary:active {
    transform: translateY(0);
}

.role-card-secondary .role-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0px 0px 0px 1px rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.role-card-secondary .role-icon-box .material-symbols-rounded {
    font-size: 24px;
    color: #c8d0da;
}

.role-card-secondary .role-chevron {
    font-size: 22px;
    color: #8894a4;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.role-card-secondary:hover .role-chevron {
    transform: translateX(3px);
    color: #ffffff;
}

.role-title {
    font-size: 17px;
    font-weight: 500;
    color: #ffffff;
    flex: 1;
}

/* Footer Legal Links */
.welcome-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.welcome-footer-link {
    font-size: 12.5px;
    font-weight: 400;
    color: #7c889a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.welcome-footer-link:hover {
    color: #ffffff;
}

.welcome-footer-separator {
    font-size: 12.5px;
    color: #7c889a;
    user-select: none;
}

/* Home Handle Bar (Disabled to prevent double spacing; replaced by Safe Area inset) */
.welcome-home-bar {
    display: none;
    height: 0;
}

.welcome-home-handle {
    display: none;
}

/* ==========================================================================
   QR Code Scanner (Welcome Screen)
   ========================================================================== */
.qr-scanner-wrapper {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 14px auto 0 auto;
}

.qr-scanner-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 280px;
    background-color: #0b0c10;
    border-radius: 24px;
    border: 1.5px solid rgba(238, 116, 81, 0.35);
    box-shadow: 0px 0px 30px -5px rgba(238, 116, 81, 0.3), inset 0px 0px 20px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    display: block;
    background-color: #000000;
}

.qr-scan-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.55) 100%);
}

.qr-target-frame {
    position: relative;
    width: 68%;
    height: 68%;
    box-sizing: border-box;
}

.qr-target-frame .corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: #ee7451;
    border-style: solid;
    border-width: 0;
}

.qr-target-frame .corner.top-left {
    top: 0;
    left: 0;
    border-top-width: 3px;
    border-left-width: 3px;
    border-top-left-radius: 8px;
}

.qr-target-frame .corner.top-right {
    top: 0;
    right: 0;
    border-top-width: 3px;
    border-right-width: 3px;
    border-top-right-radius: 8px;
}

.qr-target-frame .corner.bottom-left {
    bottom: 0;
    left: 0;
    border-bottom-width: 3px;
    border-left-width: 3px;
    border-bottom-left-radius: 8px;
}

.qr-target-frame .corner.bottom-right {
    bottom: 0;
    right: 0;
    border-bottom-width: 3px;
    border-right-width: 3px;
    border-bottom-right-radius: 8px;
}

.qr-target-frame .scan-line {
    position: absolute;
    top: 0;
    left: 5%;
    width: 90%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ee7451, transparent);
    box-shadow: 0 0 10px #ee7451, 0 0 20px #ee7451;
    animation: qrScanAnimation 2.2s infinite ease-in-out;
}

@keyframes qrScanAnimation {
    0% {
        top: 0%;
        opacity: 0.3;
    }

    50% {
        top: 96%;
        opacity: 1;
    }

    100% {
        top: 0%;
        opacity: 0.3;
    }
}

.qr-scanner-status {
    font-size: 13px;
    font-weight: 500;
    color: #8894a4;
    text-align: center;
    padding: 0 8px;
    line-height: 1.4;
}

.qr-result-code {
    background-color: rgba(238, 116, 81, 0.12);
    border: 1px solid rgba(238, 116, 81, 0.35);
    color: #ee7451;
    font-family: monospace;
    font-size: 15px;
    padding: 12px 14px;
    border-radius: 12px;
    word-break: break-all;
    user-select: all;
    margin-top: 8px;
}

.btn-start-scan {
    width: 100%;
    height: 48px;
    border-radius: 100px;
    background-color: rgba(238, 116, 81, 0.15);
    border: 1.5px solid rgba(238, 116, 81, 0.45);
    box-shadow: 0px 0px 20px 2px rgba(238, 116, 81, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ee7451;
    font-family: 'Manrope', 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-start-scan:hover {
    transform: translateY(-2px);
    background-color: rgba(238, 116, 81, 0.25);
    border-color: rgba(238, 116, 81, 0.75);
    box-shadow: 0px 0px 28px 4px rgba(238, 116, 81, 0.45);
}

.btn-start-scan:active {
    transform: translateY(0);
}

.qr-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #8894a4;
    padding: 20px;
    text-align: center;
}

.qr-placeholder .material-symbols-rounded {
    font-size: 42px;
    color: rgba(238, 116, 81, 0.7);
}

.qr-placeholder p {
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.4;
    color: #8894a4;
    margin: 0;
}

/* ==========================================================================
   Login Form Screen (Figma Login-Rollenauswahl Node 115:7436)
   ========================================================================== */
.login-form-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.login-input-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.login-input-label {
    font-size: 14px;
    font-weight: 400;
    color: #ee7451;
    letter-spacing: 0.4px;
}

.login-input-box {
    height: 52px;
    width: 100%;
    border-radius: 14px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1.5px solid #cb6346;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-input-box:focus-within {
    border-color: #ee7451;
    box-shadow: 0px 0px 18px rgba(238, 116, 81, 0.45);
}

.login-input-field {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 17px;
    font-weight: 400;
    font-family: var(--font-family-main);
}

.login-input-field::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Autofill / Autocomplete Styling Overrides (Chrome, Safari, Edge, WebKit) */
.login-input-field:-webkit-autofill,
.login-input-field:-webkit-autofill:hover,
.login-input-field:-webkit-autofill:focus,
.login-input-field:-webkit-autofill:active,
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #0c0b0f inset !important;
    box-shadow: 0 0 0px 1000px #0c0b0f inset !important;
    transition: background-color 50000s ease-in-out 0s !important;
    caret-color: #ffffff !important;
}

.btn-join-session {
    width: 100%;
    height: 52px;
    border-radius: 100px;
    background-color: rgba(238, 116, 81, 0.12);
    border: 1px solid rgba(238, 116, 81, 0.35);
    box-shadow: 0px 0px 15px 1px rgba(238, 116, 81, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ee7451;
    font-family: 'Manrope', 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    margin-top: 14px;
    text-decoration: none;
}

.btn-join-session:hover {
    transform: translateY(-2px);
    background-color: rgba(238, 116, 81, 0.2);
    border-color: rgba(238, 116, 81, 0.6);
    box-shadow: 0px 0px 25px 2px rgba(238, 116, 81, 0.5);
}

.btn-join-session:active {
    transform: translateY(0);
}

.btn-join-session .material-symbols-rounded {
    font-size: 21px;
    color: #ee7451;
}

.login-error-box {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13.5px;
    text-align: center;
    width: 100%;
}

.login-error-box.hidden {
    display: none;
}

/* ==========================================================================
   Sammeln Screen (Figma 1_Teilnehmende-Sammeln Node 1:5328)
   ========================================================================== */
.sammeln-header-row {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.sammeln-header-titles {
    display: flex;
    flex-direction: column;
}

.page-subtitle {
    font-size: 13.5px;
    font-weight: 400;
    line-height: 20px;
    color: #8894a4;
    white-space: nowrap;
}

.sammeln-meta-badge {
    font-size: 12px;
    color: #8894a4;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 10px;
}

/* Create New Post-It Dashed Card */
.sammeln-create-card {
    width: 100%;
    min-height: 79px;
    border-radius: 22px;
    border: 1px dashed rgba(243, 122, 89, 0.6);
    background-color: rgba(243, 122, 89, 0.04);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    margin-bottom: 20px;
}

.sammeln-create-card:hover {
    transform: translateY(-2px);
    background-color: rgba(243, 122, 89, 0.08);
    border-color: rgba(243, 122, 89, 0.8);
}

.sammeln-create-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background-color: rgba(243, 122, 89, 0.1);
    border: 1px solid rgba(243, 122, 89, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sammeln-create-icon-box .material-symbols-rounded {
    font-size: 24px;
    color: #f37a59;
}

.sammeln-create-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sammeln-create-title {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
}

.sammeln-create-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: #8894a4;
}

/* Draft Section Title Header */
.sammeln-section-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px 12px 4px;
    font-size: 12px;
    font-weight: 500;
    color: #8894a4;
    letter-spacing: 0.5px;
}

/* Draft Post-It Cards */
.sammeln-draft-card {
    position: relative;
    width: 100%;
    border-radius: 24px;
    background: linear-gradient(156deg, rgba(124, 227, 160, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(124, 227, 160, 0.24);
    box-shadow: 0px 10px 30px -18px rgba(0, 0, 0, 0.9), 0px 0px 30px -8px rgba(124, 227, 160, 0.5);
    padding: 18px 20px 14px 26px;
    margin-bottom: 14px;
    overflow: visible;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1;
}

.sammeln-draft-card.has-popover-open {
    z-index: 30;
}

.sammeln-draft-card:hover {
    transform: translateY(-2px);
    box-shadow: 0px 14px 34px -14px rgba(0, 0, 0, 0.95), 0px 0px 36px -6px rgba(124, 227, 160, 0.65);
}

.sammeln-draft-accent {
    position: absolute;
    left: -1px;
    top: 14px;
    bottom: 14px;
    width: 5px;
    background-color: #7ce3a0;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    box-shadow: 0px 0px 16px 0px rgba(124, 227, 160, 0.85);
}

.sammeln-draft-more-btn {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 30px;
    height: 30px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: #8894a4;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sammeln-draft-more-btn:hover {
    background-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.sammeln-draft-text {
    font-size: 14px;
    font-weight: 500;
    color: #eaf0f7;
    line-height: 20px;
    margin-bottom: 14px;
    padding-right: 24px;
    word-break: break-word;
}

.sammeln-draft-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.sammeln-draft-tag {
    font-size: 12px;
    font-weight: 500;
    color: #8894a4;
}

.btn-send-single {
    background-color: rgba(124, 227, 160, 0.12);
    border: 1px solid rgba(124, 227, 160, 0.35);
    border-radius: 100px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #7ce3a0;
    font-family: 'Manrope', 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 12.5px;
    box-shadow: 0px 0px 12px 1px rgba(124, 227, 160, 0.3);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-send-single:hover {
    transform: translateY(-1px);
    background-color: rgba(124, 227, 160, 0.22);
    box-shadow: 0px 0px 18px 2px rgba(124, 227, 160, 0.45);
}

.btn-send-single .material-symbols-rounded {
    font-size: 16px;
    color: #7ce3a0;
}

/* Sticky Action Section (Alle an die Wände senden) */
.sammeln-action-section {
    width: 100%;
    padding: 12px 0 16px 0;
    margin-top: auto;
}

.btn-send-all {
    width: 100%;
    height: 52px;
    border-radius: 100px;
    background-color: rgba(243, 122, 89, 0.15);
    border: 1.5px solid rgba(243, 122, 89, 0.45);
    box-shadow: 0px 0px 34px 2px rgba(243, 122, 89, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #f37a59;
    font-family: 'Manrope', 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}

.btn-send-all:hover {
    transform: translateY(-2px);
    background-color: rgba(243, 122, 89, 0.25);
    border-color: rgba(243, 122, 89, 0.75);
    box-shadow: 0px 0px 40px 4px rgba(243, 122, 89, 0.5);
}

.btn-send-all:active {
    transform: translateY(0);
}

.btn-send-all .material-symbols-rounded {
    font-size: 20px;
    color: #f37a59;
}

/* Session verlassen Button (Profil Page Figma 105:2618) */
.btn-leave-session {
    width: 100%;
    height: 52px;
    border-radius: 100px;
    background-color: rgba(243, 122, 89, 0.12);
    border: 1.5px solid rgba(243, 122, 89, 0.35);
    box-shadow: 0px 0px 34px 2px rgba(243, 122, 89, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #f37a59;
    font-family: 'Manrope', 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    margin-top: 14px;
    margin-bottom: 12px;
}

.btn-leave-session:hover {
    transform: translateY(-2px);
    background-color: rgba(243, 122, 89, 0.22);
    border-color: rgba(243, 122, 89, 0.65);
    box-shadow: 0px 0px 40px 4px rgba(243, 122, 89, 0.5);
}

.btn-leave-session:active {
    transform: translateY(0);
}

.btn-leave-session .material-symbols-rounded {
    font-size: 20px;
    color: #f37a59;
}

.profile-version-info {
    font-size: 12px;
    font-weight: 400;
    color: #8894a4;
    text-align: right;
    width: 100%;
    padding-top: 2px;
    padding-bottom: 4px;
}

/* Strict No-Scroll Layout for Profile Page */
.profile-main-content {
    overflow: hidden !important;
    overflow-y: hidden !important;
    padding: 6px 16px 8px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

.profile-main-content .profile-card-section {
    gap: 4px;
    padding-top: 0;
}

.profile-main-content .legal-section {
    gap: 4px;
}

.profile-main-content .btn-leave-session {
    margin-top: 6px;
    margin-bottom: 2px;
}

/* ==========================================================================
   Profile Modal Overlay (Figma Node 105:2964)
   ========================================================================== */
.modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(2.5px);
    -webkit-backdrop-filter: blur(2.5px);
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: 100%;
    max-width: 372px;
    background-color: #100f13;
    border-radius: 28px;
    border: 1px solid rgba(238, 116, 81, 0.3);
    box-shadow: 0px 30px 60px 0px rgba(0, 0, 0, 0.75), 0px 0px 40px -12px rgba(238, 116, 81, 0.45);
    padding: 26px 24px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    transform: translateY(25px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-title {
    font-size: 22px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.2;
}

.modal-description {
    font-size: 15px;
    font-weight: 400;
    color: #8894a4;
    line-height: 1.45;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    width: 100%;
}

.btn-confirm-leave {
    width: 100%;
    height: 54px;
    border-radius: 100px;
    background-color: rgba(243, 122, 89, 0.12);
    border: 1.5px solid rgba(243, 122, 89, 0.35);
    box-shadow: 0px 0px 34px 2px rgba(243, 122, 89, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #f37a59;
    font-family: 'Manrope', 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 16.5px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-confirm-leave:hover {
    transform: translateY(-2px);
    background-color: rgba(243, 122, 89, 0.22);
    border-color: rgba(243, 122, 89, 0.65);
    box-shadow: 0px 0px 40px 4px rgba(243, 122, 89, 0.5);
}

.btn-confirm-leave:active {
    transform: translateY(0);
}

.btn-confirm-leave .material-symbols-rounded {
    font-size: 21px;
    color: #f37a59;
}

.btn-cancel-leave {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #8894a4;
    font-family: 'Manrope', 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-cancel-leave:hover {
    color: #ffffff;
}

/* ==========================================================================
   Schreiben Page / Edit Post-It (Figma 2_Teilnehmende-Schreiben 1:5417)
   ========================================================================== */
.schreiben-header {
    width: 100%;
    height: 60px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--color-bg-main);
}

.schreiben-back-link {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #f37a59;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    z-index: 2;
    transition: opacity 0.2s ease;
}

.schreiben-back-link:hover {
    opacity: 0.8;
}

.schreiben-back-link .material-symbols-rounded {
    font-size: 24px;
    color: #f37a59;
}

.schreiben-header-title {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    color: #ffffff;
    pointer-events: none;
}

.schreiben-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scrollbar-width: none;
}

.schreiben-content::-webkit-scrollbar {
    display: none;
}

/* Post-It Card Textarea Area */
.schreiben-card {
    width: 100%;
    height: 150px;
    background: rgba(124, 227, 160, 0.1);
    border: 1px solid rgba(124, 227, 160, 0.35);
    box-shadow: 0px 0px 38px 3px rgba(124, 227, 160, 0.25);
    border-radius: 24px;
    padding: 16px 20px 12px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.schreiben-textarea {
    width: 100%;
    height: 95px;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    color: #ffffff;
    font-family: var(--font-family-main);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.schreiben-textarea::placeholder {
    color: #8894a4;
}

.schreiben-char-count {
    font-size: 12px;
    font-weight: 400;
    color: #8894a4;
}

/* Section Labels */
.schreiben-label {
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
    padding-left: 4px;
}

/* Color Swatches Container */
.color-swatches-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px;
    width: 100%;
}

.color-swatch {
    width: 38px;
    height: 38px;
    border-radius: 19px;
    border: none;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-swatch:hover {
    transform: scale(1.12);
}

.color-swatch.active {
    transform: scale(1.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 0 16px rgba(255, 255, 255, 0.5);
}

.color-swatch.active::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

/* Wall Option Buttons */
.wall-options-container {
    display: flex;
    gap: 12px;
    width: 100%;
}

.wall-option-btn {
    flex: 1;
    height: 56px;
    border-radius: 16px;
    background-color: transparent;
    border: 1px solid #343434;
    color: #8894a4;
    font-family: var(--font-family-main);
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wall-option-btn:hover {
    border-color: #555555;
    color: #ffffff;
}

.wall-option-btn.active {
    background-color: rgba(243, 122, 89, 0.12);
    border: 1px solid rgba(243, 122, 89, 0.35);
    color: #f37a59;
    box-shadow: 0px 0px 34px 2px rgba(243, 122, 89, 0.3);
    font-weight: 700;
}

/* Swipe Hint */
.schreiben-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #8894a4;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: 4px;
    margin-bottom: 2px;
}

.schreiben-hint .hint-icon {
    font-size: 14px;
    color: #8894a4;
}

/* Action Buttons */
.schreiben-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: auto;
    padding-top: 8px;
}

.btn-send-wall {
    width: 100%;
    height: 56px;
    border-radius: 100px;
    background-color: rgba(243, 122, 89, 0.15);
    border: 1px solid rgba(243, 122, 89, 0.35);
    color: #f37a59;
    box-shadow: 0px 0px 34px 2px rgba(243, 122, 89, 0.3);
    font-family: 'Manrope', var(--font-family-main);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-send-wall:hover {
    transform: translateY(-2px);
    background-color: rgba(243, 122, 89, 0.25);
    box-shadow: 0px 0px 40px 4px rgba(243, 122, 89, 0.5);
}

.btn-send-wall:active {
    transform: translateY(0);
}

.btn-send-wall .send-icon {
    font-size: 18px;
    color: #f37a59;
    transform: rotate(-45deg);
}

.btn-save-draft {
    width: 100%;
    height: 56px;
    border-radius: 100px;
    background-color: rgba(234, 240, 247, 0.12);
    border: 1px solid rgba(234, 240, 247, 0.35);
    color: #eaf0f7;
    font-family: 'Manrope', var(--font-family-main);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-save-draft:hover {
    transform: translateY(-2px);
    background-color: rgba(234, 240, 247, 0.2);
}

.btn-save-draft:active {
    transform: translateY(0);
}

/* Save Toast Notification */
.save-toast {
    position: absolute;
    top: 68px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(124, 227, 160, 0.95);
    color: #0d1e13;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 20px rgba(124, 227, 160, 0.4);
    z-index: 100;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.save-toast.hidden {
    opacity: 0;
    transform: translate(-50%, -15px);
    pointer-events: none;
}

/* Sammeln Drafts List Container */
.sammeln-drafts-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.empty-drafts-notice {
    padding: 24px 16px;
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 400;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    background-color: rgba(255, 255, 255, 0.02);
}

/* Hauptcontainer: min-height: 0 ist Pflicht in Flexbox, damit der Scrollbereich greift */
.sammeln-main-container {
    flex: 1;
    min-height: 0; /* Zwingend: Erlaubt Flexbox das Stauchen, statt den Footer wegzudrücken */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: max(12px, env(safe-area-inset-top, 0px));
    padding-left: calc(16px + env(safe-area-inset-left, 0px));
    padding-right: calc(16px + env(safe-area-inset-right, 0px));
    padding-bottom: 8px;
    gap: 12px;
    box-sizing: border-box;
}

.sammeln-top-fixed {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Nur der Bereich mit den Post-It-Karten darf scrollen */
.sammeln-drafts-scroll-area {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    padding-right: 2px;
}

.sammeln-drafts-scroll-area::-webkit-scrollbar {
    display: none;
    /* Chrome / Safari */
}

/* Card Options Popover Menu (Figma POPOVER 105:1949) */
.card-popover-menu {
    position: absolute;
    top: 44px;
    right: 12px;
    width: 228px;
    background-color: #100f13;
    border: 1px solid rgba(243, 122, 89, 0.35);
    border-radius: 20px;
    box-shadow: 0px 22px 50px 0px rgba(0, 0, 0, 0.85), 0px 0px 34px -10px rgba(243, 122, 89, 0.55);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 100;
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-popover-menu.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.popover-item {
    width: 100%;
    height: 50px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease;
}

.popover-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.popover-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.popover-icon-box.edit-box {
    background-color: rgba(243, 122, 89, 0.12);
    border: 1px solid rgba(243, 122, 89, 0.35);
    box-shadow: 0px 0px 12px 0px rgba(243, 122, 89, 0.3);
    color: #f37a59;
}

.popover-icon-box.delete-box {
    background-color: rgba(233, 90, 90, 0.12);
    border: 1px solid rgba(233, 90, 90, 0.35);
    color: #e96969;
}

.popover-icon-box .material-symbols-rounded {
    font-size: 18px;
}

.popover-item-label {
    font-family: 'Manrope', var(--font-family-main);
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
}

.popover-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(243, 122, 89, 0.35);
    margin: 2px 0;
}

/* ==========================================================================
   Papierkorb / Trash Screen (trash.html - Figma 6_Teilnehmende-Papierkorb)
   ========================================================================== */
.trash-cards-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    padding: 12px 16px 24px 16px;
    overflow-y: auto;
}

.trash-section-title {
    font-size: 12px;
    font-weight: 500;
    color: #8894a4;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 6px 4px 2px 4px;
    margin-top: 4px;
}

.trash-card {
    position: relative;
    width: 100%;
    border-radius: 24px;
    background: linear-gradient(159deg, rgba(124, 227, 160, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(124, 227, 160, 0.24);
    box-shadow: 0px 10px 30px -18px rgba(0, 0, 0, 0.9), 0px 0px 30px -8px rgba(124, 227, 160, 0.5);
    padding: 18px 20px 14px 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
}

.trash-card:hover {
    transform: translateY(-2px);
    box-shadow: 0px 14px 34px -14px rgba(0, 0, 0, 0.95), 0px 0px 36px -6px rgba(124, 227, 160, 0.65);
}

.trash-card-accent {
    position: absolute;
    left: -1px;
    top: 13.5px;
    bottom: 14px;
    width: 5px;
    background-color: #7ce3a0;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    box-shadow: 0px 0px 16px 0px rgba(124, 227, 160, 0.85);
}

.trash-card-text {
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    color: #eaf0f7;
    line-height: 20px;
    word-break: break-word;
    margin: 0;
}

.trash-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 2px;
}

.trash-card-time {
    font-size: 12px;
    font-weight: 500;
    color: #8894a4;
}

.trash-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-restore-card {
    height: 38px;
    padding: 0 16px 0 14px;
    border-radius: 100px;
    background-color: rgba(124, 227, 160, 0.12);
    border: 1px solid rgba(124, 227, 160, 0.35);
    color: #7ce3a0;
    font-family: 'Manrope', 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0px 0px 12px 1px rgba(124, 227, 160, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-restore-card:hover {
    transform: translateY(-1px);
    background-color: rgba(124, 227, 160, 0.22);
    box-shadow: 0px 0px 18px 2px rgba(124, 227, 160, 0.5);
}

.btn-restore-card:active {
    transform: translateY(0);
}

.btn-restore-card .material-symbols-rounded {
    font-size: 18px;
    color: #7ce3a0;
}

.btn-delete-permanent-card {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(233, 90, 90, 0.12);
    border: 1px solid rgba(233, 90, 90, 0.35);
    color: #e96969;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 12px 1px rgba(233, 90, 90, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
}

.btn-delete-permanent-card:hover {
    transform: translateY(-1px);
    background-color: rgba(233, 90, 90, 0.22);
    box-shadow: 0px 0px 18px 2px rgba(233, 90, 90, 0.45);
}

.btn-delete-permanent-card:active {
    transform: translateY(0);
}

.btn-delete-permanent-card .material-symbols-rounded {
    font-size: 18px;
    color: #e96969;
}

/* ==========================================================================
   Meine Post-Its Screen (postits.html - Fixed Top & Scrollable Cards)
   ========================================================================== */
.postits-main-container {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 12px 16px 0 16px;
    gap: 10px;
}

.postits-top-fixed {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.postits-cards-scroll-area {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    padding-top: 6px;
    padding-bottom: 24px;
}

.postits-cards-scroll-area::-webkit-scrollbar {
    display: none;
    /* Chrome / Safari */
}

.postit-list-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.btn-bearbeiten {
    height: 38px;
    padding: 0 16px 0 14px;
    border-radius: 100px;
    background-color: rgba(124, 227, 160, 0.12);
    border: 1px solid rgba(124, 227, 160, 0.35);
    color: #7ce3a0;
    font-family: 'Manrope', 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0px 0px 12px 1px rgba(124, 227, 160, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-bearbeiten:hover {
    transform: translateY(-1px);
    background-color: rgba(124, 227, 160, 0.22);
    box-shadow: 0px 0px 18px 2px rgba(124, 227, 160, 0.5);
}

.btn-bearbeiten .material-symbols-rounded {
    font-size: 18px;
    color: #7ce3a0;
}

/* Deaktivierter Session beitreten Button (login.html) */
.btn-join-session:disabled,
.btn-join-session.disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: none !important;
    filter: grayscale(80%) !important;
}

/* ==========================================================================
   Moderation Mehr & Profil Screen Styles (mehr.html & mod-profil.html - Figma 7)
   ========================================================================== */
.header-with-avatar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-avatar-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(243, 122, 89, 0.12);
    border: 1.5px solid #f37a59;
    box-shadow: 0 0 10px rgba(243, 122, 89, 0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.header-avatar-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 14px rgba(243, 122, 89, 0.6);
}

.header-avatar-initial {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #f37a59;
}

.header-with-back {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header-back-link {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #f37a59;
    text-decoration: none;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: opacity var(--transition-fast);
    z-index: 2;
}

.header-back-link:hover {
    opacity: 0.85;
}

.page-title-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: 700;
}

.header-placeholder {
    width: 48px;
}

.mehr-card-group {
    background-color: #141218;
    border: 1px solid #2B2836;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mehr-item-link,
.mehr-item-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 18px;
    text-decoration: none;
    color: #eaf0f7;
    transition: background-color var(--transition-fast);
}

.mehr-item-link:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

.item-left-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.item-icon {
    font-size: 22px;
    color: #f37a59;
}

.item-label {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #eaf0f7;
}

/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 31px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2D2A36;
    transition: .3s ease;
    border-radius: 31px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 25px;
    width: 25px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: .3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

input:checked+.toggle-slider {
    background-color: #f37a59;
    box-shadow: 0 0 12px rgba(243, 122, 89, 0.5);
}

input:checked+.toggle-slider:before {
    transform: translateX(21px);
}

/* ==========================================================================
   Touch & Hover Optimization (@media (hover: none) & :active Feedback)
   ========================================================================== */
@media (hover: none) {

    /* Reset sticky hover transforms on touch devices */
    .avatar-container:hover,
    .role-badge:hover,
    .stat-card:hover,
    .session-card-link:hover,
    .legal-item-link:hover,
    .nav-item:hover .nav-icon-wrapper,
    .trash-card:hover,
    .btn-delete-permanent:hover,
    .btn-restore:hover,
    .btn-send:hover,
    .btn-bearbeiten:hover,
    .btn-delete-circle:hover,
    .btn-eye-circle:hover,
    .btn-submit-login:hover,
    .welcome-icon-box:hover,
    .role-card-primary:hover,
    .role-card-secondary:hover,
    .btn-join-session:hover,
    .sammeln-create-card:hover,
    .sammeln-draft-card:hover,
    .sammeln-draft-more-btn:hover,
    .btn-send-single:hover,
    .btn-send-all:hover,
    .btn-leave-session:hover,
    .btn-confirm-leave:hover,
    .btn-cancel-leave:hover,
    .schreiben-back-link:hover,
    .color-swatch:hover,
    .wall-option-btn:hover,
    .btn-send-wall:hover,
    .btn-save-draft:hover,
    .popover-item:hover,
    .btn-restore-card:hover,
    .btn-delete-permanent-card:hover,
    .header-avatar-btn:hover,
    .header-back-link:hover,
    .mehr-item-link:hover {
        transform: none !important;
    }
}

/* Touch Active Feedback */
.role-card:active,
.sammeln-draft-card:active,
.sammeln-create-card:active,
.stat-card:active,
.session-card-link:active,
.legal-item-link:active,
.mehr-item-link:active,
.btn-send-single:active,
.btn-send-all:active,
.btn-join-session:active,
.btn-leave-session:active,
.btn-confirm-leave:active,
.btn-cancel-leave:active,
.btn-restore:active,
.btn-send:active,
.btn-bearbeiten:active,
.btn-delete-permanent:active,
.btn-delete-circle:active,
.btn-eye-circle:active,
.btn-restore-card:active,
.btn-delete-permanent-card:active,
.color-swatch:active,
.wall-option-btn:active,
.btn-send-wall:active,
.btn-save-draft:active,
.header-avatar-btn:active,
.header-back-link:active {
    transform: scale(0.97) !important;
    opacity: 0.85;
    transition: transform 0.1s ease, opacity 0.1s ease;
}