/* RW Dental Layout CSS */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: #ffffff;
    font-size: 14px;
    line-height: 20px;
    font-family: Arial, sans-serif;
    font-weight: 400;
    color: #404040;
}

/* Navigation Styles */
.main-navigation {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #0094d7;
    position: relative;
    z-index: 1000;
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 15px 18px;
    color: #444f4f;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.nav-link:hover {
    color: #0094d7;
    background-color: rgba(0, 148, 215, 0.1);
}

.nav-link.active {
    color: #ffffff;
    background: #0094d7;
}

.dropdown-arrow {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: #444f4f;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 2px;
}

.dropdown-menu a:hover {
    background-color: rgba(0, 148, 215, 0.1);
    color: #0094d7;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #444f4f;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Basic Typography */
a {
    color: #0094d7;
    text-decoration: none;
}

a:hover {
    color: #0094d7;
    font-weight: 700;
}

p {
    color: #404040;
    line-height: 20px;
    padding: 0;
    margin-bottom: 15px;
}

h1 {
    font-size: 24px;
    font-weight: 700;
    color: #444f4f;
    padding: 0;
    margin-top: 25px;
    margin-bottom: 15px;
    padding-left: 30px;
    background: url(../bilder/headline-point.png) no-repeat left center;
}

h2 {
    font-size: 16px;
    color: #444f4f;
    padding: 0;
}

h3 {
    font-size: 16px;
    font-weight: 700;
    color: #444f4f;
    padding: 0;
    margin-top: 25px;
    margin-bottom: 15px;
    padding-left: 30px;
    background: url(../bilder/headline-point2.png) no-repeat left center;
}

/* Spezielle Regel für das Referenzobjekte h3 - ohne Hintergrundgrafik */
#inhalt_container h3 {
    padding-left: 0;
    background: none;
}

h4 {
    font-size: 16px;
    color: #0094D7;
    padding: 0;
}

h5 {
    font-size: 16px;
    color: #F00;
    padding: 0;
}

/* Lists */
li {
    list-style: none;
}

.liste {
    list-style: disc;
    color: #404040;
    line-height: 20px;
    margin-bottom: 15px;
    margin-left: 30px;
}

/* Container */
#container {
    width: 100%;
    max-width: 900px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0;
    border-left: solid 1px #0094d6;
    border-right: solid 1px #0094d6;
    position: relative;
    background: white;
    display: flex;
    flex-direction: column;
}

/* Header */
#header {
    width: 100%;
    height: 150px;
    overflow: hidden;
    padding: 0;
    margin: 0;
    border-bottom: solid 1px #0094d6;
}

#header img {
    width: 100%;
    height: auto;
    display: block;
}

/* Top Picture */
#toppic {
    width: 100%;
    height: 240px;
    overflow: hidden;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: solid 1px #0094d6;
}

#toppic img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Container */
#inhalt_container {
    clear: both;
    padding: 0 40px;
    margin: 0;
    flex: 1;
}

#inhalt_container:after {
    clear: both;
    display: block;
    height: 0;
    font: 1px/0px serif;
    content: ".";
    visibility: hidden;
}

/* Text Boxes */
.text_box_links {
    float: left;
    width: 45%;
    padding: 0 0 20px 0;
    margin: 0 20px 10px 0;
}

.text_box_rechts {
    float: right;
    width: 45%;
    padding: 0 0 20px 0;
    margin: 0 20px 0 0;
}

#text_gesamt {
    float: left;
    width: 100%;
    padding: 0 0 20px 0;
    margin: 0 20px 10px 0;
}

.text_gesamt1 {
    float: left;
    width: 100%;
    padding: 0 0 40px 0;
    margin: 0 20px 10px 0;
}

.text_box_gesamt {
    float: left;
    width: 100%;
    padding: 0 0 20px 0;
    margin: 0 20px 10px 0;
}

/* Columns */
.columns {
    margin: 1em auto;
    -moz-column-count: 2;
    -moz-column-gap: 40px;
    -moz-column-rule: 0px solid #0094d7;
    -webkit-column-count: 2;
    -webkit-column-gap: 40px;
    -webkit-column-rule: 0px solid #0094d7;
    column-count: 2;
    column-gap: 40px;
    column-rule: 0px solid #0094d7;
}

/* Images */
.bild_rechts {
    float: right;
    width: 300px;
    height: 200px;
    padding: 0;
    margin: 10px 0 0 20px;
    border: solid 1px #0094d7;
    overflow: hidden;
}

.bild_rechts1 {
    float: right;
    width: 100px;
    height: 150px;
    padding: 0;
    margin: 10px 0 0 20px;
    border: solid 1px #0094d7;
}

#bild_links {
    float: left;
    width: 160px;
    height: 200px;
    padding: 0;
    margin: 5px 20px 0 0;
    border: solid 1px #b1ca35;
    overflow: hidden;
}

#bild_archiv {
    float: left;
    width: 140px;
    height: 160px;
    padding: 0;
    margin: 5px 20px 0 0;
    border: solid 1px #b1ca35;
    overflow: hidden;
}

/* Image Captions */
.bildunterschrift {
    float: right;
    width: 250px;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: right;
}

.bildunterschrift_links {
    float: left;
    width: 160px;
    padding: 0;
    margin: 0;
}

