@font-face {
        font-family: "Geist";
        font-style: normal;
        font-weight: 600;
        font-display: block;
        src: url("fonts/geist/Geist-SemiBold.woff2") format("woff2");
      }
      @font-face {
        font-family: "Geist";
        font-style: normal;
        font-weight: 700;
        font-display: block;
        src: url("fonts/geist/Geist-Bold.woff2") format("woff2");
      }

      html, body { margin: 0; min-height: 100%; background: hsl(210 40% 98%); }
      html[data-brand="kitaly"], html[data-brand="kitaly"] body { background: #F7F8F6; }
      #root { min-height: 100vh; isolation: isolate; }

      #app-boot-splash {
        position: fixed;
        inset: 0;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: opacity 0.4s ease, visibility 0.4s ease;
      }
      #app-boot-splash.app-boot-splash--hide {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
      }

      /* Hortara */
      #app-boot-splash[data-brand="hortara"] {
        gap: 0.75rem;
        background:
          radial-gradient(circle at 12% -8%, hsl(174 52% 48% / 0.14), transparent 42%),
          hsl(210 40% 98%);
      }
      #app-boot-splash[data-brand="hortara"] .splash-kitaly { display: none; }
      #app-boot-splash[data-brand="hortara"] .splash-hortara {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
      }
      #app-boot-splash[data-brand="hortara"] .splash-hortara-ring-wrap {
        position: relative;
        width: 7rem;
        height: 7rem;
      }
      #app-boot-splash[data-brand="hortara"] .splash-hortara-ring {
        position: absolute;
        inset: 0;
        color: __BRAND_THEME_COLOR__;
      }
      #app-boot-splash[data-brand="hortara"] .splash-hortara-arc {
        transform-origin: center;
        stroke-dasharray: 80 247;
        animation: splash-spin 1.4s linear infinite;
      }
      #app-boot-splash[data-brand="hortara"] .splash-hortara-logo {
        position: absolute;
        inset: 0;
        margin: auto;
        width: auto;
        max-width: 5.5rem;
        height: 3.5rem;
        object-fit: contain;
      }
      #app-boot-splash[data-brand="hortara"] p {
        margin: 0;
        font-family: system-ui, sans-serif;
        font-size: 0.875rem;
        color: hsl(215 16% 42%);
      }

      /* Kitaly — Paper-Bühne → weicher Übergang in Login-Form */
      #app-boot-splash[data-brand="kitaly"] {
        background: #F7F8F6;
        color: #1A2E18;
        font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
      }
      #app-boot-splash[data-brand="kitaly"] .splash-hortara { display: none; }
      #app-boot-splash[data-brand="kitaly"] .splash-kitaly {
        display: grid;
        grid-template-rows: 1fr auto;
        width: 100%;
        height: 100%;
        min-height: 100dvh;
      }
      #app-boot-splash[data-brand="kitaly"] .splash-kitaly-main {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: calc(1.5rem + env(safe-area-inset-top, 0px)) 1.5rem 1.25rem;
        text-align: center;
        animation: splash-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
      }
      #app-boot-splash[data-brand="kitaly"] .splash-kitaly-logo {
        width: auto;
        height: 3.75rem;
        max-width: min(13rem, 70vw);
        object-fit: contain;
        filter: drop-shadow(0 6px 20px rgba(26, 46, 24, 0.12));
      }
      #app-boot-splash[data-brand="kitaly"] .splash-kitaly-line {
        margin: 1.25rem 0 0;
        max-width: 18rem;
        font-size: clamp(1.2rem, 3.4vw, 1.55rem);
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: -0.025em;
        color: #1A2E18;
      }
      #app-boot-splash[data-brand="kitaly"] .splash-kitaly-track {
        position: relative;
        width: min(11.5rem, 52vw);
        height: 3px;
        margin-top: 1.4rem;
        overflow: hidden;
        border-radius: 999px;
        background: rgba(26, 46, 24, 0.1);
      }
      #app-boot-splash[data-brand="kitaly"] .splash-kitaly-bar {
        position: absolute;
        inset: 0 auto 0 0;
        width: 40%;
        border-radius: inherit;
        background: linear-gradient(90deg, #C24E0A, #E07A3A, #C24E0A);
        animation: splash-bar 1.2s ease-in-out infinite;
      }
      #app-boot-splash[data-brand="kitaly"] .splash-kitaly-status {
        margin: 0.8rem 0 0;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: #5F9A3E;
      }
      #app-boot-splash[data-brand="kitaly"] .splash-kitaly-foot {
        position: relative;
        height: 4.75rem;
        background: linear-gradient(180deg, #2C4A28 0%, #1A2E18 100%);
      }
      #app-boot-splash[data-brand="kitaly"] .splash-kitaly-wave {
        position: absolute;
        top: -1px;
        left: 0;
        width: 100%;
        height: 1.75rem;
        display: block;
      }
      #app-boot-splash[data-brand="kitaly"] .splash-kitaly-wave path { fill: #F7F8F6; }
      #app-boot-splash[data-brand="kitaly"] .splash-kitaly-ember {
        position: absolute;
        left: 50%;
        bottom: 1.1rem;
        width: 4.5rem;
        height: 3px;
        border-radius: 999px;
        background: #C24E0A;
        opacity: 0.85;
        transform: translateX(-50%);
      }

      @keyframes splash-spin { to { transform: rotate(360deg); } }
      @keyframes splash-rise {
        from { opacity: 0; transform: translateY(12px); }
        to { opacity: 1; transform: translateY(0); }
      }
      @keyframes splash-bar {
        0% { transform: translateX(-120%); }
        100% { transform: translateX(280%); }
      }
      @media (prefers-reduced-motion: reduce) {
        #app-boot-splash[data-brand="kitaly"] .splash-kitaly-main { animation: none; }
        #app-boot-splash[data-brand="kitaly"] .splash-kitaly-bar { animation: none; width: 55%; left: 22%; }
        #app-boot-splash[data-brand="hortara"] .splash-hortara-arc { animation: none; }
      }
