/* REB System - Globales Stylesheet mit Animationen */

:root {
	--accent: #0d7a5a;
	--accent-dark: #095d44;
	--muted: #64748b;
	--bg: #fafbfc;
	--card: #ffffff;
	--border: #e2e8f0;
	--text: #1e293b;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	margin: 0;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	font-size: 16px;
}

/* Header & Navigation */
header {
	background: linear-gradient(135deg, #0d7a5a 0%, #095d44 100%);
	color: #fff;
	padding: 16px 24px;
	box-shadow: 0 2px 12px rgba(13, 122, 90, 0.1);
	position: sticky;
	top: 0;
	z-index: 1000;
	animation: slideDown 0.4s ease-out;
}

.navbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.logo {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 700;
	font-size: 1.1rem;
	letter-spacing: -0.5px;
	transition: transform 0.3s ease;
}

.logo:hover {
	transform: scale(1.05) rotate(2deg);
}

.logo-text {
	text-decoration: none;
	color: #fff;
}

.logo-text h1 {
	margin: 0;
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: -0.5px;
}

.nav-menu {
	display: flex;
	list-style: none;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.nav-menu li a {
	display: block;
	padding: 8px 16px;
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	border-radius: 8px;
	transition: all 0.2s ease;
	font-weight: 500;
}

.nav-menu li a:hover,
.nav-menu li a.active {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
}

/* Hamburger Menu Button */
.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 8px;
	z-index: 1001;
}

.menu-toggle span {
	display: block;
	width: 28px;
	height: 3px;
	background: #fff;
	border-radius: 2px;
	transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
	transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
	opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
	transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
	.menu-toggle {
		display: flex;
	}
	
	.nav-menu {
		position: fixed;
		top: 0;
		right: -100%;
		width: 280px;
		height: 100vh;
		background: linear-gradient(135deg, #0d7a5a 0%, #095d44 100%);
		flex-direction: column;
		padding: 80px 24px 24px;
		gap: 0;
		box-shadow: -2px 0 12px rgba(0, 0, 0, 0.2);
		transition: right 0.3s ease;
		z-index: 1000;
	}
	
	.nav-menu.active {
		right: 0;
	}
	
	.nav-menu li {
		width: 100%;
	}
	
	.nav-menu li a {
		padding: 14px 16px;
		font-size: 1.1rem;
		border-radius: 8px;
		margin-bottom: 8px;
	}
}

/* Container */
.container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Typography */
h1 {
	margin: 0;
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: -0.5px;
}

h2 {
	font-size: 1.75rem;
	font-weight: 700;
	margin-bottom: 16px;
	color: var(--text);
	letter-spacing: -0.5px;
}

h3 {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 10px;
	color: var(--text);
}

/* Spezielle H3 in technischen Spezifikationen */
#specs h3 {
	color: var(--accent);
	border-bottom: 2px solid var(--accent);
	padding-bottom: 8px;
	margin-bottom: 16px;
}

p.lead {
	color: rgba(255, 255, 255, 0.92);
	margin: 8px 0 0;
	font-size: 1.05rem;
}

/* Main Content */
main {
	padding: 60px 0;
	min-height: calc(100vh - 200px);
}

/* Cards */
.card {
	background: var(--card);
	border-radius: 16px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	border: 1px solid var(--border);
	padding: 32px;
	transition: all 0.3s ease;
}

.card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

/* Hero Section */
.hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	align-items: start;
}

@media (min-width: 768px) {
	.hero {
		grid-template-columns: 2fr 1fr;
	}
}

/* Specs */
.specs {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 24px;
}

.spec {
	flex: 1 1 160px;
	padding: 20px;
	border-radius: 12px;
	background: linear-gradient(135deg, #f0fdf7 0%, #e8f7f2 100%);
	text-align: center;
	border: 1px solid rgba(13, 122, 90, 0.1);
	transition: all 0.3s ease;
}

.spec:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 16px rgba(13, 122, 90, 0.15);
}

