@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Funnel+Display:wght@400;500;600;700;800&display=swap');

/* === KEYFRAMES === */
@keyframes headerDrop {
  to {
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes typingBounce {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }
}

@keyframes scrollDrop {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  80% {
    transform: translateY(18px);
    opacity: .2;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes logoScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* === TOKENS DARK === */
:root {
  --background: #0a0a0a;
  --foreground: #e5e5e5;
  --card: #141414;
  --popover: #1a1a1a;
  --muted: #262626;
  --muted-foreground: #a3a3a3;
  --border: rgba(255, 255, 255, 0.1);
  --input-bg: #1a1a1a;
  --surface: rgba(20, 20, 20, 0.9);
  --surface-hover: rgba(255, 255, 255, 0.05);
  --coral: #ff6b6b;
  --coral-dark: #ff5252;
  --coral-a10: rgba(255, 107, 107, 0.10);
  --coral-a15: rgba(255, 107, 107, 0.15);
  --coral-a30: rgba(255, 107, 107, 0.30);
  --coral-a40: rgba(255, 107, 107, 0.40);
  --coral-a50: rgba(255, 107, 107, 0.50);
  --font-headline: 'Funnel Display', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 1rem;
  --pill: 9999px;
  --shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
  --shadow-h: 0 8px 48px rgba(0, 0, 0, 0.6);
  --header-bg: rgba(20, 20, 20, 0.9);
  --menu-bg: #0a0a0a;
  --detail-hdr-bg: rgba(10, 10, 10, 0.92);
}

/* === TOKENS LIGHT === */
[data-theme="light"] {
  --background: #f5f4f0;
  --foreground: #1a1a1a;
  --card: #ffffff;
  --popover: #efefeb;
  --muted: #e8e8e4;
  --muted-foreground: #666660;
  --border: rgba(0, 0, 0, 0.1);
  --input-bg: #ffffff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-hover: rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-h: 0 8px 40px rgba(0, 0, 0, 0.14);
  --header-bg: rgba(245, 244, 240, 0.92);
  --menu-bg: #f5f4f0;
  --detail-hdr-bg: rgba(245, 244, 240, 0.95);
}

/* === RESET === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  font-size: 16px;
  scroll-behavior: smooth
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .3s, color .3s
}

a {
  color: inherit;
  text-decoration: none
}

img,
video {
  display: block;
  max-width: 100%
}

ul {
  list-style: none
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit
}

/* === TEST MODE WIDGET === */
#test-mode-widget {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--pill);
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  transition: background .3s;
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: var(--pill);
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: 0.04em;
  transition: all .2s;
}

.theme-toggle-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: var(--coral-a10);
  border-color: var(--coral-a30);
  color: var(--coral);
}

.color-wheel-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.color-wheel-wrap label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
  white-space: nowrap;
}

.color-wheel-wrap input[type="color"] {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  padding: 2px;
  cursor: pointer;
  background: none;
  overflow: hidden;
  transition: border-color .2s;
}

.color-wheel-wrap input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0
}

.color-wheel-wrap input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 50%
}

.color-wheel-wrap input[type="color"]:hover {
  border-color: var(--coral-a50)
}

/* === HEADER pill (fixed top-right) === */
#header {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  transform: translateY(-120px);
  animation: headerDrop 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.header-pill {
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--pill);
  border: 1px solid var(--border);
  padding: 0.625rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: background .3s;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-logo svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.header-logo-text {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-menu-btn {
  color: var(--foreground);
  transition: color .3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-menu-btn svg {
  width: 22px;
  height: 22px;
}

.header-menu-btn:hover {
  color: var(--coral);
}

/* === MENU === */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.menu-backdrop.open {
  opacity: 1;
  pointer-events: all
}

.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 500px;
  background: var(--menu-bg);
  border-left: 1px solid var(--border);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1), background .3s;
}

.menu-panel.open {
  transform: translateX(0)
}

.menu-close {
  display: flex;
  justify-content: flex-end;
  padding: 1.5rem
}

.menu-close-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
  transition: background .3s
}

