/* Grundlegende Resets */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

/* Hide scrollbar for clean look */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Floating Images in Hero */
.floating-circle {
  position: absolute;
  transition: transform 0.1s ease-out;
}

.floating-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.circle-1 { 
    width: 250px; 
    height: 250px; 
    top: 15%; 
    left: 8%; 
}
.circle-2 { 
    width: 300px; 
    height: 300px; 
    top: 65%; 
    left: 75%; 
    z-index: 2; 
}
.circle-3 { 
    width: 180px; 
    height: 180px; 
    top: 25%; 
    left: 65%; 
    z-index: 1; 
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@media (max-width: 992px) {
  .floating-circle {
    display: none;
  }
}

/* Horizontal Scroll Container */
.process-scroll-container {
    width: max-content;
    will-change: transform;
}


.branch-intro-section {
  padding: 6rem 5% 0 5%;
  background-color: #f8f9fa;
  font-family: 'Outfit', sans-serif;
  font-family: 'Outfit', sans-serif;
}

.intro-container {
  max-width: 1200px;
  margin: 0 auto;
}

.intro-tag {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #0066ff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.intro-heading {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: #111;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.intro-desc {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: #555;
  line-height: 1.6;
  max-width: 700px;
  font-weight: 300;
}

/* --- SCROLL TRACK --- */
.branch-scroll-track {
  height: 400vh; 
  background-color: #f8f9fa;
  position: relative;
  overflow-x: clip;
}

.branch-sticky-container {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  padding: 0 5%;
}

/* --- ZWEI-SPALTEN LAYOUT --- */
.branch-grid {
  display: grid;
  grid-template-columns: 55% 40%;
  gap: 5%;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
}

/* --- LINKE SPALTE (Bild & Riesen-Text) --- */
.branch-visual-col {
  position: relative;
  width: 100%;
}

.branch-image-card {
  position: relative;
  width: 100%;
  height: 65vh;
  min-height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.branch-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s ease, transform 1.5s ease;
}

.branch-bg.active {
  opacity: 1;
  transform: scale(1);
}

.branch-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 100%);
  z-index: 2;
}

/* Große ausbrechende Titel */
.branch-large-titles {
  position: absolute;
  top: 50%;
  /* Bricht 15% nach links aus dem Bild aus */
  left: -15%; 
  transform: translateY(-50%);
  width: 120%;
  z-index: 10;
  pointer-events: none;
}

.title-item {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  font-size: clamp(2rem, 10vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  opacity: 0;
  visibility: hidden;
  line-height: 1;
}

.title-item.active {
  opacity: 1;
  visibility: visible;
}

.title-outline {
  position: absolute;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 102, 255, 0.3);
}

.title-solid {
  position: relative;
  color: #0066ff;
  clip-path: inset(0 100% 0 0); 
  transition: clip-path 0.1s ease-out;
}

/* --- RECHTE SPALTE (Reiner Text) --- */
.branch-text-col {
  position: relative;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.branch-content-item {
  position: absolute;
  top: 50%;
  transform: translateY(-40%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.branch-content-item.active {
  opacity: 1;
  transform: translateY(-50%);
  visibility: visible;
}

.content-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 4px;
}

.branch-content-item h3 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  color: #111;
  line-height: 1.1;
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
}

.branch-content-item p {
  font-size: 1.15rem;
  color: #555;
  line-height: 1.6;
  margin: 0 0 2rem 0;
  font-weight: 300;
}

/* Professionelle Button Designs */

/* Sekundärer Button (für Navi & Content) */
.content-link,
.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111 !important;
  background-color: #fff !important;
  padding: 16px 32px !important;
  border-radius: 100px !important;
  text-decoration: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: 0 4px 15px -5px rgba(0, 0, 0, 0.05) !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  overflow: hidden;
  z-index: 1;
  isolation: isolate;
}

.content-link::before,
.btn-modern::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #0066ff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.86, 0, 0.07, 1);
  z-index: -1;
  border-radius: inherit;
}

/* Dark Mode Variante für dunkle Sektionen */
.bg-dark .btn-modern,
.text-white.btn-modern {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(10px);
}

.content-link:hover,
.btn-modern:hover {
  color: #fff !important;
  box-shadow: 0 15px 30px -5px rgba(0, 102, 255, 0.4) !important;
  border-color: #0066ff !important;
  transform: translateY(-4px);
}

.bg-dark .btn-modern:hover,
.text-white.btn-modern:hover {
  color: #111 !important;
  border-color: #fff !important;
  box-shadow: 0 15px 30px -5px rgba(255, 255, 255, 0.4) !important;
}

.bg-dark .btn-modern::before,
.text-white.btn-modern::before {
  background: #fff;
}

