/* ===================== RESET & BASE ===================== */
html {
    box-sizing: border-box;
    scroll-behavior: smooth;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

*, *:before, *:after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Quattrocento Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f1e4;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Skip-Link sichtbar machen */
.skip-link {
    position: absolute;
    top: -40px;
    left: 10px;
    background: #2c5aa0;
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 10px;
}

/* Fokus-Stile für interaktive Elemente */
a:focus, button:focus {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
}

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

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Quattrocento', Georgia, serif;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #2c5aa0;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1a3d73;
}

/* ===================== LAYOUT ===================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-left, .col-right {
    flex: 1 1 100%;
    padding: 0 15px;
    min-width: 0; /* Fix für Flexbox Overflow */
}

.col-left { flex: 0 0 40%; }
.col-right { 
    flex: 0 0 60%; 
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Verschiebt das Bild und die Bildunterschrift nach rechts */
}

/* ===================== HEADER ===================== */
.header {
    padding: 8px 0;
    background: #f8f1e4; /* Beigeton */
    box-shadow: none; /* Schattenlinie bleibt entfernt */
    border-bottom: none; /* Strich entfernen */
    transition: background 0.3s ease; /* Optional: Sanfter Übergang */
    width: 100%; /* Passt die Breite des Headers an den Viewport an */
}

.header-bottom {
    background: #f8f1e4; /* Beigeton */
}

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

.nav-left {
    order: 2; /* Telefonnummer nach rechts verschieben */
}

.branding {
    order: 1; /* Logo nach links verschieben */
}

.nav-left a {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c5aa0;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-left a:hover {
    background-color: #2c5aa0;
    color: white;
}

.branding {
    text-align: center;
    flex-grow: 1;
}

.logo {
    max-height: 60px;
    max-width: 250px;
    margin-left: 50px; /* Verschiebt das Logo nach rechts */
}

.header-logo {
    display: flex;
    justify-content: center; /* Zentriert das Logo horizontal */
    align-items: center; /* Zentriert das Logo vertikal */
    margin-left: 0px; /* Verschiebt das Logo 20px nach rechts */
}

.tagline {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

/* ===================== MOBILE MENU ===================== */
.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    border: none;
    background: none;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Fix für iOS vh */
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    display: none;
}

.mobile-overlay.active {
    display: block;
}

.mobile-menu {
    position: absolute;
    right: 0;
    top: 0;
    width: 300px;
    height: 100%;
    background: white;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-overlay.active .mobile-menu {
    transform: translateX(0);
}

.mobile-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-nav {
    margin-top: 60px;
}

.mobile-nav a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    color: #333;
}

/* ===================== SECTIONS ===================== */
.section {
    padding: 80px 0;
    scroll-margin-top: 120px; /* Fix für Fixed Header */
    margin-top: 0; /* Entfernt Abstand zwischen Header und erster Sektion */
}

.section:first-child {
    margin-top: 0;
}

.about-fadil {
    background: #f8f1e4; /* Beigeton */
    margin-top: 80px !important;
}

.fadil-photo {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.fadil-image {
    margin-left: auto; /* Stellt sicher, dass das Bild nach rechts ausgerichtet bleibt */
}

.image-caption {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    text-align: center;
    margin-top: 10px;
    font-weight: normal; /* Sicherstellen, dass der Text nicht fett ist */
}

#kontakt {
    background: #f8f1e4; /* Beigeton */
}

/* ===================== SERVICES ===================== */
.services-intro {
    display: flex;
    align-items: flex-start;
    margin-bottom: 60px;
    gap: 40px;
}

.service-icon {
    flex: 0 0 150px;
}

.service-icon img {
    width: 100%;
    height: auto;
}

.service-content {
    flex: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-item {
    text-align: center;
    padding: 20px;
}

.service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    display: block; /* Stellt sicher, dass das Bild als Blockelement behandelt wird */
    margin-left: auto; /* Verschiebt das Bild nach rechts */
    margin-right: auto; /* Optional: Zentriert das Bild horizontal, falls nötig */
}

.service-item h3 {
    margin-bottom: 15px;
    color: #2c5aa0;
}

.service-item ul {
    text-align: left;
    margin-top: 15px;
    padding-left: 20px;
}

.service-item li {
    margin-bottom: 8px;
}

/* Services Backgrounds */
.services-window { background: #fff; }
.services-handyman { background: #f8f9fa; }

/* ===================== TESTIMONIAL ===================== */
.testimonial {
    background: #3b5998;
    padding: 60px 0;
    color: white; /* Ensures all text inside the testimonial section is white */
}

.testimonial-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-image {
    flex: 0 0 300px;
}

.testimonial-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.testimonial-text {
    flex: 1;
    color: white; /* Ensures the text in the testimonial-text section is white */
}

blockquote {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6;
    color: white; /* Ensures the blockquote text is white */
}

cite {
    font-style: normal;
    font-weight: 600;
    color: white;
}

/* ===================== ABOUT & CONTACT ===================== */
.about { background: #f8f9fa; }

.contact { background: #fff; }

.contact-section {
    background: #f8f1e4; /* Beigeton */
}

.map-placeholder {
    background: #e9ecef;
    padding: 60px 20px;
    text-align: center;
    border-radius: 10px;
    color: #666;
}

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #2c5aa0;
    color: white;
}

.btn-primary:hover {
    background: #1a3d73;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44,90,160,0.3);
    will-change: transform;
}

/* ===================== FOOTER ===================== */
.footer {
    background: #3b5998;
    color: white;
    padding: 60px 0 40px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo img { width: 80px; }

.footer a {
    color: white; /* Setzt die Textfarbe der Links im Footer auf Weiß */
    text-decoration: none; /* Entfernt die Unterstreichung */
}

.footer a:hover {
    color: #ccc; /* Optional: Ändert die Farbe beim Hover auf ein helleres Grau */
}

.footer-info {
    display: flex;
    gap: 60px;
    text-align: left;
}

.business-contact a { color: white; display:block; margin-bottom:5px; }
.business-contact a:hover { color:#ccc; }

/* ===================== SIDE NAVIGATION ===================== */
.side-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

.nav-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item {
    display: block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(44,90,160,0.3);
    transition: all 0.3s ease;
    position: relative;
    text-indent: -9999px;
    overflow: hidden;
}

.nav-item.active,
.nav-item:hover {
    background: #2c5aa0;
    transform: scale(1.2);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
    .side-nav { display: none; }
    .services-grid { grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap:30px; }
}

@media (max-width: 768px) {
    .mobile-toggle { display:flex; }
    .nav-left { display:none; }
    .section { padding: 60px 0; }
    .row { flex-direction: column; }
    .col-left, .col-right { margin-bottom: 30px; }
    .services-intro { flex-direction: column; text-align:center; }
    .testimonial-content { flex-direction: column; text-align:center; }
    .header {
        padding: 5px 0;
    }
    .logo {
        max-height: 40px;
    }
}

@media (max-width: 480px) {
    .section { padding: 40px 0; }
    .logo { max-height:50px; }
    .btn { padding:10px 25px; font-size:0.9rem; }
}

/* ===================== ANIMATION ===================== */
.fade-in { opacity:0; transform:translateY(30px); transition: all 0.6s ease; }
.fade-in.visible { opacity:1; transform:translateY(0); }

/* ===================== PRINT ===================== */
@media print {
    .header, .footer, .side-nav, .mobile-toggle { display:none; }
    .section { margin-top:0; padding:20px 0; }
    body { font-size:12pt; line-height:1.4; }
}
