/*
Theme Name: HSV Fanclub
Description: Offizielles Theme für HSV Fanclub 18dievomdeich87
Version: 1.0
Author: 18dievomdeich87
*/

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #222; background: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ── HEADER & NAV ── */
#site-header {
    background: #001f5b;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 64px;
}
.site-logo {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .5px;
    white-space: nowrap;
}
.site-logo:hover { color: rgba(255,255,255,.8); }

#site-nav .nav-menu {
    display: flex;
    align-items: center;
    height: 64px;
    gap: 0;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    color: #fff;
    padding: 0 15px;
    display: flex;
    align-items: center;
    height: 64px;
    font-size: 15px;
    transition: color .15s;
    white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > .current-menu-item > a { color: rgba(255,255,255,.75); }

/* Sub-menu */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    background: #001540;
    min-width: 180px;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.nav-menu > li:hover > .sub-menu { display: block; }
.nav-menu .sub-menu li a { padding: 10px 16px; display: block; color: #fff; font-size: 14px; }
.nav-menu .sub-menu li a:hover { background: rgba(255,255,255,.1); }

/* Auth button */
.hsv-menu-auth { margin-left: 12px; display: flex; align-items: center; }
.hsv-menu-auth > a { padding: 0 !important; height: auto !important; }
.hsv-login-inner {
    display: inline-block;
    padding: 5px 14px;
    border: 2px solid rgba(255,255,255,.75);
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: background .15s, border-color .15s;
    line-height: 1.4;
}
.hsv-menu-auth a:hover .hsv-login-inner { background: rgba(255,255,255,.15); border-color: #fff; }

/* Tickets nav link */
.hsv-menu-tickets > a { padding: 0 15px !important; }

/* ── HOMEPAGE HERO ── */
.hsv-home-hero {
    position: relative;
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.hsv-home-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 9% 53%;
}
.hsv-home-hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(rgba(21,50,67,.75) 0%, rgba(0,61,143,.65) 100%);
}
.hsv-home-hero__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 80px 40px;
    color: #fff;
    text-align: center;
}
.hsv-home-hero__prefix {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: .8;
    margin-bottom: 12px;
}
.hsv-home-hero__content h1 {
    font-size: 52px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    line-height: 1.1;
}
.hsv-home-hero__desc {
    font-size: 17px;
    line-height: 1.7;
    opacity: .9;
    margin-bottom: 36px;
}
.hsv-home-hero__buttons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hsv-hero-btn {
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 15px;
    transition: background .15s, color .15s, border-color .15s;
}
.hsv-hero-btn.primary { background: #003D8F; color: #fff; border: 2px solid #003D8F; }
.hsv-hero-btn.primary:hover { background: #005293; border-color: #005293; }
.hsv-hero-btn.outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.75); }
.hsv-hero-btn.outline:hover { background: rgba(255,255,255,.15); border-color: #fff; }

/* ── NEWS SECTION ── */
.hsv-news-section {
    background: #f0f4fa;
    padding: 60px 40px 80px;
}
.hsv-news-section > h2 {
    color: #003D8F;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 32px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.hsv-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto 32px;
}
.hsv-news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,61,143,.08);
    border-left: 4px solid #003D8F;
    display: flex;
    flex-direction: column;
}
.hsv-news-card__img { display: block; border-left: none; }
.hsv-news-card__img img { width: 100%; height: 180px; object-fit: cover; display: block; }
.hsv-news-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.hsv-news-card__date { font-size: 12px; color: #888; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; }
.hsv-news-card__body h3 { font-size: 17px; font-weight: 700; color: #003D8F; margin-bottom: 10px; line-height: 1.3; }
.hsv-news-card__body h3 a:hover { color: #005293; }
.hsv-news-card__excerpt { font-size: 14px; color: #555; line-height: 1.6; flex: 1; margin-bottom: 16px; }
.hsv-btn-read {
    display: inline-block;
    padding: 7px 16px;
    border: 2px solid #003D8F;
    color: #003D8F;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: background .15s, color .15s;
    align-self: flex-start;
}
.hsv-btn-read:hover { background: #003D8F; color: #fff; }
.hsv-btn-secondary {
    display: inline-block;
    padding: 10px 24px;
    background: transparent;
    border: 2px solid #003D8F;
    color: #003D8F;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    transition: background .15s, color .15s;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: fit-content;
}
.hsv-btn-secondary:hover { background: #003D8F; color: #fff; }

/* ── INNER PAGE HERO ── */
.hsv-page-hero {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.hsv-page-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
}
.hsv-page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(21,50,67,.75) 0%, rgba(0,61,143,.65) 100%);
    z-index: 1;
}
.hsv-page-hero h1 {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

/* ── FORM PAGES (Login / Registrierung) ── */
body.hsv-form-page #site-content {
    background: #f0f4fa;
    padding-bottom: 80px;
}
.hsv-form-card {
    background: #fff;
    border-radius: 8px;
    border-top: 4px solid #003D8F;
    box-shadow: 0 2px 8px rgba(0,61,143,.08);
    padding: 36px 40px;
    max-width: 480px;
    margin: 48px auto 0;
}
/* Passwort-Stärke */
.hsv-pw-meter { margin-top: 10px; }
.hsv-pw-meter__bar {
    height: 6px;
    background: #dde3ee;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}
.hsv-pw-meter__fill {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width .25s ease, background-color .25s ease;
}
.hsv-pw-meter__label {
    font-size: 12px;
    font-weight: 600;
    min-height: 16px;
    margin: 0 0 8px;
}
.hsv-pw-rules {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}
.hsv-pw-rules li {
    font-size: 12px;
    color: #999;
    padding-left: 16px;
    position: relative;
}
.hsv-pw-rules li::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: #ccc;
    font-size: 11px;
}
.hsv-pw-rules li.hsv-rule-ok { color: #007a1f; }
.hsv-pw-rules li.hsv-rule-ok::before { content: '✓'; color: #007a1f; }

.hsv-login-error {
    background: #fdf0f0;
    border-left: 4px solid #d63638;
    padding: 10px 14px;
    margin-bottom: 16px;
    border-radius: 4px;
    color: #d63638;
    font-size: 14px;
}

/* ── ABOUT PAGE SECTIONS ── */
.hsv-about-intro {
    background: #f0f4fa;
    max-width: 100%;
    margin: 0;
    padding: 64px 24px;
    text-align: center;
}
.hsv-about-intro > * {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.hsv-about-intro h2 {
    font-size: 26px;
    font-weight: 700;
    color: #003D8F;
    margin-bottom: 18px;
}
.hsv-about-intro p {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
}
.hsv-about-features {
    background: #f0f4fa;
    padding: 60px 40px;
}
.hsv-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.hsv-feature-card {
    background: #fff;
    border-radius: 8px;
    padding: 28px 24px;
    border-left: 4px solid #003D8F;
    box-shadow: 0 2px 8px rgba(0,61,143,.08);
}
.hsv-feature-card h3 { color: #003D8F; font-size: 18px; margin-bottom: 10px; }
.hsv-feature-card p { color: #555; line-height: 1.6; font-size: 15px; }

/* ── SINGLE POST ── */
.hsv-single-bg { background: #f0f4fa; padding: 48px 24px 80px; }
.hsv-single-wrap { max-width: 820px; margin: 0 auto; }
.hsv-single-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,61,143,.08);
    overflow: hidden;
    border-top: 4px solid #003D8F;
}
.hsv-single-card__thumb img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.hsv-single-card__body { padding: 32px 36px 40px; }
.hsv-single-card__title { font-size: 28px; font-weight: 700; color: #003D8F; margin-bottom: 24px; line-height: 1.2; }
.hsv-post-meta { font-size: 13px; color: #888; margin-bottom: 12px; }
.hsv-post-body { font-size: 16px; line-height: 1.8; color: #333; }
.hsv-post-body h2 { font-size: 22px; color: #003D8F; margin: 32px 0 12px; }
.hsv-post-body p { margin-bottom: 18px; }
.hsv-post-body img { border-radius: 6px; margin: 16px 0; }
.hsv-post-body a { color: #003D8F; text-decoration: underline; }

/* ── NEWS ARCHIVE ── */
.hsv-archive-wrap { max-width: 1100px; margin: 0 auto; padding: 48px 24px 80px; }
.hsv-archive-title { font-size: 28px; color: #003D8F; margin-bottom: 32px; font-weight: 700; }
.hsv-archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

/* ── FOOTER ── */
#site-footer {
    background: #001f5b;
    color: rgba(255,255,255,.65);
    padding: 28px 40px;
    text-align: center;
    font-size: 14px;
}

/* ── BUTTONS ── */
.hsv-btn {
    display: inline-block;
    padding: 10px 22px;
    background: #001f5b;
    color: #fff;
    border: 2px solid #001f5b;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    margin-top: 8px;
}
.hsv-btn:hover { background: #002d6e; border-color: #002d6e; }
.hsv-btn-outline {
    display: inline-block;
    padding: 6px 14px;
    background: transparent;
    color: #001f5b;
    border: 2px solid #001f5b;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.hsv-btn-outline:hover { background: #001f5b; color: #fff; }

/* ── PAST / DATA TABLE ── */
.hsv-past-table-wrap {
    border-radius: 8px;
    overflow: hidden;
    border-left: 4px solid #001f5b;
    box-shadow: 0 2px 6px rgba(0,31,91,.08);
}
.hsv-past-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.hsv-past-table thead th {
    background: #001f5b;
    color: #fff;
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    white-space: nowrap;
}
.hsv-past-table tbody td {
    padding: 11px 16px;
    border-bottom: 1px solid #e0e6f0;
    color: #333;
}
.hsv-past-table tbody tr:last-child td { border-bottom: none; }
.hsv-past-table tbody tr:nth-child(even) { background: #f5f8fc; }
.hsv-past-table tfoot td { padding: 11px 16px; font-weight: 700; background: #e8edf7; }

/* ── WORDPRESS BLOCK EDITOR BASICS ── */
.wp-block-image img { border-radius: 6px; }
.wp-block-quote { border-left: 4px solid #003D8F; padding-left: 20px; margin: 24px 0; color: #555; font-style: italic; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .header-inner { padding: 0 20px; }
    .site-logo { font-size: 14px; }
    .nav-menu > li > a { padding: 0 10px; font-size: 14px; }
    .hsv-home-hero__content { padding: 60px 24px; }
    .hsv-home-hero__content h1 { font-size: 34px; }
    .hsv-home-hero__desc { font-size: 15px; }
    .hsv-news-section { padding: 40px 20px 60px; }
    .hsv-single-wrap { padding: 32px 16px 60px; }
    .hsv-archive-wrap { padding: 32px 16px 60px; }
}
