:root {
  /* Multicam-inspirierte Palette, kontrastoptimiert */
  --mc-dark: #2f3328;
  --mc-olive: #4f5a3b;
  --mc-sand: #b6a37a;
  --mc-khaki: #8f8664;
  --mc-light: #ddd2b6;
  --mc-accent: #6f7550;
  --mc-text: #f5f1e6;
  --mc-text-dark: #1f221a;
  --mc-border: #746b52;
  --mc-hover: #66704a;
  --mc-soft-olive: #7a8058;
  --mc-muted-green: #6b7050;
  --mc-warm-khaki: #9a916c;
  --mc-light-sand: #d6c7a3;
  --mc-dust: #cbb892;
  --mc-beige: #e3d7b9;

  /* Zentrale Box-Gestaltung – Referenz: „Nächste Spieltage“ */
  --box-bg: rgba(143, 134, 100, 0.95);
  --box-bg-hover: rgba(122, 128, 88, 0.90);
  --box-text: var(--mc-text);
  --box-border: 1px solid var(--mc-border);
  --box-radius: 12px;
  --box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  --box-shadow-hover: 0 14px 28px rgba(0, 0, 0, 0.28);
}
body {
  background: #e3d7b9;
}

/* Standard-Link */
a {
  color: #4f5a3b;
  text-decoration: none;
}

/* Hover-Effekt */
a:hover {
  color: #6f7550;
  text-decoration: underline;
}

/* Bereits besuchte Links */
a:visited {
  color: var(--mc-text);
}

