/* ============================================= */
/* SCHRIFTARTEN DEFINITION */
/* ============================================= */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto_regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* PERFORMANCE: Verhindert FOIT */
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto_bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap; /* PERFORMANCE: Verhindert FOIT */
}


/* ============================================= */
/* GRUNDLAGEN & VARIABLEN */
/* ============================================= */
:root {
    --font-family: 'Roboto', 'Arial', sans-serif;
    --container-width: 1100px;
    --section-padding: 60px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 20px; 
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: #ffffff;
    color: #ffffff; 
    font-weight: normal; 
}

/* ACCESSIBILITY: Klare Fokus-Indikatoren für Tastaturnutzer */
:focus-visible {
    outline: 3px solid #ffcc00; /* Hoher Kontrast */
    outline-offset: 2px;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.about-container,
.services-section .container,
.footer-container {
    position: relative;
    z-index: 2; 
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: bold; 
}

h2 {
    font-size: 2.5rem; 
    text-align: center;
}

a {
    text-decoration: none;
    color: #ffffff; 
    font-weight: bold; 
}

ul {
    list-style: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Responsive Grundlagen */
@media (max-width: 1024px) {
    * {
        font-size: 19px; 
    }
    h2 {
        font-size: 2.2rem; 
    }
}
@media (max-width: 768px) {
    * {
        font-size: 18px; 
    }
    h2 { 
        font-size: 2rem; 
    }
}


/* ============================================= */
/* HEADER & NAVIGATION */
/* ============================================= */
.main-header {
    background-color: #003c54; 
    padding: 10px 0;
    position: relative;
    z-index: 10; 
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 60px; 
    width: auto;
}

.header-divider {
    flex-grow: 1; 
    margin: 0 2rem;
    height: 2px;
    background-color: #ffffff;
}

.main-nav {
    position: fixed; 
    top: 1rem;
    right: 20px; 
    z-index: 1001; 
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: #ffffff;
    transition: color 0.3s ease;
    font-size: 1.2rem; 
}

.nav-links a:hover {
    color: #003c54; 
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    position: fixed; 
    top: 1rem;
    right: 20px;
    z-index: 1002; 
}

@media (max-width: 1024px) {
    .nav-links a {
        font-size: 1.1rem; 
    }
    .main-nav {
        top: 1.5rem;
    }
    .hamburger {
        top: 1.5rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        top: 0; 
        right: 0;
        width: 100%;
        position: fixed; 
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute; 
        top: 0; 
        left: 0;
        width: 100%;
        background: rgba(0, 137, 191, 1.0); 
        padding: 1rem 0;
        padding-top: 60px; 
        text-align: center;
    }

    .nav-links a {
        font-size: 1.25rem; 
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 0.5rem 0;
    }

    .hamburger {
        display: block;
        top: 1rem; 
        right: 20px;
    }
}


/* ============================================= */
/* HERO SEKTION */
/* ============================================= */
.hero-section {
    height: 100vh;
    background: url('../bilder/hero.webp') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden; 
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-logo {
    position: absolute;
    top: 50%; 
    left: 50%; 
    z-index: 0; 
    opacity: 0; 
    transform: translate(-50%, -50%); 
    animation: flyInLogo 0.6s 0.5s ease-out forwards; 
}

.hero-logo img {
    height: 800px; 
    width: auto; /* Performance: Aspect Ratio erhalten */
    opacity: 1; 
    transform: rotate(0deg); 
}

@keyframes flyInLogo {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) translateX(-100vw); 
    }
    to {
        opacity: 1; 
        transform: translate(-50%, -50%) translateX(0);
    }
}

.hero-content {
    position: relative;
    z-index: 1; 
}

.hero-content h1 {
    font-size: 7rem; 
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 3rem; 
    font-weight: bold; 
}

@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 5rem; 
    }
    .hero-content p {
        font-size: 2.2rem; 
    }
    .hero-logo img {
        height: 600px; 
    }
}
@media (max-width: 768px) {
    .hero-content h1 { 
        font-size: 2.5rem; 
    }
    .hero-content p { 
        font-size: 1.2rem; 
    }
    .hero-logo img {
        height: 400px; 
    }
}


/* ============================================= */
/* ÜBER MICH SEKTION */
/* ============================================= */
.about-section {
    padding: var(--section-padding);
    background: #0089bf; 
    color: #ffffff; 
    position: relative;
    overflow: hidden;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 500px;
    height: auto;
    border-radius: 15px;
    background-color: #e0e0e0;
}

