/* =========================================================
   1. ROOT / BASIS
========================================================= */
    :root{
    --bg-main: #0f1014;
    --bg-dark: #090b10;
    --bg-soft: rgba(19, 21, 27, 0.58);
    --bg-soft-2: rgba(255,255,255,0.05);

    --txt-main: #f5f7fb;
    --txt-soft: #aeb7c4;
    --txt-muted: #c3ccd7;

    --line-soft: rgba(255,255,255,0.10);
    --line-strong: rgba(255,255,255,0.16);

    --white: #ffffff;
    --shadow-deep: 0 24px 80px rgba(0,0,0,0.34);
    }

/* =========================================================
   2. ANIMATION HELPERS
========================================================= */
    .fade-in{
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

    .fade-in.visible{
    opacity: 1;
    transform: translateY(0);
    }

    .animate-on-scroll{
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .animate-on-scroll.visible{
    opacity: 1;
    transform: translateY(0);
    }

    .scroll-sway{
    will-change: transform;
    }

    .page-transition{
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.08), transparent 32%),
    #090b10;

  opacity: 1;
  transform: scaleY(1);
  transform-origin: top;
  transition:
    opacity 0.55s ease,
    transform 0.75s cubic-bezier(.22,1,.36,1);
}

body.page-ready .page-transition{
  opacity: 0;
  transform: scaleY(0);
}

body.page-leaving .page-transition{
  opacity: 1;
  transform: scaleY(1);
  transform-origin: bottom;
}

/* =========================================================
   3. GLASS / SHARED UI
========================================================= */
    .glass,
    .glass-card,
    .glass-float,
    .popup-box,
    .card2,
    .nav-header{
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.055),
        rgba(255,255,255,0.028)
    );
    border: 1px solid rgba(255,255,255,0.11);
    box-shadow: 0 24px 70px rgba(0,0,0,0.28);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    }

    /* Bottom viewport fade */
    .viewport-bottom-fade{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 110px;
    pointer-events: none;
    z-index: 1400;
    background: linear-gradient(
        to top,
        rgba(9,11,16,0.95) 0%,
        rgba(9,11,16,0.72) 28%,
        rgba(9,11,16,0.28) 62%,
        rgba(9,11,16,0) 100%
    );
    }


/* =========================================================
   4. HEADER / NAVIGATION
========================================================= */
    .nav-header{
    position: fixed;
    top: 18px;
    
    
    width: min(760px, 88%);
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;

    padding: 8px 12px;
    border-radius: 999px;

    transition:
        top 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        transform 0.35s ease;
    }

    .nav-header.scrolled{
    top: 12px;
    background: linear-gradient(
        180deg,
        rgba(14,16,21,0.78),
        rgba(14,16,21,0.62)
    );
    box-shadow: 0 20px 55px rgba(0,0,0,0.34);
    }

    .nav-enter{
    animation: navReveal 1.05s cubic-bezier(.22,1,.36,1) both;
    }

    @keyframes navReveal{
    0%{
        width: 110px;
        opacity: 0;
        transform: translateX(-50%) translateY(-70px) scaleX(0.4);
    }
    55%{
        width: 150px;
        opacity: 1;
        transform: translateX(-50%) translateY(0) scaleX(1);
    }
    100%{
        width: min(760px, 88%);
        opacity: 1;
        transform: translateX(-50%);
    }
    }

    .nav{
    position: relative;
    display: flex;
    gap: 14px;
    padding: 0;
    border-radius: 999px;
    }

    .nav-link{
    position: relative;
    z-index: 2;
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .25s ease, opacity .25s ease;
    }

    .nav-link.active{
    color: #111319;
    }

    .nav-link:hover{
    transform: translateY(-1px);
    opacity: 0.9;
    }

    .nav-pill{
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 1;

    width: 0;
    height: 38px;
    border-radius: 999px;

    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.96),
        rgba(229,233,241,0.88)
    );
    box-shadow: 0 8px 25px rgba(255,255,255,0.08);

    transition:
        left 0.35s ease,
        width 0.35s ease,
        transform 0.35s ease;
    }

    .logo{
    position: fixed;
    top: 8px;
    right: 20px;
    z-index: 900;
    height: 100px;
    filter: grayscale(1) brightness(1.12) drop-shadow(0 0 18px rgba(255,255,255,0.08));
    pointer-events: none;
    }


