/* =========================================================
   FabianStang.de - Modernisierte Style-Erweiterungen
   Fokus: moderner Look, weicher Glow, saubere Hover-Effekte
========================================================= */

/* =========================================================
   ALLGEMEINE SCHRIFTFARBEN
========================================================= */

/* Lightmode */
body {
  color: #1f2937;
}

/* =========================================================
   ÜBERSCHRIFTEN MIT GRADIENT + LEICHTEM GLOW
========================================================= */

h1, h2, h3, h4, h5, h6,
.section-title,
.card-title {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 45%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.10);
}

/* Darkmode */
[data-bs-theme="dark"] body,
body.dark-mode {
  color: #d6deea;
}

/* Überschriften im Darkmode etwas heller/bläulicher */
[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6,
[data-bs-theme="dark"] .section-title,
[data-bs-theme="dark"] .card-title,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode .section-title,
body.dark-mode .card-title {
  background: linear-gradient(135deg, #f8fbff 0%, #93c5fd 45%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 10px rgba(96, 165, 250, 0.16),
    0 0 20px rgba(59, 130, 246, 0.08);
}

/* Fließtext Darkmode */
[data-bs-theme="dark"] p,
[data-bs-theme="dark"] li,
[data-bs-theme="dark"] span,
[data-bs-theme="dark"] .card-text,
body.dark-mode p,
body.dark-mode li,
body.dark-mode span,
body.dark-mode .card-text {
  color: #c8d2df;
}

/* =========================================================
   ACCORDION-HEADER VOM GLOBALEN HEADING-GRADIENT AUSNEHMEN
========================================================= */

.accordion-header,
.accordion-header h1,
.accordion-header h2,
.accordion-header h3,
.accordion-header h4,
.accordion-header h5,
.accordion-header h6 {
  background: none !important;
  -webkit-background-clip: border-box !important;
  -webkit-text-fill-color: initial !important;
  background-clip: border-box !important;
  color: inherit !important;
  text-shadow: none !important;
}

/* FAQ / Accordion Button Text sichtbar machen
   und farblich an die normalen Überschriften anlehnen */
#faqAccordion .accordion-button {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 45%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent !important;
  background-clip: text;
  color: transparent !important;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.10);
  font-weight: 600;
}

#faqAccordion .accordion-button.collapsed {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 45%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent !important;
  background-clip: text;
  color: transparent !important;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.10);
}

#faqAccordion .accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 45%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent !important;
  background-clip: text;
  color: transparent !important;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.10);
}

[data-bs-theme="dark"] #faqAccordion .accordion-button,
body.dark-mode #faqAccordion .accordion-button,
[data-bs-theme="dark"] #faqAccordion .accordion-button.collapsed,
body.dark-mode #faqAccordion .accordion-button.collapsed,
[data-bs-theme="dark"] #faqAccordion .accordion-button:not(.collapsed),
body.dark-mode #faqAccordion .accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, #f8fbff 0%, #93c5fd 45%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent !important;
  background-clip: text;
  color: transparent !important;
  text-shadow:
    0 0 10px rgba(96, 165, 250, 0.16),
    0 0 20px rgba(59, 130, 246, 0.08);
}

/* =========================================================
   UNIVERSAL HOVER SHADOW
========================================================= */

.hover-shadow {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.hover-shadow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.18),
    rgba(96, 165, 250, 0.14),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hover-shadow:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.22),
    0 0 18px rgba(59, 130, 246, 0.18),
    0 0 38px rgba(96, 165, 250, 0.14);
}

.hover-shadow:hover::before {
  opacity: 1;
}

/* =========================================================
   PORTFOLIO CARDS
========================================================= */

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.30);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.24),
    0 0 22px rgba(59, 130, 246, 0.18),
    0 0 40px rgba(96, 165, 250, 0.12);
}

.portfolio-card .portfolio-thumb {
  height: 220px;
  overflow: hidden;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  position: relative;
  background: #0f172a;
}

.portfolio-card .portfolio-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(5, 10, 20, 0.55) 0%,
      rgba(5, 10, 20, 0.10) 40%,
      rgba(5, 10, 20, 0.00) 100%
    );
  pointer-events: none;
  z-index: 1;
}

.portfolio-card .portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition:
    transform 0.45s ease,
    filter 0.45s ease;
  filter: saturate(1.02) contrast(1.02);
}

.portfolio-card:hover .portfolio-thumb img {
  transform: scale(1.05);
  filter: saturate(1.08) contrast(1.05) brightness(1.02);
}

/* Bläulicher Glow-Rand */
.portfolio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.22),
    rgba(96, 165, 250, 0.16),
    rgba(255, 255, 255, 0.05)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.75;
  pointer-events: none;
}

/* Overlay-Button nur über Bild, nicht über Text */
.stretched-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 2;
}

/* Content bleibt sauber über Effekten */
.portfolio-card .card-body,
.hover-shadow .card-body {
  position: relative;
  z-index: 2;
}

/* =========================================================
   LINKS
========================================================= */

.portfolio-card a,
.hover-shadow a {
  transition:
    color 0.25s ease,
    text-shadow 0.25s ease;
}

.portfolio-card a:hover,
.hover-shadow a:hover {
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.22);
}

/* =========================================================
   BUTTON HOVER MIT GRADIENT
========================================================= */

.btn {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #2563eb, #3b82f6, #60a5fa);
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow:
    0 8px 20px rgba(37, 99, 235, 0.25),
    0 0 16px rgba(96, 165, 250, 0.20);
}

/* Optional auch für outline buttons schöner */
.btn-outline-primary:hover,
.btn-outline-dark:hover,
.btn-outline-secondary:hover {
  background: linear-gradient(135deg, #2563eb, #3b82f6, #60a5fa);
  border-color: #3b82f6;
  color: #fff;
}

/* =========================================================
   OPTIONALER DUNKLER BACKGROUND FÜR DARKMODE
========================================================= */

[data-bs-theme="dark"],
body.dark-mode {
  background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
}

