+/* nunito-regular - latin */
@font-face {
	font-display: swap;
	font-family: 'Nunito';
	font-style: normal;
	font-weight: 400;
	src: url('../fonts/nunito-v32-latin-regular.woff2') format('woff2'),
		url('../fonts/nunito-v32-latin-regular.ttf') format('truetype');
}

/* spectral-regular - latin */
@font-face {
	font-display: swap;
	font-family: 'Spectral';
	font-style: normal;
	font-weight: 400;
	src: url('../fonts/spectral-v15-latin-regular.woff2') format('woff2'),
		url('../fonts/spectral-v15-latin-regular.ttf') format('truetype');
}



:root {
	--bg-color: #faf7f2;
	--bg-color-middle: #f5f0e8;
	--nav-bg: #f5f0e8;
	--accent-color: #4e7048;
	--footer-bg: #2c2520;
	--text-dark: #2c2520;
	--text-accent: #c48e73;
	--text-light: #faf7f2;
	--line: #e0dcd7;
	--serif-font: 'Spectral', serif;
	--sans-font: 'Nunito', sans-serif;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--sans-font);
	background-color: var(--bg-color);
	color: var(--text-dark);
	line-height: 1.6;
}

/* Generelle Links im Text ------- */
section a {
	color: var(--accent-color);
	text-decoration: none;
	border-bottom: 1px solid var(--accent-color);
	padding-bottom: 3px;
}

section a:hover {
	color: #3a5a36;
	border-bottom-color: #3a5a36;
}

/* Maskierung E-Mail-Adresse ------- */
.email>ins:before {content: "@"; text-decoration: none}
.email ins, .email del { text-decoration: none; background-color: transparent; color: lightgrey; }
.email>del {display: none}
*:first-child+html .email>del {display:inline}  /* Workaround fuer IE 7 */

/* Navigation Basis ------- */
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.8rem 5%;  /* Mehr Platz oben für großes Logo */
	transition: padding 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
	min-height: 100px;
}

/* Navigation nach Scrollen ------- */
.navbar.scrolled {
	padding: 0.5rem 5%;
	background-color: var(--nav-bg);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	min-height: 70px;
}

/* Logo Container ------- */
.logo-palliative-versorgung {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	transition: transform 0.4s ease;
}

/* Logo – große Version (Start) ------- */
.logo-palliative-versorgung img {
	max-width: 230px;
	max-height: 90px;  /* ↑ Höher für Detailtreue */
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	transition: max-height 0.4s ease, transform 0.4s ease;
}

/* Logo – kleine Version (Scrolled) ------- */
.navbar.scrolled .logo-palliative-versorgung img {
	max-height: 48px;  /* ↓ Kompakt beim Scrollen */
	transform: scale(0.92);
}

/* Sections scroll-margin – deckt beide Nav-Zustände ab */
/* Verschieben der section beim Anklicken des Links */
section[hero],
section[ueber-uns],
section[ansatz],
section[team],
section[projekte] {
	scroll-margin-top: 20px;
}

/* Navigation ------- */

.nav-menu {
	display: flex;
	list-style: none;
	gap: .75rem;
}

