/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a7a4c;
  --primary-dark: #0f5433;
  --primary-deeper: #0a3a23;
  --primary-light: #e8f5ee;
  --primary-glow: rgba(26,122,76,0.10);
  --accent: #22a366;
  --accent-light: #4eca8a;
  --teal: #17876a;
  --text: #1a2b22;
  --text-secondary: #47594f;
  --text-light: #6b8077;
  --bg: #ffffff;
  --bg-light: #f6faf8;
  --bg-subtle: #eef5f1;
  --border: #d5e5dc;
  --border-light: #e6f0eb;
  --white: #ffffff;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 40px -8px rgba(0,0,0,0.12);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.18);
  --shadow-primary: 0 8px 24px -4px rgba(26,122,76,0.25);
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 72px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes subtlePulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ===== HEADER (Glass) ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226,232,240,0.6);
  height: var(--header-height);
  transition: box-shadow var(--transition);
}

.header:hover {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary);
  transition: opacity var(--transition);
}

.logo-area:hover {
  opacity: 0.85;
}

.logo-area img {
  height: 44px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.logo-brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo-area .company-name {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ===== NAVIGATION ===== */
.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  position: relative;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: all var(--transition);
  transform: translateX(-50%);
}

.main-nav a:hover {
  color: var(--primary);
  background: var(--primary-glow);
}

.main-nav a:hover::after {
  width: 20px;
}

.main-nav a.active {
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-glow);
}

.main-nav a.active::after {
  width: 24px;
  background: var(--primary);
}

.lang-toggle {
  margin-left: 16px;
  padding: 7px 14px 7px 10px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
}

.lang-toggle::before {
  content: '🌐';
  font-size: 0.95rem;
  line-height: 1;
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--primary-glow);
  transform: translateY(-1px);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  border-radius: var(--radius);
  transition: background var(--transition);
}

.menu-toggle:hover {
  background: var(--bg-subtle);
}

.menu-toggle svg {
  width: 26px;
  height: 26px;
}

/* ===== HERO (HOME) ===== */
.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: var(--primary-deeper);
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transform: scale(1.02);
  transition: transform 8s ease-out;
}

.hero:hover img {
  transform: scale(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10,58,35,0.45) 0%, rgba(26,122,76,0.25) 50%, rgba(0,0,0,0.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: var(--white);
  padding: 48px 56px;
  max-width: 720px;
  animation: fadeInUp 0.8s ease-out;
  background: rgba(10,58,35,0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
}

.hero-content h1 {
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 32px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6), 0 1px 4px rgba(0,0,0,0.5);
  letter-spacing: -0.02em;
}

.hero-content .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--white);
  color: var(--primary);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  letter-spacing: -0.01em;
}

.hero-content .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  background: var(--primary-light);
  color: var(--primary);
}

/* ===== HERO SMALL (sub-pages) ===== */
.hero-small {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: var(--primary-deeper);
}

.hero-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.hero-small .hero-overlay {
  background: linear-gradient(160deg, rgba(10,58,35,0.78) 0%, rgba(26,122,76,0.5) 50%, rgba(0,0,0,0.25) 100%);
}

.hero-small .hero-content {
  animation: fadeIn 0.6s ease-out;
}

.hero-small .hero-content h1 {
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}

/* ===== FEATURE CARDS (Home page) ===== */
.features-section {
  padding: 80px 24px;
  background: var(--bg-light);
}

.features-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 56px;
}

.features-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.features-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-light));
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  max-width: 56px;
  min-height: 56px;
  max-height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-light), rgba(34,163,102,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  min-width: 28px;
  max-width: 28px;
  min-height: 28px;
  max-height: 28px;
  color: var(--primary);
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 56px 24px;
  color: var(--white);
}

.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  padding: 8px;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff, rgba(255,255,255,0.75));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ===== SUB NAVIGATION (Portfolio pages) ===== */
.sub-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

.sub-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 0;
  overflow-x: auto;
}

.sub-nav a {
  position: relative;
  padding: 16px 22px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
  border-bottom: 2.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.sub-nav a:hover {
  color: var(--primary);
  background: var(--primary-glow);
}

.sub-nav a.active {
  color: var(--primary);
  font-weight: 600;
  border-bottom-color: var(--primary);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 32px 72px;
  width: 100%;
  animation: fadeInUp 0.5s ease-out;
}

.main-content h2 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  position: relative;
  padding-bottom: 16px;
}

.main-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-light));
  border-radius: 2px;
}

