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

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #333;
}

.navbar-logo {
    height: 32px;
    width: auto;
}

.navbar-title {
    font-size: 1.25rem;
    font-weight: 600;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.login-container,
.dashboard-container,
.auth-container {
    text-align: center;
    padding: 4rem 2rem;
}

.auth-container {
    max-width: 400px;
    margin: 0 auto;
}

h1 {
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: #666;
}

button {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #555;
}

.auth-form {
    text-align: left;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

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

.auth-form button {
    width: 100%;
    margin-top: 1rem;
}

.auth-link {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.auth-link a {
    color: #333;
    font-weight: 500;
}

.error-message {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: left;
}

.success-message {
    background-color: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: left;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logout-form {
    display: inline;
}

.logout-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background-color: transparent;
    color: #333;
    border: 1px solid #333;
}

.logout-btn:hover {
    background-color: #333;
    color: white;
}

.stats-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    text-align: left;
}

.stats-count {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.progress-message {
    color: #0369a1;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.actions-section {
    margin-bottom: 2rem;
    text-align: left;
}

.action-form {
    margin-bottom: 1rem;
}

.action-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.action-btn:hover:not(:disabled) {
    background-color: #555;
}

.action-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.7;
}

.action-btn-secondary {
    background-color: #0369a1;
}

.action-btn-secondary:hover:not(:disabled) {
    background-color: #0284c7;
}

.pending-notice {
    font-size: 0.875rem;
    color: #666;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.summary-section {
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    text-align: left;
}

.summary-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.summary-text {
    line-height: 1.8;
    color: #333;
    margin-bottom: 1rem;
    white-space: pre-wrap;
}

.summary-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0;
}

.faq-container {
    padding: 2rem;
}

.faq-container h1 {
    margin-bottom: 2rem;
}

.faq-item {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.faq-question {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: #333;
}

.faq-answer p {
    margin-bottom: 1rem;
    color: #333;
}

.faq-answer ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    color: #333;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.back-link {
    margin-top: 1rem;
}

.back-link a {
    color: #333;
    font-weight: 500;
}

.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator,
form.htmx-request .htmx-indicator {
    display: inline;
}

.htmx-request .btn-text,
form.htmx-request .btn-text {
    display: none;
}

form.htmx-request .action-btn {
    opacity: 0.7;
    cursor: wait;
}

/* GDPR Actions Section */
.gdpr-actions {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    text-align: left;
}

.gdpr-actions h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.gdpr-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.gdpr-buttons .action-btn {
    text-decoration: none;
    text-align: center;
}

.action-btn-danger {
    background-color: #dc2626;
}

.action-btn-danger:hover:not(:disabled) {
    background-color: #b91c1c;
}

/* Delete Confirmation Page */
.delete-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    text-align: left;
}

.delete-container h1 {
    margin-bottom: 1.5rem;
}

.warning-box {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.warning-box p {
    margin-bottom: 0.75rem;
    color: #333;
}

.warning-box ul {
    margin: 1rem 0 0 1.5rem;
}

.warning-box li {
    margin-bottom: 0.25rem;
    color: #333;
}

.delete-form {
    margin-bottom: 1.5rem;
}

.delete-form .form-group {
    margin-bottom: 1.5rem;
}

.cancel-link {
    display: inline-block;
    color: #666;
    text-decoration: none;
}

.cancel-link:hover {
    color: #333;
}

/* Answers List */
.answers-container {
    padding: 2rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    margin-bottom: 0;
}

.page-header .back-link {
    margin-top: 0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.page-header .back-link:hover {
    text-decoration: underline;
}

.answer-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.answer-question {
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: #333;
}

.answer-text {
    line-height: 1.6;
    margin-bottom: 0.75rem;
    white-space: pre-wrap;
    color: #333;
}

.answer-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.answer-actions {
    display: flex;
    gap: 0.75rem;
}

.edit-btn,
.delete-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 4px;
    cursor: pointer;
}

.edit-btn {
    background-color: #f3f4f6;
    color: #333;
    text-decoration: none;
    border: 1px solid #d1d5db;
}

.edit-btn:hover {
    background-color: #e5e7eb;
}

.delete-btn {
    background-color: transparent;
    color: #dc2626;
    border: 1px solid #dc2626;
}

.delete-btn:hover {
    background-color: #dc2626;
    color: white;
}

.no-answers {
    color: #666;
    text-align: center;
    padding: 2rem;
}

/* Edit Answer Page */
.edit-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    text-align: left;
}

.edit-container h1 {
    margin-bottom: 1.5rem;
}

.question-display {
    background-color: #f3f4f6;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: #333;
}

.edit-form {
    margin-bottom: 1.5rem;
}

.edit-form textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    resize: vertical;
}

.edit-form textarea:focus {
    outline: none;
    border-color: #333;
}

/* Loading state */
.loading-message {
    color: #666;
    font-style: italic;
}

/* Footer */
.site-footer {
    margin-top: 3rem;
    padding: 1.5rem 2rem;
    background-color: white;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #666;
}

.footer-content a {
    color: #333;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* Impressum Page */
.impressum-container {
    padding: 2rem;
}

.impressum-container h1 {
    margin-bottom: 2rem;
}

.impressum-section {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.impressum-section h2 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: #333;
}

.impressum-section p {
    margin-bottom: 0.5rem;
    color: #333;
}

.impressum-section p:last-child {
    margin-bottom: 0;
}
