/*
Theme Name:   CassetteMix Child
Theme URI:    https://cassettemix.com
Description:  CassetteMix Child Theme für Blocksy
Author:       Matthias
Author URI:   https://cassettemix.com
Template:     blocksy
Version:     2.2.122
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  cassettemix-child
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — CassetteMix Design System
   ============================================================ */

:root {
	/* Farben */
	--cm-bg:              #F4EFE6;       /* Warmes Off-White */
	--cm-bg-card:         #EDE8DE;       /* Karten-Hintergrund */
	--cm-bg-dark:         #1A1612;       /* Dunkel-Hintergrund */
	--cm-bg-dark-card:    #26211B;       /* Dunkle Karte */
	--cm-tape:            #2B2520;       /* Kassetten-Dunkelbraun */

	--cm-accent:          #C4622D;       /* Terracotta */
	--cm-accent-hover:    #A8511F;       /* Terracotta Hover */
	--cm-accent-light:    #E8906A;       /* Helles Terracotta */
	--cm-accent-muted:    #D4956A;       /* Gedämpftes Terracotta */

	--cm-text:            #1A1612;       /* Primärtext */
	--cm-text-muted:      #6B5E52;       /* Sekundärtext */
	--cm-text-light:      #9A8E84;       /* Dezenter Text */
	--cm-text-on-dark:    #F4EFE6;       /* Text auf Dunkel */
	--cm-text-on-dark-2:  #C4B8AC;       /* Sekundärtext auf Dunkel */

	--cm-border:          #D6CCBF;       /* Rahmenfarbe */
	--cm-border-dark:     #3D342C;       /* Dunkler Rahmen */

	/* Typografie */
	--cm-font-display:    'Playfair Display', Georgia, serif;
	--cm-font-body:       'Inter', system-ui, -apple-system, sans-serif;
	--cm-font-mono:       'JetBrains Mono', 'Courier New', monospace;

	/* Abstände */
	--cm-radius:          4px;
	--cm-radius-lg:       8px;
	--cm-radius-xl:       16px;

	/* Schatten */
	--cm-shadow-sm:       0 1px 3px rgba(26,22,18,0.08);
	--cm-shadow:          0 4px 16px rgba(26,22,18,0.12);
	--cm-shadow-lg:       0 8px 32px rgba(26,22,18,0.18);

	/* Übergänge */
	--cm-transition:      all 0.2s ease;
}

/* ============================================================
   GOOGLE FONTS IMPORT
   ============================================================ */

/* Fonts werden lokal geladen via functions.php → assets/css/fonts.css */

/* ============================================================
   BASE RESET & GLOBAL STYLES
   ============================================================ */

body {
	background-color: var(--cm-bg);
	color: var(--cm-text);
	font-family: var(--cm-font-body);
	font-size: 15px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

/* ============================================================
   TYPOGRAFIE
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--cm-font-display);
	color: var(--cm-text);
	line-height: 1.2;
	letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }

p {
	color: var(--cm-text-muted);
	max-width: 68ch;
}

a {
	color: var(--cm-accent);
	text-decoration: none;
	transition: var(--cm-transition);
}

a:hover {
	color: var(--cm-accent-hover);
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header,
#header {
	background-color: var(--cm-bg) !important;
	border-bottom: 1px solid var(--cm-border);
	box-shadow: none !important;
}

.site-logo a,
.ct-logo {
	font-family: var(--cm-font-display);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--cm-text) !important;
	letter-spacing: -0.02em;
}

/* Logo-Akzent: "Mix" in Terracotta */
.site-title .accent,
.cm-logo-accent {
	color: var(--cm-accent);
}

/* Navigation */
.ct-main-nav a,
.primary-menu a {
	font-family: var(--cm-font-body);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--cm-text-muted) !important;
	transition: var(--cm-transition);
}

.ct-main-nav a:hover,
.primary-menu a:hover {
	color: var(--cm-accent) !important;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer,
#footer {
	background-color: var(--cm-tape) !important;
	color: var(--cm-text-on-dark-2);
	border-top: 3px solid var(--cm-accent);
	/* Volle Breite — ct-container Begrenzung aufheben */
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.site-footer a,
#footer a {
	color: var(--cm-text-on-dark-2);
}

.site-footer a:hover,
#footer a:hover {
	color: var(--cm-accent-light);
}
/* Blocksy Footer: margin-bottom-offset auf 0 setzen */
[data-footer*="type-1"] .ct-footer.ct-container,
.ct-footer.ct-container {
	--footer-container-bottom-offset: 0px !important;
	margin-bottom: 0 !important;
}



/* ============================================================
   STANDARD SEITEN (Imprint, Privacy Policy, etc.)
   ============================================================ */
