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

```
    :root {
        --bg-primary: #0a0a0f;
        --bg-secondary: #1a1a24;
        --glass-bg: rgba(255, 255, 255, 0.05);
        --glass-border: rgba(255, 255, 255, 0.1);
        --accent: #007aff;
        --accent-hover: #0051d5;
        --text-primary: #ffffff;
        --text-secondary: rgba(255, 255, 255, 0.7);
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    }

    body {
        font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
        background: linear-gradient(135deg, #0a0a0f 0%, #1a1a24 50%, #0f0a1a 100%);
        background-attachment: fixed;
        color: var(--text-primary);
        overflow: hidden;
        height: 100vh;
    }

    body::before {
        content: '';
        position: fixed;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle at 20% 50%, rgba(0, 122, 255, 0.1) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(88, 86, 214, 0.1) 0%, transparent 50%);
        animation: backgroundMove 20s ease infinite;
        pointer-events: none;
    }

    @keyframes backgroundMove {
        0%, 100% { transform: translate(0, 0); }
        50% { transform: translate(-10%, -10%); }
    }

    .container {
        display: flex;
        height: 100vh;
        position: relative;
        z-index: 1;
    }

    /* Header */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        min-height: 64px;
        height: auto;
        background: rgba(26, 26, 36, 0.7);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-bottom: 1px solid var(--glass-border);
        z-index: 100;
        display: flex;
        align-items: center;
        padding: 12px 24px;
        gap: 16px;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 20px;
        font-weight: 600;
        letter-spacing: -0.5px;
        background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.6) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .toolbar {
        display: flex;
        gap: 8px;
        flex: 1;
        flex-wrap: wrap;
    }

    .btn {
        padding: 8px 16px;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: 8px;
        color: #ffffff;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        position: relative;
        overflow: hidden;
        white-space: nowrap;
    }

    .btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        transform: translate(-50%, -50%);
        transition: width 0.4s, height 0.4s;
    }

    .btn:hover::before {
        width: 200px;
        height: 200px;
    }

    .btn:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-1px);
    }

    .btn:active, .btn.active {
        transform: translateY(0);
        background: rgba(0, 122, 255, 0.3);
        border-color: var(--accent);
    }

    .btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

    .btn-primary {
        background: linear-gradient(135deg, var(--accent) 0%, #0051d5 100%);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
    }

    .btn-primary:hover {
        background: linear-gradient(135deg, #0051d5 0%, var(--accent) 100%);
        box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
    }

    /* Sidebar */
    .sidebar {
        position: fixed;
        left: 0;
        top: 64px;
        bottom: 0;
        width: 220px;
        background: rgba(26, 26, 36, 0.6);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-right: 1px solid var(--glass-border);
        padding: 16px;
        overflow-y: auto;
        z-index: 50;
    }

    .sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 3px;
    }

    .sidebar-title {
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 12px;
    }

    .page-thumbnails {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .thumbnail {
        position: relative;
        background: rgba(255, 255, 255, 0.05);
        border: 2px solid transparent;
        border-radius: 8px;
        padding: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
        user-select: none;
    }

    .thumbnail:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.1);
        transform: translateX(4px);
    }

    .thumbnail.active {
        border-color: var(--accent);
        background: rgba(0, 122, 255, 0.1);
    }

    .thumbnail.dragging {
        opacity: 0.5;
        transform: scale(0.95);
    }

    .thumbnail-canvas {
        width: 100%;
        height: auto;
        border-radius: 4px;
        box-shadow: var(--shadow-sm);
    }

    .thumbnail-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 8px;
        font-size: 12px;
        font-weight: 600;
        color: #ffffff;
    }

    .thumbnail-actions {
        display: flex;
        gap: 4px;
    }

    .icon-btn {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        border-radius: 4px;
        color: #ffffff;
        cursor: pointer;
        font-size: 12px;
        transition: all 0.2s;
    }

    .icon-btn:hover {
        background: var(--accent);
        transform: scale(1.1);
    }

    /* Main Content */
    .main-content {
        margin-left: 220px;
        margin-top: 64px;
        flex: 1;
        padding: 32px;
        overflow: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .main-content::-webkit-scrollbar {
        width: 8px;
    }

    .main-content::-webkit-scrollbar-track {
        background: transparent;
    }

    .main-content::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 4px;
    }

    .page-container {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        padding: 24px;
        box-shadow: var(--shadow-lg);
        animation: fadeInUp 0.5s ease;
        max-width: 900px;
        width: 100%;
        position: relative;
    }

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

    .page-canvas-wrapper {
        position: relative;
        display: inline-block;
        transform-origin: top center;
        transition: transform 0.2s ease;
    }

    .page-canvas {
        border-radius: 8px;
        box-shadow: var(--shadow-md);
        background: white;
        display: block;
    }

    /* Annotation Overlays */
    .annotation-layer {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }

    .annotation {
        position: absolute;
        cursor: move;
        pointer-events: all;
        border: 2px dashed transparent;
        transition: border-color 0.2s;
        transform-origin: top left;
    }

    .annotation.selected {
        border-color: var(--accent);
    }

    .annotation:hover {
        border-color: rgba(0, 122, 255, 0.5);
    }

    .annotation-handles {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }

    .annotation.selected .annotation-handles {
        display: block;
    }

    /* RESIZE HANDLE - UNTEN RECHTS */
    .resize-handle {
        position: absolute;
        bottom: -8px;
        right: -8px;
        width: 16px;
        height: 16px;
        background: #007aff;
        border: 3px solid white;
        border-radius: 50%;
        cursor: nwse-resize;
        pointer-events: all;
        z-index: 100;
    }

    .resize-handle:hover {
        background: #0051d5;
        transform: scale(1.2);
    }

    /* DELETE BUTTON - OBEN RECHTS */
    .delete-btn {
        position: absolute;
        top: -32px;
        right: -8px;
        width: 28px;
        height: 28px;
        background: #ff3b30;
        color: white;
        border: 3px solid white;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: bold;
        pointer-events: all;
        z-index: 100;
        line-height: 1;
    }

    .delete-btn:hover {
        background: #cc0000;
        transform: scale(1.1);
    }

    /* Smartphone-Warnung */
    .warning-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .warning-box {
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        padding: 32px;
        max-width: 500px;
        width: 100%;
        box-shadow: var(--shadow-lg);
        text-align: center;
    }

    .warning-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto 24px;
        animation: blink 1.5s ease-in-out infinite;
    }

    @keyframes blink {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.3; }
    }

    .warning-title {
        font-size: 24px;
        font-weight: 600;
        color: #ffffff;
        margin-bottom: 16px;
    }

    .warning-text {
        font-size: 16px;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 24px;
        line-height: 1.5;
    }

    .warning-btn {
        padding: 12px 32px;
        background: var(--accent);
        border: none;
        border-radius: 8px;
        color: #ffffff;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .warning-btn:hover {
        background: #005bb5;
        transform: scale(1.05);
    }

    .warning-overlay.hidden {
        display: none;
    }

    /* Responsive Design für kleinere Bildschirme */
    @media (max-width: 1024px) {
        .sidebar {
            width: 180px;
        }

        .main-content {
            margin-left: 180px;
        }

        .toolbar {
            gap: 6px;
        }

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

        .logo {
            font-size: 18px;
        }
    }

    @media (max-width: 768px) {
        .header {
            height: auto;
            min-height: 64px;
            padding: 12px;
            flex-wrap: wrap;
        }

        .toolbar {
            width: 100%;
            gap: 6px;
            justify-content: flex-start;
        }

        .btn {
            padding: 8px 12px;
            font-size: 12px;
            flex-shrink: 0;
        }

        .sidebar {
            width: 150px;
        }

        .main-content {
            margin-left: 150px;
            padding: 16px;
        }

        .sidebar-title {
            font-size: 11px;
        }
    }

    @media (max-width: 600px) {
        .sidebar {
            display: none;
        }

        .main-content {
            margin-left: 0;
            margin-top: auto;
            padding: 16px;
        }

        .header {
            position: relative;
        }
    }

    .blackout {
        background: black;
    }

    .whiteout {
        background: white;
    }

    .highlight {
        background: rgba(255, 255, 0, 0.4);
    }

    .frame {
        background: transparent;
        border: 3px solid black;
    }

    .text-annotation {
        background: transparent;
        color: black;
        font-size: 16px;
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    .signature {
        background: transparent;
    }

    .empty-state {
        text-align: center;
        padding: 80px 40px;
    }

    .empty-state-icon {
        font-size: 64px;
        margin-bottom: 16px;
        opacity: 0.3;
    }

    .empty-state-title {
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 8px;
        color: #ffffff;
    }

    .empty-state-text {
        color: #ffffff;
        margin-bottom: 24px;
    }

    input[type="file"] {
        display: none;
    }

    /* Loading Overlay */
    .loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 15, 0.8);
        backdrop-filter: blur(10px);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }

    .loading-overlay.active {
        display: flex;
    }

    .spinner {
        width: 48px;
        height: 48px;
        border: 4px solid rgba(255, 255, 255, 0.1);
        border-top-color: var(--accent);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

    @keyframes spin {
        to { transform: rotate(360deg); }
    }

    /* Toast */
    .toast {
        position: fixed;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%) translateY(100px);
        background: rgba(26, 26, 36, 0.95);
        backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        padding: 16px 24px;
        box-shadow: var(--shadow-lg);
        z-index: 1001;
        opacity: 0;
        transition: all 0.3s ease;
        color: #ffffff;
        font-weight: 500;
        font-size: 14px;
    }

    .toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    /* Modal für Unterschrift */
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 15, 0.9);
        backdrop-filter: blur(10px);
        z-index: 2000;
        align-items: center;
        justify-content: center;
    }

    .modal.active {
        display: flex;
    }

    .modal-content {
        background: rgba(26, 26, 36, 0.95);
        backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        padding: 24px;
        max-width: 600px;
        width: 90%;
    }

    .modal-header {
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 16px;
        color: #ffffff;
    }

    .signature-canvas {
        width: 100%;
        height: 200px;
        background: white;
        border-radius: 8px;
        cursor: crosshair;
        touch-action: none;
    }

    .modal-buttons {
        display: flex;
        gap: 12px;
        margin-top: 16px;
    }

    .modal-buttons .btn {
        color: #ffffff;
    }

    /* Text Input Modal */
    .text-input {
        width: 100%;
        min-height: 100px;
        padding: 12px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid var(--glass-border);
        border-radius: 8px;
        color: #ffffff;
        font-size: 16px;
        font-family: inherit;
        resize: vertical;
        margin-bottom: 16px;
    }

    .text-input:focus {
        outline: none;
        border-color: var(--accent);
    }

    .text-format-options {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }

    .format-row {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .format-row label {
        min-width: 80px;
        font-size: 14px;
    }

    .format-select {
        flex: 1;
        padding: 8px 12px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid var(--glass-border);
        border-radius: 6px;
        color: #ffffff;
        font-size: 14px;
        cursor: pointer;
    }

    .format-select:focus {
        outline: none;
        border-color: var(--accent);
    }

    .format-select option {
        background: #1a1a24;
        color: #ffffff;
    }

    .checkbox-label {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        font-size: 14px;
    }

    .checkbox-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
        accent-color: var(--accent);
    }