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

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
    background-color: #004d40;
    color: white;
    width: 250px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.sidebar .logo img {
    width: 120px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* ===== Burger MenÃ¼ ===== */
#menu-toggle {
    display: none;
}

.menu-icon {
    display: block;
    font-size: 2rem;
    cursor: pointer;
    color: #fdf5c0;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

#menu-toggle:checked + .menu-icon {
    transform: rotate(90deg);
}

/* ===== Navigation ===== */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: scaleY(0.9);
    transform-origin: top;
    transition: all 0.3s ease-in-out;
}

#menu-toggle:checked + .menu-icon + nav ul {
    max-height: 500px;
    opacity: 1;
    transform: scaleY(1);
}

nav ul li {
    text-align: center;
    margin: 10px 0;
}

nav ul li a {
    color: #fdf5c0;
    text-decoration: none;
    display: block;
    padding: 10px 20px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #00695c;
}

/* ===== Page Content ===== */
.page-content {
    margin-left: 250px;
    padding: 40px 20px;
}

header {
    text-align: center;
    color: #004d40;
    margin-bottom: 40px;
}

/* ===== Willkommen ===== */
.welcome-section {
    max-width: 900px;
    margin: 0 auto 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.welcome-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

.welcome-section h2 {
    color: #004d40;
    border-bottom: 2px solid #004d40;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.welcome-section p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

/* ===== Karte ===== */
.map-section {
    max-width: 900px;
    margin: 0 auto 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

.map-section h3 {
    color: #004d40;
    border-bottom: 2px solid #004d40;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.map-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 900px;
}

.europe-map {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.location {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: red;
    border: 2px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.location:hover {
    transform: translate(-50%, -50%) scale(1.3);
    background-color: #ff4d4d;
}

/* ===== Footer ===== */
footer {
    margin-top: 40px;
    text-align: center;
    color: #555;
    font-size: 0.9rem;
    padding: 20px 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        min-height: auto;
    }

    .page-content {
        margin-left: 0;
        padding: 20px 10px;
    }

    nav ul {
        width: 100%;
        background-color: #004d40;
    }

    .location {
        width: 12px;
        height: 12px;
    }
}
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
    opacity: 0; /* Start unsichtbar */
    animation: fadeIn 0.8s ease-in-out forwards; /* Fade-in beim Laden */
}

/* ===== Page Content Animation ===== */
.page-content {
    margin-left: 250px;
    padding: 40px 20px;
    flex-grow: 1;
    opacity: 0; /* Start unsichtbar */
    transform: translateY(10px);
    animation: contentFadeIn 0.8s ease forwards; /* Inhalt Fade-in */
    animation-delay: 0.3s; /* leicht verzÃ¶gert */
}

/* ===== Keyframes ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes contentFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive-Overrides: nur anhängen, nichts löschen ===== */

/* Basis — saubere Bilder/Buttons auf Touch-Geräten */
img { max-width: 100%; height: auto; display: block; }
.menu-icon { line-height: 1; padding: 6px 10px; user-select: none; }

/* Tablet-Optimierung: Sidebar schmaler, Content enger */
@media (max-width: 1024px) {
  .sidebar { width: 220px; }
  .page-content { margin-left: 220px; padding: 32px 16px; }
}

/* Mobile-Layout: Sidebar wird Topbar mit Burger-Menü */
@media (max-width: 900px) {
  /* Sidebar als feste Topbar */
  .sidebar {
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100%;
    min-height: auto;
    height: auto;
    z-index: 1000;
    padding: 10px 12px;
    flex-direction: row;             /* Logo links, Burger rechts */
    justify-content: space-between;
    align-items: center;
  }

  /* Logo kleiner */
  .sidebar .logo img { width: 96px; margin: 0; }

  /* Burger sichtbar */
  .menu-icon { display: block; font-size: 1.9rem; margin: 0; }

  /* Navigation als Dropdown unter der Topbar */
  nav { width: 100%; }
  nav ul {
    width: 100%;
    background-color: #004d40;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 10px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: scaleY(0.95);
    transform-origin: top;
    transition: max-height .25s ease, opacity .25s ease, transform .25s ease;
  }
  /* Beim Öffnen (Checkbox-Hack, Reihenfolge in deinem HTML passt schon) */
  #menu-toggle:checked + .menu-icon + nav ul {
    max-height: 480px;      /* genug Platz für Links */
    opacity: 1;
    transform: scaleY(1);
  }

  /* Links komfortabler antippbar */
  nav ul li a { padding: 12px 16px; font-size: 1.05rem; }

  /* Page-Content unter die Topbar schieben */
  .page-content {
    margin-left: 0 !important;
    padding: 24px 14px;
    padding-top: 88px;      /* Platz für fixe Topbar (Logo + Burger) */
  }
}

/* Sehr kleine Phones */
@media (max-width: 600px) {
  .sidebar .logo img { width: 84px; }
  .page-content { padding-top: 92px; } /* etwas mehr Luft */
  header { margin-bottom: 28px; }
  .welcome-section,
  .map-section { padding: 22px 16px; }
  .welcome-section p { font-size: 1rem; }
  .map-container { max-width: 100%; }
  .location { width: 12px; height: 12px; }
}

/* Mini-Phones */
@media (max-width: 420px) {
  .menu-icon { font-size: 1.7rem; }
  nav ul li a { padding: 11px 14px; font-size: 1rem; }
  .page-content { padding: 20px 12px; padding-top: 96px; }
}

/* Zugänglichkeit: weniger Bewegung wenn bevorzugt */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
