/* Local Fonts → loaded via <link> in base.html for faster rendering */

/* =========================
   COLOR TOKENS (ändert nur hier, um schnell Themes zu testen)
   (alle Werte sind exakt deine bisherigen Farben)
   ========================= */
:root {
    /* bestehend */
    --primary-color: #3f96ee;
    --light-text: #eee;
    --content-width: 1120px; /* hier später einfach ändern */

    /* page */
    --c-page-bg: #fff;
    --c-page-text: #333;

    /* surfaces (header/newsletter/footer) */
    --c-surface-bg: #333;
    --c-surface-text: #fff;

    /* buttons */
    --c-on-primary: black;
    --c-primary-hover: #81f781;

    /* borders */
    --c-border-top: rgba(255, 255, 255, 0.1);

    /* brand logo gradient (nur Blau, kein Gold) */
    --brand-g1: #ffffff;
    --brand-g2: #6ba3ff;
    --brand-g3: #5b8feb;
    --brand-g4: #ffffff;
    --brand-glow: rgba(107, 163, 255, 0.45);

    /* newsletter submit button (white/black) */
    --btn-submit-bg: #fff;
    --btn-submit-text: #000;
    --btn-submit-border: var(--btn-submit-bg);

    --btn-submit-hover-bg: #000;
    --btn-submit-hover-text: #fff;
    --btn-submit-hover-border: var(--btn-submit-hover-bg);

    /* nav typography + hover */
    --nav-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --nav-font-size: 1.3125rem;
    --nav-font-weight: 500;

    --nav-link-color: var(--c-surface-text);
    --nav-link-hover-color: var(--primary-color);

    /* animated hover “pill” behind text */
    --nav-hover-bg-1: rgba(63, 150, 238, 0.18);  /* dein Blau als Glow */
    --nav-hover-bg-2: rgba(242, 211, 107, 0.18); /* warmes Gold (passt zum Logo) */
    --nav-hover-shadow: rgba(63, 150, 238, 0.25);

    --nav-hover-radius: 999px;
    --nav-hover-padding-y: 10px;
    --nav-hover-padding-x: 15px;
    --nav-hover-duration: 1.2s;

    /* bubble nav effect */
    --nav-bubble-color-strong: var(--c-surface-text);
    --nav-bubble-color-mid: rgba(199, 210, 254, 1);
    --nav-bubble-color-weak: rgba(238, 242, 255, 0.72);

    --nav-bubble-weight-strong: 900;
    --nav-bubble-weight-mid: 500;
    --nav-bubble-weight-weak: 300;

    --nav-bubble-transition: 0.35s;

    --footer-content-width: 1200px;

    --accent-blue: #3f96ee;
    --accent-gold: #f2d36b;

    --accent-blue-soft: rgba(63,150,238,0.10);
    --accent-gold-soft: rgba(242,211,107,0.14);

    /* button spin shimmer */
    --shimmer-hue: 213deg;
    --shimmer-sat: 95%;
    --shimmer-lit: 91%;
}
@property --mask {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}
@keyframes btn-spin {
    0% { --mask: 0deg; }
    100% { --mask: 360deg; }
}

html {
    min-height: 100%;
    height: auto;
    margin: 0;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--c-page-bg);
    color: var(--c-page-text);
    position: relative;
}

/* Hintergrund-Blobs (3 animierte Bälle wie in der Broschüre) */
.blob-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 288px;
    height: 288px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.7;
    mix-blend-mode: multiply;
    animation: blob-float 7s ease-in-out infinite;
    will-change: transform;
    contain: layout style;
}

.blob--1 {
    top: 0;
    left: -16px;
    background: #d8b4fe;
}

.blob--2 {
    top: 0;
    right: -16px;
    background: #fde047;
    animation-delay: 2s;
}

