
:root{
  --primary: #00b0f0;
  --secondary: #00c8c8;
  --third: #0e54cc;
  --text: #1a1a2e;
  --altText: black;
  --accent: #ff993b;
}


* {
  font-family: "klavika-web", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#wrapper{
  position: absolute;
  width: 100vw;
}

#stoneman-map{

  -webkit-box-shadow: 10px 10px 15px -12px rgba(0,0,0,0.75);
  -moz-box-shadow: 10px 10px 15px -12px rgba(0,0,0,0.75);
  box-shadow: 10px 10px 15px -12px rgba(0,0,0,0.75);

  height: 700px;
  border-radius: 12px;
}

#stoneman-map-wrapper.hasWizzard #stoneman-map{

  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}

#stoneman-map-wrapper.hasWizzard #chartContainer {
  visibility: hidden;
}




#difficultySelect{
  display: flex;
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 2px;
}

#difficultySelect small {
  color: #aaa;
}

#difficultySelect > div {
  width: 20%;
  max-width: 350px;
  flex-shrink: 1;
  text-align: center;
}

.difficultyBtn{
  display: block;
  cursor: pointer;
  line-height: 40px;
  font-size: larger;
  margin: 10px 20px 0 20px;
  padding: 5px;
}




#difficultyPanel{
  width: 65%;
  margin-left: 17.5%;
  height: 300px;
  position: absolute;
  margin-top: -5px;
  background-color: red;
  border-radius: 2px;
  z-index: 20;

  display: none;
}



body, html {
  padding: 0;
  margin: 0;
}

.marker-checkpoint {
  background: var(--primary);
}
.marker-checkpoint .circle-inner {
  background: var(--primary);
}
span.title {
  color: var(--primary);
}
.marker-checkpoint {
  width: 15px;
  height: 15px;
  border-radius: 20px;
}
.marker-checkpoint .circle-outer {
  border-radius: 20px;
  background: #fff;
  width: 11px;
  height: 11px;
  margin-left: 2px;
  margin-top: 2px;
  position: relative;
}

.marker-checkpoint .circle-inner {
  position: absolute;
  border-radius: 20px;
  width: 3px;
  height: 3px;
  left: 4px;
  top: 4px;
}
#stoneman-map span.title {
  text-shadow: 1px 1px 0 #ffffff, -1px 1px 0 #ffffff, -1px -1px 0 #ffffff, 1px -1px 0 #ffffff;
  font-weight: bold;
  width: 800px;
  position: absolute;
  left: -394px;
  top: -18px;
  text-align: center;
}

#test{
  background-color: hsl(49, 84%, 54%);
}


h4{
  margin: 0;
  padding: 0;
}


#suggestionWrapper{
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
}

.suggestionPanel{
  width: 20%;
  height: 42px;
  padding: 2px 10px;
  margin: 2px;
  background-color: rgb(190, 190, 190);
  text-align: center;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.suggestionPanel h3 {
  line-height: 100%;
  width: 100%;
  font-weight: bold;
}


#suggestionDetail {
  height: 250px;
  width: 100%;


}



.suggestionsField {
  height: fit-content;
  padding-bottom: 30px;
  padding-top: 25px;

  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  align-content: center;
  gap: 10px;
  display: none;
}

.suggestionsField .btn:hover {
  background: #ddd;
  color: #3e3e3f;
  border: none;
}

.suggestionsField .btn h4 {
  color: #333 !important;
}

#buttons-lower-left{
  position: absolute;
  right: 45px;
  top: 0px;
  z-index: 1000;
  display: flex;
  flex-direction: row;
  justify-content: left;
  align-items: center;
  width: 150px;
  height: 60px;
}

.iconButtonWrapper {
  width: 40px;
  aspect-ratio: 1;
  margin: 5px;
  background-color: white;
  box-shadow: 0 0 10px 0 rgba(0,0,0,0.3);
  cursor: pointer;
  border-radius: 50%;
  position: relative;
}

.iconButtonWrapper.active {
  background-color: #f7931d;
  color: white;
}



.iconButtonWrapper:hover {
 /* cursor: pointer;*/
}

#buttons-lower-left i {
  font-size: 1.5em;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

#map-style-lower-left {
  width: 60px;
  aspect-ratio: 1;

  position: absolute;
  left: 20px;
  bottom: 20px;

  z-index: 1000;

  border-radius: 8px;
  background-color: #333333;


  display: flex;
  flex-direction: column;
  justify-content: left;
  align-items: center;
  cursor: pointer;
}

#map-style-lower-left i {
  font-size: 2em;
  color: var(--text);
  margin: 0;
}

#map-style-lower-left p {
  width: 100%;
  text-align: center;
  color: var(--text);
  font-weight: bold;
  margin-top: 5px;
  margin-bottom: 5px;
}

