@font-face {
	font-family: 'Inter';
	src: url('fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Inter';
	src: url('fonts/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}

:root {
	--bg: #f4f4f4;
	--card: #fafafa;
	--text: rgb(39, 39, 39);
	--accent: #ed1c24;
	--accent-light: rgba(237, 28, 36, 0.3);

	--box-bg: #fafafa;
	--success: #2ea44f;
	--error: #e5534b;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--text);
	font-family: 'Inter', sans-serif;
	font-weight: 320;
	font-size: 16px;
	line-height: 1.5;
	background-image: url('img/00338-einladunggilles-bg-01.jpg');
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center 0px;
	min-height: 100vh;
}

.container {
	max-width: 750px;
	margin: 0 auto;
	padding: 24px;
}


.hero #logo {
	width: 100%;
	max-width: 400px;
	height: auto;
	margin-top: 100px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 150px;
	display: block;
}

@keyframes neonBlink {

	0%,
	75%,
	100% {
		filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.27)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.20)) drop-shadow(0 0 20px rgba(138, 92, 255, 0.27)) drop-shadow(0 0 40px rgba(138, 92, 255, 0.20)) drop-shadow(0 0 80px rgba(138, 92, 255, 0.14));
	}

	10%,
	65% {
		filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.20)) drop-shadow(0 0 20px rgba(138, 92, 255, 0.27)) drop-shadow(0 0 30px rgba(138, 92, 255, 0.20)) drop-shadow(0 0 50px rgba(138, 92, 255, 0.14)) drop-shadow(0 0 100px rgba(138, 92, 255, 0.07));
	}
}

h1 {
	margin: 0 0 8px;
	font-family: 'Inter', sans-serif;
	font-size: 3rem;
	font-weight: 280;
	line-height: 1.2;
	letter-spacing: 0;
	text-align: center;
	margin-bottom: 50px;
}

h2 {
	margin: 0 0 8px;
	font-family: 'Inter', sans-serif;
	font-size: 3rem;
	font-weight: 280;
	line-height: 1.2;
	letter-spacing: 0;
	text-align: center;
	margin-bottom: 50px;
}

h3 {
	margin: 0 0 8px;
	font-family: 'Inter', sans-serif;
	font-size: 1.85rem;
	font-weight: 280;
	line-height: 1.2;
	letter-spacing: 0;
	text-align: center;
	margin-bottom: 20px;
}

.rsvp h3 {
	margin-top: 20px;
}

.desc {
	color: var(--text);
	font-family: 'Inter', sans-serif;
	font-weight: 320;
	font-size: 20px;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 20px;
	text-align: center;
	margin-top: 0px;
}

p {
	font-family: 'Inter', sans-serif;
	font-weight: 320;
	text-align: center;
}

.meta {
	display: flex;
	gap: 24px;
	margin-bottom: 50px;
	color: var(--text);
	justify-content: center;
	text-align: center;
	color: var(--accent);
	font-weight: 320;
}

.programmpunkt {
	margin-top: 25px;
	margin-bottom: 50px;
}

.programm-zeit {
	color: var(--accent);
	font-weight: 320;
	text-align: center;
	margin-bottom: 0px;
}

.btn {
	display: block;
	background: var(--accent);
	color: white;
	text-decoration: none;
	padding: 10px 14px;
	border-radius: 18px;
	font-weight: 300;
	margin: 0 auto;
	text-align: center;
	max-width: fit-content;
	font-size: 15px;
}

.btn.primary {
	background: var(--accent);
	border: 0;
	cursor: pointer;
}

.notice {
	margin: 16px 0;
	padding: 12px 14px;
	border-radius: 12px;
	background: #1d1d22;
	border: 1px solid #2c2c33;
}

.notice.success {
	border-color: var(--success);
}

.notice.error {
	border-color: var(--error);
}

.box {
	padding: 36px 24px;
	border-radius: 32px;
	background-color: rgba(255, 255, 255, 0.96);
	margin-top: 40px;
}

.rsvp {}

.form {
	display: grid;
	gap: 16px;
}

