/*
 * Deichagenten – zentrale Gestaltung
 * Firmenfarben: Petrol #2E5863, Bronze #A38168
 */

:root {
  --petrol: #2e5863;
  --petrol-dark: #203f47;
  --petrol-soft: rgba(46, 88, 99, 0.10);
  --bronze: #a38168;
  --bronze-soft: rgba(163, 129, 104, 0.14);
  --cream: #fffaf3;
  --sand: #f4eadb;
  --white: #ffffff;
  --ink: #1f2f33;
  --muted: #607174;
  --line: #dfd1bd;
  --shadow: 0 18px 42px rgba(46, 88, 99, 0.12);
  --shadow-soft: 0 12px 30px rgba(46, 88, 99, 0.08);
  --radius: 24px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-hyphens: auto;
  hyphens: auto;
}

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

button,
input,
textarea {
  font: inherit;
}

a {
  color: var(--petrol);
  font-weight: 700;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

h1,
h2,
h3 {
  color: var(--petrol-dark);
  line-height: 1.15;
}

p:first-child {
  margin-top: 0;
}

p:last-child {
  margin-bottom: 0;
}

/* Barrierefreiheit */
.skip {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip:focus {
  left: 20px;
  top: 20px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

/* Header und Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 116px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 4px solid var(--petrol);
  box-shadow: 0 8px 24px rgba(46, 88, 99, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-width);
  min-height: 116px;
  margin: 0 auto;
  padding: 4px 22px;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: 146px;
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 108px;
  max-height: 108px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a {
  color: var(--petrol);
  font-size: 1.06rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: var(--bronze);
}

.nav-cta {
  padding: 9px 16px;
  border: 2px solid var(--petrol);
  border-radius: 999px;
  background: var(--white);
  color: var(--petrol);
  box-shadow: 0 6px 14px rgba(46, 88, 99, 0.10);
}

.nav-cta:hover,
.nav-cta:focus-visible,
.nav-cta[aria-current="page"] {
  background: var(--petrol);
  color: var(--white);
  text-decoration: none;
}

.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  color: var(--petrol);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* Allgemeine Layouts */
.hero,
.section,
.split,
.breadcrumb {
  max-width: var(--content-width);
  margin-right: auto;
  margin-left: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 42px;
  align-items: center;
  padding: 72px 22px 42px;
  background:
    radial-gradient(circle at top right, var(--bronze-soft), transparent 34%),
    linear-gradient(135deg, var(--petrol-soft), var(--white) 58%);
}

.hero-single {
  grid-template-columns: minmax(0, 1fr);
}

.hero-single .hero-content {
  max-width: 820px;
}

.hero h1 {
  margin: 0 0 22px;
  color: var(--petrol-dark);
  font-size: clamp(2.35rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.lead {
  max-width: 720px;
  color: #385153;
  font-size: 1.25rem;
}

.hero-visual,
.hero-card,
.phone-card,
.content-card,
.legal-card,
.notice,
.filter-note,
.access-form,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-visual {
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.hero-card {
  display: grid;
  min-height: 260px;
  padding: 34px;
  place-content: center;
  background: linear-gradient(135deg, var(--white), #f6ead6);
}

.hero-card strong {
  color: var(--petrol);
  font-size: 2rem;
}

.section,
.split {
  padding: 58px 22px;
}

.section-head {
  max-width: 820px;
  margin-bottom: 28px;
}

.tour-map {
  position: relative;
  z-index: 0;
  height: 420px;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.tour-map .leaflet-popup-content {
  margin: 10px 14px;
}

.tour-map-popup strong {
  display: block;
  margin-bottom: 6px;
  color: var(--petrol-dark);
}

.tour-map-popup ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tour-map-popup li + li {
  margin-top: 4px;
}

@media (max-width: 640px) {
  .tour-map {
    height: 320px;
  }
}

.section-head h1,
.section h2,
.split h2 {
  margin: 0 0 16px;
  color: var(--petrol-dark);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  /* Ueberschriften brechen ganze Woerter um, statt sie (wie der Fliesstext)
   * automatisch mitten im Wort zu trennen - sonst reisst z.B. "Kapitaen"
   * mitten im Wort ab, obwohl in der naechsten Zeile reichlich Platz waere. */
  -webkit-hyphens: none;
  hyphens: none;
}

.section-head h1 {
  font-size: clamp(2.1rem, 4vw, 4rem);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--bronze);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.soft {
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(244, 234, 219, 0.72), rgba(244, 234, 219, 0.24));
}

.split {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 42px;
  align-items: center;
}

.breadcrumb {
  padding: 18px 22px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
}

.btn-primary {
  border-color: var(--petrol);
  background: var(--petrol);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  border-color: var(--bronze);
  background: var(--bronze);
  color: var(--white);
}

.btn-secondary {
  border-color: var(--bronze);
  background: transparent;
  color: var(--petrol);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--bronze-soft);
  color: var(--petrol);
}

.cta-row,
.about-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* Karten und Raster */
.card-grid,
.info-grid,
.comparison,
.booking-steps,
.tour-facts {
  display: grid;
  gap: 22px;
  align-items: stretch;
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.three,
.info-grid,
.comparison {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid > .card,
.card-grid > .tour-card,
.info-grid > article,
.comparison > div,
.booking-steps > div {
  height: 100%;
}

.card,
.tour-card,
.info-grid article,
.comparison div,
.booking-steps div {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.card {
  border-top: 4px solid transparent;
}

.card:hover {
  border-top-color: var(--bronze);
}

.card h2,
.card h3,
.tour-card h2 {
  margin-top: 0;
  color: var(--petrol-dark);
  line-height: 1.15;
}

.card > a:last-child,
.tour-card > a:last-child {
  align-self: flex-start;
  margin-top: auto;
}

.card.accent {
  border-top-color: var(--petrol);
  background: linear-gradient(135deg, var(--petrol-soft), var(--bronze-soft));
}

.badge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 5px 10px;
  border: 1px solid rgba(163, 129, 104, 0.35);
  border-radius: 999px;
  background: var(--bronze-soft);
  color: var(--petrol);
  font-size: 0.78rem;
  font-weight: 900;
}

.badge.muted {
  border-color: rgba(46, 88, 99, 0.18);
  background: rgba(46, 88, 99, 0.08);
}

.muted-card {
  opacity: 0.92;
}

/* Touren und Informationen */
.filter-note,
.notice {
  margin-bottom: 24px;
  padding: 18px 22px;
}

.tour-card dl {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}

.tour-card dl div,
.tour-facts div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.tour-card dt,
.tour-facts span {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.tour-card dd {
  margin: 0;
  text-align: right;
  justify-self: end;
}

.tour-facts {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-bottom: 24px;
}

.tour-facts div {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.tour-facts strong {
  display: block;
  color: var(--petrol);
  font-size: 1.1rem;
}

.content-card,
.legal-card {
  padding: 30px;
}

.checklist {
  padding-left: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  margin: 12px 0;
  padding-left: 30px;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--bronze);
  font-weight: 900;
}

.image-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.image-stack img {
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.booking-steps {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-bottom: 24px;
}

.booking-steps span {
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--petrol);
  color: var(--white);
  font-weight: 900;
  place-items: center;
}


/* Produktseite: Die Kollmeraner Schmuggler */
.tour-product-intro {
  padding-bottom: 30px;
}

.tour-product-heading {
  max-width: 900px;
}

.tour-product-heading h1 {
  margin: 0;
  color: var(--petrol-dark);
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.tour-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tour-title-row h1 {
  min-width: 0;
}

.tour-title-cta {
  flex: 0 0 auto;
  white-space: nowrap;
}

.tour-product-header {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tour-story-card {
  max-width: 900px;
  margin: 28px auto 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--bronze);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  font-size: 1.08rem;
}

.tour-story-card p:first-child {
  margin-top: 0;
  color: var(--petrol-dark);
  font-size: 1.25rem;
}

.tour-story-card p:last-child {
  margin-bottom: 0;
}

.tour-story-question {
  color: var(--petrol);
  font-size: 1.2rem;
  font-weight: 900;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.character-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.character-card a {
  display: block;
}

.character-card img {
  width: 100%;
  aspect-ratio: 842 / 1264;
  object-fit: cover;
  transition: transform 180ms ease;
}

.character-card a:hover img,
.character-card a:focus-visible img {
  transform: scale(1.015);
}

.character-card figcaption {
  padding: 12px 14px 14px;
  color: var(--petrol-dark);
  font-weight: 900;
  text-align: center;
}

.tour-hint-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.tour-hint-card {
  height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--bronze);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.tour-hint-card h3 {
  margin: 0 0 10px;
  color: var(--petrol-dark);
  line-height: 1.2;
}

.tour-hint-card p {
  margin-bottom: 0;
}

/* Erlebnisstile und Tourenprofile */
.tour-style-title {
  margin: 0 0 10px;
  color: var(--bronze);
  font-size: 1.08rem;
  font-weight: 900;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.experience-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--petrol);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.experience-card-family,
.tour-choice-family {
  border-top-color: var(--bronze);
}

.experience-card h3,
.tour-experience-panel h3 {
  margin: 0 0 12px;
  color: var(--petrol-dark);
  font-size: 1.45rem;
}

.experience-points {
  display: grid;
  gap: 8px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.experience-points li {
  position: relative;
  padding-left: 26px;
}

.experience-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--bronze);
  font-weight: 900;
}

.experience-points.compact {
  margin-top: 12px;
}

.experience-profile {
  margin: 4px 0 24px;
  padding: 20px;
  border: 1px solid rgba(46, 88, 99, 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--petrol-soft), rgba(255, 255, 255, 0.86));
}

.experience-profile h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.profile-item + .profile-item {
  margin-top: 11px;
}

.profile-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 5px;
  font-size: 0.92rem;
}

.profile-label span {
  color: var(--muted);
  font-weight: 700;
}

.profile-label strong {
  color: var(--petrol);
  font-size: 0.9rem;
}

.profile-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(46, 88, 99, 0.12);
}

.profile-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--petrol), var(--bronze));
}

.profile-fill.level-1 { width: 20%; }
.profile-fill.level-2 { width: 40%; }
.profile-fill.level-3 { width: 60%; }
.profile-fill.level-4 { width: 80%; }
.profile-fill.level-5 { width: 100%; }

.experience-card > .btn {
  align-self: flex-start;
  margin-top: auto;
}

.tour-choice {
  border-top-width: 5px;
  border-top-color: var(--petrol);
}

.tour-choice > .btn {
  align-self: flex-start;
  margin-top: auto;
}

.tour-experience-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: start;
  margin: 28px 0 34px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bronze-soft), var(--white) 68%);
}

.tour-experience-panel .experience-profile {
  margin: 0;
}

/* FAQ und Formulare */
.faq {
  display: grid;
  gap: 14px;
}

.faq details {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.faq summary {
  color: var(--petrol);
  font-weight: 900;
  cursor: pointer;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
}

.contact-form,
.access-form {
  display: grid;
  gap: 14px;
  padding: 26px;
}

.contact-form label,
.access-form label {
  display: grid;
  gap: 7px;
  color: var(--petrol-dark);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffaf6;
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Smartphone-Abbildung */
.phone-card {
  overflow: hidden;
  padding: 16px;
}

.phone-card img {
  max-height: 560px;
  margin: auto;
  border-radius: 18px;
}

/* Marken- und Über-uns-Bereiche */
.brand-story {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--white), rgba(46, 88, 99, 0.06));
}

.brand-story::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, var(--petrol), var(--bronze));
}

