/* =========================================
   Modernes CSS für Gemeinschaftspraxis Uhe
   ========================================= */

:root {
--primary-color: #0066cc;
--secondary-color: #663399;
--accent-color: #008080;
--text-color: #333333;
--bg-color: #f5f5f5;
--light-bg: #e8e8e8;
--white: #ffffff;
--shadow: rgba(0, 0, 0, 0.1);
--radius: 8px;
}

/* Reset & Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

html {
scroll-behavior: smooth;
font-size: 16px;
}

body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: var(--text-color);
background-image: url('P1020117.jpg');
background-position: center;
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
margin: 0;
padding: 0;
min-height: 100vh;
display: flex;
flex-direction: column;
}

/* Header Styles */
.main-header {
background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
box-shadow: 0 2px 10px var(--shadow);
padding: 2rem 1rem;
text-align: center;
border-bottom: 3px solid var(--primary-color);
}

.header-content {
max-width: 900px;
margin: 0 auto;
}

.site-title {
font-size: 2.5rem;
color: var(--primary-color);
font-weight: 700;
margin-bottom: 1rem;
text-transform: uppercase;
letter-spacing: 2px;
}

.doctors-container {
display: flex;
flex-direction: column;
align-items: center;
gap: 1.5rem;
padding: 1rem 0;
}

.doctor {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.3rem;
text-align: center;
}

.doctor-name {
font-family: 'Garamond', serif;
font-size: 1.75rem;
color: var(--primary-color);
font-weight: 700;
}

.specialty {
font-family: 'Garamond', serif;
font-size: 1.1rem;
color: var(--text-color);
background: rgba(255, 255, 255, 0.8);
padding: 0.5rem 1rem;
border-radius: var(--radius);
box-shadow: 0 2px 4px var(--shadow);
}

/* Responsive adjustment for mobile */
@media (max-width: 600px) {
.doctors-container {
gap: 1rem;
}

.doctor-name {
font-size: 1.5rem;
}
}

.doctor-name {
font-family: 'Garamond', serif;
font-size: 1.75rem;
}



/* Navigation */
.main-nav {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
margin-top: 1.5rem;
gap: 1rem;
padding: 0 1rem;
}

.nav-list {
list-style: none;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.75rem;
padding: 0;
}

.nav-list li::after {
content: "|";
color: var(--primary-color);
margin-left: 0.75rem;
}

.nav-list li:last-child::after {
display: none;
}

.nav-list a {
text-decoration: none;
color: var(--text-color);
font-weight: 500;
padding: 0.5rem 1rem;
border-radius: var(--radius);
transition: all 0.2s ease;
}

.nav-list a:hover {
background: var(--light-bg);
color: var(--primary-color);
}

.secondary-nav {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.5rem;
align-items: center;
padding-top: 1rem;
border-top: 1px solid #ddd;
font-size: 0.95rem;
}

.secondary-nav a {
color: var(--primary-color);
text-decoration: none;
transition: color 0.2s ease;
}

.secondary-nav a:hover {
color: var(--secondary-color);
text-decoration: underline;
}

/* Main Content */
.main-content {
flex: 1;
max-width: 900px;
margin: 0 auto;
padding: 1.5rem 1rem;
width: 100%;
}

/* Subseiten – gemeinsames Grundgerüst (Rücklink & Seitentitel) */
.nav-back-container {
padding: 0.75rem 1rem 0;
}

.nav-back a {
display: inline-block;
color: var(--primary-color);
font-weight: 600;
text-decoration: none;
padding: 0.4rem 1rem;
border-radius: var(--radius);
background: rgba(255, 255, 255, 0.85);
box-shadow: 0 2px 6px var(--shadow);
transition: all 0.2s ease;
}

.nav-back a:hover {
color: var(--secondary-color);
background: #ffffff;
transform: translateY(-1px);
box-shadow: 0 4px 8px var(--shadow);
}

.page-header {
background: rgba(255, 255, 255, 0.95);
padding: 1.75rem 1.5rem;
border-radius: var(--radius);
box-shadow: 0 4px 12px var(--shadow);
text-align: center;
margin-bottom: 2rem;
}

.page-title {
color: var(--primary-color);
font-size: 2rem;
font-weight: 700;
margin-bottom: 0.5rem;
}

.page-intro {
color: #555;
font-size: 1.05rem;
max-width: 700px;
margin: 0 auto;
}

@media (max-width: 480px) {
.nav-back a {
display: block;
text-align: center;
}
.page-header {
padding: 1.25rem 1rem;
margin-bottom: 1.5rem;
}
.page-title {
font-size: 1.6rem;
}
.page-intro {
font-size: 0.95rem;
}
}

/* Service-/Leistungslisten (Diagnostik, Therapie) */
.service-card {
background: rgba(255, 255, 255, 0.95);
padding: 2rem;
border-radius: var(--radius);
box-shadow: 0 4px 12px var(--shadow);
margin-bottom: 2rem;
text-align: center;
}

