/* ============================================
   BETREUUNGSHUB DEUTSCHLAND — DESIGN SYSTEM
   ============================================ */

:root {
  --primary:     #2D5016;
  --primary-light: #3d6b1e;
  --primary-dark: #1e3810;
  --secondary:   #C85A28;
  --secondary-light: #d96b39;
  --accent:      #F5F1E8;
  --accent-dark: #ede8d8;
  --neutral:     #6B7280;
  --neutral-light: #9CA3AF;
  --neutral-dark: #374151;
  --success:     #10B981;
  --warning:     #F59E0B;
  --error:       #EF4444;
  --white:       #ffffff;
  --gray-50:     #F9FAFB;
  --gray-100:    #F3F4F6;
  --gray-200:    #E5E7EB;
  --gray-300:    #D1D5DB;
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --text-muted:  #9CA3AF;
  --border:      #E5E7EB;
  --shadow-sm:   0 1px 2px rgba(0,0,0,0.06);
  --shadow:      0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:   0 12px 32px rgba(0,0,0,0.12);
  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --transition:  0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--gray-50);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
}

/* ============ UTILITY ============ */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.text-center { text-align: center; }
.w-full { width: 100%; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* ============ TYPOGRAPHY ============ */
h1 { font-size: clamp(28px, 4vw, 52px); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(22px, 3vw, 36px); font-weight: 700; line-height: 1.25; }
h3 { font-size: clamp(18px, 2.5vw, 24px); font-weight: 600; line-height: 1.35; }
h4 { font-size: 18px; font-weight: 600; }
h5 { font-size: 16px; font-weight: 600; }
.display { font-family: 'Playfair Display', serif; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-lg { font-size: 17px; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary-color { color: var(--primary); }
.text-secondary-color { color: var(--secondary); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-light); border-color: var(--primary-light); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}
.btn-secondary:hover { background: var(--secondary-light); border-color: var(--secondary-light); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--gray-100); color: var(--text-primary); }
.btn-accent {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent-dark);
}
.btn-accent:hover { background: var(--accent-dark); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: inherit;
  text-decoration: underline;
  padding: 0;
}
.link-btn:hover { color: var(--primary-light); }

/* ============ CARDS ============ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-body { padding: 24px; }
.card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--border); background: var(--gray-50); }

/* ============ BADGES ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.badge-primary { background: #d8ead0; color: var(--primary); }
.badge-secondary { background: #fddfd3; color: var(--secondary); }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-error { background: #fee2e2; color: #991b1b; }
.badge-neutral { background: var(--gray-100); color: var(--neutral-dark); }
.badge-accent { background: var(--accent); color: var(--primary); }

/* ============ FORM ELEMENTS ============ */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.form-label .required { color: var(--error); margin-left: 3px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,80,22,0.1);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--text-muted); }
.form-error { font-size: 12px; color: var(--error); }
.input-with-icon { position: relative; }
.input-with-icon .form-input { padding-left: 40px; }
.input-with-icon .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neutral);
  pointer-events: none;
}
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.checkbox-group label { font-size: 14px; color: var(--text-secondary); cursor: pointer; line-height: 1.5; }

/* ============ NAVIGATION ============ */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 68px;
  max-width: 1280px;
  margin: 0 auto;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: 16px; font-weight: 700; color: var(--primary); line-height: 1.1; }
.logo-sub { font-size: 11px; color: var(--text-muted); font-weight: 400; }
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  background: none;
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
}
.nav-link:hover { color: var(--primary); background: var(--gray-100); }
.nav-link.active { color: var(--primary); background: #d8ead0; font-weight: 600; }
.nav-icon { font-size: 16px; }
.navbar-actions { display: flex; align-items: center; gap: 8px; }
.avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow var(--transition);
}
.avatar-btn:hover { box-shadow: 0 0 0 3px rgba(45,80,22,0.2); }

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #3d6b1e 50%, #1e3810 100%);
  color: white;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,90,40,0.25) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245,241,232,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}
.hero-title {
  color: white;
  margin-bottom: 16px;
}
.hero-title span { color: #fbbf84; }
.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero-primary {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
  padding: 13px 28px;
  font-size: 15px;
}
.btn-hero-primary:hover { background: var(--secondary-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,90,40,0.4); }
.btn-hero-outline {
  background: rgba(255,255,255,0.12);
  color: white;
  border-color: rgba(255,255,255,0.35);
  padding: 13px 28px;
  font-size: 15px;
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.22); }
.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 26px; font-weight: 800; color: #fbbf84; }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 2px; }
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hero-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.hero-card-icon { font-size: 28px; margin-bottom: 8px; }
.hero-card-title { font-size: 14px; font-weight: 600; color: white; }
.hero-card-desc { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* ============ FEATURES SECTION ============ */
.section { padding: 72px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.section-title { margin-bottom: 14px; }
.section-desc { font-size: 16px; color: var(--text-secondary); max-width: 580px; margin: 0 auto; line-height: 1.65; }
.feature-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
}
.feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #d8ead0, #b5d4a2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}
.feature-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }
.feature-link { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-size: 13px; font-weight: 600; margin-top: 14px; cursor: pointer; }
.feature-link:hover { gap: 8px; }

