/* ==========================================================================
   1. LOKALE SCHRIFTARTEN (Font-Face)
   ========================================================================== */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/lato-v25-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/lato-v25-latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/playfair-display-v40-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/playfair-display-v40-latin-700.woff2') format('woff2');
}

/* ==========================================================================
   2. SCROLLBAR ANPASSUNGEN (Modal ausgenommen)
   ========================================================================== */
html {
    scrollbar-width: thin;
    scrollbar-color: #303030 #555555;
}
html::-webkit-scrollbar {
    width: 10px;
}
html::-webkit-scrollbar-track {
    background: #555555;
}
html::-webkit-scrollbar-thumb {
    background-color: #303030;
    border-radius: 5px;
}

.modal-content {
    scrollbar-width: auto;
    scrollbar-color: auto;
}
.modal-content::-webkit-scrollbar {
    width: initial;
}
.modal-content::-webkit-scrollbar-track {
    background: initial;
}
.modal-content::-webkit-scrollbar-thumb {
    background-color: initial;
    border-radius: initial;
}

/* ==========================================================================
   3. BASE / GLOBAL STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', Arial, sans-serif;
    color: #4d4d4d;
    line-height: 1.6;
    background-color: #f9f9f9;
}

p, ul {
    margin-bottom: 15px;
}

ul {
    margin-left: 20px;
}

a {
    color: #792423;
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    text-decoration: underline;
    color: #a33231;
}

h2 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #292929;
    margin-top: 30px;
    margin-bottom: 10px;
    border-bottom: 2px solid #792423;
    padding-bottom: 5px;
}

h3 {
    color: #792423;
    margin-top: 20px;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

h4 {
    color: #292929;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 1rem;
}

/* ==========================================================================
   4. LAYOUT & CONTAINER
   ========================================================================== */
header {
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), 
                url('img/Header_BG.jpg') center/cover no-repeat;
    color: #ffffff;
    padding: 100px 20px;
    text-align: center;
}

.header-logo {
    max-width: 380px;
    height: auto;
    background-color: #ffffff;
    padding: 5px 5px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.page-wrapper {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Wartungshinweis Banner inkl. Icon-Layout */
.notice-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: #fff3cd;
    color: #856404;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 30px;
    border: 1px solid #ffebaa;
    font-size: 0.95rem;
    width: 100%;
}

.notice-icon {
    width: 22px;
    height: 22px;
    fill: #856404;
    flex-shrink: 0;
    margin-top: 2px;
}

.container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 850px) {
    .container {
        grid-template-columns: 1fr;
    }
}

.main-content {
    background: #ffffff;
    padding: 10px 40px 40px 40px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 4px;
}

.sidebar {
    background: #ffffff;
    padding: 10px 30px 30px 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 4px;
    height: fit-content;
}

/* ==========================================================================
   5. INHALTS-ELEMENTE (MAIN CONTENT)
   ========================================================================== */
.main-content h1.brand-title {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.5rem;
    color: #292929;
    font-weight: 700;
    margin-top: 15px;
    margin-bottom: 6px;
    font-family: 'Lato', Arial, sans-serif;
}

