html, body {
  height: 100%;
  margin: 0;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Footer behalten ihre Höhe */
header,
footer {
  flex-shrink: 0;
}

/* Content füllt den verfügbaren Platz */
.page-content {
  flex: 1;
}

:root {
  --header-margin-bottom: 0rem;
  --header-height: 4.5rem;
  --footer-height: 3rem;
}

body {
  font-family: "Noto Sans", sans-serif;
  font-weight: 300;
  margin: 0;
  overflow-x: hidden;
  overflow-y: scroll;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-600);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-800);
}

a {
  text-decoration: none;
  color: var(--white);
}

a:visited {
  color: var(--white);
}

.modal-container {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden {
  display: none;
}

#saveAdminChangesRegistration {
  position: absolute;
  bottom: 10px;
  right: 150px;
  z-index: 1;
}

header {
  height: var(--header-height);
  padding: 0 2rem;
  margin-bottom: var(--header-margin-bottom);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position:sticky;
  top:0; 
  z-index: 1000;
}

header ul {
  height: 100%;
  margin: 0;
  display: inline-block;
}

header li {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
}

.logo-container {
  height: calc(var(--header-height) * 3);
  position: absolute;
  top: 0;
  left: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-container img {
max-width: 100px;
max-height: 100px;
}

.terms-container{
  width: 70%;
}

.logo {
  height: 100%;
}

.logo img {
  height: 100%;
}

li.active {
  width: fit-content;
  position: relative;
}

.main-nav a:hover,
.main-nav li.active a {
  background-color: var(--primary) !important;
  border-radius: 5px;
  color: var(--white);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 5px;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: var(--gray-900);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: #3e8e41;
}

.nav-seperator {
  height: 2rem;
  width: 1px;
  background-color: var(--gray-800);
}

.list-none {
  list-style: none;
}

section {
  width: 100vw;
}

.bg-white {
  background-color: var(--white);
}

.bg-black {
  background-color: var(--black);
}

.bg-transparent {
  background-color: transparent;
}

.font-white {
  color: var(--white);
}

.p-05 {
  padding: 0.5rem;
}

.p-2 {
  padding: 2rem;
}

.m-05 {
  margin: 0.5rem;
}

.m-1 {
  margin: 1rem;
}

.m-2 {
  margin: 2rem;
}

.d-flex {
  display: flex;
  align-items: center;
}

.flex-col{
    flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.flex-center {
  justify-content: center;
  align-items: center;
}

.flex-right {
  justify-content: flex-end;
}

.space-between {
  justify-content: space-between;
}

.d-grid {
  display: grid;
}

.gap-05 {
  gap: 0.5rem;
}

.m-5px{
  margin: 5px;
}

.border-primary-left{
  padding-left: 1rem;
  border-left: 2px solid var(--primary);
}

.social {
  position: relative;
}

.social::after {
  content: "";
  position: absolute;
  display: block;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--black));
  left: -2px;
  top:100%;
  max-width: 0;
  transition: 0.2s ease-in-out;
}

.social:hover::after {
  max-width: 50%
}

.social>* {
  transition: 0.2s ease-in-out;
}

.social:hover>* {
  transform: translateX(1rem);
}

.collapsible-header {
  margin-top: 0.5rem;
  background-color: var(--white);
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--primary);
  cursor: pointer;
  font-family: 'Sukhumvit Set', sans-serif;
}

.collapsible-header:before {
  content: "\002B";
  float: left;
  margin-right: 0.5rem;
  font-weight: bold;
  font-size: 1rem;
}

.active-collapsible.collapsible-header:before {
  content: "\2212";
}

.collapsible-header h2 {
  margin: 0.5rem;
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

footer {
  margin: 0;
  padding-left: 10%;
  height: var(--footer-height);
}

.footer-list{
  padding-left: 0;
}

.btn-primary {
  padding: 0.5rem;
  background-color: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
  border-radius: 5px;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border: 2px solid var(--primary-hover);
}

.btn-primary.active {
  background-color: var(--primary-hover);
  border: 2px solid var(--primary-hover);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) inset, 0 2px 4px rgba(0, 0, 0, 0.2);
  font-weight: 600;
  transform: scale(1.05);
}

.btn-primary.active:hover {
  background-color: var(--primary-hover);
}

.collapsible {
  background-color: #777;
  color: white;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
}

.active-collapsible:before {
  content: "\2212";
}

.privacy-container {
  width: 80%;
  padding: 1rem;
  margin: auto;
}

.content {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  background-color: #f1f1f1;
}

.facebook {
  filter: invert(100%);
  fill: var(--primary);
}

.instagram {
  filter: invert(100%);
}

.container-fluid {
  width: 100%;
}

.col-md-6 {
  width: 100%;
}

footer .row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

footer a:hover {
  background-color: var(--primary);
}

footer i:hover {
  background-color: var(--primary);
}