.nav-right {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.nav-menu a {
	text-decoration: none;
	color: var(--text-light);
	font-weight: 400;
	padding: 0.4rem .75rem;
	border-radius: 20px;
	text-decoration: none;
	font-weight: 400;
	border: 1px solid transparent;
	transition: all 0.3s ease;
}

.nav-menu a:hover {
	color: var(--text-dark);
	background-color: var(--text-light);
	color: var(--text-dark) !important;
	padding: 0.4rem .75rem;
	border-radius: 20px;
	text-decoration: none;
	font-weight: 400;
	border: 1px solid var(--accent-color);
	transition: all 0.3s ease;
}

.navbar.scrolled .nav-menu a {
	color: var(--text-dark);
	padding: 0.4rem .75rem;
	border-radius: 20px;
	text-decoration: none;
	font-weight: 400;
	border: 1px solid transparent;
	transition: all 0.3s ease;
}

.navbar.scrolled .nav-menu a:hover {
	color: var(--text-dark);
	background-color: var(--text-light);
	color: var(--text-dark) !important;
	padding: 0.4rem .75rem;
	border-radius: 20px;
	text-decoration: none;
	font-weight: 400;
	border: 1px solid var(--accent-color);
	transition: all 0.3s ease;
}

.nav-menu a.active {
	/*font-weight: 400;
	text-decoration: underline;
	text-underline-offset: 0.3rem;
	text-decoration-thickness: 2px;*/
	background-color: var(--text-light);
	color: var(--text-dark) !important;
	padding: 0.4rem .75rem;
	border-radius: 20px;
	text-decoration: none;
	font-weight: 400;
	border: 1px solid var(--accent-color) !important;
	transition: all 0.3s ease;	
}

a.cta-button {
	background-color: var(--accent-color);
	color: var(--text-light) !important;
	padding: 0.4rem .75rem;
	border-radius: 20px;
	text-decoration: none;
	font-weight: 400;
	border: 1px solid var(--accent-color);
	transition: all 0.3s ease;
}

a.cta-button:hover {
	background-color: var(--text-light);
	border: 1px solid var(--accent-color);
	color: var(--text-dark) !important;
}

a.cta-button.active {
	background-color: var(--text-light);
	color: var(--text-dark) !important;
	border: 1px solid var(--accent-color);
}

/* Scroll to Top Button */
.scroll-to-top {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 50px;
	height: 50px;
	background-color: var(--accent-color);
	color: var(--text-light);
	border: none;
	border-radius: 50%;
	font-size: 1.5rem;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.scroll-to-top.visible {
	opacity: 1;
	visibility: visible;
}

.hamburger {
	display: none;
	flex-direction: column;
	cursor: pointer;
	gap: 5px;
}

.hamburger span {
	width: 25px;
	height: 3px;
	background-color: var(--text-dark);
	transition: 0.3s ease;
}

/* ===== CONTAINER & SECTIONS ===== */
.container {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 5%;
}

section {
	padding: 4rem 0;
}

.section-title {
	font-family: var(--serif-font);
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 2rem;
	color: var(--text-dark);
}

.section-text {
	font-size: 1.1rem;
	margin-bottom: 2rem;
	padding-top: .5rem;
	max-width: 600px;
}

.section-subhead {
	text-transform: uppercase;
	color:var(--text-accent);
	margin-bottom: 0;
}

/* ===== SCREEN 1: HERO ===== */

#hero {
	min-height: 100vh;
	position: relative;
	overflow: hidden;
}

.hero-content {
	max-width: 45%;
	padding-left: 0;
}

.hero-text {
	padding: 8rem 3rem 5rem 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	z-index: 1;
}

.zitat {
	padding: 1rem;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--bg-color-middle);
	font-style: italic;
}

.hero-text .section-title {
	font-size: 3.5rem;
	line-height: 1.2;
}

.hero-image {
	position: absolute;
	top: 0;
	right: 0;
	width: 50%;
	height: 100%;
	background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
		url('../img/palliativ-vertrauen_1.jpg');
	background-size: cover;
	background-position: center;
}





/* ===== ERWEITERUNG FÜR SLIDESHOW ===== */
/* WICHTIG: Nur dieses CSS hinzufügen, bestehendes bleibt unverändert */

.hero-image-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 0;
}



/* Slideshow entfernt das alte Background-Image aus .hero-image */
.slideshow-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}


/* Oberer Verlauf (für Navigation) */
.slideshow-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 3;
  pointer-events: none;
}

/* Unterer Verlauf (für Zitat + Punkte) */
.slideshow-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 250px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 3;
  pointer-events: none;
}

/* Slideshow Basis */
.slideshow-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}


.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.slide.active {
  opacity: 1;
}

/* Navigations-Punkte */
.slide-dots {
  position: absolute;
  bottom: 2.5rem; /* Etwas höher über dem unteren Rand */
  left: calc(50% + 250px); /* Rechts vom Zitat, bei 50%-Layout */
  transform: translateY(50%);
  display: flex;
  gap: 0.75rem;
  z-index: 4;
}

