.checkbox-label {
    display: block;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-row input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-top: 3px; /* aligns with first text line */
    flex-shrink: 0;  /* prevents disappearing in Safari */
}

.fide-info {
    font-size: 0.9rem;
    margin-top: 10px;
    line-height: 1.4;
}


.refresh-btn {
    margin-bottom: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    cursor: pointer;
    background: #f5f5f5;
}

.refresh-btn:hover {
    background: #e9e9e9;
}


.registration-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.registration-table th,
.registration-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

.registration-table th {
    background: #f5f5f5;
}

.registration-table tr:nth-child(even) {
    background: #fafafa;
}


body {
    padding: 1em;
    margin: 3em 15em;

    background-image: url("background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.site-footer {
    position: absolute;
    bottom: 1em;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-nav span {
    margin: 0 0.5rem;
}


.sponsor-sidebar {
    position: absolute;   /* scrollt mit dem Inhalt */
    top: 460px;           /* Abstand vom oberen Rand deiner Seite */
    left: 20px;           /* Abstand vom linken Rand */
    width: 120px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.sponsor-sidebar img {
    width: 150%;
    height: auto;
    object-fit: contain;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.2rem;
    font-family: Arial, sans-serif;
}

h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 0px;
    color: #000000;
    font-family: Arial, sans-serif;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #000000;
    font-family: Arial, sans-serif;
    hyphens: auto; 
	text-align: justify;
}

.frontpage-header {
    display: flex;
    justify-content: space-between; /* Text links, Logo rechts */
    align-items: center;             /* Vertikal zentrieren */
    background: rgba(255, 255, 255, 0.45); /* weiß mit Transparenz */
    backdrop-filter: blur(4px);            /* optional moderner Blur */
    padding: 1em 2em;
    border-radius: 12px;
}

.title-container {
    color: #000000;
    text-decoration: none;
    display: flex;
    flex-direction: column;  /* h1 und h2 untereinander */
}

.title-container h1,
.title-container h2 {
    margin: 0;              /* Standardabstände entfernen */
    line-height: 1.2;
}

.logo {
    height: 170px;           /* Logo-Größe anpassen */
    width: auto;
}

.category-bar {
    display: flex;
    justify-content: space-between;        /* zentriert die Links */
    gap: 6rem;                      /* Abstand zwischen den Links */
    padding: 3rem;
    position: relative;
    background: rgba(255, 255, 255, 0.45); /* dunkler Balken */
    color: white;
    padding: 0.5em 1em;
    border-radius: 10px;
    font-size: 1.2em;       /* bigger text */
    font-weight: bold;    /* optional, can stay normal or bold */
}

.category-bar a {
    color: #;                    /* dunkle, gut lesbare Schrift */
    text-decoration: none;  
    font-size: 1.2em;       /* bigger text */
    font-weight: bold;    /* optional, can stay normal or bold */
    font-weight: 400;
    font-family: Arial, sans-serif;
}

.category-bar a:hover {
    text-decoration: underline;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    min-width: 160px;
    border-radius: 6px;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    display: block;
    color: rgb(0, 0, 0);
    text-decoration: none;
    padding: 10px 16px;
}

.content-area {
    background-color: #ffffff;   /* <<< deine gewünschte Farbe */
    padding: 3rem 3rem;
    border-radius: 12px;
    margin-top: 80px;
}

.map-container {
    display: flex; /* Elemente in Box nebeneinander anordnen */
    gap: 5rem;    /* Abstand zwischen den Elementen */
    justify-content: center;
}

.half-width1 {
    width: 50%; /* Jedes Element nimmt die Hälfte der Breite ein */
}

.half-width2 {
    width: 50%; /* Jedes Element nimmt die Hälfte der Breite ein */
}

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

/* === Hamburger-Button === */
.menu-toggle {
  display: none;                /* wird nur auf Mobil sichtbar */
  position: fixed;
  top: 1rem;
  left: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2000;
}

@media (max-width: 1158px) {
    body {
    padding: 1em;
    margin: 3em 10em;
    background-color: #d5d5d5ee;
    }

  .sponsor-sidebar {
    position: static;        /* normaler Dokumentfluss */
    margin: 4rem auto 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }

  .sponsor-sidebar img {
    width: 150px;              /* kleinere Logos */
    height: auto;
  }

  .category-bar {
    flex-direction: column;       /* vertikal */
    align-items: flex-start;      /* links ausrichten */
    justify-content: flex-start;
    gap: 1rem; 
    padding: 1rem;                  /* unter dem Header */
    margin-top: 100px;
  }

  .category-bar a,
  .category-bar .dropbtn {
    display: block;
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: none;
  }

    .page-layout {
    display: flex;              /* DAS regelt die Anordnung */
    align-items: flex-start;
    gap: 2rem;
    margin-left: -10em;
  }

  .content-area {
    flex: 1;
    margin-top: 30;
  }

  .dropdown-content {
    position: static;             /* im Fluss der Sidebar */
    background-color: transparent;
    min-width: unset;
    border-radius: 0;
  }

  .dropdown-content a {
    color: #333;
    padding: 0.5rem 1rem;
  }

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


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

  .map-container {
  display: block; /* normales Blocklayout */
  }

  .half-width1 {
  width: 100%;
  margin-bottom: 2rem; /* optionaler Abstand */
  }

  .half-width2 {
  width: 100%;
  margin-bottom: 2rem; /* optionaler Abstand */
  height: 300px;
  }
}


@media (max-width: 768px) {
    body {
      margin: 0;
      padding: 1em;
        background-color: #d5d5d5ee;
    }

    .logo {
    height: 150px;           /* Logo-Größe anpassen */
    width: auto;
}

h1 {
    font-size: 2rem;
}
h2 {
    font-size: 1.5rem;
}
     

    .title-container {
      position: relative;
      display: flex;
      gap: 1rem;
      justify-content: center;
      width: 1000px;
}

    .menu-toggle {
        display: block;
        position: static;
    }

        .page-layout {
    display: flex;              /* DAS regelt die Anordnung */
    align-items: flex-start;
    gap: 2rem;
    margin-left: 0em;
        }

    .category-bar {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        width: auto;
        height: auto;
        position: fixed;
        top: 150px; /* unter dem Header */
        left: 0px;
        padding: 1rem;
        border-radius: 10px;
        transform: translateX(-100%); /* versteckt */
        background-color: #f2f2f2;
        box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    }

  .category-bar.show {
    transform: translateX(0); /* sichtbar */
  }

  .category-bar a,
  .category-bar .dropbtn {
    display: block;
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid #ddd;
  }

  .dropdown-content {
    position: static;
    background-color: transparent;
    min-width: unset;
    border-radius: 0;
  }

  .dropdown-content a {
    color: #333;
    padding: 0.5rem 1rem;
  }

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

    .sponsor-sidebar {
    margin: 2rem auto 0;
    gap: 1rem;
  }

  .sponsor-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    justify-items: center;
}
}

.signup-form {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.signup-form input,
.signup-form select {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
}

.signup-form button {
    padding: 0.7rem;
    font-size: 1rem;
    cursor: pointer;
}

.signup-form input,
.signup-form select,
.signup-form textarea {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    box-sizing: border-box;
}

.signup-form .checkbox {
    font-size: 0.9rem;
}

.form-status {
    font-size: 0.9rem;
}

        