:root {
    /* Farben abgeleitet aus dem RODE-Logo */
    --rode-blue: #5cb3e4;
/*    --rode-green: #8cb89c; */
    --rode-green: #93bba3;
	--rode-purple: #a6589a;
    --rode-dark-green: #488265;
    
    --text: #2c3e50;
    --page-width: 850px;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    padding: 0; /* 0px, da der breite Footer direkt am Bildschirmboden abschließt */
    background: #f4f7f6;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

/* =========================================================
   TOP BANNER (Volle Breite)
   ========================================================= */

.top-bar {
    background-color: var(--rode-dark-green);
    color: #ffffff;
    width: 100%;
    padding: 10px 20px;
    margin-bottom: 60px;
}

.top-bar-container {
    max-width: var(--page-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.top-bar-contact {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar-item {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.top-bar-item:hover {
    color: var(--rode-blue);
}

.top-bar-item svg {
    width: 16px;
    height: 16px;
}

.top-bar-anchor {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.top-bar-anchor:hover {
    background: #ffffff;
    color: var(--rode-dark-green);
}

/* =========================================================
   HAUPTSEITE (Rahmen)
   ========================================================= */

.page {
    position: relative;
    z-index: 0;
    width: min(100%, var(--page-width));
    min-height: 850px;
    margin: 0 auto;
    padding: 20px 50px 40px;
    background: #ffffff;
    
    /* Grüner Rahmen: Seitlich & unten 14px, oben dicker (30px) */
    border: 14px solid var(--rode-green);
    border-top-width: 26px;
    border-bottom-width: 26px;
    
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   LOGO
   ========================================================= */

.logo {
    position: absolute;
    top: -67px;
    right: 30px;
    z-index: 20;
    display: block;
    width: 220px;
    text-decoration: none;
    background: transparent;
    padding: 0;
}

.logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: transparent;
}

/* =========================================================
   HAUPTINHALT & TYPOGRAFIE
   ========================================================= */

.content {
    max-width: 750px;
    margin: 20px auto 0;
}

.content h1 {
    margin: 0 0 20px;
    color: var(--rode-dark-green);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
}

.intro {
    margin: 0 0 30px;
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}

/* =========================================================
   LEISTUNGEN GRID (Startseite)
   ========================================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.service-card {
    position: relative;
    display: block;
    height: 190px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px;
    transition: background 0.3s ease;
}

.service-card:hover .service-overlay {
    background: rgba(0, 0, 0, 0.25);
}

.icon-box {
    width: 44px;
    height: 44px;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    transition: border-color 0.3s ease;
}

.service-card:hover .icon-box {
    border-color: var(--rode-blue);
}

.icon-box svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.service-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    text-align: center;
    transition: color 0.3s ease;
}

.service-card:hover .service-title {
    color: var(--rode-blue);
}

/* =========================================================
   UNTERSEITEN STYLES
   ========================================================= */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px; /* Abstand zwischen Pfeil und Text */
    margin-bottom: 0;
    color: var(--rode-dark-green);
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--rode-blue);
    text-decoration: underline;
}

.back-link svg {
    width: 16px;
    height: 16px;
}

.detail-content h2 {
    color: var(--rode-dark-green);
    font-size: 20px;
    margin-bottom: 15px;
}

.detail-content ul {
    margin: 0 0 30px 20px;
    line-height: 1.8;
    color: #444;
}

.detail-content li {
    margin-bottom: 8px;
}

.call-to-action {
    background: rgba(140, 184, 156, 0.1);
    border-left: 4px solid var(--rode-green);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin-top: 30px;
}

.call-to-action h3 {
    margin: 0 0 10px;
    color: var(--rode-dark-green);
    font-size: 18px;
}

.call-to-action p {
    margin: 0;
    font-size: 15px;
    color: #555;
}

.call-to-action a {
    color: var(--rode-dark-green);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s;
}

.call-to-action a:hover {
    color: var(--rode-blue);
    text-decoration: underline;
}

/* =========================================================
   RODE LEISTUNGS-SEKTIONEN (Abschnitte auf Unterseiten)
   ========================================================= */

.rode-section {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.rode-section.reverse {
    flex-direction: row-reverse;
}

.rode-text {
    flex: 1;
}

.rode-text h2 {
    color: var(--rode-dark-green);
    font-size: 22px;
    margin-bottom: 12px;
}

.rode-text p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 12px;
}

.rode-text ul {
    margin-left: 20px;
    color: #444;
    font-size: 14px;
    line-height: 1.6;
}

.rode-image {
    flex: 1;
    max-width: 320px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rode-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   KONTAKT & OPENSTREETMAP GRID
   ========================================================= */

.additional {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    scroll-margin-top: 30px;
}

.additional h2 {
    margin: 0 0 20px;
    color: var(--rode-dark-green);
    font-size: 22px;
}

.contact-map-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: center;
}

.contact-info p {
    margin: 0 0 15px;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.contact-info a {
    color: var(--rode-dark-green);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-info a:hover {
    color: var(--rode-blue);
    text-decoration: underline;
}

.route-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 16px;
    background-color: var(--rode-dark-green);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background-color 0.2s, transform 0.2s;
}

.route-button:hover {
    background-color: var(--rode-blue);
    transform: translateY(-2px);
}

.route-button svg {
    width: 16px;
    height: 16px;
}

.map-box {
    position: relative;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--rode-green);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.map-box a {
    display: block;
    width: 100%;
    height: 100%;
}

.osm-map {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

.map-overlay-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(72, 130, 101, 0.85);
    color: #ffffff;
    text-align: center;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: bold;
    transition: background 0.2s;
}

.map-box:hover .map-overlay-hint {
    background: var(--rode-blue);
}

/* =========================================================
   FOOTER (Inklusive Öffnungszeiten & Kontaktdaten)
   ========================================================= */

.footer {
    background-color: var(--rode-dark-green);
    color: #ffffff;
    width: 100%;
    margin-top: 60px;
    padding-top: 40px;
}

.footer-container {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.1fr 1.3fr 0.8fr;
    gap: 30px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 16px;
    margin: 0 0 15px 0;
    font-weight: bold;
    border-bottom: 2px solid var(--rode-green);
    padding-bottom: 6px;
    display: inline-block;
}

.footer-col p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.footer-col a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--rode-blue);
    text-decoration: underline;
}

/* Öffnungszeiten Liste - Kompakte Raster-Ausrichtung */
.opening-hours {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13.5px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.opening-hours li {
    display: grid;
    grid-template-columns: 30px 115px auto;
    align-items: center;
}

.opening-hours .day {
    font-weight: bold;
}

.opening-hours .time-afternoon {
    white-space: nowrap;
}

.footer-col p.appointment-note,
.footer .appointment-note {
    margin-top: 12px !important;
    font-size: 15px !important;            /* Die gewünschte neue Größe */
    font-weight: bold !important;          /* Text fett */
    font-style: normal !important;          /* Auf 'normal' ändern, falls 'italic' weg soll */
    color: rgba(255, 255, 255, 0.95) !important; /* Sehr gut lesbares Weiß */
}

.footer-bottom {
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.15);
}

.footer-bottom-container {
    max-width: var(--page-width);
    margin: 0 auto;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
}

/* =========================================================
   RESPONSIVE FOOTER (Tablet & Mobil)
   ========================================================= */

@media (max-width: 820px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    /* Spalte 3 (Rechtliches) auf Tablets unter die Kontaktdaten setzen */
    .footer-col:nth-child(3) {
        grid-column: span 2;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 20px;
    }
}

@media (max-width: 650px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .footer-col:nth-child(3) {
        grid-column: span 1;
        border-top: none;
        padding-top: 0;
    }

    .footer-col h3 {
        display: block;
    }

    /* Öffnungszeiten Liste als kompakter Block mobil zentriert, Inhalt linksbündig */
    .opening-hours {
        display: inline-block; /* Zentriert die Liste als Ganzes im Footer */
        text-align: left;       /* Hält den Text innerhalb linksbündig */
    }

    .opening-hours li {
        display: grid;
        grid-template-columns: 30px 115px auto;
        gap: 0;
    }
}

/* =========================================================
   MOBILOPTIMIERUNG
   ========================================================= */

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .top-bar-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .top-bar-contact {
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 650px) {
    .rode-section, .rode-section.reverse {
        flex-direction: column;
        align-items: flex-start;
    }

    .rode-image {
        max-width: 100%;
        width: 100%;
        height: 180px;
    }

    .contact-map-grid {
        grid-template-columns: 1fr;
    }

    .map-box {
        height: 180px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .footer-col h3 {
        display: block;
    }

    .opening-hours li span {
        width: auto;
        margin-right: 5px;
    }
}

@media (max-width: 700px) {
    .page {
        padding: 30px 20px 40px;
        border-width: 8px;
        border-top-width: 18px; /* Auch auf Mobilgeräten oben etwas dicker */
    }

    .logo {
        position: relative;
        top: auto;
        left: auto;
        margin: 0 0 25px 25px;
        width: 180px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        height: 160px;
    }
}

/* Öffnungszeiten Liste exakt spaltenweise ausrichten */
.opening-hours {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.opening-hours li {
    display: flex;
    align-items: center;
}

.opening-hours .day {
    width: 35px;
    font-weight: bold;
    flex-shrink: 0;
}

.opening-hours .time-morning {
    width: 135px; /* Feste Breite für die Vormittagsspalte */
    flex-shrink: 0;
}

.opening-hours .time-afternoon {
    white-space: nowrap;
}

.appointment-note {
    margin-top: 10px !important;
    font-style: italic;
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* =========================================================
   TOP NAVIGATION AUF UNTERSEITEN
   ========================================================= */

.subpage-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 35px; /* Schiebt die Navigation nach unten, weg vom Logo */
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.subpage-top-nav .back-link {
    margin-bottom: 0; /* Override */
}

.service-nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--rode-dark-green);
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: color 0.2s, transform 0.2s;
}

.service-nav-item:hover {
    color: var(--rode-blue);
}

.service-nav-item svg {
    width: 16px;
    height: 16px;
}

/* Mobil-Anpassung */
@media (max-width: 600px) {
    .subpage-top-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .service-nav-links {
        width: 100%;
        justify-content: space-between;
    }
}

/* =========================================================
   BURGER MENU (MOBIL)
   ========================================================= */

/* Burger-Button standardmäßig auf Desktop ausblenden */
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 5px;
}

.hamburger-btn svg {
    width: 28px;
    height: 28px;
}

.hamburger-btn .icon-close {
    display: none;
}

.hamburger-btn.open .icon-open {
    display: none;
}

.hamburger-btn.open .icon-close {
    display: block;
}

/* Mobiles Menü Container */
.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: var(--rode-dark-green);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 15px 20px;
    gap: 12px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s, color 0.2s;
}

.mobile-menu a:hover {
    background: #ffffff;
    color: var(--rode-dark-green);
}

/* Responsive Umschaltung bei 768px */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .hamburger-btn {
        display: block;
    }

    .top-bar-container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .top-bar-contact {
        align-items: flex-start !important;
        font-size: 13px;
    }
}