/* =========================================================
   5. FLOATING NEWS BUTTON
========================================================= */
    .news-float-btn{
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1200;

    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 10px 18px;
    border-radius: 999px;

    text-decoration: none;
    color: #111319;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(255,255,255,0.85);

    box-shadow: 0 18px 38px rgba(0,0,0,0.28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    }

    .news-float-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 24px 44px rgba(0,0,0,0.32);
    background: #ffffff;
    }

    .news-float-btn i{
    font-size: 1rem;
    transform-origin: top center;
    animation: bellSwing 2s ease-in-out infinite;
    }

    .news-float-btn span:last-child{
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    }

    .news-float-badge{
    position: absolute;
    top: 7px;
    right: 10px;

    width: 10px;
    height: 10px;
    border-radius: 50%;

    background: #111319;
    box-shadow: 0 0 0 0 rgba(17,19,25,0.55);
    animation: badgePulse 2s ease-in-out infinite;
    }

    @keyframes bellSwing{
    0%   { transform: rotate(0deg); }
    8%   { transform: rotate(14deg); }
    16%  { transform: rotate(-12deg); }
    24%  { transform: rotate(10deg); }
    32%  { transform: rotate(-7deg); }
    40%  { transform: rotate(4deg); }
    48%  { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
    }

    @keyframes badgePulse{
    0%   { box-shadow: 0 0 0 0 rgba(17,19,25,0.50); }
    70%  { box-shadow: 0 0 0 12px rgba(17,19,25,0); }
    100% { box-shadow: 0 0 0 0 rgba(17,19,25,0); }
    }

    .news-float-btn.is-read i{
  animation: none;
  transform: rotate(0deg);
}

.news-float-btn.is-read .news-float-badge{
  display: none;
}


/* =========================================================
   12. FOOTER
========================================================= */
    .site-footer{
    padding: 34px 20px 42px;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, #12141a 0%, #0c0e13 100%);
    }

    .footer-minimal{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    width: 100%;
    }

    .footer-minimal a{
    color: rgba(255,255,255,0.86);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: opacity .25s ease, transform .25s ease;
    }

    .footer-minimal a:hover{
    opacity: 0.72;
    transform: translateY(-1px);
    }


/* =========================================================
   13. POPUPS - BASE
========================================================= */
.popup-overlay{
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;

  display: none;
  justify-content: center;
  align-items: center;

  width: 100vw;
  height: 100vh;

  background: rgba(0,0,0,0.48);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.popup-overlay.show{
  display: flex;
}

.popup-box,
.card2{
  color: white;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.11);
  box-shadow: 0 28px 80px rgba(0,0,0,0.34);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  background: linear-gradient(180deg, rgba(25,27,33,0.82), rgba(17,19,24,0.76));
}

.popup-box{
  max-width: 480px;
  padding: 30px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px) scale(.96);
  animation: popupIn .85s cubic-bezier(.22,1,.36,1) forwards;
}

.card2{
  max-width: 420px;
  padding: 1.5rem;
}

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

.popup-icon,
.image{
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
}

.popup-icon{
  width: 68px;
  height: 68px;
}

.image{
  width: 3rem;
  height: 3rem;
  background-color: #7e7e7e96;
}

.popup-icon i{
  font-size: 24px;
  color: white;
}

.image i{
  color: #ffffff;
  font-size: larger;
}

.popup-title{
  margin-bottom: 12px;
  font-size: 1.6rem;
  font-weight: 700;
}

.title{
  margin-top: 0.75rem;
  color: white;
  font-size: 1rem;
  font-weight: 600;
}