.blob--3 {
    bottom: -32px;
    left: 80px;
    background: #93c5fd;
    animation-delay: 4s;
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

@media (prefers-reduced-motion: reduce) {
    .blob {
        animation: none;
    }
}

header {
    background: var(--c-surface-bg);
    color: var(--c-surface-text);
    padding: 12.5px 0;
    width: 100%;
    box-sizing: border-box;
}

header nav {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

header nav .logo {
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--c-surface-text);
    text-decoration: none;
}

header nav .logo span:not(.brand-word):not(.brand-ai) {
    color: var(--primary-color);
}

header nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

header nav ul li {
    margin: 0 19px;
}

header nav ul li a {
    font-family: var(--nav-font);
    font-size: var(--nav-font-size);
    font-weight: var(--nav-font-weight);
    color: var(--nav-link-color);
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
    opacity: 0.9;
}

header nav ul li a:hover {
    text-decoration: none;
    color: var(--nav-link-hover-color);
    opacity: 1;
    transform: translateY(-1px);
}

main {
    flex: 1 0 auto;
    padding: 20px 20px 100px 20px;
    margin: 0 auto;
    max-width: var(--content-width);
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* Newsletter Form (modern input group) */
.newsletter-form{
  max-width: 560px;
  margin: 0 auto;
}

.newsletter-form h2{
  color: #8b5cf6;
}

.newsletter-group{
  display: flex;
  align-items: stretch;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;

  /* wirkt “premium” auf dunklem Footer */
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
}

/* schöner Fokus (wenn Input aktiv ist) */
.newsletter-group:focus-within{
  border-color: rgba(139,92,246,0.55); /* nutzt deine Primary-Farbe indirekt */
  box-shadow: 0 0 0 4px rgba(139,92,246,0.20);
}

.newsletter-group input{
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--c-surface-text);
  font-size: 1rem;
}

.newsletter-group input::placeholder{
  color: #8b5cf6;
}

/* Submit: weiß/schwarz + Trennlinie links */
.newsletter-group .newsletter-submit{
  font-family: "Roboto", sans-serif;
  text-transform: uppercase;
  padding: 0 18px;
  border: 0;
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  /* einzige sichtbare Linie: da wo Button an Input stößt */
  border-left: 1px solid rgba(0,0,0,0.18);

  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.newsletter-group .newsletter-submit:hover{
  background: #000;
  color: #fff;
  transform: translateY(-1px);

  /* Linie bleibt sichtbar */
  border-left-color: rgba(255,255,255,0.22);
}

/* Mobile: stacked (Input oben, Button unten) */
@media (max-width: 576px){
  .newsletter-group{
    flex-direction: column;
  }

  .newsletter-group .newsletter-submit{
    padding: 12px 16px;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,0.14);
  }

  .newsletter-group .newsletter-submit:hover{
    border-top-color: rgba(255,255,255,0.22);
  }
}

/* ===== Footer (dunkler Hintergrund, Font wie footer.html) ===== */
.footer-watercolor {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    background: #45494B;
    color: #eee;
    font-family: "Plus Jakarta Sans", sans-serif;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.footer-watercolor #watercolor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    filter: blur(30px) contrast(1.5);
}

.footer-content-layer {
    position: relative;
    z-index: 20;
    max-width: var(--footer-content-width);
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 2rem 3rem;
    margin-bottom: 3rem;
    min-width: 0;
}

.footer-col {
    min-width: 0;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo.logo.brand {
    font-size: 2.5rem;
}

.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.1);
    padding: 0.5rem;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #8b5cf6;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid #8b5cf6;
    padding-bottom: 0.25rem;
    display: inline-block;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #eee;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #8b5cf6;
}

.footer-links a::before {
    content: "›";
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.footer-links a:hover::before {
    transform: translateX(4px);
}

.footer-newsletter-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
    margin: 0 0 1rem 0;
}

.footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-newsletter-form input {
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    font-size: 1rem;
    color: #fff;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.footer-newsletter-form input::placeholder {
    color: rgba(255,255,255,0.6);
}