.menu-close-btn svg {
  width: 24px;
  height: 24px
}

.menu-close-btn:hover {
  background: rgba(255, 255, 255, 0.1)
}

.menu-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 3rem;
  gap: 0
}

.menu-item,
.menu-item-btn {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 0.875rem 0;
  color: var(--foreground);
  transition: color .3s;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
}

.menu-item:hover,
.menu-item-btn:hover {
  color: var(--coral)
}

.menu-item .arrow {
  opacity: 0;
  transform: translateX(-8px);
  transition: all .3s
}

.menu-item:hover .arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--coral)
}

.menu-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding-left: 1.5rem
}

.menu-submenu.open {
  max-height: 600px
}

.menu-submenu a {
  display: block;
  font-family: var(--font-headline);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 600;
  color: var(--muted-foreground);
  padding: .5rem 0;
  transition: color .3s
}

.menu-submenu a:hover {
  color: var(--coral)
}

.chevron {
  width: 2rem;
  height: 2rem;
  transition: transform .3s
}

.chevron.open {
  transform: rotate(180deg)
}

.menu-footer {
  padding: 2.5rem 3rem;
  border-top: 1px solid var(--border)
}

.menu-footer-btns {
  display: flex;
  gap: .75rem;
  margin-bottom: 1.5rem
}

.menu-portal-btn,
.menu-teamviewer-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1rem;
  border-radius: .75rem;
  font-size: .8rem;
  font-weight: 600;
  transition: all .3s
}

.menu-portal-btn svg,
.menu-teamviewer-btn svg {
  width: 16px;
  height: 16px
}

.menu-portal-btn {
  background: var(--coral-a10);
  border: 1px solid var(--coral-a30);
  color: var(--coral)
}

.menu-portal-btn:hover {
  background: var(--coral-a15)
}

.menu-teamviewer-btn {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  color: var(--muted-foreground)
}

.menu-teamviewer-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--foreground)
}

/* === HERO === */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8rem 1.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0
}

.hero-bg-canvas {
  width: 100%;
  height: 100%;
  opacity: 0.175
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 80%, var(--background) 100%)
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4rem
}

.hero-text {
  max-width: 765px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp .8s cubic-bezier(0.16, 1, 0.3, 1) .2s forwards
}

.hero-h1 {
  font-family: var(--font-headline);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem
}