.cm-page-content {
	width: 100%;
	background: var(--cm-bg);
}
.cm-page-inner {
	max-width: 780px;
	margin: 0 auto;
	padding: 3rem 2rem 4rem;
}
.cm-page-inner h1 {
	font-family: var(--cm-font-heading);
	font-size: 2.2rem;
	margin-bottom: 2rem;
	color: var(--cm-tape);
}
.cm-page-inner h2 {
	font-family: var(--cm-font-heading);
	font-size: 1.3rem;
	margin-top: 2.5rem;
	margin-bottom: 0.75rem;
	color: var(--cm-tape);
}
.cm-page-inner p,
.cm-page-inner li {
	font-size: 0.95rem;
	line-height: 1.75;
	color: var(--cm-text);
}
.cm-page-inner a {
	color: var(--cm-accent);
}
.cm-page-inner a:hover {
	color: var(--cm-accent-dark);
}
/* ============================================================
   BUTTONS
   ============================================================ */

.ct-button,
.wp-block-button__link,
button,
input[type="submit"] {
	background-color: var(--cm-accent) !important;
	color: #fff !important;
	border: none;
	border-radius: var(--cm-radius);
	font-family: var(--cm-font-body);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.65em 1.4em;
	cursor: pointer;
	transition: var(--cm-transition);
}

.ct-button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
	background-color: var(--cm-accent-hover) !important;
	transform: translateY(-1px);
	box-shadow: var(--cm-shadow);
}
/* ── CassetteMix Buttons: globalen button-Override zurücksetzen ── */
/* Alle CassetteMix-Buttons: orange gefüllt */
body .cm-vote-btn,
body .cm-report-trigger,
body .cm-share-btn,
body .cm-share-option,
body .cm-track-load-more {
    background-color: var(--cm-accent, #C4622D) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    transform: none !important;
    box-shadow: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    padding: 9px 20px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
}
body .cm-vote-btn:hover,
body .cm-report-trigger:hover,
body .cm-share-btn:hover,
body .cm-share-option:hover,
body .cm-track-load-more:hover {
    background-color: var(--cm-accent-hover, #a34e24) !important;
    color: #fff !important;
    border: none !important;
    transform: none !important;
    box-shadow: none !important;
}
body .cm-vote-btn.cm-voted-no {
    background-color: var(--cm-text-muted, #888) !important;
}

/* Ghost Button */
.btn-ghost {
	background-color: transparent !important;
	color: var(--cm-accent) !important;
	border: 1.5px solid var(--cm-accent) !important;
}

.btn-ghost:hover {
	background-color: var(--cm-accent) !important;
	color: #fff !important;
}

/* ============================================================
   KASSETTEN-KARTE — Archiv / Loop
   ============================================================ */

.cm-cassette-card {
	background-color: var(--cm-bg-card);
	border: 1px solid var(--cm-border);
	border-radius: var(--cm-radius-lg);
	padding: 1.5rem;
	transition: var(--cm-transition);
	position: relative;
	overflow: hidden;
}

.cm-cassette-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--cm-accent), var(--cm-accent-light));
	opacity: 0;
	transition: var(--cm-transition);
}

.cm-cassette-card:hover {
	border-color: var(--cm-accent-muted);
	box-shadow: var(--cm-shadow);
	transform: translateY(-2px);
}

.cm-cassette-card:hover::before {
	opacity: 1;
}

.cm-cassette-card .vol-number {
	font-family: var(--cm-font-mono);
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--cm-accent);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 0.25rem;
}

.cm-cassette-card .genre-tag {
	display: inline-block;
	background-color: var(--cm-tape);
	color: var(--cm-text-on-dark-2);
	font-family: var(--cm-font-mono);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.2em 0.6em;
	border-radius: 2px;
}

/* ============================================================
   KASSETTEN SINGLE-SEITE — Tracklist
   ============================================================ */

.cm-cassette-header {
	background-color: var(--cm-tape);
	color: var(--cm-text-on-dark);
	border-radius: var(--cm-radius-xl);
	padding: 2.5rem 2rem;
	margin-bottom: 2rem;
}

.cm-cassette-meta {
	font-family: var(--cm-font-mono);
	font-size: 0.8rem;
	color: var(--cm-text-on-dark-2);
	margin-bottom: 0.5rem;
}

.cm-cassette-title {
	font-family: var(--cm-font-display);
	font-size: clamp(1.8rem, 4vw, 3rem);
	color: var(--cm-text-on-dark);
	margin: 0;
}

.cm-cassette-genre {
	font-family: var(--cm-font-mono);
	color: var(--cm-accent-light);
	font-size: 0.9rem;
	margin-top: 0.5rem;
}

/* Seitentrennlinie */
.cm-side-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 2.5rem 0 1.5rem;
}

