:root {
    /* Colors */
    --background-light: #F2F2F7;
    --nav-background: rgba(245, 245, 247, .8);
    --nav-color: rgba(0, 0, 0, .8);
    --nav-hover-color: #000000;
    --button-color: #0071e3;
    --button-hover-color: #0077ED;
    
    --linkt-color: #06c;
    --text-color: #06c;

    --feature-background-color: #0071e3;

    --text-secondary: #86868B;
    --border-color: rgba(0, 0, 0, 0.15);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --button-shadow: rgba(0, 113, 227, 0.3);
    --card-background: #ffffff;
    --text-primary: #1d1d1f;
    --footer-background: #f5f5f7;
    --footer-textColor: #515154;
    --footer-textColor-hover: #1d1d1f;

    /* 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;
    --transition: all 0.3s ease;
    --shadow: 0 8px 16px rgba(0, 0, 0, 0.1);

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

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

body {
    font-family: var(--font-family-body);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: rgb(245, 245, 247);
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.hero-section {
    text-align: center;
    margin-bottom: 60px;
}

.hero-section h1 {
    font-family: var(--font-family-heading);
    font-size: 96px;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.hero-description {
    font-size: var(--font-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--line-height-large);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.video-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.video-card:hover {
    box-shadow: 0 8px 16px var(--shadow-color);
}

.video-card h2 {
    font-family: var(--font-family-heading);
    font-size: var(--font-lg);
    color: var(--text-primary);
    margin-bottom: 8px;
}

.gradient-text {
    display: flex;
    flex-direction: column;
}

.gradient-text span {
    font-family: var(--font-family-heading);
    font-size: 32px;
    font-weight: 600;
    background: linear-gradient(90deg, 
        rgb(8, 148, 255) 0%,
        rgb(201, 89, 221) 34%,
        rgb(255, 46, 84) 68%,
        rgb(255, 144, 4) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.gradient-text span:nth-child(2) {
    margin-top: -5px;
}

.device-support {
    margin-top: auto;
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .content {
        padding: 30px 20px 60px;
    }

    .hero-section h1 {
        font-size: 36px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .video-card {
        min-height: 180px;
    }

    .gradient-text span {
        font-size: 28px;
    }
}

.news-heading {
    font-family: var(--font-family-heading);
    font-size: 48px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 48px;
    text-align: left;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

/* News Grid - Layout */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 980px;
    margin: 0 auto;
}