/* ============ PAGE LAYOUT ============ */
.page-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 32px 24px;
}
.page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.page-title-row { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.page-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.page-icon-green { background: #d8ead0; }
.page-icon-orange { background: #fddfd3; }
.page-icon-blue { background: #dbeafe; }
.page-icon-purple { background: #ede9fe; }
.page-icon-yellow { background: #fef3c7; }
.page-content { padding: 32px 0; }
.page-content-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.main-with-sidebar { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start; }

/* ============ COMMUNITY ============ */
.forum-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter-chip {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active { background: var(--primary); color: white; border-color: var(--primary); }
.post-list { display: flex; flex-direction: column; gap: 12px; }
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  cursor: pointer;
  transition: all var(--transition);
}
.post-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.post-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.post-author { display: flex; align-items: center; gap: 10px; }
.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.author-name { font-size: 14px; font-weight: 600; }
.author-meta { font-size: 12px; color: var(--text-muted); }
.post-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.post-excerpt { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }
.post-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.post-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.post-stats { display: flex; gap: 16px; }
.post-stat { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-muted); }
.post-stat-btn { background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-muted); transition: color var(--transition); padding: 4px 8px; border-radius: var(--radius-sm); }
.post-stat-btn:hover { color: var(--primary); background: var(--gray-100); }
.post-stat-btn.liked { color: var(--secondary); }
.new-post-btn-area {
  background: linear-gradient(135deg, #d8ead0, #f0f7eb);
  border: 1.5px dashed var(--primary);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 20px;
}
.new-post-btn-area:hover { background: #c8e0bc; }
.new-post-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

/* ============ MATERIALPOOL ============ */
.material-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.material-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
}
.material-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.material-thumb {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
}
.material-body { padding: 16px; }
.material-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.material-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.star-rating { display: flex; gap: 2px; color: var(--warning); font-size: 13px; }
.material-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--border); background: var(--gray-50); }
.material-downloads { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.free-badge { background: #d1fae5; color: #065f46; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 100px; }
.premium-badge { background: #fef3c7; color: #92400e; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 100px; }

/* ============ WISSEN ============ */
.article-list { display: flex; flex-direction: column; gap: 16px; }
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.article-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.article-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.article-content { flex: 1; }
.article-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.article-excerpt { font-size: 14px; color: var(--text-secondary); line-height: 1.55; margin-bottom: 12px; }
.article-meta { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--text-muted); }
.article-meta-item { display: flex; align-items: center; gap: 4px; }

/* ============ TOOLS ============ */
.week-planner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.week-planner-header {
  display: grid;
  grid-template-columns: 80px repeat(5, 1fr);
  background: var(--primary);
  color: white;
}
.week-planner-header-cell {
  padding: 14px 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.week-planner-row {
  display: grid;
  grid-template-columns: 80px repeat(5, 1fr);
  border-bottom: 1px solid var(--border);
}
.week-planner-time {
  padding: 12px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  background: var(--gray-50);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.week-planner-cell {
  padding: 8px;
  border-right: 1px solid var(--border);
  min-height: 60px;
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
}
.week-planner-cell:hover { background: #f0f7eb; }
.planner-entry {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 4px;
  cursor: pointer;
}
.planner-entry.orange { background: linear-gradient(135deg, var(--secondary), var(--secondary-light)); }
.planner-entry.blue { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  flex-shrink: 0;
}
.checklist-item label { font-size: 14px; color: var(--text-primary); cursor: pointer; flex: 1; }
.checklist-item.checked label { text-decoration: line-through; color: var(--text-muted); }

/* ============ PROFIL ============ */
.profile-header-card {
  background: linear-gradient(135deg, var(--primary), #3d6b1e);
  border-radius: var(--radius-xl);
  padding: 36px;
  color: white;
  position: relative;
  overflow: hidden;
}
.profile-header-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), #e87945);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: white;
  border: 3px solid rgba(255,255,255,0.3);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.profile-name { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.profile-role { font-size: 14px; opacity: 0.8; margin-bottom: 16px; }
.profile-badges-row { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-badge {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
}
.privacy-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.privacy-item:last-child { border-bottom: none; }
.privacy-label { font-size: 14px; font-weight: 500; }
.privacy-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--gray-300);
  border-radius: 100px;
  cursor: pointer;
  transition: background var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform var(--transition);
  box-shadow: var(--shadow-sm);
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

/* ============ AUTH ============ */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-left {
  background: linear-gradient(135deg, var(--primary) 0%, #1e3810 100%);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(200,90,40,0.2), transparent 70%);
  border-radius: 50%;
}
.auth-features { display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.auth-feature-item { display: flex; align-items: flex-start; gap: 12px; }
.auth-feature-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.auth-feature-text { font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.55; }
.auth-feature-title { font-weight: 600; color: white; margin-bottom: 2px; }
.auth-right {
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-form-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.auth-logo-small { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.auth-title { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.auth-subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 28px; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.auth-divider span { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.twofa-boxes { display: flex; gap: 10px; justify-content: center; margin: 16px 0; }
.twofa-box {
  width: 50px;
  height: 58px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  outline: none;
  transition: border-color var(--transition);
  font-family: 'Inter', sans-serif;
}
.twofa-box:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(45,80,22,0.1); }
.strength-bar { height: 4px; border-radius: 100px; background: var(--gray-200); overflow: hidden; margin-top: 6px; }
.strength-fill { height: 100%; border-radius: 100px; transition: width 0.3s ease, background 0.3s ease; }

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  backdrop-filter: blur(4px);
}
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 90%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 201;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 22px; color: var(--text-muted); padding: 4px; border-radius: var(--radius-sm); transition: color var(--transition); }
.modal-close:hover { color: var(--text-primary); }

/* ============ DSGVO / COOKIE BANNER ============ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 2px solid var(--primary);
  padding: 20px 24px;
  z-index: 300;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.12);
}
.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 280px; }
.cookie-text h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.cookie-text p { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; flex-shrink: 0; }
.dsgvo-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0f7eb;
  border: 1px solid #b5d4a2;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--primary-dark);
}
.dsgvo-icon { font-size: 18px; flex-shrink: 0; }

/* ============ FOOTER ============ */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 24px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand-desc { font-size: 14px; line-height: 1.65; margin-top: 12px; color: rgba(255,255,255,0.6); }
.footer-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: white; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-link { font-size: 14px; color: rgba(255,255,255,0.65); background: none; border: none; cursor: pointer; text-align: left; padding: 0; transition: color var(--transition); }
.footer-link:hover { color: white; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
}
.footer-dsgvo { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.footer-dsgvo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

/* ============ NOTIFICATION TOAST ============ */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 360px;
  animation: slideIn 0.3s ease;
  pointer-events: all;
  border-left: 4px solid var(--primary);
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }
.toast.warning { border-left-color: var(--warning); }
.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-msg { font-size: 14px; font-weight: 500; }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(20px); }
}
.toast.fadeout { animation: fadeOut 0.3s ease forwards; }

/* ============ PROGRESS / ONBOARDING ============ */
.progress-bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 100px;
  transition: width 0.5s ease;
}
.step-indicator { display: flex; align-items: center; gap: 8px; justify-content: center; margin-bottom: 24px; }
.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
}
.step-dot.active { background: var(--primary); border-color: var(--primary); color: white; }
.step-dot.done { background: var(--success); border-color: var(--success); color: white; }
.step-line { flex: 1; height: 2px; background: var(--border); max-width: 50px; }
.step-line.done { background: var(--success); }

/* ============ EMPTY STATE ============ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-state-icon { font-size: 56px; margin-bottom: 16px; opacity: 0.6; }
.empty-state-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.empty-state-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }

/* ============ SEARCH BAR ============ */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(45,80,22,0.1); }
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 11px 0;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  background: transparent;
  color: var(--text-primary);
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-icon { color: var(--text-muted); font-size: 16px; }

/* ============ SIDEBAR WIDGETS ============ */
.widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.widget-header { padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 600; }
.widget-body { padding: 14px 18px; }
.widget-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.widget-item:last-child { border-bottom: none; }
.widget-item:hover .widget-item-text { color: var(--primary); }
.widget-item-icon { width: 32px; height: 32px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.widget-item-text { font-size: 13px; font-weight: 500; }
.widget-item-count { font-size: 11px; font-weight: 700; color: var(--text-muted); margin-left: auto; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .main-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .navbar-nav { display: none; }
  .week-planner-header, .week-planner-row { grid-template-columns: 60px repeat(5, 1fr); }
}
@media (max-width: 480px) {
  .cookie-content { flex-direction: column; }
  .cookie-actions { width: 100%; justify-content: stretch; }
  .cookie-actions .btn { flex: 1; }
  .hero { padding: 50px 0 60px; }
}
