/* audiowide-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Audiowide';
  font-style: normal;
  font-weight: 400;
  src: url('Fonts/audiowide-v22-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* pt-sans-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  src: url('Fonts/pt-sans-v18-latin-regular.woff2') format('woff2');
}

/* pt-sans-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  src: url('Fonts/pt-sans-v18-latin-700.woff2') format('woff2');
}


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

body {
    font-family: 'PT Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* freie Alternative zu Myriad, da Myriad Pro lizenzpflichtig ist */
    line-height: 1.6;
    color: #4a4a4a; /* Anthrazit von der Visitenkarte */
    background-color: #fcfcfc;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Anker-Sprung-Fix: Abstand oben, damit Inhalte nicht hinter dem sticky Header verschwinden */
html {
    scroll-behavior: smooth;
}

#home,
#leistungen,
#kontakt {
    scroll-margin-top: 110px; /* bei Bedarf an die tatsächliche Header-Höhe anpassen */
}

/* Container */
.header-container, .content-container, .footer-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.main-header {
    background-color: #ffffff;
    color: #4a4a4a;
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 4px solid #00a8e1; /* Das Cyan-Blau als Linie */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 42px;      /* Logo kleiner als vorher – hier bei Bedarf anpassen */
    width: auto;
}

.logo-text {
    font-family: 'Audiowide', 'Segoe UI', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    color: #4a4a4a;
}

/* Foto-Galerie im Leistungen-Bereich */
.leistungen-gallery {
    position: relative;
    width: 100%;
    height: 480px;
    margin-top: 25px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f0f0f0; /* Platzhalter-Hintergrund, solange keine Bilder eingefügt sind */
}

.gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.gallery-img.active {
    opacity: 1;
}

/*
    Bildausschnitt je Foto individuell einstellen:
    Der zweite Wert in object-position bestimmt die vertikale Position
    (0% = ganz oben, 50% = Mitte, 100% = ganz unten).
    Einfach den Prozentwert anpassen, um den Ausschnitt zu verschieben.
*/
.img-bulli {
    object-position: center 50%;
}

.img-glasfaser {
    object-position: center 50%;
}

.img-pv-anlage {
    object-position: center 50%;
}

.img-sicherungskasten {
    object-position: center 20%; /* Ausschnitt nach oben verschoben */
}

.img-sicherungskastengeschlossen {
     object-position: center 70%;
}

/* Pfeil-Buttons links/rechts */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(74, 74, 74, 0.55);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.gallery-arrow:hover {
    background-color: rgba(0, 168, 225, 0.85);
}

.gallery-arrow.prev {
    left: 15px;
}

.gallery-arrow.next {
    right: 15px;
}

/* Punkte-Navigation unten */
.gallery-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 5;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(74, 74, 74, 0.4);
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s, transform 0.2s;
}

.gallery-dot.active {
    background-color: #00a8e1;
    border-color: #ffffff;
    transform: scale(1.15);
}

@media (max-width: 680px) {
    .leistungen-gallery {
        height: 320px;
    }
    .gallery-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
}

.accent-color {
    color: #00a8e1; /* Cyan-Blau */
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    color: #4a4a4a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.main-nav ul li a:hover {
    color: #00a8e1;
}

/* Hauptinhalt */
.content-container {
    flex: 1;
    padding-top: 40px;
    padding-bottom: 40px;
}

section {
    background: #fff;
    padding: 35px;
    margin-bottom: 35px;
    border-radius: 6px;
    border: 1px solid #eee;
}

/* Hero-Bereich im Visitenkarten-Stil */
.hero-section {
    background-color: #4a4a4a;
    color: white;
    text-align: center;
    padding: 60px 20px;
    border: none;
    border-left: 8px solid #00a8e1; /* Blauer Akzentbalken links */
}

.hero-section h1 {
    font-family: 'Audiowide', 'Segoe UI', sans-serif;
    font-size: 2.3rem;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.subtitle {
    color: #00a8e1;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

h2 {
    font-family: 'Audiowide', 'Segoe UI', sans-serif;
    color: #4a4a4a;
    margin-bottom: 20px;
    border-bottom: 2px solid #00a8e1;
    padding-bottom: 10px;
    font-size: 1.5rem;
    letter-spacing: 0.3px;
}

/* Leistungsliste */
.services-list {
    list-style-type: none;
}

.services-list li {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 30px;
}

.services-list li::before {
    content: "➔";
    color: #00a8e1;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.services-list li:last-child {
    border-bottom: none;
}

/* Kontakt-Grid */
.contact-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.contact-box {
    flex: 1;
    min-width: 280px;
    background-color: #f7f9fa;
    padding: 25px;
    border-radius: 6px;
    border-top: 4px solid #4a4a4a;
}

.contact-box.data-box {
    border-top-color: #00a8e1; /* Zweite Box kriegt blaues Band */
}

.contact-box h3 {
    margin-bottom: 15px;
    color: #4a4a4a;
}

.contact-box p {
    margin-bottom: 8px;
}

.contact-box a {
    color: #00a8e1;
    text-decoration: none;
    font-weight: 600;
}

.contact-box a:hover {
    text-decoration: underline;
}

/* Footer */
.main-footer {
    background-color: #4a4a4a;
    color: #ccc;
    padding: 25px 0;
    font-size: 0.9rem;
    text-align: center;
    border-top: 4px solid #00a8e1;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

.footer-nav a:hover {
    color: #00a8e1;
}

/* Smartphone-Optimierung */
@media (max-width: 680px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .main-nav ul li {
        margin: 0 12px;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
}

/* WhatsApp Button Styling */
.whatsapp-button {
    display: inline-flex;
    align-items: center;
    background-color: #25D366; /* WhatsApp Grün */
    color: white !important;
    text-decoration: none;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 50px;
    margin-top: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, background-color 0.2s;
}

.whatsapp-button:hover {
    background-color: #128C7E; /* Dunkleres Grün beim Drüberfahren */
    transform: translateY(-2px); /* Kleiner Sprung-Effekt */
    text-decoration: none;
}

.whatsapp-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Styling für die Rechtstexte (Impressum & Datenschutz) */
.legal-block {
    margin-bottom: 25px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}