.cm-side-label {
	font-family: var(--cm-font-mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cm-accent);
	white-space: nowrap;
}

.cm-side-line {
	flex: 1;
	height: 1px;
	background-color: var(--cm-border);
}

/* Trackliste */
.cm-tracklist {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cm-track {
	display: grid;
	grid-template-columns: 1.5rem 2.5rem 1fr auto;
	align-items: center;
	gap: 0.75rem;
	padding: 0.6rem 0.75rem;
	border-radius: var(--cm-radius);
	transition: var(--cm-transition);
}

.cm-track:hover {
	background-color: var(--cm-bg-card);
}

.cm-track-num {
	font-family: var(--cm-font-mono);
	font-size: 0.7rem;
	color: var(--cm-text-light);
	text-align: right;
}

.cm-track-cover {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 2px;
	object-fit: cover;
	background-color: var(--cm-border);
}

.cm-track-info {
	min-width: 0;
}

.cm-track-title {
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--cm-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cm-track-artist {
	font-size: 0.78rem;
	color: var(--cm-text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cm-track-duration {
	font-family: var(--cm-font-mono);
	font-size: 0.75rem;
	color: var(--cm-text-light);
}

/* Play on Spotify Button */
.cm-spotify-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background-color: #1DB954 !important;
	color: #fff !important;
	font-size: 0.82rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.04em !important;
	padding: 0.7em 1.4em !important;
	border-radius: 500px !important;
	margin-top: 1.25rem;
	text-transform: none !important;
}

.cm-spotify-btn:hover {
	background-color: #1ed760 !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(29,185,84,0.3) !important;
}

.cm-spotify-btn svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

/* ============================================================
   CSS KASSETTEN-VISUAL
   ============================================================ */

.cm-cassette-visual {
	width: 100%;
	max-width: 400px;
	margin: 0 auto 2rem;
	aspect-ratio: 3 / 2;
	background: var(--cm-tape);
	border-radius: 12px;
	position: relative;
	box-shadow: var(--cm-shadow-lg), inset 0 1px 0 rgba(255,255,255,0.05);
	overflow: hidden;
}

/* Kassetten-Label */
.cm-cassette-visual .cassette-label {
	position: absolute;
	left: 10%;
	right: 10%;
	top: 15%;
	bottom: 15%;
	background: var(--cm-bg);
	border-radius: 6px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 1rem;
}

.cm-cassette-visual .cassette-label .label-vol {
	font-family: var(--cm-font-mono);
	font-size: 0.65rem;
	color: var(--cm-accent);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 0.15rem;
}

.cm-cassette-visual .cassette-label .label-title {
	font-family: var(--cm-font-display);
	font-size: 1.1rem;
	color: var(--cm-text);
	line-height: 1.2;
	/* Langer Titel wird abgeschnitten, nicht gestreckt */
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	word-break: break-word;
}

.cm-cassette-visual .cassette-label .label-genre {
	font-family: var(--cm-font-mono);
	font-size: 0.6rem;
	color: var(--cm-text-muted);
	margin-top: 0.3rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Spulen */
.cm-cassette-visual .reel {
	position: absolute;
	bottom: 14%;
	width: 22%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle at center, #3D342C 30%, #1A1612 30%, #1A1612 45%, #3D342C 45%, #3D342C 55%, #1A1612 55%);
	border: 2px solid #4A3F36;
}

.cm-cassette-visual .reel-left  { left: 12%; }
.cm-cassette-visual .reel-right { right: 12%; }

.cm-cassette-visual .reel.spinning {
	animation: reel-spin 3s linear infinite;
}

@keyframes reel-spin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

/* Kassetten-Schlitz */
.cm-cassette-visual .tape-window {
	position: absolute;
	bottom: 10%;
	left: 50%;
	transform: translateX(-50%);
	width: 36%;
	height: 8%;
	background: #0D0B09;
	border-radius: 2px;
}

/* ============================================================
   ADMIN DASHBOARD — Plugin-Styles
   ============================================================ */

.cm-admin-wrap {
	max-width: 960px;
	margin: 0;
}

.cm-admin-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 1.5rem;
	margin-bottom: 1.25rem;
}

.cm-admin-card h3 {
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #64748b;
	margin: 0 0 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid #e2e8f0;
}

.cm-status-badge {
	display: inline-block;
	padding: 0.2em 0.6em;
	border-radius: 3px;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.cm-status-badge.published { background: #dcfce7; color: #166534; }
.cm-status-badge.draft     { background: #fef3c7; color: #92400e; }
.cm-status-badge.error     { background: #fee2e2; color: #991b1b; }

/* ============================================================
   ARCHIV-SEITE
   ============================================================ */

.cm-archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.25rem;
}

.cm-archive-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 2rem;
}

.cm-filter-btn {
	background-color: transparent !important;
	color: var(--cm-text-muted) !important;
	border: 1px solid var(--cm-border) !important;
	font-size: 0.78rem !important;
	padding: 0.35em 0.9em !important;
	border-radius: 500px !important;
	text-transform: none !important;
	letter-spacing: normal !important;
}

.cm-filter-btn:hover,
.cm-filter-btn.active {
	background-color: var(--cm-accent) !important;
	color: #fff !important;
	border-color: var(--cm-accent) !important;
	transform: none !important;
	box-shadow: none !important;
}

/* ============================================================
   RESPONSIVENESS
   ============================================================ */

@media (max-width: 768px) {
	.cm-track {
		grid-template-columns: 1.2rem 2rem 1fr auto;
		gap: 0.5rem;
	}

	.cm-cassette-header {
		padding: 1.75rem 1.25rem;
	}

	.cm-archive-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.cm-track-cover {
		display: none;
	}

	.cm-track {
		grid-template-columns: 1.2rem 1fr auto;
	}
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.font-mono  { font-family: var(--cm-font-mono) !important; }
.font-serif { font-family: var(--cm-font-display) !important; }
.text-accent { color: var(--cm-accent) !important; }
.text-muted  { color: var(--cm-text-muted) !important; }
.bg-tape     { background-color: var(--cm-tape) !important; }
.bg-warm     { background-color: var(--cm-bg) !important; }

/* ============================================================
   CASSETTEMIX SINGLE — Blocksy-Overrides
   ============================================================ */

/* Blocksy Post-Header, Breadcrumb und Entry-Content-Wrapper
   auf der Single-Kassetten-Seite vollständig ausblenden */
body.single-cassette .entry-header,
body.single-cassette .page-title,
body.single-cassette .ct-post-header,
body.single-cassette .ct-breadcrumbs,
body.single-cassette [data-id="breadcrumbs"],
body.single-cassette [data-id="post-header"],
body.single-cassette .post-header,
body.single-cassette .hero-section,
body.single-cassette [class*="hero"],
body.single-cassette .ct-hero {
	display: none !important;
}

/* Blocksy wrapper padding/margin entfernen */
body.single-cassette .ct-container,
body.single-cassette .site-content,
body.single-cassette .content-area,
body.single-cassette main.site-main,
body.single-cassette .entry-content,
body.single-cm-artist .ct-container,
body.single-cm-artist .site-content,
body.single-cm-artist .content-area,
body.single-cm-artist main.site-main,
body.single-cm-artist .entry-content {
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
	width: 100% !important;
}

/* Hintergrundfarbe für gesamte Seite */
body.single-cassette,
body.single-cassette #page,
body.single-cassette #content,
body.single-cm-artist,
body.single-cm-artist #page,
body.single-cm-artist #content {
	background: #f7f5f2 !important;
}

/* Blocksy Mobile Header-Elemente auf Single-Kassette erzwingen:
   Logo-Bild und Hamburger-Trigger können durch interne Blocksy-Post-Type-Logik
   ausgeblendet werden — hier sicherstellen dass sie sichtbar bleiben. */
body.single-cassette .ct-toggle-dropdown-mobile,
body.single-cassette [data-id="trigger"],
body.single-cassette .ct-header-trigger,
body.single-cassette .site-logo,
body.single-cassette .ct-logo,
body.single-cassette .site-logo img {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* ============================================================
   ARTIST ARCHIVE + ARTIST SINGLE — Blocksy-Overrides
   ============================================================ */

body.post-type-archive-cm_artist .entry-header,
body.post-type-archive-cm_artist .page-title,
body.post-type-archive-cm_artist .ct-post-header,
body.post-type-archive-cm_artist .ct-breadcrumbs,
body.post-type-archive-cm_artist [data-id="breadcrumbs"],
body.post-type-archive-cm_artist [data-id="post-header"],
body.post-type-archive-cm_artist .post-header,
body.post-type-archive-cm_artist .hero-section,
body.post-type-archive-cm_artist [class*="hero"],
body.post-type-archive-cm_artist .ct-hero,
body.post-type-archive-cm_artist h1.page-title,
body.post-type-archive-cm_artist .archive-title,
body.post-type-archive-cm_artist .ct-archive-title,
body.single-cm_artist .entry-header,
body.single-cm_artist .page-title,
body.single-cm_artist .ct-post-header,
body.single-cm_artist .ct-breadcrumbs,
body.single-cm_artist [data-id="breadcrumbs"],
body.single-cm_artist [data-id="post-header"],
body.single-cm_artist .post-header,
body.single-cm_artist .hero-section,
body.single-cm_artist [class*="hero"],
body.single-cm_artist .ct-hero {
	display: none !important;
}

body.post-type-archive-cm_artist .ct-container,
body.post-type-archive-cm_artist .site-content,
body.post-type-archive-cm_artist .content-area,
body.post-type-archive-cm_artist main.site-main,
body.post-type-archive-cm_artist .entry-content,
body.post-type-archive-cm_artist main > .ct-container,
body.single-cm_artist .ct-container,
body.single-cm_artist .site-content,
body.single-cm_artist .content-area,
body.single-cm_artist main.site-main,
body.single-cm_artist .entry-content {
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
	width: 100% !important;
}

body.post-type-archive-cm_artist,
body.post-type-archive-cm_artist #page,
body.post-type-archive-cm_artist #content,
body.single-cm_artist,
body.single-cm_artist #page,
body.single-cm_artist #content {
	background: var(--cm-bg, #F4EFE6) !important;
}

/* ── Kassetten-Navigation ─────────────────────────────────── */
.cm-cassette-nav {
	max-width: 700px;
	margin: 0 auto;
	padding: 0 24px 48px;
}

.cm-nav-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
	border-top: 1px solid #e8e4df;
	padding-top: 20px;
}

.cm-nav-link {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #8c8480;
	transition: color 0.2s;
}

.cm-nav-link:hover { color: #d4612a; }

.cm-nav-prev { justify-content: flex-start; }
.cm-nav-next { justify-content: flex-end; }

.cm-nav-arrow {
	font-size: 1.2rem;
	line-height: 1;
}

.cm-nav-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cm-nav-text--right { text-align: right; }

.cm-nav-label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #c4bfba;
}

.cm-nav-vol {
	font-size: 13px;
	font-weight: 500;
}

.cm-nav-archive {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid #e8e4df;
	color: #8c8480;
	text-decoration: none;
	transition: all 0.2s;
}

.cm-nav-archive:hover {
	border-color: #d4612a;
	color: #d4612a;
}


/* ── Kassette innerhalb Side-Container ──────────────────────── */
.cm-side-cassette {
	background: #1a1a1a;
	border-radius: 12px 12px 0 0;
	display: flex;
	justify-content: center;
	padding: 24px 16px 20px;
}

/* Kassetten-Shell im Side-Container: unten eckig */
.cm-side-cassette .cm-cassette-shell {
	border-radius: 12px 12px 0 0;
}

/* "Side A" / "Side B" als primärer Label-Text */
.cm-clabel-side {
	font-family: var(--cm-font-sans, 'DM Sans', sans-serif);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #d4612a;
	line-height: 1;
	margin-bottom: 1px;
}

/* Side B Kassette: Spulen-Animation umgekehrt (mehr Tape verbraucht) */
.cm-side-b .cm-side-cassette .cm-reel-l .cm-reel-outer {
	animation-direction: normal;
}
.cm-side-b .cm-side-cassette .cm-reel-r .cm-reel-outer {
	width: 78px;
	height: 78px;
	animation-direction: reverse;
}
.cm-side-b .cm-side-cassette .cm-reel-r .cm-reel-inner {
	width: 58px;
	height: 58px;
}

/* ============================================================
   HOMEPAGE — Hero, Features, Pillars, Tape Divider, CTA
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */

.cm-home-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 88vh;
	border-bottom: 1px solid var(--cm-border);
	overflow: hidden;
}

.cm-home-hero__left {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 72px 56px 72px 64px;
	border-right: 1px solid var(--cm-border);
	position: relative;
}

.cm-home-hero__left::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 0% 60%, rgba(196,98,45,0.07) 0%, transparent 65%);
	pointer-events: none;
}

.cm-home-eyebrow {
	font-family: var(--cm-font-mono);
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--cm-accent);
	margin-bottom: 28px;
	display: flex;
	align-items: center;
	gap: 14px;
}

.cm-home-eyebrow::before {
	content: '';
	display: inline-block;
	width: 28px;
	height: 1px;
	background: var(--cm-accent);
	flex-shrink: 0;
}

.cm-home-headline {
	font-family: var(--cm-font-display);
	font-size: clamp(40px, 4.5vw, 62px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.025em;
	margin-bottom: 32px;
	color: var(--cm-text);
}

.cm-home-headline em {
	font-style: italic;
	color: var(--cm-accent);
}

.cm-home-lead {
	font-size: 15px;
	line-height: 1.8;
	color: var(--cm-text-muted);
	max-width: 400px;
	font-weight: 300;
}

.cm-home-hero__right {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 72px 64px 72px 56px;
}

/* ── Feature-Zeilen rechts ───────────────────────────────── */

.cm-hf {
	padding: 30px 0;
	border-bottom: 1px solid var(--cm-border);
	position: relative;
	padding-left: 0;
	transition: padding-left 0.3s ease;
}

.cm-hf:first-of-type { border-top: 1px solid var(--cm-border); }

.cm-hf::before {
	content: '';
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 2px;
	background: var(--cm-accent);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 0.3s ease;
}

.cm-hf:hover { padding-left: 18px; }
.cm-hf:hover::before { transform: scaleY(1); }

.cm-hf__num {
	font-family: var(--cm-font-mono);
	font-size: 9px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--cm-accent);
	opacity: 0.65;
	margin-bottom: 8px;
}

.cm-hf__title {
	font-family: var(--cm-font-display);
	font-size: 19px;
	font-weight: 600;
	color: var(--cm-text);
	margin-bottom: 8px;
	line-height: 1.25;
}

.cm-hf__text {
	font-size: 13.5px;
	line-height: 1.7;
	color: var(--cm-text-muted);
	font-weight: 300;
	max-width: none;
}

/* ── Pillars ──────────────────────────────────────────────── */

.cm-home-pillars {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-bottom: 1px solid var(--cm-border);
}

.cm-hp {
	padding: 52px 44px;
	border-right: 1px solid var(--cm-border);
	position: relative;
	overflow: hidden;
	transition: background 0.3s ease;
}

.cm-hp:last-child { border-right: none; }
.cm-hp:hover { background: var(--cm-bg-card); }

.cm-hp__icon {
	width: 32px;
	height: 32px;
	color: var(--cm-accent);
	opacity: 0.8;
	margin-bottom: 22px;
	display: block;
}

.cm-hp__title {
	font-family: var(--cm-font-display);
	font-size: 18px;
	font-weight: 600;
	color: var(--cm-text);
	margin-bottom: 12px;
	line-height: 1.2;
}

.cm-hp__text {
	font-size: 13.5px;
	line-height: 1.75;
	color: var(--cm-text-muted);
	font-weight: 300;
	max-width: none;
}

.cm-hp__tag {
	position: absolute;
	bottom: 22px;
	right: 22px;
	font-family: var(--cm-font-mono);
	font-size: 9px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--cm-border);
	transition: color 0.3s;
}