#map-styleExpand-lower-left{
  width: fit-content;
  height: 60px;
  border-radius: 8px;

  position: absolute;
  left: 20px;
  bottom: 20px;

  background-color: #33333380;
  z-index: 1000;

  cursor: pointer;
  display: none;
  gap: 5px
}

.layerElement{
  width: 60px;
  aspect-ratio: 1;
  margin: 0;

  border-radius: 8px;
  background-color: #333333;


  display: flex;
  flex-direction: column;
  justify-content: left;
  align-items: center;
  cursor: pointer;
}

.layerElement p {
  width: 100%;
  text-align: center;
  color: var(--text);
  font-weight: bold;
  margin-top: 5px;
  margin-bottom: 5px;
}

.layerElement i {
  font-size: 2em;
  color: var(--text);
  margin: 0;
}

.suggestionsField button{
  min-height: 40px;
}

.suggestionPanel i {
  justify-self: end;
}

.DISPLAY-FLEX {
  display: flex;
}

.DISPLAY-NONE {
  display: none;
}

.DISPLAY-BLOCK {
  display: block;
}


button.btn span {
  font-size: small;
  margin: 8px;
  border-radius: 5px;
}

#suggestionField-gold-wrapper button.btn span {
  background: #deb408;
}

#suggestionField-silver-wrapper button.btn span {
  background: #6a737b;
}

#suggestionField-bronze-wrapper button.btn span {
  background: #c88a12;
}

.segmentInfo .span-to-lp {
  display: none !important;
}

.segmentInfo.is-lp .span-to-lp{
  display: inline-block !important;
}

.segmentInfo.is-lp .span-to-location{
  display: none;
}

#segmentTable {
  width: 100%;
  margin: auto;
  font-size: 16px;
}


#back-2 {
  display: none;
}

.add-lp-button {
  position: absolute;
  right: 5px;
  bottom: 5px;
  border-radius: 5px;
}

/* =========================================================
     TOUR OVERLAY (Light Mode) – Kopiere ab hier in dein Projekt-CSS
     ========================================================= */
#segmentTableWrapper {
  position: absolute;
  padding: 10px;
  top: 12px;
  left: 12px;
  z-index: 10;
  width: 25%;
  min-width: 320px;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  color: #1e293b;
  font-family: 'DM Sans', sans-serif;
  box-shadow:
          0 8px 32px rgba(0, 0, 0, 0.12),
          0 1px 0 rgba(255, 255, 255, 0.6) inset;
  overflow: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

#segmentTableWrapper:hover {
  box-shadow:
          0 12px 40px rgba(0, 0, 0, 0.16),
          0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

/* Header */
#segmentTableWrapper .tour-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 10px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#segmentTableWrapper .tour-header .tour-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

#segmentTableWrapper .tour-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f172a;
}

#segmentTableWrapper .tour-header .tour-summary {
  margin: 0;
  font-size: 11.5px;
  color: #777;
  font-weight: 400;
}

/* Day cards */
.tour-days {
  padding: 6px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.day-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  overflow: hidden;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.day-card:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

.day-card.active {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.05);
}

/* Day header row */
.day-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  user-select: none;
}

.day-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}

.day-card:nth-child(1) .day-badge { background: var(--bg-primary); }
.day-card:nth-child(2) .day-badge { background: var(--bg-secondary); }
.day-card:nth-child(3) .day-badge { background: var(--bg-third); }

.day-meta {
  flex: 1;
  min-width: 0;
}

.day-meta .day-label {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.2;
}

.day-meta .day-km {
  font-size: 11px;
  color: #777;
  font-weight: 400;
}

.day-chevron {
  font-size: 10px;
  color: #cbd5e1;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.day-card.open .day-chevron {
  transform: rotate(180deg);
}

/* Day details */
.day-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.day-card.open .day-details {
  max-height: 260px;
}

.day-details-inner {
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Stat row */
.stat-row {
  display: flex;
  gap: 6px;
}

.stat-item {
  flex: 1;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
}

.stat-item .stat-icon {
  font-size: 10px;
  margin-bottom: 3px;
  display: block;
}

.stat-item .stat-icon.up   { color: #16a34a; }
.stat-item .stat-icon.down { color: #dc2626; }
.stat-item .stat-icon.dist { color: #2563eb; }

.stat-item .stat-value {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.stat-item .stat-unit {
  font-size: 10px;
  color: #777;
  font-weight: 400;
}

/* Sub-segments */
.sub-segments {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sub-segment {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  background: #f8fafc;
  border-radius: 6px;
  font-size: 11px;
  color: #64748b;
}

.sub-segment .sub-label {
  flex: 1;
  overflow: hidden;
}

.sub-segment .sub-stat {
  white-space: nowrap;
  font-weight: 500;
  color: #475569;
}

/* Responsive */
@media (max-width: 480px) {
  #segmentTableWrapper {
    width: calc(100vw - 24px);
    top: 8px;
    left: 8px;
    border-radius: 12px;
  }
}