.bildunterschrift p {
    float: right;
    text-align: right;
    line-height: 13px;
    color: #404040;
    padding: 0;
    margin-top: 10px;
}

.bildunterschrift_links p {
    font-size: 10px;
    font-style: italic;
    text-align: left;
    line-height: 13px;
    color: #404040;
    padding: 0;
    margin-top: 10px;
}

/* Footer */
#footer {
    clear: both;
    width: 100%;
    min-height: 85px;
    margin-top: auto;
    background-image: url(../bilder/footer.jpg);
    background-repeat: no-repeat;
    background-position: bottom;
    background-color: #f8f9fa;
    border-top: 1px solid #0094d7;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    padding: 15px 40px;
    min-height: 85px;
}

.footer-left p,
.footer-right p {
    font-size: 14px;
    font-weight: 700;
    color: #444f4f;
    margin: 0;
    line-height: 1.2;
}

.footer-center {
    flex: 1;
    text-align: center;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-links a {
    color: #444f4f;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0094d7;
    text-decoration: underline;
}

.footer-links .separator {
    color: #ccc;
    font-size: 12px;
}

.footer-mobile-copyright {
    display: none;
    text-align: center;
    padding: 10px 20px;
    border-top: 1px solid #e0e0e0;
    background-color: #ffffff;
}

.footer-mobile-copyright p {
    font-size: 11px;
    color: #666;
    margin: 0;
}

/* Utility Classes */
.red {
    color: #F00;
}

.pflichtfeld {
    color: #F00;
}

.ref {
    color: #404040;
    line-height: 18px;
    padding: 0;
    margin-bottom: 15px;
    list-style: square;
}

/* Gallery Styles */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    justify-content: flex-start;
}

.gallery img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border: 2px solid #0094d7;
    border-radius: 4px;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 148, 215, 0.3);
    z-index: 10;
    position: relative;
}

/* Carousel Overlay */
.carousel-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.carousel-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.carousel-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.carousel-close:hover {
    color: #0094d7;
}

.carousel-main {
    position: relative;
    display: inline-block;
}

#carouselImage {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 148, 215, 0.8);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    z-index: 10001;
}

.carousel-nav:hover {
    background-color: rgba(0, 148, 215, 1);
}

.carousel-nav.prev {
    left: -70px;
}

.carousel-nav.next {
    right: -70px;
}

.carousel-counter {
    color: white;
    font-size: 16px;
    margin-top: 15px;
    text-align: center;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        padding-top: 60px;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-link {
        padding: 15px 20px;
        width: 100%;
        justify-content: space-between;
        display: flex;
        align-items: center;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: #f8f9fa;
        margin-left: 20px;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 200px;
    }
    
    .dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    /* Mobile toggle animation */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Container adjustments for mobile */
    #container {
        border-left: none;
        border-right: none;
    }
    
    #inhalt_container {
        padding: 0 20px;
    }
    
    .text_box_links,
    .text_box_rechts {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
    }
    
    .columns {
        column-count: 1;
    }
    
    .bild_rechts {
        float: none;
        width: 100%;
        max-width: 300px;
        margin: 10px auto;
        display: block;
    }
    
    .bildunterschrift {
        float: none;
        width: 100%;
        text-align: center;
    }
    
    /* Footer Mobile Styles */
    .footer-container {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 15px;
    }
    
    .footer-left,
    .footer-right {
        order: 2;
    }
    
    .footer-center {
        order: 1;
        margin-bottom: 10px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-links .separator {
        display: none;
    }
    
    .footer-mobile-copyright {
        display: block;
    }
    
    .footer-left p,
    .footer-right p {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-menu {
        width: 90%;
    }
    
    #inhalt_container {
        padding: 0 15px;
    }
    
    h1, h3 {
        padding-left: 20px;
        font-size: 18px;
    }
    
    #header {
        height: auto;
    }
    
    #toppic {
        height: auto;
    }
}

/* ---------- Ergänzende Styles für die Datenschutzerklärung ---------- */

/* Box zur Hervorhebung der Kontaktdaten des Verantwortlichen */
.datenschutz-box {
    background-color: #f4f4f4;
    border-left: 4px solid #0094d7; /* Passt zur Hauptfarbe Ihrer Seite */
    padding: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Verbessert die Lesbarkeit von Listen */
#inhalt_container .liste {
    list-style-type: disc;
    padding-left: 20px; /* Einrücken der Liste */
    margin-left: 20px;
}

#inhalt_container .liste li {
    padding-bottom: 10px; /* Mehr Abstand zwischen den Listenpunkten */
    list-style: disc !important; /* Stellt sicher, dass die Punkte angezeigt werden */
    float: none; /* Überschreibt das float aus der Haupt-CSS */
}

/* Stärkerer visueller Abstand zwischen den Hauptabschnitten */
#inhalt_container h3 {
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
    padding-top: 25px;
}

#inhalt_container h3:first-of-type {
    margin-top: 25px; /* Kein extra Abstand über dem ersten H3-Titel */
    border-top: none;
    padding-top: 0;
}

/* Spezifische Formatierung für Unterüberschriften in der Datenschutzerklärung */
#inhalt_container h2 {
    margin-top: 10px;
    margin-bottom: 5px;
}