.footer-newsletter-form input:focus {
    border-color: #8b5cf6;
    background: rgba(255,255,255,0.08);
}

.footer-newsletter-btn {
    padding: 0.75rem 1rem;
    background: #fff;
    color: #333;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.footer-newsletter-btn:hover {
    background: #8b5cf6;
    color: #fff;
    transform: translateY(-2px);
}

.footer-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #eee;
    transition: background 0.2s, color 0.2s;
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
}

.footer-social-link:hover {
    background: rgba(139, 92, 246, 0.3);
    color: #8b5cf6;
}

.footer-bottom {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.footer-copy, .footer-made {
    margin: 0;
}

.footer-heart {
    color: #e74c3c;
    display: inline-block;
    font-size: 1em;
    line-height: 1;
    vertical-align: middle;
}

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

@media (max-width: 576px) {
    .footer-content-layer {
        padding: 2rem 1rem 2.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
        margin-bottom: 2rem;
    }
    .footer-col {
        width: 100%;
    }
    .footer-brand {
        order: 1;
    }
    .footer-col:nth-child(2) { order: 2; }
    .footer-col:nth-child(3) { order: 3; }
    .footer-col:nth-child(4) { order: 4; }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }
    .footer-copy, .footer-made {
        text-align: center;
    }
}

/* Toggle-Button (Hamburger) */
#nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--c-surface-text);
    cursor: pointer;
}

/* nav-top Container für Mobile */
.nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    #nav-toggle {
        display: block;
    }

    .nav-top .logo {
        margin-left: auto;
        order: 2;
    }

    #nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 12px;
    }

    #nav-list.show {
        display: flex;
    }

    #nav-list li {
        margin: 12px 0;
    }
}
@media (min-width: 769px) {
    .nav-top {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: auto;
    }

    .nav-top .logo {
        display: block;
        font-size: 1.875rem;
        font-weight: bold;
        color: var(--c-surface-text);
        text-decoration: none;
        margin-left: 0;
        margin-right: auto;
        order: 0;
    }

    header nav {
        flex-direction: column; /* optional, falls unterhalb noch mehr kommt */
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #nav-toggle {
        display: none;
    }

    #nav-list {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 38px;
        margin-top: 0;
    }

    #nav-list li {
        margin: 0;
    }
}

/* Brand logo */
.logo.brand{
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 2.5px;
  font-size: 30px;         /* Desktop */
}

@media (max-width: 600px){
  .logo.brand{ font-size: 25px; }
}

/* Animated gradient text */
.logo.brand .brand-word,
.logo.brand .brand-ai{
  display: inline-block;
  background: linear-gradient(90deg, var(--brand-g1), var(--brand-g2), var(--brand-g3), var(--brand-g4));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brandSheen 2.5s linear infinite;
}

/* „ai“ mit blauem Glow (kein Gold) */
.logo.brand .brand-ai{
  filter: drop-shadow(0 0 12px var(--brand-glow));
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .logo.brand .brand-word,
  .logo.brand .brand-ai{
    animation: none;
  }
}

@keyframes brandSheen{
  0%{ background-position: 0% 50%; }
  100%{ background-position: 300% 50%; }
}

/* ===== NAV LAYOUT OVERRIDE: Menu zentriert, Sprache rechts ===== */

/* Desktop + generell */
.nav-container{
  display: grid;
  grid-template-areas: "left menu right";
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  width: 100%;
}

/* Links: Toggle + Logo */
.nav-left{
  grid-area: left;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Mitte: Menü zentriert */
#nav-list.nav-menu{
  grid-area: menu;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 38px;
  padding: 0;
  margin: 0;
}

/* Rechts: DE/EN */
.nav-right{
  grid-area: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
}

/* Language switcher styles → see language-switcher.css */

