﻿/* ===================================
   CSS RESET & BASE STYLES
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===================================
   SKIP LINK (Barrierefreiheit)
   =================================== */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    position: absolute;
    top: 0;
    left: 0;
    background: #E30613;
    color: white;
    padding: 15px;
    z-index: 9999;
}
:focus-visible {
    outline: 3px solid #E30613 !important;
    outline-offset: 3px;
}
/* ===================================
   CONTAINER
   =================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   TOP BAR
   =================================== */

.top-bar {
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.875rem;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.top-bar .address,
.top-bar .phone-preview {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar .icon {
    font-size: 1rem;
}

/* ===================================
   HEADER
   =================================== */

.site-header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.logo img {
    width: 180px;
    height: auto;
    aspect-ratio: 200 / 80;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Den Hintergrund-Kreis entfernen */
.contact-icon {
    background-color: transparent !important;
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
    display: flex;
    align-items: center;
}

/* Die Icons gezielt vergrößern */
.header-svg {
    width: 45px !important;  /* Testen Sie 45px, Standard war ca. 24px */
    height: 45px !important;
    display: block;
}

.contact-details {
    display: flex;
    flex-direction: column;
    font-size: 0.875rem;
}

.contact-details strong {
    font-size: 1rem;
    color: #000;
}

.contact-details span {
    color: #666;
}
/* Reset für Kontakt-Links, damit sie die Optik der Umgebung beibehalten */
.contact-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease; /* Ein leichter visueller Effekt beim Drüberfahren */
}

.contact-link:hover,
.contact-link:focus {
    opacity: 0.8;
    text-decoration: underline; /* Dezentere Hilfe für die Bedienbarkeit */
    outline: none;
}

/* Spezifische Anordnung im Header */
.contact-details .contact-link {
    display: block;
}

.contact-link--bold {
    font-weight: bold;
}

/* Barrierefreiheit: Fokus-Ring für Tastaturnutzer */
.contact-link:focus-visible {
    outline: 2px solid #E30613; /* Nutzt dein Praxis-Rot als Fokusfarbe */
    outline-offset: 2px;
}

/* ===================================
   STICKY NAVIGATION
   =================================== */

.main-nav {
    background-color: #C8102E;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-list {
    display: flex;
    flex-direction: column;
}

.nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-list li:last-child {
    border-bottom: none;
}

.nav-list a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
}

.nav-list a:hover,
.nav-list a:focus {
    background-color: rgba(0, 0, 0, 0.1);
    outline: 2px solid #fff;
    outline-offset: -2px;
}

.nav-list a.active {
    background-color: rgba(0, 0, 0, 0.15);
}

/* ===================================
   MAIN CONTENT
   =================================== */

main {
    min-height: 60vh;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    padding: 40px 0;
    text-align: center;
    background-color: #fafafa;
}

.hero h1 {
    font-size: 1.5rem;
    line-height: 1.4;
    color: #333;
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-image {
    margin: 0 auto;
    max-width: 600px;
    padding: 20px;
}

.hero-image img {
    width: 100%;
    height: auto;
    margin: 0 auto;
}

/* ===================================
   INTRO SECTION
   =================================== */

.intro-section {
    padding: 40px 0;
}

.intro-section h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.intro-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.approach-section {
    margin-top: 30px;
}

.approach-section h3 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.approach-item {
    margin-bottom: 25px;
}

.approach-item h4 {
    font-size: 1.1rem;
    color: #C8102E;
    margin-bottom: 8px;
    font-weight: 600;
}

.approach-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    padding-left: 10px;
}

/* ===================================
   WARUM UNS SECTION (TABS)
   =================================== */

.warum-uns-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Tab Navigation */
.reiter-navigation {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

.reiter {
    background-color: #fff;
    border: 2px solid #e0e0e0;
    padding: 15px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border-radius: 4px;
}

.reiter:hover {
    border-color: #C8102E;
    color: #C8102E;
}

.reiter.active {
    background-color: #2c2c2c;
    border-color: #2c2c2c;
    color: #fff;
}

.reiter:focus-visible {
    outline: 3px solid #E30613;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Tab Content Container */
.reiter-content-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.tabs-wrapper {
    position: relative;
    min-height: 400px;
}

.reiter-content {
    display: none;
}

.reiter-content.active {
    display: block;
}

.reiter-content h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 0 0 10px;
    font-weight: 600;
}

.reiter-content h4 {
    font-size: 1.1rem;
    color: #C8102E;
    margin: 0 0 20px;
    font-weight: 600;
}

.reiter-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Vorteil Liste */
.vorteil-liste {
    list-style: none;
    padding: 0;
    margin: 25px 0 0;
}

.vorteil-liste li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    line-height: 1.7;
    color: #333;
}

.vorteil-liste li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #C8102E;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Inhaber Bild */
.inhaber-bild-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Zentriert Bild und Text horizontal */
    text-align: center;
}