footer p {
  color: var(--white);
}

.table {
  margin: 1rem;
  width: 100%;
  table-layout: auto;
  border-spacing: 1;
  padding: 0.5rem;
}

.table-header {
  text-align: left;
  background-color: #dfdfdf;
}

.table-row {
  width: 100%;
}

.table-row:nth-child(even) {
  background-color: #dfdfdf;
}

.table-row:nth-child(odd) {
  background-color: #ffffff;
}

.table-cell {
  position: relative;
  text-align: left;
  vertical-align: top;
  padding: 7px;
  white-space: nowrap;
}

.container {
    width: 80%;
    padding: 1rem 0;
}

.admin-container,
.registration-details-container{
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 90vh;
}

.profile-container{
  min-height: 80vh;
}

.registration-overview-container {
  width: 100%;
  overflow-x: auto;
}

/* .registration-container{
  width: 100%;
  justify-content: center;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
} */

.registration-info,
table {
  width: 90%;
}

/* .registration-item {
  padding: 0.2rem;
  width: 100%;
  position:relative;
} */

.registrations-info {
  width: 50%;
  max-width: 900px;
  margin: 0 auto;
}

.registrations-info-item {
  width: 100%;
  margin: 0 auto;
}

.registration-item-info-profile {
  padding: 1rem;
  border: #777;
  box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.2);
  margin: 0.5rem;
  position: relative;
  overflow: auto;
  border-radius: 5px;
  width: 100%;   /* ← ändern: nimmt volle Breite des Elternteils ein */
  box-sizing: border-box;
}

.current-tournament-info-item, .past-tournament-info-item, .user-admin-info-item{
  padding: 0.2rem;
  border: #777;
  box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.2);
  margin: 0.5rem;
  position: relative;
  overflow: auto;
  border-radius: 5px;
}

.user-admin-section{
  min-height: 90vh;
}

.user-admin-container{
  width:80%;
  margin: 0 auto;
}

#show-registrations{
  display: flex; 
  align-items: flex-end; 
  justify-content: flex-end; 
  position: relative;
}

.show-tournament-details{
  position:relative;
  bottom: 10px;
  right: 10px;
}

.registration-summary{
  padding-bottom: 0.5rem;
}

.alert-container {
  position: fixed;
  top: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 2000;
}

.alert {
  pointer-events: auto;
  position: relative;
  width: fit-content;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  transition: opacity 0.15s linear;
  justify-content: center;
  opacity: 1;
  transition: opacity 1s ease-out;
  animation: fadeOut 5s forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    display: none;
  }
}

.alert-success {
  color: #3fa456;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-success .close {
  color: #3fa456;
}

.alert-warning{
  color: yellow;
}

.alert-error{
  background-color: #f54141;
}

/* Verstecke die geschlossene Nachricht */
.alert-closed {
  opacity: 0;
  height: 0;
  padding: 0;
  margin: 0;
}

.imprint-container {
  width: 80%;
  min-height: 90vh;
}

.registrations-container{
  width: 100%;
  overflow-x: auto;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;

}

.reg-user{
  margin: 5px;
}

.pagination-info{
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin: 2%;
}

.input-span{
  padding-top: 10px;
  margin: 5px;
  outline: none;
  border: none;
  border-bottom: 2px solid var(--gray-800);
}

.input-span:focus{
  border-bottom: 2px solid var(--primary);
}

.edit-registration-form{
  width: 80%;
}

.edit-reg-user{
  margin: 5px;
}

.edit-reg-user-shirt input{
  width: fit-content
}
.edit-registration-container{
  width: 80%;
  justify-content: center;
  column-gap: 1rem ;
  min-height: 80vh;
}

.edit-registration-item{
  border-radius: 5px;
  border: 1px solid lightgray;
  background-color: lightgray;
  padding: 1rem;
  margin: 1rem 0;
}

.edit-note-item label{
  display: flex;
  vertical-align:text-top;
}

.reg-user-note{
  margin: 0px;
}

.reg-user-internal-note{
  margin: 0px;
}

.social-section {
  padding: 0 10%;
}


.signup-section,
.login-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 0;
}

