/* ==========================================================================
   KONTAKT & QR DIGITAL BUSINESS CARD - OBJEKT.HTML THEME
   Jonathan Agneessens Immobilien GmbH
   Modern Eifel Aesthetic: Dark Olive/Slate Glassmorphism, Bruno Ace & DM Serif
   ========================================================================== */

:root {
  --bg-dark: #0f140e;
  --bg-olive: #1c2419;
  --bg-olive-light: #2c3826;
  
  --card-bg: rgba(22, 29, 20, 0.88);
  --card-border: rgba(142, 180, 118, 0.16);
  --card-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
  
  --accent-red: #dc3545;
  --accent-red-hover: #e54656;
  --accent-red-glow: rgba(220, 53, 69, 0.45);
  
  --accent-gold: #ffc107;
  --accent-olive: #8eb476;
  
  --text-white: #ffffff;
  --text-muted: #a3b09d;
  --text-sub: #c9d5c4;
}

body.qr-body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* 🌿 Ambient Eifel Glow Background (matches objekt.html atmosphere) */
.qr-ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 10%, rgba(74, 93, 57, 0.35) 0%, rgba(28, 36, 25, 0.8) 50%, #0f140e 100%);
}

.qr-glow-circle-1 {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(142, 180, 118, 0.22) 0%, rgba(74, 93, 57, 0.08) 50%, transparent 70%);
  filter: blur(60px);
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.qr-glow-circle-2 {
  position: absolute;
  bottom: 5%;
  right: -80px;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(220, 53, 69, 0.15) 0%, transparent 70%);
  filter: blur(65px);
}

.qr-glow-circle-3 {
  position: absolute;
  top: 40%;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(121, 202, 33, 0.12) 0%, transparent 70%);
  filter: blur(70px);
}

@keyframes floatOrb {
  0% { transform: translateX(-50%) translateY(0) scale(1); }
  100% { transform: translateX(-48%) translateY(35px) scale(1.06); }
}

/* 📱 Main Wrapper */
.qr-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 18px 45px;
}

/* 🔝 Top Action Bar */
.qr-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 8px 14px;
  background: rgba(22, 29, 20, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.qr-brand-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.qr-brand-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.qr-brand-name {
  font-family: 'Bruno Ace', sans-serif;
  font-size: 0.88rem;
  color: #ffffff;
  letter-spacing: 1px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.qr-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qr-lang-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.qr-lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'Bruno Ace', sans-serif;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.qr-lang-btn.active {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
}

.qr-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.qr-icon-btn:hover, .qr-icon-btn:active {
  background: var(--accent-red);
  color: #fff;
  transform: scale(1.06);
  border-color: var(--accent-red);
}

/* 📇 Main Profile Card (Styled like objekt.html contact-form) */
.qr-profile-card {
  background: var(--card-bg);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 34px 24px 26px;
  text-align: center;
  position: relative;
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
}

/* Signature red top accent line as in objekt.html */
.qr-profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
  border-radius: 3px;
}

/* Avatar styling */
.qr-avatar-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}

.qr-avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-red) 0%, rgba(142, 180, 118, 0.8) 100%);
  opacity: 0.9;
  filter: blur(1px);
}

.qr-avatar-img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid #161d14;
  display: block;
  background-color: #ffffff;
}

