/* RS Immobilien - Main Stylesheet */

:root {
    --primary-color: #1a3a52;
    --secondary-color: #e8a87c;
    --accent-color: #d4733f;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f9f7f4;
    --bg-white: #ffffff;
    --border-color: #e0dbd5;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0f2438 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: white;
}

.logo-box {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(232, 168, 124, 0.3);
}

.company-info h1 {
    font-size: 1.8rem;
    margin: 0;
    color: white;
}

.company-info p {
    font-size: 0.9rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav a:hover {
    color: var(--secondary-color);
}

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

nav a:hover::after {
    width: 100%;
}

.contact-button {
    background: var(--secondary-color);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.contact-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 115, 63, 0.3);
}

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

.nav-menu a,
.footer-section a,
.contact-info a,
.details a,
.service-link {
    overflow-wrap: anywhere;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0f2438 100%);
    color: white;
    padding: 5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.hero-content {
    text-align: center;
}

.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo img {
    width: min(220px, 55vw);
    height: auto;
}

.hero h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero h1,
.hero p,
.contact-section h2,
.contact-info h3,
.contact-label,
.form-group label,
.footer-section h3,
.footer-section p,
.footer-section a,
.footer-bottom {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 115, 63, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

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

section {
    padding: 4rem 2rem;
    margin: 2rem 0;
}

section.alt-bg {
    background-color: var(--bg-white);
}

/* Services Grid */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border-top: 4px solid var(--secondary-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.service-link:hover {
    color: var(--accent-color);
}

/* Details Section */
.details {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.details h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

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

.details li {
    padding: 0.7rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-light);
}

.details li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 2rem 0;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-image {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    color: white;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about-image-placeholder {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.qualifications {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.qualifications h3 {
    margin-bottom: 1.5rem;
}

.qual-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.qual-item:last-child {
    border-bottom: none;
}

.qual-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.qual-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Certificates */
.certificates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.certificate {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.certificate:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.certificate-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.certificate h3 {
    font-size: 1rem;
}

.certificate p {
    font-size: 0.85rem;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--primary-color), #0f2438);
    color: white;
    padding: 4rem 2rem;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
}

.contact-section h2 {
    color: white;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.contact-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.contact-info h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-label {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

.contact-info p {
    margin: 0;
    color: white;
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: white;
}

/* Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

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

.form-group button {
    background: var(--secondary-color);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.form-group button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 115, 63, 0.3);
}

.contact-form .form-group button,
.contact-button,
.btn-primary {
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.contact-form .form-group button,
.contact-button,
.btn-primary,
.btn-secondary {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.contact-form .form-group button:focus-visible,
.contact-button:focus-visible,
.btn:focus-visible,
nav a:focus-visible,
.nav-menu a:focus-visible {
    outline: 3px solid rgba(232, 168, 124, 0.75);
    outline-offset: 3px;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 2rem 1rem;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

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

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 0 1rem;
    }

    .logo {
        justify-content: center;
        text-align: center;
    }

    .nav-menu,
    nav {
        width: 100%;
    }

    .nav-menu ul,
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem 1rem;
    }

    .nav-menu li,
    nav li {
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        min-width: 0;
        width: 100%;
        margin-top: 0.5rem;
        box-shadow: none;
        border-radius: 6px;
        background: rgba(15, 36, 56, 0.95);
    }

    .dropdown:hover .dropdown-menu {
        display: none !important;
    }

    .dropdown-menu.active {
        display: block !important;
    }

    .dropdown-menu a {
        padding: 0.75rem 1rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .container,
    .contact-container,
    .footer-container,
    .hero-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .hero {
        gap: 1.5rem;
        padding: 3rem 1rem;
    }

    .hero-logo img {
        width: min(160px, 45vw);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .contact-button {
        width: 100%;
        text-align: center;
    }

    .about-grid,
    .contact-grid,
    .services,
    .certificates,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .details,
    .contact-info,
    .contact-form,
    .qualifications,
    .certificate,
    .service-card {
        padding: 1.25rem;
    }

    .footer-content {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.75rem 0;
    }

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

    section {
        padding: 2.5rem 0.75rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    h1 {
        font-size: 1.85rem;
    }

    h2 {
        font-size: 1.45rem;
    }

    .hero {
        padding: 2.5rem 0.75rem;
        gap: 1.25rem;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .logo {
        gap: 0.75rem;
    }

    .logo img {
        width: 42px !important;
        height: 42px !important;
    }

    .logo span {
        font-size: 1rem !important;
        margin-left: 0 !important;
    }

    .nav-menu ul,
    nav ul {
        gap: 0.5rem 0.75rem;
    }

    .nav-menu a,
    nav a {
        font-size: 0.95rem;
    }

    .dropdown-toggle::after {
        font-size: 0.6rem;
    }

    .details,
    .contact-info,
    .contact-form,
    .qualifications,
    .certificate,
    .service-card {
        padding: 1rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group button {
        font-size: 0.95rem;
    }

    .footer-bottom {
        font-size: 0.85rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

.mt-3 {
    margin-top: 2rem;
}

.mb-3 {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Dropdown Navigation */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0f2438 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
}

.nav-menu {
    list-style: none;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: inline-block;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.dropdown-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0f2438 100%);
    list-style: none;
    min-width: 200px;
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    z-index: 1001;
}

.dropdown-menu.active {
    display: block !important;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.dropdown-menu a:hover {
    background: rgba(232, 168, 124, 0.1);
    color: var(--secondary-color);
}

.dropdown:hover .dropdown-menu {
    display: block !important;
}

/* Print Styles */
@media print {
    header,
    .cta-buttons,
    .contact-form,
    nav {
        display: none;
    }

    body {
        background: white;
    }
}
