/* =========================================================================
   BASIS & TYPOGRAPHIE
   ========================================================================= */

/* WICHTIG: GLOBALE BOX-SIZING REGEL FÜR KORREKTE BREITENBERECHNUNG (Fixiert das 3-Boxen-Problem) */
*, *:before, *:after {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}
/* ENDE BOX-SIZING */

body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
}

h1, h2, h3, h4 {
    color: #009ec6; /* Primärfarbe für Überschriften */
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: bold;
}

h1 {
    font-size: 2.2em;
    color: #333; /* KORRIGIERT: Dunkle Farbe für Kontrast auf hellem Hintergrund (top_bar) */
    text-align: center;
    margin-top: 0.2em;
}

h2 {
    font-size: 1.8em;
    border-bottom: 2px solid #ff9c00;
    padding-bottom: 5px;
}

h3 {
    font-size: 1.4em;
    color: #333;
}

p {
    margin-bottom: 1em;
}

a {
    color: #009ec6; /* Kontrast auf weißem Hintergrund ist ausreichend */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.clear {
    clear: both;
}

/* =========================================================================
   LAYOUT STRUKTUR (CONTAINER & BREITENANPASSUNG)
   ========================================================================= */

.content_wrap, .leistung_wrap, .foot_wrap {
    max-width: 1200px; /* Breite des Hauptcontainers */
    margin: 0 auto;
    padding: 0 15px; 
}

.top_bar {
    text-align: center;
    padding: 20px 0 10px;
    background: #fff;
}

.header_wrapper {
    background: #009ec6;
    padding: 20px 0;
    color: #fff; /* WICHTIG: Text im Header-Wrapper auf WEISS gestellt (Kontrast!) */
    margin-bottom: 20px;
}

/* =========================================================================
   HEADER & CTA ELEMENTE (Kontrast-Fix und Zentrierung)
   ========================================================================= */

.header {
    padding: 0 15px; 
    max-width: 1200px;
    margin: 0 auto;
}

.site-title {
    float: none; 
    width: 100%; 
    text-align: center; 
}

.site_title {
    font-size: 2.5em;
    color: #fff; /* WEISS auf BLAU */
    margin: 0;
}

.notdienst {
    font-size: 1.2em;
    margin: 5px 0 10px;
    color: #fff; /* KORRIGIERT: Textfarbe auf WEISS für Kontrast */
}

.aktion {
    font-size: 1.1em;
    margin: 5px 0;
    color: #fff; /* KORRIGIERT: Textfarbe auf WEISS für Kontrast */
}

.pricing {
    font-size: 2em;
    font-weight: bold;
    color: #ff9c00; 
    margin: 0 0 10px;
}

.phone a {
    color: #fff;
    font-size: 1.5em;
    font-weight: bold;
}

.siegel {
    float: none; 
    width: 100%; 
    max-width: 300px; 
    margin: 15px auto 0 auto; /* Zentrierung des Siegel-Containers */
    background: #ff9c00;
    padding: 10px;
    border-radius: 5px;
}

.siegel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #333; /* KORRIGIERT: Dunkle Farbe auf Orange/Gelb (Kontrast) */
    font-weight: bold;
    text-align: center; 
}

/* Leistungsboxen - KORRIGIERT MIT BOX-SIZING */
.leistung {
    background: #f0f0f0;
    padding: 20px 0;
}

.box1, .box2, .box3 {
    float: left;
    width: 31%; /* Breite aus Originalcode beibehalten, Box-Sizing fixiert das Umbrechen */
    margin-right: 3%;
    padding: 15px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    font-weight: bold;
    color: #333;
}

.box3 {
    margin-right: 0;
}

.box1 span, .box2 span, .box3 span {
    font-weight: normal;
    display: block;
    font-size: 0.9em;
    color: #666;
}

/* =========================================================================
   HAUPT CONTENT & SIDEBAR
   ========================================================================= */

.content {
    padding: 30px 0;
}

.column {
    float: left;
    width: 68%;
    padding-right: 2%; 
}

.sidebar {
    float: right;
    width: 30%; 
    padding-left: 1%;
}

/* Sidebar Überschriften (H3 für Barrierefreiheit) */
.sidebar h3 {
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
    margin-bottom: 15px;
    color: #009ec6; 
    font-size: 1.4em; 
}

