/* ============================================================
   VISITENKARTE.CSS – FULLY RESPONSIVE
   Optimiert für iPhone 15 als Referenz, skaliert auf alle Geräte
   ============================================================ */

   *, *::before, *::after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
  }
  
  html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: black;
  }
  
  /* ─── HINTERGRUND ────────────────────────────────────────── */
  
  #bg {
    position: relative;
    width: 100%;
    height: 100%;
    background-image: url('Arthur/visitenkarte1.webp');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    background-color: black;
    overflow: hidden;
  }
  
  /* Auf Mobile: cover damit es den ganzen Screen füllt */
  @media (max-width: 600px) {
    #bg {
      background-size: cover;
      background-position: center top;
    }
  }

  /* Auf Desktop: eigenes Hintergrundbild */
  @media (min-width: 601px) {
    #bg {
      background-image: url('Arthur/bgDesktop.webp');
      background-size: cover;
      background-position: center center;
    }
  }
  
  /* ─── CARD (unsichtbarer Anker) ──────────────────────────── */
  
  .card {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  
  /* ─── PUNKTE ANZEIGE ─────────────────────────────────────── */
  


  /* ─── BEWERTUNGS-BUTTON (unsichtbar über Karte) ──────────── */
  
  #rateBtn {
    position: absolute;
    top: 15%;
    right: 10%;
    height: 18%;
    width: 35%;
    border: none;
    background-color: transparent;
    cursor: pointer;
    pointer-events: all;
    z-index: 20;
  }
  
  /* ─── UNSICHTBARER MITTE-BUTTON ──────────────────────────── */
  
  #invisibleButton {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20%;
    height: 12%;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 20;
  }
  
  /* ─── AUTH BUTTON ────────────────────────────────────────── */
  
  #authButtonContainer {
    position: absolute;
    bottom: 3%;
    right: 3%;
    z-index: 30;
  }
  
  #authButton {
    background-color: white;
    font-size: clamp(0.7rem, 2vw, 1rem);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    cursor: pointer;
  }
  
  /* ─── POPUP (Bewertung) ──────────────────────────────────── */
  
  #popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
  }
  
  #popup.show { display: flex; }
  
  /* ─── STARS ──────────────────────────────────────────────── */
  
  #stars {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .star {
    font-size: clamp(1.8em, 7vw, 2.8em);
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    display: inline-block;
    color: rgba(255,255,255,0.35);
    /* Echte Sterne über Font Awesome */
  }
  
  .star:hover,
  .star.hovered {
    transform: scale(1.2);
    color: goldenrod;
  }
  
  .star.selected {
    color: goldenrod;
    transform: scale(1.1);
  }
  
  /* Sterne nebeneinander */
  #stars > .star {
    position: static;
  }
  
  /* Alle Sterne in einer Reihe */
  .stars-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
  }
  
  #selectedRating {
    font-size: clamp(16px, 4vw, 22px);
    color: white;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  }
  
  #comment {
    width: 100%;
    padding: 10px 14px;
    background-color: white;
    border: 1px solid goldenrod;
    border-radius: 10px;
    color: black;
    font-size: clamp(13px, 3vw, 15px);
    resize: none;
    min-height: 70px;
  }
  
  #submitRating {
    width: 100%;
    padding: 10px 20px;
    background-color: goldenrod;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: clamp(13px, 3vw, 15px);
    transition: background-color 0.2s;
  }
  
  #submitRating:hover { background-color: #b8860b; }
  
  /* ─── EMOJI ──────────────────────────────────────────────── */
  
  #emoji {
    font-size: clamp(2em, 8vw, 3em);
    display: none;
  }
  
  .show-emoji {
    display: block;
    animation: bounce 1s infinite;
  }
  
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40%  { transform: translateY(-20px); }
    60%  { transform: translateY(-10px); }
  }
  
  /* ─── SOCIAL MEDIA ───────────────────────────────────────── */
  
  .social-media {
    position: absolute;
    top: 48%;
    left: 55%;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 40;
  }
  
  .social-media.show {
    pointer-events: auto;
  }
  
  .social-media a {
    position: absolute;
    width: clamp(36px, 9vw, 48px);
    height: clamp(36px, 9vw, 48px);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(16px, 4vw, 22px);
    color: white;
    background-color: rgba(30, 30, 30, 0.85);
    border-radius: 50%;
    text-decoration: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, background-color 0.2s ease;
    opacity: 0;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  }
  
  .social-media.show a {
    opacity: 1;
  }
  
  /* Gold aufleuchten beim Klick/Active */
  .social-media a:active,
  .social-media a.active {
    background-color: goldenrod;
    transition: background-color 0s;
  }
  
  .social-media a:hover {
    background-color: rgba(60, 60, 60, 0.9);
  }
  
  /* ─── SOCIAL ICONS: DESKTOP (>= 601px) ──────────────────── */
  /*
   * Bild ist Hochformat (~9:16). Bei background-size:contain auf Querformat-Screen:
   * Bildbreite = 100vh * (9/16) ≈ 56.25vh
   * Bildmitte = 50% horizontal
   * Rechter Bildrand ≈ calc(50% + 28vh)
   * Alle Buttons relativ zur Bildmitte mit left statt right
   */
  
  @media (min-width: 601px) {
    #rateBtn {
      top: 14%;
      left: calc(50% + 3vh);
      right: auto;
      height: 16%;
      width: 22vh;
      border: none;
      background-color: transparent;
      cursor: pointer;
      pointer-events: all;
      z-index: 20;
    }
  

  
    #invisibleButton {
      width: 18vh;
      height: 11%;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
    }
  
    /* Social Icons: gleicher Halbkreis wie Mobile – 7 Icons */
    .social-media {
      left: 47%;
      top: 46%;
    }
    .social-media.show a:nth-child(1) { transform: rotate(270deg) translate(30vh) rotate(-270deg) translate(-50%, -50%); }
    .social-media.show a:nth-child(2) { transform: rotate(255deg) translate(30vh) rotate(-255deg) translate(-50%, -50%); }
    .social-media.show a:nth-child(3) { transform: rotate(240deg) translate(29vh) rotate(-240deg) translate(-50%, -50%); }
    .social-media.show a:nth-child(4) { transform: rotate(225deg) translate(28vh) rotate(-225deg) translate(-50%, -50%); }
    .social-media.show a:nth-child(5) { transform: rotate(210deg) translate(28vh) rotate(-210deg) translate(-50%, -50%); }
    .social-media.show a:nth-child(6) { transform: rotate(195deg) translate(28vh) rotate(-195deg) translate(-50%, -50%); }
    .social-media.show a:nth-child(7) { transform: rotate(180deg) translate(28vh) rotate(-180deg) translate(-50%, -50%); }
  }
  
  /* ─── SOCIAL ICONS: MOBILE (<= 600px) ───────────────────── */
  
  @media (max-width: 600px) {
    #rateBtn {
      top: 15%;
      right: 9%;
      height: 17%;
      width: 34%;
    }
  
    #invisibleButton {
      width: 22%;
      height: 13%;
    }
  

  
    /* 7 Icons im Halbkreis – kalibriert auf iPhone 15 */
    .social-media.show a:nth-child(1) { transform: rotate(270deg) translate(min(48vw, 210px)) rotate(-270deg) translate(-50%, -50%); }
    .social-media.show a:nth-child(2) { transform: rotate(255deg) translate(min(48vw, 210px)) rotate(-255deg) translate(-50%, -50%); }
    .social-media.show a:nth-child(3) { transform: rotate(240deg) translate(min(48vw, 210px)) rotate(-240deg) translate(-50%, -50%); }
    .social-media.show a:nth-child(4) { transform: rotate(225deg) translate(min(48vw, 210px)) rotate(-225deg) translate(-50%, -50%); }
    .social-media.show a:nth-child(5) { transform: rotate(210deg) translate(min(48vw, 210px)) rotate(-210deg) translate(-50%, -50%); }
    .social-media.show a:nth-child(6) { transform: rotate(195deg) translate(min(48vw, 210px)) rotate(-195deg) translate(-50%, -50%); }
    .social-media.show a:nth-child(7) { transform: rotate(180deg) translate(min(48vw, 210px)) rotate(-180deg) translate(-50%, -50%); }
  }
  
  /* ─── VERIFICATION POPUP ─────────────────────────────────── */
  
  #verificationPopup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid #ccc;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 12px;
    width: 90%;
    max-width: 360px;
  }
  
  /* ─── REVIEWS POPUP ──────────────────────────────────────── */
  
  .reviews-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid #ccc;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
  }
  
  .reviews-popup-content { max-width: 600px; margin: 0 auto; }
  .reviews-popup button  { margin-top: 20px; display: block; width: 100%; }
