/* --- LOKALE SCHRIFTARTEN --- */

/* 1. Open Sans (Normal) */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: local(''),
         url('../fonts/open-sans-v34-latin-regular.woff2') format('woff2');
}

/* 2. Open Sans (Halbfett / Semi-Bold) */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    src: local(''),
         url('../fonts/open-sans-v34-latin-600.woff2') format('woff2');
}

/* 3. Open Sans (Fett / Bold) */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    src: local(''),
         url('../fonts/open-sans-v34-latin-700.woff2') format('woff2');
}

/* 4. Google Material Icons */
@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/MaterialIcons-Regular.woff2') format('woff2');
}

/* Grundlagen-Design für die Icons (zwingend nötig für die lokale Einbindung) */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
}

/* --- GRUNDLAGEN & DESIGN --- */
:root {
    --primary-color: #007A5E; /* Typisches Apotheken-Grün */
    --secondary-color: #F0F7F5;
    --text-color: #333333;
    --bg-color: #FFFFFF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; 
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

/* --- TOP-BAND (Weiß) --- */
.top-bar {
    position: relative;
    z-index: 1001; 
    min-height: 50px; 
    background-color: var(--bg-color);
    display: flex;
    justify-content: center; /* NEU: Zentriert die Kontaktdaten perfekt */
    align-items: center;
    padding: 10px 40px; 
    font-size: 0.85rem;
    color: #000;
}

.top-bar-left {
    display: flex;
    flex-wrap: wrap; 
    align-items: center;
    gap: 15px; 
}

.location-label {
    font-weight: 600;
}

.top-bar-left a {
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.top-bar-left a:hover {
    color: var(--primary-color);
}

/* --- HERO BEREICH (Fullscreen mit Slider) --- */
#home {
    height: 100vh; 
    height: 100dvh; 
    display: flex;
    flex-direction: column;
}

.hero-fullscreen {
    position: relative;
    flex-grow: 1; 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; 
}

/* Slider System */
.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; 
}

.slide.active {
    opacity: 1;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
}

/* --- MAIN NAV (Logo, Links & Hamburger) --- */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.8);
    margin-top: -80px; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.nav-logo-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-logo {
    max-height: 50px;
    width: auto;
}

.nav-right-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center; /* Hält die Links vertikal in der Mitte */
    gap: 15px;
}

.nav-links a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px; 
    border-radius: 4px; 
    transition: background-color 0.3s, color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: var(--primary-color); 
    color: #000000; 
}

/* NEU: Besonderer Button für Petrus-Apotheke im Desktop-Menü */
.nav-links a.nav-extra-btn {
    background-color: var(--bg-color);
    color: var(--primary-color);
    margin-left: 10px;
}

.nav-links a.nav-extra-btn:hover {
    background-color: #e8e8e8;
    color: var(--primary-color);
}

/* Hamburger Button */
.hamburger {
    display: none; 
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #FFFFFF;
    border-radius: 2px;
    transition: background-color 0.3s;
}

.hamburger:hover span {
    background-color: var(--primary-color);
}

/* --- SEITLICHES OFF-CANVAS MENÜ --- */
.side-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    padding: 80px 30px 30px 30px;
    transition: right 0.3s ease-in-out;
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
}

.side-menu.open {
    right: 0;
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 30px;
    color: #FFFFFF;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--primary-color);
}

.side-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.side-menu a {
    text-decoration: none;
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
}

.side-menu a:hover {
    color: var(--primary-color);
}

/* NEU: Besonderer Button für Petrus-Apotheke im Mobilen Menü */
.side-menu a.side-extra-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 4px;
    margin-top: 15px;
    text-align: center;
    border: 2px solid var(--primary-color);
}

.side-menu a.side-extra-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}


/* Responsive: Mobile Ansicht */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    
    .top-bar {
        flex-direction: column;
        padding: 10px 15px; 
        text-align: center;
        gap: 8px; 
    }
    
    .top-bar-left {
        flex-direction: column;
        gap: 5px; 
    }
    
    /* Der wichtige Fix für die Höhe auf Mobilgeräten */
    .hero-fullscreen {
        height: auto;
    }
}

