/* Google Fonts Import als Fallback */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400&display=swap');

/* Lokale Schriftart einbinden (optional) */
@font-face {
    font-family: 'Playfair Display Local';
    src: url('fonts/PlayfairDisplay-Regular.woff2') format('woff2'),
         url('fonts/PlayfairDisplay-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', serif;
    line-height: 1.4;
    color: #000;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Gelbes Dreieck */
.yellow-triangle {
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-left: 250px solid transparent;
    border-top: 250px solid #ffff00;
    z-index: -1;
}

/* Haupttitel */
.main-header {
    margin-bottom: 3rem;
}

.main-title {
    font-family: 'Playfair Display Local', 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: #000;
}

.home-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.home-link:hover {
    opacity: 0.7;
}

/* Willkommens-Bereich */
.welcome-section {
    margin-bottom: 3rem;
    max-width: 800px;
}

.welcome-section h2 {
    font-size: 1.25rem;
    font-weight: normal;
    margin-bottom: 1rem;
    color: #000;
}

.welcome-section p {
    font-size: 1rem;
    line-height: 1.5;
    color: #000;
}

/* Wochen-Bereich */
.weeks-section {
    margin-bottom: 3rem;
    flex: 1;
}

/* Wochen-Liste */
.weeks-list {
    max-width: 900px;
}

/* Woche Item */
.week-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-bottom: 1px solid #000;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.week-item:hover {
    opacity: 0.7;
}

/* Kommende Wochen (nicht freigeschaltet) */
.week-item.week-locked {
    opacity: 0.7;
    cursor: default;
}

.week-item.week-locked:hover {
    opacity: 0.7;
    transform: none;
}

.release-date {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: normal;
}

.week-arrow-locked {
    background-color: #ddd !important;
    opacity: 0.6;
}

.week-arrow-locked::after {
    content: '→';
    color: #999 !important;
}

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

.week-content h3 {
    font-size: 1.1rem;
    font-weight: normal;
    color: #000;
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
}

.week-content p {
    font-size: 0.95rem;
    color: #000;
    font-weight: normal;
    margin: 0;
}

/* Pfeil-Button */
.week-arrow {
    width: 40px;
    height: 40px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 2rem;
}

.week-arrow:hover {
    transform: scale(1.1);
}

.week-arrow::after {
    content: '→';
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Papier Bild unten links */
.paper-image {
    position: fixed;
    bottom: -10px;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

.paper-image img {
    max-width: 200px;
    height: auto;
    opacity: 0.8;
}

/* Footer */
.main-footer, .step-footer {
    text-align: center;
    padding: 1rem 1rem 1rem;
    border-top: 1px solid #eee;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: #ffffff;
    margin-top: auto;
}

.main-footer p, .step-footer p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.main-footer a, .step-footer a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.main-footer a:hover, .step-footer a:hover {
    color: #000;
    text-decoration: underline;
}

/* Step-by-Step Container */
.step-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Step Header */
.step-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.week-info {
    text-align: right;
    margin-top: 1rem;
}

.week-title {
    font-family: 'Playfair Display Local', 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #000;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.week-reference {
    font-size: 1rem;
    color: #000;
    font-weight: normal;
}

/* Fortschrittsbalken */
.progress-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    overflow-x: auto;
    padding: 0.25rem 0;
}

.progress-segment {
    height: 8px;
    flex: 1;
    min-width: 30px;
    background: #ddd;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    position: relative;
}

.progress-segment:hover {
    background: #999;
    transform: translateY(-1px);
}

.progress-segment.active {
    background: #000;
}

.progress-segment.active:hover {
    background: #333;
}

/* Progress Bar Responsive Behavior */
@media (hover: none) {
    .progress-segment:hover {
        transform: none;
        background: #ddd;
    }
    
    .progress-segment.active:hover {
        background: #000;
    }
}

/* Step Content */
.step-content {
    max-width: 800px;
    margin-bottom: 4rem;
    flex: 1;
}

.step-number {
    font-size: 1rem;
    color: #000;
    margin-bottom: 0.5rem;
}

.step-title {
    font-size: 1.75rem;
    font-weight: normal;
    color: #000;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.step-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #000;
    margin-bottom: 2rem;
}

/* Bibeltext spezifisch */
.bible-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #000;
    margin-bottom: 2rem;
}

/* Fragen */
.question-list {
    list-style: none;
    margin-bottom: 2rem;
}

.question-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.question-number {
    background: #000;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    margin-right: 1rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.question-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #000;
}

/* Zitat */
.quote {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.5;
    color: #000;
    margin-bottom: 2rem;
}

/* Media Buttons */
.media-section {
    margin-bottom: 2rem;
}

.media-title {
    font-size: 1.1rem;
    color: #000;
    margin-bottom: 1rem;
}

.media-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.media-btn {
    background: #ffff00;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    color: #000;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    min-height: 44px; /* Touch-friendly minimum */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    gap: 0.5rem;
}

.media-btn .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Spotify Icon */
.spotify-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231DB954' d='M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.66 0 12 0zm5.521 17.34c-.24.359-.66.48-1.021.24-2.82-1.74-6.36-2.101-10.561-1.141-.418.122-.779-.179-.899-.539-.12-.421.18-.78.54-.9 4.56-1.021 8.52-.6 11.64 1.32.42.18.479.659.301 1.02zm1.44-3.3c-.301.42-.841.6-1.262.3-3.239-1.98-8.159-2.58-11.939-1.38-.479.12-1.02-.12-1.14-.6-.12-.48.12-1.021.6-1.141C9.6 9.9 15 10.561 18.72 12.84c.361.181.54.78.241 1.2zm.12-3.36C15.24 8.4 8.82 8.16 5.16 9.301c-.6.179-1.2-.181-1.38-.721-.18-.601.18-1.2.72-1.381 4.26-1.26 11.28-1.02 15.721 1.621.539.3.719 1.02.42 1.56-.299.421-1.02.599-1.559.3z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* YouTube Icon */
.youtube-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FF0000' d='M23.498 6.186a2.999 2.999 0 0 0-2.109-2.109C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.389.532A2.999 2.999 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a2.999 2.999 0 0 0 2.109 2.109C4.495 20.455 12 20.455 12 20.455s7.505 0 9.389-.532a2.999 2.999 0 0 0 2.109-2.109C24 15.93 24 12 24 12s0-3.93-.502-5.814z'/%3E%3Cpath fill='%23FFFFFF' d='M9.545 15.568V8.432L15.818 12l-6.273 3.568z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Document Icon */
.document-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.media-btn:hover {
    transform: scale(1.05);
    background: #ffed4e;
}

.media-btn:active {
    transform: scale(0.98);
    background: #e6e600;
}



/* Bible Link Button */
.bible-link {
    margin-top: 2rem;
}

/* Navigation Buttons */
.step-navigation {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    z-index: 100;
}

.nav-btn {
    padding: 0.75rem 2rem;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px; /* Touch-friendly minimum */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    border-radius: 0;
    font-weight: normal;
    white-space: nowrap;
}

.nav-btn:hover {
    background: #000;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.next-btn {
    background: #ffff00;
    border-color: #ffff00;
}

.next-btn:hover {
    background: #000;
    color: #fff;
}

.next-btn:active {
    background: #333;
}

/* Responsive Design */

/* Large Tablets and Landscape Phones */
@media (max-width: 1024px) {
    .container {
        padding: 2.5rem 1.5rem;
    }
    
    .step-container {
        padding: 2.5rem 1.5rem;
    }
    
    .main-title {
        font-size: 3rem;
    }
    
    .progress-bar {
        max-width: 500px;
    }
    
    .step-content {
        max-width: 700px;
    }
    
    .step-navigation {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* Tablets and Small Desktops */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    
    .step-container {
        padding: 2rem 1rem;
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    
    .yellow-triangle {
        border-left: 180px solid transparent;
        border-top: 180px solid #ffff00;
    }
    
    .main-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .welcome-section {
        margin-bottom: 2rem;
    }
    
    .weeks-section {
        flex: 1;
    }
    
    .week-item {
        padding: 1rem 0;
    }
    
    .week-arrow {
        width: 35px;
        height: 35px;
        margin-left: 1rem;
    }
    
    .week-arrow::after {
        font-size: 1rem;
    }
    
    /* Step View Responsive */
    .step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .week-info {
        text-align: left;
        margin-top: 0;
    }
    
    .progress-bar {
        max-width: 100%;
        gap: 0.75rem;
    }
    
    .progress-segment {
        height: 6px;
    }
    
         .step-content {
         max-width: 100%;
         margin-bottom: 2rem;
         padding-bottom: 1rem;
         flex: 1;
     }
    
    
    .step-title {
        font-size: 1.5rem;
    }
    
    .step-number {
        font-size: 0.9rem;
    }
    
    .question-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .question-number {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .media-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .media-btn {
        width: 100%;
        text-align: center;
    }
    
         .step-navigation {
         position: fixed;
         bottom: 0;
         left: 0;
         right: 0;
         background: rgba(255, 255, 255, 0.95);
         backdrop-filter: blur(10px);
         padding: 0.75rem 1rem;
         border-top: 1px solid #ddd;
         justify-content: flex-end;
         gap: 0.75rem;
         z-index: 200;
     }
     
     .back-btn {
         margin-right: auto;
     }
     
     .nav-btn {
         padding: 0.6rem 1rem;
         font-size: 0.85rem;
         border-radius: 4px;
         white-space: nowrap;
         overflow: hidden;
         text-overflow: ellipsis;
         max-width: 140px;
     }
    
    .paper-image {
        position: fixed;
        bottom: -10px;
        left: 0;
        z-index: -1;
    }
    
         .paper-image {
         display: none; /* Papier-Bild auf Tablets verstecken */
     }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem 0.75rem;
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    
    .step-container {
        padding: 1.5rem 0.75rem 4rem 0.75rem;
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    
    .yellow-triangle {
        border-left: 100px solid transparent;
        border-top: 100px solid #ffff00;
    }
    
    .main-title {
        font-size: 1.75rem;
        line-height: 1.1;
    }
    
    .welcome-section {
        margin-bottom: 1.5rem;
    }
    
    .weeks-section {
        flex: 1;
    }
    
    .welcome-section h2 {
        font-size: 1.1rem;
    }
    
    .welcome-section p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .week-content h3 {
        font-size: 1rem;
    }
    
    .week-content p {
        font-size: 0.85rem;
    }
    
    .week-arrow {
        width: 30px;
        height: 30px;
    }
    
    .week-arrow::after {
        font-size: 0.9rem;
    }
    
    /* Step View Mobile */
    .step-header {
        margin-bottom: 1.5rem;
    }
    
    .week-title {
        font-size: 1.25rem;
    }
    
    .week-reference {
        font-size: 0.9rem;
    }
    
    .progress-bar {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .progress-segment {
        height: 5px;
        min-width: 20px;
    }
    
         .step-content {
         margin-bottom: 1rem;
         padding-bottom: 1rem;
         flex: 1;
     }
     
     .step-footer {
         padding-bottom: 1rem;
         margin-top: 2rem;
     }
    
    .step-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .step-number {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    
    .step-text {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .bible-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .bible-text p {
        margin-bottom: 1rem;
    }
    
    .question-list {
        margin-bottom: 1.5rem;
    }
    
    .question-item {
        margin-bottom: 1.5rem;
    }
    
    .question-number {
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
    }
    
    .question-text {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .quote {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
        padding: 1rem;
        background: rgba(255, 255, 0, 0.1);
        border-left: 3px solid #ffff00;
        font-style: italic;
    }
    
    .media-section {
        margin-bottom: 1.5rem;
    }
    
    .media-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .media-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        border-radius: 20px;
    }
    
         .step-navigation {
         position: fixed;
         bottom: 0;
         left: 0;
         right: 0;
         background: rgba(255, 255, 255, 0.95);
         backdrop-filter: blur(10px);
         padding: 0.6rem 0.75rem;
         border-top: 1px solid #ddd;
         justify-content: flex-end;
         gap: 0.5rem;
         z-index: 200;
     }
     
     .back-btn {
         margin-right: auto;
     }
     
     .nav-btn {
         padding: 0.5rem 0.6rem;
         font-size: 0.8rem;
         border-radius: 4px;
         white-space: nowrap;
         overflow: hidden;
         text-overflow: ellipsis;
         max-width: 110px;
     }
    
         .paper-image {
         display: none; /* Papier-Bild auf Mobile komplett verstecken */
     }
     
     /* Footer auf Mobile nicht sticky */
     .main-footer, .step-footer {
         margin-top: auto;
         padding-top: 1rem;
         border-top: 1px solid #eee;
         background: white;
     }
}

/* Very Small Mobile Devices */
@media (max-width: 360px) {
    .container {
        padding: 1rem 0.5rem;
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    
    .step-container {
        padding: 1rem 0.5rem;
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    
    .yellow-triangle {
        border-left: 80px solid transparent;
        border-top: 80px solid #ffff00;
    }
    
    .main-title {
        font-size: 1.5rem;
    }
    
    .week-title {
        font-size: 1.1rem;
    }
    
    .step-title {
        font-size: 1.1rem;
    }
    
    .progress-segment {
        height: 4px;
        min-width: 15px;
    }
    
    .nav-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
         .paper-image {
         display: none; /* Papier-Bild auf sehr kleinen Geräten verstecken */
     }
     
     /* Footer auf sehr kleinen Mobile-Geräten auch nicht sticky */
     .main-footer, .step-footer {
         position: static;
         margin-top: auto;
         padding-top: 1.5rem;
     }
}

/* Landscape Mobile Optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .yellow-triangle {
        border-left: 60px solid transparent;
        border-top: 60px solid #ffff00;
    }
    
    .container {
        padding: 1rem 0.75rem;
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    
    .step-container {
        padding: 1rem 0.75rem;
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    
    .main-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .welcome-section {
        margin-bottom: 1rem;
    }
    
    .week-item {
        padding: 0.75rem 0;
    }
    
    .step-header {
        margin-bottom: 1rem;
        gap: 0.5rem;
    }
    
    .progress-bar {
        margin-bottom: 1.5rem;
    }
    
    .step-content {
        margin-bottom: 4rem;
    }
    
    .step-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .question-item {
        margin-bottom: 1rem;
    }
    
    .media-section {
        margin-bottom: 1rem;
    }
    
         .step-navigation {
         position: fixed;
         bottom: 0;
         left: 0;
         right: 0;
         background: rgba(255, 255, 255, 0.95);
         backdrop-filter: blur(10px);
         padding: 0.4rem 0.5rem;
         border-top: 1px solid #ddd;
         justify-content: flex-end;
         gap: 0.5rem;
         z-index: 200;
     }
     
     .back-btn {
         margin-right: auto;
     }
     
     .nav-btn {
         padding: 0.4rem 0.5rem;
         font-size: 0.75rem;
         border-radius: 3px;
         white-space: nowrap;
         overflow: hidden;
         text-overflow: ellipsis;
         max-width: 90px;
     }
    
         .paper-image {
         display: none; /* Papier-Bild im Landscape-Modus verstecken */
     }
     
     /* Footer auch im Landscape-Modus nicht sticky */
     .main-footer, .step-footer {
         position: static;
         margin-top: auto;
         padding-top: 1rem;
     }
}

/* High DPI / Retina Display Optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .progress-segment {
        border-radius: 6px;
    }
    
    .media-btn {
        border-radius: 30px;
    }
    
    .question-number {
        border-radius: 50%;
    }
}

/* Animation für das Laden */
.week-item {
    animation: fadeIn 0.3s ease forwards;
    opacity: 0;
}

.week-item:nth-child(1) { animation-delay: 0.1s; }
.week-item:nth-child(2) { animation-delay: 0.2s; }
.week-item:nth-child(3) { animation-delay: 0.3s; }
.week-item:nth-child(4) { animation-delay: 0.4s; }
.week-item:nth-child(5) { animation-delay: 0.5s; }
.week-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeIn {
    to {
        opacity: 1;
    }
} 