.inhaber-name {
    margin-top: 15px; /* Abstand zum Bild */
    font-weight: bold;
    color: #333; /* Oder deine Primärfarbe */
    font-size: 1.1rem;
}

.inhaber-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===================================
   WARUM UNS - TABLET (ab 768px)
   =================================== */

@media (min-width: 768px) {
    .reiter-navigation {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .reiter {
        padding: 18px 25px;
    }

    .reiter-content-container {
        grid-template-columns: 1fr 350px;
        gap: 50px;
        align-items: start;
    }

    .reiter-content h3 {
        font-size: 1.75rem;
    }

    .reiter-content h4 {
        font-size: 1.2rem;
    }
}

/* ===================================
   WARUM UNS - DESKTOP (ab 1024px)
   =================================== */

@media (min-width: 1024px) {
    .warum-uns-section {
        padding: 80px 0;
    }

    .reiter {
        font-size: 1rem;
        padding: 20px 30px;
    }

    .reiter-content h3 {
        font-size: 2rem;
    }
}


/* ===================================
   FOOTER
   =================================== */

/* Wave Container */
.wave-container {
    position: relative;
    width: 100%;
    max-width: none;
    height: 60px;
    background-color: #fff;
    margin: 0;
    padding: 0;
    overflow: visible; /* Ändern zu visible damit Welle nicht abgeschnitten wird */
    box-sizing: border-box;
}

.wave {
    width: 100%;
    max-width: none;
    height: 60px;
    display: block;
    overflow: visible;
}

.wave path {
    fill: #2c2c2c;
}

.site-footer {
    background-color: #2c2c2c;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-section img {
    display: block;
    margin: 0 auto;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #C8102E;
    font-weight: 600;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #ccc;
}

.footer-section a {
    color: #fff;
    transition: color 0.3s ease;
}

.footer-section a:hover,
.footer-section a:focus {
    color: #C8102E;
    text-decoration: underline;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav a {
    font-size: 0.9rem;
    padding: 5px 0;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
}

.legal-links {
    margin-bottom: 15px;
}

.legal-links a {
    color: #fff;
    font-size: 0.9rem;
    padding: 0 10px;
    transition: color 0.3s ease;
}

.legal-links a:hover,
.legal-links a:focus {
    color: #C8102E;
    text-decoration: underline;
}

.legal-links .separator {
    color: #999;
}

.copyright {
    font-size: 0.85rem;
    color: #999;
}

/* ===================================
   TABLET (ab 768px)
   =================================== */

@media (min-width: 768px) {
    .top-bar-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .contact-info {
        flex-direction: row;
        gap: 30px;
        width: auto;
    }

    .nav-list {
        flex-direction: row;
        justify-content: center;
    }

    .nav-list li {
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-list li:last-child {
        border-right: none;
    }

    .nav-list a {
        padding: 18px 30px;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .intro-section h2 {
        font-size: 1.75rem;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===================================
   DESKTOP (ab 1024px)
   =================================== */

@media (min-width: 1024px) {
    .logo img {
        width: 220px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .intro-section h2 {
        font-size: 2rem;
    }

    .nav-list a {
        padding: 18px 40px;
        font-size: 1rem;
    }

    .approach-section {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .approach-section h3 {
        grid-column: 1 / -1;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .top-bar,
    .main-nav,
    .skip-link {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        text-decoration: underline;
    }

    .site-footer {
        background-color: #fff;
        color: #000;
        border-top: 2px solid #000;
    }
}

/* ===================================
   HIGH CONTRAST MODE (Barrierefreiheit)
   =================================== */

@media (prefers-contrast: high) {
    .main-nav {
        border: 2px solid #000;
    }

    .nav-list a:focus {
        outline: 3px solid #fff;
        outline-offset: -3px;
    }
}

/* ===================================
   REDUCED MOTION (Barrierefreiheit)
   =================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===================================
   LEISTUNGEN PAGE STYLES
   =================================== */

/* Page Header */
.page-header {
    padding: 50px 0 40px;
    text-align: center;
    background-color: #fff;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-intro {
    max-width: 700px;
    margin: 20px auto 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
}

/* Tabs Section */
.tabs-section {
    padding: 30px 0;
    background-color: #fff;
}

.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background-color: #fff;
    border-color: #C8102E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tab-button.active {
    background-color: #C8102E;
    color: #fff;
    border-color: #C8102E;
}

.tab-button:focus {
    outline: 2px solid #C8102E;
    outline-offset: 2px;
}

.tab-icon {
    font-size: 1.25rem;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 40px 0;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Category Section */
.category-section {
    margin: 40px 0;
    padding: 40px 0;
    border-top: 2px solid #e0e0e0;
}

.category-section:first-child {
    border-top: none;
    padding-top: 0;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.75rem;
    color: #C8102E;
    margin-bottom: 30px;
}

.category-icon {
    font-size: 2rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 30px 0;
}

/* Service Card */
.service-card {
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
}

.service-card:focus-within {
    border-color: #C8102E;
    box-shadow: 0 0 0 3px rgba(216, 67, 21, 0.2);
}

.service-card:hover {
    border-color: #C8102E;
    box-shadow: 0 8px 24px rgba(216, 67, 21, 0.15);
    transform: translateY(-4px);
}

.service-card-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.service-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #C8102E, #b23612);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.service-card-title {
    flex: 1;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.service-card-summary {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.service-card-expand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #C8102E;
    font-weight: 600;
    font-size: 0.95rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: gap 0.3s ease;
}

.service-card-expand:hover {
    gap: 12px;
    text-decoration: underline;
}

.service-card-expand:focus {
    outline: 2px solid #C8102E;
    outline-offset: 2px;
}

/* Service Details (Expandable) */
.service-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.service-card.expanded .service-details {
    max-height: 3000px;
}

.service-details-content {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.service-details h4 {
    font-size: 1.1rem;
    color: #C8102E;
    margin: 20px 0 10px;
    font-weight: 600;
}

/* List Check */
.list-check {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.list-check li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    line-height: 1.7;
    color: #333;
}

.list-check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #C8102E;
    font-weight: bold;
    font-size: 1.125rem;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #fff5f0, #fff);
    border-left: 4px solid #C8102E;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box p {
    margin: 0;
    color: #333;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 60px 20px;
    text-align: center; /* Zentriert Text-Elemente (h2, p) */
    background: linear-gradient(135deg, #3a3a3a, #2c2c2c);
    color: #fff;
    max-width: 1100px;  /* Begrenzt die Breite des dunklen Kastens */
    margin: 60px auto;  /* Zentriert den Kasten selbst auf der Seite */
    border-radius: 12px;
}

.cta-buttons {
    display: flex !important;
    justify-content: center !important; /* Zentriert die Buttons */
    gap: 20px !important;
    margin-top: 30px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.cta-button {
    display: inline-block !important;
    padding: 15px 30px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.cta-button.primary {
    background-color: #C8102E !important;
    color: #ffffff !important;
}

.cta-button.secondary {
    background-color: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #ccc !important;
}

.cta-button.primary:hover,
.cta-button.primary:focus {
    background-color: #b23612; /* Dunkleres Rot */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(216, 67, 21, 0.3);
}

.cta-button.secondary:hover,
.cta-button.secondary:focus {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===================================
   LEISTUNGEN PAGE - TABLET (ab 768px)
   =================================== */

@media (min-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-title {
        font-size: 2rem;
    }

    .tab-button {
        font-size: 1.1rem;
        padding: 18px 35px;
    }
}

/* ===================================
   LEISTUNGEN PAGE - DESKTOP (ab 1024px)
   =================================== */

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .page-header h1 {
        font-size: 2.75rem;
    }

    .cta-section h2 {
        font-size: 2.25rem;
    }
}

/* ===================================
   KONTAKT PAGE STYLES
   =================================== */

/* Contact Cards Section */
.contact-cards-section {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 30px 0;
}

.contact-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 25px;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.contact-card-icon {
    width: 40px;
    height: 40px;
    background-color: #C8102E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.contact-card h2 {
    font-size: 1.25rem;
    color: #333;
    margin: 0 0 12px;
    font-weight: 600;
}

.contact-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.contact-card .contact-value {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-top: 5px;
}

.contact-card .contact-value strong {
    display: block;
    margin-bottom: 3px;
    font-weight: 700;
}

.contact-card a {
    color: #C8102E;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #b23612;
    text-decoration: underline;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    font-size: 0.95rem;
}

/* Opening Hours List */
.hours-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95rem;
}

.hours-list li:first-child {
    padding-top: 0;
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list .day {
    font-weight: 400;
    color: #333;
}

.hours-list .time {
    color: #666;
    text-align: right;
}

.contact-card .note {
    font-size: 0.85rem;
    color: #777;
    margin-top: 12px;
    line-height: 1.5;
}

/* Map Section */
.map-section {
    padding: 60px 0 40px;
    background-color: #fff;
}

.map-section h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 40px;
    color: #333;
    font-weight: 600;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0 0 40px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Directions Box */
.directions-box {
    background-color: #fff;
    border-left: 3px solid #C8102E;
    padding: 25px;
    border-radius: 0 4px 4px 0;
    margin-top: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.directions-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    color: #333;
    margin: 0 0 20px;
    font-weight: 600;
}

.directions-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.direction-item h4 {
    font-size: 1rem;
    color: #333;
    margin: 0 0 8px;
    font-weight: 600;
}

.direction-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Contact CTA Section */
.contact-cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: #f9f9f9;
}

.contact-cta-section h2 {
    font-size: 1.75rem;
    color: #333;
    margin: 0 0 15px;
    font-weight: 600;
}

.contact-cta-section p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 25px;
}

/* ===================================
   KONTAKT PAGE - TABLET (ab 768px)
   =================================== */

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .map-container {
        height: 450px;
    }

    .directions-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .map-section h2 {
        font-size: 2rem;
    }

    .contact-cta-section h2 {
        font-size: 2rem;
    }
}

/* ===================================
   KONTAKT PAGE - DESKTOP (ab 1024px)
   =================================== */

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .map-container {
        height: 500px;
    }

    .contact-cta-section h2 {
        font-size: 2.25rem;
    }

    .directions-content {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   STELLENANGEBOTE PAGE STYLES
   =================================== */

/* Jobs Section */
.jobs-section {
    padding: 40px 0;
    background-color: #f9f9f9;
}

/* Job Listing */
.job-listing {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.job-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 30px;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.job-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: #C8102E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.job-title-wrap {
    flex: 1;
}

.job-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
}

.job-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #999;
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
    padding: 25px 30px;
    font-size: 0.95rem;
}

.job-section {
    padding: 25px 30px;
    border-top: 1px solid #f0f0f0;
}

.job-section:first-of-type {
    border-top: none;
}

.job-section h3 {
    font-size: 1.1rem;
    color: #3f68a3;
    margin: 0 0 15px;
    font-weight: 600;
}

/* Job List */
.job-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.job-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    line-height: 1.6;
    color: #666;
    font-size: 0.95rem;
}

.job-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #C8102E;
    font-weight: bold;
    font-size: 1rem;
}

/* Benefits Section */
.benefits-section {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}

.benefits-section h2 {
    font-size: 1.75rem;
    color: #333;
    margin: 0 0 50px;
    font-weight: 600;
}

/* Benefits Carousel */
.benefits-carousel {
    margin: 30px 0;
}

.benefits-track {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
}

.benefit-slide {
    min-height: 100%;
}

.benefit-card {
    background-color: #fff;
    border-left: 3px solid #C8102E;
    padding: 25px;
    border-radius: 0;
    text-align: left;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.benefit-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.benefit-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #333;
    margin: 0 0 12px;
    font-weight: 600;
}

.benefit-card h3 span {
    color: #C8102E;
    font-size: 1.25rem;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
}

.benefits-hint {
    margin: 20px 0 0;
    color: #999;
    font-size: 0.85rem;
    text-align: center;
}

/* ===================================
   STELLENANGEBOTE - TABLET (ab 768px)
   =================================== */

@media (min-width: 768px) {
    .job-header {
        gap: 20px;
        padding: 30px;
    }

    .job-description {
        padding: 30px;
    }

    .job-section {
        padding: 30px;
    }

    .benefits-track {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .benefits-hint {
        display: none;
    }
}

/* ===================================
   STELLENANGEBOTE - DESKTOP (ab 992px)
   =================================== */

@media (min-width: 992px) {
    .benefits-track {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .job-listing {
        padding: 0;
    }

    .benefits-section h2 {
        font-size: 2rem;
    }

    .job-title {
        font-size: 1.35rem;
    }
}

/* ===================================
   SVG ICON STYLES
   =================================== */

/* Service Icon Container */
.service-icon-container {
    width: 60px;
    height: 60px;
    background-color: #f0f7ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-icon {
    width: 30px;
    height: 30px;
}

/* General SVG Icon Styles */
.top-bar-svg,
.header-svg {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 5px;
}

.tab-svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.sidebar-icon {
    width: 28px;
    height: 28px;
}

.card-svg {
    width: 32px;
    height: 32px;
}

.cta-svg {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    filter: brightness(0) invert(1);
}

/* Layout-Grundgerüst */
.split-layout {
    display: flex;
    flex-direction: column; /* Mobile: Untereinander */
    gap: 40px;
    padding: 60px 20px;
}

/* Sidebar & Siegel */
.sidebar {
    order: 2; /* Mobile: Siegel unter dem Text */
}

.sidebar-sticky {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid #E30613; /* Praxis-Rot als Akzent */
    text-align: center;
}

.legal-seal {
    max-width: 160px;
    height: auto;
    margin-bottom: 20px;
}

.sidebar-info p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Styling der eRecht24-Texte (Overrides) */
.erecht24-wrapper {
    order: 1;
    line-height: 1.8; /* Barrierefrei: Höherer Zeilenabstand */
    font-size: 1.1rem;
    color: #333;
}

.erecht24-wrapper h1 {
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.erecht24-wrapper h2 {
    color: #E30613; /* Praxis-Rot für Zwischenüberschriften */
    margin-top: 1.5em;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.erecht24-wrapper p {
    margin-bottom: 1.5em;
}

/* Desktop-Anpassung (ab 992px) */
@media (min-width: 992px) {
    .split-layout {
        flex-direction: row; /* Desktop: Nebeneinander */
        align-items: flex-start;
    }

    .sidebar {
        flex: 0 0 280px;
        order: 1; /* Sidebar links */
        position: sticky;
        top: 120px; /* Bleibt beim Scrollen stehen */
    }

    .content-body {
        flex: 1;
        max-width: 850px; /* Begrenzt Zeilenlänge für Barrierefreiheit */
        order: 2;
        padding-left: 40px;
    }
}

/* Sanftes Scrollen für Anker-Links von eRecht24 */
html {
    scroll-behavior: smooth;
}

/* Container für die Zentrierung */
.seal-alignment-wrapper {
    display: flex;
    justify-content: center; /* Horizontale Zentrierung */
    align-items: center;     /* Vertikale Zentrierung */
    width: 100%;
    margin-bottom: 20px;     /* Abstand zum Text darunter */
}

/* Das Siegel selbst */
.legal-seal {
    display: block;
    max-width: 160px;        /* Maximale Breite beibehalten */
    height: auto;
    margin: 0 auto;          /* Zusätzliche Absicherung für die Zentrierung */
}

/* Optimierung der Sidebar-Info */
.sidebar-info {
    text-align: center;      /* Text unter dem Siegel ebenfalls zentrieren */
}

/* Mobile Optimierung */
@media (max-width: 991px) {
    .sidebar-sticky {
        display: flex;
        flex-direction: column;
        align-items: center; /* Zentriert den gesamten Block auf Mobile */
    }
}
/* Spezifisches Design für den Fehlerbereich */
.error-main {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 80px 20px;
            text-align: center;
            min-height: 50vh;
        }
        .error-code {
            font-size: clamp(5rem, 15vw, 8rem);
            font-weight: 800;
            color: #E30613;
            line-height: 1;
            margin-bottom: 0;
        }
        .error-title {
            font-size: 1.8rem;
            margin-bottom: 15px;
            color: #333;
        }
        .error-text {
            margin-bottom: 30px;
            max-width: 500px;
        }
        .btn-back {
            background-color: #E30613;
            color: white !important;
            padding: 15px 30px;
            border-radius: 5px;
            font-weight: bold;
            transition: transform 0.2s ease;
        }
        .btn-back:hover {
            transform: scale(1.05);
        }

.slider-container {
    position: relative;
    width: 100%;
    max-width: 850px;
    margin: 20px auto;
    border-radius: 15px;
    overflow: hidden;
    /* Damit die absoluten Slides hier drin bleiben */
    aspect-ratio: 16 / 9;
}

/* Der eigentliche Slider-Bereich */
.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute; /* Legt alle Bilder übereinander */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* HIER IST DER WEICHE ÜBERGANG */
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* 1.5 Sekunden sanftes Einblenden */
    z-index: 1;
}

/* Nur der aktive Slide ist sichtbar */
.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* --- DEINE BESTEHENDEN STYLES (angepasst) --- */

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    pointer-events: none;
    z-index: 10; /* Über den Bildern */
}

.nav-btn, .play-pause-btn {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    /* Deine Hover-Logik */
    opacity: 0;
    transition: opacity 0.3s ease-in-out, background 0.2s;
}

.slider-container:hover .nav-btn,
.slider-container:hover .play-pause-btn {
    opacity: 1;
}

.dots-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5); /* Etwas transparenter im Standard */
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #E30613;
    transform: scale(1.3);
    box-shadow: 0 0 5px rgba(227, 6, 19, 0.5);
}

@media (max-width: 768px) {
    .play-pause-btn {
        display: none; /* Blendet den Pause-Button auf Handys komplett aus */
    }
}