/* ============================================================
   PracticeHQ – Stylesheet
   Modern · Minimalistisch · Dark Theme
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────── */
:root {
    /* Primärfarben */
    --yellow: #FACC15;
    --orange: #F97316;

    /* Hintergrund */
    --bg:      #0F172A;
    --surface: #1E293B;
    --card:    #334155;

    /* Text */
    --text:   #FFFFFF;
    --text-2: #CBD5E1;
    --muted:  #94A3B8;

    /* Status */
    --success: #22C55E;
    --warning: #FACC15;
    --error:   #EF4444;

    /* Effekte */
    --gradient: linear-gradient(135deg, var(--yellow), var(--orange));
    --radius:    20px;
    --radius-sm: 12px;
    --shadow:      0 10px 30px -12px rgba(0, 0, 0, .55);
    --shadow-glow: 0 12px 40px -8px rgba(249, 115, 22, .35);
    --border:  1px solid rgba(148, 163, 184, .14);
    --ease:    cubic-bezier(.22, 1, .36, 1);

    --container: 1160px;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* dezenter Hintergrund-Verlauf */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(720px circle at 15% -5%, rgba(249, 115, 22, .10), transparent 60%),
        radial-gradient(680px circle at 90% 8%, rgba(250, 204, 21, .08), transparent 55%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3 { font-family: 'Poppins', 'Inter', sans-serif; line-height: 1.15; letter-spacing: -.02em; }

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ── Layout ────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}
.container--narrow { max-width: 780px; }

.section { padding-block: 90px; }

.card {
    background: linear-gradient(180deg, rgba(51, 65, 85, .55), rgba(30, 41, 59, .55));
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
}

.two-col {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 28px;
    align-items: stretch;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    color: var(--bg);
    background: var(--surface);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn--lg { padding: 15px 30px; font-size: 1.02rem; }

.btn--primary {
    background: var(--gradient);
    color: #1a1206;
    box-shadow: 0 8px 24px -8px rgba(249, 115, 22, .6);
}
.btn--primary:hover { box-shadow: 0 12px 30px -6px rgba(250, 204, 21, .7); }

.btn--ghost {
    background: rgba(148, 163, 184, .10);
    color: var(--text);
    border: 1px solid rgba(148, 163, 184, .22);
}
.btn--ghost:hover { background: rgba(148, 163, 184, .18); border-color: var(--yellow); }

.btn--discord {
    background: #5865F2;
    color: #fff;
    width: 100%;
    padding: 14px;
    margin-top: auto;
}
.btn--discord:hover { background: #4752e0; box-shadow: 0 10px 28px -8px rgba(88, 101, 242, .7); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: transparent;
    transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
    border-bottom: 1px solid transparent;
}
.navbar.is-scrolled {
    background: rgba(15, 23, 42, .72);
    backdrop-filter: blur(14px);
    border-bottom: var(--border);
}
.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
}
.navbar__brand { display: inline-flex; align-items: center; gap: 10px; }
.navbar__logo-mark { color: var(--yellow); display: inline-flex; }
.navbar__logo-text { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.3rem; }

.navbar__links { display: flex; align-items: center; gap: 8px; }
.navbar__link {
    position: relative;
    padding: 8px 14px;
    color: var(--text-2);
    font-weight: 500;
    border-radius: 8px;
    transition: color .2s var(--ease);
}
.navbar__link:hover { color: var(--text); }
.navbar__link::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 2px;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease);
    border-radius: 2px;
}
.navbar__link:hover::after { transform: scaleX(1); }
.navbar__cta { margin-left: 8px; color: #1a1206; }
.navbar__cta::after { display: none; }

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
}
.navbar__toggle span {
    width: 24px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.navbar__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle.is-open span:nth-child(2) { opacity: 0; }
.navbar__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-block: 70px 80px; overflow: hidden; }
.hero__glow {
    position: absolute;
    top: -20%; left: 50%;
    width: 900px; height: 900px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(249, 115, 22, .16), transparent 60%);
    filter: blur(20px);
    pointer-events: none;
}
.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 40px;
    min-height: 62vh;
}
.hero__eyebrow {
    display: inline-block;
    padding: 7px 16px;
    background: rgba(250, 204, 21, .10);
    border: 1px solid rgba(250, 204, 21, .25);
    border-radius: 999px;
    color: var(--yellow);
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 22px;
}
.hero__title { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; }
.hero__subtitle {
    margin: 22px 0 30px;
    max-width: 520px;
    color: var(--text-2);
    font-size: 1.12rem;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__ip {
    margin-top: 28px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: .9rem;
    color: var(--muted);
}
.hero__ip-btn {
    background: rgba(148, 163, 184, .10);
    border: 1px solid rgba(148, 163, 184, .2);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-family: 'Poppins', monospace;
    transition: border-color .2s var(--ease), color .2s var(--ease);
}
.hero__ip-btn:hover { border-color: var(--yellow); color: var(--yellow); }

.hero__art { display: flex; justify-content: center; }
.hero__art-card {
    position: relative;
    width: min(360px, 80%);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 32px;
    background: linear-gradient(160deg, rgba(51, 65, 85, .6), rgba(15, 23, 42, .3));
    border: var(--border);
    color: var(--yellow);
    box-shadow: var(--shadow-glow);
}
.hero__art-glow {
    position: absolute; inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 40%, rgba(250, 204, 21, .18), transparent 65%);
}