.hero-h1 .gradient {
  background: linear-gradient(90deg, var(--coral), var(--coral-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.page-hero-h1 .gradient {
  background: linear-gradient(90deg, var(--coral), var(--coral-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.hero-p {
  font-size: .9375rem;
  color: var(--muted-foreground);
  max-width: 540px;
  margin: 0 auto
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: fadeUp .6s ease 1s forwards
}

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--pill);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: .25rem 0
}

[data-theme="light"] .scroll-indicator {
  border-color: rgba(0, 0, 0, 0.2)
}

.scroll-dot {
  width: 6px;
  height: 6px;
  background: var(--coral);
  border-radius: 50%;
  animation: scrollDrop 1.5s ease-in-out infinite
}

/* === AI CHAT === */
.ai-chat {
  position: relative;
  width: 100%;
  max-width: 48rem;
  display: flex;
  flex-direction: column;
  height: 200px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .6s cubic-bezier(0.16, 1, 0.3, 1) .5s forwards;
  transition: height .35s cubic-bezier(0.16, 1, 0.3, 1)
}

/* Grows once a conversation has started, capped at 360px */
.ai-chat.chat-active {
  height: 360px
}

.chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  scrollbar-width: none
}

.chat-messages::-webkit-scrollbar {
  display: none
}

.chat-bubble {
  display: flex;
  animation: bubbleIn .3s ease
}

.chat-bubble.user {
  justify-content: flex-end
}

.bubble-text {
  max-width: 80%;
  padding: .5rem 1rem;
  border-radius: 1rem;
  font-size: .875rem;
  line-height: 1.5;
  white-space: pre-line;
  text-align: left;
}

.bubble-text.assistant {
  background: var(--popover);
  color: var(--foreground)
}

.bubble-text.user {
  background: var(--coral);
  color: white
}

.chat-typing {
  display: flex;
  gap: 4px;
  padding: .5rem 1rem;
  background: var(--popover);
  border-radius: 1rem;
  width: fit-content
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--coral);
  border-radius: 50%;
  animation: typingBounce 1s ease-in-out infinite
}

.typing-dot:nth-child(2) {
  animation-delay: .2s
}

.typing-dot:nth-child(3) {
  animation-delay: .4s
}

.chat-form {
  flex-shrink: 0;
  padding: .75rem 1rem;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  gap: .5rem
}

[data-theme="light"] .chat-form {
  background: rgba(245, 244, 240, 0.97)
}

.chat-input-wrap {
  position: relative;
  flex: 1;
  border-radius: var(--pill);
  padding: 1px;
  background: conic-gradient(from var(--border-angle, 0deg), var(--coral), var(--coral-dark), var(--surface-hover), var(--coral));
  animation: chat-border-spin 4s linear infinite;
}

@keyframes chat-border-spin {
  to {
    --border-angle: 360deg
  }
}

@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.chat-input {
  width: 100%;
  flex: none;
  background: var(--input-bg);
  border: none;
  border-radius: var(--pill);
  padding: 1rem;
  font-size: 1rem;
  color: var(--foreground);
  outline: none;
  font-family: var(--font-body);
  transition: box-shadow .2s
}

.chat-input::placeholder {
  color: var(--muted-foreground)
}

.chat-input:focus {
  box-shadow: 0 0 0 2px var(--coral-a15)
}

.chat-send {
  width: 51px;
  height: 51px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow .3s, transform .2s;
  flex-shrink: 0
}

.chat-send svg {
  width: 20px;
  height: 20px;
  color: white
}

.chat-send:hover {
  box-shadow: 0 4px 20px var(--coral-a50);
  transform: scale(1.05)
}

/* === SECTIONS === */
.section {
  position: relative;
  padding: 8rem 1.5rem
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto
}

.section-heading {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem
}

.section-heading .gradient {
  background: linear-gradient(90deg, var(--coral), var(--coral-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  max-width: 40rem;
  line-height: 1.65
}

/* === STACKING CARDS === */
#projects .section-header {
  margin-bottom: 4rem
}

.stacking-cards {
  position: relative
}

.sticky-card {
  position: sticky;
  padding-bottom: 14rem
}

/* Remove backdrop-filter — it causes scroll jank when cards overlap */
.project-card {
  background: var(--card);
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  /* will-change statt translateZ(0) — verhindert neuen Stacking Context */
  will-change: transform;
  transition: border-color .3s, box-shadow .3s;
}

/* Only the topmost (is-top) sticky-card gets hover effects */
.sticky-card.is-top .project-card:hover {
  border-color: var(--coral-a30);
  box-shadow: var(--shadow-h), 0 0 0 1px var(--coral-a15);
}

.card-img-wrap {
  position: relative;
  height: 400px;
  overflow: hidden
}

@media(min-width:768px) {
  .card-img-wrap {
    height: 500px
  }
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Use transform for zoom — avoids layout recalc */
  transition: transform .7s ease;
}

/* Image zoom only for active (is-top) card on hover */
.sticky-card.is-top .project-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-img-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--card), transparent)
}

.card-body {
  padding: 2rem;
  margin-top: -8rem;
  position: relative;
  z-index: 1
}

@media(min-width:768px) {
  .card-body {
    padding: 3rem
  }
}

.card-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: .4rem
}

.card-title {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem
}

.card-desc {
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  max-width: 40rem;
  margin-bottom: 1.5rem
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem
}

.card-tag {
  padding: .5rem 1rem;
  border-radius: var(--pill);
  font-size: .875rem;
  border: 1px solid transparent
}

.tag-yellow {
  color: #eab308;
  border-color: rgba(234, 179, 8, .3);
  background: linear-gradient(135deg, rgba(234, 179, 8, .15), rgba(202, 138, 4, .1))
}

