/**
 * File: /css/regeln.css
 * Purpose: Styles für Vereinsregeln-Seite
 * 
 * Sections:
 * - Hero Section (mit bg.jpg)
 * - Quick Links
 * - Rule Cards
 * - Goldene 7 Regeln (golden highlighted)
 * - Responsive Design
 * 
 * Dependencies: Bootstrap 5, FontAwesome
 * Created: 2025
 * Author: TC Hugsweier
 * Version: 1.2 - Hero Section mit bg.jpg
 */

:root {
  --regeln-blue: #007bff;
  --regeln-blue-light: #3b82f6;
  --regeln-gold: #d4af37;
  --regeln-gold-light: #f4d03f;
  --regeln-green: #28a745;
}

/* Hero Section mit Hintergrundbild */
.regeln-hero {
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.85) 0%, rgba(59, 130, 246, 0.85) 100%),
              url('/img/bg.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  color: white;
  padding: 4rem 0;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.regeln-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  opacity: 0.3;
}

.regeln-hero .container {
  position: relative;
  z-index: 2;
}

.hero-icon {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.hero-icon i {
  font-size: 3rem;
  color: white;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.95;
}

/* Container Spacing */
.regeln-page .container {
  padding-top: 1rem;
}

/* Quick Links */
.quick-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-pdf,
.btn-gold {
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-pdf {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
}

.btn-pdf:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
  color: white;
}

.btn-gold {
  background: linear-gradient(135deg, var(--regeln-gold), var(--regeln-gold-light));
  color: white;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
  color: white;
}

/* Rule Cards */
.rule-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.rule-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, var(--regeln-blue), var(--regeln-blue-light));
}

.rule-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.rule-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.rule-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background: linear-gradient(135deg, var(--regeln-blue), var(--regeln-blue-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-right: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  flex-shrink: 0;
}

.rule-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--regeln-blue);
  line-height: 1.3;
}

.rule-content {
  color: #555;
  line-height: 1.8;
}

.rule-content ul {
  list-style: none;
  padding: 0;
}

.rule-content li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.rule-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--regeln-green);
  font-weight: bold;
  font-size: 1.2rem;
}

.rule-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Goldene 7 Regeln Section */
.goldene-regeln-section {
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
  border-radius: 30px;
  padding: 4rem 2rem;
  margin: 4rem 0;
  position: relative;
  overflow: hidden;
}

.goldene-regeln-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  animation: float 20s infinite linear;
}

@keyframes float {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.goldene-regeln-section .row,
.goldene-header {
  position: relative;
  z-index: 2;
}

.trophy-icon {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--regeln-gold), var(--regeln-gold-light));
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
}

.trophy-icon i {
  font-size: 4rem;
  color: white;
}

.goldene-title {
  background: linear-gradient(135deg, var(--regeln-gold), var(--regeln-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.goldene-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 3rem;
}

/* Goldene Cards */
.goldene-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2);
  border: 2px solid rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.goldene-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--regeln-gold), var(--regeln-gold-light));
}

.goldene-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(212, 175, 55, 0.35);
  border-color: var(--regeln-gold);
}

.goldene-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--regeln-gold), var(--regeln-gold-light));
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.goldene-card-title {
  color: var(--regeln-gold);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.goldene-card p {
  color: #555;
  line-height: 1.7;
  margin: 0;
}

.goldene-card .rule-image {
  margin-top: 1rem;
  border: 3px solid var(--regeln-gold-light);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .goldene-title {
    font-size: 2rem;
  }
  
  .goldene-regeln-section {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .regeln-hero {
    padding: 3rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .rule-card,
  .goldene-card {
    padding: 1.5rem;
  }
  
  .rule-header {
    flex-direction: column;
    text-align: center;
  }
  
  .rule-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .goldene-title {
    font-size: 1.8rem;
  }
  
  .goldene-subtitle {
    font-size: 1rem;
  }
  
  .quick-links {
    flex-direction: column;
  }
  
  .btn-pdf,
  .btn-gold {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-icon {
    width: 80px;
    height: 80px;
  }
  
  .hero-icon i {
    font-size: 2rem;
  }
  
  .trophy-icon {
    width: 90px;
    height: 90px;
  }
  
  .trophy-icon i {
    font-size: 3rem;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Print Styles */
@media print {
  .regeln-hero,
  .quick-links,
  .goldene-regeln-section::before {
    display: none;
  }
  
  .rule-card,
  .goldene-card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}