.about-text {
    flex: 2;
}

.about-text h2 {
    text-align: left;
}

@media (max-width: 1024px) {
    .about-text p {
        font-size: 1.05rem; 
    }
}
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: left;
    }
    .about-text h2 { 
        text-align: center; 
    }
    .about-text p {
        font-size: 1rem; 
    }
    .about-image img {
        width: 400px;
        height: auto;
        border-radius: 15px;
        background-color: #e0e0e0;
    }
}


/* ============================================= */
/* LEISTUNGEN SEKTION */
/* ============================================= */
.services-section {
    padding: var(--section-padding);
    background-color: #003c54; 
    color: #ffffff; 
    position: relative; 
}

.accordion-item {
    background-size: cover;
    background-position: center top;
    position: relative;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 15px;
}

.accordion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

.accordion-item:hover::before {
    background: rgba(0, 60, 84, 0.6);
}

#pflasterarbeiten { background-image: url('../bilder/pflasterarbeiten.webp'); }
#steinmauern { background-image: url('../bilder/steinmauern.webp'); }
#fliesen { background-image: url('../bilder/fliesen.webp'); }
#treppen { background-image: url('../bilder/treppen.jpeg'); }

/* ACCESSIBILITY: Button für Tastatur-Steuerung */
.accordion-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: center;
}

.accordion-header h3 {
    font-size: 2.5rem; 
    margin: 0;
    color: #ffffff; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out; 
    background-color: #003c54; 
    color: #ffffff; 
    padding: 0 2rem;
    position: relative; 
}

.accordion-content ul {
    margin: 1rem 0 1rem 1rem; 
    padding-left: 0; 
}

.accordion-content ul li {
    position: relative;
    padding-left: 1.5rem; 
    margin-bottom: 0.5rem;
}

.accordion-content ul li::before {
    content: '•'; 
    color: #0089bf; 
    font-weight: bold;
    font-size: 1.2rem; 
    position: absolute;
    left: 0;
    top: 0;
}

.accordion-content p {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.accordion-item.active .accordion-content {
    max-height: 1500px; /* Erhöht für Sicherheit bei viel Text */
    padding: 2rem; 
    visibility: visible; /* A11y Support */
}

@media (max-width: 1024px) {
    .accordion-header h3 {
        font-size: 2.2rem; 
    }
    .accordion-content p {
        font-size: 1.05rem; 
    }
}
@media (max-width: 768px) {
    .accordion-header h3 {
        font-size: 2rem; 
    }
    .accordion-content p {
        font-size: 1rem; 
    }
}


/* ============================================= */
/* GALERIE SEKTION (SLIDER) */
/* ============================================= */
.gallery-section {
    padding: var(--section-padding);
    background-color: #0089bf; 
    color: #ffffff;
    position: relative;
    overflow: hidden; 
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../bilder/texture.jpeg');
    opacity: 0.2;
    z-index: 1; 
}

.gallery-section .container {
    position: relative;
    z-index: 2;
}

.slider-container {
    max-width: 900px; 
    margin: 0 auto;
    position: relative; 
    overflow: hidden; 
    border-radius: 15px; 
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex-shrink: 0; 
    width: 100%; 
    position: relative;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover; 
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(0, 60, 84, 0.7); 
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    width: 50px;
    height: 50px;
    font-size: 1.5rem; 
    transition: background-color 0.3s ease;
    display: flex; 
    justify-content: center;
    align-items: center;
}

.slider-btn:hover {
    background-color: rgba(0, 137, 191, 0.9); 
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5); 
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #ffffff; 
}