.tag-red {
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, .3);
  background: linear-gradient(135deg, rgba(255, 107, 107, .15), rgba(255, 82, 82, .1))
}

.tag-blue {
  color: #3b82f6;
  border-color: rgba(59, 130, 246, .3);
  background: linear-gradient(135deg, rgba(59, 130, 246, .15), rgba(37, 99, 235, .1))
}

.tag-purple {
  color: #a855f7;
  border-color: rgba(168, 85, 247, .3);
  background: linear-gradient(135deg, rgba(168, 85, 247, .15), rgba(147, 51, 234, .1))
}

.tag-green {
  color: #22c55e;
  border-color: rgba(34, 197, 94, .3);
  background: linear-gradient(135deg, rgba(34, 197, 94, .15), rgba(21, 128, 61, .1))
}

.card-cta {
  display: flex;
  justify-content: flex-end;
  padding-top: 1rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}

/* Show CTA on hover for any card */
.project-card:hover .card-cta {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* === BUTTONS === */
.btn-coral {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  border-radius: var(--pill);
  color: white;
  font-weight: 500;
  font-size: .9375rem;
  transition: box-shadow .3s, transform .2s;
  cursor: pointer
}

.btn-coral svg {
  width: 16px;
  height: 16px;
  transition: transform .3s
}

.btn-coral:hover {
  box-shadow: 0 8px 30px var(--coral-a40);
  transform: translateY(-1px)
}

.btn-coral:hover svg {
  transform: translate(2px, -2px)
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  color: var(--foreground);
  font-weight: 500;
  font-size: .9375rem;
  background: var(--surface-hover);
  transition: border-color .3s, background .3s
}

.btn-outline:hover {
  border-color: var(--coral-a30);
  background: var(--coral-a10)
}

/* === BENTO GRID ===
   Order in markup (matches menu & footer): Colocation(large) | IT(small) | Cloud(small)
                     KI Integration(small) | Software(small) | App(small) | Design(large)
   Visual layout:    Row1: Colocation(large) + IT(small)
                      Row2: Cloud(small) + KI Integration(small) + Software(small)
                      Row3: App(small) + Design(large)
   3-col grid. large = col-span-2, small = col-span-1
   Source order now matches visual reading order (no out-of-order placement needed).
*/
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Row 1 */
.service-tile:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1;
}

/* Colocation large */
.service-tile:nth-child(2) {
  grid-column: 3 / 4;
  grid-row: 1;
}

/* IT small */
.service-tile:nth-child(3) {
  grid-column: 1 / 2;
  grid-row: 2;
}

/* Cloud small */
/* Row 2 */
.service-tile:nth-child(4) {
  grid-column: 2 / 3;
  grid-row: 2;
}

/* KI Integration small */
.service-tile:nth-child(5) {
  grid-column: 3 / 4;
  grid-row: 2;
}

/* Software small */
.service-tile:nth-child(6) {
  grid-column: 1 / 2;
  grid-row: 3;
}

/* App small */
/* Row 3 */
.service-tile:nth-child(7) {
  grid-column: 2 / 4;
  grid-row: 3;
}

/* Design large */
.service-tile {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--card), var(--background));
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  cursor: pointer;
  text-decoration: none;
  color: var(--foreground);
}

.service-tile:hover {
  border-color: var(--coral-a30);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .15);
}

.service-tile:hover .service-more {
  opacity: 1;
  transform: translateX(0);
}

.service-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: .875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.icon-yellow {
  background: rgba(234, 179, 8, .12);
  color: #eab308;
}

.icon-blue {
  background: rgba(59, 130, 246, .12);
  color: #60a5fa;
}

.icon-green {
  background: rgba(34, 197, 94, .12);
  color: #4ade80;
}

.icon-red {
  background: rgba(255, 107, 107, .15);
  color: #ff6b6b;
}

.icon-purple {
  background: rgba(168, 85, 247, .12);
  color: #c084fc;
}

.icon-sky {
  background: rgba(14, 165, 233, .12);
  color: #38bdf8;
}