.content-link:hover::before,
.btn-modern:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.content-link svg,
.btn-modern svg {
  width: 20px;
  height: 20px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.content-link:hover svg,
.btn-modern:hover svg {
  transform: translateX(4px);
}

.content-link:active,
.btn-modern:active {
  transform: translateY(1px);
}

/* Primärer Button (Hero & Call to Action) */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff !important;
  background-color: transparent !important;
  padding: 18px 40px !important;
  border-radius: 100px !important;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  isolation: isolate;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px -10px rgba(0, 102, 255, 0.5) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.btn-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #0066ff;
  z-index: -2;
  border-radius: inherit;
}

.btn-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.86, 0, 0.07, 1);
  z-index: -1;
  border-radius: inherit;
}

.btn-hero:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(255, 255, 255, 0.4) !important;
  color: #0066ff !important;
  border-color: #fff !important;
}

.btn-hero:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-hero svg {
  width: 20px;
  height: 20px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero:hover svg {
  transform: translateX(4px);
}

.btn-hero:active {
  transform: translateY(1px);
}

/* 3D REFERENZEN */
.perspective-\[2000px\] {
    perspective: 2000px;
}
.preserve-3d {
    transform-style: preserve-3d;
}
.macbook-css {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/10.5;
    background: #1a1a1a;
    border-radius: 24px 24px 0 0;
    position: relative;
    padding: 2.5%;
    box-shadow: 0 40px 80px rgba(0,0,0,0.8);
    border: 2px solid #333;
    border-bottom: none;
}
.macbook-css::after {
    content: '';
    position: absolute;
    bottom: -4%;
    left: -6%;
    width: 112%;
    height: 4%;
    background: linear-gradient(to right, #666, #999, #666);
    border-radius: 0 0 24px 24px;
    box-shadow: inset 0 -2px 10px rgba(0,0,0,0.5), 0 20px 40px rgba(0,0,0,0.9);
}
.macbook-css::before {
    content: '';
    position: absolute;
    top: 2.5%;
    left: 50%;
    transform: translateX(-50%);
    width: 12%;
    height: 3%;
    background: #111;
    border-radius: 0 0 8px 8px;
    z-index: 50;
}
.macbook-screen-area {
    width: 100%;
    height: 100%;
    background: #000;
    overflow-y: auto;
    scrollbar-width: none;
    position: relative;
    border-radius: 4px;
}
.macbook-screen-area::-webkit-scrollbar {
    display: none;
}

/* Mobile Anpassungen */
@media (max-width: 992px) {
  .branch-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .branch-large-titles {
    left: -5%;
  }
  .branch-image-card {
    height: 45vh;
    min-height: 350px;
  }
  .branch-text-col {
    height: 200px;
  }
}

/* Navigation Button */
.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff !important;
  background-color: #0066ff !important;
  padding: 12px 24px !important;
  border-radius: 100px !important;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  isolation: isolate;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px -5px rgba(0, 102, 255, 0.4) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.btn-nav::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #0066ff;
  z-index: -2;
  border-radius: inherit;
}

.btn-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.86, 0, 0.07, 1);
  z-index: -1;
  border-radius: inherit;
}

.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.4) !important;
  color: #0066ff !important;
  border-color: #fff !important;
}

.btn-nav:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-nav svg {
  width: 16px;
  height: 16px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-nav:hover svg {
  transform: translateX(4px);
}


/* --- CALENDLY CAT SVG ANIMATION --- */
.cat-happy #cat-mouth-angry { opacity: 0; }
.cat-happy #cat-mouth-happy { opacity: 1; }
.cat-happy #paw-right { 
    transform: translateY(120px) rotate(45deg); 
    opacity: 0; 
}
.cat-happy #brow-left { transform: rotate(-25deg) translateY(-5px); }
.cat-happy #brow-right { transform: rotate(25deg) translateY(-5px); }
.cat-happy #paw-left { transform: translateY(10px) rotate(-10deg); }
.cat-happy #cat-eyes { transform: scaleY(1.1); }


/* --- CUTE CAT SVG ANIMATION --- */
@keyframes cat-sway {
    0%, 100% { transform: translateX(-50%) rotate(-15deg); }
    50% { transform: translateX(-50%) rotate(15deg); }
}
.animate-cat-sway {
    transform-origin: top center;
    animation: cat-sway 4s ease-in-out infinite;
}