.spec .small {
	color: var(--muted);
	font-size: 0.875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.spec strong {
	display: block;
	font-size: 1.5rem;
	color: var(--accent);
	margin-top: 6px;
	font-weight: 700;
}

/* Features */
.features {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin-top: 32px;
}

@media (min-width: 900px) {
	.features {
		grid-template-columns: repeat(3, 1fr);
	}
}

.features .card {
	padding: 24px;
}

.features h3 {
	font-size: 1.1rem;
}

/* Team Grid */
.team-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	margin-top: 24px;
}

@media (min-width: 768px) {
	.team-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.team-card {
	text-align: center;
}

.team-avatar {
	font-size: 4rem;
	margin-bottom: 16px;
}

/* Product Grid */
.product-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	margin-top: 40px;
}

@media (min-width: 768px) {
	.product-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.product-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.product-card {
	position: relative;
	display: flex;
	flex-direction: column;
}

.product-badge {
	position: absolute;
	top: 16px;
	right: 16px;
	background: var(--accent);
	color: #fff;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.product-badge.premium {
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.product-specs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 20px 0;
	padding: 16px;
	background: var(--bg);
	border-radius: 8px;
}

.spec-item {
	text-align: center;
}

.spec-label {
	display: block;
	font-size: 0.75rem;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.spec-value {
	display: block;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--accent);
	margin-top: 4px;
}

.feature-list {
	list-style: none;
	padding: 0;
	margin: 16px 0;
	flex-grow: 1;
}

.feature-list li {
	padding: 8px 0;
	border-bottom: 1px solid var(--border);
	font-size: 0.95rem;
}

.feature-list li:last-child {
	border-bottom: none;
}

.product-footer {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--border);
}

/* Comparison Table */
.comparison-table table {
	width: 100%;
	border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid var(--border);
}

.comparison-table th {
	background: var(--bg);
	font-weight: 600;
	color: var(--text);
}

.comparison-table tbody tr:hover {
	background: var(--bg);
}

/* CTA Card */
.cta-card {
	text-align: center;
	background: linear-gradient(135deg, #f0fdf7 0%, #e8f7f2 100%);
	padding: 48px 32px;
}

.cta-card h2 {
	margin-bottom: 12px;
}

.cta-card p {
	margin-bottom: 24px;
	color: var(--muted);
}

/* Footer */
footer {
	padding: 40px 0;
	color: var(--muted);
	background: #f8fafc;
	border-top: 1px solid var(--border);
}

.footer-links {
	display: flex;
	gap: 16px;
}

/* Buttons */
.btn {
	display: inline-block;
	background: var(--accent);
	color: #fff;
	padding: 12px 24px;
	border-radius: 10px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.2s ease;
	border: none;
	cursor: pointer;
	font-size: 1rem;
}

.btn:hover {
	background: var(--accent-dark);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(13, 122, 90, 0.25);
}

/* Forms */
.contact {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

@media (min-width: 720px) {
	.contact {
		grid-template-columns: 1fr 1fr;
	}
}

input,
textarea {
	width: 100%;
	padding: 12px 16px;
	margin-top: 8px;
	border-radius: 8px;
	border: 1px solid var(--border);
	font-family: inherit;
	font-size: 0.95rem;
	transition: all 0.2s ease;
}

input:focus,
textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(13, 122, 90, 0.1);
}

label {
	display: block;
	margin-bottom: 12px;
	font-weight: 500;
	color: var(--text);
}

.form-message {
	padding: 12px 16px;
	border-radius: 8px;
	margin-top: 16px;
	font-weight: 500;
}

.form-message.success {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #6ee7b7;
}

.form-message.error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}

/* Utility Classes */
.muted {
	color: var(--muted);
}

.small {
	font-size: 0.95rem;
}

ul {
	margin: 16px 0;
	padding-left: 24px;
	line-height: 1.9;
	list-style: none;
}

