* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #c41e3a 0%, #165b33 50%, #0d3d20 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

/* Schneefall-Container für JavaScript-Schneeflocken */
#snowfall-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Einzelne Schneeflocke */
.snowflake {
    position: absolute;
    top: -10px;
    color: white;
    font-size: 1em;
    user-select: none;
    pointer-events: none;
    animation: snowfall-fall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    --drift: 0px;
}

@keyframes snowfall-fall {
    0% {
        transform: translateY(-10px) translateX(0);
    }
    100% {
        transform: translateY(100vh) translateX(var(--drift));
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border-top: 5px solid #c41e3a;
    border-bottom: 5px solid #165b33;
    position: relative;
}

/* Weihnachtliche Dekoration im Header */
.header::after {
    content: '🎄';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em;
    opacity: 0.3;
    animation: headerGlow 3s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translateY(-50%) scale(1.1);
    }
}

.header h1 {
    color: #c41e3a;
    font-size: 2em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border-top: 4px solid #c41e3a;
    position: relative;
}

/* Weihnachtliche Girlande auf Cards */
.card::before {
    content: '🎄 ⭐ 🎅 ❄️ 🎁';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0 15px;
    font-size: 14px;
    opacity: 0.8;
}

.card h2 {
    color: #165b33;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

/* Formulare */
input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
    outline: none;
    border-color: #165b33;
    box-shadow: 0 0 0 3px rgba(22, 91, 51, 0.1);
}

.link-input {
    font-size: 12px;
    margin-bottom: 0;
    background: #f8f9fa;
    cursor: pointer;
}

.link-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 10px 0;
}

.link-container input {
    flex: 1;
    margin-bottom: 0;
}

.copy-btn {
    padding: 12px 20px;
    background: #165b33;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(22, 91, 51, 0.2);
    min-height: 44px;
}

.copy-btn:hover {
    background: #0d3d20;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(22, 91, 51, 0.3);
}

.copy-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(22, 91, 51, 0.2);
}

.group-select {
    display: inline-block;
    padding: 4px 8px;
    border: 2px solid #165b33;
    border-radius: 6px;
    background: white;
    color: #165b33;
    font-weight: bold;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s;
}

.group-select:hover {
    background: #165b33;
    color: white;
}

.group-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 91, 51, 0.1);
}

button,
.btn {
    padding: 12px 24px;
    background: #c41e3a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

button:hover,
.btn:hover {
    background: #a01729;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(196, 30, 58, 0.4);
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
}

.btn-success:hover {
    background: #218838;
}

.btn-warning {
    background: #ffc107;
    color: #333;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-small {
    padding: 6px 12px;
    font-size: 14px;
}

/* Tabellen */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Minimale Breite für bessere Darstellung */
}

thead {
    background: #f8f9fa;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    word-wrap: break-word;
}

th {
    font-weight: 600;
    color: #165b33;
    white-space: nowrap;
}

tr:hover {
    background: #f8f9fa;
}

/* Highlight für Teilnehmer-Zeilen */
.participant-row {
    transition: all 0.2s ease;
}

.participant-row:hover {
    background: #f0f7f4 !important;
}

/* Desktop: Normale Zeilen, nicht klickbar */
@media (min-width: 481px) {
    .participant-row-clickable {
        cursor: default;
    }
    
    .participant-row:hover {
        transform: scale(1.01);
        box-shadow: 0 2px 8px rgba(22, 91, 51, 0.1);
    }
}

/* Responsive Tabellen für Mobilgeräte */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    table {
        min-width: 100%;
        font-size: 15px;
    }
    
    th,
    td {
        padding: 8px 6px;
        font-size: 15px;
    }
    
    /* Verstecke E-Mail-Spalte auf sehr kleinen Bildschirmen */
    .hide-mobile {
        display: none;
    }
    
    /* Kompaktere Links auf Mobile */
    .link-container {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .link-input {
        font-size: 14px !important;
        padding: 10px !important;
    }
    
    /* Größere Buttons auf Mobile für Registrierungslink */
    .copy-btn,
    .share-btn {
        width: 100%;
        padding: 14px 20px !important;
        font-size: 16px !important;
        min-height: 50px !important;
        margin-bottom: 8px;
    }
    
    /* Größere Buttons auf Mobile für bessere Touch-Bedienbarkeit */
    .btn-small {
        padding: 12px 16px;
        font-size: 14px;
        display: block;
        width: 100%;
        margin-bottom: 8px;
        min-height: 44px;
    }
}