.qr-status-indicator {
  position: absolute;
  bottom: 4px;
  right: 6px;
  width: 18px;
  height: 18px;
  background-color: #28a745;
  border: 3px solid #161d14;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.9);
  animation: pulseGreen 2.2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

/* Typography matching objekt.html */
.qr-profile-name {
  font-family: 'DM Serif Text', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.qr-verified-badge {
  color: var(--accent-red);
  font-size: 1.2rem;
  filter: drop-shadow(0 2px 6px rgba(220, 53, 69, 0.5));
}

.qr-profile-role {
  font-family: 'Bruno Ace', sans-serif;
  color: var(--accent-olive);
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.qr-company-name {
  font-family: 'Bruno Ace', sans-serif;
  color: #ffffff;
  font-size: 0.96rem;
  margin-bottom: 12px;
  letter-spacing: 0.8px;
  text-shadow: 1px 1px 3px black;
}

.qr-profile-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Trust Badges Bar */
.qr-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.qr-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-sub);
  font-size: 0.78rem;
  font-family: 'Bruno Ace', sans-serif;
}

.qr-trust-icon {
  height: 22px;
  width: auto;
  object-fit: contain;
  opacity: 0.92;
}

.qr-stars {
  color: #ffc107;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* 🎯 Section Headers (Signature objekt.html style with Bruno Ace & red bottom border) */
.qr-section-title {
  font-family: 'Bruno Ace', sans-serif;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #ffffff;
  margin: 26px 4px 16px;
  padding-bottom: 6px;
  display: inline-block;
  border-bottom: 2px solid var(--accent-red);
  text-shadow: 2px 2px 4px black;
}

/* ⚡ Action Cards Stack */
.qr-action-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qr-btn {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-radius: 20px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  border: 1px solid var(--card-border);
}

.qr-btn:active {
  transform: scale(0.985);
}

.qr-btn:hover {
  transform: translateY(-3px);
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.qr-btn-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-right: 18px;
  transition: transform 0.3s ease;
}

.qr-btn:hover .qr-btn-icon-box {
  transform: scale(1.1);
}

.qr-btn-content {
  flex: 1;
  min-width: 0;
}

.qr-btn-title {
  font-family: 'Bruno Ace', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  line-height: 1.3;
  margin-bottom: 3px;
  display: block;
}

.qr-btn-subtitle {
  font-size: 0.86rem;
  opacity: 0.88;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qr-btn-arrow {
  margin-left: 12px;
  font-size: 1.2rem;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.qr-btn:hover .qr-btn-arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* 📞 1. DIRECT CALL - Signature Brand Red Flame */
.qr-btn-call {
  background: linear-gradient(135deg, #dc3545 0%, #a71d2a 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 28px rgba(220, 53, 69, 0.4);
}

.qr-btn-call:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #ea4252 0%, #b82230 100%);
  box-shadow: 0 12px 34px rgba(220, 53, 69, 0.55);
}

.qr-btn-call .qr-btn-icon-box {
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  animation: phoneRing 3.2s ease-in-out infinite;
}

@keyframes phoneRing {
  0%, 75%, 100% { transform: rotate(0deg); }
  78%, 86% { transform: rotate(-13deg); }
  82%, 90% { transform: rotate(13deg); }
  94% { transform: rotate(0deg); }
}

/* ✉️ 2. DIRECT EMAIL - Modern Dark Olive Glass */
.qr-btn-email {
  background: rgba(25, 34, 23, 0.9);
  backdrop-filter: blur(16px);
  color: #ffffff;
  border: 1px solid rgba(142, 180, 118, 0.2);
}

.qr-btn-email:hover {
  background: rgba(35, 48, 32, 0.95);
  color: #ffffff;
  border-color: var(--accent-red);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.qr-btn-email .qr-btn-icon-box {
  background: rgba(220, 53, 69, 0.18);
  color: #ff6e7e;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

/* 📇 3. SAVE CONTACT - Modern Apple Pill / Premium Gloss (as in objekt.html .btn-send-apple) */
.qr-btn-vcard {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.9) inset,
    0 10px 28px rgba(0,0,0,.25);
}

.qr-btn-vcard .qr-btn-title {
  color: #111111;
}

.qr-btn-vcard .qr-btn-subtitle {
  color: #444444;
}

.qr-btn-vcard .qr-btn-icon-box {
  background: #f0f0f0;
  color: var(--accent-red);
}

.qr-btn-vcard .qr-btn-arrow {
  color: #111111;
}

.qr-btn-vcard:hover {
  background: #f8f8f8;
  color: #000000;
  box-shadow:
    0 0 0 1px rgba(255,255,255,1) inset,
    0 14px 34px rgba(0,0,0,.35);
}

/* Shimmer sweep effect on vCard button */
.qr-btn-vcard::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 130%;
  height: 100%;
  background: linear-gradient(
    125deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.6) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-20deg);
  transition: left .6s ease;
}

.qr-btn-vcard:hover::before {
  left: 130%;
}

/* 🏡 Quick Real Estate Hub Grid (Matches objekt.html cards) */
.qr-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.qr-hub-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 18px 16px;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.28s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.qr-hub-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent-red);
  transition: width 0.3s ease;
}

.qr-hub-card:hover {
  background: rgba(32, 43, 29, 0.95);
  color: #fff;
  border-color: rgba(220, 53, 69, 0.4);
  transform: translateY(-3px);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}

.qr-hub-card:hover::after {
  width: 100%;
}

.qr-hub-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--accent-red);
}

.qr-hub-title {
  font-family: 'Bruno Ace', sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  line-height: 1.3;
  margin-bottom: 3px;
}

.qr-hub-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* 🌐 Social Media Row */
.qr-social-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 30px 0 20px;
}

.qr-social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

.qr-social-btn:hover {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
}

/* 📜 Footer */
.qr-footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 25px;
  padding-bottom: 20px;
}

.qr-footer a {
  color: var(--text-sub);
  text-decoration: none;
}

.qr-footer a:hover {
  color: var(--accent-red);
  text-decoration: underline;
}

/* 📲 Modal for QR Code & Share */
.qr-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.qr-modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.qr-modal-box {
  background: #182015;
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 30px 24px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 25px 60px rgba(0,0,0,0.7);
}

.qr-modal-backdrop.show .qr-modal-box {
  transform: scale(1);
}

.qr-modal-title {
  font-family: 'Bruno Ace', sans-serif;
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: #fff;
  letter-spacing: 0.5px;
}

.qr-modal-qr-container {
  background: #ffffff;
  padding: 16px;
  border-radius: 18px;
  display: inline-block;
  margin: 16px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.qr-modal-qr-img {
  width: 200px;
  height: 200px;
  display: block;
}

.qr-modal-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 50px;
  padding: 10px 20px;
  font-family: 'Bruno Ace', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  transition: background 0.2s ease;
}

.qr-modal-close-btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

/* 🍞 Toast Message */
.qr-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(22, 29, 20, 0.95);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10000;
  box-shadow: 0 12px 35px rgba(0,0,0,0.6);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease;
  opacity: 0;
  pointer-events: none;
  font-family: 'Outfit', sans-serif;
}

.qr-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.qr-toast-success {
  border-color: rgba(40, 167, 69, 0.6);
}

.qr-toast-success i {
  color: #28a745;
}

/* 📱 Responsive fine-tuning */
@media (max-width: 380px) {
  .qr-profile-card {
    padding: 26px 16px 20px;
  }
  .qr-btn {
    padding: 14px 16px;
  }
  .qr-btn-icon-box {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    margin-right: 14px;
  }
  .qr-btn-title {
    font-size: 0.98rem;
  }
  .qr-hub-grid {
    grid-template-columns: 1fr;
  }
}