.icon-teal {
  background: rgba(20, 184, 166, .12);
  color: #2dd4bf;
}

.service-title {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 700;
}

.service-desc {
  font-size: .9rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  flex: 1;
}

/* "Mehr erfahren" only visible on hover */
.service-more {
  font-size: .875rem;
  font-weight: 600;
  color: var(--coral);
  margin-top: auto;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s, transform .25s;
}

@media(max-width:768px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-tile:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .service-tile:nth-child(2) {
    grid-column: span 1;
    grid-row: auto;
  }

  .service-tile:nth-child(3) {
    grid-column: span 1;
    grid-row: auto;
  }

  .service-tile:nth-child(4) {
    grid-column: span 1;
    grid-row: auto;
  }

  .service-tile:nth-child(5) {
    grid-column: span 1;
    grid-row: auto;
  }

  .service-tile:nth-child(6) {
    grid-column: span 1;
    grid-row: auto;
  }

  .service-tile:nth-child(7) {
    grid-column: 1 / 3;
    grid-row: auto;
  }
}

@media(max-width:480px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .service-tile {
    grid-column: 1 / 2 !important;
    grid-row: auto !important;
  }
}

/* === LOGOS + STATS === */
#logos {
  padding: 4rem 0
}

.logos-label {
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  display: block
}

.logos-track-wrap {
  overflow: hidden;
  position: relative
}

.logos-track-wrap::before,
.logos-track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none
}

.logos-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--background), transparent)
}

.logos-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--background), transparent)
}

.logos-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: logoScroll 25s linear infinite;
  /* Prevent animation pause on hover */
}

.logo-chip {
  padding: .5rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  font-size: .875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  white-space: nowrap;
  background: var(--card);
  flex-shrink: 0
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 4rem
}

@media(min-width:768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr)
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .5rem
}

.stat-number {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  background: linear-gradient(90deg, var(--coral), var(--coral-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.stat-label {
  font-size: .875rem;
  color: var(--muted-foreground);
  font-weight: 500
}

/* === CTA WITH DOT GRID === */
.footer-cta {
  position: relative;
  padding: 4rem 3rem;
  background: linear-gradient(135deg, var(--card), var(--background));
  border: 1px solid var(--border);
  border-radius: 2rem;
  overflow: hidden;
  margin-bottom: 5rem
}

.footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--muted-foreground) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .12;
  pointer-events: none;
  z-index: 0
}

@media(min-width:768px) {
  .footer-cta {
    padding: 5rem 4rem
  }
}

.cta-glow-1,
.cta-glow-2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0
}

.cta-glow-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -50px;
  opacity: .15;
  background: radial-gradient(circle, var(--coral), transparent 70%)
}

.cta-glow-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: 10%;
  opacity: .1;
  background: radial-gradient(circle, var(--coral), transparent 70%)
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center
}

.cta-h2 {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem
}

.cta-h2 .gradient {
  background: linear-gradient(90deg, var(--coral), var(--coral-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.cta-p {
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7
}

.cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center
}

/* === NEWS === */
#news .section-header {
  margin-bottom: 3rem
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media(max-width:700px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}

.news-card:hover {
  border-color: var(--coral-a30);
  transform: translateY(-3px);
  box-shadow: var(--shadow-h), 0 0 0 1px var(--coral-a15);
}

.news-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.news-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.news-card:hover .news-img-wrap img {
  transform: scale(1.05);
}

.news-img-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--card), transparent 55%);
}