.main-content h2.subtitle-h2 {
    font-family: 'Lato', Arial, sans-serif;
    color: #666;
    font-size: 0.95rem;
    font-weight: 400;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.title-divider {
    width: 40px;
    height: 3px;
    background-color: #792423;
    margin: 12px auto 25px auto;
}

.intro-text {
    background-color: #fafafa;
    padding: 20px;
    margin-bottom: 30px;
    font-size: 0.98rem;
    line-height: 1.6;
    border-radius: 4px;
}
.intro-text p {
    margin-bottom: 12px;
}
.intro-text p:last-child {
    margin-bottom: 0;
}

/* Ansprechpartner Kasten mit Icon-Styles */
.contact-card-title {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.25rem;
    color: #292929;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 8px;
}

.contact-card-divider {
    width: 40px;
    height: 3px;
    background-color: #792423;
    margin: 0 auto 25px auto;
}

.contact-card-body {
    background-color: #f7f7f7;
    padding: 30px 25px;
    text-align: center;
    border-radius: 4px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.8;
}

.contact-card-body strong.person-name {
    display: block;
    font-size: 1.15rem;
    color: #292929;
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-card-body p {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Call-to-Action Beratung Button */
.cta-button {
    display: inline-block;
    background-color: #792423;
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 20px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #a33231;
    text-decoration: none;
    transform: translateY(-2px);
}

.contact-icon {
    width: 16px;
    height: 16px;
    fill: #792423;
    flex-shrink: 0;
}

/* Kontakt-Boxen in den Modals */
.contact-box {
    background-color: #f7f7f7;
    border-left: 4px solid #792423;
    padding: 15px 20px;
    margin: 20px 0;
}

.contact-box h3 {
    margin-top: 5px;
}

.contact-box .contact-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.contact-box .contact-line:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   6. SIDEBAR STYLES (GALERIE & LEISTUNGEN WITH ICONS)
   ========================================================================== */
.sidebar-title,
.gallery-title {
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #292929;
    margin-top: 15px; 
    margin-bottom: 15px;
    font-weight: 700;
    border-bottom: 2px solid #792423;
    padding-bottom: 8px;
}

.sidebar-title {
    margin-top: 25px;
    margin-bottom: 20px;
}

.services-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

/* Tooltipp-Container für die Galerie */
.gallery-item {
    position: relative;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    overflow: hidden; /* Beschneidet das Bild, wenn es beim Hover zoomt */
    cursor: default;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 95px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Farb-Overlay beim Hover (Firmen-Rot, transparent) */
.gallery-item::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(121, 36, 35, 0.85); /* #792423 mit 85% Deckkraft */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

/* Tooltipp-Text in der Mitte beim Hover */
.gallery-item::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
    width: 90%;
    line-height: 1.3;
}

/* Hover Effekte auslösen */
.gallery-item:hover {
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
}

.gallery-item:hover img {
    transform: scale(1.08); /* Bild zoomt leicht ein */
}

.gallery-item:hover::before,
.gallery-item:hover::after {
    opacity: 1;
    visibility: visible;
}

.services-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.services-list li {
    margin-bottom: 18px;
}

.services-list h4 {
    font-size: 1.02rem;
    color: #111111;
    margin: 0 0 3px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.services-list h4::before {
    content: "✓";
    color: #792423;
    font-weight: bold;
    font-size: 1.1rem;
}

.services-list p {
    font-size: 0.88rem;
    color: #666666;
    margin: 0;
    padding-left: 18px;
    line-height: 1.35;
}

/* ==========================================================================
   7. FOOTER & MODAL STYLES
   ========================================================================== */
footer {
    text-align: center;
    padding: 25px 20px;
    background-color: #2b2b2b;
    color: #ffffff;
    font-size: 0.9rem;
    margin-top: 40px;
}

footer a {
    color: #f9e0b2;
    cursor: pointer;
    margin-left: 15px;
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.7); 
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 30px 40px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 6px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #792423;
    text-decoration: none;
}

/* ==========================================================================
   8. STICKY MOBILE BAR (Sticky Contact Button für Smartphones)
   ========================================================================== */
.sticky-mobile-bar {
    display: none; /* Auf Desktop ausgeblendet */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    z-index: 1000;
}

.sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 16px 0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #ffffff !important;
    text-decoration: none;
    gap: 10px;
}

.sticky-btn .contact-icon {
    fill: #ffffff;
}

.phone-btn {
    background-color: #292929; /* Dunkelgrau für Anruf */
}

.mail-btn {
    background-color: #792423; /* Firmen-Rot für Mail */
}

@media (max-width: 850px) {
    .sticky-mobile-bar {
        display: flex; /* Nur auf Mobile anzeigen */
    }
    body {
        padding-bottom: 50px; /* Verhindert, dass der Footer verdeckt wird */
    }
}

/* ==========================================================================
   9. COOKIE BANNER
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 90%;
    max-width: 450px;
    background-color: #ffffff;
    opacity: 0.95;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-radius: 6px;
    border-top: 4px solid #792423;
    padding: 25px;
    z-index: 10000;
    text-align: center;
}

/* Verhindert den blauen Rahmen beim automatischen Fokus */
.cookie-banner:focus {
    outline: none;
}

.cookieTitle {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #292929;
    margin-bottom: 12px;
}

.cookieDesc {
    font-size: 0.95rem;
    color: #555555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.cookieBtn .button {
    background-color: #792423;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.cookieBtn .button:hover,
.cookieBtn .button:focus {
    background-color: #a33231;
    transform: translateY(-2px);
    outline: none;
}

/* Screenreader Unterstützung aus dem Original Code */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

@media (max-width: 850px) {
    .cookie-banner {
        bottom: 80px; /* So wird der Banner nicht vom mobilen Sticky-Button verdeckt */
        right: auto;
        left: 50%; /* Auf dem Smartphone mittig ausrichten */
        transform: translateX(-50%);
    }
}