/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #ffffff;
    font-weight: 400;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    border-color: #e2e8f0;
    background-color: #f7fafc;
}

.lang-btn.active {
    border-color: #3182ce;
    background-color: #ebf8ff;
}

.flag-icon {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* Announcement Section */
.announcement-section {
    margin-bottom: 3rem;
}

.announcement-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.announcement-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.announcement-text {
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.8;
}

.announcement-text p {
    margin-bottom: 1.5rem;
}

.important-info {
    background-color: #f7fafc;
    border-left: 4px solid #3182ce;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.important-info h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.important-info ul {
    list-style: none;
    padding-left: 0;
}

.important-info li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.important-info li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #38a169;
    font-weight: bold;
}

.signature {
    margin-top: 3rem;
    text-align: right;
    font-style: italic;
    border-top: 1px solid #e2e8f0;
    padding-top: 2rem;
}

.signature .date {
    color: #718096;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    background-color: #f7fafc;
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 3rem;
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-wrapper h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-form-wrapper p {
    text-align: center;
    color: #4a5568;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Honeypot field (hidden) */
.honeypot {
    position: absolute;
    left: -9999px;
    visibility: hidden;
}

.submit-btn {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #2c5282 0%, #2a4a7a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-status {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 500;
}

.form-status.success {
    background-color: #f0fff4;
    color: #38a169;
    border: 1px solid #9ae6b4;
}

.form-status.error {
    background-color: #fed7d7;
    color: #e53e3e;
    border: 1px solid #feb2b2;
}

/* Legal Section (Impressum) */
.legal-section {
    max-width: 800px;
    margin: 0 auto;
}

.back-link {
    margin-bottom: 2rem;
}

.back-link a {
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: #2c5282;
    text-decoration: underline;
}

.legal-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin: 1.5rem 0 0.75rem 0;
}

.legal-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a5568;
    margin: 1.25rem 0 0.75rem 0;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.company-address {
    background-color: #f7fafc;
    padding: 1.5rem;
    border-left: 4px solid #3182ce;
    margin: 1rem 0;
    font-style: normal;
    border-radius: 0 8px 8px 0;
}

/* Footer */
.footer {
    background-color: #2d3748;
    color: #cbd5e0;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-nav a {
    color: #cbd5e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }

    .header-content {
        padding: 0.75rem 0;
    }

    .company-name {
        font-size: 1.25rem;
    }

    .announcement-content h1 {
        font-size: 1.875rem;
    }

    .announcement-text {
        font-size: 1rem;
    }

    .contact-section {
        padding: 1.5rem;
        margin: 2rem -0.75rem 0 -0.75rem;
        border-radius: 0;
    }

    .contact-form-wrapper h2 {
        font-size: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .legal-content h1 {
        font-size: 2rem;
    }

    .legal-content h2 {
        font-size: 1.25rem;
    }

    .flag-icon {
        width: 20px;
        height: 15px;
    }

    .lang-btn {
        padding: 0.375rem;
    }
}

@media (max-width: 480px) {
    .announcement-content h1 {
        font-size: 1.5rem;
    }

    .important-info {
        padding: 1rem;
        margin: 1.5rem -0.75rem;
    }

    .contact-section {
        padding: 1rem;
    }

    .contact-form-wrapper h2 {
        font-size: 1.375rem;
    }

    .submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .language-switcher,
    .contact-section {
        display: none;
    }

    .main-content {
        padding: 0;
    }

    .announcement-content {
        max-width: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000000;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .header {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .form-group input,
    .form-group textarea {
        border-width: 3px;
    }

    .submit-btn:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}