/* Extra klein für sehr schmale Bildschirme (Portrait Mode) */
@media (max-width: 480px) {
    body {
        font-size: 16px;
    }
    
    .card {
        padding: 15px;
    }
    
    .card h2 {
        font-size: 1.4em;
    }
    
    .card p, .card label, .card input, .card select {
        font-size: 15px;
    }
    
    table {
        font-size: 15px;
        min-width: auto;
    }
    
    th,
    td {
        padding: 8px 4px;
        font-size: 15px;
    }
    
    /* Header noch kompakter */
    .header {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .header h1 {
        font-size: 1.5em;
    }
    
    /* Verwende Card-Layout statt Tabelle auf sehr kleinen Bildschirmen */
    .table-wrapper.mobile-cards table,
    .table-wrapper.mobile-cards thead,
    .table-wrapper.mobile-cards tbody,
    .table-wrapper.mobile-cards tr {
        display: block;
        width: 100%;
    }
    
    .table-wrapper.mobile-cards thead {
        display: none;
    }
    
    /* Modal-Variante: Kompakte Card-Liste */
    .table-wrapper.mobile-cards tr {
        margin-bottom: 12px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 0;
        background: white;
        overflow: hidden;
        transition: all 0.2s ease;
        cursor: pointer;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    }
    
    .table-wrapper.mobile-cards tr:active {
        background: #e8f5e9;
        transform: scale(0.98);
    }
    
    /* Name-Zelle: Kompakte Anzeige mit E-Mail darunter */
    .table-wrapper.mobile-cards td[data-label="Name"] {
        display: block;
        padding: 15px;
        font-size: 16px;
        font-weight: 600;
        color: #165b33;
        border: none;
    }
    
    .table-wrapper.mobile-cards td[data-label="Name"]:before {
        display: none;
    }
    
    /* Verstecke alle anderen Spalten auf Mobile */
    .table-wrapper.mobile-cards td:not([data-label="Name"]) {
        display: none !important;
    }
    
    /* Pfeil-Icon rechts */
    .table-wrapper.mobile-cards tr::after {
        content: '›';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 24px;
        color: #999;
        font-weight: 300;
    }
    
    .table-wrapper.mobile-cards tr {
        position: relative;
    }
    
    .table-wrapper.mobile-cards td:before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        margin-bottom: 8px;
        color: #165b33;
        font-size: 16px;
    }
    
    .table-wrapper.mobile-cards .link-container {
        margin-top: 10px;
    }
    
    /* Aktions-Buttons: Alle untereinander, gleiche Breite */
    .table-wrapper.mobile-cards td[data-label="Aktion"] {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding-top: 12px;
    }
    
    .table-wrapper.mobile-cards td[data-label="Aktion"] button,
    .table-wrapper.mobile-cards td[data-label="Aktion"] .btn,
    .table-wrapper.mobile-cards td[data-label="Aktion"] a,
    .table-wrapper.mobile-cards td[data-label="Aktion"] form {
        width: 100%;
        margin: 0;
    }
    
    /* Noch kompaktere Darstellung für Buttons und Inputs */
    .table-wrapper.mobile-cards .link-input {
        font-size: 11px !important;
        padding: 6px !important;
        word-break: break-all;
    }
    
    .table-wrapper.mobile-cards .copy-btn,
    .table-wrapper.mobile-cards .share-btn {
        padding: 12px 16px !important;
        font-size: 14px !important;
        min-height: 44px;
        width: 100%;
        display: block;
    }
    
    .table-wrapper.mobile-cards .btn-small {
        padding: 12px 16px !important;
        font-size: 14px !important;
        margin-bottom: 0 !important;
        min-height: 44px;
        width: 100% !important;
        display: block !important;
    }
}