.cm-hp:hover .cm-hp__tag { color: var(--cm-accent-muted); }

/* ── Tape Divider ─────────────────────────────────────────── */

.cm-home-tape {
	background: var(--cm-tape);
	padding: 26px 64px;
	display: flex;
	align-items: center;
	gap: 28px;
}

.cm-home-tape__reel {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1.5px solid rgba(244,239,230,0.18);
	position: relative;
	animation: cm-reel-spin 7s linear infinite;
}

.cm-home-tape__reel--reverse { animation-direction: reverse; }

.cm-home-tape__reel::before {
	content: '';
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 9px; height: 9px;
	border-radius: 50%;
	background: rgba(244,239,230,0.22);
}

@keyframes cm-reel-spin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

.cm-home-tape__track {
	flex: 1;
	height: 1px;
	background: repeating-linear-gradient(
		90deg,
		rgba(244,239,230,0.1) 0, rgba(244,239,230,0.1) 4px,
		transparent 4px, transparent 12px
	);
}

.cm-home-tape__label {
	font-family: var(--cm-font-mono);
	font-size: 9px;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: rgba(244,239,230,0.3);
	white-space: nowrap;
}

/* ── CTA Banner ───────────────────────────────────────────── */

.cm-home-cta {
	background: var(--cm-bg-dark);
	padding: 88px 64px;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 56px;
	position: relative;
	overflow: hidden;
}

