/* Minimalistisches, mobiles Design */
:root { --pad: 16px; --radius: 16px; }
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; }
  body { background:#0b0b0c; color:#eaeaea; }
}
* { box-sizing: border-box; }
body { margin:0; font:16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color:var(--text); }

.titelbild {
	background: url('/roadtrip/assets/img/Roadtrip25-Titelbild_lq.jpg') right / cover no-repeat;
	height: 33vw;
	padding: 40px;
}


/* Container: nebeneinander + Umbruch + Abstand */
.titelbild ul {
  list-style: none;        /* Punkte aus */
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;         /* Zeilenumbruch bei Bedarf */
  gap: .5rem;              /* Abstand zwischen Kästchen */
}

/* Einzelne Kästchen */
.titelbild ul > li {
  display: inline-flex;    /* für vertikale Zentrierung */
  align-items: center;
  padding: .2rem .3rem;
  border: 1px solid #d0d5dd;
  border-radius: .3rem;
  background: rgba(254,182,75, 0.4);
  box-shadow: 0 1px 0 rgba(16,24,40,.04);
  font: 12px/1.2 system-ui, sans-serif;
  color: #111827;
}

/* Optional: Hover-Effekt */
.titelbild ul li:hover {
  border-color: #b9bec7;
  box-shadow: 0 2px 6px rgba(16,24,40,.08);
}

/* Wenn du Links in den li hast */
.titelbild ul > li > a {
  color: inherit;
  text-decoration: none;
}
.titelbild ul > li > a:hover {
  text-decoration: underline;
}

@media all and (orientation:portrait) {
	.titelbild {
	  background: url('/roadtrip/assets/img/Roadtrip25-Titelbild-mobile_lq.jpg') top / cover no-repeat;
	  padding: 10px;
	  height: auto;
	}
	.titelbild h1 {
		font-size: 1em;
		line-height: 1em;
		margin-bottom: 10vh;
	}
	.titelbild h1, .titelbild p {
		text-shadow: 0 1px 2px rgba(255,255,255,0.6);
	}
}


/*Live-Tracker-Karte im iFrame -----------------------------------------------------------------------------------------*/
.iframe-wrap{
  position:relative;
  width:100%;
  height:70vh;
  overflow:hidden;
  border-radius:12px;
  box-shadow:0 6px 24px rgba(0,0,0,.08);
}
/* Höhe der entfernten Kopfzeile anpassen */
:root { --crop-top: 40px; }

.iframe-wrap iframe{
  position:absolute;
  top:calc(-1 * var(--crop-top));
  left:0;
  width:100%;
  height:calc(100% + var(--crop-top));
  border:0;
}

/* blockt Klicks auf den (unsichtbaren) Kopfbereich */
.iframe-wrap .click-block{
  position:absolute; inset:0 auto auto 0;
  height:var(--crop-top); width:100%;
  pointer-events:auto; /* blockt Buttons im Header */
}

