/* Minimalistisches Design - Google Forms / Doodle Style */

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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f5f5;
    color: #202124;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

.login-box {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(60,64,67,0.3), 0 4px 8px rgba(60,64,67,0.15);
    max-width: 450px;
    width: 100%;
}

.login-box h1 {
    color: #202124;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 8px;
    text-align: center;
}

.login-subtitle {
    color: #5f6368;
    font-size: 14px;
    margin-bottom: 32px;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #202124;
    font-weight: 400;
}

.form-group input {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #1a73e8;
}

.btn-login {
    width: 100%;
    padding: 12px 24px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-login:hover {
    background: #1765cc;
}

.login-hint {
    margin-top: 16px;
    text-align: center;
    font-size: 12px;
    color: #5f6368;
}

.error-message {
    background: #fce8e6;
    color: #c5221f;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
    border-left: 4px solid #c5221f;
}

/* Hauptseite */
.container {
    max-width: 1200px;
    margin: 24px auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(60,64,67,0.3), 0 1px 3px rgba(60,64,67,0.15);
}

/* Header */
header {
    padding: 32px 24px;
    border-bottom: 1px solid #dadce0;
    position: relative;
}

header h1 {
    font-size: 32px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 8px;
}

.description {
    font-size: 14px;
    color: #5f6368;
    margin-top: 16px;
}

.logout-link {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.2s;
}

.logout-link:hover {
    background: #f1f3f4;
}

/* Tabelle */
.table-wrapper {
    padding: 24px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

thead {
    background: #f8f9fa;
}

th {
    padding: 12px 8px;
    text-align: left;
    font-weight: 500;
    color: #5f6368;
    border-bottom: 2px solid #dadce0;
    white-space: nowrap;
    font-size: 13px;
}

td {
    padding: 12px 8px;
    border-bottom: 1px solid #dadce0;
    color: #202124;
}

td:first-child {
    font-weight: 500;
}

tr:hover {
    background: #f8f9fa;
}

tr.new-row {
    background: #e8f0fe;
}

tr.new-row:hover {
    background: #d2e3fc;
}

/* Anonymisierte Namen */
.name-anonymous {
    color: #5f6368;
    font-style: italic;
}

/* Formular-Elemente */
input[type="text"],
select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
    background: white;
    min-height: 40px;
}

input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #1a73e8;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235f6368' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Button */
.btn-save {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    min-height: 40px;
}

.btn-save:hover {
    background: #1765cc;
}

.btn-save:disabled {
    background: #dadce0;
    color: #5f6368;
    cursor: not-allowed;
}

/* Nachrichten */
.message {
    margin: 16px 24px;
    padding: 12px 16px;
    border-radius: 4px;
    display: none;
    font-size: 14px;
}

.message.show {
    display: block;
}

.message.success {
    background: #e6f4ea;
    color: #137333;
    border-left: 4px solid #137333;
}

.message.error {
    background: #fce8e6;
    color: #c5221f;
    border-left: 4px solid #c5221f;
}

/* Footer */
footer {
    padding: 24px;
    text-align: center;
    border-top: 1px solid #dadce0;
    background: #f8f9fa;
}

footer p {
    margin: 8px 0;
    color: #5f6368;
    font-size: 12px;
}

.footer-credit {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #dadce0;
    font-size: 12px;
    color: #5f6368;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        margin: 8px;
        border-radius: 0;
    }

    header {
        padding: 24px 16px;
    }

    header h1 {
        font-size: 24px;
        padding-right: 80px;
    }

    .logout-link {
        top: 16px;
        right: 16px;
        font-size: 12px;
        padding: 6px 12px;
    }

    .table-wrapper {
        padding: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        font-size: 13px;
    }

    th, td {
        padding: 10px 6px;
    }

    input[type="text"],
    select {
        font-size: 16px; /* Verhindert Zoom auf iOS */
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 20px;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 8px 4px;
    }
}

/* Print */
@media print {
    body {
        background: white;
    }
    
    .logout-link,
    .btn-save,
    .message {
        display: none;
    }
    
    .container {
        box-shadow: none;
    }
}
