body{
    margin:0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg,#d6efff,#a8d8ff);
}
.sidenav {
    height: 100%;
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;

    background-color: #1f1f1f;
    overflow-x: hidden;
    padding-top: 60px;

    /* 👉 Startzustand: unsichtbar links */
    transform: translateX(-110%);

    /* 👉 Smooth Animation */
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);

    /* 👉 macht Animation flüssiger */
    will-change: transform;
}
.sidenav.open {
    transform: translateX(0);
}
/* Sidebar links */
.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
}
.sidenav{
    z-index:99999;
}

/* Hover effect */
.sidenav a:hover {
    color: #f1f1f1;
}

/* Close button */
.sidenav .closebtn {
    position: absolute;
    top: 15px;
    right: 15px; /* immer am rechten Rand der Sidebar */
    font-size: 36px;
}

/* Page content */
#main {
    transition: margin-left .5s;
    padding: 20px;
}

/* Hero-Bereich */
.hero {
    text-align: center;
    margin-top: 30px;
}

.hero h1 {
    font-size: 3rem;
    color: #003366;
}

.hero p {
    font-size: 1.3rem;
    color: #FFFFFF;
}

/* Infobox */
.info-card{
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);

    height: auto;        /* größer als Bild (350px + 100px) */
    overflow: auto;       /* falls Text zu lang wird */
}


/* Bild */
img {
    float: right;
    margin: 20px;
}

/* Runde Ecken */
.runde-ecken {
    border-radius: 15px;
}

/* Überschrift */
h1 {
    font-family: Arial, sans-serif;
    font-size: 3rem;
    color: #003366;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

/* Unterstrich */
.underline {
    position: relative;
    padding-bottom: 10px;
}

.underline::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: #007acc;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Menübutton */
.menu-button {
    position: fixed;
    top: 15px;
    left: 15px;
    font-size: 30px;
    cursor: pointer; 
    z-index: 1000;
    color: #000000;
    font-weight: bold;
}
.menu-button{
    z-index:99999;
}
/* ===== MOBILE ANPASSUNG ===== */
@media (max-width: 768px) {

    /* Bild wird kleiner */
    img {
        float: none;
        display: block;
        margin: 20px auto;
        width: 90%;
        height: auto;
    }

    /* Info-Kasten wird schmaler */
    .info-card {
        width: 90%;
        height: auto;   /* wichtig: keine feste Höhe mehr */
        margin: 20px auto;
    }

    /* Überschrift kleiner */
    h1 {
        font-size: 2rem;
        padding: 10px;
    }

    /* Hero Bereich */
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* Sidebar kleiner Touch-freundlich */
    .sidenav a {
        font-size: 20px;
    }

    /* Menü-Button bleibt sichtbar aber kleiner */
    .menu-button {
        font-size: 26px;
    }
}
/* Darkmode Button */
#darkModeBtn {
    position: fixed;
    top: 15px;
    right: 15px;
    padding: 10px 15px;
    border: none;
    border-radius: 10px;
    background:#1f1f1f;
    color: white;
    cursor: pointer;
    z-index: 1000;
}

#darkModeBtn:hover {
    background:#1f1f1f ;
}

/* Dark Mode */
body.dark-mode {
    background: #2F2F2F !important;
    color: white;
}


.dark-mode .card,
.dark-mode .info-card,
.dark-mode .text-box {
    background: #1f1f1f;
    color: white;
}

.dark-mode h1,
.dark-mode h2 {
    color: #FFFFFF;
}

.dark-mode .sidenav {
    background: #1f1f1f;
}

.dark-mode .sidenav a {
    color: #cccccc;
}