.cm-home-cta::after {
	content: '';
	position: absolute;
	top: -100px; right: -100px;
	width: 500px; height: 500px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(196,98,45,0.1) 0%, transparent 65%);
	pointer-events: none;
}

.cm-home-cta__eyebrow {
	font-family: var(--cm-font-mono);
	font-size: 9px;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--cm-accent);
	opacity: 0.75;
	margin-bottom: 14px;
}

.cm-home-cta__headline {
	font-family: var(--cm-font-display);
	font-size: clamp(26px, 3.5vw, 42px);
	font-weight: 600;
	line-height: 1.15;
	color: var(--cm-text-on-dark);
	margin-bottom: 12px;
	letter-spacing: -0.02em;
}

.cm-home-cta__sub {
	font-size: 13.5px;
	color: var(--cm-text-on-dark-2);
	font-weight: 300;
	max-width: none;
}

.cm-home-cta__btn {
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
	background: var(--cm-accent) !important;
	color: var(--cm-text-on-dark) !important;
	font-family: var(--cm-font-mono) !important;
	font-size: 10px !important;
	letter-spacing: 0.18em !important;
	text-transform: uppercase !important;
	padding: 18px 30px !important;
	border-radius: 2px !important;
	white-space: nowrap;
	transition: background 0.25s, transform 0.2s !important;
	text-decoration: none !important;
	flex-shrink: 0;
	position: relative;
	z-index: 1;
	box-shadow: none !important;
	font-weight: 400 !important;
}