.signup-container,
.login-container{
    width: 40%;
    background-color: var(--white);
    border-radius: 5px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.login-container h1,
.signup-container h1{
    margin: 0;
    margin-bottom: 1rem;
}

.form-group{
    width: 60%;
    display: flex;
    flex-direction: column;
}

input{
    margin: 5px;
    outline: none;
    border: none;
    border-bottom: 2px solid var(--gray-800);
}

input[type=text]:focus{
    border-bottom: 2px solid var(--primary);
}

input[type=file] {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
  background-color: var(--white);
}

input[type=file]::file-selector-button {
  margin-left: 0.75rem;
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: 4px;
  background-color: var(--primary);
  color: var(--white);
  cursor: pointer;
}

input[type=checkbox]{
    position: relative;
    cursor: pointer;
}
input[type=checkbox]:before{
    content: "";
    display: block;
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1px solid var(--black);
    top: 0;
    left: 0;
    background-color:var(--white);
}

input[type=checkbox]:checked:before{
    content: "";
    display: block;
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1px solid var(--primary);
    top: 0;
    left: 0;
    background-color:var(--primary);
}

input[type=checkbox]:checked:after{
    content: "";
    display: block;
    width: 5px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    position: absolute;
    top: 0px;
    left: 4px;
}

.hall-container, 
.faq-container,
.newsletter-container{
  width: 90%;
  padding: 1rem;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  min-height: 90vh;
}

.registration-section{
    padding: 1rem;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.reg-user-shirt{
  display: contents;
}

.reg-user-shirt > label{
  text-align: right;
  align-items: center;
  display:inline-block;
  vertical-align: middle;
}

.team-divider {
  border: none;
  border-top: 2px solid var(--gray-800); 
  margin: 5px 0;
}

.perf-level-info {
  position: relative;

}

.perf-level-info::after {
  font-family: "Roboto", sans-serif;
  content: "Wichtiger Hinweis für die Mannschaftseinteilung\a Gilt für Damen, Herren und Mixed:\a   LK 1: Bundesliga bis Regionalliga\a   LK 2: Oberliga bis Verbandsliga\a   LK 3: Landesliga bis Bezirksliga\a   LK 4: Bezirksklasse\a   LK 5: Kreisliga\a   LK 6: Kreisklasse/Hobby\a Bitte beachtet bei der Einteilung, dass in verschiedenen Bundesländern\a ein unterschiedliches Niveau in den Ligen herrscht.";
  background-color: #f1f1f1;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  color: var(--black);
  padding: 10px;
  border-radius: 5px;
  position: absolute;
  top: 100%;
  left: 100%;
  z-index: 2000;
  display: none;
  white-space: pre;
}

.perf-level-info:hover::after {
  display: block;
}

.forgot-password{
  text-decoration: none;
  color:rgb(49, 54, 59);
}

.forgot-password:visited{
  color:rgb(49, 54, 59);
}

.forgot-password-container{
  width: 80%;
  margin-bottom: 10px;
}

.faq-info-item {
    width: 100%;
    box-sizing: border-box;
}

.faq-info-answer{
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.home-section-wrapper{
  padding-left: 10%;
  padding-right: 10%;
  box-sizing: border-box;
}

.home-container-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  padding-bottom: 0;
}

.home-flex-container{
  display: flex;
  gap: 2rem; /* Abstand zwischen den Containern */
  align-items: flex-start; /* Optional: oben ausrichten */
  justify-content: space-between;
}

.home-text-container{
  width: 80%;
  text-align: justify;
}

.home-image-container{
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: 20%
}

.home-image-container img {
  max-width: 400px;   /* Bild schmaler machen */
  max-height: 400px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.home-list{
  padding: 0.1rem;
  margin-left: 1.5rem;
}

.home-title,
.hall-title,
.news-title,
.orga-title,
.gallery-title,
.edit-news-title,
.edit-faq-title {
  width: 100%;
  text-align: left;
  padding-top: 2rem;
  margin-bottom: 2rem;
  margin-top: 0
}

.img-fluid{
  max-width: 150px;
  max-height: 150px;
  margin-right: .5rem;
}

.home-sponsor-container{
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.home-instagram-wrapper{
  background-color: var(--gray-1400);
  width: 100%;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-instagram-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
  box-sizing: border-box;
}

.home-instagram-title-h2 {
  text-align: left;
  width: 100%;
  margin-left:0;
}

.home-devider{
  color: --var(--gray-800);
  margin-top: 0;
  margin-bottom: 0;
}

.mail-link{
  color: black;
  text-decoration: underline;
}

.orga-text-container{
  width: 80%;
  text-align: justify;
  display: block;
}

.orga-wrapper {
  width: 90%;
  padding: 1rem;
  padding-left: 1rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.home-sponsor-logo-wrapper{
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap; /* falls nicht schon gesetzt */
  width: 100%;     /* passt sich jetzt an die .home-sponsor-container-Breite an */
  justify-content: center;
}

/* Burger-Button standardmäßig verstecken */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

/* Bei kleiner Bildschirmbreite anzeigen */
@media (max-width: 940px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none; /* bleibt ausgeblendet bis toggle */
    flex-direction: column;
    position: fixed;   /* statt absolute */
    top: var(--header-height); /* direkt unter den Header */
    right: 0;
    background-color: var(--black);
    width: 50%;        /* mehr Platz */
    padding: 1rem;
    overflow-y: auto;  /* falls mehr Links als Höhe */
    z-index: 999;
    justify-content: flex-start;  /* Links oben ausrichten */
    align-items: flex-start;      /* linksbündig */
    height: auto;                 /* nur so hoch wie die Links */
    max-height: calc(100vh - var(--header-height)); /* notfalls scrollbar */
    overflow-y: auto;
    border-radius: 5px;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav li {
    height: auto;
    padding: 0.5rem 0;
    display: block; 
  }

  .main-nav a{
    display: block; 
    padding:0.5rem 1rem;
  }

  .dropdown-content {
    position: relative;
    background-color: var(--gray-100);
  }

  .nav-seperator {
  height: 2rem;
  width: 1px;
  background-color: var(--gray-800);
  transform: rotate(90deg);
  justify-content: center;
}

.home-text-container{
  width: 95%;
}

  .home-image-container{
    display: none;
  }

  .home-section-wrapper{
    padding-left: 1%;
    padding-right: 1%;
    box-sizing: border-box;
  }
/*
  .home-text-container,
  .orga-text-container,
  .post-wrapper {
    width: 95%;
    padding: .5 rem;
  }

  .home-sponsor-container {
    width: 95%;
    padding: .5 rem;
  }*/

   .home-container-wrapper{
    padding-left:1%;
    padding-right:1%;
  }

  .login-container,
  .signup-container {
    width: 100%;
    max-width: 420px;
    padding: 1.5rem;
  }

  .form-group {
    width: 100%;
  }
}

 

  .contact-container {
    width: 95%;
    padding: .5 rem;
    grid-template-columns: 1fr;
  }

/* Dropdown default: versteckt */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--gray-100); 
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 5px;
}

/* Dropdown-Links in Hellgrau (Textfarbe) */
.dropdown-content a {
  color: var(--gray-100); 
  background-color: #f1f1f1;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Hover-Effekt */
.dropdown-content a:hover {
  background-color: var(--gray-800);
  color: var(--white);
}

/* Sichtbar machen über JS */
.dropdown.open .dropdown-content {
  display: block;
}


/* Export Dropdown Styles */
.export-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: var(--white);
  min-width: 220px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border-radius: 5px;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  border: 1px solid var(--gray-1200);
}

.dropdown-menu.open {
  display: block;
}

.dropdown-item {
  color: var(--gray-100);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: var(--gray-1400);
  color: var(--primary);
  font-weight: 500;
}

.dropdown-item:first-child {
  border-radius: 5px 5px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 5px 5px;
}

.content-container {
  width: 80%;
  padding: 1rem;
  box-sizing: border-box;
  justify-content: center;
}

.google-maps-iframe{
  max-width: 600px;
  min-width: 300px;
  width: 100%;
  aspect-ratio: 4/3;
}

.youtube-link-iframe {
  width: 100%;
  aspect-ratio: 1.777777/1;
  padding: 0;
}

.post-section{
  width: 100%;
  min-height: 90vh;;
  justify-content: flex-start;
  align-items: flex-start;
  margin: 0;
  display: flex;
}

.post-wrapper{
  box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  justify-content: flex-start;
  max-width: 100%;
  padding-left: .5rem;
  padding-top: .001rem;
  padding-bottom: .001rem;
  margin-bottom: 1.5rem;
}

.post-container{
  width: 80%;
  padding: 1rem;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  justify-content: flex-start;
  align-items: flex-start;
  margin: 0 auto;
}

.for-loop-post{
  max-width: 100%;
}

.contact-container {
    width: 80%;
    padding: .5rem;
    margin-bottom: 1rem;
    box-sizing: border-box;
  }

@media screen and (max-width:720px) {
  #cookiebanner a.c-button { 
    width:100%; 
    box-sizing:border-box; 
    text-align:center; 
    margin-bottom:20px;} 
  #c-right { 
    float:none;
  }
  #c-left { 
    float:none;
  }   
  #cookiebanner p.c-message { 
    margin-bottom:20px;
  }   
}    

