/* 
 * PreppList - Main Stylesheet
 * Enthält die Hauptstilregeln für alle Seiten
 */

/* Root Variables */
:root {
    --color-teal: #2A9D8F;
    --color-dark-teal: #264653;
    --gradient-primary: linear-gradient(135deg, #2A9D8F 0%, #264653 100%);
}

/* ====== Basis-Stile ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f7fafc;
    color: #1D1D1F;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

a {
    text-decoration: none;
}

/* ====== Navigation ====== */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(250, 249, 247, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(42, 157, 143, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    width: 100%;
    background: white;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--color-dark-teal);
    opacity: 0.8;
    transition: all 0.2s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    opacity: 1;
    color: var(--color-teal);
}

.brand {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-dark-teal);
}

/* ====== Layout-Container ====== */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: 25vh;
}

.content-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 2.5rem;
    background-color: white;
    border-radius: 32px;
    box-shadow: 0 2px 8px rgba(42, 157, 143, 0.08);
    margin-bottom: 24px;
    border: 1px solid rgba(42, 157, 143, 0.1);
}

/* ====== Formular-Elemente ====== */
.swift-textfield {
    background-color: rgba(42, 157, 143, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    font-size: 17px;
    border: 1px solid rgba(42, 157, 143, 0.1);
    transition: all 0.2s ease;
    width: 100%;
    margin-bottom: 18px;
    color: var(--color-dark-teal);
    display: block;
    box-sizing: border-box;
}

.swift-textfield:focus {
    background-color: rgba(42, 157, 143, 0.12);
    border-color: var(--color-teal);
    outline: none;
}

.swift-button {
    background: var(--gradient-primary);
    color: white;
    border-radius: 16px;
    padding: 16px 24px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 24px;
    display: block;
    box-sizing: border-box;
}

.swift-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(42, 157, 143, 0.2);
}

/* ====== Sektionen ====== */
.hero-section {
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.05) 0%, rgba(38, 70, 83, 0.05) 100%);
    padding: 4rem 0;
    border-bottom: 1px solid rgba(42, 157, 143, 0.1);
}

/* ====== Feature-Sektion ====== */
.feature-container {
    display: flex;
    gap: 24px;
    padding: 48px 0;
    justify-content: space-between;
}

.feature-box {
    flex: 1;
    background: rgba(42, 157, 143, 0.04);
    border: 1px solid rgba(42, 157, 143, 0.1);
    border-radius: 24px;
    padding: 28px 24px;
    text-align: center;
    color: var(--color-dark-teal);
    transition: all 0.8s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-4px);
    background: rgba(42, 157, 143, 0.08);
    border-color: var(--color-teal);
}

/* ====== Logo-Container ====== */
.logo-container {
    width: 200px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ====== Roadmap/Timeline ====== */
.timeline-container {
    padding: 20px 0;
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--color-teal);
    z-index: 1;
}

.roadmap-items {
    position: relative;
}

.roadmap-item {
    position: relative;
    padding-left: 50%; /* Platz für linke Seite */
    margin-bottom: 2.5rem;
}

.roadmap-item:nth-child(even) {
    padding-left: 0;
    padding-right: 50%; /* Platz für rechte Seite */
}

.roadmap-item .feature-box {
    background: rgba(42, 157, 143, 0.04);
    border: 1px solid rgba(42, 157, 143, 0.1);
    border-radius: 24px;
    padding: 28px 24px;
    width: 85%; /* Breite der Box */
    margin-left: 2rem; /* Abstand zum Zeitstrahl */
}

.roadmap-item:nth-child(even) .feature-box {
    margin-left: auto;
    margin-right: 2rem;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-teal);
    box-shadow: 0 0 0 4px rgba(42, 157, 143, 0.2);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

/* ====== Footer ====== */
.site-footer {
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.05) 0%, rgba(38, 70, 83, 0.05) 100%);
    border-top: 1px solid rgba(42, 157, 143, 0.1);
    padding: 2.5rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.copyright {
    color: var(--color-dark-teal);
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--color-teal);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-dark-teal);
}

/* ====== API-Dokumentationsseite ====== */
.content-container {
    display: flex;
    flex: 1;
    max-width: 1200px;
    margin: 2rem auto;
    background-color: white;
    border-radius: 32px;
    box-shadow: 0 2px 8px rgba(42, 157, 143, 0.08);
    border: 1px solid rgba(42, 157, 143, 0.1);
    overflow: hidden;
}