.sidebar h4 { /* Stellen Sie sicher, dass H4 im Sidebar-Kontext dieselbe Farbe hat, falls es noch vorkommt */
    color: #009ec6;
}


.sidebar ul {
    list-style: disc;
    margin-left: 20px;
    padding: 0;
}

/* Call to Action Blöcke (funk/norm/einb) */
.funk, .norm, .einb {
    background: #fff;
    margin: 20px auto; 
    max-width: 1200px; 
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
}

.funk p, .norm p, .einb p {
    text-align: center; /* ZENTRIERT INNERE P-ELEMENTE (inkl. Rufnummern) */
    padding: 20px 10%; 
}

.funk img, .norm img, .einb img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
}

.num {
    padding: 10px 0;
    text-align: center;
}

.num a {
    font-size: 2em;
    font-weight: bold;
    color: #ff9c00;
}

.time {
    text-align: center; /* ZENTRIERT den Status-Text */
}
.time span {
    color: green;
    font-weight: bold;
    font-size: 1.1em;
}

/* =========================================================================
   MAP ERSATZ & SCHEMA
   ========================================================================= */

.map-info-box {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 20px;
    background: #f9f9f9;
    text-align: center;
    background-image: linear-gradient(135deg, #f0f0f0 25%, transparent 25%, transparent 50%, #f0f0f0 50%, #f0f0f0 75%, transparent 75%, transparent);
    background-size: 15px 15px;
}
.map-info-box h4 {
    margin-top: 0;
    color: #ff9c00;
}


/* =========================================================================
   NAVIGATION (FIXIERT & STICKY)
   ========================================================================= */

.navbar {
    overflow: hidden;
    background-color: #fff;
    max-width: 1200px; 
    margin: 0 auto;
}

.navbar a {
    float: left;
    display: block;
    color: #333;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

.navbar a:hover {
    background-color: #ddd;
    color: black;
}

#nav {
    width: 100%;
    background: #fff;
    position: fixed;
    top: -50px;
    display: block;
    transition: top 0.3s;
    z-index: 999;
	border-bottom: 3px solid #ff9c00;
}

/* =========================================================================
   CALL BUTTON - DAUERHAFT FIXIERT AM UNTEREN RAND
   ========================================================================= */

#call {
    bottom: 0; 
    left: 0;
    right: 0;
    width: 100%;
    background: #009ec6;
    position: fixed;
    z-index: 998;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3); 
}
#call a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
}


/* =========================================================================
   FOOTER
   ========================================================================= */

.footer {
    background: #333;
    color: #fff;
    padding: 30px 0;
    font-size: 0.9em;
}

.foot_copy {
    text-align: center;
}

.foot_copy img {
    max-width: 150px;
    height: auto;
    margin-bottom: 10px;
}

.foot_copy span {
    font-weight: bold;
    color: #ff9c00;
}

.footer p {
    text-align: center; /* Zentriert die Footer-Texte und Copyright */
    padding: 0 5%;
    margin-bottom: 10px;
}

.footer a {
    color: #ff9c00;
}

.footer hr {
    border: 0;
    border-top: 1px solid #555;
    margin: 20px 5%;
}


/* =========================================================================
   RESPONSIVE DESIGN (MOBILE OPTIMIERUNG)
   ========================================================================= */

@media screen and (max-width: 900px) {
    /* Boxen unter 900px strecken sich auf 100% */
    .box1, .box2, .box3 {
        width: 100%;
        float: none;
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 768px) {
    /* Im mobilen Bereich strecken sich alle Spalten auf 100% */
    .site-title, .siegel {
        float: none;
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }

    .column, .sidebar {
        float: none;
        width: 100%;
        padding-right: 0;
    }

    .site-title .phone {
        margin-top: 15px;
    }

    .navbar a:not(:first-child) {
        display: none;
    }
    
    .navbar a.icon {
        float: right;
        display: block;
    }

    .navbar.responsive {
        position: relative;
    }
    .navbar.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }
    .navbar.responsive a {
        float: none;
        display: block;
        text-align: left;
    }

    /* Sticky Call Button im mobilen Modus stärker betonen */
    #call {
        padding: 15px 0;
    }
    #call a {
        font-size: 1.4em;
    }
}

/* Ende der CSS-Datei */