/* Homestory Startseite, Impressum, Datenschutz */
:root {
    --hs-bg: #0e0f11;
    --hs-surface: #15171a;
    --hs-line: #23252a;
    --hs-ink: #ecebe6;
    --hs-mute: #8b8d91;
}

body,
#wrapper,
#page-wrapper,
#page-inner {
    background: var(--hs-bg) !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

#wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh !important;
}

#page-wrapper {
    flex: 1;
}

body {
    font-family: 'Open Sans', system-ui, sans-serif;
    color: var(--hs-ink);
}

/* Farbstreifen oben */
.hs-bar {
    display: flex;
    height: 4px;
}

.hs-bar span {
    flex: 1;
}

.hs {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 80px 24px 40px;
    box-sizing: border-box;
    color: var(--hs-ink);
}

/* Startseite */
.hs-head {
    text-align: center;
    margin-bottom: 64px;
}

.hs-kicker {
    display: inline-block;
    padding: 7px 14px;
    border: 1px solid var(--hs-line);
    border-radius: 999px;
    font: 500 11px/1 ui-monospace, Consolas, monospace;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--hs-mute);
}

.hs-head h1 {
    margin: 28px 0 20px;
    font-size: clamp(44px, 8vw, 96px);
    font-weight: 300;
    letter-spacing: -.04em;
    line-height: 1;
    color: var(--hs-ink);
}

.hs-head h1 b {
    font-weight: 800;
}

.hs-sub {
    max-width: 520px;
    margin: 0 auto 28px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--hs-mute);
}

.hs-discord {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--hs-ink);
    color: var(--hs-bg);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s, background .2s;
}

.hs-discord:hover {
    background: #fff;
    color: var(--hs-bg);
    text-decoration: none;
    transform: translateY(-2px);
}

.hs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hs-card {
    --c: #888;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 40px 24px 32px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    background: var(--hs-surface);
    border: 1px solid var(--hs-line);
    border-radius: 16px;
    color: var(--hs-ink);
    text-decoration: none;
    transition: transform .25s, border-color .25s;
}

.hs-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--c);
    transform: scaleX(.15);
    transform-origin: center;
    transition: transform .3s;
}

.hs-card:hover {
    transform: translateY(-6px);
    border-color: var(--c);
    color: var(--hs-ink);
    text-decoration: none;
}

.hs-card:hover::after {
    transform: scaleX(1);
}

.hs-no {
    position: absolute;
    top: 16px;
    right: 18px;
    font: 500 12px/1 ui-monospace, Consolas, monospace;
    color: #55575c;
}

.hs-mark {
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.hs-mark img {
    max-width: 100%;
    max-height: 100%;
}

.hs-mark i {
    font-size: 48px;
    color: var(--c);
}

.hs-name {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.hs-label {
    margin-top: 6px;
    font-size: 13px;
    color: var(--hs-mute);
}

.hs-go {
    margin-top: 22px;
    font-size: 13px;
    font-weight: 600;
    color: var(--hs-mute);
    transition: color .2s;
}

.hs-go span {
    display: inline-block;
    transition: transform .2s;
}

.hs-card:hover .hs-go {
    color: var(--c);
}

.hs-card:hover .hs-go span {
    transform: translateX(5px);
}

/* Footer */
.hs-foot {
    padding: 28px 24px 36px;
    text-align: center;
    font-size: 13px;
    border-top: 1px solid var(--hs-line);
}

.hs-foot a {
    margin: 0 12px;
    color: var(--hs-mute);
    text-decoration: none;
}

.hs-foot a:hover {
    color: var(--hs-ink);
}

/* Impressum und Datenschutz */
.hs-legal {
    max-width: 820px;
    padding-top: 56px;
    line-height: 1.75;
    font-size: 15px;
    color: #c9c8c3;
}

.hs-panel {
    margin-top: 20px;
    padding: 40px 44px;
    background: var(--hs-surface);
    border: 1px solid var(--hs-line);
    border-radius: 16px;
}

.hs-legal h1 {
    margin: 0 0 28px;
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 300;
    letter-spacing: -.03em;
    color: var(--hs-ink);
}

.hs-legal h2 {
    margin: 40px 0 12px;
    padding-top: 28px;
    border-top: 1px solid var(--hs-line);
    font-size: 21px;
    font-weight: 700;
    color: var(--hs-ink);
}

.hs-legal h3,
.hs-legal h4 {
    margin: 24px 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--hs-ink);
}

.hs-legal a {
    color: var(--hs-ink);
    border-bottom: 1px solid #55575c;
    text-decoration: none;
    word-break: break-word;
}

.hs-legal a:hover {
    border-color: var(--hs-ink);
}

.hs-legal ul {
    padding-left: 20px;
}

.hs-legal a.hs-back {
    display: inline-block;
    font: 500 12px/1 ui-monospace, Consolas, monospace;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--hs-mute);
    border: 0;
}

.hs-legal a.hs-back:hover {
    color: var(--hs-ink);
}

.hs-section {
    margin-top: 72px;
}

.hs-section > h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    color: var(--hs-ink);
}

.hs-section > p {
    margin: 0 auto 28px;
    max-width: 560px;
    text-align: center;
    color: var(--hs-mute);
}

.hs-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.hs-tile {
    display: block;
    padding: 24px 20px;
    background: var(--hs-surface);
    border: 1px solid var(--hs-line);
    border-radius: 14px;
    color: var(--hs-ink);
    text-decoration: none;
    transition: transform .2s, border-color .2s;
}

.hs-tile:hover {
    transform: translateY(-3px);
    border-color: var(--hs-mute);
    color: var(--hs-ink);
    text-decoration: none;
}

.hs-tile i {
    display: block;
    margin-bottom: 14px;
    font-size: 22px;
    color: #8b5cf6;
}

.hs-tile b {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
}

.hs-tile span {
    font-size: 13px;
    line-height: 1.5;
    color: var(--hs-mute);
}

.hs-log {
    max-width: 760px;
    margin: 0 auto;
}

.hs-log-item {
    margin-bottom: 14px;
    padding: 20px 22px;
    background: var(--hs-surface);
    border: 1px solid var(--hs-line);
    border-radius: 14px;
}

.hs-log-item header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--hs-ink);
}

.hs-log-item time {
    margin-left: auto;
    font-size: 12px;
    color: var(--hs-mute);
}

.hs-log-ver {
    padding: 2px 9px;
    border-radius: 999px;
    background: #8b5cf6;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.hs-log-item em {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-style: normal;
    color: #8b5cf6;
}

.hs-log-item h3.hs-log-sys {
    margin: 20px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--hs-line);
    font-size: 15px;
    color: var(--hs-ink);
}

.hs-log-item h4 {
    margin: 16px 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hs-mute);
}

.hs-log-item h4.hs-log-new { color: #4ade80; }
.hs-log-item h4.hs-log-improved { color: #60a5fa; }
.hs-log-item h4.hs-log-fixed { color: #fbbf24; }
.hs-log-item h4.hs-log-removed { color: #f87171; }

.hs-log-item ul {
    margin: 0;
    padding-left: 18px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--hs-ink);
}

.hs-log-item p {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--hs-mute);
}

@media (max-width: 900px) {
    .hs-tiles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hs {
        padding-top: 48px;
    }

    .hs-grid {
        grid-template-columns: 1fr;
    }

    .hs-panel {
        padding: 28px 22px;
    }
}