/* ─── EMBLEM + PUNKTE ───────────────────────────────────── */

/* Standard (Mobile zuerst) */
#emblemWrapper {
  position: absolute;
  top: 18%;
  left: 74%;
  transform: translateX(-50%);
  width: 50%;        /* ← Mobile-Größe */
  z-index: 5;
}

#emblem {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#points {
  position: absolute;
  bottom: -20px;     /* ← Mobile */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 6;
}

#points span {
  background-color: goldenrod;
  color: white;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: bold;
}

/* Desktop */
@media (min-width: 601px) {
  #emblemWrapper {
    top: 19%;
    left: calc(61% - 1vh);
    width: 17vh;      /* ← Desktop-Größe */
  }

  #points {
    bottom: -20px;   /* ← Desktop */
  }
}
/* ── Cookie Banner ── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  transform: translateY(0);
  transition: transform 0.4s ease;
}
#cookie-banner.is-hidden {
  transform: translateY(100%);
}
#cookie-banner p {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.75) !important;
  max-width: 700px;
  line-height: 1.5;
}
#cookie-banner a {
  color: gold !important;
  text-decoration: underline;
}
.cookie-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
  min-width: 110px;
  text-align: center;
}
.cookie-btn--accept {
  background: linear-gradient(135deg, goldenrod, gold);
  color: #000;
  border: 1px solid goldenrod;
}
.cookie-btn--decline {
  background: transparent;
  color: goldenrod;
  border: 1px solid goldenrod;
}
.cookie-btn:hover { opacity: 0.85; transform: translateY(-1px); }

@media (max-width: 600px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }
  .cookie-btns { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}