.dark-mode .sidenav a:hover {
    color: white;
}
body.dark-mode .card,
body.dark-mode .info-card,
body.dark-mode .text-box {
    background: #1f1f1f !important;
    color: white !important;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode p {
    color: white !important;
}
.text-box p{
    margin:0;
    overflow-wrap:break-word;
    word-break:break-word;
}
body.dark-mode .menu-button {
    color: white;
}
.menu-button {
    color: black;
}
body.dark-mode .menu-button {
    color: white;
}
body {
    transition: background-color 0.4s ease, color 0.4s ease;
}

.card,
.info-card,
.text-box,
.sidenav {
    transition: background-color 0.4s ease, color 0.4s ease;
}
html {
    transition: background-color 0.6s ease, color 0.6s ease;
}

body {
    transition: background-color 0.6s ease, color 0.6s ease;
}

/* Apple-like smooth surfaces */
.card,
.info-card,
.text-box,
.sidenav {
    transition: 
        background-color 0.6s ease,
        color 0.6s ease,
        box-shadow 0.6s ease,
        border-color 0.6s ease;
}

/* Soft glow im Dark Mode */
body.dark-mode .card,
body.dark-mode .info-card,
body.dark-mode .text-box {
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Menü smooth + leicht “frosted” Look */
.sidenav {
    backdrop-filter: blur(10px);
}
/* Switch Container */
.switch {
  position: fixed;
  top: 15px;
  right: 15px;
  width: 60px;
  height: 34px;
  z-index: 1000;
}

/* Hide checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider Background */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

/* Circle */
.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

/* Checked = Dark Mode ON */
input:checked + .slider {
  background-color: #1f1f1f;
}

input:checked + .slider:before {
  transform: translateX(26px);
}
/* Switch Container */
.switch {
  position: fixed;
  top: 15px;
  right: 15px;
  width: 60px;
  height: 34px;
  z-index: 1000;
}

/* Checkbox verstecken */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Background */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

/* Kreis */
.slider::before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
  z-index: 1;
}

/* Emoji im Kreis */
.icon {
  position: absolute;
  left: 9px;
  top: 6px;
  font-size: 16px;
  transition: 0.4s;
  pointer-events: none;
}

/* Aktiv (Dark Mode ON) */
input:checked + .slider {
  background-color: #1f1f1f;
}

input:checked + .slider::before {
  transform: translateX(26px);
}

/* Emoji bewegt sich mit */
input:checked + .slider .icon {
  transform: translateX(26px);
}
.sidenav {
    box-shadow: 10px 0 30px rgba(0,0,0,0.3);
}
.personen-container{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:40px;
    padding:30px;
}

.person{
    position:relative;
    text-align:center;
}

.person img{
    width:220px;
    height:280px;
    object-fit:cover;
    border-radius:15px;
}

.person-link{
    display:block;
    margin-top:10px;
    font-size:20px;
    font-weight:bold;
    text-decoration:none;
    color:#007acc;
}

.person-link:hover{
    text-decoration:underline;
}

.tooltip{
    visibility:hidden;
    opacity:0;

    margin-top:10px;

    width:220px;

    background:white;
    color:black;

    padding:10px;
    border-radius:10px;

    box-shadow:0 0 15px rgba(0,0,0,0.2);

    transition:0.3s;
}

.person:hover .tooltip{
    visibility:visible;
    opacity:1;
}

.dark-mode .tooltip{
    background:#1f1f1f;
    color:white;
}
.person:hover .tooltip{
    visibility:visible;
    opacity:1;
}

.dark-mode .tooltip{
    background:#1f1f1f;
    color:white;
}
.link-box{
    width: 220px;

    background: white;

    padding: 15px;

    border-radius: 12px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.2);

    margin: 30px;
}

.link-box h3{
    margin-top: 0;
    color: #000000;
    font-size: 18px;
}

.link-box a{
    color: #007acc;
    text-decoration: none;
    font-weight: bold;
}

.link-box a:hover{
    text-decoration: underline;
}
.dark-mode .link-box{
    background: #1f1f1f;
    color: white;
}

.dark-mode .link-box h3{
    color: white;
}

.dark-mode .link-box a{
    color: #4da6ff;
}
@media (max-width: 768px){

    .link-box{
        width: 85%;

        margin: 20px auto;

        text-align: center;
    }

}
.person-link{
    color:#007acc;
    font-weight:bold;
    text-decoration:none;
}

.arrow{
    display:inline-block;
    margin-right:8px;
    transition:0.3s;
}

.person-link:hover .arrow{
    transform:translateX(4px);
}
.personen-info{
    max-width: 900px;
    margin: 30px auto;

    background: white;

    padding: 25px;

    border-radius: 20px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.15);

    text-align: center;

    transition: background-color 0.6s ease,
                color 0.6s ease;
}

.personen-info h2{
    margin-top: 0;
    color: #003366;
}

.personen-info p{
    line-height: 1.7;
}
.dark-mode .personen-info{
    background: #1f1f1f;
    color: white;
}

.dark-mode .personen-info h2{
    color: white;
}
@media (max-width: 768px){

    .personen-info{
        width: 90%;
        padding: 20px;
        margin: 20px auto;
    }

}