/* News Item - Card Style */
.news-item {
    background: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.news-item:hover {
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

/* Featured News - exakte Dimensionen */
.featured-news {
    grid-column: 1 / 3;
    display: grid;
    grid-template-columns: 362px 1fr;
    height: 362px;
    width: 980px;
    margin: 0 auto 20px auto;
}

/* Regular News Items - neue Dimensionen 472x453px */
.news-item:not(.featured-news) {
    height: 453px;
    width: 472px;
}

/* News Image Container */
.news-image {
    overflow: hidden;
    position: relative;
    background: #f5f5f7;
    border-radius: 18px 18px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-item:not(.featured-news) .news-image {
    height: 210px;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-news .news-image {
    height: 362px;
    width: 362px;
    min-height: 362px;
    max-height: 362px;
    aspect-ratio: 1/1;
    border-radius: 18px 0 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-image,
.news-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    display: block;
}

/* Fallback für fehlende Bilder */
.featured-image[src=""],
.news-thumbnail[src=""],
.featured-image:not([src]),
.news-thumbnail:not([src]) {
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-image[src=""]:before,
.news-thumbnail[src=""]:before,
.featured-image:not([src]):before,
.news-thumbnail:not([src]):before {
    content: "📰";
    font-size: 48px;
    opacity: 0.3;
}

.news-item:hover .featured-image,
.news-item:hover .news-thumbnail {
}

/* News Content - angepasst für neue Dimensionen */
.news-content {
    padding: 24px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: calc(453px - 210px);
}

.featured-news .news-content {
    padding: 40px 32px;
    justify-content: center;
    height: 362px;
    width: calc(980px - 362px);
}

/* News Category - Style Badge */
.news-category {
    font-family: var(--font-family-body);
    font-size: 12px;
    font-weight: 600;
    color: #6e6e73;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
    display: block;
}

/* News Title - Typography */
.news-title {
    font-family: var(--font-family-heading);
    font-size: 28px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.2142857143;
    margin-bottom: 12px;
    letter-spacing: -0.003em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-news .news-title {
    font-size: 40px;
    line-height: 1.1;
    -webkit-line-clamp: 2;
    margin-bottom: 16px;
}

/* News Summary - Text Style */
.news-summary {
    font-family: var(--font-family-body);
    font-size: 17px;
    font-weight: 400;
    color: #86868b;
    line-height: 1.4705882353;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-news .news-summary {
    font-size: 19px;
    line-height: 1.4210526316;
    -webkit-line-clamp: 3;
}

/* News Meta Information */
.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    font-family: var(--font-family-body);
    font-size: 14px;
    color: #86868b;
}

.news-date {
    font-weight: 400;
}

.news-author {
    font-weight: 500;
    color: #6e6e73;
}

.news-author::before {
    content: "von ";
    font-weight: 400;
}

/* Read Time Badge */
.read-time {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-family: var(--font-family-body);
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* News Tags - Pills */
.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tag {
    background: #f5f5f7;
    color: #1d1d1f;
    padding: 6px 16px;
    border-radius: 50px;
    font-family: var(--font-family-body);
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e8e8ed;
    white-space: nowrap;
    display: inline-block;
}

/* Responsive Design - iPad */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: 1fr;
        max-width: 338px;
        gap: 24px;
    }

    .featured-news {
        grid-column: 1;
        grid-template-columns: 1fr;
        height: 342px;
        width: 338px;
        margin-bottom: 0;
    }
    
    .featured-news .news-image {
        height: 90px;
        min-height: 90px;
        max-height: 90px;
        border-radius: 18px 18px 0 0;
    }

    .featured-news .news-content {
        padding: 16px 16px 20px 16px;
        justify-content: flex-start;
        height: calc(342px - 90px);
    }
    
    .featured-news .news-title {
        font-size: 24px;
        line-height: 1.16667;
        margin-bottom: 8px;
        font-weight: 600;
    }

    .featured-news .news-summary {
        font-size: 14px;
        line-height: 1.42857;
        margin-bottom: 12px;
        -webkit-line-clamp: 3;
    }

    .news-item:not(.featured-news) {
        height: 342px;
        width: 338px;
    }

    .news-item:not(.featured-news) .news-image {
        height: 90px;
    }

    .news-item:not(.featured-news) .news-title {
        font-size: 20px;
        line-height: 1.2;
        margin-bottom: 6px;
        font-weight: 600;
    }

    .news-item:not(.featured-news) .news-summary {
        font-size: 14px;
        line-height: 1.42857;
        margin-bottom: 12px;
        -webkit-line-clamp: 3;
    }
    
    .news-content {
        height: calc(342px - 90px);
        padding: 16px 16px 20px 16px;
    }

    .news-category {
        font-size: 11px;
        margin-bottom: 8px;
        letter-spacing: 0.6px;
    }

    .news-meta {
        font-size: 12px;
        margin-top: auto;
        gap: 8px;
    }
}

/* Responsive Design - iPhone (horizontal layout) */
@media (max-width: 768px) {
    .content {
        padding: 30px 20px 60px;
    }

    .news-heading {
        font-size: 36px;
        margin-bottom: 32px;
    }

    .news-grid {
        max-width: 100%;
        gap: 16px;
        grid-template-columns: 1fr;
    }
    
    /* Mobile Layout: Horizontal Cards */
    .news-item,
    .news-item:not(.featured-news),
    .featured-news {
        height: auto;
        min-height: 120px;
        display: grid;
        grid-template-columns: 120px 1fr;
        gap: 16px;
        grid-column: 1;
        margin-bottom: 0;
    }
    
    /* Bilder links - Style */
    .news-item:not(.featured-news) .news-image,
    .featured-news .news-image {
        height: 120px;
        width: 120px;
        min-height: 120px;
        max-height: 120px;
        border-radius: 18px;
        grid-column: 1;
        grid-row: 1;
    }
    
    /* Content rechts - Style */
    .news-content,
    .featured-news .news-content {
        padding: 8px 0 8px 0;
        height: auto;
        min-height: 120px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        grid-column: 2;
        grid-row: 1;
    }
    
    /* Mobile Typography */
    .news-title,
    .featured-news .news-title {
        font-size: 17px;
        font-weight: 600;
        margin-bottom: 4px;
        line-height: 1.3;
        -webkit-line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .news-summary,
    .featured-news .news-summary {
        font-size: 15px;
        color: #86868b;
        margin-bottom: 8px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .news-category {
        margin-bottom: 2px;
        font-size: 11px;
        font-weight: 600;
        color: #86868b;
        text-transform: uppercase;
    }

    .news-meta {
        font-size: 13px;
        color: #86868b;
        gap: 8px;
        margin-top: auto;
    }

    /* Plus Button angepasst für horizontales Layout */
    .news-expand-button {
        width: 44px;
        height: 44px;
        bottom: 8px;
        right: 8px;
        grid-column: 2;
        grid-row: 1;
        align-self: end;
        justify-self: end;
    }

    .news-expand-button i {
        font-size: 18px;
    }

    .featured-news .news-expand-button {
        width: 44px;
        height: 44px;
        bottom: 8px;
        right: 8px;
    }

    .featured-news .news-expand-button i {
        font-size: 18px;
    }

    /* Read Time Badge angepasst */
    .read-time {
        top: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 11px;
    }

    /* Tags verstecken auf Mobile für cleanes Design */
    .news-tags {
        display: none;
    }
}

/* Notification Bar */
.notification-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 68px;
    background-color: rgba(240, 240, 243, 0.85);
    border-radius: 100px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(80px);
    -webkit-backdrop-filter: blur(80px);
    z-index: 998;
    animation: slideUp 0.5s ease-out forwards;
    padding: 0;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 35px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.notification-content p {
    font-family: var(--font-family-body);
    font-size: 14px;
    color: #1d1d1f;
    margin: 0;
    padding-right: 20px;
    font-weight: 400;
    max-width: 590px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.dismiss-button {
    background-color: rgba(255, 255, 255, 0.8);
    color: #1d1d1f;
    border: none;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: var(--font-family-body);
    height: 32px;
    white-space: nowrap;
}

.dismiss-button:hover {
    background-color: rgba(255, 255, 255, 1);
}

.notify-button {
    background-color: var(--button-color);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: var(--font-family-body);
    height: 32px;
    white-space: nowrap;
}

.notify-button:hover {
    background-color: var(--button-hover-color);
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    to {
        transform: translate(-50%, 100px);
        opacity: 0;
    }
}

@media (max-width: 950px) {
    .notification-bar {
        width: 90%;
        max-width: 900px;
        height: auto;
        padding: 20px 25px;
        border-radius: 30px;
        bottom: 20px;
    }
    
    .notification-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        height: auto;
    }
    
    .notification-content p {
        margin-bottom: 16px;
        padding-right: 0;
        max-width: 100%;
        white-space: normal;
        font-size: 15px;
        line-height: 1.4;
    }
    
    .notification-buttons {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }
    
    .notification-buttons button {
        width: 100%;
        margin: 0;
        height: 44px;
        font-size: 15px;
    }
    
    .email-input-container {
        width: 100%;
        margin-right: 0;
        margin-bottom: 16px;
    }
    
    .email-input {
        width: 100%;
        height: 44px;
        font-size: 15px;
        padding: 0 20px;
    }
    
    .notification-buttons .cancel-button,
    .notification-buttons .confirm-button {
        margin: 0;
    }
    
    .notification-content.email-view .notification-buttons {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 12px;
        margin-top: 0;
        width: 100%;
    }
    
    .notification-content.email-view .cancel-button,
    .notification-content.email-view .confirm-button {
        width: 48%;
        height: 44px;
        border-radius: 30px;
        margin: 0;
        font-size: 15px;
    }
}

/* Versteckte Ansicht */
.hidden {
    display: none;
}

/* E-Mail-Eingabeansicht */
.email-input-container {
    flex: 1;
    margin-right: 20px;
}

.email-input {
    width: 100%;
    height: 32px;
    border: none;
    background-color: white;
    border-radius: 30px;
    padding: 0 20px;
    font-size: 14px;
    font-family: var(--font-family-body);
    color: var(--text-primary);
    outline: none;
}

.email-input:focus {
    box-shadow: 0 0 0 2px var(--button-color);
}

/* Icon Buttons */
.cancel-button, .confirm-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s ease;
}

.cancel-button {
    background-color: rgba(255, 255, 255, 0.8);
    color: #1d1d1f;
    margin-right: 8px;
}

.cancel-button:hover {
    background-color: rgba(255, 255, 255, 1);
}

.confirm-button {
    background-color: var(--button-color);
    color: white;
}

.confirm-button:hover {
    background-color: var(--button-hover-color);
}

/* Animation für den Wechsel zwischen den Ansichten */
.notification-content.initial-view.hidden,
.notification-content.email-view.hidden {
    display: none;
}

.notification-content.initial-view,
.notification-content.email-view {
    animation: fadeIn 0.3s ease forwards;
}

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

/* Animation für erfolgreiche Anmeldung */
@keyframes shrinkBar {
    0% {
        transform: translateX(-50%);
        width: 900px;
        opacity: 1;
    }
    50% {
        transform: translateX(-50%);
        width: 200px;
        opacity: 1;
        border-radius: 100px;
    }
    90% {
        transform: translateX(-50%);
        width: 200px;
        opacity: 1;
    }
    100% {
        transform: translateX(-50%);
        width: 200px;
        opacity: 0;
    }
}

.notification-bar.success-animation {
    animation: shrinkBar 1.5s ease-in-out forwards;
}

/* Erfolgs-Ansicht */
.notification-content.success-view {
    justify-content: center;
}

.success-checkmark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: #34c759; /* Grüne Farbe */
    color: white;
    font-size: 16px;
    animation: blueToGreen 0.5s ease forwards, popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes blueToGreen {
    0% {
        background-color: var(--button-color);
        transform: scale(1);
    }
    50% {
        background-color: #27ae60; /* Mittlere Grünfarbe */
        transform: scale(1.2);
    }
    100% {
        background-color: #34c759; /* Endgültige Grünfarbe */
        transform: scale(1);
    }
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    70% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
