/* ==========================================================================
   ORIGINAL GLASS-PANEL BENTO SYSTEM (3-2-3 Layout)
   ========================================================================== */

/* Header & Premium Badge */
.section-header {
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}

.premium-badge {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.service-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  transition: color 0.5s ease; /* Theme Switch Transition */
}

.service-subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
  transition: color 0.5s ease;
}

/* Base Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* Bento Card Frame */
.bento-card {
  --mouse-x: -1000px;
  --mouse-y: -1000px;
  position: relative;
  border-radius: 28px;
  padding: clamp(1.5rem, 2vw, 2.25rem);
  border: 2px solid var(--card-border) !important;
  text-align: left !important; 
  overflow: visible;
  
  z-index: 1;
  
  transition: background-color 0.5s ease, 
              border-color 0.5s ease, 
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              z-index 0s;
}

.bento-card:hover {
  z-index: 20; 
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
}

.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  pointer-events: none;
  z-index: 0;
}

.bento-col-2 { grid-column: span 2; }
.bento-col-3 { grid-column: span 3; }

/* --------------------------------------------------
   INHALTSVERTEILUNG
   -------------------------------------------------- */
.bento-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bento-card-body {
  flex: 1; 
  display: flex;
  flex-direction: column;
  justify-content: flex-end; 
}

.bento-horizontal .bento-content { flex-direction: row; align-items: center; gap: 2.5rem; }
.bento-horizontal .bento-text-content { flex: 1; display: flex; flex-direction: column; }
.bento-horizontal .bento-list-content { flex: 1.2; }

/* --------------------------------------------------
   TYPOGRAFIE & LAYOUT (Icon + Titel)
   -------------------------------------------------- */
   
/* Light/Dark Mode Fix für das Icon */
.bento-icon-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--card-bg); 
  border: 1px solid var(--card-border); 
  flex-shrink: 0;
  transition: background-color 0.5s ease, border-color 0.5s ease;
}

.bento-icon-wrapper svg { 
  width: 24px; 
  height: 24px;
}

.bento-card-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }

.bento-title {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.25;
  margin: 0;
  transition: color 0.5s ease;
}

.bento-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 1.5rem;
  transition: color 0.5s ease;
}

/* --------------------------------------------------
   FEATURE LISTEN & TOOLTIPS
   -------------------------------------------------- */
.bento-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0;
  margin: 0;
}

.bento-list.multi-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 1.5rem; 
}

.bento-list li {
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center; /* Zentriert Bullets, Text und Tooltip auf einer Höhe */
  gap: 8px;
  color: var(--text-main);
  line-height: 1.4;
  cursor: default;
  transition: color 0.5s ease;
}

/* Bullet Points mit Gradient */
.bento-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: block;
  flex-shrink: 0;
}

/* --- TOOLTIP LOGIK --- */
.info-icon {
  display: inline-flex;
  align-items: center;
  cursor: help;
  position: relative;
  color: var(--text-muted);
  flex-shrink: 0;
}

.bento-list .info-icon { margin-inline-start: -4px; }

.info-icon svg {
  transition: stroke 0.3s ease;
}

/* Der Hover ändert jetzt den SVG-Stroke auf unseren globalen Gradienten */
.info-icon:is(:hover, :focus-visible) svg {
  stroke: url(#brand-stroke);
}

.info-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--card-bg-active, var(--card-bg));
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid var(--card-border);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4); /* Etwas stärkerer Schatten für Tiefe */
  z-index: 100; /* Stellt sicher, dass das Tooltip ganz oben schwimmt */
  pointer-events: none;
}

.info-icon:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------
   CROSS-CARD BORDER GLOW (Gradient-Edition)
   -------------------------------------------------- */
.bento-card::before {
  content: "";
  position: absolute;
  inset: -2px; 
  border-radius: 28px; 
  padding: 3px; 
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), var(--brand) 0%, var(--brand2) 25%, transparent 45%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 1; 
  z-index: 4;
  transition: background 0.1s ease;
}

.bento-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
}

/* Breakpoints */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-col-2, .bento-col-3 { grid-column: span 1; }
  .bento-horizontal .bento-content { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .bento-list.multi-col { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-col-2, .bento-col-3 { grid-column: span 1; }
}

/* Mobile Fallback (Touch) */
@media (hover: none) and (pointer: coarse) {
  .bento-card::before {
    /* Dauerhafter sanfter Gradient-Glow von oben links */
    background: radial-gradient(800px circle at 0% 0%, var(--brand) 0%, var(--brand2) 50%, transparent 70%);
    opacity: 0.6; 
  }
  .bento-card:hover {
    transform: none;
  }
}