.brand-story .section-head,
.brand-story .story-text {
  max-width: 920px;
}

.brand-story .story-text {
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(46, 88, 99, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.brand-story .story-text p {
  margin: 0 0 16px;
}

.about-section {
  background:
    radial-gradient(circle at top left, var(--bronze-soft), transparent 34%),
    linear-gradient(180deg, var(--white), rgba(46, 88, 99, 0.05));
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 34px;
  align-items: start;
}

.about-copy {
  padding: 30px;
  border: 1px solid rgba(46, 88, 99, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.90);
  box-shadow: var(--shadow-soft);
}

.about-copy h3 {
  margin-top: 26px;
  color: var(--petrol);
}

.about-copy h3:first-child {
  margin-top: 0;
}

.about-copy p {
  margin: 0 0 16px;
}

.about-thanks {
  color: var(--bronze);
  font-weight: 800;
}

.about-side {
  display: grid;
  gap: 18px;
}

.about-photo-card {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(46, 88, 99, 0.14);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  object-fit: cover;
}

.about-photo-card.shirley-card .about-photo {
  aspect-ratio: 1 / 1;
}

.about-photo-card figcaption {
  margin: 12px 4px 2px;
  color: var(--petrol);
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

/* Ablauf-Teaser auf der Startseite */
.process-teaser-section {
  background:
    radial-gradient(circle at top left, rgba(163, 129, 104, 0.15), transparent 34%),
    linear-gradient(180deg, var(--white), rgba(46, 88, 99, 0.045));
}

.process-teaser-section .about-layout {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  align-items: stretch;
}

.process-teaser-section .about-side,
.process-teaser-section .about-copy {
  height: 100%;
}

.process-teaser-section .about-side {
  display: flex;
}

.process-teaser-section .about-side > .about-copy {
  width: 100%;
}

.process-teaser-section .about-copy {
  display: flex;
  flex-direction: column;
}

.process-teaser-section .about-link-row {
  margin-top: auto;
  padding-top: 22px;
}

.process-teaser-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-teaser-list li {
  padding: 14px 16px;
  border: 1px solid rgba(46, 88, 99, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  color: #32464c;
}

.process-teaser-list strong {
  color: var(--petrol);
}

/* Ausführlicher Ablauf */
.process-page {
  min-height: 60vh;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.steps span {
  display: block;
  color: var(--muted);
}

.steps.process-steps {
  counter-reset: deich-step;
  margin: 0;
}

.steps.process-steps li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  box-shadow: 0 10px 24px rgba(46, 88, 99, 0.07);
  counter-increment: deich-step;
}

.steps.process-steps li::before {
  content: counter(deich-step);
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--petrol);
  color: var(--white);
  font-weight: 800;
  place-items: center;
}

.steps.process-steps strong {
  display: block;
  margin-bottom: 4px;
  color: var(--petrol);
}

.process-note {
  margin: 0 0 24px;
  padding: 16px 20px;
  border-left: 4px solid var(--bronze);
  border-radius: 14px;
  background: var(--bronze-soft);
  color: #32464c;
}

/* Geschichtenentwicklung */
.storymaking-section {
  background:
    radial-gradient(circle at bottom right, var(--bronze-soft), transparent 34%),
    linear-gradient(180deg, rgba(46, 88, 99, 0.04), var(--white));
}

.storymaking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.storymaking-main,
.storymaking-side-card {
  border: 1px solid rgba(46, 88, 99, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.storymaking-main {
  padding: 30px;
}

.storymaking-main h3,
.storymaking-side-card h3 {
  margin-top: 0;
  color: var(--petrol);
}

.storymaking-main h3:not(:first-child) {
  margin-top: 30px;
}

.storymaking-main p,
.storymaking-side-card p {
  margin: 0 0 16px;
}

.storymaking-questions {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.storymaking-questions li {
  position: relative;
  padding: 13px 16px 13px 42px;
  border-radius: 16px;
  background: var(--petrol-soft);
  color: #32464c;
}

.storymaking-questions li::before {
  content: "?";
  position: absolute;
  left: 14px;
  top: 12px;
  display: grid;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bronze);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
  place-items: center;
}

.storymaking-side {
  display: grid;
  gap: 18px;
}

.storymaking-side-card {
  padding: 24px;
}

.storymaking-side-card.ki {
  border-top: 5px solid var(--petrol);
}

.storymaking-side-card.feedback {
  border-top: 5px solid var(--bronze);
}

.storymaking-list {
  margin: 14px 0 18px;
  padding-left: 20px;
}

.storymaking-list li {
  margin-bottom: 10px;
}

.storymaking-highlight {
  display: block;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--bronze-soft);
  color: #32464c;
  font-weight: 700;
}

/* Audio im Hero */
.hero-visual.audio-hero {
  position: relative;
  overflow: visible;
  margin-bottom: 138px;
}

.audio-hero img {
  cursor: pointer;
}

.audio-hero img:hover {
  filter: drop-shadow(0 14px 28px rgba(46, 88, 99, 0.18));
}

.audio-controls {
  position: absolute;
  top: calc(100% + 34px);
  left: 50%;
  z-index: 5;
  display: flex;
  width: min(320px, 92vw);
  transform: translateX(-50%);
}

.audio-play {
  --audio-progress: 0%;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 13px 22px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: rgba(46, 88, 99, 0.92);
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(31, 47, 51, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.audio-play::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  width: var(--audio-progress);
  background: var(--bronze);
  transition: width 0.16s linear;
}

.audio-play:hover,
.audio-play:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(31, 47, 51, 0.26);
}

.play-icon {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--petrol);
  font-size: 16px;
  line-height: 1;
  place-items: center;
}

.audio-hero.is-playing .play-icon {
  color: var(--bronze);
}

/* Footer */
.site-footer {
  margin-top: 50px;
  background: var(--petrol);
  color: #e2ecea;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 36px 56px;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 38px 22px;
}

.footer-navigation,
.footer-legal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 26px;
  min-width: 0;
  align-content: start;
}

.footer-navigation p,
.footer-legal p {
  margin: 0;
}

.site-footer a {
  color: var(--white);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #eaded5;
}


.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: #c8d8d5;
}


/* Sprungziel im Über-uns-Bereich unter dem fixierten Header vollständig anzeigen */
#geschichtenentwicklung {
  scroll-margin-top: 148px;
}

/* Responsive Darstellung */
@media (max-width: 1080px) {
  .nav {
    gap: 14px;
  }

  .nav a {
    font-size: 0.98rem;
  }
}

@media (max-width: 900px) {
  #geschichtenentwicklung {
    scroll-margin-top: 112px;
  }

  .site-header,
  .header-inner {
    min-height: 92px;
  }

  .header-inner {
    padding: 3px 18px;
  }

  .brand {
    min-width: 118px;
  }

  .brand img {
    height: 84px;
    max-height: 84px;
  }

  .hamburger {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 18px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow-soft);
  }

  .nav a {
    padding: 8px 10px;
    font-size: 1rem;
  }

  .nav-cta {
    text-align: center;
  }

  .menu-toggle:checked ~ .nav {
    display: flex;
  }

  .hero,
  .split,
  .contact-grid,
  .about-layout,
  .storymaking-layout,
  .experience-grid,
  .tour-experience-panel {
    grid-template-columns: 1fr;
  }

  .process-teaser-section .about-layout {
    grid-template-columns: 1fr;
  }

  .card-grid.three,
  .info-grid,
  .comparison,
  .booking-steps,
  .tour-facts {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .footer-bottom {
    grid-column: 1;
  }
}

@media (max-width: 720px) {
  .card-grid.two {
    grid-template-columns: 1fr;
  }

  .image-stack {
    grid-template-columns: 1fr;
  }

  .hero-visual.audio-hero {
    margin-bottom: 126px;
  }

  .audio-controls {
    top: calc(100% + 28px);
  }
}

