/* Basis Reset und Typografie */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 6px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

::-webkit-scrollbar-thumb:active {
    background: #718096;
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f8f9fa;
}

/* Für dunklere Bereiche (Admin, Footer) */
.admin-area ::-webkit-scrollbar-track,
.site-footer ::-webkit-scrollbar-track {
    background: #1a252f;
}

.admin-area ::-webkit-scrollbar-thumb,
.site-footer ::-webkit-scrollbar-thumb {
    background: #4a5568;
}

.admin-area ::-webkit-scrollbar-thumb:hover,
.site-footer ::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

html {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2c3e50;
    background-color: #ffffff;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Header */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 1.5rem 0;
    flex-shrink: 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 22px;
    font-weight: 600;
    text-decoration: none;
    color: #2c3e50;
    letter-spacing: -0.5px;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    text-decoration: none;
    color: #6c757d;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.main-nav a:hover,
.main-nav .active a {
    color: #2c3e50;
}

/* Main Content */
.site-content {
    flex: 1 0 auto;
    padding: 4rem 0 5rem;
    background-color: #fff;
    width: 100%;
}

h1, h2, h3 {
    margin-bottom: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.3;
}

h1 { 
    font-size: 2.2rem; 
    margin-bottom: 1.5rem;
}
h2 { 
    font-size: 1.7rem; 
    margin-top: 2rem;
}
h3 { 
    font-size: 1.3rem; 
}

p {
    margin-bottom: 1.2rem;
    color: #4a5568;
}

/* Links */
a {
    color: #3182ce;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Footer */
.site-footer {
    background-color: #f8f9fa;
    color: #6c757d;
    padding: 3rem 0 2rem;
    flex-shrink: 0;
    margin-top: auto;
    border-top: 1px solid #e8e8e8;
}

/* Dark Footer Variant */
.site-footer.dark-footer,
.site-footer.admin-footer {
    background-color: #2d3748;
    color: #e2e8f0;
    border-top-color: #4a5568;
}

.dark-footer .footer-column h3,
.dark-footer .footer-column h4,
.admin-footer .footer-column h3,
.admin-footer .footer-column h4 {
    color: #f7fafc;
}

.dark-footer .footer-column a,
.admin-footer .footer-column a {
    color: #cbd5e0;
}

.dark-footer .footer-column a:hover,
.admin-footer .footer-column a:hover {
    color: #f7fafc;
}

.dark-footer .footer-bottom,
.admin-footer .footer-bottom {
    border-top-color: #4a5568;
    color: #a0aec0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-column h3,
.footer-column h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #2c3e50;
    text-decoration: none;
}

.footer-column p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e8e8e8;
    color: #868e96;
    font-size: 0.875rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.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);
}

button {
    background-color: #2c3e50;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

button:hover {
    background-color: #1a252f;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Utility Classes */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.service-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-item h3 {
    margin-bottom: 0.75rem;
}

/* Content Styling */
.features ul {
    list-style: none;
    margin: 1.5rem 0;
}

.features li {
    padding: 0.5rem 0;
    color: #4a5568;
}

.test-links {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e8e8e8;
}

/* Contact Page */
.contact-info {
    margin-bottom: 3rem;
}

.contact-info ul {
    list-style: none;
    margin: 1rem 0;
}

.contact-info li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.contact-form {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.contact-form h2 {
    margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 1.2rem 0;
    }
    
    .site-header .container {
        flex-direction: column;
        gap: 1.2rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: center;
    }
    
    .site-content {
        padding: 3rem 0 4rem;
    }
    
    h1 {
        font-size: 1.9rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}