/* ============================================
   MTC Design System – Misburger Tennis-Club
   Based on Bootstrap 5.3.3
   Club Color: #204267
   ============================================ */

:root {
  --mtc-dark: #204267;
  --mtc-blue: #204267;
  --mtc-blue-light: #2c5c8a;
  --mtc-blue-dark: #162f4a;
  --mtc-accent: #f0c040;
  --mtc-gray: #f4f6f8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
}

html { scroll-behavior: smooth; }

/* ── NAVBAR ─────────────────────────────────── */
.navbar {
  background: var(--mtc-dark);
  padding: 0.8rem 0;
  transition: background 0.3s;
}
.navbar.scrolled {
  background: rgba(32,66,103,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.navbar-brand {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff !important;
}
.navbar-brand img {
  filter: brightness(0) invert(1);
}
.navbar .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  transition: color 0.2s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--mtc-accent) !important;
}
.navbar .dropdown-menu {
  background: var(--mtc-dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
}
.navbar .dropdown-item {
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 1.2rem;
  transition: background 0.2s, color 0.2s;
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus,
.navbar .dropdown-item.active {
  background: rgba(255,255,255,0.1);
  color: var(--mtc-accent);
}
.navbar-toggler {
  border-color: rgba(255,255,255,0.3);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── PAGE HEADER (Subpages) ─────────────────── */
.page-hero {
  background: #fff;
  padding: 7rem 0 2rem;
  color: var(--mtc-blue);
  position: relative;
  border-bottom: 3px solid var(--mtc-gray);
}
.page-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--mtc-blue);
  margin-bottom: 0.5rem;
}
.page-hero .lead {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 700px;
}

/* ── SECTIONS ───────────────────────────────── */
section {
  padding: 4rem 0;
}
.section-gray {
  background: var(--mtc-gray);
}
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--mtc-dark);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: #777;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* ── CARDS ──────────────────────────────────── */
.mtc-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s;
  height: 100%;
}
.mtc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(32,66,103,0.12);
}
.mtc-card .icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mtc-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: #fff;
  font-size: 1.3rem;
}
.mtc-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.mtc-card p {
  color: #555;
}

/* ── BUTTONS ────────────────────────────────── */
.btn-mtc {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  background: var(--mtc-blue);
  color: #fff;
  border: none;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-mtc:hover {
  background: var(--mtc-blue-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(32,66,103,0.3);
}
.btn-mtc-accent {
  background: var(--mtc-accent);
  color: var(--mtc-dark);
}
.btn-mtc-accent:hover {
  background: #e0b030;
  color: var(--mtc-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240,192,64,0.4);
}
.btn-mtc-outline {
  background: transparent;
  color: var(--mtc-blue);
  border: 2px solid var(--mtc-blue);
}
.btn-mtc-outline:hover {
  background: var(--mtc-blue);
  color: #fff;
}
.btn-cta-blue {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  background: var(--mtc-blue);
  color: #fff;
  border: none;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-cta-blue:hover {
  background: var(--mtc-blue-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(32,66,103,0.3);
  text-decoration: none;
}

/* ── TABLES ─────────────────────────────────── */
.mtc-table {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.mtc-table thead th {
  background: var(--mtc-blue);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  border: none;
  padding: 0.9rem 1rem;
}
.mtc-table tbody td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
}
.mtc-table tbody tr:hover {
  background: rgba(32,66,103,0.04);
}

/* ── CONTENT STYLES ─────────────────────────── */
.content-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--mtc-dark);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.content-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--mtc-blue);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.content-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--mtc-dark);
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}
.content-section p {
  line-height: 1.7;
  margin-bottom: 1rem;
}
.content-section a {
  color: var(--mtc-blue);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.content-section a.btn-cta-blue,
.content-section a.btn-mtc,
.content-section a.btn-mtc-outline,
.content-section a.btn-mtc-accent {
  color: #fff;
}
.content-section a:hover {
  color: var(--mtc-blue-light);
  text-decoration: underline;
}
.content-section a.btn-cta-blue:hover,
.content-section a.btn-mtc:hover,
.content-section a.btn-mtc-outline:hover,
.content-section a.btn-mtc-accent:hover {
  color: #fff;
  text-decoration: none;
}
.content-section img {
  border-radius: 12px;
  max-width: 100%;
  height: auto;
}
.content-section .alert-info {
  background: rgba(32,66,103,0.08);
  border: 1px solid rgba(32,66,103,0.15);
  border-radius: 12px;
  color: var(--mtc-dark);
}

/* ── AKTUELLES CARDS ───────────────────────── */
.aktuelles-card {
  background: linear-gradient(135deg, #e8f0fe 0%, #f4f8ff 100%);
  border-left: 5px solid var(--mtc-blue);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(32,66,103,0.10);
  position: relative;
  transition: all 0.3s;
}
.aktuelles-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(32,66,103,0.16);
}
.aktuelles-badge {
  display: inline-block;
  background: var(--mtc-blue);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.aktuelles-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--mtc-dark);
  margin-bottom: 0.5rem;
}
.aktuelles-date {
  font-weight: 600;
  color: var(--mtc-blue);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}
.aktuelles-card p:last-child {
  color: #555;
  margin-bottom: 0;
}

/* ── INFO LIST (for A-Z page) ───────────────── */
.info-list-item {
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.info-list-item:last-child {
  border-bottom: none;
}
.info-list-item h4 {
  margin: 0 0 0.3rem;
}
.info-list-item h4 a {
  color: var(--mtc-blue);
  font-weight: 700;
  text-decoration: none;
}
.info-list-item h4 a:hover {
  color: var(--mtc-blue-light);
}
.info-list-item p {
  margin: 0;
  color: #666;
}
.info-list-item .badge-type {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-pdf { background: #dc3545; color: #fff; }
.badge-page { background: var(--mtc-blue); color: #fff; }
.badge-external { background: #198754; color: #fff; }

/* ── CHRONIK TIMELINE ───────────────────────── */
.timeline-entry {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.timeline-entry:last-child {
  border-bottom: none;
}
.timeline-year {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--mtc-blue);
}

/* ── VORSTAND CARDS ─────────────────────────── */
.vorstand-card {
  text-align: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
  height: 100%;
  transition: transform 0.3s;
}
.vorstand-card:hover {
  transform: translateY(-3px);
}
.vorstand-card .icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--mtc-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #fff;
  font-size: 1.5rem;
}
.vorstand-card h4 {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}
.vorstand-card p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

/* ── IFRAME RESPONSIVE ──────────────────────── */
.iframe-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}
.iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── FOOTER ─────────────────────────────────── */
footer {
  background: var(--mtc-dark);
  color: rgba(255,255,255,0.6);
  padding: 2.5rem 0;
  font-size: 0.9rem;
}
footer .row {
  flex-wrap: nowrap;
  gap: 1rem;
}
footer p {
  white-space: nowrap;
}
@media (max-width: 767px) {
  footer .row { flex-wrap: wrap; }
  footer p { white-space: normal; }
}
footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover {
  color: var(--mtc-accent);
}

/* ── ANIMATION ──────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 991px) {
  .page-hero h1 { font-size: 2.2rem; }
  .page-hero { padding: 6rem 0 2.5rem; }
}
@media (max-width: 575px) {
  .page-hero h1 { font-size: 1.8rem; }
  section { padding: 2.5rem 0; }
  .section-title { font-size: 1.6rem; }
}