.cm-home-cta__btn:hover {
	background: var(--cm-accent-hover) !important;
	color: #fff !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 6px 20px rgba(196,98,45,0.3) !important;
}

.cm-home-cta__btn svg { transition: transform 0.2s; }
.cm-home-cta__btn:hover svg { transform: translateX(4px); }

/* ── Fade-in Animation ────────────────────────────────────── */

.cm-fade-in {
	opacity: 0;
	transform: translateY(18px);
	animation: cm-fadeup 0.65s ease forwards;
}

@keyframes cm-fadeup {
	to { opacity: 1; transform: translateY(0); }
}

.cm-fade-in:nth-child(1) { animation-delay: 0.05s; }
.cm-fade-in:nth-child(2) { animation-delay: 0.15s; }
.cm-fade-in:nth-child(3) { animation-delay: 0.25s; }
.cm-fade-in:nth-child(4) { animation-delay: 0.35s; }

/* ── Mobile ───────────────────────────────────────────────── */

@media (max-width: 900px) {
	.cm-home-hero {
		grid-template-columns: 1fr;
		min-height: auto;
	}
	.cm-home-hero__left {
		padding: 56px 28px 44px;
		border-right: none;
		border-bottom: 1px solid var(--cm-border);
	}
	.cm-home-hero__right { padding: 36px 28px 48px; }
	.cm-home-pillars { grid-template-columns: 1fr; }
	.cm-hp {
		padding: 36px 28px;
		border-right: none;
		border-bottom: 1px solid var(--cm-border);
	}
	.cm-hp:last-child { border-bottom: none; }
	.cm-home-tape { padding: 20px 28px; }
	.cm-home-cta {
		grid-template-columns: 1fr;
		padding: 56px 28px;
		gap: 32px;
	}
}