@keyframes cat-threaten {
    0%, 75% { transform: translateY(100px) rotate(45deg); opacity: 0; }
    80% { transform: translateY(-10px) rotate(-5deg); opacity: 1; }
    85%, 90% { transform: translateY(0) rotate(0deg); opacity: 1; }
    95%, 100% { transform: translateY(100px) rotate(45deg); opacity: 0; }
}
.animate-cat-threaten {
    animation: cat-threaten 6s ease-in-out infinite;
}
.group:hover .animate-cat-threaten {
    animation: none !important;
    transform: translateY(100px) rotate(45deg) !important;
    opacity: 0 !important;
}

/* Hover smile states */
.group:hover #cat-mouth-angry { opacity: 0; }
.group:hover #cat-mouth-happy { opacity: 1; }
.group:hover #cat-eyes { transform: scaleY(1.1) translateY(-2px); }


/* --- CUSTOM USER CAT SVG ANIMATION --- */
@keyframes cat-sway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(15deg); }
}
.animate-cat-sway {
    transform-origin: top center;
    animation: cat-sway 4s ease-in-out infinite;
}



/* --- CUSTOM USER CAT SVG ANIMATION --- */
@keyframes cat-threaten-arm {
    0%, 75% { transform: translateY(80px); opacity: 0; }
    80%, 90% { transform: translateY(0); opacity: 1; }
    95%, 100% { transform: translateY(80px); opacity: 0; }
}
.animate-cat-threaten-arm {
    animation: cat-threaten-arm 6s ease-in-out infinite;
}

@keyframes cat-threaten-mouth {
    0%, 75% { opacity: 0; }
    80%, 90% { opacity: 1; }
    95%, 100% { opacity: 0; }
}
.animate-cat-threaten-mouth {
    animation: cat-threaten-mouth 6s ease-in-out infinite;
}

@keyframes cat-smile-mouth {
    0%, 75% { opacity: 1; }
    80%, 90% { opacity: 0; }
    95%, 100% { opacity: 1; }
}
.animate-cat-smile-mouth {
    animation: cat-smile-mouth 6s ease-in-out infinite;
}

/* Hover Overrides */
.group:hover .animate-cat-threaten-arm {
    animation: none !important;
    transform: translateY(80px) !important;
    opacity: 0 !important;
}
.group:hover .animate-cat-threaten-mouth {
    animation: none !important;
    opacity: 0 !important;
}
.group:hover .animate-cat-smile-mouth {
    animation: none !important;
    opacity: 1 !important;
}

p:not(.text-sm):not(.text-xs):not(footer p) {
    font-size: 20px !important;
    font-family: 'Outfit', sans-serif !important;
}


/* User requested overrides */
span.intro-tag, 
span.text-brand.uppercase.tracking-widest.text-xs.font-bold.mb-3.block, 
span.text-sm.font-bold.tracking-widest.text-brand.mb-4.uppercase.block  {
    font-size: 20px !important;
    font-weight: 600 !important;
}

p.text-dark.dark\:text-white\/70.font-light.text-2xl.mb-20.leading-relaxed.max-w-2xl {
    font-size: 24px !important;
}

.flex.flex-col.sm\:flex-row.items-center.gap-8 {
    margin-top: 30px;
}

summary.flex.items-center.justify-between.p-6.cursor-pointer.font-bold.text-lg.text-dark.dark\:text-white.list-none,
.p-6.pt-0.text-gray-500.dark\:text-gray-400.font-light.leading-relaxed, 
section#insights p, 
section#insights a,
section#insights span {
  font-size: 20px !important;
}

a.btn-modern.w-full.justify-center.text-xl.mt-auto, 
.absolute.-top-4.left-1\/2.-translate-x-1\/2.bg-brand.text-white.text-sm.font-black.uppercase.tracking-widest.px-6.py-1\.5.rounded-full.shadow-lg {
    text-align: center !important;
}

footer a, footer p, footer span, footer ul {
    font-size: 20px !important;
}

/* Dark Mode Overrides for Branchen */
html.dark .branch-intro-section,
html.dark .branch-scroll-track {
    background-color: #0f172a !important; /* dark */
}
html.dark .branch-grid,
html.dark .branch-sticky-container {
    background-color: transparent !important;
}
html.dark .branch-content-item p {
    color: #94a3b8 !important; /* text-gray-400 */
}

html.dark .intro-heading,
html.dark .branch-content-item h3,
html.dark .title-solid {
    color: #ffffff !important;
}
html.dark .intro-desc {
    color: #9ca3af !important;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.animate-marquee {
    animation: marquee 40s linear infinite;
}

/* User requested overrides for horizontal scroll */
section {
  overflow-x: hidden !important;
}

section.branch-scroll-track, section#about {
  overflow-x: visible !important;
}

/* Override global section overflow-x for particle sections */
section:has(canvas) {
  overflow: visible !important;
  overflow-x: visible !important;
}