/* --- LAYOUT & INHALT --- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px; 
}

main {
    padding: 0; 
}

.content-section {
    min-height: calc(100vh - 80px); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 0; 
}

.content-section > h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    font-weight: 700;
    align-self: flex-start; 
}

/* --- KARTEN & GRIDS --- */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.card {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 3px solid var(--primary-color);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.card ul {
    list-style-type: none;
}

.card li {
    margin-bottom: 10px;
}

/* --- LEISTUNGEN (Kacheln wie im Screenshot) --- */
.text-center {
    text-align: center;
}

.content-section.text-center .section-title {
    border-bottom: none;
    padding-bottom: 0;
    font-size: 2.5rem;
    color: #333333;
    margin-bottom: 10px;
    align-self: center; 
}

.section-subtitle {
    font-size: 1.2rem;
    color: #444444;
    margin-bottom: 40px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-card {
    background-color: #E8E8E8; 
    padding: 50px 30px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.feature-icon {
    font-size: 4.5rem !important; 
    color: var(--primary-color) !important;
    margin-bottom: 20px;
    top: 0; 
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #333333;
    margin-bottom: 15px;
    font-weight: 400; 
}

.feature-card p {
    color: #444444;
    margin-bottom: 30px;
    line-height: 1.6;
    flex-grow: 1; 
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #FFFFFF;
    padding: 12px 28px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #005a45; 
    color: #FFFFFF;
}

/* Google Font Icons Feintuning */
.material-icons {
    font-size: 1.2rem;
    vertical-align: middle;
    position: relative;
    top: -2px;
    margin-right: 5px;
    color: var(--primary-color);
}

.top-bar .material-icons {
    font-size: 1rem;
    color: #000;
    top: -1px;
    margin-right: 2px;
}

/* Damit das Icon im Extra-Button weiß/grün bleibt */
.nav-extra-btn .material-icons,
.side-extra-btn .material-icons {
    color: inherit;
}	

/* --- FILIALEN (Bild-Karten) --- */
.location-card {
    background-color: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 3px solid var(--primary-color);
    overflow: hidden; /* Sorgt dafür, dass das Bild oben nicht über die runden Ecken der Karte ragt */
    display: flex;
    flex-direction: column;
}

.location-img {
    width: 100%;
    height: 220px; /* Einheitliche Höhe für beide Bilder */
    object-fit: cover; /* Verhindert, dass die Bilder gequetscht oder verzerrt werden */
    border-bottom: 3px solid var(--primary-color); /* Eine grüne Trennlinie zwischen Bild und Text */
}

.location-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1; /* Schiebt die Buttons immer auf die gleiche Höhe nach unten */
}

.location-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

.location-content p {
    color: #444444;
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1; 
}

/* --- KONTAKT BEREICH (Grid & Formular) --- */

/* Spezielles Raster für den Kontaktbereich (2 Spalten auf Desktop) */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr; /* Formularspalte bekommt etwas mehr Platz */
    }
}

/* Linke Spalte: Infos */
.contact-info-card {
    background-color: var(--secondary-color); /* Leicht grünlich hinterlegt */
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.contact-detail .material-icons {
    margin-right: 10px;
    margin-top: 3px;
    font-size: 1.3rem;
}

.contact-info-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-info-card a:hover {
    text-decoration: underline;
}

.margin-top-15 {
    margin-top: 20px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

/* Rechte Spalte: Formular */
.contact-form-card {
    background-color: #E8E8E8; /* Entspricht dem hellgrauen Hintergrund aus dem Screenshot */
    border-top: none;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    background-color: #FFFFFF;
    color: #333;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Checkbox Bereich */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 5px;
    width: 18px;
    height: 18px;
}

.checkbox-group label {
    font-size: 0.85rem;
    color: #444;
    line-height: 1.5;
}

.checkbox-group label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-form .btn-primary {
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 15px 30px;
    align-self: flex-start; /* Button ist linksbündig */
}

/* --- NOTFALL BEREICH (Flexible Grids & Kacheln) --- */

.margin-bottom-30 {
    margin-bottom: 30px;
}

/* Grids für die verschiedenen Zeilen */
.emergency-grid-2,
.emergency-grid-3,
.emergency-grid-4 {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: Alle untereinander */
    gap: 20px;
}

/* Tablet Ansicht */
@media (min-width: 768px) {
    .emergency-grid-2 { grid-template-columns: 1fr 1fr; }
    .emergency-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
    .emergency-grid-4 { grid-template-columns: 1fr 1fr; } /* 4er-Grid auf Tablet erst 2-spaltig */
}

/* Desktop Ansicht */
@media (min-width: 1024px) {
    .emergency-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Design der grauen Kacheln */
.emergency-card {
    background-color: #E8E8E8;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.emergency-title {
    font-size: 1.2rem;
    color: #333333;
    margin-bottom: 15px;
    font-weight: 600;
}

.emergency-number {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.emergency-number a {
    color: #e3000f; /* Signalrot für die wichtigen Notrufe */
    text-decoration: none;
    transition: color 0.3s;
}

.emergency-number a:hover {
    color: #a3000a;
}

.emergency-card a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.emergency-card a:hover {
    text-decoration: underline;
}

/* Die Checkliste */
.emergency-list {
    list-style-type: disc;
    padding-left: 20px;
}

.emergency-list li {
    margin-bottom: 10px;
    color: #333333;
    font-weight: 600;
}

.emergency-list .small-text {
    font-size: 0.85rem;
    color: #555555;
    font-weight: 400;
    display: block;
    margin-top: 2px;
}

/* Spezifisch für die kleineren Polizei-Karten */
.police-card {
    padding: 20px;
    justify-content: flex-start;
}

.police-card h4 {
    font-size: 1rem;
    color: #333333;
    margin-bottom: 10px;
}

.police-card p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* --- FOOTER --- */
footer {
    background-color: #222;
    color: #aaa;
    text-align: center;
    padding: 30px 0;
}