@media (max-width: 980px) {
  .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .tour-hint-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .character-grid {
    grid-template-columns: 1fr;
  }

  .tour-story-card {
    padding: 22px;
  }
}

@media (max-width: 520px) {
  .header-inner {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero,
  .section,
  .split {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .cta-row .btn,
  .about-link-row .btn {
    width: 100%;
  }

  .about-copy,
  .storymaking-main,
  .storymaking-side-card,
  .content-card,
  .legal-card {
    padding: 22px;
  }

  .tour-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .tour-title-cta {
    width: 100%;
  }

}

/* FAQ-Seite mit thematischen Gruppen */
.faq-page {
  display: grid;
  gap: 42px;
}

.faq-group {
  min-width: 0;
}

.faq-group-head {
  max-width: 780px;
  margin-bottom: 18px;
}

.faq-group-head h2,
.faq-cta h2 {
  margin: 0;
  color: var(--petrol-dark);
  font-size: clamp(1.65rem, 2.6vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.faq details p {
  margin: 12px 0 0;
  color: var(--muted);
}

.faq summary {
  padding-right: 34px;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  top: -2px;
  right: 0;
  color: var(--bronze);
  font-size: 1.45rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--petrol-soft), var(--white) 72%);
  box-shadow: var(--shadow-soft);
}

.faq-cta p {
  max-width: 690px;
  margin-bottom: 0;
}

.faq-cta .cta-row {
  flex: 0 0 auto;
  margin-top: 0;
}

@media (max-width: 760px) {
  .faq-page {
    gap: 34px;
  }

  .faq-cta {
    display: block;
  }

  .faq-cta .cta-row {
    margin-top: 22px;
  }
}


/* Tourenübersicht: einfache Hero-Darstellung ohne Infokarte und Bildheader der Tourkarte */
.hero.hero-simple {
  grid-template-columns: 1fr;
  padding-bottom: 32px;
}

.hero.hero-simple .hero-content {
  max-width: 820px;
}

.tour-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(46, 88, 99, 0.10);
  margin: 4px 0 18px;
}


/* Kompakter Footer ohne Logo und Zwischenüberschriften */
@media (max-width: 720px) {
  .footer-navigation,
  .footer-legal {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Charakter-Audios und Teststimmen */
.character-card {
  display: flex;
  flex-direction: column;
}

.character-card figcaption {
  padding-bottom: 10px;
}

.character-audio-player {
  margin-top: auto;
  padding: 0 14px 16px;
}

.character-audio-player audio {
  display: none;
}

.character-audio-button {
  min-height: 48px;
  padding: 10px 16px;
  font-size: 0.96rem;
}

.character-audio-player.is-playing .play-icon {
  color: var(--bronze);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.testimonial-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.testimonial-card img,
.testimonial-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.testimonial-card img {
  object-fit: cover;
}

.testimonial-image-placeholder {
  display: grid;
  background:
    linear-gradient(135deg, rgba(46, 88, 99, 0.08), rgba(163, 129, 104, 0.16));
  color: var(--petrol);
  font-weight: 900;
  place-items: center;
}

.testimonial-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.testimonial-label {
  margin: 0 0 5px;
  color: var(--bronze);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.testimonial-content h3 {
  margin: 0 0 14px;
  color: var(--petrol-dark);
}

.testimonial-content blockquote {
  margin: 0;
  color: #385153;
  font-size: 1.05rem;
  font-style: italic;
}

.testimonial-card-featured {
  border-top: 5px solid var(--bronze);
}

.testimonial-placeholder {
  border-top: 5px solid rgba(46, 88, 99, 0.25);
}

/* Vier Hinweise nebeneinander, mit automatischem Umbruch auf kleineren Breiten. */
.tour-hint-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

@media (max-width: 900px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}


/* AGB und Widerrufsbelehrung */
.legal-jump-section {
  padding-top: 18px;
  padding-bottom: 0;
}

.legal-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-section {
  scroll-margin-top: 130px;
}

.legal-document {
  max-width: 980px;
  margin: 0 auto;
}

.legal-document h2 {
  margin: 38px 0 14px;
  color: var(--petrol-dark);
  line-height: 1.15;
}

.legal-document .legal-updated + h2 {
  margin-top: 0;
}

.legal-document h3 {
  margin: 34px 0 12px;
  color: var(--petrol-dark);
  font-size: 1.25rem;
  line-height: 1.3;
}

.legal-document p {
  margin: 0 0 12px;
}

.legal-document ul {
  margin: 0 0 18px;
  padding-left: 26px;
}

.legal-document ul li {
  margin: 8px 0;
}

.legal-updated {
  margin-bottom: 24px !important;
  color: var(--muted);
}

.legal-numbered-list {
  margin: 0 0 18px;
  padding-left: 26px;
}

.legal-numbered-list li {
  margin: 8px 0;
}

.withdrawal-form {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--cream);
}

.withdrawal-form p {
  margin: 16px 0 0;
}

@media (max-width: 720px) {
  .legal-section {
    scroll-margin-top: 105px;
  }

  .legal-jump-links .btn {
    width: 100%;
  }

  .legal-document,
  .withdrawal-form {
    padding: 20px;
  }
}


/* Datenschutz-Kurzfassung und Wunschseite */
.privacy-summary-section {
  padding-top: 18px;
}

.privacy-summary-card {
  padding: 34px;
  border: 1px solid rgba(46, 88, 99, 0.16);
  border-left: 6px solid var(--bronze);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, var(--bronze-soft), transparent 36%),
    var(--white);
  box-shadow: var(--shadow);
}

.privacy-summary-card h2,
.contact-wish-card h2,
.word-cloud-heading h2 {
  margin: 0 0 16px;
}

.privacy-summary-list {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.privacy-summary-list li {
  position: relative;
  padding-left: 32px;
}

.privacy-summary-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--bronze);
  font-weight: 900;
}

.privacy-summary-highlight {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--petrol-soft), var(--bronze-soft));
  color: var(--petrol-dark);
  font-size: 1.1rem;
}

.privacy-summary-actions {
  margin-top: 28px;
}

#vollstaendige-datenschutzerklaerung {
  scroll-margin-top: 130px;
}

.contact-wish-section {
  padding-top: 0;
}

.contact-wish-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bronze-soft), var(--white) 64%);
  box-shadow: var(--shadow-soft);
}

.contact-wish-card > div {
  max-width: 760px;
}

.contact-wish-card .btn {
  flex: 0 0 auto;
}

.wish-hero {
  background:
    radial-gradient(circle at top right, rgba(163, 129, 104, 0.24), transparent 36%),
    linear-gradient(135deg, rgba(46, 88, 99, 0.13), var(--white) 62%);
}

.wish-form {
  display: grid;
  gap: 24px;
}

.wish-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.wish-field {
  display: grid;
  gap: 9px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.wish-field > span,
.wish-choice-card legend {
  color: var(--petrol-dark);
  font-size: 1.08rem;
  font-weight: 900;
}

.wish-field input,
.wish-field textarea {
  resize: vertical;
}

.wish-field input:focus,
.wish-field textarea:focus {
  outline: 3px solid rgba(163, 129, 104, 0.25);
  border-color: var(--bronze);
}

.wish-choice-card {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.wish-choice-card legend {
  padding: 0 10px;
}

.wish-rating-grid,
.wish-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wish-rating-grid label,
.wish-chip-grid label {
  position: relative;
  cursor: pointer;
}

.wish-rating-grid input,
.wish-chip-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wish-rating-grid span,
.wish-chip-grid span {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 2px solid rgba(46, 88, 99, 0.18);
  border-radius: 999px;
  background: var(--cream);
  color: var(--petrol-dark);
  font-weight: 800;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.wish-rating-grid input:checked + span,
.wish-chip-grid input:checked + span {
  border-color: var(--petrol);
  background: var(--petrol);
  color: var(--white);
  transform: translateY(-1px);
}

.wish-rating-grid input:focus-visible + span,
.wish-chip-grid input:focus-visible + span {
  outline: 3px solid rgba(163, 129, 104, 0.35);
  outline-offset: 2px;
}

.wish-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wish-form-actions button {
  cursor: pointer;
}

.word-cloud-section {
  margin-top: 42px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 10% 20%, var(--bronze-soft), transparent 30%),
    radial-gradient(circle at 90% 80%, var(--petrol-soft), transparent 32%),
    var(--white);
  box-shadow: var(--shadow);
}

.word-cloud-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.word-cloud-heading p:last-child {
  max-width: 430px;
  color: var(--muted);
  text-align: right;
}

.word-cloud {
  display: flex;
  min-height: 280px;
  align-content: center;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 28px;
  border: 1px dashed rgba(46, 88, 99, 0.28);
  border-radius: 20px;
  background: rgba(255, 250, 243, 0.76);
  text-align: center;
}

.word-cloud-placeholder {
  color: var(--muted);
  font-size: 1.08rem;
  font-style: italic;
}

.word-cloud-word {
  display: inline-block;
  color: var(--petrol);
  font-weight: 900;
  line-height: 1;
  transition: transform 160ms ease;
}

.word-cloud-word:hover {
  transform: scale(1.08);
}

.word-cloud-word[data-tone="2"],
.word-cloud-word[data-tone="4"] {
  color: var(--bronze);
}

.word-cloud-word[data-tone="3"] {
  color: var(--petrol-dark);
}

.word-cloud-level-1 { font-size: 1rem; opacity: 0.76; }
.word-cloud-level-2 { font-size: 1.25rem; opacity: 0.84; }
.word-cloud-level-3 { font-size: 1.65rem; }
.word-cloud-level-4 { font-size: 2.1rem; }
.word-cloud-level-5 { font-size: clamp(2.45rem, 6vw, 4rem); }

@media (max-width: 860px) {
  .wish-form-grid {
    grid-template-columns: 1fr;
  }

  .contact-wish-card,
  .word-cloud-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .word-cloud-heading p:last-child {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .privacy-summary-card,
  .contact-wish-card,
  .wish-field,
  .wish-choice-card,
  .word-cloud-section,
  .word-cloud {
    padding: 20px;
  }

  .privacy-summary-actions .btn,
  .contact-wish-card .btn,
  .wish-form-actions .btn {
    width: 100%;
  }

  .wish-rating-grid,
  .wish-chip-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .wish-rating-grid span,
  .wish-chip-grid span {
    width: 100%;
  }

  #vollstaendige-datenschutzerklaerung {
    scroll-margin-top: 105px;
  }
}

/* Offline-Seite der Tour-PWA */
.offline-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, var(--bronze-soft), transparent 38%),
    linear-gradient(155deg, var(--petrol-soft), var(--cream) 58%);
}