.popup-text{
  color: #c4ccd8;
  line-height: 1.8;
}

.card2 .header{
  text-align: center;
}

.actions{
  margin-top: 1rem;
}

.cancel{
  display: block;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 0.5rem;

  color: white;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;

  border-radius: 25px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);

  transition: transform .25s ease, background .25s ease;
}

.desactivate{
  display: block;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 0.5rem;

  color: rgb(22, 22, 22);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;

  border-radius: 25px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgb(255, 255, 255);

  transition: transform .25s ease, background .25s ease;
}

.cancel:hover{
  background: rgba(255,255,255,0.14);
  transform: translateY(-1px);
}

.desactivate:hover{
  background: rgb(182, 182, 182);
  transform: translateY(-1px);
}

/* =========================================================
   SCROLL AREA + MINIMAL SCROLLBAR
========================================================= */
.scrollable-policy{
  max-height: 200px;
  overflow-y: auto;
  margin-top: 0.5rem;
  padding-right: 4px;

  font-size: 0.75rem;
  line-height: 1.4;
  text-align: left;
  color: #c5c5c5;

  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.8) transparent;
}

/* Chrome / Edge / Safari */
.scrollable-policy::-webkit-scrollbar{
  width: 4px;
}

.scrollable-policy::-webkit-scrollbar-track{
  background: transparent; /* kein Rail */
}

.scrollable-policy::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.85);
  border-radius: 999px;
}

.scrollable-policy::-webkit-scrollbar-thumb:hover{
  background: white;
}


