:root {
  --blue: #245f8b;
  --blue-dark: #174d72;
  --orange: #e96825;
  --orange-dark: #c94f18;
  --cream: #fffaf0;
  --sand: #f4ead8;
  --paper: #ffffff;
  --ink: #173142;
  --muted: #60727d;
  --teal: #2d7a78;
  --line: #d9e3e4;
  --shadow: 0 18px 50px rgb(23 49 66 / 14%);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--cream);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.1;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  color: var(--blue-dark);
  font-size: clamp(2.6rem, 7vw, 5.7rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 1rem;
  color: var(--blue-dark);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.035em;
}

h3 {
  color: var(--blue-dark);
  font-size: 1.2rem;
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
  padding: 0.75rem max(1rem, calc((100vw - var(--max-width)) / 2));
  border-bottom: 1px solid rgb(255 255 255 / 18%);
  background: rgb(23 77 114 / 96%);
  box-shadow: 0 5px 18px rgb(23 49 66 / 12%);
  color: white;
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.brand-kicker {
  color: #cbe4eb;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 850;
  line-height: 1.1;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

nav a {
  padding: 0.58rem 0.78rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  background: rgb(255 255 255 / 13%);
}

nav .nav-highlight {
  background: var(--orange);
  color: white;
}

nav .nav-highlight:hover,
nav .nav-highlight:focus-visible {
  background: var(--orange-dark);
}

.hero {
  display: grid;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  width: min(var(--max-width), calc(100% - 2rem));
  min-height: calc(100vh - 4.75rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 6rem) 0;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 8rem;
  left: -7rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: #cfe9ea;
  content: "";
  filter: blur(1px);
  opacity: 0.75;
}

.eyebrow {
  margin-bottom: 0.65rem;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-date {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.42rem 0.72rem;
  border-radius: 0.35rem;
  background: var(--orange);
  color: white;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  font-weight: 850;
}

.hero-intro {
  max-width: 35rem;
  margin-bottom: 1.8rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.72rem 1.1rem;
  border: 2px solid var(--blue-dark);
  border-radius: 0.45rem;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  background: var(--blue-dark);
  color: white;
}

.button-secondary {
  background: transparent;
  color: var(--blue-dark);
}

.hero-poster {
  width: min(100%, 31rem);
  margin: 0 auto;
  padding: 0.6rem;
  border-radius: 1.25rem;
  background: white;
  box-shadow: var(--shadow);
  transform: rotate(0.8deg);
}

.hero-poster img {
  width: 100%;
  border-radius: 0.75rem;
}

.info-section {
  padding: clamp(4rem, 8vw, 7rem) max(1rem, calc((100vw - var(--max-width)) / 2));
  background: var(--blue-dark);
  color: white;
}

.info-section h2,
.info-section h3 {
  color: white;
}

.info-section .eyebrow {
  color: #ffb17f;
}

.info-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.info-grid article {
  padding: 1.35rem;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 0.8rem;
  background: rgb(255 255 255 / 7%);
}

.info-grid article p {
  margin-bottom: 0;
  color: #d8e8ee;
}

.info-number {
  display: block;
  margin-bottom: 1.5rem;
  color: #ffb17f;
  font-size: 0.82rem;
  font-weight: 850;
}

.map-area {
  padding: clamp(4rem, 8vw, 7rem) max(1rem, calc((100vw - var(--max-width)) / 2));
  background: #eef5f3;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
}

.section-heading h2 {
  margin-bottom: 0;
}

.stand-count {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: right;
}

.location-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  margin-bottom: 1rem;
}

.location-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--blue-dark);
  box-shadow: 0 5px 16px rgb(23 77 114 / 18%);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.location-button:hover,
.location-button:focus-visible {
  background: var(--blue);
}

.location-button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.location-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.location-symbol {
  font-size: 1.35rem;
  line-height: 1;
}

.location-status {
  flex: 1 1 18rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.location-status[data-state="success"] {
  color: var(--teal);
  font-weight: 700;
}

.location-status[data-state="error"] {
  color: #a63c22;
  font-weight: 700;
}

.user-location-marker {
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgb(36 95 139 / 25%), 0 3px 10px rgb(0 0 0 / 30%);
}

.user-location-marker::after {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: white;
  content: "";
}

.map-layout {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: white;
  box-shadow: var(--shadow);
}

#map {
  width: 100%;
  height: min(65vh, 43rem);
  min-height: 25rem;
  background: #dfeae7;
}

.stand-list-section {
  padding: 1.25rem;
  background: var(--paper);
}

.stand-list-section h3 {
  margin-bottom: 0.75rem;
}

#empty-message {
  color: var(--muted);
}

.stand-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stand-card {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: white;
  cursor: pointer;
}

.stand-card:hover {
  border-color: var(--teal);
}

.stand-card:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.stand-card strong,
.stand-card span {
  display: block;
}

.stand-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.marker-number {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 2px 9px rgb(0 0 0 / 30%);
  color: white;
  font-size: 0.78rem;
  font-weight: 850;
}

footer {
  display: grid;
  gap: 0.15rem;
  padding: 2rem max(1rem, calc((100vw - var(--max-width)) / 2));
  background: #102f43;
  color: #d8e8ee;
}

footer p {
  margin-bottom: 0;
}

.footer-small {
  margin-top: 0.75rem;
  font-size: 0.76rem;
  opacity: 0.8;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.75fr);
  }

  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .map-layout {
    grid-template-columns: minmax(0, 2.1fr) minmax(18rem, 0.9fr);
  }

  .stand-list-section {
    max-height: min(65vh, 43rem);
    overflow-y: auto;
    padding: 1.5rem;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }

  nav {
    width: 100%;
  }

  nav a {
    flex: 1;
    padding: 0.48rem 0.35rem;
    font-size: 0.78rem;
    text-align: center;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    text-align: center;
  }

  h1 {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-poster {
    transform: none;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .stand-count {
    text-align: left;
  }

  #map {
    height: 58vh;
    min-height: 22rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}


/* Orte mit einem oder mehreren Ständen */
.location-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: white;
  cursor: pointer;
}

.location-card:hover {
  border-color: var(--teal);
}

.location-card:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.location-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.location-card-heading > strong {
  color: var(--blue-dark);
}

.location-address {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.place-type {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 0.22rem 0.48rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.25;
}

.place-type-private {
  background: #e7f0f6;
  color: var(--blue-dark);
}

.place-type-group {
  background: #dff0e8;
  color: #226457;
}

.location-stands,
.popup-stands {
  display: grid;
  gap: 0.5rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.location-stands > li {
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.stand-line,
.stand-offer,
.feature-list {
  display: block;
}

.stand-line > strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.stand-offer {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.83rem;
}

.feature-list {
  margin-top: 0.35rem;
}

.feature-badge {
  display: inline-flex;
  margin: 0 0.25rem 0.2rem 0;
  padding: 0.2rem 0.45rem;
  border-radius: 0.3rem;
  background: #edf2f2;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
}

.feature-cake {
  background: #fff0d2;
  color: #995014;
}

.marker-group {
  background: var(--teal);
  font-size: 0.7rem;
}

.location-popup {
  display: grid;
  gap: 0.28rem;
  min-width: 13rem;
}

.location-popup-title {
  color: var(--blue-dark);
  font-size: 1rem;
}

.location-popup .place-type {
  width: max-content;
  margin-top: 0.2rem;
}

.popup-stands > li {
  padding-top: 0.45rem;
  border-top: 1px solid #dfe6e7;
}