.offline-main {
  display: grid;
  min-height: 100vh;
  padding: 28px 18px;
  place-items: center;
}

.offline-card {
  width: min(100%, 620px);
  padding: clamp(28px, 7vw, 52px);
  border: 1px solid var(--line);
  border-top: 6px solid var(--petrol);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.offline-card h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 10vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.offline-lead {
  color: #385153;
  font-size: 1.15rem;
}

.offline-note {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 4px solid var(--bronze);
  border-radius: 14px;
  background: var(--bronze-soft);
  color: var(--petrol-dark);
}

.offline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.offline-actions .btn {
  cursor: pointer;
}

.offline-actions .btn:focus-visible {
  outline: 4px solid rgba(163, 129, 104, 0.55);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .offline-main {
    align-items: stretch;
    padding: 16px;
  }

  .offline-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 32px);
    padding: 28px 22px;
  }

  .offline-actions {
    flex-direction: column;
  }

  .offline-actions .btn {
    width: 100%;
  }
}

/* Rein lokale technische Demo-Tour */
.demo-tour-page {
  --demo-bronze-text: #6f5140;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, var(--bronze-soft), transparent 34%),
    linear-gradient(180deg, var(--petrol-soft), var(--cream) 36%);
}

.demo-tour-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 4px solid var(--petrol);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.demo-tour-brand {
  flex: 0 0 auto;
}

.demo-tour-brand img {
  width: 74px;
  height: 52px;
  object-fit: contain;
}

.demo-tour-header .eyebrow {
  margin-bottom: 2px;
}

.demo-tour-page .eyebrow {
  color: var(--demo-bronze-text);
}

.demo-tour-header-title {
  overflow-wrap: anywhere;
  color: var(--petrol-dark);
  font-weight: 900;
  line-height: 1.2;
}

.demo-tour-main {
  width: min(100%, 860px);
  min-width: 0;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.demo-tour-view[hidden] {
  display: none;
}

.demo-tour-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--petrol);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.demo-tour-start-card,
.demo-tour-finish-card {
  margin-top: 24px;
}

.demo-tour-start-card {
  display: grid;
  gap: 18px;
}

.demo-tour-card h1,
.demo-tour-progress-header h1 {
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 11vw, 4rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.demo-tour-lead,
.demo-tour-station-intro {
  color: #385153;
  font-size: 1.12rem;
}

.tour-start-welcome {
  margin: 0;
  color: var(--demo-bronze-text);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tour-start-title {
  margin-bottom: 0 !important;
  font-size: clamp(2.45rem, 8vw, 4.7rem) !important;
}

.demo-tour-start-card > #start-tour {
  justify-self: start;
}

.tour-reset-button {
  justify-self: start;
  margin-top: 4px;
  font-size: 0.95rem;
}

.tour-reset-panel {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.tour-reset-panel summary {
  min-height: 44px;
  cursor: pointer;
  color: var(--petrol-dark);
  font-weight: 900;
}

.tour-reset-panel p {
  margin: 8px 0 12px;
}

.tour-staging-reset-button {
  margin-top: 12px;
  border-style: dashed;
  color: var(--bronze-dark);
}

.demo-tour-facts {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.demo-tour-facts li {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--petrol-soft);
  color: var(--petrol-dark);
  font-weight: 800;
}

.demo-tour-save-actions {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.demo-tour-save-actions[hidden] {
  display: none;
}

.demo-tour-save-actions .btn {
  width: 100%;
}

.demo-tour-save-actions .btn[hidden] {
  display: none;
}

.demo-tour-save-message {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.demo-tour-save-message.is-warning {
  padding: 12px 14px;
  border-left: 4px solid var(--bronze);
  border-radius: 12px;
  background: var(--bronze-soft);
  color: var(--petrol-dark);
}

.demo-tour-progress-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
}

.demo-tour-progress-text {
  flex: 0 0 auto;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

#hint-status {
  margin-bottom: 0;
}

.demo-tour-progress {
  overflow: hidden;
  height: 10px;
  margin: 0 0 22px;
  border-radius: 999px;
  background: rgba(46, 88, 99, 0.16);
}

.tour-step-jump {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 10px 14px;
  border: 2px dashed rgba(163, 129, 104, 0.5);
  border-radius: 14px;
  background: var(--bronze-soft);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--petrol-dark);
}

.tour-step-jump[hidden] {
  display: none;
}

.tour-step-jump input {
  width: 64px;
  padding: 6px 8px;
  border: 1px solid rgba(46, 88, 99, 0.3);
  border-radius: 8px;
}

.tour-step-jump button {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 0.85rem;
}

.demo-tour-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--petrol), var(--bronze));
  transition: width 180ms ease;
}

.demo-tour-progress[aria-valuenow="1"] span {
  width: 33.333%;
}

.demo-tour-progress[aria-valuenow="2"] span {
  width: 66.666%;
}

.demo-tour-progress[aria-valuenow="3"] span {
  width: 100%;
}

.demo-tour-page .btn {
  min-height: 48px;
  padding-block: 12px;
  white-space: normal;
}

.demo-tour-page .btn-primary:hover {
  border-color: var(--petrol-dark);
  background: var(--petrol-dark);
}

.demo-tour-page .btn-secondary:hover {
  border-color: var(--petrol);
  background: var(--petrol-soft);
  color: var(--petrol-dark);
}

.demo-tour-audio,
.demo-tour-task,
.demo-tour-hints {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.demo-tour-audio h2,
.demo-tour-task h2,
.demo-tour-hints h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.demo-tour-audio {
  display: grid;
  gap: 14px;
}

.demo-tour-audio p {
  margin: 0;
  color: var(--petrol-dark);
  font-weight: 900;
}

.demo-tour-audio .btn {
  justify-self: start;
}

.demo-tour-task form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.demo-tour-task input[type="text"] {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  font-size: max(1rem, 16px);
}

.demo-tour-task label,
.demo-tour-task legend {
  color: var(--petrol-dark);
  font-weight: 800;
}

.demo-tour-task fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.demo-tour-task legend {
  margin-bottom: 8px;
}

.demo-tour-option {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fffaf6;
  cursor: pointer;
}

.demo-tour-option:has(input:checked) {
  border-color: var(--petrol);
  background: var(--petrol-soft);
}

.demo-tour-option input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--petrol);
}

.demo-tour-feedback {
  min-height: 28px;
  margin-top: 16px;
  padding: 0;
  font-weight: 800;
}

.demo-tour-feedback.is-success,
.demo-tour-feedback.is-error {
  padding: 13px 15px;
  border-radius: 14px;
}

.demo-tour-feedback.is-success {
  border-left: 5px solid #2e6346;
  background: rgba(46, 99, 70, 0.12);
  color: #24563b;
}

.demo-tour-feedback.is-error {
  border-left: 5px solid #a35e4a;
  background: rgba(163, 94, 74, 0.14);
  color: #743b2b;
}

.demo-tour-feedback.is-success::before {
  content: "✓ ";
}

.demo-tour-feedback.is-error::before {
  content: "! ";
}

.tour-task-feedback {
  margin-top: 0;
}

.demo-tour-hint-actions,
.demo-tour-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tour-hint-button[hidden],
#hint-list[hidden] {
  display: none;
}

.tour-hint-button:disabled,
.tour-hint-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
  filter: grayscale(0.35);
}

.demo-tour-hint-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 24px;
}

.demo-tour-hint-list li {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bronze-soft);
  color: var(--petrol-dark);
}

.demo-tour-navigation {
  justify-content: space-between;
  margin-top: 12px;
}

.demo-tour-page button:focus-visible,
.demo-tour-page input:focus-visible,
.demo-tour-page a:focus-visible {
  outline: 3px solid var(--petrol-dark);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--white);
}

.demo-tour-page button:disabled {
  cursor: not-allowed;
  border-style: dashed;
  opacity: 0.62;
}

@media (min-width: 700px) {
  .demo-tour-main {
    padding-top: 42px;
  }

  .demo-tour-card {
    padding: 38px;
  }

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

  .demo-tour-audio {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 320px);
    align-items: center;
  }

  .demo-tour-audio .tour-audio-component {
    width: 100%;
  }

  .demo-tour-audio .form-hint {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  .demo-tour-main {
    width: min(100%, 960px);
    padding-inline: 28px;
  }

  .demo-tour-start-card {
    padding: clamp(42px, 6vw, 64px);
  }

  .tour-download-panel {
    padding: 24px;
  }
}

