* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    padding: 1rem;
    margin: 0 auto;
    background: #fff;
    color: #000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
}

input {
    padding: 0.6rem;
    font-family: 'Inter', sans-serif;
    border: 2px solid #000;
    background: #fff;
    font-size: 1rem;
    border-radius: 4px;
    width: 100%;
}

button {
    cursor: pointer;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s;
    font-weight: 600;
    max-width: 300px;
}

button:hover {
    background-color: #000;
    color: #fff;
}

.calendar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex: 1;
    padding: 0.5rem;
}

#weeks-calendar {
    display: grid;
    grid-template-columns: repeat(26, 1fr);
    gap: 2px;
    width: 100%;
    max-width: 520px; /* 26 Kreise * (18px + 2px Abstand) */
    margin: 0 auto;
}

.week {
    width: 18px;
    height: 18px;
    border: 1px solid #000;
    border-radius: 50%;
    margin: 0 auto;
}

.week.filled {
    background-color: #000 !important;
}

.quote {
    text-align: center;
    font-style: italic;
    padding: 1rem;
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    font-weight: 500;
}

@media (min-width: 640px) {
    .input-section {
        flex-direction: row;
        gap: 2rem;
    }

    .input-group {
        flex-direction: row;
        width: auto;
    }

    body {
        padding: 2rem;
    }

    #weeks-calendar {
        grid-template-columns: repeat(52, 1fr);
        max-width: 1040px; /* 52 Kreise * (18px + 2px Abstand) */
    }
}

@media print {
    @page {
        size: A4 landscape;
        margin: 15mm;
    }

    body {
        padding: 0;
        min-height: 0;
        height: auto;
    }

    .container {
        height: auto;
        gap: 0;
    }

    .input-section {
        display: none;
    }

    .calendar-container {
        padding: 0;
        height: auto;
    }

    #weeks-calendar {
        grid-template-columns: repeat(52, 1fr);
        gap: 1.5px;
        width: 267mm; /* A4 Breite (297mm) - 2 * Rand (15mm) */
        max-width: none;
        height: auto;
    }

    .week {
        width: 4.5mm;
        height: 4.5mm;
        border: 0.3mm solid #000;
    }

    .week.filled {
        background-color: #000 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    h1 {
        font-size: 18pt;
        margin-bottom: 15mm;
    }

    .quote {
        font-size: 10pt;
        padding: 15mm 0 0 0;
    }
} 