/* ============================================
   Boccia CP Austria - Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1a5276;
  --primary-light: #2980b9;
  --primary-dark: #0e2f44;
  --accent: #e74c3c;
  --accent-light: #ff6b5a;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --text-dark: #2c3e50;
  --text-medium: #5a6c7d;
  --text-light: #95a5a6;
  --border: #dee2e6;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-hover: 0 5px 25px rgba(0,0,0,0.15);
  --radius: 12px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--bg-light);
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Header --- */
.site-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
}

.logo-link:hover {
  color: white;
  opacity: 0.9;
}

.logo-link img {
  height: 45px;
  width: auto;
}

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

.logo-text .title {
  font-size: 1.15rem;
  font-weight: 700;
}

.logo-text .subtitle {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Navigation --- */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.main-nav a {
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: white;
  background: rgba(255,255,255,0.15);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

/* --- Social Icons in Header --- */
.header-social {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
}

.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.header-social a:hover {
  background: var(--accent);
  color: white;
  transform: scale(1.1);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #0a1628 100%);
  color: white;
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(231,76,60,0.08) 0%, transparent 40%);
  animation: heroShimmer 15s ease-in-out infinite alternate;
}

@keyframes heroShimmer {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-5%, -3%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--accent-light);
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(231,76,60,0.3);
}

.hero-btn:hover {
  background: var(--accent-light);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(231,76,60,0.4);
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Section --- */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  position: relative;
}

.section-subtitle {
  color: var(--text-medium);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}

.card p, .card ul {
  color: var(--text-medium);
  font-size: 0.95rem;
}

.card ul {
  list-style: none;
  padding: 0;
}

.card ul li {
  padding: 0.3rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.card ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--primary-light);
  font-weight: 700;
}

/* --- Feature Section (alternating) --- */
.feature-block {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 3rem 0;
}

.feature-block.reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
}

.feature-text h2 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.feature-text p {
  color: var(--text-medium);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.feature-image {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-image-placeholder {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: var(--radius);
  font-size: 3rem;
}

/* --- Page Header (Unterseiten) --- */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.85;
  font-size: 1.1rem;
}

/* --- Table --- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  min-width: 480px;
}

.data-table thead {
  background: var(--primary);
  color: white;
}

.data-table th,
.data-table td {
  padding: 1rem 1.25rem;
  text-align: left;
}

.data-table th {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.data-table tbody tr:hover {
  background: rgba(26, 82, 118, 0.04);
}

.data-table tbody tr:last-child {
  border-bottom: none;
}

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

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

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

.class-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.class-badge {
  background: rgba(255,255,255,0.2);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
}

.class-card-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.class-card-body {
  padding: 1.5rem;
}

.class-card-body p {
  color: var(--text-medium);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.class-tag {
  display: inline-block;
  background: var(--bg-light);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text-medium);
  margin-top: 0.5rem;
}

/* --- News/Aktuelles --- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.news-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary-light);
  transition: all var(--transition);
}

.news-item:hover {
  box-shadow: var(--shadow-hover);
  border-left-color: var(--accent);
}

.news-item h3 {
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.news-item .news-date {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.news-item p {
  color: var(--text-medium);
  font-size: 0.95rem;
}

.news-item a {
  font-weight: 600;
}

/* --- Links Page --- */
.link-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all var(--transition);
}

.link-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.link-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.link-card h3 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 0.2rem;
}

.link-card p {
  color: var(--text-medium);
  font-size: 0.9rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: white;
}

.footer-copy {
  width: 100%;
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
}

/* --- Ergebnisse --- */
.results-year {
  margin-bottom: 2.5rem;
}

.results-year h2 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-light);
  display: inline-block;
}

.result-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 1.25rem 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition);
}

.result-item:hover {
  box-shadow: var(--shadow-hover);
}

.result-item a {
  font-weight: 600;
}

.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
}

.pdf-link:hover {
  background: var(--accent);
  color: white;
}

/* --- Impressum --- */
.impressum-content {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  max-width: 700px;
}

.impressum-content h2 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin: 1.5rem 0 0.75rem;
}

.impressum-content h2:first-child {
  margin-top: 0;
}

.impressum-content p {
  color: var(--text-medium);
  margin-bottom: 0.5rem;
}

/* --- Fazit / CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 4rem 1.5rem;
  text-align: center;
  border-radius: var(--radius);
  margin: 2rem 0;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-section p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
}

/* --- Kontaktformular --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-form {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-group .required {
  color: var(--accent);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--bg-light);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.15);
  background: var(--bg-white);
}

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

.form-submit {
  display: inline-block;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(26, 82, 118, 0.3);
}

.form-submit:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(26, 82, 118, 0.4);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info .card {
  text-align: center;
}

/* --- SVG Icons (inline) --- */
.icon-svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -0.125em;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
  }

  .header-social {
    margin-left: auto;
    margin-right: 0.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .feature-block,
  .feature-block.reverse {
    flex-direction: column;
    gap: 1.5rem;
  }

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

  .footer-links {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .result-item {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .logo-text .title {
    font-size: 1rem;
  }

  .logo-text .subtitle {
    display: none;
  }

  .link-card {
    flex-direction: column;
    text-align: center;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .class-grid {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  .page-header {
    padding: 2rem 1rem;
  }

  .logo-link img {
    height: 36px;
  }

  .logo-text .title {
    font-size: 0.9rem;
  }

  .header-social a {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.75rem 0.85rem;
    font-size: 0.85rem;
  }

  .impressum-content {
    padding: 1.5rem;
  }

  .cta-section {
    padding: 2.5rem 1rem;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .news-item {
    padding: 1.25rem;
  }

  .pdf-link {
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
  }
}