.api-sidebar {
    width: 250px;
    background-color: rgba(42, 157, 143, 0.04);
    padding: 1.5rem;
    border-right: 1px solid rgba(42, 157, 143, 0.1);
    height: 100%;
    overflow-y: auto;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
}

.api-sidebar h3 {
    margin-bottom: 1rem;
    color: var(--color-dark-teal);
    font-weight: 600;
}

.api-sidebar ul {
    list-style: none;
}

.api-sidebar li {
    margin-bottom: 0.5rem;
}

.api-sidebar a {
    color: var(--color-dark-teal);
    opacity: 0.8;
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: 16px;
    transition: all 0.2s ease;
}

.api-sidebar a:hover {
    background-color: rgba(42, 157, 143, 0.08);
    opacity: 1;
    color: var(--color-teal);
}

.api-sidebar a.active {
    background-color: var(--color-teal);
    color: white;
    opacity: 1;
}

.main-content {
    flex: 1;
    padding: 2rem;
}

.api-section {
    margin-bottom: 3rem;
    padding-top: 1rem;
}

.api-section h2 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(42, 157, 143, 0.1);
    color: var(--color-dark-teal);
}

.api-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #1D1D1F;
}

.code-block {
    background-color: rgba(42, 157, 143, 0.04);
    padding: 1rem;
    border-radius: 16px;
    margin: 1rem 0;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: auto;
    border: 1px solid rgba(42, 157, 143, 0.1);
}

/* ====== Animationen ====== */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ====== Responsive Design ====== */
@media (max-width: 900px) {
    .content-wrapper {
        flex-direction: column;
        gap: 3rem;
    }
    
    .feature-container {
        flex-direction: column;
    }
    
    .content-container {
        flex-direction: column;
    }
    
    .api-sidebar {
        width: 100%;
        max-height: none;
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 1px solid rgba(42, 157, 143, 0.1);
    }
    
    .roadmap-item,
    .roadmap-item:nth-child(even) {
        padding-left: 2rem;
        padding-right: 0;
    }
    
    .timeline-line {
        left: 0;
        transform: none;
    }
    
    .timeline-dot {
        left: 0;
        transform: none;
    }
    
    .roadmap-item .feature-box,
    .roadmap-item:nth-child(even) .feature-box {
        width: 100%;
        margin-left: 2rem;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .nav-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .swift-button {
        padding: 12px 16px;
    }
}

/* Abstand zwischen Überschrift und Content */
h1, h2, h3 {
    margin-bottom: 2rem;  /* Erhöht den Abstand nach Überschriften */
}

/* Spezifisch für die PreppList Hauptüberschrift */
.hero-section h1 {
    margin-bottom: 3rem;  /* Mehr Abstand nach der Hauptüberschrift */
}

/* Abstand für Feature-Überschrift */
#features h2 {
    margin-bottom: 3rem;  /* Mehr Abstand nach der Features-Überschrift */
}

/* Abstand für den Text über den Textfeldern */
.form-section p:first-of-type {
    margin-bottom: 2rem;  /* Mehr Abstand nach dem Text über den Formularfeldern */
}

/* Abstand zwischen Feature-Sektionen */
.feature-container {
    margin-top: 3rem;  /* Mehr Abstand nach der Features-Überschrift */
}

/* Feature Roadmap Überschrift */
#roadmap h2 {
    margin-bottom: 3rem;  /* Mehr Abstand nach der Roadmap-Überschrift */
}

/* Allgemeiner Abstand zwischen Sektionen */
section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Anpassung des vertikalen Abstands in der Content-Wrapper */
.content-wrapper {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f5f5;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: #2d3748;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #2c7a7b;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.status-card {
    background-color: white;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.status-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
}

.status-title {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.status-message {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.action-button {
    padding: 0.75rem 1.5rem;
    background-color: #2c7a7b;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.action-button:hover {
    background-color: #285e61;
}

.status-subscribed {
    display: none;
}

.status-unsubscribed {
    display: none;
}

.active {
    display: block;
}

/* Footer */
.footer {
    padding: 1.5rem;
    background-color: white;
    text-align: center;
    color: #4a5568;
    font-size: 0.9rem;
}

/* Zusätzliche Styles für den ausgegrauten Button */
.button-disabled {
    background-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.newsletter-info {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--color-dark-teal);
    font-style: italic;
}
