/* --- LOKALE SCHRIFTENEINBINDUNG (DSGVO KONFORM) --- */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local(''), url('font/playfair-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: local(''), url('font/playfair-italic.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local(''), url('font/playfair-semibold.woff2') format('woff2');
}

@font-face {
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: local(''), url('font/ubuntu-light.woff2') format('woff2');
}
@font-face {
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local(''), url('font/ubuntu-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: local(''), url('font/ubuntu-medium.woff2') format('woff2');
}
@font-face {
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local(''), url('font/ubuntu-bold.woff2') format('woff2');
}

/* --- DESIGN SYSTEM --- */
:root {
    --color-weinrot: #9c1c4e;
    --color-gold: #B09458;
    --color-bg-light: #F7F5F0;
    --color-white: #ffffff;
    --color-text-dark: #2a2a2a;
    --color-text-muted: #555555;
    --color-line: rgba(156, 28, 78, 0.15);
    
    --font-sans: 'Ubuntu', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    line-height: 1.8;
    font-weight: 300;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; color: var(--color-weinrot); }

.reveal { opacity: 0; transform: translateY(30px); transition: var(--transition-smooth); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(247, 245, 240, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-line);
    box-shadow: 0 4px 30px rgba(0,0,0,0.03);
    transition: var(--transition-smooth);
}

.nav-logo img { 
    height: 60px; 
    opacity: 1; /* Standardmäßig sichtbar auf Unterseiten */
    transform: translateY(0); 
    transition: var(--transition-smooth); 
}

/* Nur auf der Startseite (Index) verstecken wir das Logo initial */
body.is-home .nav-logo img { opacity: 0; transform: translateY(10px); }
body.is-home nav.scrolled .nav-logo img { opacity: 1; transform: translateY(0); }

.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a.nav-item { 
    text-decoration: none; 
    color: var(--color-text-dark); 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    letter-spacing: 1.5px;
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-links a.nav-item:hover { color: var(--color-gold); }

/* --- Hero Bereich (Index) --- */
#hero {
    height: 95vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 8%;
    border-bottom: 1px solid var(--color-line);
    overflow: hidden; 
}

.hero-bg-wrapper {
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    height: 100%;
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: -1;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    background: url('daten/premiumreha.jpg') center/cover;
    animation: kenburns 25s infinite alternate ease-in-out;
    transform-origin: center center;
}

@keyframes kenburns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.12) translate(-2%, 2%); }
}

.hero-content { 
    max-width: 580px; 
    background: linear-gradient(to right, rgba(247,245,240,1) 70%, rgba(247,245,240,0) 100%); 
    padding: 3rem 4rem 3rem 0; 
    margin-top: 40px; 
    position: relative;
    z-index: 2;
}

.hero-logo-large {
    max-width: 320px;
    margin-bottom: 2.5rem;
    display: block;
    transition: var(--transition-smooth);
    transform-origin: left center;
}

body.scrolled .hero-logo-large {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
    pointer-events: none;
}

.hero-content h1 { font-size: 4.2rem; line-height: 1.05; margin-bottom: 1.5rem; }
.hero-content h1 span { color: var(--color-gold); display: block; font-style: italic; font-size: 3.2rem; margin-top: 0.5rem; }

/* --- Subpage Header (Rechtstexte) --- */
#page-header {
    height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-line);
    margin-top: 80px; 
    position: relative;
}
#page-header h1 { font-size: 3.5rem; margin-bottom: 1rem; }
.gold-line { width: 60px; height: 3px; background-color: var(--color-gold); margin: 0 auto; }

/* --- Legal Content Area --- */
.legal-content {
    max-width: 800px;
    margin: 5rem auto;
    padding: 0 5%;
}

.legal-content h2 {
    font-size: 2.2rem;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-line);
}

.legal-content h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-dark);
    font-family: var(--font-sans);
    font-weight: 500;
}

.legal-content p, .legal-content ul {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.legal-content ul { padding-left: 1.5rem; }
.legal-content li { margin-bottom: 0.5rem; }
.legal-content strong { color: var(--color-weinrot); font-weight: 500; }

.legal-content a {
    color: var(--color-weinrot);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.legal-content a:hover { color: var(--color-gold); }

.legal-block {
    background: #fff; 
    padding: 2rem; 
    border-left: 3px solid var(--color-gold); 
    margin-bottom: 2rem;
}

/* --- Familie --- */
#familie { padding: 8rem 8%; display: flex; gap: 6rem; background-color: var(--color-white); border-bottom: 1px solid var(--color-line); align-items: flex-start; }
.familie-img { flex: 1; position: sticky; top: 120px; }
.familie-img img { width: 100%; filter: sepia(10%) contrast(1.1); margin-bottom: 1rem; }

.familie-text { flex: 1.5; }
.familie-text h2 { font-size: 3.2rem; margin-bottom: 2.5rem; line-height: 1.1; }
.familie-text p { margin-bottom: 1.8rem; font-size: 1.1rem; }
.familie-text strong { font-weight: 500; color: var(--color-weinrot); font-size: 1.2rem; display: block; margin-bottom: 0.5rem; margin-top: 2rem; }

.editorial-quote {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-weinrot);
    font-style: italic;
    line-height: 1.4;
    margin: 3.5rem 0;
    padding-left: 2.5rem;
    border-left: 3px solid var(--color-gold);
    position: relative;
}
.editorial-quote::before {
    content: '„';
    font-size: 5rem;
    color: rgba(168, 139, 70, 0.15);
    position: absolute;
    left: -1rem;
    top: -1.5rem;
    font-family: serif;
    line-height: 1;
}

/* --- Leitbild Accordion --- */
#leitbild { padding: 8rem 8%; background-color: var(--color-bg-light); display: flex; gap: 6rem; }
.leitbild-header { flex: 1; position: sticky; top: 120px; height: fit-content; }
.leitbild-content { flex: 1.5; }

.accordion-item { border-bottom: 1px solid var(--color-line); }
.accordion-header { width: 100%; padding: 1.5rem 0; background: none; border: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; text-align: left; font-family: var(--font-serif); font-size: 1.4rem; color: var(--color-weinrot); transition: color 0.3s ease; }
.accordion-header:hover { color: var(--color-gold); }
.accordion-icon { font-family: var(--font-sans); font-weight: 300; font-size: 1.2rem; transition: transform 0.3s ease; }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-out; font-size: 1.05rem; color: var(--color-text-muted); padding-bottom: 0; }
.accordion-item.active .accordion-body { max-height: 500px; padding-bottom: 1.5rem; }
.accordion-item.active .accordion-icon { transform: rotate(45deg); }

