@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #0056b3;
    --secondary-color: #2b2b2b;
    --accent-color: #f7b731;
    --bg-light: #f8f9fa;
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --error-color: #dc3545;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Skip Navigation Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 10px;
    z-index: 9999;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 16px;
    border-radius: 0 0 5px 5px;
    font-weight: 600;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1rem; }

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

a:hover {
    color: #003d82;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 3px;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #004494;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: #1a1a1a;
    color: white;
}

/* --- Header & Navigation --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../hero.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--text-light);
    margin-top: 0; /* Nav is fixed over it */
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    color: var(--text-light);
    font-size: 3.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-features {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-features div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    background: rgba(255,255,255,0.1);
    padding: 10px 15px;
    border-radius: 5px;
    backdrop-filter: blur(5px);
}

/* --- Services / Sections --- */
.service-section {
    background-color: #fff;
}

.service-section:nth-child(even) {
    background-color: var(--bg-light);
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.service-grid.reverse {
    direction: rtl;
}
.service-grid.reverse > * {
    direction: ltr; /* Reset direction for content inside */
}

.service-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-content ul {
    list-style: none;
    margin-top: 20px;
}

.service-content ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.service-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.service-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-img img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    display: block;
    transition: var(--transition);
    object-fit: cover;
}

.service-img:hover img {
    transform: scale(1.05);
}

/* --- FAQ Section --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px; /* arbitrary large value to allow animation */
    opacity: 1;
}

/* --- Ankauf Formular --- */
.form-section {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.form-section .section-title h2 {
    color: var(--text-light);
}

.form-section .section-title h2::after {
    background-color: var(--primary-color);
}

.ankauf-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

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

input[type="file"] {
    padding: 10px;
    background-color: var(--bg-light);
}

.form-feedback {
    display: none;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: 600;
    text-align: center;
}

.form-feedback.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-feedback.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- Contact & Footer --- */
.contact-section {
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    min-width: 250px;
}

.contact-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-card h4 {
    margin-bottom: 10px;
}

footer {
    background-color: var(--secondary-color);
    color: #c0c0c0; /* improved contrast ratio from #aaa */
    padding: 40px 0 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #d4d4d4; /* improved contrast ratio */
}

.footer-links a:hover {
    color: #7eb8ff; /* lighter blue for dark background contrast */
}

.copyright {
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 20px;
}

/* --- Social Share --- */
.social-share {
    margin: 30px 0;
    text-align: center;
}
.social-share h4 {
    color: var(--text-light);
    margin-bottom: 15px;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    background: rgba(255,255,255,0.1);
    transition: var(--transition);
}
.social-links a:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
}
.social-links a.fb:hover { background: #1877F2; }
.social-links a.x-logo:hover { background: #000000; }
.social-links a.wa:hover { background: #25D366; }
.social-links a.in:hover { background: #0A66C2; }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
    .service-grid { grid-template-columns: 1fr; gap: 30px; }
    .service-grid.reverse > * { direction: ltr; } /* Mobile always normal order */
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: span 1; }
}

@media (max-width: 768px) {
    header .container { position: relative; }
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        gap: 15px;
        text-align: center;
    }
    nav ul.show { display: flex; }
    .mobile-menu-btn { display: block; }
    .hero { text-align: center; }
    .hero-features { flex-direction: column; align-items: center; gap: 10px; }
    .hero h1 { font-size: 2.2rem; }
    .ankauf-form { padding: 20px; }
    .contact-info { gap: 20px; }
}

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