/* ── Latest Cassette Section ──────────────────────────────── */

.cm-front-page {
	background: var(--cm-bg);
}

/* Blocksy-Overrides für die Startseite und Custom-Templates */
body.home .ct-container,
body.home .site-content,
body.home .content-area,
body.home main.site-main,
body.home .entry-content,
body.home .entry-header,
body.home .ct-post-header,
body.home .ct-breadcrumbs,
body.home [data-id="breadcrumbs"],
body.home [data-id="post-header"],
body.home .ct-hero,
body.page-template-page-genres .ct-container,
body.page-template-page-genres .site-content,
body.page-template-page-genres .content-area,
body.page-template-page-genres main.site-main,
body.page-template-page-genres .entry-content,
body.page-template-page-tracks .ct-container,
body.page-template-page-tracks .site-content,
body.page-template-page-tracks .content-area,
body.page-template-page-tracks main.site-main,
body.page-template-page-tracks .entry-content,
body.archive.post-type-archive-cassette .ct-container,
body.archive.post-type-archive-cassette .site-content,
body.archive.post-type-archive-cassette .content-area,
body.archive.post-type-archive-cassette main.site-main,
body.archive.post-type-archive-cassette .entry-content,
body.archive.post-type-archive-cm_artist .ct-container,
body.archive.post-type-archive-cm_artist .site-content,
body.archive.post-type-archive-cm_artist .content-area,
body.archive.post-type-archive-cm_artist main.site-main,
body.archive.post-type-archive-cm_artist .entry-content,
body.tax-cassette_genre .ct-container,
body.tax-cassette_genre .site-content,
body.tax-cassette_genre .content-area,
body.tax-cassette_genre main.site-main,
body.tax-cassette_genre .entry-content {
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
	width: 100% !important;
}

body.home [data-id="breadcrumbs"],
body.home [data-id="post-header"],
body.home .ct-hero {
	display: none !important;
}

body.home,
body.home #page,
body.home #content {
	background: var(--cm-bg) !important;
}

.cm-home-latest {
	border-bottom: 1px solid var(--cm-border);
	padding: 48px 0;
}

