:root {
    /* Colors */
    --background-light: #F2F2F7;
    --nav-background: rgba(255, 255, 255, 0.8);
    --nav-color: rgba(0, 0, 0, 0.8);
    --nav-hover-color: #000000;
    --button-color: #0071e3;
    --button-hover-color: #0077ED;
    --text-secondary: #86868B;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --button-shadow: rgba(0, 113, 227, 0.3);
    --card-background: #ffffff;
    --text-primary: #1d1d1f;

    /* Close Button Colors */
    --modal-close-background: rgb(232, 232, 237);
    --modal-close-background-hover: rgb(235.68, 235.68, 239.88);
    --modal-close-background-active: rgb(222.72, 222.72, 227.52);
    --modal-close-color: rgba(0, 0, 0, 0.56);
    --modal-close-color-hover: rgba(0, 0, 0, 0.72);

    /* Font Sizes */
    --font-xs: 12px;
    --font-sm: 14px;
    --font-base: 16px;
    --font-lg: 20px;
    --font-xl: 22px;
    --font-2xl: 24px;

    /* Line Heights */
    --line-height-large: 170%;

    /* Andere */
    --border-radius: 12px;

    /* Font-Family Variablen */
    --font-family-heading: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
        "Helvetica Neue", Arial, sans-serif;
    --font-family-body: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
        "Helvetica Neue", Arial, sans-serif;

    --border-color: rgba(0, 0, 0, 0.15);
}

body {
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f7;
    color: #1d1d1f;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
}

.headline {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.subheadline {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.5;
    color: rgb(110, 110, 115);
    margin-bottom: 60px;
}

.upgrade-button {
    display: inline-block;
    background-color: white;
    color: #0071e3;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 980px;
    transition: all 0.3s ease;
}

.upgrade-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.plans-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 18px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px 20px;
    border-bottom: 1px solid #f5f5f7;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
}

.modal-close-container {
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 20;
    padding: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--modal-close-background);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 17px;
    font-weight: 400;
    z-index: 20;
    color: var(--modal-close-color);
    transition: background-color 0.2s, color 0.2s;
}

.modal-close:hover {
    background-color: var(--modal-close-background-hover);
    color: var(--modal-close-color-hover);
}

.modal-close:active {
    background-color: var(--modal-close-background-active);
}

.modal-close i {
    font-size: 20px;
}

.modal-body {
    padding: 20px 40px 40px;
    text-align: center;
}

.modal-subtitle {
    font-size: 17px;
    color: #6e6e73;
    margin-bottom: 30px;
}

/* Segmented Control */
.model-selector {
    display: flex;
    background-color: #f5f5f7;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 30px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.model-tab {
    padding: 8px 20px;
    border: none;
    background: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1d1d1f;
}

