/* ============================================
   SV Bokeloh von 1925 e.V. - Stylesheet
   ============================================ */

:root {
  --blue: #1a5fb4;
  --blue-dark: #0d3b7a;
  --blue-light: #e8f0fe;
  --green: #2d8a4e;
  --green-light: #e6f4ec;
  --white: #ffffff;
  --dark: #1a1a1a;
  --dark-light: #2a2a2a;
  --gray: #666;
  --gray-light: #f5f5f5;
  --cream: #fafbfd;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
  --font-heading: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Top Bar --- */
.top-bar {
  background: var(--dark);
  color: var(--white);
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar a { color: #8bb8f0; }
.top-bar a:hover { color: var(--white); }

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-item svg { width: 14px; height: 14px; fill: #8bb8f0; flex-shrink: 0; }

/* --- Header --- */
.header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img { width: 48px; height: auto; }

.logo-text { display: flex; flex-direction: column; }

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
}

.logo-tagline {
  font-size: 0.72rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.nav { display: flex; align-items: center; }

.nav-list {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-list a {
  display: block;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--dark);
  border-radius: 6px;
  transition: var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--blue);
  background: var(--blue-light);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: url('../images/platz3.jpg') center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,59,122,0.88) 0%, rgba(26,95,180,0.75) 50%, rgba(26,26,26,0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 40px 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 24px;
  border-radius: 50px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
}

.hero h1 span { color: #8bb8f0; }

.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}

.btn-white:hover {
  background: transparent;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}

/* --- Sections --- */
section { padding: 80px 0; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .overline {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--blue);
  margin-bottom: 10px;
}

.section-header h2 { margin-bottom: 16px; }

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--gray);
  font-size: 1.02rem;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--blue);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* --- Trust Bar --- */
.trust-bar {
  background: var(--blue-light);
  padding: 28px 0;
  border-bottom: 1px solid rgba(26,95,180,0.1);
}

.trust-items {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 0.95rem;
}

.trust-item svg { width: 24px; height: 24px; fill: var(--blue); }

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid transparent;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}

.card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.card-body { padding: 24px; }
.card-body h3 { margin-bottom: 8px; color: var(--blue-dark); font-size: 1.15rem; }
.card-body p { color: var(--gray); font-size: 0.92rem; }

.card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  background: var(--blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg { width: 28px; height: 28px; fill: var(--blue); }

/* --- Two Column --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-col-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.two-col-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.two-col-text .overline {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--blue);
  margin-bottom: 10px;
}

.two-col-text h2 { margin-bottom: 20px; }

.two-col-text p {
  color: var(--gray);
  margin-bottom: 14px;
  font-size: 1rem;
}

.two-col-text ul {
  list-style: none;
  margin: 20px 0 28px;
}

.two-col-text ul li {
  padding: 6px 0 6px 28px;
  position: relative;
  color: var(--gray);
}

.two-col-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 14px;
  height: 14px;
  background: var(--blue);
  border-radius: 50%;
  opacity: 0.5;
}

/* --- Stats --- */
.stats-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 6px;
}

.stat-item p {
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  font-weight: 600;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/10;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
  font-weight: 600;
  font-size: 0.88rem;
  z-index: 2;
}

/* --- Teams Table --- */
.teams-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.teams-table th {
  background: var(--blue);
  color: var(--white);
  padding: 14px 20px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 700;
}

.teams-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #eee;
  font-size: 0.92rem;
}

.teams-table tr:last-child td { border-bottom: none; }
.teams-table tr:hover td { background: var(--blue-light); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-blue { background: var(--blue-light); color: var(--blue); }
.badge-green { background: var(--green-light); color: var(--green); }

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 40px;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--blue-light);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
  padding-left: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--blue);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--blue-light);
}

.timeline-year {
  font-weight: 800;
  color: var(--blue);
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.timeline-item h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  font-family: var(--font-body);
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* --- Board / Vorstand --- */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.board-card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--blue);
}

.board-card h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  font-family: var(--font-body);
}

.board-card p { color: var(--gray); font-size: 0.88rem; }

/* --- Departments --- */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.dept-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.dept-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.dept-card svg {
  width: 40px;
  height: 40px;
  fill: var(--blue);
  margin: 0 auto 12px;
}

.dept-card h4 { font-size: 0.95rem; margin-bottom: 4px; font-family: var(--font-body); }
.dept-card p { font-size: 0.82rem; color: var(--gray); }

/* --- CTA --- */
.cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section h2 { color: var(--white); margin-bottom: 16px; }

.cta-section p {
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  margin: 0 auto 30px;
  font-size: 1.02rem;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-card {
  background: var(--blue-light);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-card svg { width: 22px; height: 22px; fill: var(--blue); flex-shrink: 0; margin-top: 2px; }
.contact-card h4 { font-size: 0.95rem; margin-bottom: 4px; font-family: var(--font-body); }
.contact-card p { font-size: 0.9rem; color: var(--gray); margin: 0; }
.contact-card a { color: var(--blue); font-weight: 600; }

.contact-form {
  background: var(--white);
  border-radius: 12px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.contact-form h3 { margin-bottom: 24px; color: var(--blue-dark); }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26,95,180,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* --- Page Hero --- */
.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero.hero-mannschaften {
  background: linear-gradient(rgba(13,59,122,0.85), rgba(26,26,26,0.7)), url('../images/fairness.jpg') center center / cover no-repeat;
}

.page-hero.hero-verein {
  background: linear-gradient(rgba(13,59,122,0.85), rgba(26,26,26,0.7)), url('../images/ehrenamt.jpg') center center / cover no-repeat;
}

.page-hero.hero-kontakt {
  background: linear-gradient(rgba(13,59,122,0.85), rgba(26,26,26,0.7)), url('../images/platz4.jpg') center center / cover no-repeat;
}

.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.08rem; }

.breadcrumb { margin-bottom: 16px; font-size: 0.88rem; }
.breadcrumb a { color: #8bb8f0; }
.breadcrumb span { color: rgba(255,255,255,0.4); margin: 0 8px; }

/* --- Map --- */
.map-section { padding: 0; }
.map-container { width: 100%; height: 400px; }
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 18px;
  padding-bottom: 10px;
  position: relative;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--blue);
}

.footer p { margin-bottom: 8px; font-size: 0.9rem; }
.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: #8bb8f0; }

.footer-about .logo { margin-bottom: 14px; }
.footer-about .logo-name { color: var(--white); font-size: 1.05rem; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }
.footer-links a::before { content: '\203A'; color: var(--blue); font-weight: bold; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-contact-item svg { width: 16px; height: 16px; fill: #8bb8f0; flex-shrink: 0; margin-top: 3px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  text-align: center;
  font-size: 0.82rem;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 968px) {
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .hamburger { display: flex; }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    gap: 0;
  }

  .nav-list.active { display: flex; }
  .nav-list a { padding: 12px 16px; border-bottom: 1px solid var(--gray-light); }
  .header .container { position: relative; }
  .hero { min-height: 70vh; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat-item h3 { font-size: 2rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .trust-items { gap: 16px; flex-direction: column; align-items: center; }
  .hero-buttons { flex-direction: column; align-items: center; }
}