ul li {
	margin-bottom: 12px;
	position: relative;
	padding-left: 20px;
}

ul li::before {
	content: "▸";
	position: absolute;
	left: 0;
	color: var(--accent);
	font-weight: 700;
}

/* Spezifisches Styling für technische Spezifikationen */
.card ul li {
	background: #f8fafc;
	padding: 10px 12px 10px 32px;
	border-radius: 6px;
	border-left: 3px solid var(--accent);
	margin-bottom: 8px;
	width: 100%;
	box-sizing: border-box;
}

.card ul li::before {
	left: 12px;
}

/* Tech-Specs Grid Standardverhalten */
.tech-specs-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
}

@media (max-width: 900px) {
	.tech-specs-grid {
		grid-template-columns: 1fr !important;
	}
}

hr {
	border: none;
	border-top: 1px solid var(--border);
	margin: 20px 0;
}

a {
	color: var(--accent);
	text-decoration: none;
	transition: all 0.2s ease;
}

a:hover {
	text-decoration: underline;
}

.legal-content {
	max-width: 800px;
	line-height: 1.8;
}

.legal-content h3 {
	margin-top: 32px;
	margin-bottom: 12px;
}

.legal-content h4 {
	margin-top: 24px;
	margin-bottom: 8px;
	font-size: 1.1rem;
}

/* === ANIMATIONEN === */

/* Fade-In beim Laden */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.animate-fade-in {
	animation: fadeIn 0.6s ease-out;
}

/* Slide-Down für Header */
@keyframes slideDown {
	from {
		transform: translateY(-100%);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Pulse-Animation für Badges */
@keyframes pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.8;
	}
}

.product-badge {
	animation: pulse 2s ease-in-out infinite;
}

/* Loading-Spinner */
.loading-spinner {
	width: 24px;
	height: 24px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
	display: inline-block;
	margin-left: 8px;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Scroll-Reveal (wird via JavaScript aktiviert) */
.scroll-reveal {
	opacity: 0;
	transform: translateY(30px);
	transition: all 0.6s ease-out;
}

.scroll-reveal.active {
	opacity: 1;
	transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
	/* Technische Daten auf Tablets und Mobile - einspaltig */
	.tech-specs-grid {
		display: block !important;
		grid-template-columns: 1fr !important;
	}
	
	.tech-specs-grid > div {
		margin-bottom: 32px;
	}
	
	.tech-specs-grid > div:last-child {
		margin-bottom: 0;
	}
}

@media (max-width: 768px) {
	h1 {
		font-size: 1.5rem;
	}
	h2 {
		font-size: 1.5rem;
	}
	.nav-menu {
		flex-direction: column;
		width: 100%;
	}
	.nav-menu li a {
		text-align: center;
	}
	
	/* Specs Boxen auch auf Mobile untereinander */
	.specs {
		flex-direction: column !important;
	}
	
	.spec {
		width: 100% !important;
		flex: 1 1 100% !important;
	}
	
	/* Hero Section auf Mobile - auch untereinander */
	.hero {
		display: block !important;
	}
	
	.hero > .card,
	.hero > aside {
		margin-bottom: 24px;
	}
	
	.hero > aside {
		margin-bottom: 0;
	}
}

/* Spezielle Anpassungen für iPhone und kleinere Smartphones */
@media (max-width: 480px) {
	.container {
		padding: 0 16px;
	}
	
	/* Technische Daten garantiert einspaltig */
	.tech-specs-grid {
		display: block !important;
		grid-template-columns: 1fr !important;
	}
	
	#specs .card ul li {
		font-size: 0.9rem;
		padding: 8px 10px 8px 28px;
	}
	
	/* Buttons auf volle Breite */
	.btn {
		width: 100%;
		text-align: center;
	}
	
	/* Spec-Boxen mit mehr Abstand */
	.spec {
		margin-bottom: 12px;
	}
	
	.spec:last-child {
		margin-bottom: 0;
	}
}