.news-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.news-title {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.news-excerpt {
  font-size: .9rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

/* === FOOTER === */
footer {
  background: var(--background);
  border-top: 1px solid var(--border)
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 1.5rem 2rem
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem
}

@media(min-width:640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(min-width:1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr
  }
}

.footer-brand-name {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: .75rem
}

.footer-brand-desc {
  font-size: .875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  max-width: 22rem
}

.footer-col-title {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--foreground);
  margin-bottom: 1rem
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: .5rem
}

.footer-links a {
  font-size: .875rem;
  color: var(--muted-foreground);
  transition: color .3s
}

.footer-links a:hover {
  color: var(--coral)
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .875rem;
  color: var(--muted-foreground);
  margin-bottom: .75rem;
  transition: color .3s
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0
}

.footer-contact-item:hover {
  color: var(--coral)
}

.footer-socials {
  display: flex;
  gap: .75rem;
  margin-top: 1.5rem
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  transition: all .3s
}

.footer-social-btn svg {
  width: 16px;
  height: 16px
}

.footer-social-btn:hover {
  background: var(--coral-a10);
  border-color: var(--coral-a50);
  color: var(--coral)
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start
}

@media(max-width:767px) {

  /* Reserve space so the fixed floating AI-chat pill doesn't sit on
     top of the Impressum/Datenschutz/AGB links when scrolled to the
     very bottom of the page. */
  .footer-bottom {
    padding-bottom: 5rem;
  }
}

@media(min-width:768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center
  }
}

.footer-copy {
  font-size: .875rem;
  color: var(--muted-foreground)
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap
}

.footer-legal a {
  font-size: .875rem;
  color: var(--muted-foreground);
  transition: color .3s
}

.footer-legal a:hover {
  color: var(--coral)
}

/* === DETAIL BACK BUTTON — floating centered fixed === */
.detail-back-btn {
  position: fixed;
  top: 50%;
  left: 2rem;
  transform: translateY(-50%);
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted-foreground);
  font-size: .8rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
  backdrop-filter: blur(12px);
  transition: color .25s, border-color .25s, box-shadow .25s, background .25s;
}

.detail-back-btn .back-label {
  display: none;
}

.detail-back-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform .25s;
}

.detail-back-btn:hover {
  color: var(--coral);
  border-color: var(--coral-a30);
  box-shadow: 0 6px 28px var(--coral-a30);
  background: var(--card);
}

.detail-back-btn:hover svg {
  transform: translateX(-3px);
}

/* Mobile: bottom center with text */
@media (max-width: 767px) {
  .detail-back-btn {
    top: auto;
    left: 50%;
    bottom: 1.75rem;
    transform: translateX(-50%);
    border-radius: var(--pill);
    padding: .6rem 1.1rem .6rem .85rem;
  }

  .detail-back-btn .back-label {
    display: inline;
  }

  .detail-back-btn svg {
    width: 14px;
    height: 14px;
  }
}

/* === DETAIL HERO IMAGE — 40vh compact === */
.detail-hero-img {
  position: relative;
  height: 40vh;
  min-height: 220px;
  max-height: 400px;
  overflow: hidden;
}

.detail-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .65;
}

[data-theme="light"] .detail-hero-img img {
  opacity: .8;
}

.detail-hero-img-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--background) 15%, transparent 70%);
}

.detail-hero-img-meta {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}

/* === DETAIL CONTENT === */
.detail-content {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem;
  max-width: 64rem;
  margin: 0 auto
}

.detail-icon {
  width: 80px;
  height: 80px;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem
}

.detail-icon svg {
  width: 40px;
  height: 40px
}

.detail-h1 {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem
}

.detail-intro {
  font-size: 1.2rem;
  color: var(--muted-foreground);
  max-width: 48rem;
  margin-bottom: 4rem;
  line-height: 1.7
}

.detail-section {
  margin-bottom: 4rem
}

.detail-h2 {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 2rem
}

.features-grid {
  display: grid;
  gap: 1rem
}

@media(min-width:768px) {
  .features-grid {
    grid-template-columns: 1fr 1fr
  }
}

.feature-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--card), var(--background));
  border: 1px solid var(--border);
  border-radius: var(--radius)
}

.feature-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px
}

.feature-check svg {
  width: 14px;
  height: 14px;
  color: white
}

.feature-text {
  font-size: .9375rem;
  color: var(--muted-foreground);
  line-height: 1.6
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem
}

.tech-pill {
  padding: .75rem 1.5rem;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: var(--pill);
  font-weight: 500;
  font-size: .9375rem;
  transition: border-color .3s
}

.tech-pill:hover {
  border-color: var(--coral-a50)
}

