:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --primary-color: #4a6fa5;
    --secondary-color: #e0e7ff;
    --accent-color: #2d4a78;
    --input-bg: #f5f7fa;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --footer-bg: #f5f7fa;
}

[data-theme="dark"] {
    --bg-color: #1a1a2e;
    --text-color: #e6e6e6;
    --primary-color: #4a6fa5;
    --secondary-color: #293b5f;
    --accent-color: #8ebbff;
    --input-bg: #252941;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --footer-bg: #16213e;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo-container {
    margin-bottom: 1.5rem;
}

.logo {
    max-width: 180px;
    height: auto;
}

h1 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

main {
    flex: 1;
}

.redirect-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

input {
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid var(--secondary-color);
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
}

button {
    padding: 1rem;
    border-radius: 8px;
    border: none;
    background-color: var(--primary-color);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    font-weight: 600;
}

button:hover {
    background-color: var(--accent-color);
}

button:active {
    transform: translateY(1px);
}

.message {
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 500;
    min-height: 2rem;
}

.error {
    color: #e74c3c;
}

.success {
    color: #27ae60;
}

footer {
    margin-top: 3rem;
    text-align: center;
    padding: 1.5rem 0;
    background-color: var(--footer-bg);
    border-radius: 8px;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
}

.theme-toggle button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--box-shadow);
}

.moon, .sun {
    font-size: 1.2rem;
}

body[data-theme="light"] .moon {
    display: inline;
}

body[data-theme="light"] .sun {
    display: none;
}

body[data-theme="dark"] .moon {
    display: none;
}

body[data-theme="dark"] .sun {
    display: inline;
}

@media (min-width: 768px) {
    .redirect-form {
        flex-direction: row;
    }
    
    input {
        flex: 1;
    }
    
    button {
        flex: 0 0 auto;
    }
}

/* Additional styles for Impressum page */
.impressum-content {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    line-height: 1.8;
}

.impressum-content p {
    margin-bottom: 0.5rem;
}

.back-link {
    margin-top: 2rem;
    text-align: center;
}

.back-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

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