/* Mobile: obere Zeile (Logo links, Sprache rechts), Menü darunter einklappbar */
@media (max-width: 768px){
  .nav-container{
    grid-template-areas:
      "left right"
      "menu menu";
    grid-template-columns: 1fr auto;
    gap: 15px;
  }

  /* Dein Toggle bleibt sichtbar wie bisher */
  #nav-toggle{ display: block; }

  /* Menü einklappbar */
  #nav-list.nav-menu{
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 8px;
    width: 100%;
  }

  #nav-list.show{
    display: flex;
  }
}

/* Desktop: Toggle aus */
@media (min-width: 769px){
  #nav-toggle{ display: none; }
}

/* ===== Bubble effect for nav links (per-letter) ===== */
a[data-bubble].bubble-link{
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  white-space: pre;              /* damit Leerzeichen erhalten bleiben */
  display: inline-flex;
  gap: 0;
}

a[data-bubble].bubble-link .bubble-char{
  transition:
    var(--nav-bubble-transition) font-weight,
    var(--nav-bubble-transition) color;
}

/* Hovered char */
a[data-bubble].bubble-link .bubble-char:hover{
  font-weight: var(--nav-bubble-weight-strong);
  color: var(--nav-bubble-color-strong);
}

/* To the right */
a[data-bubble].bubble-link .bubble-char:hover + .bubble-char{
  font-weight: var(--nav-bubble-weight-mid);
  color: var(--nav-bubble-color-mid);
}

a[data-bubble].bubble-link .bubble-char:hover + .bubble-char + .bubble-char{
  font-weight: var(--nav-bubble-weight-weak);
  color: var(--nav-bubble-color-weak);
}

/* To the left (needs :has support) */
a[data-bubble].bubble-link .bubble-char:has(+ .bubble-char:hover){
  font-weight: var(--nav-bubble-weight-mid);
  color: var(--nav-bubble-color-mid);
}

a[data-bubble].bubble-link .bubble-char:has(+ .bubble-char + .bubble-char:hover){
  font-weight: var(--nav-bubble-weight-weak);
  color: var(--nav-bubble-color-weak);
}

/* Box styles are defined in index.css */
.fit-item{
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.fit-item:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.10);
  border-color: rgba(63,150,238,0.18);
}

.fit-icon{
  transition: transform 0.25s ease;
}
.fit-item:hover .fit-icon{
  transform: rotate(-2deg) scale(1.03);
}
.tag{
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tag:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.12);
}
.btn{
  font-family: "Roboto", sans-serif;
  text-transform: uppercase;
  position: relative;
  overflow: visible;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
  box-sizing: border-box;
  max-width: 100%;
  word-wrap: break-word;
}

a.btn{
  text-decoration: none;
}

.btn.btn-potential-check .btn-text{
  position: relative;
  z-index: 1;
}

/* Spin shimmer nur auf Potenzial-Check-Buttons; Animation dauerhaft (unsichtbar), damit erster Hover nicht ruckelt */
.btn.btn-potential-check .shimmer{
  position: absolute;
  inset: -40px;
  border-radius: inherit;
  mix-blend-mode: plus-lighter;
  pointer-events: none;
  -webkit-mask-image: conic-gradient(
    from var(--mask, 0deg),
    transparent 0%, transparent 10%, black 36%, black 45%,
    transparent 50%, transparent 60%, black 85%, black 95%, transparent 100%
  );
  mask-image: conic-gradient(
    from var(--mask, 0deg),
    transparent 0%, transparent 10%, black 36%, black 45%,
    transparent 50%, transparent 60%, black 85%, black 95%, transparent 100%
  );
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-animation: btn-spin 3s linear infinite both -0.5s;
  animation: btn-spin 3s linear infinite both -0.5s;
}

