/* ARCANIMOTION CORE STYLES 
   Ergänzt Tailwind CSS
*/

body { 
    background-color: #020617; /* Fallback */
    color: #f8fafc; 
    overflow-x: hidden; 
}

/* --- GLASSMORPHISMUS & KARTEN --- */
.glass-panel {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 229, 255, 0.15); 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    border-color: #22d3ee;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.25);
    transform: translateY(-5px);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, #22d3ee, transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.service-card:hover::after {
    transform: scaleX(1);
}

/* --- NAVIGATION --- */
.nav-link:hover {
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.8);
    border-color: #22d3ee;
    box-shadow: inset 0 0 15px rgba(0, 229, 255, 0.15);
    background: rgba(0, 229, 255, 0.05);
}

/* --- VIDEO OVERLAYS --- */
.play-overlay {
    background: rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}
.group:hover .play-overlay {
    background: rgba(0,0,0,0.2);
}
.play-button {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.group:hover .play-button {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0,229,255,0.8);
}

/* --- WIDGETS --- */

@keyframes arcPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}


/* Chat Widget Positionierung (Rechts unten) */
.chat-widget { position: fixed; bottom: 20px; right: 20px; z-index: 10001; width: 60px; height: 60px; }

/* Chat Toggle Button */
.chat-toggle-btn {
    width: 60px; height: 60px; background-color: #22d3ee; border: none; border-radius: 50%;
    cursor: pointer; box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    display: flex; justify-content: center; align-items: center; position: relative; z-index: 2;
  touch-action: manipulation;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.chat-toggle-btn:hover { animation: arcPulse 1.1s infinite; }
.chat-toggle-btn:hover svg { color: #0a0a0e !important; }

.chat-widget.active .chat-toggle-btn { transform: rotate(45deg); }
.chat-widget.active .chat-toggle-btn svg { color: #0a0a0e !important; }

/* Fächer Menü Links */
.chat-link {
    width: 45px; height: 45px;
  background: rgba(34, 211, 238, 0.16);
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 14px;
    display: flex; justify-content: center; align-items: center;
    position: absolute; bottom: 8px; right: 8px;
    z-index: 1; opacity: 0; 
    pointer-events: none;
    transition: opacity 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.chat-link:hover {
    z-index: 20;
    border-color: rgba(34, 211, 238, 0.75);
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.55);
    animation: arcPulse 1.1s infinite;
}
.chat-link img {
  width: 24px;
  height: 24px;
  filter: brightness(1.08) contrast(1.1) drop-shadow(0 0 4px rgba(34, 211, 238, 0.35));
}

.chat-link.vcard {
  background: rgba(34, 211, 238, 0.24);
  border-color: rgba(34, 211, 238, 0.58);
}

.chat-link.vcard img {
  filter: brightness(1.35) contrast(1.2) drop-shadow(0 0 5px rgba(34, 211, 238, 0.45));
}

/* Fächer Animation */
.chat-widget.active .item-1 { transform: translate(0, -105px); opacity: 1; pointer-events: auto; transition-delay: 0.05s; }
.chat-widget.active .item-2 { transform: translate(-35px, -95px); opacity: 1; pointer-events: auto; transition-delay: 0.1s; }
.chat-widget.active .item-3 { transform: translate(-70px, -70px); opacity: 1; pointer-events: auto; transition-delay: 0.15s; }
.chat-widget.active .item-4 { transform: translate(-95px, -35px); opacity: 1; pointer-events: auto; transition-delay: 0.2s; }
.chat-widget.active .item-5 { transform: translate(-105px, 0); opacity: 1; pointer-events: auto; transition-delay: 0.25s; }
.chat-widget.active .chat-link { z-index: 3; }
.chat-widget.active .chat-toggle-btn { pointer-events: none; }
/* Fix Hover Position */
.chat-widget.active .item-1:hover { transform: translate(0, -105px) scale(1.1) !important; }
.chat-widget.active .item-2:hover { transform: translate(-35px, -95px) scale(1.1) !important; }
.chat-widget.active .item-3:hover { transform: translate(-70px, -70px) scale(1.1) !important; }
.chat-widget.active .item-4:hover { transform: translate(-95px, -35px) scale(1.1) !important; }
.chat-widget.active .item-5:hover { transform: translate(-105px, 0) scale(1.1) !important; }

@media (max-width: 768px) {
  .chat-widget {
    bottom: 16px;
    right: 16px;
  }

  .chat-link {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    bottom: 4px;
    right: 4px;
  }

  .chat-link img {
    width: 28px;
    height: 28px;
  }

  .chat-widget.active .item-1 { transform: translate(0, -120px); }
  .chat-widget.active .item-2 { transform: translate(-42px, -108px); }
  .chat-widget.active .item-3 { transform: translate(-82px, -82px); }
  .chat-widget.active .item-4 { transform: translate(-108px, -42px); }
  .chat-widget.active .item-5 { transform: translate(-120px, 0); }

  .chat-widget.active .item-1:hover { transform: translate(0, -120px) scale(1.06) !important; }
  .chat-widget.active .item-2:hover { transform: translate(-42px, -108px) scale(1.06) !important; }
  .chat-widget.active .item-3:hover { transform: translate(-82px, -82px) scale(1.06) !important; }
  .chat-widget.active .item-4:hover { transform: translate(-108px, -42px) scale(1.06) !important; }
  .chat-widget.active .item-5:hover { transform: translate(-120px, 0) scale(1.06) !important; }
}

/* --- SOCIAL BAR (Links Unten - MIT RAHMEN) --- */
.floating-social-bar {
    position: fixed; 
    left: 20px;    /* Links positioniert */
    bottom: 40px;  /* Unten */
    right: auto; 
    top: auto; 
    transform: none;
    display: flex; 
    flex-direction: column; /* Vertikal gestapelt */
    align-items: center; 
    gap: 15px; 
    z-index: 8000;

    /* Neuer Rahmen-Style (Pillen-Form) */
    padding: 15px 10px;
    background: rgba(15, 23, 42, 0.6); /* Transparenter Hintergrund */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px; /* Abgerundete Kanten */
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

/* Rahmen leuchtet leicht bei Hover */
.floating-social-bar:hover {
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 4px 25px rgba(0, 229, 255, 0.15);
}

.social-float {
    width: 45px; height: 45px; 
    background-color: transparent; /* Icons transparent im Container */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    box-shadow: none; 
    transition: all 0.3s ease;
}
.social-float img { width: 24px; height: 24px; filter: drop-shadow(0 0 2px rgba(0,229,255,0.3)); }
.social-float:hover { transform: scale(1.1); border-color: #22d3ee; background-color: rgba(0,0,0,0.5); box-shadow: 0 0 10px rgba(0, 229, 255, 0.4); }
@media (max-width: 768px) { .floating-social-bar { display: none !important; } }

/* --- COOKIE BANNER (Zentriert) --- */
/* Zentriert, damit er nicht mit der Social Bar (links) oder Chat (rechts) kollidiert */
.cookie-banner { 
    position: fixed; 
    bottom: 20px; 
    left: 50%; /* Zentriert */
    transform: translateX(-50%); /* Exakte Mitte */
    width: 400px; 
    max-width: 90%; 
    z-index: 9999; 
    display: none; 
}

.cookie-container {
    display: flex; flex-direction: row; background-color: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px);
    border: 1px solid #22d3ee; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideUp 0.5s ease-out;
}
.cookie-visual { width: 120px; background-color: #000; flex-shrink: 0; }
.cookie-visual img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.cookie-content { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 600px) { 
    .cookie-banner { left: 0; bottom: 0; width: 100%; max-width: 100%; transform: none; } 
    .cookie-container { border-radius: 16px 16px 0 0; }
}

::selection { background-color: #22d3ee; color: #000; }


/* Projectstart: subtle pulse via overlay glow (reliable) */
@keyframes subtleGlowPulse {
  0%   { opacity: 0.10; transform: scale(0.995); }
  50%  { opacity: 0.32; transform: scale(1.01); }
  100% { opacity: 0.10; transform: scale(0.995); }
}

.projectstart-pulse {
  position: relative; /* wichtig für ::after */
}

.projectstart-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem; /* entspricht rounded-2xl */
  pointer-events: none;
  z-index: 1;

  /* Glow-Layer */
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.25);
  animation: subtleGlowPulse 4.5s ease-in-out infinite;
}

.projectstart-pulse:hover::after {
  animation-play-state: paused;
  opacity: 0.22;
  transform: scale(1.01);
}

/* Service tiles: calmer framing, less aggressive crop */
.service-card {
  position: relative;
  overflow: hidden;
}

/* Default: keep cover, but center framing is often too tight -> move focus up a bit */
.service-card .service-card-bg {
  object-fit: cover;
  object-position: 50% 35%; /* höherer Fokus, weniger "Kopf abgeschnitten" */
  transform: scale(1.02);   /* minimal, nicht brutal */
  transition: transform 700ms ease, opacity 700ms ease, filter 700ms ease;
  filter: saturate(0.95) contrast(1.05);
}

/* Hover: very subtle, not 110% */
.service-card:hover .service-card-bg {
  transform: scale(1.05);
}

/* Arc Lightbox */
.arc-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.arc-lightbox.is-open {
  display: block;
}

.arc-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
}

.arc-lightbox__dialog {
  position: relative;
  max-width: 1100px;
  width: min(92vw, 1100px);
  margin: 6vh auto 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10,10,14,0.92);
  box-shadow: 0 0 28px rgba(34,211,238,0.14);
}

.arc-lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(34,211,238,0.45);
  background: rgba(34,211,238,0.10);
  color: #fff;
  cursor: pointer;
}

.arc-lightbox__close:hover {
  background: rgba(34,211,238,0.18);
}

.arc-lightbox__media {
  aspect-ratio: 16 / 9;
  background: #000;
}

.arc-lightbox__media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.arc-lightbox__caption {
  padding: 14px 18px 16px;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Prevent body scroll when open */
body.arc-lightbox-open {
  overflow: hidden;
}

/* --- HEADER SIGNATURE OVERLAY --- */
.brand{position:relative;}
.brand-signature{
  position:absolute;
  right:-6px;
  bottom:-10px;
  width:160px;
  pointer-events:none;
  opacity:0.95;
  z-index:2;
}
.brand-signature img{
  width:100%;
  height:auto;
  display:block;
  filter: drop-shadow(0 0 6px rgba(220,230,255,0.35)) drop-shadow(0 0 14px rgba(200,210,255,0.18));
}
@media (max-width: 640px){
  .brand-signature{right:0;bottom:-8px;width:120px;}
}

/* ===== Finale Position der Signatur im Header ===== */
.site-header .brand{
  position: relative;
  overflow: visible;
}

/* Signatur-Container */
.site-header .brand .brand-signature{
  position: absolute;
  pointer-events: none;
  z-index: 5;

  /* Zielposition (unter der Subline, rechts) */
  right: -6px;
  top: 42px;

  width: 155px;

  /* Feines Andocken */
  transform: rotate(-4deg);
}

/* Signatur-Grafik + subtiler silberner Glow */
.site-header .brand .brand-signature img{
  width: 100%;
  height: auto;
  display: block;

  filter:
    drop-shadow(0 0 4px rgba(230,235,255,0.35))
    drop-shadow(0 0 10px rgba(210,220,255,0.18));
}

@media (max-width: 640px){
  .site-header .brand .brand-signature{
    top: 36px;
    right: 0;
    width: 115px;
    transform: rotate(-3deg);
  }
}

/* ===== Header Signature: an Textblock gekoppelt ===== */
.brand-text{ position: relative; overflow: visible; }

.brand-text .brand-signature{
  position: absolute !important;
  pointer-events: none;
  z-index: 9999;

  /* Ziel: rechts unter der Subline */
  right: -45px;       /* nach rechts rausziehen */
  top: 30px;           /* unter die Subline */
  width: 100px;

  transform: rotate(-15deg);
}

.brand-text .brand-signature img{
  width: 100%;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 0 4px rgba(230,235,255,.35))
    drop-shadow(0 0 12px rgba(210,220,255,.18));
}

/* Mobile: weniger rausziehen */
@media (max-width: 640px){
  .brand-text .brand-signature{
    right: -70px;
    top: 16px;
    width: 120px;
    transform: rotate(-5deg);
  }
}
/* Standard (Desktop) */
.header-signature {
    position: absolute;
    right: 0.4rem;
    top: 0.3rem;
    width: 130px;
    opacity: 0.85;
}

/* Tablet */
@media (max-width: 1024px) {
    .header-signature {
        width: 100px;
        right: 0.4rem;
    top: 0.3rem;
        
    }
}

/* Mobile */
@media (max-width: 640px) {
    .header-signature {
        width: 20px;
        right: 2.8rem;
        top: 1.2rem;
        
    }
}

.it-solutions {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .brand-subline {
        display: block;
    }
}

/* --- FORM SELECT / DROPDOWN STYLING --- */
select,
select option {
  background-color: #0a0a0a;
  color: #ffffff;
}

select option:hover {
  background-color: #1a1a1a;
  color: #ffffff;
}