/* ===================================================================
   Verbandbuch24 — Eigenes CSS-Framework
   Farben: Emerald #059669 | Navy #0f172a | Amber #f59e0b | BG #f8fafc
   =================================================================== */

/* ─── Reset & Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #059669;
  --primary-d:  #047857;
  --primary-l:  #d1fae5;
  --secondary:  #0f172a;
  --accent:     #f59e0b;
  --accent-l:   #fef3c7;
  --bg:         #f8fafc;
  --surface:    #ffffff;
  --border:     #e2e8f0;
  --text:       #1e293b;
  --muted:      #64748b;
  --danger:     #dc2626;
  --danger-l:   #fee2e2;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 25px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.06);
  --radius:     10px;
  --radius-lg:  16px;
  --font:       system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sidebar-w:  260px;
  --header-h:   64px;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-d); text-decoration: underline; }

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

/* ─── Typography ───────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 { line-height: 1.3; font-weight: 700; color: var(--secondary); }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
p  { margin-bottom: 1rem; }

/* ─── Utility ──────────────────────────────────────────────────────── */
.text-muted    { color: var(--muted); }
.text-primary  { color: var(--primary); }
.text-danger   { color: var(--danger); }
.text-accent   { color: var(--accent); }
.text-center   { text-align: center; }
.fw-bold       { font-weight: 700; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.d-flex        { display: flex; }
.align-center  { align-items: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }

/* ─── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.25rem; border-radius: var(--radius);
  font-size: .9rem; font-weight: 600; font-family: var(--font);
  cursor: pointer; border: 2px solid transparent;
  transition: all .18s ease; text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary  { background: var(--primary);  color: #fff; border-color: var(--primary);  }
.btn-primary:hover { background: var(--primary-d); border-color: var(--primary-d); color:#fff; }

.btn-secondary { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn-secondary:hover { background: #1e293b; color:#fff; }

.btn-outline   { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-l); }

.btn-danger    { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #b91c1c; color: #fff; }

.btn-ghost     { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }

.btn-sm { padding: .3rem .75rem; font-size: .8rem; }
.btn-lg { padding: .8rem 2rem; font-size: 1rem; }
.btn-xl { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* ─── Cards ────────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  overflow: hidden;
}
.card-header {
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 1rem; color: var(--secondary);
  display: flex; align-items: center; justify-content: space-between;
}
.card-body { padding: 1.5rem; }
.card-footer {
  padding: 1rem 1.5rem; border-top: 1px solid var(--border);
  background: var(--bg);
}

/* ─── Stat-Cards ───────────────────────────────────────────────────── */
.stat-card {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  padding: 1.5rem; position: relative; overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card .stat-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: .75rem;
}
.stat-card .stat-value { font-size: 2.2rem; font-weight: 800; color: var(--secondary); line-height: 1; }
.stat-card .stat-label { font-size: .85rem; color: var(--muted); margin-top: .25rem; }
.stat-card.primary .stat-icon { background: var(--primary-l); color: var(--primary); }
.stat-card.accent  .stat-icon { background: var(--accent-l);  color: var(--accent);  }
.stat-card.navy    .stat-icon { background: #e2e8f0;          color: var(--secondary);}

/* ─── Forms ────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; font-size: .875rem; font-weight: 600;
  color: var(--secondary); margin-bottom: .35rem;
}
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%; padding: .6rem .9rem;
  border: 2px solid var(--border); border-radius: var(--radius);
  font-size: .95rem; font-family: var(--font); color: var(--text);
  background: var(--surface); transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.form-control:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5,150,105,.12);
}
.form-control::placeholder { color: #94a3b8; }
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { cursor: pointer; }
.form-hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ─── Alerts ───────────────────────────────────────────────────────── */
.alert {
  padding: .85rem 1.2rem; border-radius: var(--radius);
  border-left: 4px solid; margin-bottom: 1.25rem;
  font-size: .9rem; display: flex; align-items: flex-start; gap: .5rem;
}
.alert-success { background: var(--primary-l); border-color: var(--primary); color: #065f46; }
.alert-error   { background: var(--danger-l);  border-color: var(--danger);  color: #991b1b; }
.alert-warning { background: var(--accent-l);  border-color: var(--accent);  color: #92400e; }
.alert-info    { background: #dbeafe;           border-color: #3b82f6;        color: #1e40af; }

/* ─── Badges ───────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: .2rem .65rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .02em;
}
.badge-green  { background: var(--primary-l); color: #065f46; }
.badge-amber  { background: var(--accent-l);  color: #92400e; }
.badge-red    { background: var(--danger-l);  color: #991b1b; }
.badge-gray   { background: #f1f5f9;          color: #475569; }
.badge-navy   { background: #e2e8f0;          color: var(--secondary); }

/* ─── Tables ───────────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table {
  width: 100%; border-collapse: collapse; font-size: .875rem;
  table-layout: auto;
}
.table th {
  background: var(--bg); padding: .65rem .75rem;
  text-align: left; font-size: .75rem; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 2px solid var(--border); white-space: nowrap;
}
.table td {
  padding: .7rem .75rem; border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table tbody tr:hover { background: #f8fafc; }
.table tbody tr:last-child td { border-bottom: none; }

/* Responsive Tabelle: horizontal scrollbar auf kleinen Screens */
@media (max-width: 768px) {
  .page-content { padding: 1rem; }
  .card { padding: 1rem; overflow-x: auto; }
  .table { font-size: .8rem; }
  .table th, .table td { padding: .5rem .5rem; }
}

/* ─── Navigation (Public) ──────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex; align-items: center; padding: 0 2rem;
  box-shadow: var(--shadow-sm);
}
.navbar-brand {
  font-size: 1.4rem; font-weight: 800; color: var(--secondary);
  display: inline-flex; align-items: center; gap: 0; text-decoration: none;
}
.navbar-brand span { color: var(--primary); }
.navbar-brand:hover { text-decoration: none; }
.navbar-nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.navbar-nav a { font-size: .9rem; color: var(--text); font-weight: 500; }
.navbar-nav a:hover { color: var(--primary); text-decoration: none; }

/* ─── App-Layout (eingeloggt) ──────────────────────────────────────── */
.app-wrapper { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--secondary); min-height: 100vh;
  position: fixed; top: 0; left: 0; z-index: 200;
  display: flex; flex-direction: column;
  transition: transform .3s ease;
}
.sidebar-logo {
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-logo a {
  font-size: 1.2rem; font-weight: 800; color: #fff;
  display: inline-flex; align-items: center; gap: 0; text-decoration: none;
}
.sidebar-logo a span { color: var(--primary); }
.sidebar-logo .firma-name {
  font-size: .75rem; color: rgba(255,255,255,.45);
  margin-top: .25rem; padding-left: .05rem;
}
.sidebar-nav { flex: 1; padding: 1rem 0; overflow-y: auto; }
.sidebar-nav a {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 1.25rem; color: rgba(255,255,255,.7);
  font-size: .9rem; font-weight: 500; text-decoration: none;
  transition: background .15s, color .15s; border-left: 3px solid transparent;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(5,150,105,.18); color: #fff;
  border-left-color: var(--primary); text-decoration: none;
}
.sidebar-nav a .nav-icon { font-size: 1.05rem; width: 20px; text-align: center; flex-shrink: 0; }
.sidebar-divider { height: 1px; background: rgba(255,255,255,.08); margin: .5rem 1.25rem; }
.sidebar-section-label {
  padding: .5rem 1.25rem .25rem;
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,.3);
}
.sidebar-user {
  padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: .75rem;
}
.sidebar-user .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; flex-shrink: 0;
}
.sidebar-user .user-info .name { font-size: .85rem; color: #fff; font-weight: 600; }
.sidebar-user .user-info .role { font-size: .75rem; color: rgba(255,255,255,.45); }
.sidebar-user a { margin-left: auto; color: rgba(255,255,255,.5); font-size: .85rem; }
.sidebar-user a:hover { color: var(--danger); }

.main-content {
  margin-left: var(--sidebar-w); flex: 1;
  display: flex; flex-direction: column;
}
.topbar {
  height: var(--header-h); background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 2rem;
  position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-sm);
  gap: 1rem;
}
.topbar-title { font-weight: 700; font-size: 1.1rem; color: var(--secondary); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: .25rem;
}
.hamburger span { width: 22px; height: 2px; background: var(--text); display: block; transition: .2s; }

.page-content { padding: 2rem; flex: 1; max-width: 1400px; width: 100%; }

/* ─── Trial-Banner ─────────────────────────────────────────────────── */
.trial-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #d97706 100%);
  color: #fff; padding: .75rem 2rem;
  display: flex; align-items: center; gap: .75rem; font-size: .875rem;
}
.trial-banner strong { font-weight: 700; }

/* ─── Landing Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #1e3a5f 50%, #0d3a2f 100%);
  color: #fff; padding: 6rem 2rem 5rem; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(5,150,105,.25) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(5,150,105,.2); border: 1px solid rgba(5,150,105,.4);
  color: #6ee7b7; padding: .35rem .9rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; margin-bottom: 1.5rem;
  animation: fadeInDown .6s ease;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900;
  color: #fff; margin-bottom: 1.25rem;
  animation: fadeInUp .7s ease .1s both;
}
.hero h1 em { font-style: normal; color: #6ee7b7; }
.hero p {
  font-size: 1.15rem; color: rgba(255,255,255,.75);
  margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto;
  animation: fadeInUp .7s ease .2s both;
}
.hero-cta {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: fadeInUp .7s ease .3s both;
}
.hero-trust {
  margin-top: 2.5rem; display: flex; gap: 2rem; justify-content: center;
  flex-wrap: wrap; animation: fadeInUp .7s ease .4s both;
}
.hero-trust-item {
  display: flex; align-items: center; gap: .4rem;
  font-size: .85rem; color: rgba(255,255,255,.6);
}
.hero-trust-item .icon { color: var(--primary); font-size: 1rem; }

/* ─── Feature Section ──────────────────────────────────────────────── */
.features { padding: 5rem 2rem; }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem; max-width: 1100px; margin: 0 auto;
}
.feature-card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature-icon {
  width: 60px; height: 60px; border-radius: 14px;
  background: var(--primary-l); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 1.25rem;
}
.feature-card h3 { margin-bottom: .5rem; }
.feature-card p  { color: var(--muted); font-size: .95rem; margin: 0; }

/* ─── Wussten Sie? ─────────────────────────────────────────────────── */
.info-box {
  background: linear-gradient(135deg, var(--primary-l) 0%, #ecfdf5 100%);
  border: 1px solid #a7f3d0; border-radius: var(--radius-lg);
  padding: 2.5rem; max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem;
  align-items: start;
}
.info-box-icon { font-size: 2.5rem; }
.info-box h3 { color: var(--primary); margin-bottom: .5rem; }
.info-box p  { color: #065f46; margin: 0; font-size: .95rem; line-height: 1.7; }

/* ─── Pricing ──────────────────────────────────────────────────────── */
.pricing { padding: 5rem 2rem; background: var(--secondary); }
.pricing h2 { color: #fff; text-align: center; margin-bottom: .75rem; }
.pricing-subtitle { color: rgba(255,255,255,.6); text-align: center; margin-bottom: 3rem; }
.pricing-card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 2.5rem; max-width: 460px; margin: 0 auto;
  box-shadow: var(--shadow-lg); border: 2px solid var(--primary);
  text-align: center; position: relative;
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; padding: .3rem 1rem;
  border-radius: 999px; font-size: .8rem; font-weight: 700;
}
.pricing-price { font-size: 3.5rem; font-weight: 900; color: var(--secondary); line-height: 1; }
.pricing-price span { font-size: 1.25rem; color: var(--muted); font-weight: 400; }
.pricing-trial { color: var(--primary); font-weight: 700; font-size: 1rem; margin: .5rem 0 1.5rem; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 2rem; }
.pricing-features li {
  padding: .5rem 0; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: .6rem; font-size: .95rem;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before { content: '✓'; color: var(--primary); font-weight: 800; font-size: 1rem; }

/* ─── Footer ───────────────────────────────────────────────────────── */
.footer {
  background: var(--secondary); color: rgba(255,255,255,.5);
  padding: 2rem; text-align: center; font-size: .85rem;
}
.footer a { color: rgba(255,255,255,.6); }
.footer a:hover { color: #fff; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: .75rem; flex-wrap: wrap; }

/* ─── Auth Pages ───────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--secondary) 0%, #1e3a5f 100%);
  padding: 2rem;
}
.auth-card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 2.5rem; width: 100%; max-width: 460px; box-shadow: var(--shadow-lg);
}
.auth-logo {
  text-align: center; font-size: 1.5rem; font-weight: 800;
  color: var(--secondary); margin-bottom: 1.75rem;
}
.auth-logo span { color: var(--primary); }
.auth-logo p { font-size: .85rem; color: var(--muted); font-weight: 400; margin-top: .25rem; margin-bottom: 0; }
.auth-divider { text-align: center; color: var(--muted); font-size: .85rem; margin: 1rem 0; }

/* ─── Detail-View ──────────────────────────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-field label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.detail-field .value { font-size: .95rem; color: var(--text); margin-top: .2rem; }
.detail-field.full { grid-column: 1 / -1; }

/* ─── Löschen-Modal ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 999; padding: 1rem; opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 2rem; max-width: 460px; width: 100%; box-shadow: var(--shadow-lg);
  transform: scale(.95); transition: transform .2s;
}
.modal-overlay.open .modal-box { transform: scale(1); }
.modal-box h3 { margin-bottom: .75rem; }

/* ─── Super-Admin Sidebar ──────────────────────────────────────────── */
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: #1a1f2e; min-height: 100vh;
  position: fixed; top: 0; left: 0; z-index: 200;
}
.admin-sidebar .sidebar-logo { border-bottom: 1px solid rgba(255,255,255,.06); }
.admin-sidebar a { color: rgba(255,255,255,.65); }
.admin-sidebar a:hover, .admin-sidebar a.active {
  background: rgba(245,158,11,.15); color: #fff; border-left-color: var(--accent);
}
.admin-main { margin-left: 240px; }

/* ─── Animations ───────────────────────────────────────────────────── */
@keyframes fadeInUp   { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: none; } }
@keyframes fadeInDown { from { opacity:0; transform: translateY(-12px); } to { opacity:1; transform: none; } }
@keyframes pulse      { 0%,100% { opacity:1; } 50% { opacity:.6; } }

/* ─── Search / Filter bar ──────────────────────────────────────────── */
.filter-bar {
  display: flex; gap: .75rem; flex-wrap: wrap;
  margin-bottom: 1.25rem; align-items: center;
}
.filter-bar .form-control { max-width: 280px; }
.filter-bar select.form-control { max-width: 180px; }

/* ─── Foto-Preview ─────────────────────────────────────────────────── */
.foto-preview {
  max-width: 320px; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md); margin-top: .5rem;
}

/* ─── Responsive Sidebar ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
  .hamburger { display: flex; }
  .overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.5);
    z-index: 190; display: none;
  }
  .overlay.open { display: block; }
}

/* ─── Print-Styles ─────────────────────────────────────────────────── */
@media print {
  .sidebar, .topbar, .btn, .no-print { display: none !important; }
  .main-content { margin-left: 0 !important; }
  .card { box-shadow: none; border: 1px solid #ccc; }
  a { color: inherit; text-decoration: none; }
  body { font-size: 11pt; }
}

/* ─── Misc ─────────────────────────────────────────────────────────── */
.section-header { max-width: 1100px; margin: 0 auto 3rem; text-align: center; }
.section-header h2 { margin-bottom: .75rem; }
.section-header p  { color: var(--muted); font-size: 1.05rem; margin: 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }
.empty-state {
  text-align: center; padding: 4rem 2rem; color: var(--muted);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state p { font-size: 1.05rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ─── Responsive: Tablet ───────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Navbar */
  .navbar { padding: 0 1rem; height: 56px; }
  .navbar-brand { font-size: 1.2rem; }
  .navbar-nav { gap: .75rem; }
  .navbar-nav a { font-size: .8rem; }
  .navbar-nav .btn { font-size: .75rem; padding: .4rem .75rem; }

  /* Hero */
  .hero { padding: 3.5rem 1.25rem 3rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 1rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-trust { gap: .75rem; }
  .hero-trust-item { font-size: .75rem; }

  /* Features */
  .features { padding: 3rem 1rem; }
  .features-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .feature-card { padding: 1.5rem; }

  /* Info-Box */
  .info-box { grid-template-columns: 1fr; padding: 1.5rem; gap: 1rem; }
  .info-box-icon { display: none; }

  /* Pricing */
  .pricing { padding: 3rem 1rem; }
  .pricing-card { padding: 1.75rem; }
  .pricing-price { font-size: 2.5rem; }

  /* Auth */
  .auth-page { padding: 1rem; }
  .auth-card { padding: 1.75rem; }

  /* General */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.15rem; }
  .btn-xl { font-size: .9rem; padding: .65rem 1.25rem; }
  .filter-bar { flex-direction: column; }
  .filter-bar .form-control,
  .filter-bar select.form-control { max-width: 100%; width: 100%; }

  /* Landingpage Pricing Grid */
  .pricing > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }

  /* Content Pages (Was ist ein Verbandbuch) */
  article { padding: 2rem 1rem !important; }
  article > div[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }

  /* Admin */
  .admin-sidebar { width: 200px; }
  .admin-main { margin-left: 200px; }
  .admin-content { padding: 1rem; }
  .admin-topbar { padding: 0 1rem; }

  /* Stat Cards */
  .stat-card { padding: 1rem; }

  /* Tables */
  .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ─── Responsive: Mobile ───────────────────────────────────────────── */
@media (max-width: 480px) {
  /* Navbar wird jetzt per Hamburger gesteuert */
  .hero h1 { font-size: 1.4rem; }
  .hero-badge { font-size: .7rem; }
  .hero-trust { flex-direction: column; gap: .4rem; align-items: center; }
  .pricing-price { font-size: 2rem; }
  .trial-banner { flex-wrap: wrap; font-size: .8rem; padding: .5rem 1rem; }

  /* Admin Sidebar weg auf Mobile */
  .admin-sidebar { transform: translateX(-100%); }
  .admin-main { margin-left: 0; }

  /* Abo-Seite Upgrade Card */
  .card-body[style*="padding:2rem"] { padding: 1.25rem !important; }
  .card-body[style*="padding:2.5rem"] { padding: 1.25rem !important; }
}

/* ─── Landing Grids ────────────────────────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem; max-width: 780px; margin: 0 auto;
}
.target-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem; max-width: 900px; margin: 0 auto;
}
@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .target-grid  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .target-grid { grid-template-columns: 1fr; }
}

/* ─── Public Navbar Hamburger ──────────────────────────────────────── */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; margin-left: auto;
}
.nav-hamburger span {
  width: 24px; height: 2px; background: var(--text);
  display: block; transition: transform .25s, opacity .2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .navbar-nav {
    display: none; flex-direction: column;
    position: absolute; top: 56px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 1rem; gap: .75rem;
    box-shadow: var(--shadow-md); z-index: 99;
  }
  .navbar-nav.open { display: flex; }
  .navbar-nav a { font-size: .95rem; padding: .5rem 0; }
  .navbar-nav .btn { width: 100%; justify-content: center; }
  .navbar { position: relative; flex-wrap: wrap; }
}
@media (min-width: 769px) {
  .nav-hamburger { display: none !important; }
}
