:root {
    --bg-color: #000000;
    --text-color: #ffffff;

    --butto-background-color: rgb(0, 113, 227);
    --button-background-color-hover: rgb(0, 119, 237);
    --button-text-color: #fff;

    --button-outline-color: rgb(0, 110, 219);
    --button-outline-text-color: rgb(0, 110, 219);

    --capsule-bg: #1a1a1a;
    --capsule-shadow: rgba(0, 0, 0, 0.2);
    --input-color: #ffffff;
    --placeholder-color: rgba(255, 255, 255, 0.7);
    --expansion-bg: rgba(45, 45, 50, 0.75);

    --gradient-blue: #007AFF;
    --gradient-purple: #AF52DE;
    --gradient-pink: #FF2D55;
    --gradient-orange: #FF9500;
    
    /* Button Custom Properties - Dark Mode */
    --aap-accent-color: #0071e3;
    --aap-active-fill-color: #f5f5f7;
    --aap-background-color: rgb(66 66 69/70%);
    --aap-background-transition-duration: 250ms;
    --aap-blur: 7px;
    --aap-button-active: rgb(57 57 60/74.2%);
    --aap-button-hover: rgb(73 73 76/72.6%);
}

/* Light Theme */
:root[data-theme="light"] {
    --bg-color: #ffffff;
    --text-color: #1d1d1f;

    --butto-background-color: rgb(0, 113, 227);
    --button-background-color-hover: rgb(0, 119, 237);
    --button-text-color: #fff;

    --button-outline-color: rgb(0, 110, 219);
    --button-outline-text-color: rgb(0, 110, 219);

    --capsule-bg: rgba(255, 255, 255, 0.95);
    --capsule-shadow: rgba(0, 0, 0, 0.1);
    --input-color: #333;
    --placeholder-color: rgba(0, 0, 0, 0.6);
    --expansion-bg: rgba(245, 245, 250, 0.75);
    
    /* Button Custom Properties - Light Mode */
    --aap-background-color: rgba(232,232,237,0.7);
    --aap-blur: 7px;
    --aap-bubble-background-color: #1d1d1f;
    --aap-button-active: rgba(193,193,198,0.654);
    --aap-button-hover: rgba(223,223,227,0.698);
}

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

body {
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: auto;
    padding-bottom: 100px; /* Platz für Footer + zusätzlicher Abstand */
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont,
        "Helvetica Neue", Arial, sans-serif;
}

/* Hero Section Styles */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 80vh;
    padding: 0 20px;
    transition: opacity 0.5s ease-in-out;
}

