* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --orange: #C26E4B;  /* Hintergrund Website */
  --blue:   #51657E;  /* Hintergrund Weltkarte */
  --beige:   #F2DFC1;  /* Hintergrund Postkarten */
}

body {
  display: grid;
  grid-template-rows: 15vh 1fr 5vh;
  height: 100vh;
  background: var(--orange);
  font-family: 'Rubik', sans-serif;
    overflow: hidden;
}

header {
  display: flex; 
  align-items: center;
  padding: 0rem 3rem;
  height: 100%;
 }

 h1 {
  color: #ffffff;
  font-size: clamp(1.8rem, 5vw, 5rem);
  font-weight: 700;
}

main {
  height: 100%;
  margin-left: 5rem;
}

/* Container Weltkarte */
.worldMapContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  border-top-left-radius: 30px;
  height: 100%;
   }

/* SVG-Karte */
#WorldMapwithPins {
  object-fit: contain;
  height: 90%;
  width: 100%;
 }

 footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: var(--blue);
  padding-right: 3rem;
  margin-left: 5rem;
  height: 100%;
 }

 footer p {
  color: grey; 
 }

#Pin_Vancouver, #Pin_Bern, #Pin_Melbourne, #Pin_Shanghai, #Pin_Cairo, #Pin_RiodeJaneiro {
    cursor: pointer;
}

/*PopUp Vorder- und Rückseite Postkarte*/
dialog {
    position: absolute;
    width: 80vw;
    height: 90vh;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--orange);
    border: none;
}

.postcard-container {
  display: flex;
  position: relative;
  align-items: center;      
  justify-content: center;  
  gap: 15px;               
  width: 100%;
  height: 100%;
  background: var(--orange);     
  padding: 52px 32px 32px;
}

.postcard-front {
  display: grid;
  place-items: center;
}

.postcard-front img {
  display: block;
  height: min(64vh, 520px);
  width: auto;
}

.postcard-back {
  background: var(--beige);
  width: min(420px, 40%);
  height: min(64vh, 520px);
}

#btn-close {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  background: none;          
  border: none;             
  color: var(--beige);          
  font-weight: 700;
  font-size: 30px;         
  cursor: pointer;
  line-height: 1;
  padding: 0;
  user-select: none;
  text-shadow: none;
}

#btn-close:hover {
  opacity: 0.8;
  transform: scale(1.05);
  transition: all 0.15s ease;
}

#btn-info {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 25px;
  background: var(--beige);
  color: var(--orange);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
#btn-info:hover {
  filter: brightness(0.95);
  transform: scale(1.05);
  transition: all 0.15s ease;
}

.info-overlay {
  position: absolute;
  top: 48px;
  left: 48px;
  width: 420px;
  min-height: 520px;
  max-height: calc(90vh - 96px);
  background: var(--beige);
  border: 2px solid #000;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  padding: 16px 16px 24px 16px;
  box-sizing: border-box;
  font-family: 'Josefin Sans', sans-serif;
  color: #000;
  font-size: 0.8rem;
  line-height: 1.4;
  overflow-y: auto;
  scrollbar-width: thin;
  display: none;
  z-index: 100;
}

.info-overlay::-webkit-scrollbar {
  width: 6px;
}

.info-overlay::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.3);
  border-radius: 3px;
}

.info-close {
  position: absolute;
  top: 8px;
  left: 16px;
  background: none;
  border: none;
  color: #000;
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.info-scroll {
  margin-top: 40px;
  padding-right: 8px;
}

.info-scroll strong {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  font-family: 'Josefin Sans', sans-serif;
  color: #000;
}

.info-scroll p {
  margin: 0 0 1rem 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #000;
}

/* ========== DATEPICKER & STAMPS STYLES ========== */

/* Datepicker Container */
.datepicker-container {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.date-input, .time-input {
    padding: 6px 8px;
    border: 2px solid #333;
    border-radius: 5px;
    background-color: #fff;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 13px;
    cursor: pointer;
}

.time-input {
    min-width: 100px;
}

/* Briefmarken Grid */
.stamps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 60px 20px 20px;
    height: 100%;
    overflow-y: auto;
}

/* Einzelne Briefmarke */
.stamp {
    position: relative;
    aspect-ratio: 1;
    border: 3px solid #333;
    border-radius: 8px;
    padding: 12px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stamp:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.stamp-name {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
    color: #333;
    line-height: 1.2;
}

.stamp-value {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 4px 0;
}

.stamp-unit {
    font-size: 10px;
    color: #666;
    font-family: 'Josefin Sans', sans-serif;
}

/* Hover Tooltip */
.stamp-tooltip {
    position: absolute;
    bottom: 105%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--beige);
    padding: 10px 12px;
    border-radius: 6px;
    border: 2px solid #333;
    min-width: 180px;
    max-width: 250px;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    pointer-events: none;
}

.stamp:hover .stamp-tooltip {
    display: block;
}

.stamp-tooltip p {
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
    color: #000;
    font-family: 'Josefin Sans', sans-serif;
}

.stamp-tooltip strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
}

/* Loading State */
.stamps-grid.loading {
    display: flex;
    align-items: center;
    justify-content: center;
}