@media (max-width: 768px) {
  .slide-dots {
    left: 50%;
    bottom: 1.5rem;
  }
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* Zitat-Positionierung (wie vorher erhalten) */
.hero-quote {
  position: absolute;
  bottom: 3rem;
  left: 2rem;
  color: var(--text-light);
  font-style: italic;
  font-size: 1.15rem;
  max-width: 300px;
  z-index: 4; /* Über dem unteren Verlauf */
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  line-height: 1.4;
}



/* ========== MOBILE RESPONSIVE ========== */

@media (max-width: 768px) {
  .hero-image-container {
    position: relative;
    width: 100%;
    height: 40vh;
  }
  
  .hero-quote {
    bottom: 1rem;
    left: 1rem;
    font-size: 1rem;
    max-width: calc(100% - 4rem);
  }
  
  .slide-dots {
    right: auto;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
  }
  
  .slideshow-wrapper::after {
    height: 180px; /* Kleiner bei Mobile */
  }
}

/* Mobile Responsive (1-spaltig) 
@media (max-width: 768px) {
  .hero-image-container {
    position: relative;
    width: 100%;
    height: 40vh;
  }
  
  .hero-text {
    padding: 2rem 3rem 2rem 3rem;
  }
  
  .hero-quote {
    bottom: 1rem;
    left: 1rem;
    font-size: 1rem;
    max-width: calc(100% - 2rem);
  }
}
*/

/* ===== SCREEN 2: IMAGE TEXT ===== */
#ueber-uns{
	background-color: var(--bg-color-middle);
}

.image-text-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
	padding: 4rem 0;
}

.image-text-image {
	height: 100%;
	background: url('../img/palliative-versorgung-gruppenfoto.jpg');
	background-size: cover;
	background-position: 0;
	/*border-radius: 20px;*/
}



/* ===== SCREEN 3: TEXT SECTION ===== */
#entwicklung {
	background-color: var(--bg-color-light);
}

.text-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: start;
}

/* ===== SCREEN 4: ACCORDION ===== */
#team {
	background-color: var(--bg-color-middle);
}

.accordion-container {
	margin-top: 3rem;
}

.accordion {
	display: flex;
	gap: 2rem;
}

.accordion-column {
	flex: 1;
}

.accordion-item {
	margin-bottom: 1rem;
	border-bottom: 1px solid #ddd;
}

.accordion-header {
	padding: 1.5rem 0;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: var(--serif-font);
	font-size: 1.15rem;
	font-weight: 600;
	height: 5rem;
}

.accordion-header:hover {
	color: var(--accent-color);
}

/* Icon: Plus aus zwei CSS-Strichen */
.accordion-icon {
	position: relative;
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
}

.accordion-icon::before,
.accordion-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
	transform: translateY(-50%);
	transition: opacity 0.3s ease;
}

/* vertikaler Strich */
.accordion-icon::after {
	transform: translateY(-50%) rotate(90deg);
}

/* Aktiv: vertikalen Strich einfach ausblenden -> Minus */
.accordion-item.active .accordion-icon::after {
	opacity: 0;
}

.accordion-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
	padding: 0;
}

address {
	font-style: normal;
	margin-top: .5rem;
}

.logo-container {
	display: inline-block;
	/*background-color: #fff;*/
	padding: .5rem .5rem .25rem .5rem;
	margin-bottom: .5rem;
}

img.logofilter {
	filter: brightness(1.08) contrast(1.15); /* Grau-Bias etwas hochdrücken */
	mix-blend-mode: multiply;
}

/* ===== SCREEN 5: SLOGAN BANNER ===== */
#slogan {
	position: relative;
	height: 33vh;
	background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
	    url('../img/palliativ-herbst.jpg');
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-light);
	text-align: center;
}

#slogan .section-title {
	font-size: 3rem;
	font-weight: 500;
	color: var(--text-light);
	max-width: 800px;
}

/* ===== SCREEN 6: CARDS GRID ===== */
#projekte {
	background-color: var(--bg-color-middle);
}

/* Header Text Container - Text unten ausgerichtet */
.header-text-container {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 4rem;
	margin-bottom: 4rem;
	align-items: end;
}

/* Cards Grid */
.cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.card {
	background-color: var(--text-light);
	border-radius: 12px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	border: 1px solid #e0e0e0;
	overflow: hidden;
}

.card-image {
	height: 180px;
	width: 100%;
	background-size: cover;
	background-position: center;
	border-radius: 8px 8px 0 0;
}