.form label {
	display: grid;
	gap: 6px;
	font-weight: 280;
	font-size: 13px;
	text-align: center;
}

.form input[type="text"],
.form input[type="tel"],
.form input[type="number"],
.form textarea {
	font-size: 22px;
	font-weight: 280;
	width: calc(100% - 6px);
	padding: 0;
	border: none;
	border: 1px solid var(--accent);
	border-radius: 24px;
	padding: 10px 12px;
	background: none;
	color: var(--text);
	font-family: 'Inter', sans-serif;
	resize: vertical;
	margin: 3px;
}

.form textarea {
	min-height: 80px;
}

#attendee-details {
	transition: all 0.3s ease;
	overflow: hidden;
}

.form input::placeholder,
.form textarea::placeholder {
	color: var(--accent);
	opacity: 0.7;
}

.grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 750px) {
	.meta {
		flex-direction: column;
		gap: 8px;
	}

	.options {
		flex-direction: column;
		gap: 12px;
	}
}

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

.options {
	border: none;
	padding: 12px;
	border-radius: 18px;
	display: flex;
	gap: 20px;
	justify-content: center;
}

.options legend {
	font-weight: 280;
	font-size: 13px;
	padding: 0 6px;
	color: var(--text);
	text-align: center;
	width: 100%;
	max-width: 250px;
	margin-bottom: 12px;
}

.radio {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin: 6px 0;
	text-align: center;
	font-size: 18px !important;
	position: relative;
	cursor: pointer;
	transition: all 0.3s ease;
}

.radio:hover {
	transform: translateY(-2px);
}

.radio input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}

.radio span {
	display: inline-block;
	padding: 12px 24px;
	background: none;
	border: 1px solid var(--accent);
	border-radius: 24px;
	color: var(--text);
	font-weight: 300;
	transition: all 0.3s ease;
	min-width: 80px;
	text-align: center;
}

.radio input:checked+span {
	background: var(--accent);
	color: white;
	box-shadow: 0 0 20px var(--accent-light);
	transform: scale(1.05);
}

.radio:hover span {
	background-color: none;
	border-color: var(--accent);
	box-shadow: 0 4px 12px rgba(200, 200, 200, 0.2);
}

.attendees {}

.avatars {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
}

.avatar {
	text-align: center;
}

.circle {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	margin: 0 auto 8px;
	background-color: none;
	border: 1px solid var(--accent);
	font-size: 36px;
	transition: all 0.3s ease;
}

.circle:hover {
	background-color: var(--accent);
}

.name {
	font-family: 'Inter', sans-serif;
	color: var(--text);
	font-weight: 300;
	font-size: 18px;
}

.person-count {
	font-family: 'Inter', sans-serif;
	color: var(--text);
	font-weight: 300;
	font-size: 13px;
	opacity: 0.7;
	margin-top: 2px;
}

.foot {
	text-align: center;
	color: var(--text);
	margin-top: 24px;
}

/* Tabellen-Styles */
table {
	width: 100%;
	border-collapse: collapse;
	font-size: 11pt;
}

th,
td {
	padding: 12px;
	border-bottom: 1px solid #2a2a32;
	text-align: left;
	color: var(--text);
}

th {
	background: #ededed;
	font-weight: 600;
}

/* Admin-Styles */
.admin-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin: 20px 0;
}

.stat-card {
	background: var(--card);
	padding: 20px;
	border-radius: 12px;
	text-align: center;
}

.stat-number {
	font-size: 2em;
	font-weight: bold;
	margin-bottom: 5px;
}

.stat-label {
	color: #888;
	font-size: 0.9em;
}

.table-container {
	background: var(--card);
	border-radius: 12px;
	padding: 20px;
	margin: 20px 0;
	overflow-x: auto;
}

.mono {
	font-family: 'Inter', sans-serif;
}

.response-yes {
	color: #4ade80;
}

.response-no {
	color: #f87171;
}