.model-tab.active {
    background-color: white;
    color: #0071e3;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.model-tab:hover:not(.active) {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Modell Cards im Modal */
.model-cards {
    position: relative;
    min-height: 200px;
}

.model-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.model-card.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.modal-body .model-name {
    color: #0071e3;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-body .model-price {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1d1d1f;
}

.modal-body .model-description {
    font-size: 16px;
    line-height: 1.5;
    color: #1d1d1f;
    margin-bottom: 25px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.plan-card {
    background-color: white;
    border-radius: 18px;
    padding: 40px 30px;
    width: 30%;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.plan-card .plan-name {
    color: #0071e3;
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 10px;
}

.plan-card .plan-price {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1d1d1f;
}

.plan-card .plan-description {
    font-size: 16px;
    line-height: 1.5;
    color: #1d1d1f;
    margin-bottom: 30px;
    min-height: 80px;
}

.plan-storage {
    font-size: 48px;
    font-weight: 700;
    margin: 20px 0;
    color: #1d1d1f;
}

.plan-button {
    display: inline-block;
    background-color: #0071e3;
    color: white;
    font-size: 17px;
    font-weight: 400;
    text-decoration: none;
    padding: 8px 24px;
    border-radius: 980px;
    transition: background-color 0.3s ease;
}

.plan-button:hover {
    background-color: #0077ED;
}

.additional-section {
    margin-top: 100px;
    padding-top: 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.additional-section .headline {
    font-size: 48px;
    margin-bottom: 15px;
}

.additional-section .subheadline {
    margin-bottom: 30px;
}

/* Vergleichstabelle */
.comparison-table {
    width: 100%;
    margin-top: 40px;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.table-row {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    padding: 24px 16px;
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.feature-cell {
    flex: 1.5;
    text-align: left;
    background-color: #f5f5f7;
    padding-left: 24px;
    align-items: flex-start;
}

.feature-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    color: #1d1d1f;
}

.feature-description {
    font-size: 14px;
    color: #86868b;
    line-height: 1.4;
}

.plan-header {
    font-weight: 600;
    font-size: 16px;
    color: #1d1d1f;
}

.plan-free {
    font-weight: 600;
    font-size: 16px;
}

.price {
    font-size: 16px;
    font-weight: 400;
    margin: 6px 0;
}

.storage {
    font-weight: 600;
    font-size: 18px;
    margin: 10px 0;
}

.check-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-icon img {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(27%) sepia(89%) saturate(1686%) hue-rotate(204deg) brightness(99%) contrast(93%);
}

.x-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.secondary-nav.initial {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.secondary-nav.initial::after {
    left: 350px;
    right: 350px;
    width: auto;
}

.secondary-nav-transition {
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.secondary-nav-transition::after {
    transition: left 0.3s ease, right 0.3s ease, width 0.3s ease;
}

/* Mobile Ansicht Akkordion-Stil */
@media (max-width: 768px) {
    .container {
        padding: 60px 16px;
    }
    
    .headline {
        font-size: 32px;
    }
    
    .subheadline {
        font-size: 19px;
    }
    
    .plans-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 20px 20px 15px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 15px 20px 25px;
    }
    
    .modal-subtitle {
        font-size: 16px;
    }
    
    .model-selector {
        width: 100%;
        max-width: 300px;
    }
    
    .model-tab {
        flex: 1;
        padding: 10px 8px;
        font-size: 14px;
    }
    
    .modal-body .model-price {
        font-size: 32px;
    }
    
    .plan-card {
        width: 100%;
        max-width: 330px;
        padding: 30px 25px;
    }
    
    .plan-card .plan-price {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .plan-card .plan-description {
        font-size: 15px;
        min-height: auto;
        margin-bottom: 24px;
    }
    
    .mobile-comparison-container {
        background-color: #fff;
        border-radius: 12px;
        overflow: hidden;
        margin-top: 40px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .mobile-header {
        padding: 20px;
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .mobile-header h3 {
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 10px;
    }
    
    .mobile-header p {
        font-size: 16px;
        color: #86868b;
    }
    
    /* Plan Styles */
    .plan-dropdown {
        padding: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        background-color: #fff;
    }
    
    .plan-dropdown:last-child {
        border-bottom: none;
    }
    
    .plan-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        cursor: pointer;
        background-color: #fff;
        position: relative;
        z-index: 1;
    }
    
    .plan-info {
        display: flex;
        flex-direction: column;
        text-align: left;
    }
    
    .plan-name {
        font-size: 13px;
        color: #0071e3;
        font-weight: 600;
    }
    
    .plan-price {
        font-size: 24px;
        font-weight: 700;
        color: #1d1d1f;
    }
    
    .plan-description {
        font-size: 15px;
        min-height: auto;
        margin-bottom: 24px;
    }
    
    .plan-arrow {
        color: #8e8e93;
        transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    }
    
    .plan-arrow.active {
        transform: rotate(180deg);
    }
    
    .plan-content {
        max-height: 0;
        overflow: hidden;
        padding: 0 20px;
        background-color: #f5f5f7;
        transition: max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1), padding 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    }
    
    .plan-content.active {
        max-height: 2000px; /* Großer Wert, der auf jeden Fall ausreicht */
        padding: 12px 20px 20px;
    }
    
    .feature-item {
        display: flex;
        align-items: flex-start;
        padding: 12px 0;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        transition-delay: 0.05s;
    }
    
    .plan-content.active .feature-item {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Verzögerte Animation für sequentielles Erscheinen */
    .plan-content.active .feature-item:nth-child(1) { transition-delay: 0.05s; }
    .plan-content.active .feature-item:nth-child(2) { transition-delay: 0.1s; }
    .plan-content.active .feature-item:nth-child(3) { transition-delay: 0.15s; }
    .plan-content.active .feature-item:nth-child(4) { transition-delay: 0.2s; }
    .plan-content.active .feature-item:nth-child(5) { transition-delay: 0.25s; }
    .plan-content.active .feature-item:nth-child(6) { transition-delay: 0.3s; }
    .plan-content.active .feature-item:nth-child(7) { transition-delay: 0.35s; }
    .plan-content.active .feature-item:nth-child(8) { transition-delay: 0.4s; }
    .plan-content.active .feature-item:nth-child(9) { transition-delay: 0.45s; }
    .plan-content.active .feature-item:nth-child(10) { transition-delay: 0.5s; }
    
    .feature-icon {
        min-width: 16px;
        height: 16px;
        margin-right: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .feature-icon img {
        width: 16px;
        height: 16px;
        filter: hue-rotate(200deg) saturate(2) brightness(0.8);
    }
    
    .feature-icon.x {
        background-color: #8e8e93;
        color: white;
        border-radius: 50%;
    }
    
    .feature-icon i {
        font-size: 10px;
    }
    
    .feature-text {
        flex: 1;
    }
    
    .feature-title {
        font-size: 15px;
        font-weight: 500;
        margin-bottom: 4px;
    }
    
    .feature-description {
        font-size: 14px;
        color: #86868b;
        line-height: 1.4;
    }
    
    .blue-text {
        color: #0071e3;
        font-weight: 500;
    }
    
    /* Verstecke Desktop-Tabelle auf Mobilgeräten */
    .comparison-table {
        display: none;
    }
}

/* Kleinere Mobilgeräte */
@media (max-width: 480px) {
    .container {
        padding: 40px 16px;
    }
    
    .headline {
        font-size: 28px;
    }
    
    .subheadline {
        font-size: 17px;
        margin-bottom: 40px;
    }
    
    .plan-card {
        padding: 30px 20px;
    }
    
    .additional-section {
        margin-top: 60px;
        padding-top: 40px;
    }
    
    .additional-section .headline {
        font-size: 28px;
    }
    
    .plan-name {
        font-size: 15px;
    }
    
    .plan-price {
        font-size: 15px;
    }
    
    .feature-title {
        font-size: 14px;
    }
    
    .feature-description {
        font-size: 13px;
    }
}

/* Support-Karte Styles */
.support-section {
    margin: 80px auto;
    max-width: 800px;
}

.support-card {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.support-icon {
    margin-bottom: 24px;
    width: 80px;
    height: 80px;
    background-color: #0071e3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.support-icon i {
    font-size: 36px;
    color: #ffffff;
}

.support-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.support-text {
    font-size: 17px;
    line-height: 1.5;
    color: #6e6e73;
    margin-bottom: 32px;
}

.support-button {
    display: inline-block;
    background-color: #0071e3;
    color: white;
    border-radius: 30px;
    padding: 12px 30px;
    font-size: 17px;
    font-weight: 400;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.support-button:hover {
    background-color: #0062c3;
}

/* Fußnote */
.footnote {
    margin-top: 40px;
    text-align: center;
    color: #86868b;
}

@media (max-width: 768px) {
    .support-section {
        margin: 60px auto;
        padding: 0 20px;
    }
    
    .support-card {
        padding: 30px 20px;
    }
    
    .support-title {
        font-size: 24px;
    }
    
    .support-text {
        font-size: 15px;
    }
}