.card-content {
	padding: 1.5rem;
}

.card h3 {
	font-family: var(--serif-font);
	font-size: 1.5rem;
	margin-bottom: 1rem;
	color: var(--text-dark);
}

.card-meta {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 1rem;
	font-size: 0.9rem;
	color: #666;
	font-weight: bold;
}

.card-meta .icon {
	margin-right: 0.5rem;
	vertical-align: middle;
	color: #666;
}

/* ===== SCREEN 7: CONTACT ===== */
#kontakt {
	background-color: var(--bg-color);
}

.contact-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
}

.contact-info h3 {
	font-family: var(--serif-font);
	font-size: 1.8rem;
	margin-bottom: 1.5rem;
}

.contact-info p {
	margin-bottom: 1rem;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.form-group label {
	font-weight: 600;
}

.form-group input,
.form-group textarea {
	padding: 1rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-family: var(--sans-font);
	font-size: 1rem;
}

.form-group textarea {
	min-height: 150px;
	resize: vertical;
}

.submit-button {
	background-color: var(--accent-color);
	color: var(--text-light);
	padding: .75rem 1.5rem;
	border: none;
	border-radius: 20px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s ease;
	align-self: flex-start;
}

.submit-button:hover {
	background-color: #3a5a36;
}

/* ===== FOOTER ===== */
footer {
	background-color: var(--footer-bg);
	color: var(--text-light);
	padding: 4rem 0 2rem;
}

.footer-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	margin-bottom: 3rem;
}

.footer-text h3 {
	font-family: var(--serif-font);
	font-size: 1.8rem;
	line-height: 1.2;
	margin-bottom: 1.5rem;
}

.footer-nav {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.footer-nav a {
	color: var(--text-light);
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-nav a:hover {
	color: var(--accent-color);
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	font-size: 0.9rem;
}

.footer-links {
	display: flex;
	gap: 2rem;
}

.footer-links a {
	color: var(--text-light);
	text-decoration: none;
}

.footer-links a:hover {
	text-decoration: underline;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
	.hero-content { max-width: 100%; padding-left: 0; }
	.hero-text { padding: 4rem 0 2rem; }
	.hero-image { position: relative; width: 100%; height: 50vh; }
	.text-section,
	.image-text-section,
	.contact-container { grid-template-columns: 1fr; gap: 2rem; }
	.accordion { flex-direction: column; }
	.header-text-container { grid-template-columns: 1fr; }
	.cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	section { padding: 3rem 0; }
	.navbar { padding: 1rem 5%; }
	.nav-menu {
		position: fixed;
		top: 70px;
		left: 0;
		right: 0;
		background-color: var(--nav-bg);
		flex-direction: column;
		align-items: center;
		padding: 2rem;
		gap: 1.5rem;
		transform: translateY(-150%);
		opacity: 0;
		visibility: hidden;
		transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
	}	
	.nav-right {
		display: block;
		position: relative;
		z-index: 1000;
	}
  	.nav-right a { color: var(--text-dark); }
	.nav-menu.active {
		transform: translateY(0);
		opacity: 1;
		visibility: visible;
	}	
	.hamburger { display: flex; }
	/*.cta-button { display: none; }*/
	#hero { padding-top: 12rem; min-height: auto; }
	.hero-content { max-width: 100%; }
	.hero-text { padding: 2rem 0; }
	.hero-image { position: relative; width: 100%; height: 40vh; }
	.section-title { font-size: 2rem; }
	.hero-text .section-title { font-size: 2.5rem; }
	#slogan .section-title { font-size: 2rem; }
	.cards-grid { grid-template-columns: 1fr; }
	.footer-container { grid-template-columns: 1fr; text-align: center; }
	.footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
	
	.logo-palliative-versorgung img { max-height: 50px; }
	
	section[hero],
	section[ueber-uns],
	section[ansatz],
	section[team],
	section[projekte] {
		scroll-margin-top: 100px;
	}
}

@media (max-width: 480px) {
	.hero-text .section-title { font-size: 2rem; }
	.image-text-image {height: 380px; background-position: 0 -50px; }
	.section-title { font-size: 1.8rem; }
	.cta-button {}
	#slogan .section-title { font-size: 1.5rem; }
}