/* ============================================================
   Calpam Store Detail – Seiten-Layout
   Version: 1.2.0
   ============================================================ */

/* --- Design-Tokens ---------------------------------------- */
:root {
	--cst-red:        #cc0000;
	--cst-red-dark:   #a50000;
	--cst-blue:       #003366;
	--cst-blue-light: #e8eef5;
	--cst-grey-bg:    #f5f5f5;
	--cst-border:     #ddd;
	--cst-text:       #222;
	--cst-label:      #003366;
	--cst-tag-bg:     #f0f0f0;
	--cst-tag-border: #ccc;
	--cst-radius:     4px;
	--cst-font:       'Helvetica Neue', Arial, sans-serif;
}

/* --- Wrapper ---------------------------------------------- */
.cst-wrap {
	max-width: 960px;
	margin: 0 auto;
	padding: 32px 20px 60px;
	font-family: var(--cst-font);
	color: var(--cst-text);
}

/* --- Hero-Titel-Box --------------------------------------- */
.cst-hero {
	background: #fff;
	border-left: 5px solid var(--cst-red);
	padding: 18px 24px;
	margin-bottom: 32px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

.cst-hero h1 {
	margin: 0;
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--cst-blue);
}

/* --- Haupt-Grid: Links Infos, Rechts Bilder --------------- */
.cst-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: start;
}

@media (max-width: 680px) {
	.cst-grid {
		grid-template-columns: 1fr;
	}
}

/* --- Abschnitte ------------------------------------------- */
.cst-section {
	margin-bottom: 28px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--cst-border);
}

.cst-section:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.cst-section-title {
	font-size: .8rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--cst-label);
	margin: 0 0 10px;
}

/* --- Öffnungszeiten --------------------------------------- */

/*
 * Zwei-Spalten-Grid: Mo–Fr links, Sa–So rechts.
 * Jeder Tag bekommt eine eigene Zeile innerhalb seiner Spalte.
 * Das Grid hat immer 2 Spalten; die ersten 5 Einträge füllen
 * die linke, alle weiteren die rechte Spalte automatisch.
 *
 * Technisch: CSS Grid mit grid-auto-flow: column und einer
 * festen Zeilenzahl von 5 (Mo–Fr), sodass Sa/So in die
 * zweite Spalte umbrechen.
 */
.cst-hours-grid {
	display: grid;
	grid-template-rows: repeat( 5, auto );
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	gap: 3px 24px;
	font-size: .92rem;
	line-height: 1.5;
}

.cst-hours-row {
	display: flex;
	gap: 8px;
	align-items: baseline;
	white-space: nowrap;
}

.cst-hours-day {
	font-weight: 700;
	color: var(--cst-text);
	width: 2.2em;       /* feste Breite damit Zeiten bündig stehen */
	flex-shrink: 0;
}

.cst-hours-time {
	color: var(--cst-text);
}

/* --- Tags (Kraftstoffe, Zahlungsarten) -------------------- */
.cst-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.cst-tag {
	display: inline-block;
	padding: 4px 10px;
	border: 1px solid var(--cst-tag-border);
	border-radius: var(--cst-radius);
	font-size: .85rem;
	background: var(--cst-tag-bg);
	color: var(--cst-text);
}

/* --- Kontakt ---------------------------------------------- */
.cst-contact p {
	margin: 2px 0;
	font-size: .92rem;
	line-height: 1.5;
}

.cst-phone {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	color: var(--cst-blue);
	font-weight: 600;
	text-decoration: none;
	font-size: .92rem;
}

.cst-phone:hover {
	color: var(--cst-red);
}

.cst-phone::before {
	content: '📞';
	font-size: .8rem;
}

/* --- Route-Button ----------------------------------------- */
.cst-route-btn {
	display: inline-block;
	margin-top: 12px;
	padding: 8px 18px;
	border: 1px solid var(--cst-blue);
	border-radius: var(--cst-radius);
	color: var(--cst-blue);
	font-size: .88rem;
	font-weight: 600;
	text-decoration: none;
	transition: background .15s, color .15s;
}

.cst-route-btn:hover {
	background: var(--cst-blue);
	color: #fff;
}

/* --- Bildergalerie ---------------------------------------- */
.cst-gallery {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cst-gallery-main {
	width: 100%;
	border-radius: var(--cst-radius);
	overflow: hidden;
	background: #eee;
	aspect-ratio: 4 / 3;
}

.cst-gallery-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cst-gallery-thumbs {
	display: flex;
	gap: 8px;
}

.cst-gallery-thumb {
	width: 80px;
	height: 60px;
	border-radius: var(--cst-radius);
	overflow: hidden;
	border: 2px solid transparent;
	cursor: pointer;
	flex-shrink: 0;
}

.cst-gallery-thumb.active,
.cst-gallery-thumb:hover {
	border-color: var(--cst-red);
}

.cst-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* --- Kein-Bild-Platzhalter -------------------------------- */
.cst-gallery-placeholder {
	background: #f0f0f0;
	border-radius: var(--cst-radius);
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
	font-size: .9rem;
	font-family: var(--cst-font);
}

/* --- Services-Liste --------------------------------------- */
.cst-services-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cst-services-list li {
	font-size: .92rem;
	padding: 1px 0;
}

/* --- Fehlermeldung ---------------------------------------- */
.cst-error {
	padding: 24px;
	background: #fff3f3;
	border: 1px solid #fcc;
	border-radius: var(--cst-radius);
	color: #900;
}
