/* ================================
   vereinex – Global Styles (Desktop first, mobile optimiert)
================================ */

/* Grundlayout */
body {
    background: #f6f7fb;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Logo in der Navigation */
.brand-logo-img {
    max-height: 60px;   /* gut sichtbar auf Laptop */
    width: auto;
    display: block;
}

/* Falls alte Wrapper-Klassen noch existieren */
.brand-logo-wrapper {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Karten */
.card {
    border-radius: 10px;
    overflow: hidden;
}

/* Buttons */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Tabellen */
.table thead th {
    background: #f0f0f5;
}

.table-striped tbody tr:nth-child(odd) {
    background: #fafafa;
}

/* Formulareingaben */
.form-control,
.form-select {
    border-radius: 6px;
}

/* Überschriften */
h1, h2, h3, h4, h5 {
    font-weight: 600;
}

/* Containerbreite – Desktop im Fokus */
.container {
    max-width: 1200px;
}

footer {
    margin-top: 60px;
    padding: 20px 0;
    color: #999;
    font-size: 14px;
    text-align: center;
}

/* Tabellencontainer */
.table-responsive {
    overflow-x: auto;
}

/* Page-Actions für Kopfbereiche (Mitglieder, Beiträge etc.) */
.page-actions {
    gap: .5rem;
}

/* Mobile Optimierungen (bis 576px) */
@media (max-width: 576px) {
    /* Überschriften etwas kleiner */
    h1.h3, .h3 {
        font-size: 1.6rem;
    }

    /* Logo etwas kleiner, damit es nicht dominiert */
    .brand-logo-img {
        max-height: 48px;
    }

    /* Page-Actions untereinander anordnen */
    .page-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .page-actions .btn,
    .page-actions .btn-group {
        width: 100%;
    }

    .page-actions .btn-group .btn {
        flex: 1 1 auto;
    }
}


/* Vereinex blaues Header-Theme */
.vereine-navbar {
    background-color: #2563eb !important;
}

.vereine-navbar .navbar-brand,
.vereine-navbar .nav-link,
.vereine-navbar .navbar-text {
    color: #ffffff !important;
}

.vereine-navbar .nav-link:hover {
    color: #e0f2fe !important;
}

.vereine-navbar .nav-link.active {
    font-weight: 600;
    border-bottom: none;
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
}


.vereine-navbar .btn-light.btn-sm.text-primary {
    color: #2563eb !important;
}

/* Dashboard modern colorful */
.dashboard-header{background:#ffffff;color:#111;border:1px solid rgba(0,0,0,.08);border-radius:14px;padding:18px 20px;margin-bottom:18px;}

.dashboard-header-tags {
    display: flex;
    flex-wrap: wrap;
}

.dashboard-badge {
    font-weight: 500;
    padding: .45rem .75rem;
    border-radius: 999px;
    background-color: #e0ebff;
    color: #111827;
}

.dashboard-card {
    background: #ffffff !important;
    border-radius: 16px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: all .15s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.dashboard-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.dashboard-icon-members {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
}

.dashboard-icon-teams {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
}

.dashboard-icon-events {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.dashboard-icon-payments {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.dashboard-kpi {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.dashboard-kpi-label {
    font-size: .85rem;
    color: #6b7280;
}

.dashboard-panel.card {
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.dashboard-announcements {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.dashboard-announcement-item {
    padding-bottom: .6rem;
    border-bottom: 1px dashed #e5e7eb;
}

.dashboard-announcement-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

@media (max-width: 576px) {
    .dashboard-header{background:#ffffff;color:#111;border:1px solid rgba(0,0,0,.08);border-radius:14px;padding:18px 20px;margin-bottom:18px;}

    .dashboard-header-tags {
        width: 100%;
    }

    .dashboard-badge {
        display: block;
        width: 100%;
        text-align: left;
        margin-bottom: .35rem;
    }

    .dashboard-card {
        padding: 16px 14px;
    }
}

.landing-logo{height:84px;width:auto;border-radius:18px;}

/* Auth pages (login / registration) */
.auth-logo{height:78px;width:auto;border-radius:18px;max-width:260px;}
.landing-footer{background:#2563eb !important;color:#fff;}
.landing-footer-link{color:#e5e7eb;text-decoration:none;}
.landing-footer-link:hover{text-decoration:underline;}


.landing-footer-link {
    color: #ffffff !important;
    text-decoration: none;
}
.landing-footer-link:hover {
    text-decoration: underline;
}



/* ================================
   Header Navigation Improvements
   ================================ */
.vereine-navbar .navbar-nav .nav-link {
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  line-height: 1.2;
  white-space: nowrap;
}

.vereine-navbar .navbar-nav .nav-link.active,
.vereine-navbar .navbar-nav .nav-link:focus {
  background: rgba(255,255,255,0.18);
}

.vereine-navbar .dropdown-menu {
  border: none;
  border-radius: 14px;
  padding: 0.35rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.16);
}

.vereine-navbar .dropdown-item {
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
}

.vereine-navbar .dropdown-item.active,
.vereine-navbar .dropdown-item:active {
  background: rgba(13,110,253,0.12);
  color: #0d6efd;
}

.nav-roleclub {
  color: rgba(255,255,255,0.92);
  font-size: 0.95rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  display: inline-block;
}

.nav-logout-btn {
  border-radius: 10px;
}

/* Mobile improvements */
@media (max-width: 991.98px) {
  .vereine-navbar .navbar-collapse {
    padding-top: 0.75rem;
  }
  .vereine-navbar .navbar-nav .nav-link {
    border-radius: 12px;
    padding: 0.85rem 0.9rem;
  }
  .vereine-navbar .dropdown-menu {
    position: static !important;
    float: none;
    box-shadow: none;
    border-radius: 12px;
    padding: 0.25rem 0;
    margin-top: 0.25rem;
    background: rgba(255,255,255,0.10);
  }
  .vereine-navbar .dropdown-item {
    padding: 0.8rem 1rem;
    color: #fff;
  }
  .vereine-navbar .dropdown-item:hover {
    background: rgba(255,255,255,0.12);
  }
  .vereine-navbar .dropdown-item.active {
    background: rgba(255,255,255,0.18);
    color: #fff;
  }
  .nav-roleclub {
    width: 100%;
    text-align: left;
    margin-top: 0.35rem;
  }
}



/* v22 dashboard color fix (override) */
.dashboard-header,.welcome-banner,.dashboard-hero{background:#ffffff;color:#111;}

.page-header{background:transparent;}

/* =============================
   bauq-inspired app shell
   ============================= */
:root{
  --vx-blue: #2563eb; /* fallback */
  --vx-bg: #f5f7fb;
  --vx-card: #ffffff;
  --vx-border: rgba(0,0,0,0.08);
  --vx-text: #0f172a;
  --vx-muted: #64748b;
}

body{
  background: var(--vx-bg);
  color: var(--vx-text);
}

/* Shell */
.app-shell{
  display: flex;
  min-height: 100vh;
}

.sidebar{
  width: 270px;
  flex: 0 0 270px;
  background: #ffffff;
  border-right: 1px solid var(--vx-border);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
}

.sidebar-brand{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 6px 12px 6px;
  text-decoration: none;
  color: inherit;
}

/* Bigger brand logo, no "vereinex" text */
.sidebar-brand img,
.sidebar-brand .brand-logo{
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.sidebar-brand .brand-name{
  font-weight: 800;
  letter-spacing: 0.2px;
}

.sidebar-brand .brand-sub{
  color: var(--vx-muted);
  font-size: 0.85rem;
  margin-top: -2px;
  text-align: center;
  text-decoration: none;
}

/* Mobile topbar brand */
.topbar-brand{display:flex;align-items:center;justify-content:center;text-decoration:none;}
.topbar-logo{height:40px;width:auto;object-fit:contain;}

.sidebar-nav{
  margin-top: 6px;
  overflow: auto;
  padding-right: 4px;
}

.sidebar-nav .nav-section{
  color: var(--vx-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 10px 6px 10px;
}

.sidebar-nav a{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--vx-text);
  text-decoration: none;
  font-weight: 600;
}

.sidebar-nav a:hover{
  background: rgba(37, 99, 235, 0.08);
  color: var(--vx-text);
}

.sidebar-nav a.active{
  background: rgba(37, 99, 235, 0.16);
  color: var(--vx-text);
}

.sidebar-nav i{
  font-size: 1.1rem;
  color: #1e40af;
  width: 22px;
  display: inline-flex;
  justify-content: center;
}

.sidebar-user{
  margin-top: auto;
  padding: 12px 10px 10px 10px;
  border-top: 1px solid var(--vx-border);
}

.sidebar-user .user-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(2, 6, 23, 0.04);
  color: var(--vx-text);
  font-weight: 600;
  width: 100%;
  justify-content: space-between;
}

.sidebar-user .logout-btn{
  margin-top: 10px;
  width: 100%;
  border-radius: 999px;
}

/* Main area */
.main{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 247, 251, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--vx-border);
}

.topbar-inner{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
}

.topbar-title{
  font-weight: 800;
  margin: 0;
}

.content{
  padding: 22px 18px 32px 18px;
}

/* Footer */
.app-footer{
  margin-top: auto;
  background: var(--vx-blue);
  color: #fff;
  padding: 18px 0;
}

.footer-logo{
  height: 28px;
  width: auto;
}

.footer-brand{
  font-weight: 800;
}

.app-footer a{ color: rgba(255,255,255,0.95); text-decoration: none; }
.app-footer a:hover{ text-decoration: underline; }

/* Cards – make Bootstrap cards look closer */
.card{
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(15,23,42,0.06);
}

.btn{
  border-radius: 12px;
}

/* Mobile */
@media (max-width: 991.98px){
  .sidebar{
    position: fixed;
    left: -280px;
    top: 0;
    height: 100vh;
    z-index: 1000;
    transition: left .25s ease;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  }
  body.sidebar-open .sidebar{ left: 0; }
  body.sidebar-open .sidebar-backdrop{ display: block; }
  .sidebar-backdrop{
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 999;
  }
}


.dashboard-icon-applications { background: rgba(13, 110, 253, 0.12); color: #0d6efd; }



/* ================================
   vereinex – UI Polish (2026-02)
   Modern, consistent, accessible
==================================*/
:root{
  --vx-radius: 18px;
  --vx-radius-sm: 12px;
  --vx-shadow: 0 10px 30px rgba(15,23,42,.08);
  --vx-shadow-sm: 0 6px 18px rgba(15,23,42,.06);
  --vx-focus: 0 0 0 .25rem rgba(37,99,235,.25);
}

a{ text-decoration: none; }
a:hover{ text-decoration: none; }

/* Use available width on each device (tables & admin views). */
.app-page .content{
  max-width: 100%;
  width: 100%;
  margin: 0;
}

/* =================================
   Responsive tables (mobile-first)
   - Desktop: full width, horizontal scroll if needed
   - Mobile: card-style rows with labels
===================================*/
.vx-table-wrap,
.table-responsive{
  width: 100%;
}

/* Ensure tables can expand inside cards */
.card .vx-table-wrap,
.card .table-responsive{
  margin: 0;
}

table.vx-table{
  width: 100% !important;
}

@media (max-width: 768px){
  table.vx-table thead{ display:none; }
  table.vx-table,
  table.vx-table tbody,
  table.vx-table tr,
  table.vx-table td{ display:block; width:100%; }

  table.vx-table tr{
    background: #fff;
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 14px;
    box-shadow: 0 6px 16px rgba(15,23,42,.05);
  }

  table.vx-table td{
    padding: 10px 0;
    border: 0 !important;
    border-bottom: 1px solid rgba(15,23,42,.08) !important;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap: 12px;
  }
  table.vx-table td:last-child{ border-bottom: 0 !important; }

  table.vx-table td::before{
    content: attr(data-label);
    font-weight: 700;
    color: rgba(15,23,42,.65);
    flex: 0 0 44%;
    max-width: 44%;
  }

  table.vx-table td > *{ max-width: 56%; }
  table.vx-table td.actions,
  table.vx-table td:last-child{
    /* action cells often have multiple buttons */
  }
  table.vx-table td .btn{
    white-space: nowrap;
  }

  /* Make button groups wrap nicely */
  .vx-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    justify-content:flex-end;
  }
}

.card{
  border-radius: var(--vx-radius) !important;
  box-shadow: var(--vx-shadow-sm) !important;
}

.btn{
  border-radius: 999px !important;
  padding: .55rem 1rem;
  font-weight: 600;
}

.btn-sm{ padding: .38rem .8rem; }

.btn-primary{
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: transparent;
}
.btn-primary:hover{ filter: brightness(0.98); }
.btn-success{
  background: linear-gradient(135deg, #16a34a, #15803d);
  border-color: transparent;
}
.btn-outline-primary, .btn-outline-secondary, .btn-outline-danger, .btn-outline-success{
  border-width: 1.5px;
}

.form-control, .form-select{
  border-radius: var(--vx-radius-sm) !important;
  padding: .65rem .85rem;
  border-color: rgba(15,23,42,.14);
}
.form-control:focus, .form-select:focus, .btn:focus{
  box-shadow: var(--vx-focus) !important;
}

.table{
  border-collapse: separate;
  border-spacing: 0;
}
.table thead th{
  background: rgba(2,6,23,.04) !important;
  color: var(--vx-text);
  font-weight: 700;
  border-bottom: 1px solid rgba(15,23,42,.10);
}
.table td, .table th{
  padding: .9rem .9rem;
  vertical-align: middle;
}
.table tbody tr{
  transition: background-color .12s ease;
}
.table tbody tr:hover{
  background: rgba(37,99,235,.04);
}

/* Sidebar polish */
.sidebar{
  border-right: 1px solid rgba(15,23,42,.08);
}
.sidebar-nav a{
  font-weight: 650;
}
.sidebar-nav a.active{
  box-shadow: 0 6px 16px rgba(37,99,235,.10);
}

/* Public pages */
.public-page{
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(37,99,235,.10), transparent 60%),
    radial-gradient(900px 500px at 80% 30%, rgba(22,163,74,.08), transparent 55%),
    var(--vx-bg);
}
.public-page main.container{
  max-width: 980px;
}
.auth-logo{
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(15,23,42,.18));
}
.landing-logo{
  width: 84px;
  height: 84px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(15,23,42,.14));
}
.public-page .card{
  backdrop-filter: blur(6px);
}

.alert{
  border-radius: var(--vx-radius-sm);
  border: 1px solid rgba(15,23,42,.08);
}

/* Better spacing for section headings */
h1, .h1{ letter-spacing: -0.02em; }
h2, .h2, h3, .h3{ letter-spacing: -0.01em; }

/* Responsive tighten */
@media (max-width: 576px){
  .content{ padding: 16px 14px 26px 14px; }
  .card{ border-radius: 16px !important; }
  .sidebar-brand img, .sidebar-brand .brand-logo{ width: 78px; height: 78px; }
}



/* ================================
   UI v1 – Dashboard Reference
   (ruhig, konsistent, modern)
================================ */

:root{
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;

  --bg-page: #f6f7fb;
  --bg-card: #ffffff;
  --border-light: #e5e7eb;

  --text-main: #111827;
  --text-muted: #6b7280;

  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;

  --radius-card: 16px;
  --shadow-card: 0 10px 25px rgba(17,24,39,.06);
}

body{
  color: var(--text-main);
  background: var(--bg-page);
}

.page-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 22px 40px;
}

.page-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.page-title{
  font-size: 28px;
  line-height: 1.15;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-subtitle{
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.chip-row{
  display:flex;
  flex-wrap: wrap;
  justify-content:flex-end;
  gap: 10px;
}

.chip{
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-main);
}

.chip strong{
  font-weight: 700;
}

.kpi-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 10px 0 18px;
}

.kpi-card{
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  display:flex;
  gap: 12px;
  align-items:flex-start;
  position: relative;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.kpi-card:hover{
  transform: translateY(-1px);
  border-color: rgba(37,99,235,.25);
  box-shadow: 0 14px 30px rgba(17,24,39,.08);
}

.kpi-icon{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
  color: var(--primary);
  background: var(--primary-soft);
}

.kpi-icon--info{
  color: #0ea5e9;
  background: #e0f2fe;
}

.kpi-icon--warning{
  color: #f59e0b;
  background: #fffbeb;
}

.kpi-meta{
  min-width: 0;
  flex: 1 1 auto;
}

.kpi-value{
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.kpi-label{
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 13px;
}

.kpi-cta{
  position:absolute;
  right: 14px;
  bottom: 12px;
  font-size: 13px;
  color: var(--primary);
  opacity: .95;
}

.card--section{
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.card__header{
  padding: 16px 18px 0;
}

.card__title{
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.card__subtitle{
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.quick-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px 18px;
}

.btn{
  border-radius: 12px !important;
  padding: 10px 14px !important;
  font-weight: 600 !important;
}

.btn-primary{
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

.btn-primary:hover{
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
}

.btn-secondary{
  background: #f3f4f6 !important;
  border-color: #f3f4f6 !important;
  color: var(--text-main) !important;
}

.btn-secondary:hover{
  background: #e5e7eb !important;
  border-color: #e5e7eb !important;
}

@media (max-width: 992px){
  .kpi-grid{ grid-template-columns: 1fr; }
  .page-header{ flex-direction: column; align-items: flex-start; }
  .chip-row{ justify-content: flex-start; }
}