/*Navigation: Strecke mit Auto und Zielen -------------------------------------------------------------------------------------------------------*/
:root{
    --line:#cbd5e1; --active:#0ea5e9; --text:#0f172a; --muted:#64748b;
  }
  
  /* Sticky Top */
  .trip-nav{ position: sticky; top:0; z-index:50; background:#fff; border-bottom:1px solid #e5e7eb; padding:10px min(5vw,24px) 18px; }
  .trip-track{
	  position:relative;
	  margin:0 auto;
	  max-width:90vw;
  }
  .track-line{ height:4px; background:var(--line); border-radius:999px; position:relative; }
  /* Scrollbare Stops */
  .track-scroll{
    width:100%;
	position: relative;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .track-scroll::-webkit-scrollbar{ display:none; }
  .track-stops{
    display:flex; gap:12px; padding:10px 12px;
    flex-wrap:nowrap;           /* wichtig: keine Zeilenumbrüche */
    width:max-content;          /* macht die Leiste so breit wie nötig */
  }
  .stop{
    position:relative; text-align:center; flex:0 0 auto;
    min-width:64px; padding:0 4px; cursor:pointer; scroll-snap-align:center;
    background:none; border:0;
  }
  .stop-dot{
    width:12px; height:12px; border-radius:999px; background:var(--line);
    border:2px solid #fff; box-shadow:0 0 0 2px var(--line);
    position:absolute; top:-18px; left:50%; transform:translateX(-50%);
    transition:background .2s;
  }
  .stop.active .stop-dot{ background:var(--active); box-shadow:0 0 0 2px var(--active); }
  .stop-name{ font-size:12px; color:var(--muted); white-space:nowrap; }
  .stop.active .stop-name{ color:var(--active); font-weight:700; }
  /* Auto fix mittig */
  .car{
    position:absolute; top:-18px; left:50%; transform: translateX(-50%); font-size:20px; line-height:1;
    pointer-events:none; z-index:2;
  }
  /* Unsichtbare Platzhalter am Anfang/Ende der Leiste */
  .stop.spacer {
    pointer-events: none;
    visibility: hidden;        /* nimmt Platz ein, ist aber unsichtbar */
    padding: 0;                /* keine Dot/Label-Höhe */
    min-width: 0;              /* Breite steuern wir per JS */
    flex:0 0 0px;
  }
  /* Demo-Content */
/*
  section{ min-height:85vh; padding:24px min(5vw,24px); display:grid; align-content:center; gap:10px; border-bottom:1px dashed #e5e7eb; }
  section h2{ margin:0 0 6px; }
*/
  html{ scroll-behavior:smooth; }

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

/*Container deren Inhalt extra gescrollt wird ... ---------------------------------------------------------------------------------------------------*/
/* Vollbild-Container */
.vp-section {
  min-height:85vh;
  padding:24px min(5vw,24px);
  padding-top: 0;
  display:grid;
  /*align-content:center;*/
  gap:10px;
  border-bottom:1px dashed #e5e7eb;
  position: relative;
  block-size: 100svh;          /* sicher gegen Mobile-URL-Bar */
  overflow: hidden;            /* Hintergrund bleibt fix im Container */
  isolation: isolate;          /* Layering sauber */
}
.strecken-section {
  background-color: #6a6c69;
  min-height: 50vh;
  max-height: 50vh;
}
.vp-content h1{
	margin:0;
	font-size: 1.2em;
}
.vp-section h2{ margin:0 0 6px; }

/* Hintergrundbild */
.vp-bg {
  position: absolute;
  inset: 0;
  background-position:  center;
  background-size: cover;
  background--repeat: no-repeat;
  z-index: 0;
  will-change: transform;
}

.strecken-section .vp-bg {
	background-position: left;
	background-size: contain;
	background-repeat: no-repeat;
	height: 50vh;
}

/* Der interne Scrollbereich */
.vp-scroll {
  position: relative;
  z-index: 1;
  block-size: 100%;
  overflow: auto;              /* <— Scrollt zuerst intern */
  overscroll-behavior: auto;   /* Scroll-Chaining erlauben, wenn Ende erreicht */
  -webkit-overflow-scrolling: touch; /* smooth auf iOS */
  padding: 0 1rem 4rem 1rem;          /* Abstand für Inhalt */
  color: white;
  overflow-y: scroll; /* wichtig, damit der Scroll funktioniert */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge Legacy */
}
.vp-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

/* Optional: Lesbarkeit über Bild verbessern */
.vp-section::after {
  content: "";
  position: absolute;
  inset: 0;
  /*background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.35));*/
  z-index: 0;
}
.vp-content {
  max-inline-size: 60ch;
  margin-inline: auto;
  background-color: rgba(0,0,0,0.7);
  color: white;
  padding: 20px;
  margin: 0 0 0 20vw;
}

.strecken-section .vp-content {
  max-inline-size: 80vw;
  margin-top: 20px;
}
.strecken-section .vp-section {
	padding-top: 24px;
}

/* Nachfolgende Sektion – ganz normal */
.page-section {
  padding: 4rem 1rem;
  max-inline-size: 70ch;
  margin-inline: auto;
}

.step-bg {
  inset: 0;
  z-index: 0;
  will-change: transform;
}

@media all and (orientation:portrait) {





/* Vollbild-Container */
.vp-section {
  min-height:85vh;
  padding: 0;
  display:grid;
  /*align-content:center;*/
  gap:10px;
  border-bottom:1px dashed #e5e7eb;
  position: relative;
  block-size: 100svh;          /* sicher gegen Mobile-URL-Bar */
  overflow: hidden;            /* Hintergrund bleibt fix im Container */
  isolation: auto;          /* Layering sauber */
}
.strecken-section {
  background-color: #6a6c69;
  min-height: 50vh;
  max-height: 100vh;
}
.vp-content h1{ margin:0; }
.vp-section h2{ margin:0 0 6px; }

/* Hintergrundbild */
.vp-bg {
  position: absolute;
  inset: 0;
  background-position:  center;
  background-size: cover;
  background--repeat: no-repeat;
  z-index: 0;
  will-change: transform;
}

.strecken-section .vp-bg {
	background-position: left;
	background-size: contain;
	background-repeat: no-repeat;
	height: 50vh;
}

/* Der interne Scrollbereich */
.vp-scroll {
  position: relative;
  z-index: 1;
  block-size: auto;
  overflow: auto;              /* <— Scrollt zuerst intern */
  overscroll-behavior: auto;   /* Scroll-Chaining erlauben, wenn Ende erreicht */
  -webkit-overflow-scrolling: touch; /* smooth auf iOS */
  padding: 0;          /* Abstand für Inhalt */
  color: white;
  overflow-y: scroll; /* wichtig, damit der Scroll funktioniert */
  scrollbar-width: auto; /* Firefox */
  -ms-overflow-style: auto; /* IE/Edge Legacy */
}
.vp-scroll::-webkit-scrollbar {
  display: auto; /* Chrome, Safari */
}

/* Optional: Lesbarkeit über Bild verbessern */
.vp-section::after {
  content: "";
  position: absolute;
  inset: 0;
  /*background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.35));*/
  z-index: 0;
}
.vp-content {
  /*max-inline-size: 60ch;*/
  margin-inline: auto;
  background-color: rgba(0,0,0,0.7);
  color: white;
  padding: 20px;
  max-inline-size: 90vw;
  margin: 0;
}

/* Nachfolgende Sektion – ganz normal */
.page-section {
  padding: 0;
  max-inline-size: auto;
  margin-inline: auto;
}

.step-bg {
  inset: 0;
  z-index: 0;
  will-change: transform;
}















	.vp-section {
		block-size: auto;
		padding: 0
		isolation: auto;
		min-height: 45vh;
	}
	.strecken-section {
		max-height: 70vh;
	}
	.vp-bg {
		background-size: contain;
		background-repeat: no-repeat;
		background-position: top;
	}
	.strecken-section .vp-bg {
		background-position: top;
		background-size: contain;
		background-repeat: no-repeat;
		height: 50vh;
	}
	.vp-scroll{
		margin-top: 25vh;
		padding: 0;
	}
	.strecken-section .vp-scroll{
		margin-top: 35vh;
	}
	.strecken-section .vp-content {
	  /*max-inline-size: 60ch;*/
	  margin-inline: auto;
	  padding: 10px;
	  max-inline-size: 100vw;
	  margin: 0;
	}
	.vp-content {
	 max-inline-size: none;
	  margin: 0;
	}
}
/*vorlesen -------------------------------------------------------------------------------------*/
.vp-section .toolbar {
	right: 40px;
	color: gray;
	font-weight: bold;
	margin: 2px;
	padding: 4px;
	padding-top: 20px;
	z-index: 5;
}

/*slideshow -------------------------------------------------------------------------------------*/
.background-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.diashow-controller {
	right: 40px;
	background-color: rgba(255,255,255,0.8);
	color: gray;
	font-weight: bold;
	/*margin: 10px;*/
	padding: 6px;
	/*padding-top: 20px;*/
	z-index: 5;
}
.diashow-controller button {
  z-index: 6;
  display: inline-flex;    /* für vertikale Zentrierung */
  align-items: center;
  padding: .2rem .3rem;
  border: 1px solid #d0d5dd;
  border-radius: .3rem;
  background: rgba(254,182,75, 0.4);
  box-shadow: 0 1px 0 rgba(16,24,40,.04);
  font: 12px/1.2 system-ui, sans-serif;
  color: #111827;
}
.diashow-controller button:hover {
  border-color: #b9bec7;
  box-shadow: 0 2px 6px rgba(16,24,40,.08);
}

.diashow-controller .prev {
  /*left: 10px;*/
}
.diashow-controller .next {
  /*right: 10px;*/
}
.diashow-controller .speed-slider {
  /*position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);*/
  z-index: 6;
}
.diashow-controller .speed-display {
  /*position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);*/
  z-index: 6;
}
.diashow-controller .start-slideshow {
	left: 60px;
}
.diashow-controller .stop-slideshow {
	left: 160px;
}
/*toggle-Container -------------------------------------------------------------------------------------*/
  .section { margin: 1rem 0; }

  .panel {
    max-width: 700px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
  }
  .panel__title { margin: 0 0 8px; font-size: 1.25rem; }
  .panel__toggle { margin: 0 0 12px; display:inline-flex; gap:.5rem; align-items:center; }

  .panel__content {
    overflow: hidden;
    max-height: 0;                    /* zugeklappt */
    transition: max-height .28s ease; /* Animation */
  }

  /* Button-Text je Zustand (ohne JS-Textwechsel) */
  .panel__toggle .when-closed { display: none; }
  .panel__toggle[aria-expanded="false"] .when-open { display: none; }
  .panel__toggle[aria-expanded="false"] .when-closed { display: inline; }

  @media (prefers-reduced-motion: reduce) {
    .panel__content { transition: none; }
  }
.only4mobile {
	display: none;
}
@media (orientation: portrait) {
	.only4mobile {
	  display: block;
	  color: red;
	}
}