.hero-section h1,
.hero-section h2,
.release-date,
.button-group {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-section h1[style*="display: none"],
.hero-section h2[style*="display: none"],
.release-date[style*="display: none"],
.button-group[style*="display: none"] {
    opacity: 0;
    transform: translateY(-20px);
}

.hero-section h1 {
    font-size: 56px;
    font-weight: 600;
    margin-bottom: 20px;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.gradient-text {
    background-image: linear-gradient(108deg, 
        rgb(8, 148, 255) 0%,
        rgb(201, 89, 221) 34%,
        rgb(255, 46, 84) 68%,
        rgb(255, 144, 4) 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-section h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-color);
}

.release-date {
    font-size: 17px;
    font-weight: 400;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 40px;
}

/* Button-Styles */
.try-button {
    position: relative;
    transform: none;
    bottom: auto;
    left: auto;
}

.try-button.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Button-Gruppe und gemeinsame Button-Styles */
.button-group {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    justify-content: center;
}

.secondary-button {
    width: 160px;
    height: 44px;
    padding: 0 20px;
    font-size: 17px;
    border-radius: 980px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    white-space: nowrap;
}

.secondary-button {
    background: var(--butto-background-color);
    color: var(--button-text-color);
    border: none;
}

.secondary-button:hover {
    background: var(--button-background-color-hover);
    border: none;
}

.upload-area {
    width: 100%;
    height: 200px;
    border: 2px dashed #ccc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area.dragover {
    border-color: #007bff;
    background-color: #e9ecef;
}

.upload-content {
    width: 100%;
    text-align: center;
    color: var(--text-color);
    font-size: 16px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.file-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    position: relative;
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.file-name {
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
    white-space: nowrap;
    font-size: 16px;
}

.file-size {
    font-size: 14px;
    color: var(--placeholder-color);
    margin: 0;
}

.checkmark-button {
    background-color: transparent;
    color: #007AFF;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.checkmark-button:hover {
    background-color: rgba(0, 122, 255, 0.1);
    color: #0056CC;
}

/* Border animation elements */
.border-left, .border-right {
    position: fixed;
    top: 100vh;
    width: 4px;
    height: 100vh;
    border-radius: 2px;
    z-index: 1000;
    transition: top 0.6s ease-in-out;
    
    --color-mode: 0;
    background: 
        linear-gradient(to top,
            rgba(8, 148, 255, var(--color-mode)) 0%,
            rgba(201, 89, 221, var(--color-mode)) 34%,
            rgba(255, 46, 84, var(--color-mode)) 68%,
            rgba(255, 144, 4, var(--color-mode)) 100%
        ),
        linear-gradient(to top,
            rgba(8, 148, 255, calc(1 - var(--color-mode))) 0%,
            rgba(8, 148, 255, calc(1 - var(--color-mode))) 100%
        );
    
    box-shadow: 
        0 0 20px rgba(8, 148, 255, 0.8),
        0 0 40px rgba(201, 89, 221, 0.6),
        0 0 80px rgba(255, 46, 84, 0.4),
        0 0 120px rgba(255, 144, 4, 0.3),
        0 0 160px rgba(8, 148, 255, 0.2);
    filter: drop-shadow(0 0 30px rgba(8, 148, 255, 0.6)) 
           drop-shadow(0 0 60px rgba(255, 46, 84, 0.4));
    
    animation: randomColorMode 3s ease-in-out infinite alternate;
}

.border-left {
    left: 0;
}

.border-right {
    right: 0;
}

.border-left.animate, .border-right.animate {
    top: 0;
}

/* Top horizontal borders that appear when vertical borders reach the top */
.border-top-left, .border-top-right {
    position: fixed;
    top: 0;
    height: 4px;
    border-radius: 2px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s ease-in-out;
    
    --color-mode: 0;
    background: 
        linear-gradient(108deg,
            rgba(8, 148, 255, var(--color-mode)) 0%,
            rgba(201, 89, 221, var(--color-mode)) 34%,
            rgba(255, 46, 84, var(--color-mode)) 68%,
            rgba(255, 144, 4, var(--color-mode)) 100%
        ),
        linear-gradient(to right,
            rgba(201, 89, 221, calc(1 - var(--color-mode))) 0%,
            rgba(201, 89, 221, calc(1 - var(--color-mode))) 100%
        );
    
    box-shadow: 
        0 0 20px rgba(8, 148, 255, 0.8),
        0 0 40px rgba(201, 89, 221, 0.6),
        0 0 80px rgba(255, 46, 84, 0.4),
        0 0 120px rgba(255, 144, 4, 0.3),
        0 0 160px rgba(8, 148, 255, 0.2);
    filter: drop-shadow(0 0 30px rgba(201, 89, 221, 0.6)) 
           drop-shadow(0 0 60px rgba(255, 46, 84, 0.4));
    
    animation: randomColorMode 2.5s ease-in-out infinite alternate;
}

.border-top-left {
    left: 0;
    width: 0;
}

.border-top-right {
    right: 0;
    width: 0;
}

.border-top-left.animate {
    width: 50vw;
    opacity: 1;
}

.border-top-right.animate {
    width: 50vw;
    opacity: 1;
}

/* Hide borders and main capsule when animation completes */
.border-left.hide, .border-right.hide, .border-top-left.hide, .border-top-right.hide {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.capsule-container.hide {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(20px);
    transition: all 0.5s ease;
    pointer-events: none;
}

/* Hide capsule immediately when animation starts */
.capsule-container.start-animation {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Ensure capsule-container is hidden when top capsule is active */
.top-capsule-container.active ~ .capsule-container {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Additional rule to ensure capsule-container is hidden when top is active */
body.top-active .capsule-container {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateX(-50%) translateY(100px) !important;
}

/* Top capsule with animated border */
.top-capsule-container {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 68px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s ease;
    z-index: 999;
}

.top-capsule-container.active {
    opacity: 1;
    pointer-events: all;
}

/* Expanded state for the top capsule */
.top-capsule-container.expanded {
    width: 800px;
    height: 50vh;
    top: 40px;
    transform: translateX(-50%);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* HLO effect overlay for expanded top capsule */
.top-capsule-container.expanded::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border-radius: 31px;
    pointer-events: none;
    z-index: 10;
    
    --shadow-intensity: 0;
    
    box-shadow: 
        inset 0 0 calc(8px * var(--shadow-intensity)) rgba(100, 150, 255, 0.3),
        inset 0 0 calc(15px * var(--shadow-intensity)) rgba(180, 120, 220, 0.2),
        inset 0 0 calc(25px * var(--shadow-intensity)) rgba(255, 100, 150, 0.15),
        inset 0 0 calc(35px * var(--shadow-intensity)) rgba(255, 180, 100, 0.1),
        0 0 calc(5px * var(--shadow-intensity)) rgba(100, 150, 255, 0.4),
        0 0 calc(10px * var(--shadow-intensity)) rgba(180, 120, 220, 0.3),
        0 0 calc(15px * var(--shadow-intensity)) rgba(255, 100, 150, 0.2),
        0 0 calc(20px * var(--shadow-intensity)) rgba(255, 180, 100, 0.15);
    
    animation: shadowFill 1s ease-out forwards,
               shadowFadeOut 0.5s ease-out 1s forwards;
}

@property --shadow-intensity {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
}

@keyframes shadowFill {
    0% {
        --shadow-intensity: 0;
    }
    100% {
        --shadow-intensity: 1;
    }
}

@keyframes shadowFadeOut {
    0% {
        --shadow-intensity: 1;
    }
    100% {
        --shadow-intensity: 0;
    }
}

/* Remove the other pseudo elements that are no longer needed */
.top-capsule-container.expanded::after {
    display: none;
}

.top-capsule.expanded::before {
    display: none;
}

.top-capsule.expanded::after {
    display: none;
}

@keyframes lineDownLeft {
    0% {
        height: 0;
    }
    100% {
        height: calc(100% - 6px);
    }
}

@keyframes lineDownRight {
    0% {
        height: 0;
    }
    100% {
        height: calc(100% - 6px);
    }
}

@keyframes fillCapsuleLeft {
    0% {
        box-shadow: 
            0 0 10px #08f,
            0 0 20px #08f,
            0 0 30px #f03;
    }
    100% {
        box-shadow: 
            -20px 0 40px rgba(0, 136, 255, 0.6),
            -10px 0 20px rgba(255, 51, 153, 0.4),
            0 0 10px #08f,
            0 0 20px #08f,
            0 0 30px #f03;
    }
}

@keyframes fillCapsuleRight {
    0% {
        box-shadow: 
            0 0 10px #08f,
            0 0 20px #08f,
            0 0 30px #f03;
    }
    100% {
        box-shadow: 
            20px 0 40px rgba(255, 34, 84, 0.6),
            10px 0 20px rgba(255, 145, 0, 0.4),
            0 0 10px #08f,
            0 0 20px #08f,
            0 0 30px #f03;
    }
}

@keyframes meetAndFill {
    0% {
        width: 0;
        height: 0;
        opacity: 0;
    }
    20% {
        width: 20px;
        height: 20px;
        opacity: 1;
    }
    100% {
        width: 120%;
        height: 120%;
        opacity: 0.8;
    }
}

@keyframes shadowFade {
    0% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
    }
}

@keyframes capsuleHloExpand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.9;
        filter: blur(5px);
    }
    100% {
        transform: translate(-50%, -50%) scale(100);
        opacity: 0;
        filter: blur(15px);
    }
}

.top-capsule {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    
    --border-angle: 0turn;
    --color-intensity: 1;
    --main-bg: conic-gradient(
        from var(--border-angle),
        var(--top-capsule-bg),
        var(--top-capsule-bg) 5%,
        var(--top-capsule-bg) 60%,
        var(--top-capsule-bg) 95%
    );
    
    border: solid 3px transparent;
    border-radius: 34px;
    
    background: 
        var(--main-bg) padding-box,
        conic-gradient(
            from var(--border-angle), 
            transparent 25%, 
            rgba(8, 148, 255, var(--color-intensity)), 
            rgba(201, 89, 221, calc(var(--color-intensity) * 0.8)) 40%,
            rgba(255, 46, 84, calc(var(--color-intensity) * 0.6)) 70%,
            rgba(255, 144, 4, calc(var(--color-intensity) * 0.4)) 90%,
            transparent 95%
        ) border-box, 
        var(--main-bg) border-box;
    
    background-position: center center;
    animation: bg-spin 3s linear infinite;
}

/* Only apply the new top-to-bottom flow animation to expanded capsule */
.top-capsule.expanded {
    animation: topToBottomFlow 3s ease-in-out infinite, randomHueShift 8s ease-in-out infinite;
    
    --flow-position: 0%;
    --random-hue: 200deg;
    --color-intensity: 0.6;
    
    background: 
        var(--top-capsule-bg) padding-box,
        linear-gradient(
            180deg,
            transparent 0%,
            transparent calc(var(--flow-position) - 10%),
            hsla(var(--random-hue), 70%, 60%, calc(var(--color-intensity) * 0.8)) calc(var(--flow-position) - 5%),
            hsla(calc(var(--random-hue) + 60deg), 80%, 65%, calc(var(--color-intensity) * 1.0)) var(--flow-position),
            hsla(calc(var(--random-hue) + 120deg), 75%, 70%, calc(var(--color-intensity) * 0.8)) calc(var(--flow-position) + 5%),
            transparent calc(var(--flow-position) + 10%),
            transparent 100%
        ) border-box,
        var(--top-capsule-bg) border-box;
    
    border: 3px solid rgba(255, 255, 255, 0.2);
    background-color: var(--top-capsule-bg) !important;

    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

@property --color-intensity {
    syntax: "<number>";
    inherits: true;
    initial-value: 1;
}

@keyframes colorPulse {
    0% { --color-intensity: 1; }
    25% { --color-intensity: 0.3; }
    50% { --color-intensity: 1; }
    75% { --color-intensity: 0.5; }
    100% { --color-intensity: 1; }
}

@keyframes bg-spin {
    to {
        --border-angle: 1turn;
    }
}

@keyframes borderColorCycle {
    0% {
        --gradient-border: conic-gradient(
            from var(--border-angle), 
            transparent 25%, 
            rgb(8, 148, 255), 
            rgb(8, 148, 255) 99%, 
            transparent
        );
    }
    25% {
        --gradient-border: conic-gradient(
            from var(--border-angle), 
            transparent 25%, 
            rgb(8, 148, 255), 
            rgb(201, 89, 221) 50%,
            rgb(255, 46, 84) 75%,
            rgb(255, 144, 4) 99%, 
            transparent
        );
    }
    50% {
        --gradient-border: conic-gradient(
            from var(--border-angle), 
            transparent 25%, 
            rgb(201, 89, 221), 
            rgb(201, 89, 221) 99%, 
            transparent
        );
    }
    75% {
        --gradient-border: conic-gradient(
            from var(--border-angle), 
            transparent 25%, 
            rgb(8, 148, 255), 
            rgb(201, 89, 221) 50%,
            rgb(255, 46, 84) 75%,
            rgb(255, 144, 4) 99%, 
            transparent
        );
    }
    100% {
        --gradient-border: conic-gradient(
            from var(--border-angle), 
            transparent 25%, 
            rgb(255, 46, 84), 
            rgb(255, 46, 84) 99%, 
            transparent
        );
    }
}

.processing-content {
    text-align: center;
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.5s ease;
}

.top-capsule.expanded .processing-content {
    font-size: 24px;
    padding: 40px;
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
}

.upload-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.upload-button:hover {
    background-color: #0056b3;
}

.upload-content p {
    margin: 5px 0;
    color: #666;
}

@keyframes randomColorMode {
    0% { --color-mode: 0; }
    25% { --color-mode: 1; }
    50% { --color-mode: 0; }
    75% { --color-mode: 1; }
    100% { --color-mode: 0; }
}

@keyframes topToBottomFlow {
    0% {
        --flow-position: -20%;
        --color-intensity: 0.3;
    }
    50% {
        --flow-position: 50%;
        --color-intensity: 0.8;
    }
    100% {
        --flow-position: 120%;
        --color-intensity: 0.3;
    }
}

@keyframes randomHueShift {
    0% { --random-hue: 200deg; }
    20% { --random-hue: 280deg; }
    40% { --random-hue: 320deg; }
    60% { --random-hue: 30deg; }
    80% { --random-hue: 150deg; }
    100% { --random-hue: 200deg; }
}

@property --border-angle {
    syntax: "<angle>";
    inherits: true;
    initial-value: 0turn;
}

@property --flow-position {
    syntax: "<percentage>";
    inherits: true;
    initial-value: 0%;
}

@property --random-hue {
    syntax: "<angle>";
    inherits: true;
    initial-value: 200deg;
}

/* Footer Styles - Liquid Glass Capsule Design */
.apple-footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 980px;
    height: 52px;
    padding: 0;
    
    /* True Liquid Glass Capsule */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 26px; /* Capsule shape - half of height */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.05);
    
    font-size: 11px;
    line-height: 1.33337;
    font-weight: 400;
    font-family: "SF Pro Text", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    z-index: 100;
}

:root[data-theme="dark"] .apple-footer {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.05), 0 4px 16px rgba(255, 255, 255, 0.03);
}

.footer-content {
    max-width: none;
    height: 52px;
    margin: 0;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
}

.footer-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.footer-link {
    color: #515154;
    text-decoration: none;
    font-size: 11px;
    font-weight: 400;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

:root[data-theme="dark"] .footer-link {
    color: #a1a1a6;
}

.footer-link:hover {
    color: #0066cc;
    text-decoration: none;
    background: rgba(0, 102, 204, 0.1);
}

:root[data-theme="dark"] .footer-link:hover {
    color: #2997ff;
    background: rgba(41, 151, 255, 0.1);
}

.footer-copyright {
    color: #86868b;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    margin-left: 16px;
}

/* Mobile Anpassungen */
@media screen and (max-width: 768px) {
    /* Hero Section Mobile */
    .hero-section {
        min-height: 70vh;
        padding: 0 15px;
    }
    
    .hero-section h1 {
        font-size: 36px;
        margin-bottom: 16px;
    }
    
    .hero-section h2 {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .release-date {
        font-size: 15px;
        margin-bottom: 30px;
    }
    
    /* Button Group Mobile */
    .button-group {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 40px;
        width: 100%;
        max-width: 280px;
    }
    
    .secondary-button {
        width: 100%;
        height: 48px;
        font-size: 16px;
    }
    
    /* Upload Area Mobile */
    .upload-area {
        height: 150px;
        margin: 0 15px;
    }
    
    .upload-content {
        padding: 15px;
    }
    
    /* Border Animations Mobile */
    .border-left, .border-right {
        width: 2px;
    }
    
    .border-top-left, .border-top-right {
        height: 2px;
    }
    
    /* Top Capsule Mobile */
    .top-capsule-container {
        width: calc(100vw - 40px);
        max-width: 500px;
        height: 60px;
        top: 20px;
    }
    
    /* Erweiterte Kapsel behält mobile Breite */
    .top-capsule-container.expanded {
        width: calc(100vw - 40px) !important;
        max-width: 500px !important;
        height: 50vh;
        top: 20px;
    }
    
    .top-capsule {
        height: 60px;
        border-radius: 30px;
        padding: 15px 20px;
    }
    
    .top-capsule.expanded {
        height: calc(100vh - 160px);
        max-height: 70vh;
        padding: 20px;
        border-radius: 20px;
    }
    
    .processing-content {
        font-size: 12px;
        line-height: 1.4;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .processing-content h3 {
        font-size: 16px;
        margin-bottom: 10px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .processing-content h4 {
        font-size: 14px;
        margin-bottom: 8px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .processing-content h5 {
        font-size: 12px;
        margin-bottom: 6px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .processing-content p {
        font-size: 12px;
        margin-bottom: 6px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    /* Zusätzliche Textformatierung für mobile Geräte */
    .processing-content .bullet-point {
        font-size: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        padding-left: 10px;
    }
    
    .processing-content strong {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Footer Mobile - Capsule Design */
    .apple-footer {
        bottom: 15px;
        width: auto;
        min-width: calc(100% - 40px);
        max-width: calc(100% - 20px);
        height: 62px;
        border-radius: 31px; /* Capsule shape - half of height */
    }
    
    .footer-content {
        height: 62px;
        flex-direction: column;
        gap: 4px;
        padding: 10px 18px;
        text-align: center;
        justify-content: center;
        align-items: center;
    }

    .footer-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
        order: 1;
        margin-bottom: 2px;
    }
    
    .footer-link {
        font-size: 11px;
        padding: 2px 6px;
        white-space: nowrap;
    }
    
    .footer-copyright {
        font-size: 8px;
        text-align: center;
        order: 2;
        line-height: 1.1;
        margin: 0;
    }
}

/* iPhone SE und ähnliche kleine Geräte */
@media screen and (max-width: 390px) {
    .apple-footer {
        bottom: 12px;
        width: auto;
        min-width: calc(100% - 30px);
        max-width: calc(100% - 15px);
        height: 70px;
        border-radius: 35px;
    }
    
    .footer-content {
        height: 70px;
        padding: 12px 16px;
        gap: 4px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .footer-nav {
        order: 1;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 2px;
    }
    
    .footer-link {
        font-size: 11px;
        padding: 2px 6px;
        white-space: nowrap;
        border-radius: 6px;
    }
    
    .footer-copyright {
        order: 2;
        font-size: 8px;
        line-height: 1.1;
        max-width: 85%;
        text-align: center;
        margin: 0;
        word-break: break-word;
    }
}

/* Sehr kleine Mobile Geräte */
@media screen and (max-width: 480px) {
    .hero-section {
        min-height: 60vh;
        padding: 0 10px;
    }
    
    .hero-section h1 {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .hero-section h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .release-date {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .button-group {
        max-width: 260px;
        gap: 10px;
        margin-bottom: 35px;
    }
    
    .secondary-button {
        height: 44px;
        font-size: 15px;
    }
    
    .upload-area {
        height: 120px;
        margin: 0 10px;
    }
    
    .top-capsule-container {
        width: calc(100vw - 30px);
        height: 55px;
        top: 15px;
    }
    
    /* Erweiterte Kapsel für sehr kleine Geräte */
    .top-capsule-container.expanded {
        width: calc(100vw - 30px) !important;
        height: 50vh;
        top: 15px;
    }
    
    .top-capsule {
        height: 55px;
        border-radius: 27.5px;
        padding: 12px 18px;
    }
    
    .top-capsule.expanded {
        height: calc(100vh - 140px);
        max-height: 75vh;
        padding: 18px;
        border-radius: 18px;
    }
    
    .processing-content {
        font-size: 13px;
    }
    
    .processing-content h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .processing-content h4 {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .processing-content h5 {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .processing-content p {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .footer-content {
        padding: 12px 16px;
        gap: 10px;
    }
    
    .footer-nav {
        gap: 10px;
    }
    
    .footer-link {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .footer-copyright {
        font-size: 10px;
    }
    
    /* Footer für sehr kleine Geräte - Capsule Design */
    .apple-footer {
        bottom: 10px;
        width: auto;
        min-width: calc(100% - 40px);
        max-width: calc(100% - 20px);
        height: 44px;
        border-radius: 22px; /* Capsule shape - half of height */
    }
    
    .footer-content {
        height: 56px;
        padding: 8px 12px;
        gap: 4px;
        justify-content: center;
        flex-direction: column;
    }
    
    .footer-nav {
        gap: 6px;
        order: 1;
    }
    
    .footer-copyright {
        order: 2;
        font-size: 8px;
        line-height: 1.1;
    }

    /* Top Capsule für sehr kleine Geräte */
    .top-capsule-container {
        width: calc(100vw - 30px);
        max-width: 450px;
        top: 15px;
    }
    
    .top-capsule-container.expanded {
        width: calc(100vw - 30px) !important;
        max-width: 450px !important;
    }
    
    .top-capsule.expanded {
        padding: 15px;
    }
    
    /* Text noch aggressiver formatieren für sehr kleine Bildschirme */
    .processing-content {
        font-size: 11px;
        line-height: 1.3;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
    }
    
    .processing-content h3 {
        font-size: 14px;
        margin-bottom: 8px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .processing-content h4 {
        font-size: 12px;
        margin-bottom: 6px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .processing-content h5 {
        font-size: 11px;
        margin-bottom: 4px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .processing-content p {
        font-size: 11px;
        margin-bottom: 4px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .processing-content .bullet-point {
        font-size: 11px;
        padding-left: 8px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
}

/* Landscape Orientation für Mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 50vh;
        padding: 0 20px;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .hero-section h2 {
        font-size: 22px;
    }
    
    .button-group {
        flex-direction: row;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .secondary-button {
        width: 160px;
        height: 44px;
    }
    
    .top-capsule-container {
        top: 15px;
        height: 50px;
    }
    
    /* Erweiterte Kapsel für Landscape - behält mobile Breite */
    .top-capsule-container.expanded {
        width: calc(100vw - 40px) !important;
        max-width: 500px !important;
        height: 50vh;
        top: 15px;
    }
    
    .top-capsule {
        height: 50px;
        border-radius: 25px;
    }
    
    .top-capsule.expanded {
        height: calc(100vh - 50px);
        max-height: 85vh;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }
    
    .footer-nav {
        justify-content: flex-start;
    }
    
    .footer-copyright {
        text-align: right;
    }
}