/* =========================================================
   14. CORNER POPUPS
========================================================= */
    #startupPopup,
    #cookiePopup{
    position: fixed;
    inset: auto 24px 24px auto;

    display: none;
    justify-content: flex-end;
    align-items: flex-end;

    width: min(420px, calc(100vw - 32px));
    height: auto;

    background: transparent;
    pointer-events: none;
    }

    #startupPopup.show,
    #cookiePopup.show{
    display: flex;
    }

    #startupPopup .popup-box,
    #cookiePopup .card2{
    width: 100%;
    max-width: 420px;
    padding: 24px;
    pointer-events: auto;

    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.34);

    opacity: 0;
    transform: translateX(120px) scale(0.96);
    animation: flyInCorner 0.52s cubic-bezier(.14,.84,.22,1) forwards;
    }

    #startupPopup .popup-title,
    #cookiePopup .title{
    font-size: 1.2rem;
    }

    #startupPopup .popup-text,
    #cookiePopup .scrollable-policy{
    font-size: 0.92rem;
    line-height: 1.65;
    }

    #cookiePopup .scrollable-policy{
    max-height: none;
    overflow: visible;
    padding-right: 0;
    }

    @keyframes flyInCorner{
    0%{
        opacity: 0;
        transform: translateX(120px) scale(0.96);
    }
    72%{
        opacity: 1;
        transform: translateX(-4px) scale(1);
    }
    100%{
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    }


/* =========================================================
   15. RESPONSIVE - TABLET
========================================================= */
    @media (max-width: 1100px){
    .feature-split{
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .curved-grid{
        grid-template-columns: 1fr;
    }

    .tool-left,
    .tool-center,
    .tool-right{
        margin-top: 0;
    }
    }


/* =========================================================
   16. RESPONSIVE - MOBILE
========================================================= */
    @media (max-width: 768px){
    .nav-header{
        width: 94%;
        padding-right: 62px;
    }

    .nav{
        gap: 12px;
        padding: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link{
        padding: 6px 12px;
        font-size: 14px;
    }

    .nav-pill{
        height: 36px;
    }

    .news-float-btn{
        top: 18px;
        left: 16px;
        gap: 10px;
        padding: 10px 14px;
    }

    .news-float-btn span:last-child{
        display: none;
    }

    .hero-corner-logo{
        top: 86px;
        right: 16px;
        width: 74px;
        height: auto;
    }

    .hero-copy-clean{
        top: 50%;
        width: 90%;
    }

    .txt{
        font-size: 2.7rem;
    }

    .hero-copy-clean p{
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .teiler{
        width: 92%;
        margin-top: 70px;
        gap: 42px;
        flex-direction: column;
        align-items: center;
    }

    .main-wrapper{
        order: 1;
        width: 100%;
        justify-content: center;
    }

    .main{
        width: 100%;
        max-width: 520px;
        min-height: auto;
        padding: 28px 22px;
        border-radius: 24px;
    }

    .main h1,
    .main p{
        text-align: center;
    }

    .main p,
    #text{
        max-width: 100%;
        font-size: 0.97rem;
        line-height: 1.75;
    }

    .grouper{
        order: 2;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 18px;
        width: 100%;
        height: auto;
        margin-bottom: -20%;
    }

    .big,
    .medium,
    .small{
        position: static;
    }

    .ball{
        width: 180px;
        height: 180px;
        margin-right: -20%;
    }

    .ball2{
        width: 140px;
        height: 140px;
        margin-top: -16px;
        margin-left: -60%;
    }

    .ball3{
        width: 110px;
        height: 110px;
        margin-top: -16px;
        margin-right: -40%;
    }

    .tools-section{
        height: auto !important;
        padding-bottom: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .head_sub{
        margin-left: -10%;
    }

    .sub{
        width: 90%;
        margin-left: -10%;
    }

    .tool-grid{
        grid-template-columns: 1fr;
        align-items: stretch;
        justify-content: center;
        justify-self: center;

        width: 100%;
        max-width: 420px;
        height: auto;
        margin: 0 auto 20%;
        gap: 32px;
    }

    .tool{
        width: 90%;
        margin: 0 auto;
        overflow: visible;
    }

    .tool.active .tool-content{
        max-height: 1000px !important;
    }

    .feature-split{
        gap: 30px;
    }

    .feature-card-top img{
        height: auto;
    }

    .texter p{
        width: 90%;
        text-align: center;
        font-size: 14px;
        justify-self: center !important;
    }

    .texter h2{
        width: 100%;
        justify-self: center !important;
    }

    .site-footer{
        padding: 30px 0;
    }

    #startupPopup,
    #cookiePopup{
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
    }

    #startupPopup .popup-box,
    #cookiePopup .card2{
        max-width: none;
        padding: 18px;
        border-radius: 20px;
    }
    }

    @media (max-width: 980px){
    .intro-mosaic-section{
        grid-template-columns: 1fr;
        gap: 48px;
        margin: 100px auto 180px;
    }

    .intro-copy{
        order: 2;
        align-items: center;
    }

    .intro-copy h1,
    .intro-copy p{
        text-align: center;
    }

    .intro-mosaic{
        order: 1;
        grid-template-rows: repeat(12, 28px);
        min-height: 420px;
    }

    .tile-xl{
        grid-column: 1 / span 7;
        grid-row: 1 / span 4;
    }

    .tile-md{
        grid-column: 8 / span 5;
        grid-row: 1 / span 3;
    }

    .tile-sm{
        grid-column: 8 / span 5;
        grid-row: 4 / span 2;
    }

    .tile-wide{
        grid-column: 1 / span 12;
        grid-row: 5 / span 3;
    }

    .tile-tall{
        grid-column: 1 / span 6;
        grid-row: 8 / span 5;
    }

    .intro-mosaic .tile-sm:last-child{
        grid-column: 7 / span 6;
        grid-row: 8 / span 5;
    }

    .viewport-bottom-fade{
        height: 82px;
    }
    }

    @media (max-width: 768px){
    .intro-copy h1{
        font-size: clamp(2.2rem, 9vw, 3.3rem);
    }

    .intro-copy p{
        font-size: 0.98rem;
        line-height: 1.82;
    }

    .intro-mosaic{
        gap: 12px;
    }

    .mosaic-tile{
        border-radius: 20px;
    }
    }

    