.process-list {
  display: flex;
  flex-direction: column;
  gap: 1rem
}

.process-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--card), var(--background));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: flex-start
}

.process-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headline);
  font-weight: 700;
  color: white;
  flex-shrink: 0
}

.process-text {
  font-size: 1rem;
  padding-top: .5rem;
  line-height: 1.6;
  color: var(--muted-foreground)
}

.case-results {
  display: flex;
  flex-direction: column;
  gap: .5rem
}

.case-result-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--muted-foreground)
}

.case-result-item svg {
  width: 20px;
  height: 20px;
  color: var(--coral);
  flex-shrink: 0
}

.detail-cta {
  text-align: center;
  padding: 3rem;
  background: linear-gradient(135deg, var(--card), var(--background));
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  margin-top: 4rem
}

.detail-cta h2 {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem
}

.detail-cta p {
  color: var(--muted-foreground);
  max-width: 36rem;
  margin: 0 auto 2rem
}

.detail-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center
}

/* === PAGE HERO === */
.page-hero {
  position: relative;
  z-index: 1;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  max-width: 64rem;
  margin: 0 auto
}

.page-hero-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1rem;
  display: block
}

.page-hero-h1 {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem
}

.page-hero-p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.7
}

/* === ÜBER UNS / KARRIERE === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 5rem
}

@media(min-width:768px) {
  .about-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

.about-card {
  padding: 2rem;
  background: linear-gradient(135deg, var(--card), var(--background));
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  transition: border-color .3s, transform .3s
}

.about-card:hover {
  border-color: var(--coral-a30);
  transform: translateY(-4px)
}

.about-card h3 {
  font-family: var(--font-headline);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .75rem
}

.about-card p {
  font-size: .9rem;
  color: var(--muted-foreground);
  line-height: 1.7
}

.about-card-icon {
  width: 48px;
  height: 48px;
  border-radius: .75rem;
  background: linear-gradient(135deg, var(--coral-a15), var(--coral-a10));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
  margin-bottom: 1.25rem
}

.about-card-icon svg {
  width: 24px;
  height: 24px
}

.about-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem
}

@media(min-width:768px) {
  .about-story {
    grid-template-columns: 1.5fr 1fr
  }
}

.about-story-h3 {
  font-family: var(--font-headline);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1.25rem
}

.about-story-text p {
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 1rem
}

.about-story-card {
  padding: 2rem;
  background: linear-gradient(135deg, var(--card), var(--background));
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem
}

.about-story-stat span {
  display: block;
  font-family: var(--font-headline);
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--coral), var(--coral-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.about-story-stat small {
  font-size: .8rem;
  color: var(--muted-foreground)
}

.team-heading {
  font-family: var(--font-headline);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem
}

@media(min-width:640px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(min-width:1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

.team-card {
  padding: 1.75rem;
  background: linear-gradient(135deg, var(--card), var(--background));
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color .3s, transform .3s
}

.team-card:hover {
  border-color: var(--coral-a30);
  transform: translateY(-3px)
}

.team-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: .875rem;
  overflow: hidden;
  background: var(--muted)
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s
}

.team-card:hover .team-photo img {
  transform: scale(1.04)
}

.team-info h4 {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .2rem
}

.team-role {
  font-size: .75rem;
  color: var(--coral);
  font-weight: 600;
  margin-bottom: .5rem
}

.team-bio {
  font-size: .8rem;
  color: var(--muted-foreground);
  line-height: 1.6
}

.karriere-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem
}

@media(min-width:768px) {
  .karriere-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

.karriere-card {
  padding: 2rem;
  background: linear-gradient(135deg, var(--card), var(--background));
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  transition: border-color .3s, transform .3s;
  display: flex;
  flex-direction: column
}

.karriere-card:hover {
  border-color: var(--coral-a30);
  transform: translateY(-4px)
}

.karriere-card h3 {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .75rem
}

.karriere-card p {
  font-size: .875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 1rem;
  flex: 1
}

.karriere-badge {
  display: inline-block;
  padding: .3rem .75rem;
  border-radius: var(--pill);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  width: fit-content
}

.karriere-badge.tag-blue {
  background: rgba(59, 130, 246, .15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, .3)
}

.karriere-badge.tag-green {
  background: rgba(34, 197, 94, .12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, .3)
}

.karriere-badge.tag-purple {
  background: rgba(168, 85, 247, .15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, .3)
}

.karriere-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
  flex: 1;
  align-content: flex-start
}

/* === REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s cubic-bezier(0.16, 1, 0.3, 1), transform .8s cubic-bezier(0.16, 1, 0.3, 1)
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0)
}

.reveal-delay-1 {
  transition-delay: .1s
}

.reveal-delay-2 {
  transition-delay: .2s
}

/* === RESPONSIVE === */
@media(max-width:768px) {
  .section {
    padding: 5rem 1rem
  }

  .footer-cta {
    padding: 2rem 1.5rem
  }

  #header {
    top: 1rem;
    right: 1rem
  }

  #test-mode-widget {
    top: 1rem;
    left: 1rem;
    padding: 0.5rem;
  }

  /* Nur Hell/Dunkel-Icon sichtbar, Farbwahl & Beschriftung ausgeblendet */
  .color-wheel-wrap {
    display: none
  }

  .theme-toggle-btn {
    padding: 0.45rem;
  }

  .theme-toggle-label {
    display: none
  }

  .theme-toggle-btn svg {
    width: 16px;
    height: 16px;
  }

  .bento-grid {
    grid-template-columns: 1fr
  }

  .service-tile.bento-large {
    grid-column: span 1
  }
}

