:root {
	--primary: #2e5cb8; 
	--bg: #f8f9fa;
	--text-color: #333;
	--box-bg: rgba(46, 92, 184, 0.08); 
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: var(--bg);
	margin: 0;
	padding: 20px;
	color: var(--text-color);
}

.container {
	max-width: 900px;
	margin: 0 auto;
	background: white;
	padding: 40px;
	border-radius: 12px;
	box-shadow: 0 5px 20px rgba(0,0,0,0.05);
	position: relative; 
}

h1 {
	text-align: center;
	color: var(--primary);
	margin-bottom: 10px;
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: 2px;
}

p.intro {
	text-align: center;
	color: #666;
	margin-bottom: 50px;
	font-style: italic;
}

.hidden { display: none !important; }

/* Admin Key */
.admin-key {
	position: absolute; top: 20px; right: 20px;
	cursor: pointer; opacity: 0.3; font-size: 20px;
	transition: 0.3s; user-select: none;
}
.admin-key:hover { opacity: 1; transform: scale(1.1); }

/* --- Kategorien Boxen --- */
.category-box {
	background-color: var(--box-bg);
	border-radius: 16px;
	padding: 30px 40px;
	margin-bottom: 40px;
}

.category-title {
	color: var(--primary);
	border: none; padding: 0; margin-top: 0;
	margin-bottom: 90px; 
	font-weight: 700; font-size: 1.3em; text-align: center;
}

.question-row {
	margin-bottom: 30px; 
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.question-row:last-child { margin-bottom: 0; }

.question-text {
	flex: 1; font-size: 1.1em; padding-right: 20px; min-width: 250px; font-weight: 500;
}

/* --- Skala --- */
.scale-wrapper {
	position: relative; width: 300px; height: 40px;
	display: flex; align-items: center; justify-content: space-between;
}

.scale-line {
	position: absolute; top: 50%; left: 10px; right: 10px;
	height: 6px; background: white; z-index: 0; border-radius: 3px; border: 1px solid #dae1e7;
}

.scale-point {
	position: relative; z-index: 1;
	display: flex; flex-direction: column; align-items: center; cursor: pointer;
}

.scale-label {
	position: absolute; top: -65px; left: 50%;
	transform: translateX(-50%) rotate(-90deg);
	white-space: nowrap; font-size: 0.85em; color: #555;
	letter-spacing: 0.5px; font-weight: 600;
}

.scale-point input[type="radio"] {
	appearance: none; -webkit-appearance: none;
	width: 24px; height: 24px; background: #fff;
	border: 2px solid #ccc; border-radius: 50%;
	cursor: pointer; transition: all 0.2s; display: block;
}

.scale-point:hover input[type="radio"] { border-color: var(--primary); }
.scale-point input[type="radio"]:checked {
	border-color: var(--primary); background: var(--primary);
	box-shadow: 0 0 0 3px rgba(46, 92, 184, 0.2);
}

/* --- Buttons --- */
.btn-center { text-align: center; margin-top: 40px; }
.btn {
	background: var(--primary); color: white; border: none;
	padding: 12px 30px; border-radius: 30px; font-size: 1em;
	cursor: pointer; transition: 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn:hover { background: #1a3a7a; transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); margin: 0 5px;}
.btn-outline:hover { background: #f0f4ff; }

/* NEU: Kleine Buttons für Tabelle */
.btn-sm { padding: 5px 10px; font-size: 0.9em; border-radius: 4px; border: 1px solid #ccc; background: white; cursor: pointer; margin: 0 2px;}
.btn-sm:hover { background: #eee; }

#result-view { text-align: center; }
#chart-wrapper {
	position: relative; height: 60vh; width: 100%;
	max-width: 700px; margin: 20px auto; 
}

/* --- Admin Modal & Tabelle --- */
#admin-modal {
	position: fixed; top: 0; left: 0; width: 100%; height: 100%;
	background: rgba(0,0,0,0.5);
	display: flex; justify-content: center; align-items: center;
	z-index: 1000;
}
.admin-box {
	background: white; padding: 30px; border-radius: 8px;
	width: 95%; max-width: 900px; max-height: 90vh; overflow-y: auto;
}

table { width: 100%; border-collapse: collapse; margin-top: 15px; font-size: 0.9em; }
th { background: #f1f1f1; font-weight: 600; text-align: left; padding: 8px; border: 1px solid #ddd; }
td { border: 1px solid #ddd; padding: 5px; vertical-align: middle; background: #fff;} /* Weißer Hintergrund wichtig für Dragging */

input[type="text"] { width: 100%; padding: 8px; box-sizing: border-box; border: 1px solid #ccc; border-radius: 4px; font-family: inherit;}
input[type="text"]:focus { border-color: var(--primary); outline: none; }

/* Styles für Drag & Drop */
.drag-handle {
	cursor: grab;
	color: #999;
	font-size: 1.2em;
	text-align: center;
	user-select: none;
}
.drag-handle:hover { color: #333; }
.drag-handle:active { cursor: grabbing; }

/* Highlight während dem Ziehen */
.sortable-ghost {
	background-color: #eef2ff !important;
	opacity: 0.5;
}

/* Tabelle Styling */
table { width: 100%; border-collapse: collapse; margin-top: 15px; font-size: 0.9em; }
th { background: #f1f1f1; font-weight: 600; }
th, td { border: 1px solid #ddd; padding: 8px; text-align: left; vertical-align: middle; }
input[type="text"] { width: 100%; padding: 6px; box-sizing: border-box; border: 1px solid #ccc; border-radius: 4px;}