@media (min-width: 1024px) {
  .demo-tour-main {
    width: min(100%, 1040px);
  }

  .demo-tour-card {
    padding-inline: 54px;
  }
}

@media (max-width: 520px) {
  .demo-tour-progress-header {
    display: block;
  }

  .demo-tour-progress-text {
    margin: 0 0 12px;
  }

  .demo-tour-card {
    padding: 24px 20px;
  }

  .demo-tour-hint-actions,
  .demo-tour-navigation {
    flex-direction: column;
  }

  .demo-tour-hint-actions .btn,
  .demo-tour-navigation .btn,
  .demo-tour-start-card > .btn,
  .tour-reset-button,
  .demo-tour-finish-card > .btn {
    width: 100%;
  }

  .demo-tour-navigation {
    flex-direction: column-reverse;
  }
}

@media (max-width: 340px) {
  .demo-tour-header {
    gap: 10px;
    padding-inline: 12px;
  }

  .demo-tour-brand img {
    width: 62px;
    height: 44px;
  }

  .demo-tour-main {
    padding-inline: 10px;
  }

  .demo-tour-card {
    padding: 22px 16px;
  }

  .demo-tour-card h1,
  .demo-tour-progress-header h1 {
    font-size: clamp(2rem, 10vw, 2.5rem);
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .demo-tour-main {
    padding-top: 14px;
  }

  .demo-tour-start-card,
  .demo-tour-finish-card {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-tour-page *,
  .demo-tour-page *::before,
  .demo-tour-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Tour-PWA: Die Kollmeraner Schmuggler */
.tour-start-logo {
  width: min(220px, 70vw);
  height: auto;
  margin-bottom: 18px;
  justify-self: center;
}

.tour-download-panel {
  margin: 24px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--petrol-soft);
}

.tour-download-panel h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.tour-download-panel progress {
  width: 100%;
  height: 18px;
  margin: 14px 0 6px;
  accent-color: var(--petrol);
}

.tour-media-figure {
  margin: 0 0 18px;
}

.tour-media-figure img {
  width: 100%;
  max-height: min(72vh, 760px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  object-fit: contain;
  box-shadow: var(--shadow-soft);
}

.tour-media-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.tour-route-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 24px;
}

.tour-route-list li {
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--bronze-soft);
  color: var(--petrol-dark);
}

.tour-route-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.tour-route-panel[hidden] {
  display: none;
}

.tour-route-title {
  margin: 4px 0 0;
  font-size: 1.05rem;
  color: var(--petrol-dark);
}

.tour-route-note {
  margin: 0;
  padding: 14px;
  border: 2px solid rgba(163, 129, 104, 0.45);
  border-radius: 16px;
  background: var(--bronze-soft);
  color: var(--petrol-dark);
  font-weight: 800;
}

.tour-orientation-help {
  display: grid;
  gap: 10px;
  margin: 4px 0 0;
}

.tour-orientation-toggle {
  justify-self: start;
  border-color: #b42318;
  border-style: dashed;
  color: #8a1c13;
}

.tour-orientation-content .tour-media-figure {
  margin: 2px 0 0;
}

.tour-orientation-content .tour-media-figure img {
  max-height: min(68vh, 720px);
  object-fit: contain;
}

.tour-orientation-visual,
.tour-orientation-map-view,
.tour-orientation-photo-view {
  display: grid;
  gap: 10px;
}

.tour-orientation-map {
  position: relative;
  margin: 2px 0 0;
}

.tour-orientation-map img {
  display: block;
}

.tour-orientation-overlay {
  position: absolute;
  z-index: 1;
  min-height: 44px;
  padding: 9px 14px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(35, 55, 59, 0.92);
  color: var(--white);
  font: inherit;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 5px 18px rgba(15, 35, 39, 0.32);
  cursor: pointer;
  backdrop-filter: blur(3px);
}

.tour-orientation-overlay:hover {
  background: var(--petrol-dark);
}

.tour-orientation-overlay:focus-visible {
  outline: 4px solid var(--bronze);
  outline-offset: 3px;
}

.tour-orientation-station-switch {
  top: 14px;
  left: 14px;
}

.tour-orientation-coordinates-toggle {
  top: 14px;
  right: 14px;
  white-space: nowrap;
}

.tour-orientation-coordinates {
  display: grid;
  gap: 7px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--petrol-soft);
  color: var(--petrol-dark);
}

.tour-orientation-coordinates code {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--white);
  color: inherit;
  font-size: clamp(0.88rem, 3.6vw, 1rem);
  font-weight: 800;
  overflow-wrap: anywhere;
  user-select: all;
}

.tour-orientation-copy-status {
  margin: 0;
}

.tour-orientation-map-switch {
  justify-self: start;
}

.tour-audio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tour-audio-component {
  display: grid;
  gap: 10px;
}

.tour-audio-main-button {
  --audio-progress: 0%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 210px);
  min-width: min(100%, 210px);
  min-height: 48px;
}

.tour-audio-main-button::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  width: var(--audio-progress);
  background: var(--bronze);
  pointer-events: none;
  transition: width 0.16s linear;
}

.tour-audio-button-label {
  position: relative;
  z-index: 1;
}

.tour-audio-playback {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.tour-audio-playback .tour-audio-main-button {
  flex: 1 1 auto;
  min-width: 0;
}

.tour-audio-rewind-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 10px;
}

/* Muss die display-Regel oben schlagen, sonst bleibt der Knopf trotz hidden sichtbar. */
.tour-audio-rewind-button[hidden] {
  display: none;
}

.tour-audio-rewind-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.tour-audio-main-button--compact {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 0.92rem;
  text-align: left;
  justify-content: flex-start;
}

.tour-audio-status--compact {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.tour-station-audio,
.tour-station-task,
.tour-fake-time-prompt,
.tour-station-finish {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.tour-finish-history {
  padding: 14px 16px;
  border: 2px solid rgba(163, 129, 104, 0.4);
  border-radius: 16px;
  background: var(--bronze-soft);
}

.tour-finish-history summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--petrol-dark);
  list-style: none;
}

.tour-finish-history summary::-webkit-details-marker {
  display: none;
}

.tour-finish-history summary::before {
  content: "▸ ";
}

.tour-finish-history[open] summary::before {
  content: "▾ ";
}

.tour-finish-history-body {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  color: var(--petrol-dark);
}

.tour-audio-heading,
.tour-task-heading {
  margin: 0;
  font-size: 1.05rem;
  color: var(--petrol-dark);
}

.tour-collection-summary {
  margin-bottom: 18px;
}

.tour-collection-open {
  display: grid;
  width: 100%;
  min-height: 74px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 2px solid rgba(46, 88, 99, 0.22);
  border-radius: 18px;
  background: var(--petrol-soft);
  color: var(--petrol-dark);
  text-align: left;
  cursor: pointer;
}

.tour-collection-open:hover {
  border-color: var(--petrol);
  background: #e6efef;
}

.tour-collection-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.tour-collection-copy strong {
  font-size: 1.05rem;
}

.tour-collection-copy span {
  color: #49666a;
  font-size: 0.9rem;
  font-weight: 800;
}

.tour-collection-stack {
  display: flex;
  min-width: 112px;
  justify-content: flex-end;
}

.tour-collection-miniature {
  display: grid;
  width: 28px;
  height: 38px;
  margin-left: -11px;
  border: 1px solid rgba(46, 88, 99, 0.3);
  border-radius: 6px;
  background: var(--white);
  color: var(--petrol-dark);
  font-size: 0.82rem;
  font-weight: 900;
  place-items: center;
  box-shadow: 0 4px 9px rgba(27, 56, 63, 0.12);
}

.tour-collection-miniature:first-child {
  margin-left: 0;
}

.tour-collection-miniature.is-locked {
  background: #dce5e5;
  color: #688084;
}

.tour-collection-affordance {
  color: var(--bronze-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

.tour-collection-dialog {
  width: min(920px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--white);
  color: var(--petrol-dark);
  box-shadow: 0 24px 70px rgba(27, 56, 63, 0.35);
}

.tour-collection-dialog::backdrop {
  background: rgba(16, 38, 43, 0.72);
  backdrop-filter: blur(3px);
}

.tour-collection-dialog-panel {
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: 24px;
}

.tour-collection-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.tour-collection-dialog-header .eyebrow,
.tour-collection-dialog-header h2 {
  margin: 0;
}

.tour-collection-dialog-header h2 {
  margin-top: 2px;
  font-size: clamp(1.75rem, 5vw, 2.6rem);
}

.tour-collection-close {
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--petrol-dark);
  font-weight: 900;
  cursor: pointer;
}

.tour-collection-introduction {
  max-width: 720px;
  margin: 16px 0 22px;
  color: #49666a;
}

.tour-collection-dialog-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(300px, 1.28fr);
  gap: 22px;
  align-items: start;
}

.tour-collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* Einblendung, wenn eine neue Zeitkarte hinzukommt. Sitzt über allem,
   auch über dem Kartendialog, und ist bewusst kräftig: draußen bei Sonne
   und mit Wind im Ohr muss das auffallen. */
