/* ==========
Farben / Theme
========== */
:root{
  --green: #628881;
  --pink: #ecb0c5;
  --orange: #d86e41;
  --beige: #f7e4de;
  --brown: #988573;
  --bg: #fff7f0;
  --grey: #e6e2df;
  --blue: #7da1c6;

  --text: #1f1f1f;
  --white: #ffffff;

  --maxw: 1100px;
  --radius: 16px;
  --shadow: 0 8px 20px rgba(0,0,0,.08);
}


/* ==========
Base 
========== */
html, body{
  height: auto;
}

*{ box-sizing: border-box; }
body{
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: clamp(14px, 1.1vw, 16px);
}
a{ color: inherit; text-decoration: none; }

h1{
  font-size: clamp(22px, 3vw, 32px);
}

h2{
  font-size: clamp(20px, 2.2vw, 24px);
}

h3{
  font-size: clamp(16px, 1.6vw, 20px);
}

.container{
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

hr{
  border: none;
  height: 0;
  border-top: 1px solid var(--orange);
  max-width: 850px;
  margin: 40px auto;
  position: relative;
}

.center-text{
    text-align: center;
    margin: 20px auto;
    max-width: 800px;
}

.note{
  text-align: left;
  margin: 20px auto;
  max-width: 900px;
}

.center-list{
  text-align: center;
  list-style-position: inside;
  padding-left: 0;
  margin: 20px auto;
  max-width: 800px;
}

.card h2,
.card h3{
  margin-top: 48px;
}

/* Listen/Stichpunkte */
.separator-list{
  max-width: 800px;
  margin: 30px auto;
  text-align: center;
}

.separator-list p{
  margin: 5px 0;
  position: relative;
}

/* Trenner NUR zwischen den Punkten */
.separator-list p:not(:last-child)::after{
  content: "❖";
  display: block;
  margin: 5px auto;
  color: var(--green);
  font-size: 14px;
  opacity: 0.9;
}

/* Verlinkungen im Text */
.main a{
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
}

.main a:hover{
  text-decoration: underline;
}

#datenschutz {
  scroll-margin-top: 120px;
}


/* ==========
Topbar / Navigation 
========== */
.topbar{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--orange);
  flex: 0 0 auto;
}

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

/* Logo / Brand */
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #2b2b2b;
  white-space: nowrap;
}
.brand-badge{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--green);
  box-shadow: var(--shadow);
}

/* Desktop Links */
.nav-links{
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brown);
}
.nav-links a{
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--brown);
  transition: background .15s ease;
}
.nav-links a:hover{
  background: var(--grey);
}
.nav-links a.active{
  background: var(--green);
  color: white;
}

/* Burger */
.burger{
  display: none;
  border: 0;
  background: transparent;
  padding: 10px;
  border-radius: 12px;
}
.burger:hover{ background: var(--grey); }
.burger .line{
  width: 22px;
  height: 2px;
  background: var(--brown);
  display: block;
  margin: 5px 0;
  border-radius: 2px;
}

/* Mobile Drawer */
.mobile-drawer{
  display: none;
  background: var(--white);
  border-top: 1px solid var(--grey);
}

.mobile-drawer a{
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid var(--grey);
  font-weight: 700;
  color: var(--brown);
}
.mobile-drawer a:hover{ background: var(--grey); }
.mobile-drawer a.active{ 
    background: var(--green);
    color: white;
}

.mobile-drawer.open{
  display: block;
}

/* Content placeholder */
.main{ padding: 18px 0 40px; flex: 1 0 auto;}
.card{
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}