@media (max-width: 768px) {
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .slider-dots {
        bottom: 10px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}


/* ============================================= */
/* KONTAKT SEKTION */
/* ============================================= */
.contact-section {
    padding: var(--section-padding);
    background: #003c54; 
    color: #ffffff; 
    position: relative;
    overflow: hidden;
}

.contact-section h2,
.contact-form,
.contact-details {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #0089bf; 
    border-radius: 15px;
    background-color: #ffffff; 
    color: #003c54; 
    font-family: var(--font-family);
    font-size: 1rem;
}

.submit-btn {
    display: inline-block;
    background: #0089bf; 
    color: #ffffff; 
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
    font-weight: bold; 
}

.submit-btn:hover {
    background: #0073a0; 
    color: #003c54; 
}

.contact-details {
    text-align: center;
}

.contact-details p {
    margin-bottom: 0.5rem;
    font-size: 40px;
}

.contact-details a {
    color: #ffffff; 
    font-size: 40px;
}

.contact-details a:hover {
    color: #0089bf; 
}

@media (max-width: 1024px) {
    .contact-details p {
        font-size: 30px; 
    }
    .contact-details a {
        color: #ffffff;
        font-size: 30px;
    }
}
@media (max-width: 768px) {
    .contact-details p {
        font-size: 30px; 
    }
    .contact-details a {
        color: #ffffff;
        font-size: 25px;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}


/* ============================================= */
/* FOOTER */
/* ============================================= */
.main-footer {
    padding: 40px 0;
    background: #0089bf; 
    color: #ffffff; 
    text-align: center;
    position: relative; 
}

.footer-logo img {
    height: 150px;
    margin-bottom: 20px;
}

.footer-links-wrapper {
    display: flex;
    justify-content: center;
    gap: 4rem;
    max-width: 500px;
    margin: 0 auto;
}

.footer-links-column ul {
    text-align: left;
}

.footer-links-column li {
    margin-bottom: 0.5rem;
}

.footer-links-column a {
    color: #ffffff; 
}

.footer-links-column a:hover {
    text-decoration: underline;
    color: #003c54; 
    text-decoration: none;
}

@media (max-width: 1024px) {
    .footer-links-column a {
        font-size: 1.05rem; 
    }
}
@media (max-width: 768px) {
    .footer-links-wrapper {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .footer-links-column ul {
        text-align: center;
    }

    .footer-links-column a {
        font-size: 1.1rem; 
    }
}


/* ============================================= */
/* TEXTUR OVERLAY */
/* ============================================= */
.main-header::before, 
.about-section::before,
.services-section::before,
.contact-section::before,
.gallery-section::before,
.main-footer::before,
.accordion-content::before { 
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../bilder/texture.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    opacity: 0.2;
    z-index: 1; 
}


/* ============================================= */
/* COOKIE CONSENT STYLES */
/* ============================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #003c54; 
    color: #ffffff;
    padding: 20px;
    z-index: 10000; 
    box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
    border-top: 4px solid #0089bf; 
    font-family: var(--font-family);
}

.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.cookie-content h3 {
    margin-top: 0;
    color: #ffffff;
    font-size: 1.5rem;
}

.cookie-content p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    transition: all 0.3s ease;
    font-family: var(--font-family);
}

.cookie-btn.primary {
    background-color: #0089bf; 
    color: #ffffff;
}

.cookie-btn.primary:hover {
    background-color: #0073a0;
    color: #003c54;
}

.cookie-btn.secondary {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.cookie-btn.secondary:hover {
    background-color: #ffffff;
    color: #003c54;
}

.cookie-btn.text-link {
    background: none;
    border: none;
    text-decoration: underline;
    color: #cccccc;
    font-size: 0.9rem;
    padding: 10px;
}

.cookie-btn.text-link:hover {
    color: #ffffff;
}

/* MODAL Styles */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 60, 84, 0.95); 
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.cookie-modal-content {
    background-color: #ffffff;
    color: #003c54;
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.cookie-modal-content h3 {
    color: #003c54;
    border-bottom: 2px solid #0089bf;
    padding-bottom: 10px;
}

.cookie-option {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.cookie-option-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.cookie-cat-title {
    font-weight: bold;
    font-size: 1.2rem;
}

.cookie-desc {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}

.cookie-modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* SWITCH / TOGGLE CSS */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px; 
    bottom: 3px; 
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #0089bf;
}

input:focus + .slider {
    box-shadow: 0 0 1px #0089bf;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

@media (max-width: 768px) {
    .cookie-buttons {
        flex-direction: column;
    }
    .cookie-btn {
        width: 100%;
    }
    .cookie-modal-buttons {
        flex-direction: column-reverse;
        gap: 10px;
    }
}

/* ============================================= */
/* PRINT STYLES (NEU) */
/* ============================================= */
@media print {
    .main-nav, .hamburger, .hero-section::before, .cookie-banner, .slider-btn, .footer-links-wrapper {
        display: none !important;
    }
    .hero-section {
        height: auto;
        background: none !important;
        color: #000;
    }
    body {
        color: #000;
        background: #fff;
    }
    a {
        text-decoration: underline;
        color: #000;
    }
    /* URLs drucken */
    a[href]:after {
        content: " (" attr(href) ")";
    }
}