/*
Theme Name:     Hier kaufe ich mein Fahrrad
Theme URI:      https://hierkaufeichmeinfahrrad.de
Author:         IDS UG (haftungsbeschraenkt)
Author URI:     https://ids-stade.de
Description:    Custom Theme fuer hierkaufeichmeinfahrrad.de - Online-Shop fuer Fahrraeder, Zubehoer und Ersatzteile.
Version:        1.0.0
License:        Proprietary
Text Domain:    hk-theme
Requires PHP:   7.4
*/

:root {
    --hk-primary: #3A7C22;
    --hk-primary-hover: #2d6319;
    --hk-secondary: #0E2841;
    --hk-dark: #1a1a1a;
    --hk-gray: #f8f9fa;
    --hk-text: #444;
    --hk-radius: 12px;
    --hk-header-height: 100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--hk-dark); background: #fff; line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hk-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--hk-primary-hover); }

.hk-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.hk-section { padding: 4rem 0; }
.hk-section--gray { background: var(--hk-gray); }
.hk-section--dark { background: var(--hk-dark); color: #fff; }
.hk-section--green { background: var(--hk-primary); color: #fff; }

h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; color: var(--hk-dark); }
h2 { font-size: 1.8rem; font-weight: 700; line-height: 1.3; margin-bottom: .8rem; color: var(--hk-dark); }
h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: .6rem; }
h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: .5rem; }
p { margin-bottom: 1rem; color: var(--hk-text); }