.main-content h3 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-top: 36px;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.main-content p {
  margin-bottom: 18px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.main-content ul {
  margin: 20px 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.main-content ul li {
  position: relative;
  padding: 16px 20px 16px 36px;
  margin-bottom: 0;
  background: var(--bg-light);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  transition: all var(--transition);
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.main-content ul li:hover {
  background: var(--primary-light);
  border-left-color: var(--primary);
  transform: translateX(4px);
}

.main-content ul li::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 22px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ===== REFERENCES GRID ===== */
.references-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.reference-group {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.reference-group:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.reference-group h3 {
  margin-top: 0;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--primary-light);
  margin-bottom: 18px;
  font-size: 1.05rem;
  color: var(--primary);
}

.reference-group ul {
  margin: 0;
  gap: 6px;
}

.reference-group ul li {
  background: var(--bg-light);
  padding: 10px 16px 10px 28px;
  font-size: 0.9rem;
  border-left: 2px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.reference-group ul li:hover {
  border-left-color: var(--accent);
}

.reference-group ul li::before {
  top: 16px;
  left: 10px;
  width: 5px;
  height: 5px;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 36px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  border: 1px solid var(--border-light);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.contact-card img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid var(--primary-light);
  box-shadow: 0 8px 24px rgba(0,85,164,0.12);
  transition: all var(--transition);
}

.contact-card:hover img {
  border-color: var(--accent);
  transform: scale(1.03);
}

.contact-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-size: 1.1rem;
}

.contact-card a {
  font-size: 0.92rem;
  color: var(--accent);
  font-weight: 500;
}

.contact-info {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-primary);
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.contact-info::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.contact-info h3 {
  color: var(--white);
  margin-top: 0;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.contact-info p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.contact-info a {
  color: rgba(255,255,255,0.95);
  font-weight: 500;
}

.contact-info a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ===== COMPLIANCE ===== */
.compliance-highlight {
  background: linear-gradient(135deg, var(--primary-light), rgba(34,163,102,0.06));
  border-left: 4px solid var(--primary);
  padding: 28px 32px;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: 28px 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--primary-dark);
  font-weight: 500;
}

.btn-document {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 16px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  letter-spacing: -0.01em;
}

.btn-document:hover {
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-primary);
}

/* ===== REGULATORY TABLE ===== */
/* ===== Law Grid (Rahmenbedingungen) ===== */
.law-grid {
  margin-top: 32px;
  border: 1px solid #d4ddd8;
  border-radius: 10px;
  overflow: hidden;
}

.law-grid-header,
.law-grid-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 0.4fr;
  gap: 0;
}

.law-grid-header {
  background: var(--primary);
}

.law-grid-header span {
  color: #fff;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.law-grid-row {
  border-bottom: 1px solid #e8eeeb;
  transition: background 0.15s ease;
}

.law-grid-row:last-child {
  border-bottom: none;
}

.law-grid-row:nth-child(even) {
  background: #f6f9f7;
}

.law-grid-row:hover {
  background: #e6f0eb;
}

.law-grid-row span {
  padding: 13px 20px;
  font-size: 0.9rem;
  color: #3a4f44;
  line-height: 1.5;
  border-right: 1px solid #e8eeeb;
}

.law-grid-row span:last-child {
  border-right: none;
}

.law-grid-row span:first-child {
  font-weight: 500;
  color: #1a2b22;
}

.law-grid-row a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.law-grid-row a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ===== FAQ / Q&A ===== */
.qa-section {
  margin-top: 56px;
}

.qa-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-light));
  border-radius: 2px;
}

.qa-section h3 {
  font-size: 1.15rem;
}

.qa-item {
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
}

.qa-item:hover {
  box-shadow: var(--shadow);
}

.qa-question {
  background: linear-gradient(135deg, var(--primary-light), rgba(34,163,102,0.06));
  padding: 18px 24px;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.95rem;
  line-height: 1.5;
}

.qa-answer {
  padding: 20px 24px;
  background: var(--white);
}

.qa-answer p {
  margin-bottom: 14px;
  font-size: 0.93rem;
}

.qa-answer p:last-child {
  margin-bottom: 0;
}

/* ===== ELGA ===== */
.elga-logo {
  max-width: 280px;
  margin: 28px 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
}

.elga-credit {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 8px;
}

/* ===== MAP ===== */
.map-container {
  margin-top: 28px;
}

.map-container img {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.map-attribution {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 10px;
}

/* ===== IMPRESSUM / LEGAL ===== */
.legal-section {
  margin-bottom: 44px;
  padding: 28px 32px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.legal-section h3 {
  margin-top: 0;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 12px;
  color: var(--primary);
  font-size: 1.15rem;
}

.legal-info-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 10px 28px;
  margin: 18px 0;
  font-size: 0.93rem;
}

.legal-info-grid dt {
  font-weight: 600;
  color: var(--primary-dark);
}

.legal-info-grid dd {
  color: var(--text-secondary);
}

/* ===== DSA PAGE ===== */
.dsa-section {
  margin-bottom: 24px;
  padding: 28px 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
}

.dsa-section:hover {
  box-shadow: var(--shadow);
}

.dsa-section h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--primary);
}

.dsa-email {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.88rem;
  background: var(--bg-subtle);
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: inline-block;
  margin: 8px 0;
  color: var(--primary-dark);
  font-weight: 500;
}