/* --- Die Betriebe --- */
#betriebe { padding: 8rem 8%; background-color: var(--color-white); }
.section-header { text-align: center; margin-bottom: 5rem; }
.section-header h2 { font-size: 3.5rem; }

.editorial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4rem; }
.betrieb-card { display: block; text-decoration: none; color: var(--color-text-dark); position: relative; }

.card-img-wrap { width: 100%; height: 450px; overflow: hidden; margin-bottom: 1.5rem; position: relative; }
.card-img-wrap img, .card-img-wrap video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.5s ease; }
.betrieb-card:hover .card-img-wrap img, .betrieb-card:hover .card-img-wrap video { transform: scale(1.04); }

.card-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(156, 28, 78, 0.85);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.betrieb-card:hover .card-overlay { opacity: 1; }

.card-content { border-top: 1px solid var(--color-line); padding-top: 1.5rem; }
.card-content span { display: block; color: var(--color-gold); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.5rem; }
.card-content h3 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.card-content p { font-size: 1.05rem; color: var(--color-text-muted); }

/* --- Kontrast-Bereich --- */
#versprechen {
    padding: 8rem 8%;
    background-color: var(--color-weinrot); 
    color: var(--color-white);
    text-align: center;
    background-image: url('daten/background.png'); 
}
#versprechen h2 { color: var(--color-white); font-size: 3.5rem; margin-bottom: 2rem; }
#versprechen p { font-size: 1.3rem; max-width: 800px; margin: 0 auto; color: rgba(255,255,255,0.95); font-weight: 300; line-height: 1.8; }
#versprechen .gold-line { width: 80px; height: 3px; background-color: var(--color-gold); margin: 3rem auto 0 auto; }

/* --- Portale --- */
#portal-split { display: flex; background-color: var(--color-bg-light); }
.portal-half { flex: 1; padding: 7rem 8%; border-right: 1px solid var(--color-line); text-decoration: none; color: inherit; transition: background-color 0.4s ease; }
.portal-half:last-child { border-right: none; }
.portal-half:hover { background-color: var(--color-white); }
.portal-half h2 { font-size: 2.8rem; margin-bottom: 1rem; }
.portal-half span { display: block; color: var(--color-gold); text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; font-weight: 700; margin-bottom: 1rem; }

.btn-outline {
    display: inline-block;
    border: 1px solid var(--color-weinrot);
    color: var(--color-weinrot);
    padding: 0.7rem 1.5rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    margin-top: 1rem;
}
.portal-half:hover .btn-outline {
    background-color: var(--color-weinrot);
    color: var(--color-white);
}

/* --- Fat Footer --- */
footer { background-color: #1a1a1a; color: #aaaaaa; padding: 5rem 8% 3rem 8%; font-size: 0.9rem; }

.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 4rem; 
    margin-bottom: 4rem; 
}

.footer-col h4 { color: var(--color-gold); font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.9rem; margin-bottom: 1.5rem; font-weight: 500; }
.footer-col p, .footer-col a { color: #aaaaaa; text-decoration: none; line-height: 2; display: block; transition: color 0.3s ease; }
.footer-col a:hover { color: var(--color-white); }

.footer-bottom { 
    text-align: center; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    padding-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.tradition-logo {
    max-width: 120px; 
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.tradition-logo:hover { opacity: 1; }

/* --- RESPONSIVE DESIGN: Tablet --- */
@media (max-width: 1024px) {
    #familie, #leitbild, .editorial-grid, #portal-split { flex-direction: column; grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; } 
    .hero-bg-wrapper { width: 100%; clip-path: none; opacity: 0.2; }
    .leitbild-header, .familie-img { position: relative; top: 0; margin-bottom: 3rem; }
}

/* --- RESPONSIVE DESIGN: Smartphone --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    nav { padding: 0.8rem 5%; justify-content: center; } 
    .nav-logo img { height: 45px; }
    
    #page-header { height: 30vh; margin-top: 60px; }
    #page-header h1 { font-size: 2.5rem; }
    
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content h1 span { font-size: 2.2rem; }
    .hero-logo-large { max-width: 200px; margin-bottom: 1.5rem; }
    .hero-content { padding: 2rem 0; margin-top: 60px; background: none; }
    
    section, #familie, #leitbild, #betriebe, #versprechen, #portal-split, .legal-content { padding: 4rem 5%; }
    .footer-grid { grid-template-columns: 1fr; } 
    
    .familie-text h2, .leitbild-header h2, .section-header h2, #versprechen h2 { font-size: 2.2rem; }
    .portal-half h2 { font-size: 2rem; }
    .card-img-wrap { height: 300px; }
    .accordion-header { font-size: 1.1rem; padding: 1rem 0; }
    .editorial-quote { font-size: 1.3rem; margin: 2rem 0; padding-left: 1.5rem; }
    .tradition-logo { max-width: 90px; }
}