@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600;700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* Custom font-utility classes (replaces compiled Tailwind custom fonts) */
.font-times { font-family: 'Playfair Display', serif !important; }
.font-sequel { font-family: 'Outfit', sans-serif !important; }

/* CSS Variables Override for Dark Gold Theme and Custom Fonts */
:root {
  --font-sans: 'Outfit', sans-serif !important;
  --font-sequel: 'Outfit', sans-serif !important;
  --font-times: 'Playfair Display', serif !important;
  --color-hsp-bg: #0b0c0f !important;
  --color-hsp-cream: #ebdcb9 !important;
  
  /* Layout variables for photo strips to prevent top-left shifting and squishing */
  --aspect-desktop: 16/7;
  --pos-desktop: center center;
}

/* Robust HTML Element Fallbacks for Dark Theme */
body, html {
  background-color: #07080a !important;
  color: #f4edd9 !important;
  font-family: 'Outfit', sans-serif !important;
}

main {
  background-color: #07080a !important;
}

section {
  background-color: #121318 !important; /* Default dark background for all sections */
}

/* Specific section overrides by data-section */
section[data-section="hero"] {
  background-color: #07080a !important;
}

section[data-section="leistungenFokus"],
section[data-section="problem"],
section[data-section="auswahl"],
section[data-section="realTalk"],
section[data-section="ctaFinal"] {
  background-color: #0b0c0f !important;
}

footer {
  background-color: #121318 !important;
}

/* Custom Overrides for compiled Tailwind utility classes */
.bg-\[\#1F222B\] {
  background-color: #121318 !important; /* Charcoal -> Deep Obsidian */
}
.bg-\[\#0b0d12\] {
  background-color: #07080a !important; /* Hero Bg -> Pitch Black */
}
.bg-\[\#0f1118\] {
  background-color: #0b0c0f !important; /* Final CTA Bg -> Deep Black */
}

/* Gold border replacements */
.border-\[\#D9D3C9\] {
  border-color: #c5a059 !important;
}
.border-\[\#D9D3C9\]\/10 {
  border-color: rgba(197, 160, 89, 0.1) !important;
}
.border-\[\#D9D3C9\]\/15, .border-hsp-cream\/15 {
  border-color: rgba(197, 160, 89, 0.15) !important;
}
.border-\[\#D9D3C9\]\/20, .border-hsp-cream\/25 {
  border-color: rgba(197, 160, 89, 0.25) !important;
}
.border-\[\#D9D3C9\]\/55, .border-hsp-cream\/35 {
  border-color: rgba(197, 160, 89, 0.45) !important;
}

/* Redefine grid colors on problem section */
[data-section="problem"] [aria-hidden="true"] {
  background-image: repeating-linear-gradient(115deg, rgba(197, 160, 89, 0.08) 0 1px, transparent 1px 64px) !important;
}

/* Redefine grid colors on manifesto section */
[data-section="manifesto"] [aria-hidden="true"] {
  background-image: repeating-linear-gradient(0deg, rgba(197, 160, 89, 0.06) 0 1px, transparent 1px 56px), 
                    repeating-linear-gradient(90deg, rgba(197, 160, 89, 0.04) 0 1px, transparent 1px 56px) !important;
}

/* Redefine grid colors on positionierung section */
[data-section="positionierung"] [aria-hidden="true"] {
  background-image: repeating-linear-gradient(0deg, rgba(197, 160, 89, 0.06) 0 1px, transparent 1px 52px), 
                    repeating-linear-gradient(90deg, rgba(197, 160, 89, 0.04) 0 1px, transparent 1px 52px) !important;
}

/* Redefine grid colors on caseStudies section */
[data-section="caseStudies"] [aria-hidden="true"] {
  background-image: repeating-linear-gradient(0deg, rgba(197, 160, 89, 0.05) 0 1px, transparent 1px 52px), 
                    repeating-linear-gradient(90deg, rgba(197, 160, 89, 0.03) 0 1px, transparent 1px 52px) !important;
}