.service-card h2 {
color: var(--secondary-color);
font-size: 1.5rem;
margin-bottom: 1.25rem;
font-weight: 600;
}

.service-list {
list-style: none;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.75rem;
padding: 0;
margin-top: 1rem;
}

.service-chip {
background: #f8f9fa;
padding: 0.6rem 1.1rem;
border-radius: var(--radius);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
font-size: 1.05rem;
color: var(--text-color);
transition: transform 0.2s ease;
}

.service-chip:hover {
transform: translateY(-2px);
box-shadow: 0 4px 8px var(--shadow);
}

.service-chip a {
color: var(--primary-color);
text-decoration: none;
font-weight: 600;
}

.service-chip a:hover {
color: var(--secondary-color);
text-decoration: underline;
}

@media (max-width: 480px) {
.service-card {
padding: 1.25rem;
}
.service-list {
gap: 0.5rem;
}
.service-chip {
width: 100%;
text-align: center;
font-size: 0.95rem;
padding: 0.5rem 0.9rem;
}
}

.hero-section {
display: flex;
flex-wrap: wrap;
text-align: center;
margin-bottom: 2.5rem;
gap: 1rem;
overflow: hidden;
border-radius: var(--radius);
min-height: 400px;
background-color: transparent;
justify-content: center;
align-items: center;
}

.hero-background {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: url('P1020117.jpg') center/cover no-repeat;
z-index: -1;
opacity: 0.35;
pointer-events: none;
}

.hero-overlay-image {
display: none; /* entfernt – Hintergrund via body-CSS */
}

