/* Custom Styling for exact visual match to the original image */
:root {
    --burgundy-bg: #521b28;
    --burgundy-active: #521b28;
    --nav-bg: #ececec;
    --nav-border: #d4d4d4;
    --footer-bg: #ededed;
}

body {
    background-color: var(--burgundy-bg);
    font-family: Arial, Helvetica, sans-serif;
    color: #333333;
    min-height: 100vh;
}

/* Centered White Card Container */
.site-card {
    background-color: #ffffff;
    max-width: 1220px;
    margin: 0 auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}


/* Header Layout & Positions */
.header {
    min-height: 110px;
}

.header-logo-wrapper {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 9;
}

.header-logo-wrapper img {
    height: 140px;
    margin-left: -17px;
    margin-top: -6px;
}	

.header-title {
    position: absolute;
    top: 26px;
    left: 140px;
    font-size: 1.75rem;
}

.header-subtitle {
    position: absolute;
    top: 64px;
    left: 142px;
    font-size: 0.95rem;
}

/* Ansprechpartner Elements */
.contact-avatar {
    max-width: 245px;
    height: auto;
}

.contact-mail-link {
    font-size: 0.95rem;
    word-break: break-all;
}

/* Footer Copyright Font Size */
.copyright-text {
    font-size: 0.78rem;
}

/* Styling für die Ziele-Sektion */
.quote-header {
    display: flex;
    align-items: flex-end;
}

.quote-text {
    font-size: 1.8rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.25;
    color: #333;
}

.quote-author {
    font-size: 0.85rem;
    font-style: italic;
    color: #555;
    margin-bottom: 4px;
}

.ziele-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}


/* Custom Navigation Styling */
.custom-nav-bar {
    background-color: var(--nav-bg);
    border-top: 1px solid var(--nav-border);
    border-bottom: 1px solid var(--nav-border);
    padding: 0;
}

.custom-nav-bar .nav-link {
    color: #333333;
    font-size: 0.95rem;
    padding: 12px 20px;
    border-right: 1px solid var(--nav-border);
    border-radius: 0;
    transition: all 0.2s ease;
}

.custom-nav-bar .nav-link:hover {
    background-color: #e0e0e0;
    color: #000000;
}

.custom-nav-bar .nav-link.active {
    background-color: var(--burgundy-active) !important;
    color: #ffffff !important;
    font-weight: bold;
}

/* Job Announcement Banner */
.ticker-bar {
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 15px;
    font-size: 0.92rem;
    color: #222222;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-text {
    display: inline-block;
    animation: tickerScroll 22s linear infinite;
}

.ticker-bar:hover .ticker-text {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    0% { transform: translate3d(100%, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Bullet List Custom SVG Icons */
.bullet-fleck-icon {
    width: 22px;
    height: 22px;
    fill: var(--burgundy-bg);
    flex-shrink: 0;
}

.fleck-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
    font-size: 0.95rem;
    color: #222222;
    margin-bottom: 12px;
}

/* Footer Section */
.custom-footer {
    background-color: var(--footer-bg);
    border-top: 1px solid #cccccc;
    padding: 25px 30px 15px 30px;
    font-size: 0.88rem;
    color: #444444;
    position: relative;
}

.contact-icon-svg {
    width: 16px;
    height: 16px;
    fill: var(--burgundy-bg);
    flex-shrink: 0;
}

.footer-link {
    color: #444444;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Scroll To Top Button */
.btn-scroll-top {
    position: absolute;
    right: 20px;
    bottom: 20px;
    background-color: #d8d8d8;
    border: 1px solid #b5b5b5;
    border-radius: 3px;
    padding: 4px 8px;
    color: #333333;
    transition: background-color 0.2s;
}

.btn-scroll-top:hover {
    background-color: #bebebe;
    color: #000000;
}

ul.li_Fleck li {
	list-style-image: url(../images/fleck_li.png);
	margin: 17px 0px 0px 10px;
	padding: 0px 0px 0px 2px;
}

.header {
    margin-bottom: 1px;
    margin-top: 5px;
    height: 144px;
    margin-left: 5px;
}




/* Container für die Fleck-Map mit PNG */
.fleck-map-container {
    position: relative;
    width: 100%;
    max-width: 650px;
    height: 450px;
    margin: 0 auto;
}

/* Das PNG-Bild zentrieren und skalieren */
.fleck-png-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 350px;
    width: 100%;
    height: auto;
    z-index: 1;
}

/* Mühlacker direkt im Zentrum des PNGs */
.ort-zentral-png {
    position: absolute;
    top: 50%;
    left: 47%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: bold;
    z-index: 2;
    white-space: nowrap;
}

/* Grund-Styling für alle Ortsnamen */
.ort-label {
    position: absolute;
    color: #531825; /* Dunkelrot passend zum Fleck */
    font-weight: bold;
    font-size: 1.1rem;
    white-space: nowrap;
    z-index: 3;
}

/* Exakte Platzierung rund um das PNG-Bild */
.ort-lienzingen { top: 2%;   left: 43%; }
.ort-illingen   { top: 12%;  right: 12%; }
.ort-lomersheim { top: 30%;  right: 2%; }
.ort-wiernsheim { top: 50%;  right: 2%; }
.ort-pinache    { top: 72%;  right: 12%; }
.ort-enzberg    { bottom: 5%; right: 22%; }
.ort-niefern    { bottom: 2%; left: 43%; }
.ort-eutingen   { bottom: 12%; left: 18%; }
.ort-pforzheim  { top: 58%;  left: 2%; }
.ort-kieselbronn{ top: 35%;  left: 2%; }
.ort-goebrichen { top: 15%;  left: 12%; }

/* Mobile Optimierung für Smartphones für Unsere Einsatzgebiete*/
@media (max-width: 600px) {
    .fleck-map-container {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding-top: 20px;
    }

    .fleck-png-image {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        max-width: 280px;
        margin-bottom: 10px;
    }

    .ort-zentral-png {
        position: absolute;
        top: 115px; /* Zentriert über dem Bild auf kleinen Screens */
        left: 50%;
        transform: translateX(-50%);
    }

    .ort-label {
        position: static;
        font-size: 0.95rem;
        background-color: #fdf8f8;
        padding: 4px 14px;
        border-radius: 15px;
        border: 1px solid #e2c2c8;
        width: 75%;
    }
}
/* Responsiveness for Header on mobile view */
@media (max-width: 768px) {
	/* Kleines Fleck-Logo in der Mobilansicht */
	.mobile-fleck-img {
		height: 50px;
		width: auto;
		object-fit: contain;
		transform: translateX(-25px) !important; /* Verschiebt den Text 25px nach links */
		flex-shrink: 0;
	}
	
	/* Mobile Brand-Text erzwingt Verschiebung nach links */
	.mobile-brand-text {
		display: flex;
		flex-direction: column;
		justify-content: center;
		transform: translateX(-40px) !important; /* Verschiebt den Text 40px nach links */
		flex-shrink: 0;
	}
		
		/* Verhindert das Umbrechen des Textes auf sehr schmalen Bildschirmen */
		.mobile-brand-text .small {
			font-size: 0.75rem;
		}	
	}

/* Responsive Anpassung für kleinere Bildschirme */
@media (max-width: 576px) {
    .quote-text {
        font-size: 1.4rem;
    }
    .quote-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .quote-author {
        margin-left: 0 !important;
        margin-top: 5px;
    }
}