/* Nachrichten */
.success,
.error,
.info {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Login-Box */
.login-box {
    max-width: 400px;
    margin: 100px auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-top: 5px solid #c41e3a;
    border-bottom: 5px solid #165b33;
}

.login-box h1 {
    text-align: center;
    color: #c41e3a;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Teilnehmer-Box */
.participant-box {
    max-width: 600px;
    margin: 100px auto;
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    border-top: 5px solid #c41e3a;
    border-bottom: 5px solid #165b33;
}

.participant-box h1 {
    color: #c41e3a;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.participant-box h2 {
    color: #333;
    margin-bottom: 20px;
}

.receiver-name {
    font-size: 2.5em;
    font-weight: bold;
    color: #c41e3a;
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, #fffaf0 0%, #f0f8ff 100%);
    border-radius: 15px;
    border: 3px dashed #165b33;
    box-shadow: 
        0 5px 20px rgba(196, 30, 58, 0.2),
        inset 0 0 20px rgba(255, 215, 0, 0.1);
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.email {
    color: #6c757d;
    margin: 20px 0;
}

.info-text {
    margin-top: 30px;
    font-size: 1.1em;
    color: #165b33;
    font-weight: 600;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 30px;
    background: linear-gradient(135deg, #c41e3a 0%, #165b33 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: white;
}

.close {
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.close:hover,
.close:focus {
    transform: scale(1.2);
}

.modal-content form {
    padding: 30px;
}

.modal-content label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.modal-content label:first-of-type {
    margin-top: 0;
}

.checkbox-group {
    max-height: 200px;
    overflow-y: auto;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
}

.checkbox-label {
    display: block;
    padding: 8px;
    margin: 5px 0;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.checkbox-label:hover {
    background: #e8f5e9;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.modal-actions button {
    flex: 1;
}

.btn-primary {
    background: #165b33;
}

.btn-primary:hover {
    background: #0d3d20;
    box-shadow: 0 5px 20px rgba(22, 91, 51, 0.4);
}

/* Slot-Machine Animation - Weihnachtlich */
.slot-container {
    max-width: 450px;
    margin: 40px auto;
    display: none;
    animation: slideInSnow 0.8s ease-out;
}

@keyframes slideInSnow {
    from {
        opacity: 0;
        transform: translateY(-30px) rotate(-2deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

.slot-container.active {
    display: block;
}

.slot-machine {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, #c41e3a 0%, #165b33 50%, #c41e3a 100%);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 
        0 15px 50px rgba(196, 30, 58, 0.4),
        0 5px 20px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: christmasGlow 2s ease-in-out infinite;
    border: 3px solid #ffd700;
}

@keyframes christmasGlow {
    0%, 100% {
        box-shadow: 
            0 15px 50px rgba(196, 30, 58, 0.5),
            0 5px 20px rgba(22, 91, 51, 0.3),
            inset 0 2px 0 rgba(255, 255, 255, 0.3),
            inset 0 -2px 10px rgba(0, 0, 0, 0.2);
        border-color: #ffd700;
    }
    50% {
        box-shadow: 
            0 15px 60px rgba(22, 91, 51, 0.6),
            0 8px 30px rgba(196, 30, 58, 0.5),
            inset 0 2px 0 rgba(255, 255, 255, 0.4),
            inset 0 -2px 10px rgba(0, 0, 0, 0.3);
        border-color: #ffffff;
    }
}

/* Weihnachts-Girlande oben */
.slot-machine::before {
    content: '🎄 ⭐ 🎅 ❄️ 🎁 ⭐ 🎄';
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 16px;
    animation: twinkle 3s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.05);
        filter: brightness(1.3);
    }
}

/* Fallende Schneeflocken */
.slot-machine::after {
    content: '❄️';
    position: absolute;
    top: -20px;
    left: 10%;
    font-size: 20px;
    animation: snowfall 4s linear infinite;
    opacity: 0.8;
}

@keyframes snowfall {
    0% {
        top: -20px;
        transform: translateX(0) rotate(0deg);
    }
    100% {
        top: 220px;
        transform: translateX(30px) rotate(360deg);
    }
}

.slot-window {
    position: relative;
    height: 170px;
    background: linear-gradient(180deg, 
        #fffaf0 0%, 
        #ffffff 30%, 
        #f0f8ff 50%, 
        #ffffff 70%, 
        #fffaf0 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 6px solid rgba(255, 215, 0, 0.5);
    box-shadow: 
        inset 0 2px 10px rgba(196, 30, 58, 0.1),
        inset 0 -2px 10px rgba(22, 91, 51, 0.1),
        0 0 15px rgba(255, 215, 0, 0.3);
}

.slot-highlight {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 85px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, 
        rgba(196, 30, 58, 0.08) 0%,
        rgba(255, 215, 0, 0.2) 25%,
        rgba(22, 91, 51, 0.15) 50%,
        rgba(255, 215, 0, 0.2) 75%,
        rgba(196, 30, 58, 0.08) 100%);
    border-top: 4px solid #c41e3a;
    border-bottom: 4px solid #165b33;
    z-index: 5;
    pointer-events: none;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
    animation: christmasHighlight 2.5s ease-in-out infinite;
}

@keyframes christmasHighlight {
    0%, 100% {
        border-top-color: #c41e3a;
        border-bottom-color: #165b33;
        box-shadow: 
            0 0 20px rgba(255, 215, 0, 0.4),
            inset 0 0 20px rgba(255, 255, 255, 0.3);
    }
    50% {
        border-top-color: #165b33;
        border-bottom-color: #c41e3a;
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.6),
            inset 0 0 30px rgba(255, 255, 255, 0.4);
    }
}

.slot-reel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transition: none;
    filter: blur(0px);
}

.slot-reel.spinning {
    transition: top 5.5s cubic-bezier(0.17, 0.67, 0.12, 1.0);
    filter: blur(2px);
    animation: reelShake 0.1s infinite;
}

@keyframes reelShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-1px); }
    75% { transform: translateX(1px); }
}

.slot-item {
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: bold;
    color: #165b33;
    border-bottom: 2px solid rgba(196, 30, 58, 0.1);
    text-shadow: 0 1px 3px rgba(255, 215, 0, 0.3);
    transition: all 0.2s;
}

.slot-item:nth-child(even) {
    background: rgba(196, 30, 58, 0.03);
}

.slot-item:nth-child(odd) {
    background: rgba(22, 91, 51, 0.03);
}

.slot-item:last-child {
    border-bottom: none;
}

.draw-button {
    display: block;
    margin: 30px auto;
    padding: 22px 60px;
    font-size: 22px;
    font-weight: bold;
    background: linear-gradient(135deg, #c41e3a 0%, #165b33 50%, #c41e3a 100%);
    background-size: 200% 200%;
    border: 3px solid #ffd700;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 6px 25px rgba(196, 30, 58, 0.5),
        0 3px 10px rgba(22, 91, 51, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: christmasButtonPulse 3s ease-in-out infinite;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.draw-button::before {
    content: '🎁';
    position: absolute;
    left: 20px;
    font-size: 26px;
    animation: giftBounce 2s ease-in-out infinite;
}

@keyframes giftBounce {
    0%, 100% {
        transform: rotate(-5deg) scale(1);
    }
    50% {
        transform: rotate(5deg) scale(1.15);
    }
}

@keyframes christmasButtonPulse {
    0%, 100% {
        background-position: 0% 50%;
        border-color: #ffd700;
        box-shadow: 
            0 6px 25px rgba(196, 30, 58, 0.5),
            0 3px 10px rgba(22, 91, 51, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        background-position: 100% 50%;
        border-color: #ffffff;
        box-shadow: 
            0 10px 40px rgba(196, 30, 58, 0.7),
            0 5px 20px rgba(22, 91, 51, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

.draw-button:hover {
    transform: scale(1.08) !important;
    border-color: #ffffff;
    box-shadow: 
        0 12px 50px rgba(196, 30, 58, 0.8),
        0 6px 25px rgba(22, 91, 51, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.draw-button:active {
    transform: scale(0.98) !important;
}

.draw-button:disabled {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border-color: #adb5bd;
    cursor: not-allowed;
    animation: none;
    transform: scale(1) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    opacity: 0.6;
}

.draw-button:disabled::before {
    animation: none;
    opacity: 0.5;
}

.slot-result {
    text-align: center;
    margin-top: 30px;
    display: none;
}

.slot-result.show {
    display: block;
    animation: resultFadeIn 0.5s;
}

@keyframes resultFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Konfetti-Effekt */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #f0f;
    top: -10px;
    opacity: 0;
}

.confetti.active {
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        top: -10px;
        opacity: 1;
        transform: translateX(0) rotateZ(0deg);
    }
    100% {
        top: 100vh;
        opacity: 0.3;
        transform: translateX(var(--drift)) rotateZ(720deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 14px;
    }
    
    .link-input {
        font-size: 10px;
    }
    
    .participant-box,
    .login-box {
        margin: 20px auto;
        padding: 30px 20px;
    }
    
    .receiver-name {
        font-size: 1.8em;
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-content form {
        padding: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn-small {
        font-size: 14px;
        padding: 12px 16px;
        min-height: 44px;
    }
    
    .slot-container {
        max-width: 90%;
        margin: 30px auto;
    }
    
    .slot-machine {
        height: 200px;
        padding: 20px;
    }
    
    .slot-machine::before {
        left: 15px;
        right: 15px;
    }
    
    .slot-window {
        height: 160px;
    }
    
    .slot-highlight {
        height: 80px;
    }
    
    .slot-item {
        height: 80px;
        font-size: 22px;
    }
    
    .draw-button {
        padding: 18px 40px;
        font-size: 18px;
    }
    
    .draw-button::before {
        left: 15px;
        font-size: 20px;
    }
    
    .slot-highlight {
        height: 70px;
    }
    
    .slot-item {
        height: 70px;
        font-size: 20px;
    }
    
    .draw-button {
        padding: 15px 30px;
        font-size: 16px;
    }
}

/* Info-Button und Info-Box */
.btn-info-toggle {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
    font-weight: 500;
}

.btn-info-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
    background: linear-gradient(135deg, #1976D2, #1565C0);
}

.btn-info-toggle:active {
    transform: translateY(0);
}

.info-box {
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    border-left: 4px solid #2196F3;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.1);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.info-box h3 {
    color: #1565C0;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.info-box ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
    color: #333;
}

.info-box ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2196F3;
    font-weight: bold;
    font-size: 1.1em;
}

.info-box p {
    margin: 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    color: #333;
    line-height: 1.6;
}

/* Mobile Anpassungen für Info-Box */
@media (max-width: 768px) {
    .btn-info-toggle {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .info-box {
        padding: 15px;
    }
    
    .info-box h3 {
        font-size: 1.1em;
    }
    
    .info-box ul li {
        font-size: 14px;
    }
}

/* Share-Button */
.share-btn {
    padding: 12px 20px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
    min-height: 44px;
}

.share-btn:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.share-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

/* Mobile Anpassung für Share-Button - größer für bessere Bedienbarkeit */
@media (max-width: 480px) {
    .table-wrapper.mobile-cards .share-btn {
        padding: 12px 16px !important;
        font-size: 14px !important;
        min-height: 44px;
    }
    
    /* Zeige mobile-only Elemente nur auf Mobile */
    .mobile-only {
        display: block !important;
    }
}

/* Verstecke mobile-only auf Desktop */
.mobile-only {
    display: none;
}

/* ========================================
   Participant Detail Modal
   ======================================== */

.participant-detail-modal .modal-content {
    max-width: 500px;
}

.participant-detail-content {
    padding: 0;
}

.detail-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-section label {
    font-weight: 600;
    color: #165b33;
    font-size: 16px;
    display: block;
    margin-bottom: 10px;
}

.detail-section p {
    margin: 0;
    font-size: 15px;
    color: #333;
}

.modal-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0;
}

/* Einheitliche Modal-Button-Styles - ALLE IDENTISCH */
.btn-modal-action {
    width: 100%;
    height: 56px;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.3px;
}

.btn-modal-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-modal-action:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Link teilen Button */
.btn-share {
    background: #6366f1;
    color: white;
}

.btn-share:hover {
    background: #4f46e5;
}

/* E-Mail Button */
.btn-email {
    background: #10b981;
    color: white;
}

.btn-email:hover {
    background: #059669;
}

/* Bearbeiten Button */
.btn-edit {
    background: #165b33;
    color: white;
}

.btn-edit:hover {
    background: #0d3d20;
}

/* Löschen Button */
.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
}

/* Mobile Optimierung für Participant Modal */
@media (max-width: 480px) {
    .participant-detail-modal .modal-content {
        max-width: 100%;
        margin: 20px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
    
    .detail-section {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .detail-section .link-container {
        margin-bottom: 15px;
    }
    
    .detail-section .link-input {
        font-size: 14px;
        padding: 12px;
        width: 100%;
        border-radius: 8px;
    }
    
    /* Buttons bleiben auf Mobile identisch */
    .btn-modal-action {
        height: 56px;
        padding: 0 20px;
        font-size: 16px;
    }
}

/* ========================================
   Suchfunktion für Teilnehmer
   ======================================== */

.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 14px 45px 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #165b33;
    box-shadow: 0 0 0 3px rgba(22, 91, 51, 0.1);
}

.search-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-clear-btn:hover {
    background: #c82333;
    transform: translateY(-50%) scale(1.1);
}

.search-results {
    margin-top: 10px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

/* ========================================
   Sortierbare Spalten
   ======================================== */

.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: all 0.2s;
}

.sortable:hover {
    background: #f0f0f0;
    color: #c41e3a;
}

.sort-indicator {
    display: inline-block;
    margin-left: 5px;
    opacity: 0.3;
    font-size: 0.8em;
    transition: all 0.2s;
}

.sortable:hover .sort-indicator {
    opacity: 0.6;
}

/* ========================================
   Mobile Anpassungen für Suche
   ======================================== */

@media (max-width: 768px) {
    .search-input {
        font-size: 16px;
        padding: 12px 45px 12px 14px;
    }
    
    .search-results {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .search-container {
        margin-bottom: 15px;
    }
    
    .search-input {
        font-size: 16px; /* Verhindert Auto-Zoom auf iOS */
        padding: 12px 45px 12px 14px;
    }
    
    .search-results {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    /* Sortier-Indikator auf Mobile ausblenden */
    .sort-indicator {
        display: none;
    }
    
    /* Sortierbare Spalten auf Mobile anzeigen */
    .table-wrapper.mobile-cards th.sortable {
        display: table-cell;
    }
}