/* ═══════ HEADER ═══════ */
header.hk-header { position: absolute; top: 0; left: 0; right: 0; z-index: 1000; background: transparent; transition: all .3s; }
header.hk-header.scrolled { position: fixed; background: rgba(255,255,255,.97); border-bottom: 1px solid #eee; box-shadow: 0 2px 20px rgba(0,0,0,.08); backdrop-filter: blur(8px); }
header.hk-header.scrolled .hk-header__nav a { color: var(--hk-dark); }
header.hk-header.scrolled .hk-header__burger { color: var(--hk-dark); }
.hk-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--hk-header-height); max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.hk-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.hk-header__logo img { width: auto; max-height: 50px; }
.hk-header__logo-text { font-size: 1.2rem; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.hk-header.scrolled .hk-header__logo-text { color: var(--hk-primary); }
.hk-header__nav { display: flex; align-items: center; gap: 0; }
.hk-header__nav a { padding: .5rem .7rem; color: #fff; font-weight: 500; font-size: .85rem; border-radius: 6px; transition: all .2s; text-decoration: none; white-space: nowrap; }
.hk-header__nav a:hover { color: #fff; background: rgba(255,255,255,.15); }
header.hk-header.scrolled .hk-header__nav a:hover { color: var(--hk-primary); background: rgba(58,124,34,.08); }
.hk-header__nav ul { list-style: none; display: flex; gap: 0; margin: 0; padding: 0; align-items: center; }
.hk-header__nav li { list-style: none; margin: 0; padding: 0; position: relative; }
.hk-header__nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.15); padding: .5rem 0; min-width: 200px; z-index: 1001; }
.hk-header__nav .sub-menu a { color: var(--hk-dark) !important; padding: .5rem 1rem !important; display: block; }
.hk-header__nav .sub-menu a:hover { background: var(--hk-gray); color: var(--hk-primary) !important; }
.hk-header__nav li:hover > .sub-menu { display: block; }
.hk-header__nav .menu-item-has-children > a::after { content: ' \25BE'; font-size: .7rem; opacity: .6; }
/* Login: Text auf Desktop, Icon auf Mobil */
.hk-login-icon { display: none; }
@media (max-width: 900px) {
    .hk-login-text { display: none; }
    .hk-login-icon { display: flex; align-items: center; }
    .hk-header__login { padding: .4rem !important; border: none !important; }
}
.hk-header__actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.hk-header__login { padding: .4rem 1rem; border: 2px solid #fff; color: #fff !important; font-weight: 600; border-radius: 8px; font-size: .82rem; transition: all .2s; }
.hk-header__login:hover { background: #fff; color: var(--hk-dark) !important; }
header.hk-header.scrolled .hk-header__login { border-color: var(--hk-primary); color: var(--hk-primary) !important; }
header.hk-header.scrolled .hk-header__login:hover { background: var(--hk-primary); color: #fff !important; }
.hk-header__burger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: .5rem; color: #fff; }

@media (max-width: 900px) {
    .hk-header__burger { display: block; }
    .hk-header__nav { position: fixed; top: var(--hk-header-height); left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.95); flex-direction: column; padding: 2rem; gap: .5rem; transform: translateX(100%); transition: transform .3s; z-index: 999; }
    .hk-header__nav.open { transform: translateX(0); }
    .hk-header__nav a { font-size: 1.2rem; padding: .8rem 1rem; width: 100%; color: #fff; }
    .hk-header__nav ul { flex-direction: column; width: 100%; }
    .hk-header__nav li { width: 100%; }
    .hk-header__nav .sub-menu { position: static; background: none; box-shadow: none; display: block; padding: 0 0 0 1rem; }
    .hk-header__nav .sub-menu a { color: rgba(255,255,255,.7) !important; }
}

/* ═══════ HERO ═══════ */
.hk-hero { position: relative; min-height: 80vh; display: flex; align-items: center; justify-content: center; color: #fff; overflow: hidden; text-align: center; }
.hk-hero__bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.hk-hero__overlay { position: absolute; inset: 0; z-index: 1; background: #000; opacity: 0.4; }
.hk-hero__content { position: relative; z-index: 2; max-width: 800px; padding: 5rem 1.5rem 3rem; margin: 0 auto; }
.hk-hero__content h1 { color: #fff; font-size: 2.8rem; text-shadow: 0 2px 10px rgba(0,0,0,.3); }
.hk-hero__subtitle { color: rgba(255,255,255,.9); font-size: 1.2rem; font-weight: 600; }
.hk-hero__buttons { display: flex; gap: 1rem; margin-top: 2rem; justify-content: center; flex-wrap: wrap; }
@media (max-width: 768px) { .hk-hero { min-height: 70vh; } .hk-hero__content { padding: 6rem 1rem 2rem; } .hk-hero__content h1 { font-size: 1.8rem; } }

/* ═══════ BUTTONS ═══════ */
.hk-btn { display: inline-block; padding: .7rem 2rem; border-radius: 10px; font-weight: 600; font-size: .95rem; cursor: pointer; border: 2px solid transparent; transition: all .25s; text-align: center; text-decoration: none; }
.hk-btn--sm { padding: .45rem 1rem; font-size: .82rem; }
.hk-btn--primary { background: var(--hk-primary); color: #fff; border-color: var(--hk-primary); }
.hk-btn--primary:hover { background: var(--hk-primary-hover); border-color: var(--hk-primary-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(58,124,34,.35); }
.hk-btn--dark { background: var(--hk-secondary); color: #fff; border-color: var(--hk-secondary); }
.hk-btn--dark:hover { background: #0a1e33; color: #fff; transform: translateY(-2px); }
.hk-btn--white { background: #fff; color: var(--hk-dark); border-color: #fff; }
.hk-btn--white:hover { background: #f0f0f0; color: var(--hk-dark); }
.hk-btn--outline { background: transparent; color: #fff; border-color: #fff; }
.hk-btn--outline:hover { background: #fff; color: var(--hk-dark); }

/* ═══════ SEITEN-HEADER ═══════ */
.hk-page-header { position: relative; min-height: 220px; display: flex; align-items: center; justify-content: center; padding: calc(var(--hk-header-height) + 1rem) 1.5rem 2rem; color: #fff; text-align: center; overflow: hidden; }
.hk-page-header__bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.hk-page-header__overlay { position: absolute; inset: 0; z-index: 1; background: #000; opacity: 0.45; }
.hk-page-header h1 { position: relative; z-index: 2; color: #fff; font-size: 2.2rem; font-weight: 700; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.5); }

/* ═══════ FOOTER ═══════ */
.hk-footer { background: var(--hk-dark); color: #ccc; padding: 3rem 0 1.5rem; }
.hk-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.hk-footer__col h4 { color: #fff; margin-bottom: 1rem; font-size: .95rem; }
.hk-footer__col a { color: #aaa; display: block; padding: .2rem 0; font-size: .85rem; }
.hk-footer__col a:hover { color: var(--hk-primary); }
.hk-footer__col p { font-size: .85rem; line-height: 1.7; color: #999; }
.hk-footer__bottom { border-top: 1px solid #333; padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .8rem; color: #777; }
.hk-footer__social { display: flex; gap: .8rem; flex-shrink: 0; }
.hk-footer__social a { width: 36px; height: 36px; background: #333; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .9rem; transition: background .2s; }
.hk-footer__social a:hover { background: var(--hk-primary); }
@media (max-width: 768px) { .hk-footer__bottom { flex-direction: column; text-align: center; } }

/* ═══════ CONTENT ═══════ */
.hk-content h2 { margin-top: 2rem; }
.hk-content h3 { margin-top: 1.5rem; }
.hk-content ul, .hk-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.hk-content a { color: var(--hk-primary); text-decoration: underline; }
.hk-content a:hover { color: var(--hk-primary-hover); }

/* ═══════ SHARED LAYOUT CLASSES (cs-*) ═══════ */
.cs-page-header { position: relative; min-height: 220px; display: flex; align-items: center; justify-content: center; padding: calc(var(--hk-header-height) + 1rem) 1.5rem 2rem; color: #fff; text-align: center; overflow: hidden; }
.cs-page-header__bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.cs-page-header__overlay { position: absolute; inset: 0; z-index: 1; background: #000; opacity: 0.45; }
.cs-page-header h1 { position: relative; z-index: 2; color: #fff; font-size: 2.2rem; font-weight: 700; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.5); }

.cs-section { padding: 4rem 0; }
.cs-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.cs-btn { display: inline-block; padding: .65rem 1.5rem; border-radius: 8px; font-weight: 600; transition: all .25s; cursor: pointer; text-decoration: none; border: 2px solid transparent; font-size: .9rem; text-align: center; }
.cs-btn--primary { background: var(--hk-primary); color: #fff; border-color: var(--hk-primary); }
.cs-btn--primary:hover { background: var(--hk-primary-hover); border-color: var(--hk-primary-hover); color: #fff; }
.cs-btn--ghost { background: transparent; color: #666; border: 2px solid #ccc; }
.cs-btn--ghost:hover { border-color: #999; color: #333; }
.cs-btn--sm { font-size: .82rem; padding: .4rem .9rem; }
.cs-btn--danger { background: #c0392b; color: #fff; border: 2px solid #c0392b; padding: .65rem 1.5rem; border-radius: 8px; cursor: pointer; font-weight: 600; }
.cs-btn--danger:hover { background: #a93226; }

.cs-form__group { margin-bottom: .75rem; }
.cs-form__group label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .25rem; color: #333; }
.cs-form__group input:not([type=checkbox]):not([type=radio]),
.cs-form__group select, .cs-form__group textarea { width: 100%; padding: .5rem .7rem; border: 1.5px solid #ddd; border-radius: 8px; font-size: .88rem; box-sizing: border-box; transition: border-color .2s; }
.cs-form__group input:focus, .cs-form__group select:focus, .cs-form__group textarea:focus { outline: none; border-color: var(--hk-primary); box-shadow: 0 0 0 3px rgba(58,124,34,.12); }
.cs-form__group input[type=checkbox], .cs-form__group input[type=radio] { width: auto; accent-color: var(--hk-primary); }
.cs-checkbox-group label, .cs-form__group.cs-checkbox-group label { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; width: auto; }
.cs-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
@media(max-width:560px) { .cs-row2 { grid-template-columns: 1fr; } }

.cs-content h2 { margin-top: 2rem; }
.cs-content h3 { margin-top: 1.5rem; }
.cs-content ul, .cs-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.cs-content li { margin-bottom: .3rem; }
.cs-content a { color: var(--hk-primary); text-decoration: underline; }
.cs-content a:hover { color: var(--hk-primary-hover); }
.cs-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.cs-content table th, .cs-content table td { padding: .5rem .8rem; border: 1px solid #eee; text-align: left; font-size: .9rem; }
.cs-content table th { background: var(--hk-gray); font-weight: 600; }
.cs-content blockquote { border-left: 4px solid var(--hk-primary); padding: 1rem 1.5rem; margin: 1rem 0; background: #eaf3de; }
.cs-content img { border-radius: 8px; margin: 1rem 0; }

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 768px) {
    h1 { font-size: 1.8rem; } h2 { font-size: 1.4rem; }
    .hk-section { padding: 2.5rem 0; }
    .cs-section { padding: 2.5rem 0; }
    .cs-page-header h1 { font-size: 1.6rem; }
}

.text-center { text-align: center; }
.hidden { display: none !important; }