/* Custom premium-btn style overrides for a richer gold */
.premium-btn {
  color: #0a0b0f !important;
}
.premium-btn span[aria-hidden="true"] {
  background: linear-gradient(180deg, #ffe8b5 0%, #d4af37 48%, #b38f24 100%) !important;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,0.7), 0 4px 10px -2px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -2px 0 rgba(0,0,0,0.2) !important;
}

/* Background opacity helpers */
.bg-hsp-cream\/50 { background-color: rgba(235, 220, 185, 0.5) !important; }
.bg-hsp-cream\/15 { background-color: rgba(235, 220, 185, 0.15) !important; }

/* Text styles for gold highlighting */
.text-hsp-cream {
  color: #ebdcb9 !important;
}
.text-hsp-cream\/70 {
  color: rgba(235, 220, 185, 0.7) !important;
}
.text-hsp-cream\/80 {
  color: rgba(235, 220, 185, 0.8) !important;
}
.text-hsp-cream\/60 {
  color: rgba(197, 160, 89, 0.8) !important; /* subtle gold secondary */
}

/* Swapping light grid background texts from dark to light gold-cream */
.bg-hsp-dark .italic.text-\[\#1F222B\] {
  color: #ffe8b5 !important;
}

/* Tabs list custom active styling for dark gold */
button[role="tab"] {
  outline: none !important;
  cursor: pointer !important;
  border-color: rgba(197, 160, 89, 0.2) !important;
  color: rgba(217, 211, 201, 0.55) !important;
  background-color: transparent !important;
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease !important;
}
button[role="tab"]:hover {
  border-color: rgba(197, 160, 89, 0.5) !important;
  color: rgba(217, 211, 201, 0.9) !important;
}
button[role="tab"][aria-selected="true"] {
  border-color: #d4af37 !important;
  background-color: rgba(212, 175, 55, 0.12) !important;
  color: #ffe8b5 !important;
}
/* Span numbers inside tabs */
button[role="tab"] span:first-child {
  color: inherit !important;
  opacity: 0.6;
}
button[role="tab"][aria-selected="true"] span:first-child {
  opacity: 1;
}

/* Vanilla animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-section.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Grain overlay effect */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 9999;
}

/* Custom layout overrides for photo strips on desktop viewports */
@media (min-width: 768px) {
  [data-photo-strip] .photo-strip-frame {
    min-height: 480px !important;
  }
}

/* Hero Text Legibility Enhancements */
#hsp-hero-title {
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.95) !important;
}

[data-section="hero"] .font-sequel {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9), 0 1px 4px rgba(0, 0, 0, 0.95) !important;
  color: #ebdcb9 !important; /* Premium gold accent contrast */
}

[data-section="hero"] p {
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.95), 0 1px 5px rgba(0, 0, 0, 0.98) !important;
  color: #f4edd9 !important; /* Solid warm cream to prevent transparent washing out */
}

/* Elegant Navbar Link Styling & Hover Effects */
.nav-link {
  position: relative !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.24em !important;
  font-weight: 500 !important;
  color: rgba(244, 237, 217, 0.75) !important;
  transition: color 0.4s ease, text-shadow 0.4s ease !important;
  padding: 6px 0 !important;
}

.nav-link:hover {
  color: #ebdcb9 !important;
  text-shadow: 0 0 12px rgba(235, 220, 185, 0.45) !important;
}

.nav-link::after {
  content: '' !important;
  position: absolute !important;
  bottom: -4px !important;
  left: 0 !important;
  width: 100% !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent 0%, #ebdcb9 50%, transparent 100%) !important;
  transform: scaleX(0) !important;
  transform-origin: center !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nav-link:hover::after {
  transform: scaleX(1) !important;
}

/* Partner Logo Grid Styling */
.partner-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  border-top: 1px solid rgba(197, 160, 89, 0.15) !important;
  border-left: 1px solid rgba(197, 160, 89, 0.15) !important;
}

@media (min-width: 768px) {
  .partner-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

.partner-logo-card {
  position: relative !important;
  aspect-ratio: 4/3 !important;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
  background-color: rgba(11, 12, 15, 0.2) !important;
  border-right: 1px solid rgba(197, 160, 89, 0.15) !important;
  border-bottom: 1px solid rgba(197, 160, 89, 0.15) !important;
}

.partner-logo-card:hover {
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.05) 0%, rgba(197, 160, 89, 0.01) 100%) !important;
  box-shadow: inset 0 0 24px rgba(197, 160, 89, 0.08) !important;
}

.partner-logo {
  max-height: 52px !important;
  max-width: 78% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  filter: brightness(0) invert(0.9) opacity(0.55) !important;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.partner-logo-card:hover .partner-logo {
  filter: none !important;
  opacity: 1 !important;
  transform: scale(1.05) !important;
}

/* Text-Logo cards (kein Bild, gleicher Hover-Effekt wie .partner-logo) */
.partner-text-logo {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
  opacity: 0.55 !important;
  filter: grayscale(1) !important;
}

.partner-logo-card:hover .partner-text-logo {
  opacity: 1 !important;
  filter: none !important;
  transform: scale(1.05) !important;
}

/* CTA Card customization */
.partner-cta-card {
  background-color: rgba(197, 160, 89, 0.01) !important;
}

.partner-cta-card:hover {
  background-color: rgba(197, 160, 89, 0.04) !important;
}

.partner-cta-card:hover .partner-cta-eyebrow {
  opacity: 1 !important;
}

.partner-cta-card:hover .partner-cta-title {
  color: #fff !important;
}

/* ============================================================
   Navigation Fixes
   (Das kompilierte Tailwind-CSS enthaelt md:flex, md:hidden,
   translate-x-* etc. nicht — daher hier explizit nachgebaut)
   ============================================================ */

/* Desktop-Navigation ab 768px einblenden, Hamburger ausblenden */
@media (min-width: 768px) {
  header nav.ml-auto {
    display: flex !important;
    align-items: center !important;
    gap: 3.5rem !important;
  }
  #mobile-menu-btn {
    display: none !important;
  }
}