.notes {
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.notes:hover {
	white-space: normal;
	overflow: visible;
}

.nav-links {
	margin: 20px 0;
}

.nav-links a {
	display: inline-block;
	margin-right: 15px;
	padding: 8px 16px;
	background: #2a2a32;
	border-radius: 6px;
	text-decoration: none;
	color: #fff;
}

.nav-links a:hover {
	background: #3a3a42;
}

.export-section {
	margin: 20px 0;
	padding: 20px;
	background: var(--card);
	border-radius: 12px;
}

.export-buttons {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.btn {
	padding: 10px 20px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	text-decoration: none;
	display: block;
	margin: 0 auto;
}

.btn-primary {
	background: #3b82f6;
	color: white;
}

.btn-secondary {
	background: #6b7280;
	color: white;
}

.btn:hover {
	opacity: 0.9;
}

.filter-buttons {
	display: flex;
	gap: 8px;
}

.filter-btn {
	padding: 6px 12px;
	font-size: 0.9em;
}

.filter-btn.active {
	background: #3b82f6;
	color: white;
}

.filter-btn:not(.active) {
	background: #2a2a32;
	color: #ccc;
}

.filter-btn:not(.active):hover {
	background: #3a3a42;
}

/* Neue Einladungen Hervorhebung */
.new-invitation {
	background-color: rgba(34, 197, 94, 0.1) !important;
	border-left: 4px solid #22c55e;
}

.new-invitation td {
	background-color: transparent !important;
}

/* Admin-spezifische Styles */
.admin-header-controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.admin-textarea {
	width: 100%;
	min-height: 120px;
	padding: 8px;
	margin: 5px 0;
	border: 1px solid #2a2a32;
	border-radius: 4px;
	background: var(--card);
	color: var(--text);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
}

.admin-spacer {
	height: 10px;
}

.admin-error-container {
	background: #2d1b1b;
	border-left: 4px solid #f87171;
}

.admin-error-text {
	color: #f87171;
	margin: 0;
}

.admin-link {
	color: #3b82f6;
}

/* Lösch-Button */
.delete-btn {
	background: #dc3545;
	color: white;
	border: none;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease;
}

.delete-btn:hover {
	background: #c82333;
}

.delete-btn:active {
	background: #bd2130;
}

/* Notice Overlay Styles */
.notice-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	opacity: 0;
	transition: opacity 0.3s ease;
	backdrop-filter: blur(4px);
}

.notice-overlay.show {
	opacity: 1;
}

.notice-popup {
	background: rgba(255, 255, 255, 0.98);
	border-radius: 24px;
	padding: 0;
	max-width: 90%;
	width: 400px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	transform: scale(0.9) translateY(20px);
	transition: transform 0.3s ease;
	overflow: hidden;
}

.notice-popup.show {
	transform: scale(1) translateY(0);
}

.notice-progress-bar {
	width: 100%;
	height: 4px;
	background-color: rgba(0, 0, 0, 0.1);
	position: relative;
	overflow: hidden;
}

.notice-progress-fill {
	height: 100%;
	width: 100%;
	background: linear-gradient(90deg, var(--accent), var(--accent-light));
	transition: width 0.05s linear;
	position: absolute;
	top: 0;
	left: 0;
	transform-origin: left;
}

.notice-popup.notice-success .notice-progress-fill {
	background: linear-gradient(90deg, var(--success), rgba(46, 164, 79, 0.5));
}

.notice-popup.notice-error .notice-progress-fill {
	background: linear-gradient(90deg, var(--error), rgba(229, 83, 75, 0.5));
}

.notice-content {
	padding: 32px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
}

.notice-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	font-weight: bold;
	color: white;
	background: var(--accent);
	flex-shrink: 0;
}

.notice-popup.notice-success .notice-icon {
	background: var(--success);
}

.notice-popup.notice-error .notice-icon {
	background: var(--error);
}

.notice-message {
	font-family: 'Inter', sans-serif;
	font-size: 18px;
	font-weight: 320;
	color: var(--text);
	line-height: 1.5;
}

@media (max-width: 640px) {
	.notice-popup {
		width: 85%;
		max-width: 350px;
	}

	.notice-content {
		padding: 24px 20px;
	}

	.notice-message {
		font-size: 16px;
	}
}