﻿:root {
	--primary: #3f51b5;
	--dark: #252020;
	--light: #ffffff;
	--bg: #f4f6fb;
	--border: #d5d9ee;
}

header.playground {
	background: var(--primary);
	color: white;
	padding: 8px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between; /* links Titel, rechts Text */
}

	header.playground h1 {
		margin: 0;
		font-size: 2em; /* großer Titel links */
		font-weight: 700;
		line-height: 1;
	}

	header.playground p {
		margin: 0;
		font-size: 1.5rem;
		opacity: 0.9;
		white-space: nowrap;
		text-align: left; /* 👈 linksbündig */
	}

.symbol-playground {
	flex: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	overflow: hidden;
	margin-bottom: 15px;
	/* ✨ NEU */
	border-radius: 12px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
	background: white;
}

/* Editors */
.editors {
	display: grid;
	grid-template-rows: 1fr 1fr 1fr;
	border-right: 2px solid var(--border);
	background: white;
}

.editor {
	display: flex;
	flex-direction: column;
	border-bottom: 1px solid var(--border);
}

	.editor label {
		background: #e8ebfa;
		color: var(--primary);
		padding: 2px 10px;
		font-weight: 600;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
		 

	.editor textarea {
		flex: 1;
		border: none;
		padding: 10px;
		font-family: Consolas, monospace;
		font-size: 14px;
		resize: none;
	}

	/* Fullscreen logic */
	.editor.fullscreen {
		grid-row: 1 / 4;
	}

	.editor.hidden {
		display: none;
	}

.fs-btn {
	cursor: pointer;
	font-size: 1.1rem;
}

/* Preview */
.preview {
	display: flex;
	flex-direction: column;
}

	.preview label {
		background: #e8ebfa;
		color: var(--primary);
		padding: 6px 10px;
		border-bottom: 1px solid var(--border);
	}

iframe {
	flex: 1;
	border: none;
	background: white;
}

.preview button {
	background: var(--primary);
	color: white;
	border: none;
	padding: 10px;
	font-weight: bold;
	cursor: pointer;
}

/* Scrollbars */
.symbol-playgroundtextarea::-webkit-scrollbar {
	width: 12px;
}

.symbol-playground textarea::-webkit-scrollbar-track {
	background: #f0f1f7;
}

.symbol-playground textarea::-webkit-scrollbar-thumb {
	background: var(--primary);
	border-radius: 8px;
}

.symbol-playground textarea {
	scrollbar-width: thick;
	scrollbar-color: var(--primary) #f0f1f7;
}

.toolbar {
	display: flex;
	gap: 8px;
	align-items: center;
}

.copy-btn {
	cursor: pointer;
	font-size: 1.1rem;
	opacity: 0.7;
	transition: 0.2s;
}

	.copy-btn:hover {
		opacity: 1;
		transform: scale(1.15);
	}

	.copy-btn.copied {
		color: green;
	}