body {
	font-family: 'Heebo', sans-serif;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	background-color: #f8f9fa;
	color: #333;
}
header {
	background-color: white;
	color: white;
	text-align: center;
	padding: 10px;
	font-size: 0.9em;
}
header a {
	color: #333;
	text-decoration: none;
	margin: 0 50px;
}
header a:hover {
	text-decoration: underline;
}
.top-header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px;
    background-color: #f8f9fa;
    font-size: 1em;
}
.top-header a {
    text-decoration: none;
    color: #333;
	margin: 0 50px;
    padding: 10px 0;
    display: inline-block;
}
.top-header a i {
    margin-right: 8px;
    font-size: 1.2em;
    color: #333;
}
.top-header a:hover i {
    color: #0083b5;
}
.top-header .button {
    background-color: rgba(0, 131, 181, 0.5);
    color: #333;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.top-header .button:hover {
    text-decoration: none;
    background-color: rgba(0, 131, 181, 0.75);
    color: white;
}
nav {
	background-color: rgba(255, 255, 255, 1);
	padding: 0px;
	text-align: center;
	justify-content: center;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
header, nav {
    width: 100%;
    box-sizing: border-box;
}
.nav-links  {
	display: flex;
    flex-direction: row; /* Vertikales Layout */
    text-align: center;
	justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
    position: static;
    top: 60px; /* Unterhalb des Headers */
    left: 0;
    width: 100%;
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Sichtbar, wenn das Menü aktiviert ist */
.nav-links.show {
    display: flex;
}

/* Toggle-Button für kleine Geräte */
.menu-toggle {
    display: none;
}
.logo {
	display: block;
	margin: 0 auto;
	margin-bottom: 10px;
}
.logo img {
	max-width: 20%;
	height: auto;
}
nav a {
	color: #333;
	text-decoration: none;
	padding: 14px 20px;
	display: inline-block;
	text-align: center;
	margin: 0 10px;
}
nav a:hover {
	color: #0083b5;
}
.right-nav {
    position: fixed;
	right: 10px;
	top: 35%;
	background-color: rgba(0, 131, 181);
	padding: 5px;
	z-index: 1000;
	width: 100px;
    display: flex;
    flex-direction: column;
	align-items: center;
}
.right-nav a {
    color: white;
    text-decoration: none;
    padding: 5px;
    margin: 2px 0;
    text-align: center;
    white-space: nowrap;
}
.right-nav a:hover {
    color: #333;
	text-decoration: none;
    transition: background-color 0.3s ease;
}
.infobox {
    display: none;
    position: fixed;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
	max-width: 800px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    border-radius: 8px;
	max-height: 80vh;
	overflow-y: auto;
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #333;
}
.infobox-content {
    padding: 20px;
    font-size: 1em;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.infobox-content h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #0083b5;
}
.infobox-content p {
    margin-bottom: 20px;
    color: #333;
}
.infobox-content hr {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 20px 0;
}
.infobox-content a {
    color: #0083b5;
    text-decoration: none;
}
.infobox-content a:hover {
    text-decoration: underline;
}
.infobox iframe {
    width: 100%;
    height: 500px;
    border: none;
}
.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
	width: 75%;
    margin: 20px auto;
}
.card-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
.card {
    flex: 1 1 calc(33.333% - 20px);
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}
.card img {
    width: 100%;
    height: auto;
}
.card-text {
    padding: 15px;
}
.card-text p {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 10px;
}
.card-text h3 {
    font-size: 1.2em;
    margin: 0;
}
.card:hover {
    transform: translateY(-5px);
}
.ueberschrift {
	align-content: center;
	width: 100%;
}
.vorsorge, .jobs, .impressum, .barrierefreiheit, .datenschutz {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 1200px;
    margin: 20px auto;
    padding: 20px;
}
.vorsorge h2 {
    font-size: 1.3em;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}
.vorsorge .tile-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
	max-width: 1500px;
}
.vorsorge .tile {
    flex: 1 1 calc(20% - 200px);
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
    padding: 20px;
    text-align: center;
	min-width: 300px;
}
.vorsorge .tile:hover {
    transform: translateY(-5px);
}
.vorsorge .tile-icon i {
    font-size: 50px;
    color: rgba(0, 131, 181, 0.5);
    margin-bottom: 15px;
}
.tile-icon span {
    font-size: 60px;
    color: rgba(0, 131, 181, 0.5);
    margin-bottom: 15px;
}
.vorsorge .tile h3 {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 10px;
}
.vorsorge .tile p {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 10px;
}
.team-section {
    text-align: center;
    margin-top: 40px;
    width: 75%;
    margin: 20px auto;
}
.section-heading {
    font-size: 2.5em;
    color: #0066cc;
    margin-bottom: 20px;
}
.team-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
.team-member-bilja {
    display: flex;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: calc(75% - 100px);
    max-width: 1600px;
	min-width: 350px;
    transition: transform 0.3s ease;
}
.team-member-2 {
    display: flex;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 1600px;
	min-width: 350px;
    transition: transform 0.3s ease;
}
.team-member {
    display: flex;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: calc(50% - 50px);
    max-width: 800px;
	min-width: 350px;
    transition: transform 0.3s ease;
}
.team-member:hover {
    transform: translateY(-5px);
}
.team-member img {
    width: 40%;
    height: auto;
    object-fit: cover;
}
.team-member-2 img {
    width: 40%;
    height: auto;
    object-fit: cover;
}
.team-member-bilja img {
    width: 40%;
    height: auto;
    object-fit: cover;
}
.member-info-2 {
    padding: 20px;
    text-align: left;
    width: 100%;
}
.member-info-2 h3 {
    font-size: 1.5em;
    color: #0083b5;
    margin: 0;
}
.member-role-2 {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 10px;
}
.member-info-2 p {
    font-size: 0.9em;
    color: #333;
    margin-bottom: 10px;
}
.member-info-2 i {
    color: #0083b5;
    margin-right: 5px;
}
.member-info {
    padding: 20px;
    text-align: left;
    width: 60%;
}
.member-info h3 {
    font-size: 1.5em;
    color: #0083b5;
    margin: 0;
}
.member-role {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 10px;
}
.member-info p {
    font-size: 0.9em;
    color: #333;
    margin-bottom: 10px;
}
.member-info i {
    color: #0083b5;
    margin-right: 5px;
}
.team-member ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.team-member ul li {
    font-size: 0.95em;
    color: #333;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.team-member ul li:before {
    content: "•";
    color: #E66300;
    position: absolute;
    left: 0;
    font-size: 1.2em;
    line-height: 1;
}
.hero {
	position: relative;
	text-align: center;
	overflow: hidden;
	width: 100%;
	height: 100vh;
}
.overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1;
}
.hero h1,
.hero h2,
.hero h3 {
	position: absolute;
	width: 100%;
	left: 50%;
	transform: translate(-50%);
	margin: 0;
	color: white;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
	font-size: 2.5em;
	z-index: 2;
}
.hero h1 {
    top: 50%;
    font-size: 2.5em;
}
.hero h2 {
    top: 60%;
    font-size: 2em;
    margin-top: 10px;
}
.hero h3 {
    top: 70%;
    font-size: 1.5em;
    margin-top: 20px;
}
.slides {
	display: flex;
    transition: transform 0.5s ease-in-out;
    width: 500vw;
	background-color: transparent;
}
.slides img {
	width: 100vw;
	height: 100vh;
    object-fit: cover;
}
.arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 2em;
	color: white;
	background-color: rgba(0, 0, 0, 0.5);
	padding: 10px;
	cursor: pointer;
	z-index: 10;
}
.arrow.left {
	left: 10px;
}
.arrow.right {
	right: 10px;
}
.content {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	max-width: 1200 px;
	padding: 10px;
}
.content div {
	flex: 1 1 300px;
	margin: 10px;
	background-color: #f9f9f9;
	padding: 20px;
	max-width: 400px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
#willkommen div {
	flex: 1 1 300px;
	margin: 10px;
	background-color: #f9f9f9;
	padding: 20px;
	max-width: 800px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.content h3 {
    text-transform: uppercase;
	font-weight: 300;
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}
footer {
	background-color: #f4f4f4;
	color: #333;
	padding: 10px;
}
.footer-container {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	max-width: 1200px;
	margin: 0 auto;
}
.footer-box {
	flex: 1;
	min-width: 250px;
	margin: 10px;
}
.footer-box h3 {
	margin-bottom: 10px;
	color: #333;
}
.footer-box p, .footer-box a {
	color: #333;
	text-decoration: none;
}
.footer-box .button {
    background-color: rgba(0, 131, 181, 0.5);
    color: #333;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.footer-box .button:hover {
    text-decoration: none;
    background-color: rgba(0, 131, 181, 0.75);
    color: white;
}
.footer-box-right { 
	text-align: right; 
	flex: 1;
	min-width: 250px;
	margin: 10px;
}
.footer-box-right h3 {
	margin-bottom: 10px;
	color: #333;
}
.footer-box-right p, .footer-box-right a {
	color: #333;
	text-decoration: none;
}
.footer-box-right .button {
    background-color: rgba(0, 131, 181, 0.5);
    color: #333;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.footer-box-right .button:hover {
    text-decoration: none;
    background-color: rgba(0, 131, 181, 0.75);
    color: white;
}
.secondary-footer {
	background-color: #444;
	color: white;
	text-align: center;
	padding: 10px;
	position: relative;
}
@media (max-width: 886px) {
	.top-header {
		margin-top:30px;
        flex-direction: column;
        text-align: center;
    }
    .top-header a {
        margin: 5px 0;
        width: 100%;
    }
    .top-header .button {
        display: none;
    }
	.menu-toggle {
        display: block;
    }
    .nav-links {
        display: none;
		flex-direction: column; /* Vertikale Anordnung der Links */
        align-items: center; /* Zentriert die Links */
        padding: 0;
    }
	nav {
		padding-top: 50px;
	}
	nav a {
		display: block;
		margin: 10px 0;
		padding: 10px;
	}
	.right-nav {
		position: fixed;
		top:0;
		left:0;
        width: 100%;
		display: flex;
		justify-content: center;
		flex-direction: row;
    }
    .right-nav a {
        flex: 1;
		width: auto;
        color: white;
    }
    .right-nav a:hover {
        background-color: rgba(0, 131, 181);
    }
	.infobox {
        width: 90%;
        height: auto;
        top: 10%;
        transform: translate(-50%, 0);
        padding-top: 40px;
		overflow-y: auto;
		max-height: 80vh;
    }
    .close-btn {
        top: 10px;
        right: 10px;
        font-size: 20px;
    }
	.card {
        flex: 1 1 calc(50% - 20px);
    }
	.card-container {
        width: 90%;
    }
	.logo img {
        max-width: 70%;
    }
	.content, .vorsorge {
		flex-direction: column;
	}
	nav a {
		display: block;
		margin: 5px 0;
	}
	.hero h1 {
		font-size: 1.8em;
		top: 25%;
    }
    .hero h2 {
        font-size: 1.5em;
        top: 45%;
    }
    .hero h3 {
        font-size: 1.2em;
        top: 65%;
    }
	.footer-container {
		justify-content: center;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-box {
        min-width: unset;
        margin: 10px 0;
		text-align: center;
    }
	.footer-box-right { 
		min-width: unset;
        margin: 10px 0;
		text-align: center; 
	}
    .secondary-footer {
        text-align: center;
    }
	.hero, .slides {
        width: 100vw;
		height: 50vh;
    }
    .slides img {
        width: 100vw;
        height: 50vh;
    }
	.vorsorge t{
        width: 95vw;
	}
	.footer-box-right {
		text-align: center !important;
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center; 
	}
}
.nav-links.show {
    max-height: none;
}
/* Container und Layout-Fix */
.vorsorge, .barrierefreiheit, .datenschutz, .impressum, .card-container, .card-text, .jobs {
    box-sizing: border-box; /* Inklusive Padding und Border in der Breite */
    max-width: 100%; /* Breite auf 100% des Geräts beschränken */
    width: 100%; /* Vollständige Nutzung des Bildschirmbereichs */
    margin: 0 auto; /* Zentriert den Inhalt */
    padding: 20px; /* Innenabstand für bessere Lesbarkeit */
    word-wrap: break-word; /* Lange Wörter umbrechen */
    overflow-wrap: break-word; /* Zusätzliche Sicherheit bei Wortumbrüchen */
}
@media (max-width: 768px) {
	.top-header {
		margin-top:30px;
        flex-direction: column;
        text-align: center;
    }
    .top-header a {
        margin: 5px 0;
        width: 100%;
    }
    .top-header .button {
        display: none;
    }
    .vorsorge, .jobs, .impressum, .barrierefreiheit, .datenschutz {
        width: 90%;
        margin: 0px auto;
        padding: 15px;
    }

    .vorsorge .tile-container, .team-container, .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .tile, .team-member, .footer-box {
        width: 100%;
        margin-bottom: 15px;
    }
	.vorsorge .tile {
        flex: 1 1 calc(50% - 20px); /* Zwei Kacheln nebeneinander */
    }

    .content div {
        max-width: 100%;
    }

    h1, h2, h3 {
        font-size: 1.2em;
    }

    .right-nav {
        flex-direction: row;
        width: 100%;
        padding: 5px 0;
    }

    .hero h1, .hero h2, .hero h3 {
        font-size: 1.2em;
    }
	.card {
        flex: 1 1 calc(50% - 20px);
    }
	.menu-toggle {
        display: block;
    }
    .nav-links {
        display: none;
		flex-direction: column; /* Vertikale Anordnung der Links */
        align-items: center; /* Zentriert die Links */
        padding: 0;
    }
	nav {
		padding-top: 50px;
	}
	nav a {
		display: block;
		margin: 10px 0;
		padding: 10px;
	}
	.footer-container {
		justify-content: center;
	}
	.footer-box {
		text-align: center;
    }
	.footer-box-right {
		text-align: center !important;
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center; 
	}
	.infobox {
        width: 90%;
        height: auto;
        top: 10%;
        transform: translate(-50%, 0);
        padding-top: 40px;
		overflow-y: auto;
		max-height: 80vh;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
	.top-header {
		margin-top:30px;
        flex-direction: column;
        text-align: center;
    }
    .top-header a {
        margin: 5px 0;
        width: 100%;
    }
    .top-header .button {
        display: none;
    }
    .vorsorge, .impressum, .datenschutz, .barrierefreiheit {
        padding: 10px;
    }

    .tile h3, .tile p {
        font-size: 0.9em;
    }
	.vorsorge .tile {
        flex: 1 1 100%; /* Eine Kachel pro Zeile */
        margin-bottom: 20px;
    }

    .vorsorge h2 {
        font-size: 1.2em; /* Überschrift kleiner machen */
        text-align: center;
    }

    h1, h2, h3 {
        font-size: 1em;
    }

    .hero h1, .hero h2, .hero h3 {
        font-size: 1em;
    }

    .right-nav {
        flex-direction: column;
    }
	.card {
        flex: 1 1 100%;
    }
	.menu-toggle {
        display: block;
    }
    .nav-links {
        display: none;
		flex-direction: column; /* Vertikale Anordnung der Links */
        align-items: center; /* Zentriert die Links */
        padding: 0;
    }
	nav {
		padding-top: 50px;
	}
	nav a {
		display: block;
		margin: 10px 0;
		padding: 10px;
	}
	.footer-container {
		justify-content: center;
		align-items: center;
	}
	.footer-box {
		text-align: center;
    }
	.footer-box-right {
		text-align: center !important;
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center; 
	}
	.infobox {
        width: 90%;
        height: auto;
        top: 10%;
        transform: translate(-50%, 0);
        padding-top: 40px;
		overflow-y: auto;
		max-height: 80vh;
    }
}
@media (max-width: 768px) {
    .main-content {
        padding-top: 50px;
    }
}