/* ---------------------------------------------------------------
   Cookiebanner – M&M Hairlocation
   Einbau: <link href="css/cookiebanner.css" rel="stylesheet" type="text/css" media="screen" />
--------------------------------------------------------------- */

#cb-banner[hidden],
#cb-settings[hidden],
#cb-overlay[hidden],
#cb-reopen[hidden] { display: none !important; }

#cb-banner, #cb-banner *,
#cb-settings, #cb-settings *,
#cb-reopen, #cb-reopen *,
.cb-placeholder, .cb-placeholder * {
	font-family: 'Raleway', sans-serif !important;
}

#cb-banner,
#cb-settings {
	font: normal 16px/24px 'Raleway', sans-serif;
	color: #fff;
	background: rgba(0,0,0,0.95);
	border: 1px solid #333;
	box-sizing: border-box;
}

#cb-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	border-width: 1px 0 0 0;
	padding: 28px 40px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 30px 50px;
}

#cb-banner .cb-text { flex: 1 1 420px; min-width: 260px; }

#cb-banner h2,
#cb-settings h2 {
	font-family: 'Raleway', sans-serif;
	font-size: 27px;
	line-height: 32px;
	text-transform: uppercase;
	color: #fff;
	background: none;
	height: auto;
	display: block;
	margin: 0 0 14px 0;
	padding: 0;
}

#cb-banner p,
#cb-settings p {
	margin: 0 0 8px 0;
	font-size: 15px;
	line-height: 23px;
	color: #e2e2e2;
}

#cb-banner p.cb-small,
#cb-settings p.cb-small { margin: 0; font-size: 13px; line-height: 20px; color: #9a9a9a; }

#cb-banner .cb-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 0 0 260px;
	width: 260px;
}

/* Buttons */
.cb-btn {
	font: 15px/1 'Raleway', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 15px 22px;
	cursor: pointer;
	transition: all 300ms;
	border: 0;
	border-radius: 0;
	text-align: center;
}
.cb-btn-primary { background: #cd009f; color: #fff; }
.cb-btn-primary:hover { background: #9d007a; }
.cb-btn-secondary { background: transparent; color: #fff; border: 1px solid #555; padding: 14px 20px; }
.cb-btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.cb-btn-link {
	background: none;
	border: 0;
	color: #d683ae;
	font:  13px/1 'Raleway', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 6px 0 0 0;
	cursor: pointer;
	transition: all 300ms;
}
.cb-btn-link:hover { color: #9d007a; text-decoration: underline; }
.cb-btn:focus-visible, .cb-switch:focus-visible { outline: 2px solid #d683ae; outline-offset: 2px; }

/* Einstellungen-Dialog */
#cb-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.75);
	z-index: 9998;
}
#cb-settings {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	width: 680px;
	max-width: calc(100% - 40px);
	max-height: calc(100% - 60px);
	overflow-y: auto;
	z-index: 9999;
	padding: 36px 40px 32px 40px;
}
#cb-settings .cb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
#cb-settings .cb-close {
	background: none; border: 0; color: #777; font-size: 26px; line-height: 1; cursor: pointer; padding: 0; transition: all 300ms;
}
#cb-settings .cb-close:hover { color: #fff; }
#cb-settings .cb-intro { margin: 14px 0 26px 0; font-size: 14px; line-height: 22px; color: #9a9a9a; }

#cb-settings .cb-row {
	border-top: 1px solid #333;
	padding: 20px 0;
	display: flex;
	gap: 24px;
	align-items: flex-start;
	justify-content: space-between;
}
#cb-settings .cb-row:last-of-type { border-bottom: 1px solid #333; }
#cb-settings .cb-row h3 {
	font-family: 'Raleway', sans-serif;
	font-size: 20px;
	line-height: 24px;
	text-transform: uppercase;
	color: #fff;
	margin: 0;
}
#cb-settings .cb-row p { margin: 6px 0 0 0; font-size: 14px; line-height: 21px; color: #9a9a9a; max-width: 420px; }
#cb-settings .cb-always {
	font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: #cd009f; white-space: nowrap; padding-top: 6px;
}

/* Schalter */
.cb-switch {
	position: relative;
	flex: 0 0 auto;
	width: 52px;
	height: 26px;
	border: 1px solid #555;
	background: transparent;
	padding: 0;
	cursor: pointer;
	transition: all 300ms;
}
.cb-switch span {
	position: absolute; top: 3px; left: 3px;
	width: 18px; height: 18px;
	background: #fff;
	display: block;
	transition: all 300ms;
}
.cb-switch[aria-checked="true"] { border-color: #cd009f; background: #cd009f; }
.cb-switch[aria-checked="true"] span { left: 29px; }

#cb-settings .cb-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
#cb-settings .cb-foot a { margin-left: auto; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }

/* Platzhalter für externe Inhalte */
.cb-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	text-align: center;
	padding: 30px 24px;
	background: rgba(0,0,0,0.6);
	border: 1px solid #333;
	font: normal 15px/23px 'Raleway', sans-serif;
	color: #e2e2e2;
	box-sizing: border-box;
}
.cb-placeholder p { margin: 0; max-width: 420px; }
.cb-placeholder p.cb-small { font-size: 13px; line-height: 20px; color: #9a9a9a; }
.cb-placeholder strong { color: #fff; font-weight: 600; }

/* Späterer Zugang zu den Einstellungen */
#cb-reopen {
	position: fixed;
	left: 0;
	bottom: 0;
	z-index: 9997;
	background: rgba(0,0,0,0.7);
	border: 0;
	border-top: 1px solid #333;
	color: #fff;
	font:  16px'Raleway', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 11px 14px;
	cursor: pointer;
	transition: all 300ms;
}
#cb-reopen:hover { background: #000; color: #d683ae; }

@media only screen and (max-width: 1024px) {
	#cb-banner { padding: 20px; gap: 20px; }
	#cb-banner h2, #cb-settings h2 { font-size: 22px; line-height: 26px; }
	#cb-banner .cb-actions { flex: 1 1 100%; width: 100%; }
	#cb-settings { padding: 24px 20px; }
	#cb-settings .cb-row { flex-wrap: wrap; gap: 14px; }
	#cb-reopen { font-size: 16px; padding: 15px; }
}
