/* DevWorld-Website (devworld-llc.com) auf MudBlazor: nur Markendetails, die das
   Theme (Components/Website/WebsiteTheme.cs) nicht abdeckt. Schriften selbst gehostet. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter-var.woff2') format('woff2-variations'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('fonts/space-grotesk-var.woff2') format('woff2-variations'); }

html { scroll-behavior: smooth; }
body.site { background: #0b1020; color: #e8ecf8; -webkit-font-smoothing: antialiased; }
.site a { color: #38bdf8; }
.site .mud-main-content { padding-top: 68px; }
.site .mud-typography-h1, .site .mud-typography-h2, .site .mud-typography-h3,
.site .mud-typography-h4, .site .mud-typography-h5, .site .mud-typography-h6 { color: #e8ecf8; }

/* ---------- Kopfzeile ---------- */
.site-bar.mud-appbar { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid #2a3765; box-shadow: none; }
.site-bar .mud-toolbar { max-width: 1280px; width: 100%; margin: 0 auto; gap: .35rem; padding-left: 24px; padding-right: 24px; }
.site-brand { display: inline-flex; align-items: center; margin-right: 1rem; }
.site-brand svg { display: block; }
.site-nav { display: flex; align-items: center; gap: .15rem; }
.site-nav .mud-button-root.is-active { color: #38bdf8; }
.site-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.lang-flag { width: 20px; height: 14px; border-radius: 2px; margin-right: .4rem; }

.btn-gradient.mud-button-root { background: linear-gradient(120deg, #38bdf8, #8b5cf6); color: #fff; box-shadow: none; }
.btn-gradient.mud-button-root:hover { background: linear-gradient(120deg, #38bdf8, #8b5cf6); box-shadow: 0 6px 28px rgba(139, 92, 246, .35); transform: translateY(-1px); }

/* Produkt-Menü: klappt per Hover bzw. Tastaturfokus auf (statisch gerendert, ohne Skript). */
.nav-drop { position: relative; }
.nav-drop__panel { position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px; padding: .5rem; display: none; z-index: 1400; border: 1px solid #2a3765; }
.nav-drop:hover .nav-drop__panel, .nav-drop:focus-within .nav-drop__panel { display: block; }
.nav-drop::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
.nav-drop__label { display: block; padding: .3rem .7rem .4rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #a3aecc; }
.nav-drop__item { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 10px; color: #e8ecf8 !important; text-decoration: none; }
.nav-drop__item:hover, .nav-drop__item.is-active { background: #1c2749; text-decoration: none; }
.nav-drop__item strong { display: block; font-weight: 600; }
.nav-drop__item small { display: block; color: #a3aecc; font-size: .8rem; }
.product-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; box-shadow: 0 0 10px currentColor; }

/* Handy: Menü als <details>, klappt ohne Skript auf. */
.site-mobile { display: none; position: relative; }
.site-mobile > summary { list-style: none; cursor: pointer; padding: .4rem; border-radius: 8px; color: #e8ecf8; }
.site-mobile > summary::-webkit-details-marker { display: none; }
.site-mobile__panel { position: fixed; top: 68px; left: 0; right: 0; max-height: calc(100vh - 68px); overflow-y: auto; padding: 1rem 1.25rem 1.5rem; background: #101731; border-bottom: 1px solid #2a3765; }
.site-mobile__panel a { display: block; padding: .6rem 0; color: #e8ecf8; font-weight: 500; text-decoration: none; }
.site-mobile__panel .nav-drop__item { padding: .5rem .3rem; }

@media (max-width: 960px) {
    .site-nav, .site-actions .hide-mobile { display: none; }
    .site-mobile { display: block; }
}

/* ---------- Abschnitte ---------- */
.ws-section { padding: 4.5rem 0; }
.ws-section--alt { background: #101731; }
.ws-intro { color: #a3aecc; max-width: 640px; margin-bottom: 2rem !important; }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #38bdf8; font-weight: 600; margin-bottom: 1rem !important; }

.ws-hero { position: relative; overflow: hidden; padding: 7rem 0 6rem; text-align: center; }
.ws-hero .mud-typography-h1 { max-width: 860px; margin: 0 auto 1.25rem; }
.ws-hero__sub { color: #a3aecc; max-width: 640px; margin: 0 auto 2.2rem !important; font-size: 1.15rem !important; }
.ws-hero__actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.ws-hero__glow { position: absolute; inset: -40% -10% auto; height: 120%; pointer-events: none; z-index: 0;
    background: radial-gradient(closest-side, rgba(56, 189, 248, .22), transparent 70%), radial-gradient(closest-side at 70% 40%, rgba(139, 92, 246, .22), transparent 70%); }
.ws-hero > .mud-container { position: relative; z-index: 1; }
.gradient-text { background: linear-gradient(120deg, #38bdf8, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }

.ws-pagehead { padding: 5rem 0 2.5rem; border-bottom: 1px solid #2a3765; background: radial-gradient(ellipse at top, rgba(56, 189, 248, .10), transparent 60%); }
.ws-pagehead--product { background: radial-gradient(ellipse at top, color-mix(in srgb, var(--product, #38bdf8) 18%, transparent), transparent 60%); }
.ws-pagehead .eyebrow { color: var(--product, #38bdf8); }

/* Karten (MudPaper) */
.ws-card.mud-paper { height: 100%; padding: 1.6rem; border: 1px solid #2a3765; background: #161f3d; transition: transform .15s, border-color .2s; }
.ws-card--link.mud-paper:hover { transform: translateY(-3px); border-color: #38bdf8; }
.ws-card a.ws-card__link { color: inherit; text-decoration: none; display: block; height: 100%; }
.ws-card .ws-card__text { color: #a3aecc; font-size: .95rem; }
.ws-plain { padding: .5rem 0; }
.ws-plain .ws-card__text { color: #a3aecc; }

.product-card.mud-paper { --product: #38bdf8; height: 100%; display: flex; flex-direction: column; gap: .45rem; padding: 1.6rem;
    border: 1px solid #2a3765; background: linear-gradient(180deg, color-mix(in srgb, var(--product) 10%, #161f3d), #161f3d 55%); transition: transform .15s, border-color .2s; }
.product-card.mud-paper:hover { transform: translateY(-3px); border-color: var(--product); }
.product-card__link { color: inherit !important; text-decoration: none; display: block; height: 100%; }
.product-card__tag { color: var(--product); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.product-card__desc { color: #a3aecc; flex-grow: 1; }
.product-card__more { color: var(--product); font-weight: 600; }

.ws-stack { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.ws-stack .mud-chip { border-color: #2a3765; color: #a3aecc; }

.ws-cta.mud-paper { text-align: center; padding: 3rem 2rem; border: 1px solid #2a3765;
    background: radial-gradient(ellipse at top, rgba(139, 92, 246, .18), transparent 65%), #161f3d; }
.ws-cta .ws-card__text { color: #a3aecc; max-width: 640px; margin: 0 auto 1.6rem; }

/* Download-Box */
.ws-download.mud-paper { padding: 2rem; border: 1px solid #2a3765; background: #161f3d; }
.ws-download__actions { display: flex; flex-direction: column; gap: .7rem; align-items: stretch; }
.ws-download code, .ws-sha code { font-size: .78rem; word-break: break-all; color: #a3aecc; }
.ws-changelog { color: #a3aecc; font-size: .92rem; }

/* Screenshots */
.ws-shot.mud-paper { overflow: hidden; border: 1px solid #2a3765; background: #161f3d; transition: transform .15s, border-color .2s; height: 100%; }
.ws-shot.mud-paper:hover { transform: translateY(-3px); border-color: #38bdf8; }
.ws-shot img { display: block; width: 100%; height: 220px; object-fit: cover; object-position: top; }
.ws-shot figcaption { padding: .8rem 1rem; font-size: .88rem; color: #a3aecc; }

/* Preise */
.ws-price.mud-paper { position: relative; height: 100%; display: flex; flex-direction: column; gap: .8rem; padding: 1.8rem 1.6rem; border: 1px solid #2a3765; background: #161f3d; }
.ws-price--highlight.mud-paper { border-color: #8b5cf6; box-shadow: 0 0 0 1px #8b5cf6, 0 18px 50px rgba(139, 92, 246, .18); }
.ws-price__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }
.ws-price__name { font-size: .9rem !important; color: #a3aecc; text-transform: uppercase; letter-spacing: .08em; }
.ws-price__amount { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 2rem; font-weight: 600; line-height: 1.1; }
.ws-price__period { font-size: .85rem; font-weight: 500; color: #a3aecc; margin-left: .3rem; }
.ws-price ul { list-style: none; padding: 0; margin: 0; flex-grow: 1; display: grid; gap: .45rem; }
.ws-price li { position: relative; padding-left: 1.5rem; color: #cfd6ea; font-size: .93rem; }
.ws-price li::before { content: "✓"; position: absolute; left: 0; color: #38bdf8; font-weight: 700; }
.ws-note { color: #a3aecc; font-size: .9rem; margin-top: 1.5rem !important; }

/* Versionen */
.ws-versions.mud-table, .ws-versions .mud-table-container { background: #161f3d; }
.ws-versions td:last-child, .ws-versions th:last-child { text-align: right; }

/* Fließtext (Rechtstexte, Leistungen) */
.ws-prose { max-width: 820px; }
.ws-prose h2 { margin: 2.2rem 0 .7rem; }
.ws-prose h3 { margin: 1.6rem 0 .5rem; font-size: 1.1rem; }
.ws-prose p, .ws-prose li { color: #cfd6ea; margin-bottom: .8rem; }
.ws-prose ul { padding-left: 1.3rem; margin-bottom: 1rem; }

/* Formular (statisch, normales POST) – sieht aus wie ein MudBlazor-Outlined-Feld */
.ws-field { position: relative; margin-bottom: 1.2rem; }
.ws-field label { display: block; font-size: .85rem; color: #a3aecc; margin-bottom: .35rem; }
.ws-input { width: 100%; padding: .8rem .9rem; font: inherit; color: #e8ecf8; background: #101731; border: 1px solid #2a3765; border-radius: 10px; outline: none; transition: border-color .15s, box-shadow .15s; }
.ws-input:hover { border-color: #3d4c85; }
.ws-input:focus { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56, 189, 248, .18); }
textarea.ws-input { min-height: 160px; resize: vertical; }
.ws-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Fußzeile */
.site-footer { border-top: 1px solid #2a3765; padding: 3.5rem 0 2rem; background: #0b1020; }
.site-footer h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #a3aecc; margin-bottom: .8rem; font-family: 'Inter', sans-serif; font-weight: 600; }
.site-footer nav a { display: block; color: #e8ecf8; padding: .2rem 0; text-decoration: none; font-size: .95rem; }
.site-footer nav a:hover { color: #38bdf8; }
.site-footer__tagline { color: #a3aecc; margin: 1rem 0 .5rem; max-width: 320px; }
.site-footer__bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid #2a3765; color: #a3aecc; font-size: .85rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* --- Paket content --- */
/* Produktseiten (Gym141, Task141, Event141, Ticket141, Contract141, Desk141) */
.ws-product-actions { display: flex; gap: .9rem; flex-wrap: wrap; justify-content: flex-start; margin-top: 1.4rem; }
.ws-product-actions--center { justify-content: center; margin-top: 0; }
.ws-product-beta { display: inline-block; vertical-align: middle; margin-left: .5rem; padding: .25rem .8rem; border-radius: 999px;
    background: linear-gradient(120deg, #38bdf8, #8b5cf6); color: #fff; font-family: 'Inter', sans-serif; font-size: .85rem; font-weight: 700; letter-spacing: .05em; line-height: 1.4; }
.ws-product-code { margin: 0 0 1.5rem; padding: 1.1rem 1.3rem; max-width: 720px; overflow-x: auto; background: #161f3d; border: 1px solid #2a3765;
    border-left: 3px solid #38bdf8; border-radius: 14px; font-family: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
    font-size: .9rem; line-height: 1.6; color: #e8ecf8; white-space: pre; }
.ws-product-code code { font-family: inherit; }
.ws-card__text code, .ws-intro code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .88em; padding: .05em .35em; border-radius: 6px; background: #101731; color: #e8ecf8; word-break: break-word; }
.ws-intro strong { color: #e8ecf8; }
.ws-product-single .mud-grid-item { max-width: 440px; }
@media (max-width: 800px) {
    .ws-product-versions th:nth-child(3), .ws-product-versions td:nth-child(3) { display: none; }
}

/* --- Paket legal --- */
/* Fließtext-Überschriften (Rechtstexte) wie PHP .prose h2 */
.ws-prose h2 { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 600; font-size: 1.35rem; line-height: 1.25; color: #e8ecf8; }
.ws-prose p { line-height: 1.7; }
.ws-prose a, .ws-prose p, .ws-prose li { overflow-wrap: anywhere; }
.ws-prose em a { font-style: italic; }

/* KI-Lösungen: Karten mit Anker (#assist, #docs …) unter der fixen Kopfzeile */
.ws-services { display: grid; gap: 1.4rem; }
.ws-service.mud-paper { padding: 2rem; border: 1px solid #2a3765; background: #161f3d; scroll-margin-top: 88px; }
.ws-service__text { color: #a3aecc; max-width: 700px; }
.ws-service ul { margin: 1rem 0 0 1.2rem; color: #a3aecc; }
.ws-service li { margin: .35rem 0; }
.ws-service li::marker { color: #38bdf8; }

/* Kontakt */
.ws-contact-form.mud-paper { padding: 2rem; border: 1px solid #2a3765; background: #161f3d; }
.ws-contact-form .mud-alert { font-size: .95rem; }
.ws-contact-aside .mud-typography-h2 { font-size: 1.1rem; color: #a3aecc; }
.ws-mail-big { font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 600px) {
    .ws-contact-form.mud-paper, .ws-service.mud-paper { padding: 1.3rem; }
}

/* --- Fußzeile: EU-Hinweis --- */
.site-footer__eu { margin-top: .4rem; }
.site-footer__eu a { color: #a3aecc; text-decoration: none; }
.site-footer__eu a:hover { color: #38bdf8; text-decoration: underline; }