@media screen and (min-width:720px) {
  #cookiebanner #c-left { 
    float:left; 
    max-width:80%;
  }
  #cookiebanner #c-right { 
    float:right; 
  }
}

#cookiebanner { 
  box-sizing: border-box; 
  background-color:rgb(36,36,39); 
  opacity: 0.9; width:100%; 
  padding:25px 40px; 
  position: fixed; 
  z-index: 2147483645; 
  bottom:-800px
}
#cookiebanner p { 
  font-size:14px; 
  line-height:1.4;
}
#cookiebanner .c-header { 
  text-transform:uppercase; 
  color:#fff; 
  font-weight:bold; 
  margin-bottom:4px;
}
#cookiebanner p.c-message {
  font-size:14px; 
  color:#999;
}
#cookiebanner a { 
  font-weight:bold; 
  color:#999;
}
#cookiebanner a:hover { 
  color:#fff;
}

#cookiebanner a.c-button { 
  border-radius: 4px;
  background-color: rgb(255,255,255);
  box-shadow: 0 2px 0 0 rgb(221,221,221);
  border:1px solid rgb(221,221,221);
  padding:12px 60px;
  text-decoration:none;
  display:inline-block;
  vertical-align:middle;
  margin-top:10px;
  color:#666;
  font-size:16px;
  -o-transition:.2s;
  -ms-transition:.2s;
  -moz-transition:.2s;
  -webkit-transition:.2s;
  transition:.2s;
}