.hero-main-image {
position: relative;
z-index: 3;
max-width: 60%;
height: auto;
border-radius: var(--radius);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-main-image:hover {
transform: scale(1.03);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Aktuelles Section */
.current-info {
background: rgba(255, 255, 255, 0.9);
padding: 1.5rem;
border-radius: var(--radius);
box-shadow: 0 4px 12px var(--shadow);
margin-bottom: 2rem;
text-align: center;
}

.current-info h3 {
color: var(--primary-color);
font-size: 1.75rem;
margin-bottom: 0.75rem;
font-weight: 600;
}

.current-text {
text-align: center;
max-width: 800px;
margin: 0 auto;
line-height: 1.6;
color: var(--text-color);
}

/* Centered image at bottom */
.praxis-haus-footer {
display: flex;
justify-content: center;
align-items: center;
padding: 2rem 1rem;
margin-top: 2rem;
}

/* Contact Section */
.contact-info {
background: var(--white);
padding: 2rem;
border-radius: var(--radius);
box-shadow: 0 4px 10px var(--shadow);
text-align: center;
margin-bottom: 2rem;
border-left: 5px solid var(--primary-color);
}

.contact-info h3 {
color: var(--secondary-color);
font-size: 1.5rem;
margin-bottom: 1.5rem;
font-weight: 600;
}

.address {
font-size: 1.1rem;
color: #555;
margin-bottom: 1.5rem;
padding: 0.75rem;
background: var(--light-bg);
border-radius: var(--radius);
font-family: 'Garamond', serif;
}

/* Second Practice Address (Humptrup) — juristisch deaktiviert */
.second-practice-address-container {
display: none; /* deaktivert per User-Wunsch */
margin-top: 2rem;
border-top: 1px solid #ddd;
padding-top: 1.5rem;
background: #f0f4f8;
}

.contact-details,
.specialties-container {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
}

.contact-item {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 1rem;
background: #f8f9fa;
border-radius: var(--radius);
transition: transform 0.2s ease;
}

.contact-item:hover {
transform: translateY(-2px);
box-shadow: 0 2px 6px var(--shadow);
}

.contact-item .label {
font-weight: 600;
color: var(--primary-color);
}

.email-link {
color: var(--primary-color);
text-decoration: none;
transition: color 0.2s ease;
}

.email-link:hover {
color: var(--secondary-color);
text-decoration: underline;
}

/* Navigation */
.nav-list {
list-style: none;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.75rem;
padding: 0;
}

.nav-list li::after {
content: "|";
color: var(--primary-color);
margin-left: 0.75rem;
}

.nav-list li:last-child::after {
display: none;
}

.nav-list a {
text-decoration: none;
color: var(--text-color);
font-weight: 500;
padding: 0.5rem 1rem;
border-radius: var(--radius);
transition: all 0.2s ease;
}

.nav-list a:hover {
background: var(--light-bg);
color: var(--primary-color);
}

.secondary-nav {
text-align: center;
margin-top: 1.5rem;
padding-top: 1rem;
border-top: 1px solid #ddd;
font-size: 0.95rem;
}

.secondary-nav a {
color: var(--primary-color);
text-decoration: none;
transition: color 0.2s ease;
}

.secondary-nav a:hover {
color: var(--secondary-color);
text-decoration: underline;
}

/* Apartments Section */
.apartments-link {
background: linear-gradient(135deg, #f0fff4 0%, #e0f7fa 100%);
padding: 2rem;
border-radius: var(--radius);
text-align: center;
box-shadow: 0 4px 10px var(--shadow);
}

.apartments-link h3 {
color: var(--secondary-color);
font-size: 1.5rem;
margin-bottom: 1.25rem;
}

.btn {
display: inline-block;
padding: 0.875rem 2rem;
border-radius: var(--radius);
text-decoration: none;
font-weight: 600;
transition: all 0.3s ease;
border: none;
cursor: pointer;
}

.btn-primary {
background: var(--primary-color);
color: var(--white);
box-shadow: 0 4px 10px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
background: var(--secondary-color);
transform: translateY(-3px);
box-shadow: 0 6px 15px rgba(102, 51, 153, 0.4);
}

/* Footer */
.site-footer {
background: #2c3e50;
color: var(--white);
text-align: center;
padding: 1.5rem;
margin-top: auto;
}

.site-footer p {
font-size: 0.95rem;
opacity: 0.9;
}

/* Responsive Design - Tablets */
@media (max-width: 968px) {
.main-header {
padding: 1.5rem 0.75rem;
}
.doctors-names-container,
.specialties-container {
flex-direction: column;
align-items: center;
}
.hero-image {
max-width: 90%;
}
.doctor-name {
font-size: 1.5rem;
}
}

/* Responsive Design - Large Phones */
@media (max-width: 768px) {
html {
font-size: 15px;
}
.main-header {
padding: 1.5rem 0.75rem;
}
.site-title {
font-size: 2rem;
}
.doctors-names-container .doctor-name,
.specialties-container .specialty {
font-size: 1.1rem;
}
.secondary-nav {
flex-direction: column;
gap: 0.4rem;
}
.hero-section {
margin-bottom: 2rem;
}
.contact-info,
.apartments-link {
padding: 1.5rem;
}
.nav-list {
gap: 0.5rem;
}
.nav-list a {
font-size: 0.95rem;
padding: 0.4rem 0.8rem;
}
}

/* Responsive Design - Small Phones */
@media (max-width: 480px) {
html {
font-size: 14px;
}
.main-header {
padding: 1rem 0.5rem;
}
.site-title {
font-size: 1.75rem;
margin-bottom: 0.75rem;
}
.doctors-names-container .doctor-name,
.specialties-container .specialty {
font-size: 1rem;
}
.ampersand {
margin: 8px 0;
font-size: 1.6rem;
}
.hero-image {
max-width: 95%;
height: auto;
}
.address {
font-size: 1rem;
padding: 0.6rem;
}
.contact-details,
.specialties-container {
flex-direction: column;
gap: 1rem;
}
.contact-item {
width: 100%;
justify-content: center;
background: #f8f9fa;
}
.nav-list {
gap: 0.4rem;
}
.secondary-nav a {
display: block;
margin: 5px 0;
}
}

/* Responsive Design - Aktuelles Section */
@media (max-width: 968px) {
.current-info {
padding: 1.25rem;
}

.current-info h3 {
font-size: 1.5rem;
}

.current-text {
font-size: 1rem;
}
}

@media (max-width: 768px) {
.current-info {
padding: 1rem;
margin-bottom: 1.5rem;
}

.current-info h3 {
font-size: 1.25rem;
margin-bottom: 0.6rem;
}

.current-text {
font-size: 0.95rem;
max-width: 90%;
}
}

@media (max-width: 480px) {
.current-info {
padding: 0.75rem 1rem;
margin-bottom: 1.25rem;
}

.current-info h3 {
font-size: 1.1rem;
margin-bottom: 0.5rem;
}

.current-text {
font-size: 0.9rem;
padding: 0 0.5rem;
}
}

/* Navigation auf Tablets und Handys */
@media (max-width: 768px) {
.main-nav {
flex-direction: column;
align-items: center;
}

.main-nav .nav-list {
width: 100%;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.5rem;
}

.main-nav .nav-list li::after {
display: none; /* keine Trennstriche im Raster */
}

.main-nav .nav-list a {
display: block;
text-align: center;
padding: 0.6rem 0.4rem;
background: #f8f9fa;
border-radius: var(--radius);
overflow-wrap: break-word;
transition: background 0.2s ease, color 0.2s ease;
}

.main-nav .nav-list a:hover {
color: var(--primary-color);
}

.main-nav .nav-list a:active {
background: var(--light-bg);
}
}

@media (max-width: 480px) {
.main-nav .nav-list {
grid-template-columns: repeat(2, 1fr);
gap: 0.5rem;
}

.main-nav .nav-list a {
font-size: 0.9rem;
padding: 0.6rem 0.3rem;
}
}