/* General styles */
body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
}

/* Header styles */
header {
  background-color: #333;
  color: #fff;
  padding: 1rem;
}

.header-top {
  display: flex;
  align-items: center;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  max-width: 100px;
  height: auto;
  margin-right: 1rem;
}

.header-top h1 {
  color: #fff;
  margin: 0;
  font-size: 2.5em;
}

/* Navigation styles */
nav ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  background-color: #f4f4f4;
  max-width: 1200px;
  margin: 0 auto;
}

nav ul li {
  margin-right: 0.5rem;
}

nav ul li a {
  color: #333;
  text-decoration: none;
  padding: 0.5rem 1rem;
  display: inline-block;
}

nav ul li a:hover {
  background-color: #f4f4f4;
  color: #333;
}

/* Dropdown styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  list-style-type: none;
  padding: 0;
}

.dropdown-content li {
  padding: 0.5rem 1rem;
}

.dropdown-content li:hover {
  background-color: #e6e6e6;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Main content styles */
main {
  flex: 3; /* Main nimmt 3 Teile des flex-Containers ein */
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow-x: hidden;
}

h2,
h3 {
  color: #333;
  border-bottom: 2px solid #333;
  padding-bottom: 10px;
}

.featured-image {
  margin-top: 2rem;
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  overflow: hidden;
}

.responsive-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Event styles */
.event-category {
  background-color: #f0f0f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.event-category h3 {
  color: #555;
  border-bottom: 2px solid #555;
  padding-bottom: 10px;
  margin-top: 0;
}

.event-list {
  list-style-type: none;
  padding-left: 0;
}

.event-item {
  background-color: white;
  border-left: 4px solid #555;
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.event-date {
  font-weight: bold;
  color: #555;
}

.event-name {
  margin-top: 5px;
}

/* Standings link styles */
.standings-link {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background-color: #555;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.standings-link:hover {
  background-color: #555;
}

/* Table styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

table th,
table td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid #ccc;
}

table th {
  background-color: #f4f4f4;
}

/* Chairman info styles */
.chairman-info {
  display: flex;
  align-items: center;
  margin: 20px 0;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 5px;
}

.chairman-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 20px;
}

.chairman-details {
  flex-grow: 1;
}

.chairman-details h3 {
  margin-top: 0;
  border-bottom: none;
}

/* Contact form styles */
.contact-form {
  margin-top: 40px;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  margin-top: 10px;
}

input,
textarea {
  padding: 5px;
  margin-top: 5px;
}

button {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 10px;
  margin-top: 10px;
  cursor: pointer;
}

button:hover {
  background-color: #555;
}

/* Footer styles */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #333;
  color: #fff;
}