.btn.btn-potential-check .shimmer::before,
.btn.btn-potential-check .shimmer::after{
  content: "";
  position: absolute;
  inset: 40px;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.btn.btn-potential-check .shimmer::before{
  z-index: -1;
  box-shadow:
    0 0 3px 2px hsl(var(--shimmer-hue), 20%, 95%),
    0 0 7px 4px hsl(var(--shimmer-hue), 20%, 80%),
    0 0 13px 8px hsl(var(--shimmer-hue), 40%, 60%),
    0 0 22px 6px hsl(var(--shimmer-hue), 20%, 40%);
}

.btn.btn-potential-check .shimmer::after{
  z-index: 2;
  box-shadow:
    inset 0 0 0 1px hsl(var(--shimmer-hue), 70%, 95%),
    inset 0 0 3px 1px hsl(var(--shimmer-hue), 100%, 80%),
    inset 0 0 9px 1px hsl(var(--shimmer-hue), 100%, 70%);
}

.btn.btn-potential-check:hover .shimmer::before,
.btn.btn-potential-check:hover .shimmer::after,
.btn.btn-potential-check:focus .shimmer::before,
.btn.btn-potential-check:focus .shimmer::after{
  opacity: 1;
}

.btn.btn-potential-check:focus .shimmer,
.btn.btn-potential-check:active .shimmer{
  -webkit-animation-play-state: paused;
  animation-play-state: paused;
}

/* Hover-Effekt (Slide/Lichtstreifen) nur für Buttons mit .btn-slide (z. B. Karriere „Jetzt bewerben“) */
.btn.btn-slide{
  overflow: hidden;
}

.btn.btn-slide::after{
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 220%;
  height: 180%;
  opacity: 0;
  transform: translateX(-35%) rotate(12deg) translateZ(0);
  transition: transform 0.6s ease, opacity 0.6s ease;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.btn.btn-slide:hover::after{
  opacity: 1;
  transform: translateX(25%) rotate(12deg) translateZ(0);
}

.btn-outline.btn-slide::after{
  background: linear-gradient(120deg, transparent, rgba(0,0,0,0.10), transparent);
}

/* Text marker effect – gleiche kräftige Farbe wie Garantie-Marker (rgba(255,228,92)) */
.text-marker {
  margin: 0 -0.4em;
  padding: 0.1em 0.4em;
  border-radius: 0.8em 0.3em;
  background: transparent;
  background-image: linear-gradient(
    to right,
    rgba(255, 228, 92, 0.25),
    rgba(255, 228, 92, 0.88) 4%,
    rgba(255, 228, 92, 0.55)
  );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  display: inline;
  position: relative;
  animation: markerFadeIn 0.6s ease-out;
}

@keyframes markerFadeIn {
  0% {
    background-image: linear-gradient(
      to right,
      rgba(255, 228, 92, 0),
      rgba(255, 228, 92, 0) 4%,
      rgba(255, 228, 92, 0)
    );
  }
  100% {
    background-image: linear-gradient(
      to right,
      rgba(255, 228, 92, 0.25),
      rgba(255, 228, 92, 0.88) 4%,
      rgba(255, 228, 92, 0.55)
    );
  }
}

/* Purple / theme-color marker variant */
.text-marker-purple {
  margin: 0 -0.4em;
  padding: 0.1em 0.4em;
  border-radius: 0.8em 0.3em;
  background: transparent;
  background-image: linear-gradient(
    to right,
    rgba(139, 92, 246, 0.2),
    rgba(139, 92, 246, 0.5) 4%,
    rgba(139, 92, 246, 0.32)
  );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  display: inline;
  position: relative;
  animation: markerPurpleFadeIn 0.6s ease-out;
}

@keyframes markerPurpleFadeIn {
  0% {
    background-image: linear-gradient(
      to right,
      rgba(139, 92, 246, 0),
      rgba(139, 92, 246, 0) 4%,
      rgba(139, 92, 246, 0)
    );
  }
  100% {
    background-image: linear-gradient(
      to right,
      rgba(139, 92, 246, 0.2),
      rgba(139, 92, 246, 0.5) 4%,
      rgba(139, 92, 246, 0.32)
    );
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .text-marker,
  .text-marker-purple {
    animation: none;
  }
}
