/*
Theme Name: Velo-Point
Theme URI: https://velo-point.ch/
Author: Velo-Point Radsport
Description: Modernes Block-Theme für Velo-Point Radsport, Glattbrugg. Die Startseite wird als normale Seite bearbeitet (Muster «Velo-Point Startseite»).
Version: 1.1.2
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: velo-point
*/

/* ---------- Basics ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
a:focus-visible, .wp-element-button:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 2px; }

/* ---------- Spacing of the homepage sections ---------- */
.vp-main { margin-block-start: 0; }
.vp-home > .alignfull { margin-block-start: 0; }
.vp-section { padding-block: 4.5rem; }
.vp-section-tight { padding-block: 0 4.5rem; }
.vp-section > * + *, .vp-section-tight > * + * { margin-block-start: 2rem; }
.vp-section-head { max-width: 46rem; }
.vp-section-head h2 { margin: 0 0 0.5rem; }
.vp-section-head p { margin: 0; }
.vp-page { padding-block: 3.5rem 4.5rem; }

/* ---------- Header ---------- */
.vp-header-inner { padding-block: 1rem; row-gap: 0.75rem; }
.vp-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.vp-logo { margin: 0; line-height: 1.1; }
.vp-logo a { text-decoration: none; color: var(--wp--preset--color--ink); }
.vp-logo strong { display: block; font-family: var(--wp--preset--font-family--display); font-size: 1.4rem; font-weight: 800; letter-spacing: -0.01em; }
.vp-logo span { display: block; font-size: 0.82rem; color: var(--wp--preset--color--subtle); }
.vp-header .wp-block-navigation a { text-decoration: none; }
.vp-header .wp-block-navigation a:hover { color: var(--wp--preset--color--accent); }

/* ---------- Notice bar ---------- */
.vp-notice { font-size: 0.92rem; padding-block: 0.6rem; }
.vp-notice > .alignwide { row-gap: 0.25rem; }
.vp-notice p { margin: 0; }
.vp-notice a { color: inherit; }

/* ---------- Hero ---------- */
.vp-badge { display: inline-block; margin: 0; padding: 0.35rem 0.9rem; border-radius: 999px; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); font-size: 0.9rem; font-weight: 500; }
.vp-badge::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 0.5rem; border-radius: 50%; background: #C77700; vertical-align: 1px; }
.vp-hero-title { font-size: clamp(2.5rem, 5.2vw, 4.25rem); line-height: 1.02; letter-spacing: -0.025em; max-width: 14ch; }
.vp-lead { font-size: 1.2rem; color: var(--wp--preset--color--muted); max-width: 36rem; }
.vp-hero .wp-block-image img { border-radius: 20px; width: 100%; height: auto; }

/* ---------- Sale banner ---------- */
.vp-sale { border-radius: 20px; padding: 2.5rem; gap: 1.5rem 3rem; }
.vp-sale-text { flex: 1 1 30rem; min-width: 0; }
.vp-sale-text > * { margin-block: 0 0.5rem; }
.vp-checks { margin: 0; padding: 0; list-style: none; }
.vp-checks li { position: relative; padding: 0.55rem 0 0.55rem 1.9rem; border-bottom: 1px solid var(--wp--preset--color--line); }
.vp-checks li:last-child { border-bottom: 0; }
.vp-checks li::before { content: ""; position: absolute; left: 0.2rem; top: 0.95rem; width: 0.7rem; height: 0.4rem; border-left: 2px solid var(--wp--preset--color--accent); border-bottom: 2px solid var(--wp--preset--color--accent); transform: rotate(-45deg); }
.vp-sale h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.1; }
.vp-kicker { margin: 0; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #F2B8A8; }
.vp-sale .wp-block-button__link { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink); }