.tour-card-toast {
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(420px, calc(100vw - 24px));
  padding: 14px 18px;
  border: 1px solid #22220f;
  border-radius: 10px;
  background-color: #d8d8c0;
  background-image: radial-gradient(
    120% 90% at 20% 10%,
    rgba(255, 255, 245, 0.8),
    transparent 62%
  );
  box-shadow: 0 12px 30px rgba(23, 34, 15, 0.45);
  color: #303018;
  opacity: 0;
  transform: translate(-50%, 22px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.tour-card-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.tour-card-toast-badge {
  flex: 0 0 auto;
  min-width: 44px;
  padding: 6px 10px 8px;
  border-radius: 5px;
  background: linear-gradient(180deg, #3a3a24 0%, #22220f 100%);
  box-shadow: inset 0 1px 0 rgba(214, 196, 150, 0.35);
  color: #d8c48c;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.tour-card-toast-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tour-card-toast-copy strong {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tour-card-toast-copy span {
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
  .tour-card-toast {
    transition: opacity 200ms ease;
    transform: translate(-50%, 0);
  }
}

/* Zeitkarten im Kupferstich-Idiom der Kollmeraner Schmuggler.
   Palette aus header-kollmeraner-schmuggler.png gemessen:
   Pergament #d8d8c0, Mitteltöne #909078 / #787860, Tinte #303018.
   Alles in CSS, damit keine zusätzlichen Mediendateien nötig sind. */
:root {
  --zeitkarte-pergament: #d8d8c0;
  --zeitkarte-pergament-hell: #e6e4d2;
  --zeitkarte-mittel: #909078;
  --zeitkarte-tiefe: #787860;
  --zeitkarte-tinte: #303018;
}

.tour-collection-card {
  position: relative;
  display: grid;
  min-height: 126px;
  align-content: space-between;
  justify-items: center;
  gap: 4px;
  padding: 12px 10px 10px;
  border: 1px solid var(--zeitkarte-tiefe);
  border-radius: 6px;
  color: var(--zeitkarte-tinte);
  cursor: pointer;
  /* Pergament: zwei weiche Lichtflecken plus feine Faserung */
  background-color: var(--zeitkarte-pergament);
  background-image:
    radial-gradient(120% 90% at 22% 12%, rgba(255, 255, 245, 0.75), transparent 60%),
    radial-gradient(90% 80% at 82% 95%, rgba(120, 120, 96, 0.22), transparent 65%),
    repeating-linear-gradient(
      92deg,
      rgba(48, 48, 24, 0.045) 0 1px,
      transparent 1px 4px
    );
  box-shadow:
    inset 0 0 0 1px rgba(230, 228, 210, 0.9),
    inset 0 0 18px rgba(120, 120, 96, 0.22),
    0 1px 2px rgba(48, 48, 24, 0.18);
}

/* Innerer Doppelrahmen mit Eckmarken, wie auf gestochenen Tafeln. */
.tour-collection-card::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(48, 48, 24, 0.42);
  border-radius: 3px;
  pointer-events: none;
}

.tour-collection-card::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-top: 1px solid rgba(48, 48, 24, 0.18);
  border-bottom: 1px solid rgba(48, 48, 24, 0.18);
  pointer-events: none;
}

.tour-collection-card:hover,
.tour-collection-card.is-selected {
  border-color: var(--zeitkarte-tinte);
  background-color: var(--zeitkarte-pergament-hell);
}

.tour-collection-card.is-selected::before {
  border-color: rgba(48, 48, 24, 0.75);
  box-shadow: 0 0 0 1px rgba(48, 48, 24, 0.25);
}

/* Gesperrt: dasselbe Papier, nur ausgeblichen und ohne Rahmenspiel. */
.tour-collection-card.is-locked {
  align-content: center;
  border-color: rgba(120, 120, 96, 0.5);
  background-color: #cfcfbb;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(120, 120, 96, 0.16) 0 2px,
    transparent 2px 7px
  );
  box-shadow: inset 0 0 14px rgba(120, 120, 96, 0.3);
  color: rgba(48, 48, 24, 0.42);
  font-size: 2rem;
  font-weight: 900;
  cursor: default;
}

.tour-collection-card.is-locked::after {
  display: none;
}

.tour-collection-card-order {
  position: relative;
  color: rgba(48, 48, 24, 0.6);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Der Buchstabe sitzt auf einem dunklen Schild mit Goldschrift,
   wie die Titeltafeln der ersten Tour. */
.tour-collection-card-letter {
  position: relative;
  min-width: 52px;
  padding: 4px 12px 6px;
  border-radius: 4px;
  background: linear-gradient(180deg, #3a3a24 0%, #22220f 100%);
  box-shadow:
    inset 0 1px 0 rgba(214, 196, 150, 0.35),
    0 1px 3px rgba(48, 48, 24, 0.4);
  color: #d8c48c;
  font-size: 2.15rem;
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55);
}

.tour-collection-card-year {
  position: relative;
  color: rgba(48, 48, 24, 0.88);
  font-weight: 900;
  letter-spacing: 0.04em;
  font-variant-numeric: lining-nums tabular-nums;
}

.tour-collection-preview {
  min-height: 360px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--cream);
}

/* Große Kartenansicht: dasselbe Pergament, nur mit mehr Luft und
   sichtbaren Eckornamenten. */
.tour-collection-preview-face {
  position: relative;
  display: grid;
  min-height: 236px;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--zeitkarte-tiefe);
  border-radius: 8px;
  background-color: var(--zeitkarte-pergament);
  background-image:
    radial-gradient(120% 90% at 20% 10%, rgba(255, 255, 245, 0.8), transparent 62%),
    radial-gradient(95% 85% at 85% 96%, rgba(120, 120, 96, 0.24), transparent 66%),
    repeating-linear-gradient(
      92deg,
      rgba(48, 48, 24, 0.04) 0 1px,
      transparent 1px 5px
    );
  box-shadow:
    inset 0 0 0 1px rgba(230, 228, 210, 0.9),
    inset 0 0 26px rgba(120, 120, 96, 0.26),
    0 2px 6px rgba(48, 48, 24, 0.2);
}

.tour-collection-preview-face::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(48, 48, 24, 0.45);
  border-radius: 4px;
  pointer-events: none;
}

/* Eckmarken als vier kurze Winkel - der ruhigste Weg zu einer Stichtafel. */
.tour-collection-preview-face::after {
  content: "";
  position: absolute;
  inset: 16px;
  pointer-events: none;
  background-image:
    linear-gradient(var(--zeitkarte-tinte), var(--zeitkarte-tinte)),
    linear-gradient(var(--zeitkarte-tinte), var(--zeitkarte-tinte)),
    linear-gradient(var(--zeitkarte-tinte), var(--zeitkarte-tinte)),
    linear-gradient(var(--zeitkarte-tinte), var(--zeitkarte-tinte));
  background-repeat: no-repeat;
  background-size: 16px 1px, 1px 16px, 16px 1px, 1px 16px;
  background-position: left top, left top, right bottom, right bottom;
  opacity: 0.55;
}

.tour-collection-preview-label {
  position: relative;
  color: rgba(48, 48, 24, 0.7);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tour-collection-preview-letter {
  position: relative;
  margin: 4px 0;
  padding: 8px 28px 14px;
  border-radius: 6px;
  background: linear-gradient(180deg, #3a3a24 0%, #22220f 100%);
  box-shadow:
    inset 0 1px 0 rgba(214, 196, 150, 0.35),
    0 2px 6px rgba(48, 48, 24, 0.45);
  color: #d8c48c;
  font-size: clamp(4.5rem, 16vw, 7rem);
  line-height: 0.95;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}

.tour-collection-preview-year {
  position: relative;
  color: rgba(48, 48, 24, 0.9);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.06em;
  font-size: 1.5rem;
  font-weight: 900;
}

.tour-collection-preview-copy {
  margin-top: 18px;
}

.tour-collection-preview-copy h3,
.tour-collection-preview-copy p {
  margin: 0;
}

.tour-collection-preview-copy h3 {
  margin-bottom: 7px;
}

.tour-collection-preview-order {
  margin-top: 12px !important;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.tour-task-question {
  white-space: pre-line;
}

.tour-fake-time-warning {
  display: grid;
  grid-template-columns: minmax(88px, 132px) 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 2px solid #b42318;
  border-radius: 16px;
  background: #fff3f1;
  color: #6f1710;
}

.tour-fake-time-warning img {
  width: 100%;
  max-width: 132px;
  border-radius: 12px;
}

.tour-fake-time-warning p {
  margin: 0;
  font-weight: 800;
}

.tour-skip-audio-button {
  border-style: dashed;
  color: var(--bronze-dark);
}

#answer-form,
.tour-inline-answer-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

#answer-form[hidden] {
  display: none;
}

#answer-input:disabled {
  border-color: var(--petrol);
  background: var(--petrol-soft);
  color: var(--petrol-dark);
}

.tour-inline-answer-form input:disabled {
  border-color: var(--petrol);
  background: var(--petrol-soft);
  color: var(--petrol-dark);
}

.tour-choice-fieldset {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.tour-choice-fieldset legend {
  margin-bottom: 4px;
  color: var(--petrol-dark);
  font-weight: 900;
}

.tour-choice-options {
  display: grid;
  gap: 10px;
}

.tour-choice-option {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 48px;
  padding: 12px 14px;
  border: 2px solid rgba(46, 88, 99, 0.18);
  border-radius: 14px;
  background: var(--cream);
  color: var(--petrol-dark);
  cursor: pointer;
}

.tour-choice-option:has(input:checked) {
  border-color: var(--petrol);
  background: var(--petrol-soft);
}

.tour-choice-option:has(input:focus-visible) {
  outline: 3px solid rgba(163, 129, 104, 0.35);
  outline-offset: 2px;
}

.tour-choice-option input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--petrol);
}

.tour-choice-option span {
  line-height: 1.4;
}

.tour-choice-option:has(input:disabled) {
  cursor: default;
  opacity: 0.82;
}

.tour-hint-button {
  margin-top: 12px;
}

.tour-choice-audio-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.tour-choice-audio-row input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--petrol);
}

.tour-completion-actions {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bronze-soft);
}

