:root {
	--primary: #35b8b2;
	--primary-light: #d8f4f2;
	--secondary: #7b4bb7;
	--accent: #d85a4a;
	--bg: #f5f6f8;
	--white: #ffffff;
	--text: #333;
}

body {
	margin: 0;
	font-family: "Segoe UI", system-ui, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Hauptinhalt soll den Platz zwischen Header und Footer füllen */
main {
    flex: 1;
}

/* ========================= */
/* HEADER – NEUE 3-SPALTEN VERSION */
/* ========================= */

.header-top {
    background: var(--primary-light);
    padding: 12px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* Spalten */
.header-col {
    flex: 1;
    min-width: 200px;
}

.header-left {
    text-align: left;
}

.header-center {
    text-align: center;
}

.header-right {
    text-align: right;
}

/* Logo */
.header-left img {
    max-width: 175px;
    height: auto;
}

/* Claim */
.header-claim h2 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 700;
}

.header-claim small {
    display: block;
    margin-top: 4px;
    color: #555;
    font-size: 0.9rem;
}

/* Kontakt rechts */
.header-right span {
    display: block;
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 500;
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width: 900px) {
    .header-top {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .header-left,
    .header-center,
    .header-right {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .header-right span {
        font-size: 0.85rem;
    }
}

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
}

.logo-mark {
	width: 45px;
	height: 45px;
	background: var(--primary);
	color: #fff;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
}

.logo-text {
	font-weight: 700;
	color: var(--secondary);
}

.logo-text small {
	display: block;
	font-size: 0.8rem;
	color: var(--primary);
}

/* NAVIGATION */
nav {
	position: sticky;
	top: 0;
	z-index: 999;
	background: var(--white);
	border-bottom: 4px solid var(--secondary);
	padding: 10px 0 10px 5%;
}

nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 22px;
}

nav a {
	text-decoration: none;
	color: var(--text);
	font-weight: 500;
	position: relative;
}

nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -3px;
	width: 0;
	height: 2px;
	background: var(--accent);
	transition: width 0.2s ease-out;
}

nav a:hover::after {
	width: 100%;
}

/* CONTENTBLOCK */
.content-block {
  background: var(--white);
  padding: 40px 0;
}

.content-grid {
	max-width: 1200px;
	margin: 0 auto;
}

/* HERO SLIDER */
.hero-slider {
	width: 100%;
	height: 40vh; /* kompakt */
	position: relative;
	overflow: hidden;
}

.hero-slide {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background-size: cover;
	background-position: center;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px; /* weniger Luft */
	opacity: 0;
	transition: opacity 0.6s ease-out;
}

.hero-slide.active {
	opacity: 1;
}

.hero-textbox {
	background: rgba(255,255,255,0.75);
	padding: 12px 20px; /* kompakter */
	max-width: 420px;   /* kleiner */
	text-align: center;
}

.hero-title {
	font-size: 1.4rem; /* kleiner */
	color: var(--secondary);
	margin-bottom: 6px;
}

.hero-text {
	font-size: 0.9rem; /* kleiner */
	color: #333;
}

.hero-dots {
	position: absolute;
	bottom: 8px; /* näher dran */
	width: 100%;
	display: flex;
	justify-content: center;
	gap: 6px;
}

.hero-dot {
	width: 10px;
	height: 10px;
	border: 2px solid var(--secondary);
	cursor: pointer;
	background: transparent;
}

.hero-dot.active {
	background: var(--secondary);
}

.intro h2 {
	color: var(--secondary);
	margin-bottom: 10px;
}

.intro p {
	max-width: 800px;
	margin: 0 auto;
	font-size: 1.1rem;
	color: #555;
}

/* BEGRÜSSUNGSBLOCK */
.welcome-block {
  background: #f9f9f9;
  padding: 40px 0;
}

.welcome-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* Bild links – kleiner und eleganter */
.welcome-img {
  overflow: hidden;            /* schneidet überflüssige Ränder ab */
  flex: 0 1 240px;             /* etwas schmaler */
  border: 3px solid var(--primary-light);
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  border-radius: 6px;
}

.welcome-img img {
  width: 100%;
  height: 240px;               /* etwas höher */
  object-fit: cover;           /* beschneidet überflüssige Bereiche */
  object-position: left center;/* Fokus auf linke Seite (Person + Zertifikate) */
  transform: translateY(-8px); /* leicht nach oben verschoben */
  border-radius: 6px;
}

.welcome-photo {
  width: 100%;
  height: auto;
  object-fit: cover;          /* schneidet überflüssige Ränder */
  object-position: left center; /* Fokus auf linke Seite (Person + Zertifikate) */
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-6px); /* leicht höher setzen */
}

/* Optional: Wenn du das Bild stärker beschneiden willst */
.welcome-img {
  overflow: hidden;           /* verhindert graue Ränder */
  max-height: 220px;          /* etwas kompakter */
}

/* Text rechts – bleibt breit */
.welcome-text {
  flex: 1 1 640px;
  max-width: 720px;
}

.welcome-text h2 {
  color: var(--secondary);
  margin-top: 0;
}

.welcome-text p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Mobile Anpassung */
@media (max-width: 900px) {
  .welcome-grid {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .welcome-img {
    flex: 0 1 auto;
    max-width: 240px;
    margin: 0 auto;
  }

  .welcome-img img {
    max-height: 200px;
  }

  .welcome-text {
    max-width: 100%;
  }
}

/* KALENDER */
.calendar-wrapper {
	background: var(--white);
	border-top: 3px solid var(--primary);
	border-bottom: 3px solid var(--secondary);
	margin: 40px 0;
	padding: 30px 5%;
}

.calendar-container {
	max-width: 1200px;
	margin: 0 auto;
}

.calendar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--secondary);
}

.calendar-header button {
	background: none;
	border: none;
	font-size: 1.6rem;
	cursor: pointer;
	color: var(--primary);
	transition: 0.2s;
}

.calendar-header button:hover {
	color: var(--secondary);
	transform: scale(1.2);
}

.calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
}

.calendar-day-name {
	text-align: center;
	font-weight: 600;
	padding: 8px 0;
	background: var(--bg);
	border-bottom: 2px solid var(--primary);
}

.calendar-day {
	background: var(--white);
	padding: 10px;
	min-height: 70px;
	border: 1px solid #ddd;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	cursor: pointer;
	transition: 0.2s;
}

.calendar-day:hover {
	background: #e8fdfb;
	border-color: var(--primary);
	transform: translateY(-3px);
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.calendar-day.inactive {
	background: #f0f0f0;
	color: #aaa;
	cursor: default;
}

.calendar-day-number {
	font-size: 1rem;
	font-weight: 600;
}

.status-dot {
	width: 12px;
	height: 12px;
	margin-top: 6px;
}

.free  { background: #35b8b2; }
.few   { background: #7b4bb7; }
.full  { background: #b5b5b5; }

.calendar-legend {
	margin-top: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 0.85rem;
	color: #555;
}

.calendar-legend span {
	display: flex;
	align-items: center;
	gap: 6px;
}

.calendar-legend .dot {
	width: 12px;
	height: 12px;
}

/* ========================= */
/* RESPONSIVE FIXES          */
/* ========================= */

@media (max-width: 900px) {

	.logo {
		justify-content: center;
	}

	nav ul {
		justify-content: center;
		flex-wrap: wrap;
		gap: 14px;
	}
}

@media (max-width: 600px) {

	nav ul {
		gap: 10px;
	}

	.welcome-grid {
		flex-direction: column;
		text-align: center;
	}

	.welcome-text {
		max-width: 100%;
	}
}