.navbar-custom {
  background-color: var(--mc-soft-olive) !important;
  border-bottom: 2px solid var(--mc-sand);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

/* Navigation Links */
.navbar-custom .navbar-brand,
.navbar-custom .nav-link,
.navbar-custom .dropdown-toggle {
  color: var(--mc-text) !important;
  font-weight: 600;
  letter-spacing: 0.3px;

  padding: 0.55rem 0.9rem;
  border-radius: 0.45rem;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}

/* Hover */
.navbar-custom .nav-link:hover,
.navbar-custom .dropdown-toggle:hover,
.navbar-custom .nav-link:focus,
.navbar-custom .dropdown-toggle:focus {
  background-color: var(--mc-hover);
  color: #ffffff !important;
}

/* Aktiver Menüpunkt */
.navbar-custom .nav-link.active {
  background-color: var(--mc-sand);
  color: var(--mc-text-dark) !important;
}

/* Mobile Toggle */
.navbar-custom .navbar-toggler {
  border-color: var(--mc-light-sand);
}

.navbar-custom .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

.dropdown-menu {
  background-color: var(--mc-olive);
  border: 1px solid var(--mc-border);
  border-radius: 0.75rem;
  padding: 0.4rem;

  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.dropdown-item {
  color: var(--mc-text) !important;
  border-radius: 0.45rem;
  padding: 0.65rem 1rem;

  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:active {
  background-color: var(--mc-khaki) !important;
  color: var(--mc-text) !important;
}

main.mainframe {
  min-height: calc(100vh - 76px);

  padding: 2rem;
}

.welcome-box { 
	background-color: rgba(122, 128, 88, 0.9); 
	color: var(--mc-text); 
	padding: 2rem 2.5rem; 
	border: 1px solid var(--mc-border); 
	border-radius: 1rem; 
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); 
	text-align: center; max-width: 700px; width: 100%; 
	 margin: 0 auto; /* DAS fehlt */
} 
.welcome-box h1 { 
	margin: 0; 
	font-size: 2rem; 
	font-weight: 700; 
} 
@media (max-width: 991.98px) { 
	.navbar-custom .nav-link, .navbar-custom .dropdown-toggle { 
		padding-left: 0.75rem; 
		padding-right: 0.75rem; 
	} 
	.dropdown-menu { 
		margin-top: 0.4rem; 
	} 
}
.image-container { 
	display: flex; 
	justify-content: center; 
	align-items: center; 
	gap: 20px; 
	flex-wrap: wrap; 
	margin-top: 20px; 
} 
.custom-sponsor { 
	width: 100%; 
	max-width: 260px; 
	height: 200px; 
	object-fit: contain; 
	background: rgba(0,0,0,0.15); 
	padding: 10px; 
	border-radius: 8px; 
} 
.custom-picture-box { 
	width: 100%; 
	max-width: 820px; 
	height: auto; 
	object-fit: contain; 
	background: rgba(0,0,0,0.15); 
	padding: 10px; 
	border-radius: 8px; 
} 
.team-section {
	width: min(1050px, 95vw); 
	margin: 0 auto; 
	text-align: center;
}
.card-grid {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 24px;

    margin-top: 30px;
}
.member-card {
    width: 220px;

    display: block;

    text-decoration: none;

    background-color: rgba(143, 134, 100, 0.95);

    border: 1px solid var(--mc-border);

    border-radius: 12px;

    padding: 16px;

    color: var(--mc-text);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}
.member-card:hover {
  transform: translateY(-6px);
  background-color: rgba(122, 128, 88, 0.9);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  color: #ffffff;
}

.member-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.member-card:hover img {
  transform: scale(1.03);
}

.member-group-title {
    margin: 3rem 0 1.2rem;
    text-align: center;
    color: var(--mc-text-dark);
    font-size: 1.8rem;
    font-weight: 700;
}


.member-card:focus {
    outline: 3px solid var(--mc-sand);
    outline-offset: 4px;
}

.member-modal-content {
    background-color: var(--mc-dark);
    color: var(--mc-text);
    border: 1px solid var(--mc-border);
    border-radius: 1rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.member-modal-content .modal-header {
    border-bottom: 1px solid var(--mc-border);
}

.member-modal-content .modal-title {
    color: var(--mc-light-sand);
    font-weight: 700;
}

.member-modal-content .modal-body p {
    margin-bottom: 0.5rem;
}

.member-modal-content .btn-close {
    filter: invert(1);
}

.member-modal-image {
    max-width: 220px;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 1rem;
    border: 1px solid var(--mc-border);
    background-color: rgba(0, 0, 0, 0.15);
}


.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 2rem;

    padding: 2rem;
    margin-top: 4rem;

    /* GLEICH WIE NAVBAR */
    background-color: var(--mc-soft-olive);

    border-top: 2px solid var(--mc-sand);

    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.22);

    color: var(--mc-text);

    flex-wrap: wrap;
}

/* LINKS */

.footer-left {
    flex: 1;
    min-width: 220px;
}

.footer-left h3 {
    margin: 0;
    color: var(--mc-text);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-left p {
    margin: 0.3rem 0;
    color: var(--mc-text);
    opacity: 0.9;
}

.footer-left span {
    font-size: 0.85rem;
    opacity: 0.75;
}

/* MITTE */

.footer-center {
    flex: 1;

    display: flex;
    justify-content: center;
    gap: 1.5rem;

    min-width: 220px;
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.footer-center a:hover {
    background-color: var(--mc-hover);
    color: #ffffff;
    transform: scale(1.1);
}

/* RECHTS */

.footer-right a {
    color: #ffffff;

    text-decoration: none;

    font-weight: 700;

    padding: 0.55rem 0.9rem;

    border-radius: 0.45rem;

    background-color: rgba(0, 0, 0, 0.18);

    border: 1px solid rgba(255,255,255,0.08);

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;
}

.footer-right a:hover {
    background-color: var(--mc-sand);

    color: var(--mc-text-dark);

    transform: translateY(-2px);
}

.footer-right a:hover {
    background-color: var(--mc-hover);
    color: #ffffff;
}

/* COPYRIGHT */

.footer-bottom {
    text-align: center;

    padding: 1rem;

    background-color: var(--mc-soft-olive);

    border-top: 1px solid rgba(255,255,255,0.08);

    color: var(--mc-text);

    font-size: 0.8rem;

    opacity: 0.85;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--mc-text);
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
}

.social-link:hover {
    color: var(--mc-light-sand);
    transform: translateY(-1px);
}

.social-link i {
    font-size: 1.3rem;
}

.social-link span {
    font-size: 0.9rem;
}

/* MOBILE */

@media (max-width: 768px) {

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

    .footer-right {
        align-items: center;
    }

}

.dashboard-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 2rem;
    align-items: start;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-content {
    min-width: 0;
}

.content-card {
    background-color: rgba(47, 51, 40, 0.92);
    border: 1px solid var(--mc-border);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.table-card {
    overflow: hidden;
}

.view-switch {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.calendar-card {
    background-color: rgba(47, 51, 40, 0.92);
    border: 1px solid var(--mc-border);
    border-radius: 1rem;
    padding: 1.25rem;
    color: var(--mc-text);
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
    transition: transform 0.2s ease;
}

.calendar-card:hover {
    transform: translateY(-3px);
}

.calendar-date {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--mc-light-sand);
    margin-bottom: 0.75rem;
}

.participant-count {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--mc-light-sand);
}

.termin-form label {
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.termin-form .form-control {
    background-color: rgba(255,255,255,0.08);
    border: 1px solid var(--mc-border);
    color: var(--mc-text);
}

.termin-form .form-control:focus {
    background-color: rgba(255,255,255,0.12);
    color: var(--mc-text);
    border-color: var(--mc-light-sand);
    box-shadow: none;
}

.table {
    margin-bottom: 0;
}

@media (max-width: 991px) {

    .dashboard-layout {
        grid-template-columns: 1fr;
    }

}




/* ==========================================================
   Zentrale Layout-/Darstellungsregeln
   Bestehende Geometrie bleibt erhalten; nur Darstellung ist
   über gemeinsame Variablen harmonisiert.
   ========================================================== */

.navbar-custom {
  padding-top: 20px;
  padding-bottom: 20px;
}

/* Seitenbreiten – ersetzen nur bisherige Inline-max-width-Werte */
.page-container { width: 100%; }
.page-container--sm { max-width: 500px; }
.page-container--md { max-width: 700px; }
.page-container--lg { max-width: 800px; }
.page-container--profile { max-width: 850px; }

/* Die visuellen Eigenschaften der bestehenden Box-Typen werden vereinheitlicht. */
.member-card,
.content-card,
.calendar-card,
.bericht-kachel,
.bilder-upload-card,
.bilder-admin-card {
  background-color: var(--box-bg);
  color: var(--box-text);
  border: var(--box-border);
  border-radius: var(--box-radius);
  box-shadow: var(--box-shadow);
}

.member-card:hover,
.calendar-card:hover {
  background-color: var(--box-bg-hover);
  box-shadow: var(--box-shadow-hover);
}

/* Spieltagsberichte – ursprüngliche Container-/Flex-Struktur unverändert */
.berichte-grid {
  max-width: 900px;
  margin: 25px auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bericht-kachel {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 15px;
}

.bericht-kachel-bild {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.bericht-kachel-inhalt {
  flex: 1;
  text-align: left;
}

.bericht-kachel-inhalt h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.bericht-kachel-inhalt p {
  margin: 0 0 8px 0;
}

.bericht-kachel-inhalt a,
.bericht-kachel-inhalt a:visited {
  color: var(--box-text);
}

.bericht-kachel-inhalt a:hover {
  color: #fff;
}

/* Einzelner Spieltagsbericht – ursprüngliche Aufteilung bleibt bestehen */
.bericht-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.bericht-header {
  display: flex;
  gap: 25px;
  align-items: flex-start;
  margin-top: 30px;
}

.bericht-bildbereich,
.bericht-textbereich {
  width: 50%;
}

.bericht-textbereich { text-align: left; }

.bericht-hauptbild {
  display: block;
  max-width: 100%;
  max-height: 420px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  margin: 0 auto;
}

.bericht-hauptbild.querformat {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.bericht-hauptbild.hochformat {
  width: auto;
  height: 420px;
  object-fit: contain;
}

.bericht-galerie {
  margin-top: 25px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.bericht-galerie img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.bericht-galerie img:hover { transform: scale(1.03); }
.bericht-meta { margin-bottom: 15px; }
.bericht-text { line-height: 1.6; }
.report-actions { margin-top: 25px; }

/* Bericht erstellen/bearbeiten */
.report-form-control { width: 80%; }
.form-error { color: #b00020; font-weight: 600; }
.cropper-box { display: none; max-width: 500px; margin: 20px auto; }
.cropper-image { max-width: 100%; }

.bilder-upload-grid,
.bilder-admin-grid {
  max-width: 1100px;
  margin: 25px auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.bilder-upload-card,
.bilder-admin-card {
  padding: 12px;
  text-align: center;
}

.bilder-upload-card img,
.bilder-admin-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin-bottom: 10px;
}

.bilder-upload-card:first-child::after {
  content: "Titelbild";
  display: block;
  font-weight: bold;
  margin-top: 8px;
}

.bilder-admin-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bilder-admin-actions form { margin: 0; }
.bilder-admin-actions button { width: 100%; }
.titelbild-label { font-weight: bold; margin-bottom: 8px; display: block; }

/* Profil/Admin – exakt die bisherigen Inline-Abmessungen */
.profile-current-image { width: 180px; height: 180px; object-fit: cover; border-radius: 12px; }
.crop-preview-container { max-width: 500px; }
.crop-preview-image { max-width: 100%; display: none; }
.profile-image-option { cursor: pointer; text-align: center; }
.profile-image-thumb { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; }
.team-admin-preview { max-width: 240px; width: 100%; border-radius: 1rem; border: 1px solid var(--mc-border); }
.actions-column { width: 180px; }

@media (max-width: 1000px) {
  .bilder-upload-grid, .bilder-admin-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .bericht-header { flex-direction: column; }
  .bericht-bildbereich, .bericht-textbereich { width: 100%; }
  .bericht-hauptbild { max-height: 300px; height: 300px; }
  .bericht-hauptbild.hochformat { height: 300px; }
  .bericht-galerie img { width: 140px; height: 95px; }
}

@media (max-width: 750px) {
  .bilder-upload-grid, .bilder-admin-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .bericht-kachel { flex-direction: column; }
  .bericht-kachel-bild { width: 100%; height: 180px; }
}

@media (max-width: 480px) {
  .bilder-upload-grid, .bilder-admin-grid { grid-template-columns: 1fr; }
  .report-form-control { width: 100%; }
}


/* ==========================================================
   Internes Dashboard – Termine / Teilnehmer
   Optisch an das zentrale Team-Zero-Boxdesign angepasst.
   ========================================================== */

.dashboard-table-wrap {
    overflow: hidden;
    border: var(--box-border);
    border-radius: calc(var(--box-radius) * 0.7);
    background: rgba(255, 255, 255, 0.10);
}

.dashboard-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--box-text);
    --bs-table-border-color: rgba(255, 255, 255, 0.16);
    color: var(--box-text);
}

.dashboard-table > :not(caption) > * > * {
    padding: 0.85rem 0.75rem;
    background-color: transparent;
    color: inherit;
    border-bottom-color: rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

.dashboard-table thead th {
    background-color: rgba(47, 51, 40, 0.36);
    color: var(--mc-light-sand);
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    white-space: nowrap;
}

.dashboard-table tbody tr {
    transition: background-color 0.18s ease;
}

.dashboard-table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.035);
}

.dashboard-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.075);
}

.dashboard-table tbody tr:last-child td {
    border-bottom: 0;
}

.participant-list {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.participant-list-title {
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--mc-light-sand);
}

.participant-list ul {
    margin: 0;
    padding-left: 1.15rem;
}

.participant-list li {
    margin: 0.15rem 0;
    color: var(--box-text);
}

.participant-empty {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

.dashboard-empty-state {
    padding: 1rem 1.1rem;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 768px) {
    .dashboard-table {
        min-width: 760px;
    }
}