/* ==========
Responsive (Anpassung an Bildschirmgröße)
========== */
@media (max-width: 820px){
  .nav-links{ display: none; }
  .burger{ display: inline-block; }
  .hero{ height: 180px; }

  .footer-inner{
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .site-footer a{
    margin-left: 0;
    margin-right: 12px;
  }
}


/* ==========
Images
========== */
.image-frame{
  max-width: 900px;
  margin: 48px auto;
  padding: 0px;

  background: white;
  border-radius: 18px;
  border: 1px solid var(--grey);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.image-frame-small{
  max-width: 700px;
  margin: 48px auto;
  padding: 0px;

  background: white;
  border-radius: 18px;
  border: 1px solid var(--grey);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.content-image{
  display: block;        /* WICHTIG! */
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.icon-image{
  display: block;
  width: 30%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 20px;
  padding-top: 20px;
}


/* ==========
Index Highlights
==========  */
.highlights{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  max-width: 900px;
  margin: 30px auto 30px auto;
  padding: 0px;
}

/* Einzelne Highlight-Box */
.highlight-box{
  background: var(--bg);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  border: 1px solid var(--grey);
  display: flex;
  flex-direction: column;
  justify-content: center;  /* vertikale Zentrierung */
  text-align: center;
  min-height: 180px;
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
}

/* Hover Effekt (nur Desktop) */
.highlight-box:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.12);
  border-color: var(--orange);
}

/* Überschrift in der Box */
.highlight-box h3{
  margin-top: 0;
  color: var(--green);
}

/* Text in der Box */
.highlight-box p{
  margin: 8px 0;
}

/* Verlinkung auf Highlight-Boxen */
.highlight-link{
  display: block;
  height: 100%;
}

.highlight-link .highlight-box{
  height: 100%;
  box-sizing: border-box;
}

.main a.highlight-link,
.main a.highlight-link:visited,
.main a.highlight-link:hover,
.main a.highlight-link:active {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
  display: block;
}

.main a.highlight-link * {
  text-decoration: none;
}

.highlight-hint{
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
  text-align: center;
}


/* ==========
Lageplan Map
========== */
.map-wrapper{
  max-width: 900px;
  margin: 30px auto;
}

#map{
  height: 500px;
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--grey);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

/* Grundform Marker */
.custom-marker{
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 3px 8px rgba(0,0,0,0.35);
}

/* Emoji-Marker (runde Badge) */
.emoji-marker{
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: white;
  border: 3px solid white;
  box-shadow: 0 3px 10px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;  /* Emoji-Größe */
  line-height: 1;
}

/* Einzelstand (grau) */
.marker-single{
  background: var(--brown);
}

/* Mehrere Stände (grün) */
.marker-multi{
  background: var(--green);
}

/* Mehrere Stände belegt (orange) */
.marker-multi-II{
  background: var(--orange);
}

/* Legendenbox */
.map-legend{
  background: white;
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  font-size: 14px;
  line-height: 1.4;
  min-width: 170px;
}

.legend-header{
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--green);
}

.legend-toggle{
  transition: transform 0.2s ease;
}

/* Inhalt sichtbar */
.legend-content{
  margin-top: 10px;
}

/* Eingeklappt */
.map-legend.collapsed .legend-content{
  display: none;
}

.map-legend.collapsed .legend-toggle{
  transform: rotate(-90deg);
}

/* Legendenelement */
.legend-item{
  display: flex;
  align-items: center;
  margin: 6px 0;
}

.legend-text{
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.legend-sub{
  font-size: 12px;
  color: #666;
}

/* Kleine Marker in der Legende */
.legend-marker{
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  margin-right: 8px;
}

.legend-emoji{
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  font-size: 16px;
}

/* Popup in Karte */
.popup {
  font-size: 14px;
  line-height: 1.4;
}

.popup-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--orange);
}

.popup-row {
  margin-bottom: 10px;
}

.popup-row b {
  font-weight: 600;
}

.popup-extra-item {
  margin-top: 10px;
}

.popup-extra-item strong {
  font-weight: 600;
  display: block;
}

.popup-extra-item .popup-row {
  color: #555;
  margin-bottom: 2px;
}


/* ==========
Footer
========== */
.site-footer{
  background: var(--green);
  color: white;
  border-top: 3px solid var(--orange);
  flex: 0 0 auto;
}

.footer-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 16px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Links im Footer */
.site-footer a{
  color: white;
  text-decoration: none;
  margin-left: 18px;
  font-weight: 600;
}

.site-footer a:hover{
  text-decoration: underline;
}