/*
Theme Name: Occasion Sport
Theme URI: https://www.occasion-sport.de
Author: Occasion-Sport
Description: Theme für Occasion Sport, Neuenbürg-Arnbach – Fahrräder, E-Bikes, Dienstrad-Leasing, Werkstatt, Ski-Service, Skiverleih. Legt bei Aktivierung alle Seiten und das Menü automatisch an.
Version: 1.2
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: occasion-sport
*/

:root {
	--rot: #d7141f;
	--rot-dunkel: #a80f17;
	--petrol: #2b9aa6;
	--petrol-hell: #e3f4f5;
	--blau: #1e5a8a;
	--dunkel: #1c1f22;
	--text: #33373b;
	--grau: #6b7177;
	--linie: #e3e6e8;
	--hell: #f6f7f8;
	--weiss: #fff;
	--radius: 10px;
	--schatten: 0 6px 24px rgba(20, 30, 40, .08);
	--breite: 1180px;
	--schrift: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--schrift); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--weiss); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rot); text-decoration: none; }
a:hover { color: var(--rot-dunkel); }
h1, h2, h3, h4 { color: var(--dunkel); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute; left: -9999px; }

/* ---------- Topbar & Header ---------- */
.topbar { background: var(--dunkel); color: #cfd3d6; font-size: .85rem; }
.topbar .container { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; }
.topbar .status { display: inline-flex; align-items: center; gap: 7px; }
.topbar .punkt { width: 9px; height: 9px; border-radius: 50%; background: #8a8f94; }
.topbar .offen .punkt { background: #3ccf6a; box-shadow: 0 0 0 3px rgba(60, 207, 106, .25); }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--weiss); border-bottom: 1px solid var(--linie); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.logo { display: flex; flex-direction: column; line-height: 1; color: var(--dunkel); }
.logo:hover { color: var(--dunkel); }
.logo-name { font-size: 1.75rem; font-weight: 800; letter-spacing: -.5px; color: var(--rot); font-style: italic; }
.logo-name span { color: var(--dunkel); font-style: normal; font-weight: 600; margin-left: 4px; }
.logo-sub { font-size: .72rem; letter-spacing: 2.4px; text-transform: uppercase; color: var(--petrol); margin-top: 5px; font-weight: 600; }
.custom-logo { max-height: 60px; width: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a { display: block; white-space: nowrap; padding: 10px 11px; color: var(--dunkel); font-weight: 600; font-size: .95rem; border-radius: 6px; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--rot); background: #fbeaea; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--dunkel); margin: 5px 0; border-radius: 2px; transition: .2s; }

@media (max-width: 1180px) {
	.nav-toggle { display: block; }
	.main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--linie); display: none; box-shadow: var(--schatten); }
	.main-nav.offen { display: block; }
	.main-nav ul { flex-direction: column; padding: 10px 20px 18px; }
	.main-nav a { padding: 12px 10px; border-bottom: 1px solid var(--linie); border-radius: 0; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 13px 26px; border-radius: 50px; font-weight: 700; font-size: .98rem; transition: .2s; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn-rot { background: var(--rot); color: #fff; }
.btn-rot:hover { background: var(--rot-dunkel); color: #fff; }
.btn-hell { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); }
.btn-hell:hover { background: #fff; color: var(--dunkel); }
.btn-rand { border-color: var(--rot); color: var(--rot); background: transparent; }
.btn-rand:hover { background: var(--rot); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; color: #fff; background: var(--dunkel) center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 18, 22, .82) 0%, rgba(15, 18, 22, .55) 50%, rgba(15, 18, 22, .15) 100%); }
.hero .container { position: relative; padding-top: 70px; padding-bottom: 70px; }
.hero-text { max-width: 620px; }
.hero .kicker { display: inline-block; background: var(--rot); padding: 5px 14px; border-radius: 50px; font-size: .8rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.3rem); margin-bottom: 16px; }
.hero p { font-size: 1.15rem; color: #e6e9eb; margin-bottom: 28px; }
.hero .buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.page-hero { position: relative; color: #fff; background: var(--dunkel) center/cover no-repeat; min-height: 300px; display: flex; align-items: flex-end; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15, 18, 22, .85), rgba(15, 18, 22, .2)); }
.page-hero .container { position: relative; padding-bottom: 36px; padding-top: 90px; }
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 0; }
.page-hero .unter { color: #dfe3e6; margin: 6px 0 0; }
.page-hero.ohne-bild { background: linear-gradient(120deg, var(--dunkel), #2d3439); min-height: 200px; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.bg-hell { background: var(--hell); }
.bg-petrol { background: var(--petrol-hell); }
.section-kopf { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.section-kopf .label { color: var(--rot); font-weight: 700; font-size: .82rem; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 8px; }
.section-kopf p { color: var(--grau); }

.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.zwei-spalten img { border-radius: var(--radius); box-shadow: var(--schatten); }
@media (max-width: 860px) { .zwei-spalten { grid-template-columns: 1fr; gap: 30px; } section { padding: 56px 0; } }

.check-liste { list-style: none; padding: 0; margin: 0 0 1.4em; }
.check-liste li { position: relative; padding-left: 32px; margin-bottom: 9px; }
.check-liste li::before { content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--rot) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' stroke='%23fff' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* ---------- Karten ---------- */
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.karte { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; color: var(--text); }
a.karte:hover { transform: translateY(-4px); box-shadow: 0 12px 34px rgba(20, 30, 40, .14); color: var(--text); }
.karte-bild { aspect-ratio: 16 / 10; background: var(--hell) center/cover no-repeat; }
.karte-inhalt { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.karte-inhalt p { color: var(--grau); font-size: .96rem; flex: 1; }
.karte .mehr { font-weight: 700; color: var(--rot); font-size: .93rem; }

/* ---------- Partner / Marken ---------- */
.marken { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.marke { background: #fff; border: 1px solid var(--linie); border-radius: 50px; padding: 12px 26px; font-weight: 700; color: var(--dunkel); font-size: 1rem; }
.marke.haupt { border-color: var(--rot); color: var(--rot); }

/* ---------- Zahlen / Vorteile ---------- */
.vorteile { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; }
.vorteil { background: #fff; padding: 26px; border-radius: var(--radius); border-top: 4px solid var(--rot); box-shadow: var(--schatten); }
.vorteil h3 { font-size: 1.07rem; margin-bottom: 6px; }
.vorteil p { color: var(--grau); font-size: .95rem; margin: 0; }
.schritte { counter-reset: s; }
.schritte .vorteil::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--rot); color: #fff; font-weight: 800; margin-bottom: 12px; }

/* ---------- Galerie ---------- */
.galerie { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 220px; gap: 14px; }
.galerie img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.galerie .gross { grid-row: span 2; }
@media (max-width: 760px) { .galerie { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; } .galerie .gross { grid-column: span 2; grid-row: span 1; } }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--rot), var(--rot-dunkel)); color: #fff; text-align: center; padding: 64px 0; }
.cta h2 { color: #fff; }
.cta p { color: #ffe3e5; max-width: 640px; margin: 0 auto 24px; }

/* ---------- Kontakt & Öffnungszeiten ---------- */
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .kontakt-grid { grid-template-columns: 1fr; } }
.info-box { background: #fff; border-radius: var(--radius); box-shadow: var(--schatten); padding: 30px; }
.info-box h3 { margin-top: 0; }
.zeiten { width: 100%; border-collapse: collapse; }
.zeiten td { padding: 9px 0; border-bottom: 1px solid var(--linie); }
.zeiten td:last-child { text-align: right; font-weight: 600; }
.zeiten tr.heute td { color: var(--rot); }
.karte-map { border-radius: var(--radius); overflow: hidden; background: var(--hell); min-height: 300px; display: grid; place-items: center; text-align: center; padding: 30px; }

/* ---------- Formular ---------- */
.os-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 5px; }
.os-form input[type=text], .os-form input[type=email], .os-form input[type=tel], .os-form select, .os-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #cfd4d8; border-radius: 8px; font: inherit; margin-bottom: 16px; background: #fff; }
.os-form input:focus, .os-form select:focus, .os-form textarea:focus { outline: 2px solid var(--petrol); border-color: var(--petrol); }
.os-form .reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .os-form .reihe { grid-template-columns: 1fr; } }
.os-form .check { display: flex; gap: 10px; font-weight: 400; font-size: .9rem; margin-bottom: 18px; }
.os-form .hp { position: absolute; left: -9999px; }
.meldung { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; }
.meldung.ok { background: #e6f6ec; color: #1d6b3a; }
.meldung.fehler { background: #fdeaea; color: var(--rot-dunkel); }

/* ---------- Inhalt (Editor) ---------- */
.inhalt { padding: 60px 0 80px; }
.inhalt .container { max-width: 880px; }
.inhalt h2 { margin-top: 1.6em; }
.inhalt h3 { margin-top: 1.4em; }
.inhalt ul { padding-left: 1.2em; }
.inhalt .wp-block-image img, .inhalt figure img { border-radius: var(--radius); }
.inhalt .wp-block-columns { gap: 32px; }
.inhalt .alignwide { max-width: var(--breite); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dunkel); color: #b9bfc4; padding: 60px 0 0; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #e3e6e8; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.footer-unten { border-top: 1px solid #343a3f; margin-top: 46px; padding: 18px 0; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.footer-unten ul { display: flex; gap: 18px; }

.label-klein { display: block; color: var(--rot); font-weight: 700; font-size: .82rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.marken-titel { text-align: center; font-weight: 700; color: var(--grau); margin-bottom: 14px; }
.marken.abstand { margin-bottom: 34px; }
[id] { scroll-margin-top: 100px; }
@media (max-width: 600px) { .topbar .zeitinfo { display: none; } }

/* Logo */
.logo { flex-direction: row; align-items: center; gap: 12px; }
.logo-bild { width: 64px; height: 64px; }
.logo-text { display: flex; flex-direction: column; }
.footer-logo { width: 120px; height: 120px; margin-bottom: 14px; }
@media (max-width: 420px) { .logo-bild { width: 52px; height: 52px; } .logo-name { font-size: 1.45rem; } }

/* Highlights Startseite */
.winter-band { background: #eaf3f8 center/cover no-repeat; padding: 110px 0; }
.winter-box { margin-left: auto; background: rgba(255, 255, 255, .94); max-width: 560px; padding: 36px 38px; border-radius: var(--radius); box-shadow: var(--schatten); }
.winter-box .buttons { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 600px) { .winter-band { padding: 56px 0; } .winter-box { padding: 26px 22px; } }