/* ============================================================
   STATUS CARD
   ============================================================ */
.status-card { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.status-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.status-card__title { display: flex; align-items: center; gap: 14px; }
.status-card__icon { border-radius: 10px; }
.status-card__label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.status-card__server { font-size: 1.4rem; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .05em;
}
.status-badge__dot { width: 9px; height: 9px; border-radius: 50%; }
.status-badge.is-online { background: rgba(34, 197, 94, .14); color: var(--success); }
.status-badge.is-online .status-badge__dot { background: var(--success); box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite; }
.status-badge.is-offline { background: rgba(239, 68, 68, .14); color: var(--error); }
.status-badge.is-offline .status-badge__dot { background: var(--error); }

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
    70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.status-card__ip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    background: rgba(15, 23, 42, .5);
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: 'Poppins', monospace;
    font-weight: 600;
    font-size: 1.05rem;
    transition: border-color .2s var(--ease);
}
.status-card__ip:hover { border-color: var(--yellow); }
.status-card__ip-copy { color: var(--muted); display: inline-flex; transition: color .2s var(--ease); }
.status-card__ip:hover .status-card__ip-copy { color: var(--yellow); }
.status-card__ip.is-copied .status-card__ip-copy { color: var(--success); }

.status-card__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.status-stat {
    padding: 16px 18px;
    background: rgba(15, 23, 42, .4);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(148, 163, 184, .1);
}
.status-stat__label { display: block; color: var(--muted); font-size: .8rem; margin-bottom: 4px; }
.status-stat__value { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.5rem; }
.status-stat__muted { color: var(--muted); font-size: 1rem; font-weight: 500; }

.status-card__motd { color: var(--text-2); font-size: .9rem; text-align: center; font-style: italic; }

.status-card__bar {
    height: 8px;
    background: rgba(15, 23, 42, .6);
    border-radius: 999px;
    overflow: hidden;
}
.status-card__bar span {
    display: block;
    height: 100%;
    background: var(--gradient);
    border-radius: 999px;
    transition: width .8s var(--ease);
}

/* ============================================================
   DISCORD CARD
   ============================================================ */