/* ---------- Cards & tiles ---------- */
.vp-card { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 16px; padding: 1.75rem; }
.vp-card > *, .vp-tile > *, .vp-hours > * { margin-block: 0 0.75rem; }
.vp-card > *:last-child, .vp-tile > *:last-child, .vp-hours > *:last-child { margin-block-end: 0; }
.vp-price-list { column-gap: 3rem; row-gap: 0; }
.vp-post { margin-block-end: 1.25rem; }
.vp-card h3, .vp-tile h3 { margin-top: 0; }
.vp-price { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 2rem; line-height: 1.1; margin: 0; }
.vp-small { font-size: 0.92rem; color: var(--wp--preset--color--muted); }
.vp-eyebrow { margin: 0; font-size: 0.88rem; font-weight: 600; color: var(--wp--preset--color--subtle); }
.vp-eyebrow.is-green { color: #2F6B3A; }
.vp-tile { background: var(--wp--preset--color--soft); border-radius: 16px; padding: 1.75rem; }
.vp-product { background: var(--wp--preset--color--soft); border-radius: 14px; padding: 1rem 1.5rem; }
.vp-product p { margin: 0; }
.vp-product a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; text-decoration: none; color: var(--wp--preset--color--ink); font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.25rem; }
.vp-product a::after { content: "→"; font-family: var(--wp--preset--font-family--body); }
.vp-product a:hover { color: var(--wp--preset--color--accent); }
.vp-more a { font-weight: 600; }

/* ---------- Price list ---------- */
.vp-row { border-bottom: 1px solid var(--wp--preset--color--line); padding: 0.7rem 0; }
.vp-row p { margin: 0; }
.vp-row p:last-child { white-space: nowrap; font-weight: 600; }

/* ---------- Contact ---------- */
.vp-contact a { color: #FFFFFF; }
.vp-hours { background: #24272A; border-radius: 16px; padding: 1.75rem; }
.vp-contact h2 { margin-block-start: 0; }
.vp-hours p { margin: 0; }
.vp-hours .vp-row { border-bottom-color: #3A3E41; }
.vp-on-dark { color: var(--wp--preset--color--on-dark); }

/* ---------- Footer ---------- */
.vp-footer { font-size: 0.9rem; }
.vp-footer-inner { padding-block: 1.25rem; row-gap: 0.5rem; }
.vp-footer p { margin: 0; }
.vp-footer a { color: #FFFFFF; }

/* ---------- Subpages ---------- */
.vp-page-title { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }

/* ---------- Restored subpages ---------- */
.vp-page .wp-block-table { margin-block: 1.25rem; overflow-x: auto; }
.vp-page .wp-block-table table { border-collapse: collapse; width: 100%; background: var(--wp--preset--color--surface); border-radius: 12px; overflow: hidden; }
.vp-page .wp-block-table th, .vp-page .wp-block-table td { border: 0; border-bottom: 1px solid var(--wp--preset--color--line); padding: 0.75rem 1rem; text-align: left; vertical-align: top; }
.vp-page .wp-block-table thead th { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--surface); font-weight: 600; }
.vp-page .wp-block-table td:not(:first-child) { white-space: nowrap; }
.vp-page .wp-block-image img, .vp-page .wp-block-gallery img { border-radius: 12px; }
.vp-page .wp-block-image.vp-logo-img img { border-radius: 0; }
.vp-page h2 { margin-block-start: 2.5rem; }
.vp-page .vp-brand { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 16px; padding: 1.5rem 1.75rem; margin-block: 1.25rem; }
.vp-page .vp-brand > * { margin-block: 0 0.5rem; }
.vp-page .vp-brand > *:last-child { margin-block-end: 0; }
.vp-page .vp-brand .wp-block-image { margin-block-end: 0.75rem; }
.vp-page .vp-brand .wp-block-image img { max-height: 64px; width: auto; border-radius: 0; }
.vp-page .vp-sale { margin-block: 1.5rem; }
.vp-page .vp-sale h2 { margin-block-start: 0; }
