:root {
    --tt-blue: #001931;
    --tt-white: #FFFFFF;
    --tt-gray: #8C8C8C;
    --tt-light-gray: #F0F0F0;
    --tt-secondary-1: #7DA1C4;
    --tt-secondary-2: #99ABB4;
    --tt-secondary-3: #B8C3C9;
    --tt-background: #f5f5f5;
}

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

body {
    font-family: 'TT Norms Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--tt-light-gray);
    color: var(--tt-blue);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main.container {
    flex: 1;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.header {
    background-color: var(--tt-blue);
    color: var(--tt-white);
    padding: 27px 36px;
    margin-bottom: 0;
    box-shadow: none;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.logo {
    height: 18px;
    width: auto;
    max-width: 192.42px;
    flex-shrink: 0;
}

.header h1 {
    font-family: 'TT Norms Pro', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0%;
    margin: 0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: transparent;
    color: var(--tt-blue);
    padding: 16px 12px 16px 6px;
    border-radius: 0;
    text-decoration: none;
    font-family: 'TT Norms Pro', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    text-transform: uppercase;
    margin-bottom: 0;
    transition: opacity 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.back-button:hover {
    opacity: 0.7;
}

.back-button svg {
    width: 32px;
    height: 32px;
}

.page-title {
    font-family: 'TT Norms Pro', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 18px;
    text-align: left;
    text-transform: uppercase;
    color: var(--tt-blue);
    margin: 27px 0 15px 0;
    padding: 0 12px;
}

.tile-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 2rem;
    padding: 10px 12px 0 12px;
}

.guideline-tile {
    background-color: var(--tt-blue);
    color: var(--tt-white);
    padding: 56px 20px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-family: 'TT Norms Pro', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: none;
    min-height: 136px;
    height: 136px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.guideline-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

.guideline-tile.disabled {
    background-color: var(--tt-secondary-3);
    cursor: not-allowed;
    opacity: 0.6;
}

.guideline-tile.disabled:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: var(--tt-secondary-3);
}

.guideline-tile small {
    font-size: 0.875rem;
    font-weight: 400;
    opacity: 0.9;
}

.product-line-tile {
    background-color: var(--tt-blue);
    color: var(--tt-white);
    padding: 40px 20px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    transition: all 0.3s ease;
    box-shadow: none;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'TT Norms Pro', sans-serif;
    line-height: 1.2;
}

.product-line-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

.product-line-tile .brand-line {
    font-weight: 300;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    display: block;
    opacity: 0.8;
}

.product-line-tile .product-line {
    font-weight: 400;
    font-size: 0.95rem;
    display: block;
}

.month-section {
    margin-bottom: 3rem;
}

.month-header {
    font-size: 20px;
    font-weight: 400;
    color: var(--tt-blue);
    margin-bottom: 1.5rem;
    padding: 0 12px 0.75rem;
    border-bottom: 3px solid var(--tt-secondary-1);
    font-family: 'TT Norms Pro', sans-serif;
}

.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    padding: 0 12px;
}

.document-tile {
    background-color: var(--tt-white);
    border: 1px solid var(--tt-secondary-3);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--tt-blue);
    display: flex;
    flex-direction: column;
}

.document-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--tt-secondary-1);
}

.document-thumbnail {
    width: 100%;
    aspect-ratio: 1.79 / 1;
    background: #f4f4f4;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    object-fit: contain;
    display: block;
    margin: 0 auto;
    /* Optional: Rahmen für bessere Sichtbarkeit */
    border: 1px solid #e0e0e0;
}

.document-info {
    padding: 1rem;
    flex-grow: 0;
}

.document-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--tt-blue);
    margin-bottom: 0.25rem;
    font-family: 'TT Norms Pro', sans-serif;
}


.language-flag {
    font-size: 1rem;
    margin-right: 0.4rem;
    vertical-align: middle;
    display: inline;
}

.document-meta {
    font-size: 0.85rem;
    color: var(--tt-secondary-2);
    margin-bottom: 0.25rem;
    font-family: 'TT Norms Pro', sans-serif;
}

.document-size {
    font-size: 0.8rem;
    color: var(--tt-secondary-2);
    font-family: 'TT Norms Pro', sans-serif;
}

.loading {
    text-align: center;
    padding: 3rem;
}

.spinner {
    border: 3px solid var(--tt-secondary-3);
    border-top: 3px solid var(--tt-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: 'TT Norms Pro', sans-serif;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--tt-secondary-2);
    font-family: 'TT Norms Pro', sans-serif;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Mobile Anpassungen (375px und ähnlich) */
@media (max-width: 767px) {
    .header {
        padding: 27px 36px;
    }

    .header-content {
        gap: 12px;
    }

    .logo {
        height: 18px;
    }

    .header h1 {
        font-size: 18px;
    }

    .tile-grid {
        padding: 10px 12px 0 12px;
        gap: 12px;
    }

    .guideline-tile {
        padding: 56px 20px;
        font-size: 18px;
        line-height: 24px;
        min-height: 136px;
        height: 136px;
        border-radius: 10px;
    }

    .page-title {
        font-size: 18px;
        line-height: 18px;
        margin: 27px 0 15px 0;
    }

    .product-line-tile {
        min-height: 100px;
        font-size: 16px;
        padding: 1.5rem 1rem;
    }

    .product-line-tile .brand-line {
        font-size: 16px;
        margin-bottom: 0.2rem;
    }

    .product-line-tile .product-line {
        font-size: 14px;
    }

    .document-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 12px;
    }

    .month-header {
        font-size: 20px;
        padding: 0 12px;
    }
}

/* Tablet Anpassungen */
@media (min-width: 768px) and (max-width: 1024px) {
    .tile-grid {
        padding: 26px 28px 0 28px;
        gap: 12px;
        max-width: 712px;
        margin: 0 auto;
    }

    .page-title {
        padding: 0 28px;
    }

    .document-grid {
        grid-template-columns: repeat(4, 169px);
        gap: 12px;
        padding: 0 28px;
        justify-content: center;
    }
}

/* Desktop Anpassungen */
@media (min-width: 1025px) {
    .tile-grid {
        padding: 100px 28px 0 28px;
        max-width: 800px;
        margin: 0 auto 2rem;
        gap: 16px;
    }

    .back-button ~ .tile-grid {
        padding-top: 36px;
    }

    .back-button {
        justify-content: center;
    }

    .page-title {
        padding: 0 28px 5px 28px;
        text-align: center;
    }

    .guideline-tile {
        padding: 56px 91px;
        font-size: 18px;
    }

    .document-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        padding: 0 24px;
    }
}

.pdf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.pdf-modal.active {
    display: block;
}

.pdf-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pdf-modal-header {
    background-color: var(--tt-blue);
    color: var(--tt-white);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'TT Norms Pro', sans-serif;
}

.pdf-modal-close {
    background: none;
    border: none;
    color: var(--tt-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.pdf-modal-body {
    flex: 1;
    overflow: hidden;
}

.pdf-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
} 