/* Hamburger-Button explizit stylen */
#mobile-menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #D9D3C9;
}
#mobile-menu-btn span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: currentColor;
}

/* Mobile-Menu Drawer komplett explizit stylen */
#mobile-menu {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: min(80vw, 400px) !important;
  max-width: 400px !important;
  background-color: #07080a !important;
  border-left: 1px solid rgba(197, 160, 89, 0.25) !important;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6) !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 32px !important;
  z-index: 100 !important;
  transform: translateX(105%) !important;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
#mobile-menu.open {
  transform: translateX(0) !important;
}
#mobile-menu nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
}
#mobile-menu nav a {
  color: rgba(217, 211, 201, 0.95);
  font-size: 17px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid rgba(217, 211, 201, 0.08);
  text-decoration: none;
}
@media (min-width: 768px) {
  #mobile-menu {
    display: none !important;
  }
}

/* ============================================================
   Anfrage-Modal (Formular)
   ============================================================ */
.hsp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 8, 10, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  overflow-y: auto;
}
.hsp-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.hsp-modal {
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  background: #0e0f13;
  border: 1px solid rgba(197, 160, 89, 0.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 232, 181, 0.06);
  padding: 38px 32px;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.hsp-modal-overlay.open .hsp-modal {
  transform: translateY(0);
}
.hsp-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: rgba(217, 211, 201, 0.7);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
}
.hsp-modal-close:hover {
  color: #fff;
}
.hsp-modal-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #d4af37;
}
.hsp-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 400;
  line-height: 1.15;
  color: #f4edd9;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 10px 0 6px;
}
.hsp-modal-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(217, 211, 201, 0.65);
  margin: 0 0 26px;
}
.hsp-form-group {
  margin-bottom: 16px;
}
.hsp-form-group label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(217, 211, 201, 0.6);
  margin-bottom: 7px;
}
.hsp-form-group input,
.hsp-form-group select,
.hsp-form-group textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(197, 160, 89, 0.28);
  color: #f4edd9;
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 300;
  padding: 12px 14px;
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s ease, background 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
}
.hsp-form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23c5a059'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.hsp-form-group select option {
  background: #0e0f13;
  color: #f4edd9;
}
.hsp-form-group input:focus,
.hsp-form-group select:focus,
.hsp-form-group textarea:focus {
  border-color: #d4af37;
  background: rgba(212, 175, 55, 0.05);
}
.hsp-form-group textarea {
  min-height: 110px;
  resize: vertical;
}
.hsp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 520px) {
  .hsp-form-row {
    grid-template-columns: 1fr;
  }
}
.hsp-form-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  padding: 16px 24px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #0a0b0f;
  background: linear-gradient(180deg, #ffe8b5 0%, #d4af37 48%, #b38f24 100%);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: filter 0.3s ease, transform 0.2s ease;
}
.hsp-form-submit:hover {
  filter: brightness(1.08);
}
.hsp-form-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}
.hsp-form-status {
  margin-top: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.55;
  display: none;
}
.hsp-form-status.success {
  display: block;
  color: #9fd6a8;
}
.hsp-form-status.error {
  display: block;
  color: #e0a3a3;
}
/* Honeypot unsichtbar */
.hsp-hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
body.hsp-modal-open {
  overflow: hidden;
}

/* ============================================================
   Feinschliff / Polishing
   ============================================================ */

/* Goldene Trennlinie ganz oben auf der Seite */
body::before {
  content: '';
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #d4af37 30%, #ffe8b5 50%, #d4af37 70%, transparent 100%);
  z-index: 1000;
  pointer-events: none;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Section-Eyebrow Spacing konsistent */
.section-eyebrow {
  display: block !important;
}

/* Partner-Karten auf Mobile kleiner */
@media (max-width: 767px) {
  .partner-logo {
    max-height: 40px !important;
  }
  .partner-logo-card {
    aspect-ratio: 3/2 !important;
  }
}

/* Premium-Button Cursor */
.premium-btn, a.premium-btn {
  cursor: pointer !important;
}

/* Formular-Inputs auf iOS kein zoom */
@media (max-width: 767px) {
  .hsp-form-group input,
  .hsp-form-group select,
  .hsp-form-group textarea {
    font-size: 16px !important;
  }
}

/* Modal auf kleinen Screens volle Breite */
@media (max-width: 600px) {
  .hsp-modal {
    padding: 28px 20px !important;
  }
  .hsp-form-row {
    grid-template-columns: 1fr !important;
  }
}

/* ── Back to Top ──────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 36px;
  right: 32px;
  z-index: 10000;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(197, 160, 89, 0.45);
  background: rgba(14, 15, 19, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #d4af37;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease, background 0.3s ease, border-color 0.3s ease;
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover {
  background: rgba(197, 160, 89, 0.15);
  border-color: #d4af37;
  color: #ffe8b5;
}
@media (max-width: 600px) {
  #back-to-top {
    bottom: 24px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 17px;
  }
}

/* Blur-Overlay Background für Mobile-Menu */
#mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 8, 10, 0.65);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  cursor: pointer;
}
#mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}