/* ===== PRIVACY POLICY ===== */
.privacy-section {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-light);
}

.privacy-section:last-of-type {
  border-bottom: none;
}

.privacy-section h3 {
  font-size: 1.15rem;
}

.privacy-section h4 {
  font-size: 0.98rem;
  color: var(--primary);
  margin-top: 22px;
  margin-bottom: 12px;
  font-weight: 600;
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(180deg, var(--primary-deeper) 0%, #051a0e 100%);
  color: rgba(255,255,255,0.75);
  margin-top: auto;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,163,102,0.4), transparent);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 32px 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.footer-brand img {
  height: 32px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-brand-name {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  max-width: 200px;
  line-height: 1.3;
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(255,255,255,0.45);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-right {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 300px;
    height: calc(100vh - var(--header-height));
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 28px;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-slow);
    align-items: stretch;
    z-index: 99;
  }

  .nav-right.open {
    right: 0;
  }

  .main-nav {
    flex-direction: column;
    gap: 4px;
  }

  .main-nav a {
    padding: 14px 18px;
    font-size: 1rem;
    border-radius: var(--radius);
  }

  .main-nav a::after {
    display: none;
  }

  .lang-toggle {
    margin-left: 0;
    margin-top: 20px;
    justify-content: center;
    padding: 10px 18px;
  }

  .hero {
    height: 400px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-small {
    height: 200px;
  }

  .hero-small .hero-content h1 {
    font-size: 1.5rem;
  }

  .main-content {
    padding: 40px 20px 56px;
  }

  .main-content h2 {
    font-size: 1.6rem;
  }

  .features-section {
    padding: 56px 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stats-bar {
    padding: 40px 20px;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .references-grid {
    grid-template-columns: 1fr;
  }

  .legal-info-grid {
    grid-template-columns: 1fr;
  }

  .legal-section {
    padding: 20px;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .sub-nav-inner {
    padding: 0 20px;
  }

  .law-grid-row span,
  .law-grid-header span {
    padding: 10px 12px;
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .logo-area .company-name {
    display: none;
  }

  .hero {
    height: 320px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .law-grid {
    overflow-x: auto;
  }

  .law-grid-header,
  .law-grid-row {
    min-width: 600px;
  }

  .contact-info {
    padding: 28px 20px;
  }
}

/* ===== OVERLAY for mobile ===== */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,20,12,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 98;
  transition: opacity var(--transition);
}

.nav-overlay.active {
  display: block;
}

/* ===== PRIVACY ACCORDION (datenschutz.html / datenschutz_EN.html) ===== */
.privacy-tools {
  display: flex;
  justify-content: flex-end;
  margin: 28px 0 18px;
}

.privacy-toggle-all {
  font-family: inherit;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  border-radius: 50px;
  padding: 9px 22px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all var(--transition);
}

.privacy-toggle-all:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--primary-glow);
  transform: translateY(-1px);
}

.privacy-panel {
  margin-bottom: 14px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition);
}

.privacy-panel:hover,
.privacy-panel[open] {
  box-shadow: var(--shadow);
}

.privacy-panel > summary {
  position: relative;
  cursor: pointer;
  padding: 18px 58px 18px 24px;
  list-style: none;
  background: linear-gradient(135deg, var(--primary-light), rgba(34,163,102,0.06));
  transition: background var(--transition);
}

.privacy-panel > summary::-webkit-details-marker {
  display: none;
}

.privacy-panel > summary:hover {
  background: linear-gradient(135deg, #dcefe4, rgba(34,163,102,0.13));
}

.privacy-panel > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.privacy-panel > summary h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
}

.privacy-panel > summary::after {
  content: '';
  position: absolute;
  right: 26px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--transition);
}

.privacy-panel[open] > summary::after {
  transform: translateY(-25%) rotate(-135deg);
}

.privacy-panel-body {
  padding: 24px 24px 8px;
  border-top: 1px solid var(--border-light);
  animation: fadeIn 0.25s ease-out;
}

.privacy-panel-body h4 {
  font-size: 0.98rem;
  color: var(--primary);
  margin-top: 24px;
  margin-bottom: 12px;
  font-weight: 600;
}

.privacy-panel-body > *:first-child {
  margin-top: 0;
}

@media (max-width: 768px) {
  .privacy-tools {
    justify-content: stretch;
  }

  .privacy-toggle-all {
    width: 100%;
  }

  .privacy-panel > summary {
    padding: 16px 46px 16px 18px;
  }

  .privacy-panel > summary::after {
    right: 18px;
  }

  .privacy-panel-body {
    padding: 20px 18px 6px;
  }
}

@media print {
  .privacy-tools {
    display: none;
  }

  .privacy-panel {
    break-inside: avoid;
    box-shadow: none;
  }

  .privacy-panel > summary::after {
    display: none;
  }

  .privacy-panel .privacy-panel-body {
    display: block !important;
  }
}