.discord-card { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.discord-card__head { display: flex; align-items: center; gap: 14px; }
.discord-card__icon {
    width: 54px; height: 54px;
    display: grid; place-items: center;
    background: rgba(88, 101, 242, .16);
    color: #7d88ff;
    border-radius: 14px;
}
.discord-card__label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.discord-card__title { font-size: 1.4rem; }
.discord-card__text { color: var(--text-2); }
.discord-card__stats { display: flex; gap: 24px; flex-wrap: wrap; }
.discord-stat { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: .95rem; }
.discord-stat strong { color: var(--text); font-family: 'Poppins', sans-serif; }
.discord-stat__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.discord-stat__dot.is-online { background: var(--success); box-shadow: 0 0 8px rgba(34, 197, 94, .6); }

/* ============================================================
   SECTION HEAD
   ============================================================ */
.section__head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section__eyebrow {
    display: inline-block;
    color: var(--yellow);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.section__title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.section__sub { margin-top: 14px; color: var(--text-2); font-size: 1.08rem; }

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(250, 204, 21, .4);
    box-shadow: var(--shadow-glow);
}
.feature-card__icon {
    font-size: 2rem;
    width: 60px; height: 60px;
    display: grid; place-items: center;
    background: rgba(250, 204, 21, .10);
    border-radius: 16px;
    margin-bottom: 6px;
}
.feature-card__title { font-size: 1.3rem; }
.feature-card__text { color: var(--text-2); font-size: .96rem; }

/* ============================================================
   STATISTIKEN
   ============================================================ */
.stats-section .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    padding: 46px 30px;
    background: linear-gradient(180deg, rgba(51, 65, 85, .5), rgba(30, 41, 59, .5));
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.stat-counter { text-align: center; }
.stat-counter__value {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 2.8rem);
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}
.stat-counter__label { color: var(--muted); font-size: .95rem; margin-top: 6px; display: block; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
    background: linear-gradient(180deg, rgba(51, 65, 85, .45), rgba(30, 41, 59, .45));
    border: var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color .25s var(--ease);
}
.faq-item.is-open { border-color: rgba(250, 204, 21, .35); }
.faq-item__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
}
.faq-item__chevron { flex-shrink: 0; color: var(--yellow); transition: transform .3s var(--ease); }
.faq-item.is-open .faq-item__chevron { transform: rotate(180deg); }
.faq-item__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s var(--ease);
}
.faq-item__a p { padding: 0 22px 20px; color: var(--text-2); }
.faq-item__a code { background: rgba(15, 23, 42, .7); padding: 2px 7px; border-radius: 6px; font-size: .9em; color: var(--yellow); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: var(--border); padding-block: 44px; background: rgba(15, 23, 42, .5); }
.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.footer__brand { display: flex; flex-direction: column; gap: 8px; }
.footer__disclaimer { color: var(--muted); font-size: .82rem; }
.footer__links { display: flex; gap: 22px; }
.footer__links a { color: var(--text-2); font-size: .95rem; transition: color .2s var(--ease); }
.footer__links a:hover { color: var(--yellow); }
.footer__copy { color: var(--muted); font-size: .9rem; }

/* ============================================================
   ANIMATIONEN
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(4px);
    transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

.float { animation: float 5s ease-in-out infinite; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-16px); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .hero__inner { grid-template-columns: 1fr; text-align: center; min-height: auto; }
    .hero__subtitle { margin-inline: auto; }
    .hero__actions, .hero__eyebrow { justify-content: center; }
    .hero__ip { justify-content: center; }
    .hero__art { order: -1; margin-bottom: 20px; }

    .two-col { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-section .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 22px; }

    .navbar__links {
        position: fixed;
        top: 74px; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 18px 24px 28px;
        background: rgba(15, 23, 42, .96);
        backdrop-filter: blur(14px);
        border-bottom: var(--border);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform .35s var(--ease), opacity .35s var(--ease);
    }
    .navbar__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
    .navbar__link { padding: 12px 14px; }
    .navbar__link::after { display: none; }
    .navbar__cta { margin: 8px 0 0; text-align: center; }
    .navbar__toggle { display: flex; }
}

@media (max-width: 560px) {
    .section { padding-block: 64px; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-section .stats-grid { grid-template-columns: 1fr; padding: 34px 22px; }
    .footer__inner { flex-direction: column; text-align: center; }
    .footer__brand { align-items: center; }
    .status-card, .discord-card { padding: 22px; }
}

/* ── Reduced Motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; filter: none; }
    html { scroll-behavior: auto; }
}