#cookiebanner a.c-button:hover { 
  box-shadow:none; 
  background-color:#f8f8f8;
}

.registration-summary section {
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
}

.total-price .price {
  font-size: 1.4rem;
  font-weight: bold;
}

.action-buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.hp{
      position: absolute;
      left: -9999px;
      height: 0;
      overflow: hidden;
}

.admin-header,
.registration-details-header{
  margin-bottom: 1.5rem;
}

.subtitle {
  color: var(--gray-600);
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.search-input {
  min-width: 260px;
  padding: 0.5rem 0.75rem;
}

.perf-filter {
  margin-left: 0.6rem;
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--gray-800);
  background: var(--white);
}

.export-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.table-card {
  padding: 0;
}

.table-wrapper {
overflow-x: auto;
overflow-y: visible;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead {
  position: sticky;
  top: 0;
  background: #f5f5f5;
  z-index: 2;
}

.admin-table th,
.admin-table td {
  padding: 0.6rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
}

.admin-table tbody tr:hover {
  background-color: #f9f9f9;
}

.truncate {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-cell {
  text-align: center;
}

.icon-btn {
  display: inline-flex;
  padding: 0.4rem;
  background-color: var(--primary);
  border-radius: 5px;
}

.status-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  color: #fff;
}

.status-offen { background: #3498db; }
.status-bestätigt { background: #2ecc71; }
.status-storniert { background: #e74c3c; }
.status-helfer{ background: lightgreen;}

.shirt-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.shirt-badge {
  background-color: var(--primary);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  white-space: nowrap;
}

.shirt-total-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background-color: var(--primary);
  color: #fff;
  padding: 0.25rem 0.65rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: default;
}

.shirt-none {
  color: var(--gray-600);
  font-size: 0.8rem;
}

.team-header {
    display: grid;
    grid-template-columns: 2fr 0.8fr 0.8fr 0.6fr 0.6fr;
    gap:.5rem;
    font-size: .75rem;
    font-weight: 700;
    color: #777;

    margin-bottom: .5rem;
}

.team-list {
    display: flexbox;
    flex-direction: row;
    gap: .4rem;
}

.team-row {
    display: grid;
    grid-template-columns: 2fr 0.8fr 0.8fr 0.6fr 0.6fr;
    gap: .5rem;
    align-items: center;

    padding: .45rem .6rem;
    background: #f8f8f8;
    border-radius: 8px;
}

.team-col {
    min-width: 0;
}

.team-name {
    font-weight: 600;
}

.team-card,
.size-card{
  display: grid;
  grid-template-columns: 1fr 1fr .5fr;
  gap: 1rem;
  align-items: start;
  background: #f9f9f9;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.team-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.team-card,
.size-card 
label {
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.team-name {
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.team-meta {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.lk-badge,
.aufgabe-badge {
  background-color: #e3f2fd;
  color: #1565c0;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
}

.move-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
  color: #fff;
}

.move-höher {
  background-color: #2ecc71;
}

.move-niedriger {
  background-color: #e74c3c;
}

/* Header */
.admin-header {
  margin-bottom: 2rem;
}

/* User Cards */
.user-card-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 auto;
  width: 70%;
}

.user-card {
  display: grid;
  grid-template-columns: 2fr 3fr auto;
  align-items: center;
  padding: 1rem 1.25rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.user-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Main */
.user-main {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  font-size: 1rem;
}

.user-role {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  background-color: #e3f2fd;
  color: #1565c0;
  width: fit-content;
}

/* Meta */
.user-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--gray-700);
}

/* Actions */
.user-actions {
  display: flex;
  justify-content: flex-end;
}

.user-actions .btn-primary {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pagination */
.pagination-wrapper {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.pagination-info {
  font-size: 0.85rem;
  color: var(--gray-700);
}

.user-id {
  font-size: 0.75rem;
  color: #999;
  margin-left: 0.4rem;
}

/* Header */
.admin-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.user-id {
  font-size: 0.75rem;
  color: #999;
  margin-left: 0.4rem;
}

.user-role-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  background-color: #e3f2fd;
  color: #1565c0;
  width: fit-content;
}

/* Card */
.user-detail-card,
.registration-details-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

/* Grid */
.user-detail-grid,
.registration-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2rem;
  margin-bottom: 1.5rem;
}

.user-detail-grid label,
.registration-details-grid label {
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.user-detail-grid p {
  margin: 0.25rem 0 0;
}

/* Actions */
.user-detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.modal-content {
  border-radius: 12px;
}

.modal-header h4 {
  margin: 0;
}

.modal-body .form-group {
  margin-bottom: 1rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* === Layout Basics === */
.home {
  padding: 4rem 10%;
  background: #fff;
  padding-bottom: 1rem;
}

.home-hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* === Text === */
.home-content h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.home-content h1 span {
  color: var(--primary);
}

.home-subtitle {
  font-size: 1.1rem;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
}

.home-content p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* === Highlights === */
.home-highlights {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.6rem;
}

.home-highlights li {
  background: #f5f5f5;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

/* === Image === */
.home-image img {
  max-width: 100%;
  height: auto;
}

/* === Instagram === */
.instagram-section {
  background: #f8f8f8;
  padding: 3rem 10%;
}

.instagram-section h2 {
  margin-bottom: 1rem;
}

/* === Sponsors === */
.sponsors {
  padding: 3rem 10%;
  padding-top: 0;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.sponsor-grid img {
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: 0.2s ease;
}

.sponsor-grid img:hover {
  filter: grayscale(0);
  transform: scale(1.05);
}

/* === Responsive === */
@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
  }

  .home {
    padding: 2rem 1rem;
  }

  .home-image{
    display: none;
  }

  .instagram-section,
  .sponsors {
    padding: 2rem 1rem;
  }
}

.home-section-wrapper,
.home,
.home-hero,
.home-container-wrapper,
.instagram-section,
.sponsors  {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Wrapper */
.orga-wrapper {
  width:90%;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

/* Hero */
.orga-hero {
  text-align: left;
  margin-bottom: 3rem;
  z-index: 10;
  display: grid;
}

.orga-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.orga-hero p {
  color: #666;
  font-size: 1rem;
}

/* Grid */
.orga-grid {
  display: grid;
  gap: 2rem;
  width: 100%;
}

/* Cards */
.orga-card {
  background: #fff;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* Section titles */
.orga-section-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  position: relative;
}

.orga-section-title::after {
  content: "";
  width: 40px;
  height: 3px;
  background: var(--primary);
  display: block;
  margin-top: 0.4rem;
  border-radius: 2px;
}

/* Info boxes */
.orga-info-box {
  background: #f8f9fb;
  border-left: 4px solid var(--primary);
  padding: 0.8rem 1rem;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.orga-info-box span {
  color: #666;
}

/* Lists */
.orga-list {
  list-style: none;
  padding: 0;
}

.orga-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

/* Steps */
.orga-steps {
  padding-left: 1.2rem;
}

/* Timeline */
.orga-timeline {
  margin: 1.5rem 0;
}

.timeline-step {
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.timeline-step span {
  font-weight: bold;
  display: block;
}

/* Hints */
.orga-hint {
  font-size: 0.9rem;
  color: #666;
}

/* Warning */
.orga-warning {
  background: #fff4f4;
  border-left: 4px solid #f54141;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
}



.admin-container,
.registration-details-container {
    max-width: 1100px;
    margin: auto;
    padding: 2rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    margin: 2rem 0 1rem;
    font-size: 1.4rem;
}

.section-title.muted {
    color: #777;
}

.tournament-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform .2s ease;
}

.tournament-card:hover {
    transform: translateY(-2px);
}

.tournament-card.current {
    border-left: 4px solid var(--primary);
}

.tournament-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tournament-card-header .title {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.tournament-actions {
    display: flex;
    gap: .5rem;
}

.icon-btn {
    background: var(--primary);
    border-radius: 8px;
    padding: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn img {
    width: 16px;
}

.tournament-card-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.info-item span {
    font-size: .75rem;
    color: #777;
}

.info-item strong {
    font-size: 1rem;
}

.info-item.highlight strong {
    font-size: 1.2rem;
    color: var(--primary);
}

.badge {
    background: #2ecc71;
    color: #ffffff;
    font-size: .7rem;
    padding: .2rem .5rem;
    border-radius: 6px;
}

.container-narrow{
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem
}

.container-wide{
  max-width: 2000px;
  margin: 0 auto;
  padding: 2rem 1rem;
  min-height: 90vh;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group textarea {
  resize: vertical;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-family: inherit;
}

.contact-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center; /* vertikal zentrieren des Inhalts */
  align-items: center; /* horizontal zentrieren des Wrappers */
  width: min(95%, 760px);
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem;
  min-height: 100%;
}

.contact-section {
  min-height: 70vh;
  padding: 2.5rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 
.registration-section{
  padding: 1rem;
  background: #f8f9fa;
  min-height: calc(100vh - 200px);
}

.registration-form{
  max-width: 1000px;
  margin: 0 auto;
}

.form-container{
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: visible;
}

.registration-form h1{
  text-align: center;
  color: #333;
  margin: 0;
  padding: 2rem 1.5rem 1.5rem;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  border-bottom: 2px solid #f0f0f0;
}

.teams-section,
.people-party-section, 
.product-section,
.notes-section,
.button-section{
  padding: 1.5rem;
  display: block;
  border-bottom: 2px solid #f0f0f0;
}

.registration-container{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  position: relative;
  margin-bottom: 1.5rem;
  width: 90%;
}

.registration-container:first-of-type .btn-delete {
  display: none;
}

.registration-item{
  display: flex;
  flex-direction: column;
  position:relative;
}

.registration-label,
.notes-label{
  font-weight: 600;
  z-index: 2;
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  display: flex;
  align-items: end;
  gap: 0.5rem;
}

#remove-fields{
  position: absolute;
  top: 50%;
  right: -50px;
  transform: translateY(-50%);
  background-color: var(--primary-delete);
  border-color: var(--primary-delete);
  border-radius: 5px;
}

#toggle-fields{
  justify-content: center;
  font-weight: 600;
  position: relative;
}

.registration-table-header{
  background-color: var(--primary);
  color: white;
  padding:.5rem;
}

.people-party-table,
.product-table{
  border-collapse: collapse;
  text-indent: initial;
  border-spacing: 2px;
  width: 100%;
}

.people-party-table td:first-child,
.product-table td:first-child{
  width: 60%;
}

.people-party-table td:last-child,
.product-table td:last-child{
  width: 40%;
}

.people-party-table input,
.product-table input{
  width: 100%;
  max-width: 150px;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.registration-table-cell{
  display: table-cell;
  font-weight: bold;
}

.registration-table-row:hover{
  background-color: #f8f8f8;
}

.registration-item input{
  width: 100%;
  max-width: 95%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  margin-left:0;
}

.btn-delete{
  background-color: var(--primary-delete);
  border-radius: 5px;
  max-width: 20%;
  justify-content: right;
}

.small-info-text{
  font-size: small;
  font-weight: 700;
  color: var(--primary-delete);
} */


.registration-section,
.registration-summary-section {
  padding: 1rem;
  background: #f8f9fa;
  min-height: calc(100vh - 200px);
  box-sizing: border-box;
}

.registration-form,
.registration-summary-form {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.form-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: visible;
}

.registration-form h1,
.registration-summary-form h1 {
  text-align: center;
  color: #333;
  margin: 0;
  padding: 2rem 1.5rem 1.5rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  border-bottom: 2px solid #f0f0f0;
}

.teams-section,
.people-party-section,
.product-section,
.notes-section,
.button-section,
.registration-summary-product-section,
.registration-summary-people-payment-info-section,
.registry-summary-term-confirmation-section {
  padding: 1.5rem;
  display: block;
  border-bottom: 2px solid #f0f0f0;
  box-sizing: border-box;
}
.registration-summary-action-buttons-section {
  padding: 1.5rem;
  display: block;
  box-sizing: border-box;
}

.teams-section h3,
.people-party-section h3,
.product-section h3,
.notes-section h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Team-Block */
.registration-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  position: relative;
  margin-bottom: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.registration-container:first-of-type .btn-delete {
  display: none;
}

.registration-item {
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
}

.registration-label,
.notes-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.registration-item input,
.registration-item select,
.registration-item p
#note {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  margin: 0;
  box-sizing: border-box;
  background: #fff;
}

.registration-item input:focus,
.registration-item select:focus,
#note:focus,
#internal-note:focus,
.people-party-table input:focus,
.product-table input:focus {
  outline: none;
  border-color: var(--primary);
}

/* Selects sauber angleichen */
.registration-item select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Delete-Button */
.btn-delete {
  background-color: var(--primary-delete);
  border: none;
  border-radius: 6px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  cursor: pointer;
  padding: 0;
}

.btn-delete img {
  display: block;
}

/* Weitere Mannschaft Button */
#toggle-fields {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  width: 100%;
  max-width: 320px;
  margin-top: 0.5rem;
}

/* Tabellen */
.people-party-table,
.product-table,
.registration-summary-teams-table,
.registration-summary-products-table,
.registration-details-teams-table, 
.registrations-table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}

.registration-table-header,
.registration-summary-teams-table-header,
.registration-summary-products-table-header,
.registration-details-teams-table-header,
.registrations-table-header {
  background-color: var(--primary);
  color: white;
  padding: 0.75rem;
  text-align: left;
}

.registration-table-row:hover,
.registration-summary-teams-table-row:hover,
.registration-summary-products-table-row:hover,
.registration-details-teams-table-row:hover,
.registrations-table-row {
  background-color: #f8f8f8;
}

.registration-table-cell{
  display: table-cell;
  font-weight: bold;
  padding: 0.75rem;
  vertical-align: middle;
}

.people-party-table td:first-child,
.product-table td:first-child {
  width: 60%;
}

.people-party-table td:last-child,
.product-table td:last-child {
  width: 40%;
}

.people-party-table input,
.product-table input {
  width: 100%;
  max-width: 160px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

/* Hinweistext */
.small-info-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-delete);
}

/* Tooltip */
.perf-level-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.perf-level-info::after {
  font-family: "Roboto", sans-serif;
  content: "Wichtiger Hinweis für die Mannschaftseinteilung\a\a Gilt für Damen, Herren und Mixed:\a LK 1: Bundesliga bis Regionalliga\a LK 2: Oberliga bis Verbandsliga\a LK 3: Landesliga bis Bezirksliga\a LK 4: Bezirksklasse\a LK 5: Kreisliga\a LK 6: Kreisklasse/Hobby\a\a Bitte beachtet bei der Einteilung, dass in verschiedenen Bundesländern\a ein unterschiedliches Niveau in den Ligen herrscht.";
  background-color: #f1f1f1;
  font-weight: 100;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  color: var(--black);
  padding: 10px;
  border-radius: 5px;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 2000;
  display: none;
  white-space: pre-wrap;
  width: min(320px, 85vw);
  box-sizing: border-box;
}

.perf-level-info:hover::after {
  display: block;
}

/* Notes */
/* #note {
  min-height: 140px;
  resize: vertical;
} */

/* Submit-Bereich */
.button-section {
  display: flex;
  justify-content: flex-end;
}

#submit-registration {
  min-width: 220px;
}

.registration-summary-teams-table-cell,
.registration-summary-products-table-cell,
.registration-details-teams-table-cell,
.registrations-table-cell {
  display: table-cell;
  padding: 0.75rem;
  vertical-align: middle;
}

.admin-dashboard-section,
.profile-dashboard-section{
  display: grid;
  min-height: 90vh;
  width: 100%;
}

.admin-dashboard-container,
.profile-dashboard-container{
  width:80%; 
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 1rem;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.profile-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 900px; /* begrenzt die Breite, damit Karten nicht auseinanderreißen */
  gap: 16px;
}

.admin-dashboard-header,
.profile-dashboard-header{
  max-height: 20%;
  overflow: auto;
}

.admin-card,
.admin-card:visited,
.profile-card, 
.profile-card:visited {
  display: block;
  text-decoration: none;
  color: var(--black);   /* oder eine konkrete dunkle Farbe */
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-card:hover,
.profile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.admin-card-icon,
.profile-card-icon {
  fill: var(--black);
  transition: fill 0.15s ease;
}

.admin-card:hover .admin-card-icon,
.profile-card:hover .profile-card-icon {
  fill: var(--primary);
}

.admin-diagram-wrapper{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
  width: 100%;
  margin: 0 auto;
}

.diagram-container{
  flex: 1 1 400px;
  height: 600px;
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.diagram-container h3 {
  margin-bottom: 1rem;
}

.diagram-container canvas {
  flex: 1 1 auto;
  min-height: 0;
  width: 100% !important;
  height: 100% !important;
}

/* Tablet */
@media (max-width: 900px) {
  .teams-section,
  .people-party-section,
  .product-section,
  .notes-section,
  .button-section {
    padding: 1.25rem;
  }

  .registration-container {
    grid-template-columns: 1fr;
  }

  .btn-delete {
    align-self: start;
  }

  .button-section {
    justify-content: stretch;
  }

  #submit-registration,
  #toggle-fields {
    width: 100%;
    max-width: none;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .registration-section {
    padding: 0.5rem;
  }

  .form-container {
    border-radius: 0;
    box-shadow: none;
  }

  .registration-form h1 {
    padding: 1.5rem 1rem 1rem;
  }

  .teams-section,
  .people-party-section,
  .product-section,
  .notes-section,
  .button-section {
    padding: 1rem;
  }

  .registration-container {
    padding: 0.85rem;
    gap: 0.85rem;
  }

  .registration-label,
  .notes-label {
    font-size: 0.9rem;
  }

  .people-party-table,
  .product-table,
  .people-party-table tbody,
  .product-table tbody,
  .people-party-table tr,
  .product-table tr,
  .people-party-table td,
  .product-table td,
  .people-party-table th,
  .product-table th {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .registration-table-header {
    display: none;
  }

  .people-party-table tr,
  .product-table tr {
    border-bottom: 1px solid #e5e5e5;
    padding: 0.75rem 0;
  }

  .people-party-table td:first-child,
  .people-party-table td:last-child,
  .product-table td:first-child,
  .product-table td:last-child {
    width: 100%;
  }

  .registration-table-cell {
    padding: 0.35rem 0;
  }

  .people-party-table input,
  .product-table input {
    max-width: none;
  }

  .small-info-text {
    display: inline-block;
    margin-top: 0.2rem;
  }

  .perf-level-info::after {
    left: auto;
    right: 0;
    width: min(280px, 90vw);
  }
}