.tour-completion-actions h2,
.tour-completion-actions p {
  margin: 0;
}

.tour-completion-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 520px) {
  .tour-audio-actions,
  .tour-download-panel .cta-row {
    flex-direction: column;
  }

  .tour-audio-actions .btn,
  .tour-download-panel .btn,
  .tour-inline-answer-form .btn,
  .tour-orientation-toggle,
  .tour-orientation-map-switch,
  .tour-completion-buttons .btn {
    width: 100%;
  }

  .tour-audio-actions .tour-audio-rewind-button {
    width: auto;
    padding: 8px 12px;
  }

  .tour-orientation-overlay {
    min-height: 40px;
    padding: 7px 11px;
    font-size: 0.84rem;
  }

  .tour-orientation-station-switch {
    top: 9px;
    left: 9px;
  }

  .tour-orientation-coordinates-toggle {
    top: 9px;
    right: 9px;
  }

  .tour-fake-time-warning {
    grid-template-columns: 88px 1fr;
  }

  .tour-collection-open {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tour-collection-affordance {
    display: none;
  }

  .tour-collection-stack {
    min-width: 92px;
  }

  .tour-collection-miniature {
    width: 25px;
    height: 34px;
    margin-left: -12px;
  }

  .tour-collection-dialog-panel {
    padding: 18px;
  }

  .tour-collection-dialog-header {
    align-items: center;
  }

  .tour-collection-dialog-layout {
    grid-template-columns: 1fr;
  }

  .tour-collection-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tour-collection-card {
    min-height: 96px;
    padding: 8px 4px;
  }

  .tour-collection-card-letter {
    font-size: 1.75rem;
  }

  .tour-collection-card-year {
    font-size: 0.78rem;
  }

  .tour-collection-preview {
    min-height: 0;
    padding: 15px;
  }

  .tour-collection-preview-face {
    min-height: 210px;
  }
}

/* Verborgene PWA-Elemente duerfen nicht durch display-Regeln sichtbar werden. */
.demo-tour-page [hidden] {
  display: none !important;
}

/* Kontaktformular: Versandstatus und Bot-Schutz */
.contact-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.contact-form button[disabled],
.wish-form button[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 1.6em;
  margin: 0;
  font-weight: 800;
}

.form-status:empty {
  display: none;
}

.form-status[data-state="success"] {
  color: #2f6f43;
}

.form-status[data-state="warning"] {
  color: #8a5b13;
}

.form-status[data-state="error"] {
  color: #9c2f2f;
}

.wish-field-wide {
  grid-column: 1 / -1;
}

.wish-field .form-hint {
  display: block;
  margin-top: 4px;
}


/* Bildergalerie Test-Familie Team Kiebitze */
.testimonial-card-gallery {
  border-top: 5px solid rgba(46, 88, 99, 0.25);
}

.testimonial-gallery {
  position: relative;
  background: #eef3f3;
}

.gallery-image {
  display: none;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: pointer;
}

.gallery-image.is-active {
  display: block;
}

.gallery-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--petrol-dark);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.gallery-control:hover,
.gallery-control:focus-visible {
  background: var(--white);
}

.gallery-control-prev {
  left: 12px;
}

.gallery-control-next {
  right: 12px;
}

.gallery-dots {
  position: absolute;
  right: 0;
  bottom: 14px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.gallery-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 0 1px rgba(46, 88, 99, 0.18);
  cursor: pointer;
}

.gallery-dot.is-active {
  background: var(--petrol);
}



@media (max-width: 720px) {
  .tour-card dl div {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .tour-card dd {
    text-align: right;
    overflow-wrap: anywhere;
  }

  .gallery-control {
    width: 38px;
    height: 38px;
  }
}


/* Transparenter Hinweis zu technisch notwendiger Speicherung */
.cookie-notice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1000;
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(46, 88, 99, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 46px rgba(27, 56, 63, 0.24);
  backdrop-filter: blur(10px);
}

.cookie-notice-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-notice strong {
  color: var(--petrol-dark);
  font-size: 1.08rem;
}

.cookie-notice p {
  margin: 4px 0 0;
  color: #385153;
}

.cookie-notice-media {
  flex: 0 0 92px;
}

.cookie-notice-media img {
  width: 92px;
  height: 92px;
  border: 1px solid var(--line);
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.cookie-notice-copy {
  min-width: 0;
}

.cookie-highlight {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 30px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(163, 129, 104, 0.10), rgba(46, 88, 99, 0.06));
}

.cookie-highlight-media img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.cookie-highlight-copy h2 {
  margin-top: 0;
}

.cookie-notice-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.cookie-notice button {
  cursor: pointer;
}

.cookie-document h2 {
  margin-top: 34px;
}

.cookie-document h2:first-child {
  margin-top: 0;
}

@media (max-width: 720px) {
  .cookie-notice {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 16px;
  }

  .cookie-notice-inner,
  .cookie-notice-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-notice-media {
    flex-basis: auto;
  }

  .cookie-notice-media img {
    width: 100%;
    max-width: 140px;
    height: auto;
  }

  .cookie-notice-actions .btn {
    width: 100%;
  }

  .cookie-highlight {
    grid-template-columns: 1fr;
    padding: 18px;
  }
}


/* Verfügbarkeits- und Planungshinweise */
.availability-banner {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 10px 18px;
  border: 1px solid rgba(163, 129, 104, 0.42);
  border-radius: 14px;
  background: var(--bronze);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  box-shadow: var(--shadow-soft);
}

.availability-banner-card {
  margin: 4px 0 12px;
  border-radius: 12px;
}

.availability-banner-booking {
  margin-bottom: 20px;
}

.availability-banner-planning {
  align-self: stretch;
  margin-bottom: 16px;
  background: var(--petrol);
}

@media (max-width: 720px) {
  .nav-cta {
    white-space: normal;
    text-align: center;
  }

  .availability-banner {
    font-size: 0.86rem;
  }
}


/* Kapitän-Tour: Sortieren, Kamera und Tourtasche */
.tour-sort-options {
  display: grid;
  /* Ohne explizite Spalte richtet sich das Grid sonst an der breitesten
     Zeile aus - und weil der Audio-Text in der Zeile nicht mehr umbricht
     (wegen der Auslassungspunkte), wäre das seine volle, ungekürzte
     Textbreite. Die Liste würde dann über den Bildschirmrand hinauswachsen. */
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tour-sort-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px 12px 0;
  border: 2px solid rgba(46, 88, 99, 0.18);
  border-radius: 14px;
  background: var(--cream);
  overflow: hidden;
  /* Auswahl und Aufklappmenü unterdrücken, sonst markiert iOS beim Ziehen Text
     oder startet seine eigene Zieh-Vorschau. */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Ohne Ziehfläche und ohne Auf-/Ab-Knöpfe, also nach dem Lösen, bleibt nur
   noch die Antwort selbst übrig – einspaltig über die volle Breite. */
.tour-sort-option--solved {
  grid-template-columns: minmax(0, 1fr);
  padding-left: 14px;
}

/* Die Ziehfläche: Teil der Zeile, kein Knopf. touch-action steht von Anfang an
   auf none - nur so übergibt iOS die Geste, statt selbst zu reagieren. */
.tour-sort-grip {
  position: relative;
  align-self: stretch;
  width: 46px;
  min-height: 52px;
  margin: -12px 0;
  border-right: 1px solid rgba(46, 88, 99, 0.16);
  background: rgba(46, 88, 99, 0.06);
  cursor: grab;
  touch-action: none;
}

/* Drei Rillen als Griffbild. */
.tour-sort-grip::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 12px;
  transform: translate(-50%, -50%);
  background-image: linear-gradient(
    rgba(46, 88, 99, 0.5) 0 2px,
    transparent 2px 5px
  );
  background-size: 100% 5px;
  background-repeat: repeat-y;
}

/* Die Bedienelemente in der Zeile bleiben normal benutzbar. */
.tour-sort-option button,
.tour-sort-option input,
.tour-sort-option a {
  cursor: pointer;
  user-select: auto;
}

.tour-sort-hint {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Während des Ziehens darf die Seite nicht mitscrollen. Die Ziehfläche sperrt
   das schon vorher; das hier fängt den Rest der Zeile mit ab. */
.tour-sort-options.is-sorting {
  touch-action: none;
  cursor: grabbing;
}

.tour-sort-option.is-lifted .tour-sort-grip {
  cursor: grabbing;
  background: rgba(46, 88, 99, 0.14);
}

/* Das aufgenommene Feld löst sich sichtbar heraus: es wird angehoben,
   bekommt Schlagschatten und folgt dem Finger. */
.tour-sort-option.is-lifted {
  position: relative;
  z-index: 5;
  border-color: var(--petrol);
  background: #fffdf8;
  box-shadow: 0 14px 28px rgba(23, 46, 52, 0.3);
  cursor: grabbing;
  transform-origin: center;
  scale: 1.03;
  rotate: -0.4deg;
}

/* Die Nachbarn machen weich Platz. */
.tour-sort-option.is-shifting {
  transition: transform 170ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .tour-sort-option.is-lifted {
    scale: 1;
    rotate: 0deg;
  }

  .tour-sort-option.is-shifting {
    transition: none;
  }
}

.tour-sort-audio-slot {
  min-width: 0;
}

.tour-sort-audio-slot .tour-audio-component {
  gap: 0;
}

/* Der Audio-Text soll die Zeile nie in die Höhe treiben - lieber abschneiden
   als umbrechen, sonst passen Griff, Audio und Pfeile nicht mehr in eine
   Zeile. */
.tour-sort-audio-slot .tour-audio-main-button--compact {
  min-height: 44px;
  padding: 8px 14px;
  overflow: hidden;
}

.tour-sort-audio-slot .tour-audio-button-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tour-utility-feature {
  margin-top: 18px;
  padding: 16px;
  border: 2px solid rgba(46, 88, 99, 0.16);
  border-radius: 16px;
  background: var(--cream);
}

.tour-camera-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.tour-camera-input:focus + label {
  outline: 3px solid rgba(163, 129, 104, 0.35);
  outline-offset: 3px;
}

.tour-bag-content {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.tour-bag-content[hidden] {
  display: none;
}

.tour-bag-photo {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 14px;
}

/* Tour-PWA: Aktentasche und Kamera als dauerhaft erreichbare Apps */
.demo-tour-progress-header.has-tour-apps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
  margin-bottom: 18px;
}

.tour-app-launchers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: end;
  grid-column: 3;
  grid-row: 1 / span 2;
}

.tour-app-launcher {
  position: relative;
  width: 78px;
  height: 78px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  border: 0;
  border-radius: 20px;
  background: #0d1717;
  box-shadow: 0 9px 22px rgba(31, 47, 51, 0.26);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.tour-app-launcher[hidden] {
  display: none;
}

.tour-app-launcher:hover,
.tour-app-launcher:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 13px 28px rgba(31, 47, 51, 0.32);
}

.tour-app-launcher:focus-visible {
  outline: 4px solid rgba(163, 129, 104, 0.42);
  outline-offset: 3px;
}

.tour-app-launcher img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tour-camera-launcher {
  background: #0d1717;
}

.tour-camera-launcher img {
  transform: scale(1.28);
}

.tour-camera-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.tour-bag-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  min-width: 25px;
  height: 25px;
  padding: 0 6px;
  place-items: center;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--bronze);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
}

