/* styles.css */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1, h2 {
    color: #2c3e50;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.tab:hover {
    background-color: #e8e8e8;
}

.tab.active {
    background-color: white;
    border-bottom: 1px solid white;
    font-weight: bold;
    color: #3498db;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"], 
input[type="date"], 
textarea, 
select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 10px;
    font-size: 14px;
}

input[type="checkbox"] {
    margin-right: 8px;
}

textarea {
    height: 100px;
    resize: vertical;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

.result {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    min-height: 200px;
}

.hidden {
    display: none;
}

.company-logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.company-logo-preview {
    max-width: 300px;
    max-height: 100px;
    display: none;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.logo-options {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.leistung-container, 
.verhalten-container, 
.benotung-container {
    border: 1px solid #e0e0e0;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    background-color: #f9f9f9;
}

h3 {
    margin-top: 0;
    color: #3498db;
}

.rating-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.rating-item {
    flex: 1;
    min-width: 200px;
}

.print-button {
    margin-top: 20px;
    text-align: right;
}

/* Zeugnis-spezifische Stile */
.zeugnis-container {
    font-family: 'Times New Roman', Times, serif;
    font-size: 12pt;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.zeugnis-header {
    text-align: center;
    font-weight: bold;
    font-size: 16pt;
    margin: 30px 0;
    text-decoration: underline;
}

.zeugnis-footer {
    margin-top: 50px;
}

.signature-line {
    border-top: 1px solid black;
    width: 200px;
    margin: 50px 0 20px 0;
}

.company-logo-print {
    text-align: center;
    margin-bottom: 20px;
}

.company-logo-print img {
    max-height: 100px;
    max-width: 300px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 10px;
    }
    
    .rating-group {
        flex-direction: column;
    }
    
    .rating-item {
        min-width: 100%;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab {
        margin-right: 0;
        margin-bottom: 5px;
        border-radius: 5px;
    }
}

/* Druckstile */
@media print {
    body {
        background-color: white;
        color: black;
    }
    
    .container {
        box-shadow: none;
        padding: 0;
        background-color: white;
        max-width: none;
    }
    
    .tabs, 
    button, 
    .form-group, 
    form, 
    h1, 
    h2 {
        display: none;
    }
    
    .result {
        border: none;
        padding: 0;
        margin: 0;
        min-height: auto;
    }
    
    .print-button {
        display: none;
    }
    
    .hidden {
        display: block;
    }
    
    .zeugnis-container {
        font-family: 'Times New Roman', Times, serif;
        font-size: 12pt;
        line-height: 1.5;
        padding: 0;
        max-width: none;
    }
    
    .zeugnis-header {
        font-size: 16pt;
        margin: 20px 0;
    }
    
    .zeugnis-footer {
        margin-top: 40px;
    }
    
    .signature-line {
        margin: 40px 0 15px 0;
    }
}