.cm-home-latest__inner {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.cm-home-latest__eyebrow {
	padding: 0 64px;
}

@media (max-width: 900px) {
	.cm-home-latest {
		padding: 32px 0;
	}
	.cm-home-latest__eyebrow {
		padding: 0 20px;
	}
}

.cm-home-latest__card {
	display: grid;
	grid-template-columns: 260px 1fr auto;
	align-items: center;
	gap: 40px;
	padding: 32px 64px;
	text-decoration: none;
	color: inherit;
	transition: background 0.25s;
}

.cm-home-latest__card:hover {
	background: var(--cm-bg-card);
}

.cm-home-latest__cassette {
	display: flex;
	justify-content: center;
	flex-shrink: 0;
}

.cm-home-tape-svg {
	width: 220px;
	filter: drop-shadow(0 8px 24px rgba(0,0,0,0.22));
	transition: transform 0.4s ease, filter 0.4s ease;
}

.cm-home-latest__card:hover .cm-home-tape-svg {
	transform: scale(1.03) rotateY(-3deg);
	filter: drop-shadow(0 12px 32px rgba(0,0,0,0.3));
}

.cm-home-tape-svg svg {
	width: 100%;
	height: auto;
	display: block;
}

.cm-home-latest__info {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cm-home-latest__title {
	font-family: var(--cm-font-display);
	font-size: clamp(1.4rem, 2.5vw, 2rem);
	font-weight: 700;
	color: var(--cm-text);
	line-height: 1.2;
	margin: 0;
}

.cm-home-latest__genre {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 0;
}

.cm-home-latest__arrow {
	color: var(--cm-border);
	transition: color 0.2s, transform 0.2s;
}

.cm-home-latest__card:hover .cm-home-latest__arrow {
	color: var(--cm-accent);
	transform: translateX(6px);
}

/* ── Mobile: Kassette links, Info rechts ──────────────────── */

@media (max-width: 900px) {
	.cm-home-latest__card {
		grid-template-columns: 120px 1fr;
		padding: 24px 20px;
		gap: 18px;
	}
	.cm-home-latest__cassette .cm-home-tape-svg {
		width: 120px;
	}
	.cm-home-latest__title {
		font-size: 1.1rem;
	}
	.cm-home-latest__arrow { display: none; }
}

/* ============================================================
   GENRE-TAG LINK — Single Cassette
   ============================================================ */

a.cm-genre-tag {
	display: inline-block;
	background-color: transparent;
	color: var(--cm-accent);
	font-family: var(--cm-font-mono, monospace);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid var(--cm-accent);
	padding: 0.4em 1.2em;
	border-radius: 2px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

a.cm-genre-tag:hover {
	background-color: var(--cm-accent);
	color: #fff;
}

/* ============================================================
   CONTACT FORM 7 — CassetteMix Style
   ============================================================ */

.wpcf7 {
	max-width: 640px;
	margin: 0 auto;
	padding: 2rem 0;
}

.wpcf7 .wpcf7-form-control-wrap {
	display: block;
	margin-bottom: 1.25rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	width: 100%;
	background: var(--cm-bg-card);
	border: 1px solid var(--cm-border);
	border-radius: var(--cm-radius);
	color: var(--cm-text);
	font-family: var(--cm-font-body);
	font-size: 0.95rem;
	padding: 0.75rem 1rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
	outline: none;
	border-color: var(--cm-accent);
	box-shadow: 0 0 0 2px rgba(196, 98, 45, 0.15);
}

.wpcf7 textarea {
	min-height: 160px;
	resize: vertical;
}

.wpcf7 label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cm-text-muted);
	margin-bottom: 0.4rem;
}

.wpcf7 input[type="submit"] {
	background: var(--cm-accent) !important;
	color: #fff !important;
	border: none !important;
	border-radius: var(--cm-radius) !important;
	font-family: var(--cm-font-body) !important;
	font-size: 0.85rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	padding: 0.75rem 2rem !important;
	cursor: pointer !important;
	transition: background 0.2s ease !important;
}

.wpcf7 input[type="submit"]:hover {
	background: var(--cm-accent-hover) !important;
}

/* Validierung */
.wpcf7 .wpcf7-not-valid-tip {
	font-size: 0.8rem;
	color: #c0392b;
	margin-top: 0.25rem;
	display: block;
}

.wpcf7 .wpcf7-response-output {
	border-radius: var(--cm-radius);
	font-size: 0.875rem;
	padding: 0.75rem 1rem;
	margin-top: 1rem;
	border: 1px solid var(--cm-border);
	background: var(--cm-bg-card);
	color: var(--cm-text-muted);
}

.wpcf7 .wpcf7-mail-sent-ok {
	border-color: #27ae60;
	background: #f0faf4;
	color: #1e7e34;
}

.wpcf7 .wpcf7-validation-errors {
	border-color: #c0392b;
	background: #fdf0ef;
	color: #c0392b;
}

/* ============================================================
   CM PAGE — Standard-Seitenvorlage
   ============================================================ */

.cm-page-content {
	max-width: 760px;
	margin: 0 auto;
	padding: 3rem 1.5rem 4rem;
}

.cm-page-content h1,
.cm-page-content h2,
.cm-page-content h3 {
	font-family: var(--cm-font-display);
	color: var(--cm-text);
}

.cm-page-content p,
.cm-page-content li {
	color: var(--cm-text-muted);
	line-height: 1.75;
}

.cm-page-content a {
	color: var(--cm-accent);
}

.cm-page-content a:hover {
	color: var(--cm-accent-hover);
}