.tour-bag-badge[hidden] {
  display: none;
}

.tour-modal-open {
  overflow: hidden;
}

.tour-bag-overlay,
.tour-bag-document-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  padding: clamp(10px, 2vw, 24px);
  place-items: center;
  background: rgba(7, 19, 21, 0.88);
  backdrop-filter: blur(5px);
}

.tour-bag-overlay[hidden],
.tour-bag-document-viewer[hidden] {
  display: none;
}

.tour-bag-panel {
  position: relative;
  width: min(96vw, 980px);
  max-height: 96dvh;
  overflow: auto;
  padding: clamp(10px, 1.5vw, 18px);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 26px;
  background: #e9dec9;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.46);
}

.tour-bag-close,
.tour-bag-document-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  cursor: pointer;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--petrol-dark);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.tour-bag-stage {
  position: relative;
  width: min(100%, 860px);
  margin: 0 auto;
  aspect-ratio: 1;
}

.tour-bag-open-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: contain;
}

.tour-bag-document-tray {
  position: absolute;
  right: 15%;
  bottom: 17%;
  left: 15%;
  display: flex;
  height: 25%;
  gap: clamp(7px, 1.3vw, 12px);
  overflow-x: auto;
  padding: 7px;
  align-items: stretch;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: 16px;
  background: rgba(11, 58, 67, 0.56);
  box-shadow: inset 0 7px 18px rgba(0, 0, 0, 0.22);
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--bronze) rgba(255, 255, 255, 0.18);
}

.tour-bag-empty {
  margin: auto;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 250, 243, 0.9);
  color: var(--petrol-dark);
  font-size: 0.8rem;
  font-weight: 900;
  text-align: center;
}

.tour-bag-document {
  display: grid;
  flex: 0 0 clamp(106px, 32%, 170px);
  min-width: 0;
  padding: 5px;
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 10px;
  background: var(--white);
  color: var(--petrol-dark);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.24);
  grid-template-rows: minmax(0, 1fr) auto;
  scroll-snap-align: start;
}

.tour-bag-document img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 6px;
  object-fit: contain;
}

.tour-bag-document span {
  overflow: hidden;
  padding: 3px 1px 0;
  font-size: clamp(0.58rem, 1.5vw, 0.78rem);
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tour-bag-document:focus-visible {
  outline: 4px solid var(--bronze);
  outline-offset: -4px;
}

.tour-bag-document-viewer {
  z-index: 1100;
}

.tour-bag-document-viewer figure {
  display: grid;
  width: min(96vw, 1100px);
  height: min(92dvh, 900px);
  margin: 0;
  padding: 12px;
  border-radius: 20px;
  background: var(--white);
  grid-template-rows: minmax(0, 1fr) auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.58);
}

.tour-bag-document-viewer figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  touch-action: none;
  border-radius: 12px;
  object-fit: contain;
  cursor: zoom-in;
}

.tour-bag-document-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  padding: 10px 8px 2px;
}

.tour-bag-document-footer figcaption {
  flex: 1 1 100%;
  color: var(--petrol-dark);
  font-weight: 900;
  text-align: center;
}

.tour-bag-document-share {
  flex: 0 0 auto;
  padding: 8px 18px;
  font-size: 0.85rem;
}

.tour-bag-document-share[hidden] {
  display: none;
}

.tour-bag-document-share-status {
  flex: 1 1 100%;
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
}

.tour-bag-document-share-status:empty {
  display: none;
}

@media (max-width: 520px) {
  .demo-tour-progress-header.has-tour-apps {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .demo-tour-progress-header.has-tour-apps .demo-tour-progress-text {
    grid-column: 1;
  }

  .tour-app-launchers {
    grid-column: 2;
    gap: 8px;
  }

  .tour-app-launcher {
    width: 68px;
    height: 68px;
    border-radius: 17px;
  }

  .tour-bag-overlay {
    padding: 6px;
  }

  .tour-bag-panel {
    width: 100%;
    padding: 7px;
    border-radius: 18px;
  }

  .tour-bag-close {
    top: 10px;
    right: 10px;
  }

  .tour-bag-document-tray {
    right: 14%;
    bottom: 16%;
    left: 14%;
    height: 25%;
    padding: 5px;
  }

  .tour-bag-document {
    flex-basis: 46%;
  }
}

/* Simulierter Telefonanruf -------------------------------------------------
 * Der Anrufbildschirm liegt bewusst über allem und übernimmt den ganzen
 * Bildschirm, damit er im ersten Moment wie ein echter Anruf wirkt.
 */

.tour-call-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  background: radial-gradient(120% 90% at 50% 0%, #2c4a52 0%, #0d1a1d 60%, #060d0f 100%);
  color: var(--white);
}

.tour-call-overlay[hidden] {
  display: none;
}

.tour-call-screen {
  display: flex;
  width: min(100vw, 520px);
  height: 100%;
  max-height: 100dvh;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(28px, 8vh, 72px) 24px clamp(24px, 6vh, 56px);
  gap: 10px;
  text-align: center;
}

.tour-call-status {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tour-call-avatar {
  display: grid;
  overflow: hidden;
  width: clamp(104px, 26vw, 148px);
  height: clamp(104px, 26vw, 148px);
  margin-top: clamp(12px, 4vh, 32px);
  border: 3px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  place-items: center;
}

.tour-call-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tour-call-initials {
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 700;
  line-height: 1;
}

.tour-call-name {
  margin: clamp(14px, 3vh, 26px) 0 0;
  font-size: clamp(1.7rem, 7vw, 2.3rem);
  font-weight: 600;
  line-height: 1.15;
}

.tour-call-subline,
.tour-call-timer,
.tour-call-note {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.75);
}

.tour-call-subline[hidden],
.tour-call-timer[hidden],
.tour-call-note[hidden],
.tour-call-skip[hidden] {
  display: none;
}

.tour-call-timer {
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.tour-call-note {
  max-width: 34ch;
  color: #ffd9c2;
}

.tour-call-actions {
  display: flex;
  width: 100%;
  margin-top: auto;
  gap: clamp(24px, 12vw, 72px);
  justify-content: center;
}

.tour-call-button {
  display: flex;
  width: auto;
  flex-direction: column;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  cursor: pointer;
  font: inherit;
  gap: 10px;
}

.tour-call-button[hidden] {
  display: none;
}

.tour-call-button-icon {
  display: grid;
  width: clamp(68px, 19vw, 82px);
  height: clamp(68px, 19vw, 82px);
  border-radius: 999px;
  font-size: clamp(1.9rem, 7vw, 2.3rem);
  line-height: 1;
  place-items: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.tour-call-button-label {
  font-size: 0.95rem;
}

.tour-call-button--accept .tour-call-button-icon {
  background: #2fb457;
  animation: tour-call-pulse 1.6s ease-in-out infinite;
}

.tour-call-button--decline .tour-call-button-icon,
.tour-call-button--hangup .tour-call-button-icon {
  background: #d7413f;
}

.tour-call-button--hangup .tour-call-button-icon {
  transform: rotate(135deg);
}

.tour-call-button:focus-visible .tour-call-button-icon {
  outline: 3px solid var(--white);
  outline-offset: 4px;
}

.tour-call-skip {
  margin-top: 18px;
}

@keyframes tour-call-pulse {
  0%,
  100% {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(47, 180, 87, 0.55);
  }
  50% {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 0 18px rgba(47, 180, 87, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour-call-button--accept .tour-call-button-icon {
    animation: none;
  }
}

/* Verpasster Anruf und Wiederholung in der Station */

.tour-missed-call,
.tour-call-replay {
  margin-top: 18px;
  padding: 16px 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.tour-missed-call {
  border-color: #d7413f;
  background: #fff4f2;
}

.tour-missed-call-title {
  margin: 0 0 6px;
  color: #a5302e;
  font-size: 1.05rem;
}

.tour-missed-call p {
  margin: 0 0 12px;
}