/* === CHAT FLOATING (minimized when hero is left) === */
.ai-chat.chat-floating {
  position: fixed;
  bottom: 1.5rem;
  right: auto;
  left: 50%;
  top: auto;
  width: fit-content;
  max-width: 380px;
  height: 56px;
  border-radius: 2rem;
  overflow: hidden;
  z-index: 9999;
  cursor: pointer;
  transform: translateX(-50%) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .45);
  transition: height .4s cubic-bezier(0.16, 1, 0.3, 1),
    width .4s cubic-bezier(0.16, 1, 0.3, 1),
    max-width .4s cubic-bezier(0.16, 1, 0.3, 1),
    border-radius .3s,
    bottom .3s, right .3s;
}

.ai-chat.chat-floating.chat-open {
  width: 380px;
  max-width: calc(100vw - 2rem);
  height: 200px;
  max-height: none;
  border-radius: 1.5rem;
}

.ai-chat.chat-floating.chat-open.chat-active {
  height: 360px;
}

/* Hide messages + form in minimized floating state — taken out of
   flow so their (invisible) width no longer forces the pill wide;
   the mini-label is then the only in-flow child, so the collapsed
   pill hugs the label's own content width. */
.ai-chat.chat-floating:not(.chat-open) .chat-messages,
.ai-chat.chat-floating:not(.chat-open) .chat-form {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.ai-chat.chat-floating.chat-open .chat-messages,
.ai-chat.chat-floating.chat-open .chat-form {
  opacity: 1;
  pointer-events: auto;
  transition: opacity .25s .15s;
}

/* Mini pill label when collapsed */
.chat-mini-label {
  display: none;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 0 1.25rem;
  height: 56px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--foreground);
  white-space: nowrap;
  pointer-events: none;
}

.chat-mini-label svg {
  width: 18px;
  height: 18px;
  color: var(--coral);
  flex-shrink: 0;
}

.ai-chat.chat-floating:not(.chat-open) .chat-mini-label {
  display: flex;
}

/* Pulse dot on mini label */
.chat-mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  animation: chatPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes chatPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .5;
    transform: scale(.75);
  }
}

@media (max-width: 767px) {
  .ai-chat.chat-floating {
    bottom: 1rem;
    right: auto;
    left: 50%;
    max-width: calc(100vw - 2rem);
    transform: translateX(-50%) !important;
  }

  .ai-chat.chat-floating.chat-open {
    width: min(380px, calc(100vw - 2rem));
  }
}