/* Additional link styles */
a {
  color: #555;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Media Queries */
@media (max-width: 600px) {
  .header-top {
    flex-direction: column;
  }

  .logo {
    margin-bottom: 1rem;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li {
    margin: 0.25rem 0;
  }

  .chairman-info {
    flex-direction: column;
    text-align: center;
  }

  .chairman-photo {
    margin-bottom: 1rem;
  }
}

@media (min-width: 1200px) {
  .featured-image {
    width: 100%;
    margin: auto;
  }

  .responsive-image {
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* Content layout styles */
.content {
  display: flex;
  width: 1200px;
  max-width: 100%; /* Maximiere die Breite auf 100% des Viewports */
  margin: 0 auto; /* Zentriere den Container */
  justify-content: space-between; /* Lasse Platz zwischen den Elementen */
  align-items: flex-start; /* Richte Main und Aside oben aus */
  gap: 20px; /* Füge einen Abstand zwischen Main und Aside ein */
}

/* News section styles */
.news-section {
  flex: 1; /* News-Section nimmt 1 Teil des flex-Containers ein */
  padding: 20px;
  background-color: #fff;
  margin-left: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional: Schatten für bessere Abgrenzung */
}

.news-section h2 {
  color: #000;
}

.news-section ul {
  padding: 10px;
}

.news-section li {
  margin-bottom: 10px;
}

.news-section li strong {
  color: #555;
}

.news-item {
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  background-color: #f9f9f9;
}

/* Image container */
.image-container {
  text-align: center;
  margin-bottom: 20px;
}

.vorstand-img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Parallax-Effekt für das Bild */
.parallax {
  background-image: url('chess-pieces2.jpg');
  height: 200px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.sieger-tabelle {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            background-color: #fff;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        .sieger-tabelle th,
        .sieger-tabelle td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }
        
        .sieger-tabelle th {
            background-color: #f8f9fa;
            font-weight: bold;
            color: #333;
        }
        
        .sieger-tabelle tr:hover {
            background-color: #f5f5f5;
        }
        
        .sieger-tabelle tr:nth-child(even) {
            background-color: #fafafa;
        }
        
        .info-box {
            background-color: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            border-left: 4px solid #333;
            margin: 20px 0;
        }
        
        .info-box p {
            margin: 15px 0;
            line-height: 1.6;
        }
        
        .stats-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin: 20px 0;
        }
        
        .stat-box {
            background-color: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        .stat-box h4 {
            color: #333;
            margin-bottom: 15px;
            border-bottom: 2px solid #333;
            padding-bottom: 5px;
        }
        
        .stat-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid #eee;
        }
        
        .stat-item:last-child {
            border-bottom: none;
        }
        
        .stat-name {
            font-weight: 500;
        }
        
        .stat-count {
            background-color: #333;
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.9em;
            font-weight: bold;
        }
        
        @media (max-width: 768px) {
            .sieger-tabelle {
                font-size: 0.9em;
            }
            
            .sieger-tabelle th,
            .sieger-tabelle td {
                padding: 8px 6px;
            }
            
            .stats-container {
                grid-template-columns: 1fr;
                gap: 20px;
            }
        }

         .tournament-info {
            margin: 20px 0;
        }
        .participants-table {
            margin: 20px 0;
        }
        .round-schedule {
            margin: 20px 0;
        }
        .round {
            margin: 15px 0;
            padding: 10px;
            border-left: 3px solid #333;
            background-color: #f9f9f9;
        }
        .round h4 {
            margin: 0 0 10px 0;
            color: #333;
        }
        .pairing {
            margin: 5px 0;
            padding: 3px 0;
        }
        .spielfrei {
            font-style: italic;
            color: #666;
        }
        .quote {
            margin: 30px 0;
            padding: 20px;
            background-color: #f0f8ff;
            border-left: 4px solid #333;
            font-style: italic;
            text-align: center;
        }
        .quote-author {
            font-weight: bold;
            margin-top: 10px;
        }
        table {
            border-collapse: collapse;
            width: 100%;
            margin: 20px 0;
        }
        th, td {
            border: 1px solid #ddd;
            padding: 8px;
            text-align: left;
        }
        th {
            background-color: #f2f2f2;
            font-weight: bold;
        }
        tr:nth-child(even) {
            background-color: #f9f9f9;
        }
                .tournament-info {
            margin: 20px 0;
        }
        .tournament-intro {
            background-color: #f8f9fa;
            padding: 25px;
            border-radius: 8px;
            border-left: 4px solid #333;
            margin: 25px 0;
        }
        .tournament-intro h3 {
            color: #333;
            margin-top: 0;
            margin-bottom: 15px;
        }
        .tournament-intro p {
            line-height: 1.6;
            margin: 12px 0;
        }
        .history-link {
            display: inline-block;
            background-color: #333;
            color: white;
            padding: 10px 20px;
            text-decoration: none;
            border-radius: 5px;
            margin-top: 15px;
            transition: background-color 0.3s;
        }
        .history-link:hover {
            background-color: #333;
            color: white;
            text-decoration: none;
        }
        .participants-table {
            margin: 20px 0;
        }
        .round-schedule {
            margin: 20px 0;
        }
        .round {
            margin: 15px 0;
            padding: 10px;
            border-left: 3px solid #333;
            background-color: #f9f9f9;
        }
        .round h4 {
            margin: 0 0 10px 0;
            color: #333;
        }
        .pairing {
            margin: 5px 0;
            padding: 3px 0;
        }
        .spielfrei {
            font-style: italic;
            color: #666;
        }
        .quote {
            margin: 30px 0;
            padding: 20px;
            background-color: #f0f8ff;
            border-left: 4px solid #333;
            font-style: italic;
            text-align: center;
        }
        .quote-author {
            font-weight: bold;
            margin-top: 10px;
        }
        table {
            border-collapse: collapse;
            width: 100%;
            margin: 20px 0;
        }
        th, td {
            border: 1px solid #ddd;
            padding: 8px;
            text-align: left;
        }
        th {
            background-color: #f2f2f2;
            font-weight: bold;
        }
        tr:nth-child(even) {
            background-color: #f9f9f9;
        }