/* ===================== DESKTOP STYLES ===================== */
@font-face {
  font-family: "Heebo";
  src: url("../fonts/Heebo[wght].ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

:root {
  --default-font-family: "Heebo", sans-serif;
  --default-background-color: #bedad9;
  --default-text-color1: #d4e7e6;
  --default-text-color2: #293131;
  --default-highlight-color: #5f8482;
  --default-hover-color: #435151;
  --default-margin-top: 20px;
  --default-margin-bottom: 20px;
  --default-padding: 20px;
}

* {
  font-family: var(--default-font-family);
  box-sizing: border-box;
  /* Verhindert ungewollte Textselektion auf mobilen Geräten */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* Verhindert Touch-Callouts (wie Kopieren/Einfügen-Menü) */
  -webkit-touch-callout: none;
  /* Verhindert Tap-Highlighting */
  -webkit-tap-highlight-color: transparent;
}

/* ========== GENERAL LAYOUT ========== */
.container,
.flex-container,
#flex-container1 {
  width: 80%;
  max-width: 700px;
  margin: 5% auto;
  padding: 20px;
  border-radius: 5px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ========== BOXES ========== */
.box,
.box2,
.profile_box2 {
  display: flex;
  flex-direction: column;
  border: 0;
  box-sizing: border-box;
  justify-content: center;
  align-items: stretch;
  padding-top: 15px;
  min-width: 0;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  color: var(--default-text-color2);
}

@media (max-width: 700px) {
  .box,
  .box2,
  .profile_box2 {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* ========== BUTTONS ========== */
.action_btn-info {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  vertical-align: middle;
  display: flex;
  align-items: center;
}

.action_btn-info_i {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2196f3;
  color: #fff;
  font-weight: bold;
  font-size: 1.1em;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 1px 4px #0002;
}

/* ========== INPUTS & SELECTS ========== */
input,
select,
textarea {
  width: 100%;
  border: none;
  border-radius: 4px;
  padding: 12px;
  margin: 5px 0 15px 0;
  font-size: 17px;
  color: var(--default-text-color2);
  box-sizing: border-box;
}

/* ========== UTILITY CLASSES ========== */
.text-center {
  text-align: center;
}
.mt-2 {
  margin-top: 20px;
}
.mb-2 {
  margin-bottom: 20px;
}
.p-2 {
  padding: 20px;
}

/* ========== IMAGES ========== */
.feed_image,
.profile_image {
  display: block;
  margin: 0 auto 20px auto;
  max-width: 100%;
  border-radius: 5px;
  object-fit: contain;
}

/* ========== HIDE/SHOW ========== */
.hidden {
  display: none;
}

/* ========== EXAMPLES FOR PROJECT USAGE ========== */
/*
  In den Projektdateien:
  - Ersetze z.B. <div class="box2"> durch <div class="box">
  - Für Container: <div class="container"> oder <div class="flex-container">
  - Für Buttons: <button class="button"> oder einfach <button>
  - Für zentrierten Text: <div class="text-center">
  - Für Abstand: <div class="mt-2 mb-2 p-2">
*/

/* ========== REST: SPEZIFISCHE ANPASSUNGEN NACH BEDARF ========== */
/* ...bestehende spezifische Styles können hier nach und nach einsortiert werden... */

/* ===================== DESKTOP STYLES ===================== */

* {
  font-family: var(--default-font-family);
  box-sizing: border-box;
}
:root {
  --default-font-family: "Heebo", sans-serif;
  --default-background-color: #bedad9;
  --default-text-color1: #d4e7e6;
  --default-text-color2: #293131;
  --default-highlight-color: #5f8482;
  --default-hover-color: #435151;

  /* Margins */
  --default-margin-top: 20px;
  --default-margin-bottom: 20px;
  --default-padding: 20px;
}

/* General styles */

/*Controls*/
.dateSelect_Form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 50px;
}

.dateSelect {
  width: 100%;
  max-width: 350px;
  padding: 10px;
  border: 1px solid var(--default-highlight-color);
  border-radius: 6px;
  color: var(--default-text-color2);
}

.dateSelect:focus {
  border-color: var(--default-hover-color);
  box-shadow: 0 0 0 2px var(--default-highlight-color);
}
.area-container {
  margin: 0 10; /* Center align the container */
  padding: 20px;
}
.area-list {
  list-style-type: none; /* Remove default list bullets */
}

.adress-container {
  margin: 0 10; /* Center align the container */
  padding: 20px;
}
.adress-list {
  list-style-type: none; /* Remove default list bullets */
}

/* Wettbewerbe Übersicht */
.compeptitions_overview {
  background: #f8fafd;
  max-width: 800px;
  margin: 40px auto;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

button {
  background: var(--default-highlight-color);
  color: var(--default-text-color1);
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  cursor: pointer;
  margin-bottom: 20px;
  margin-top: 20px;
  font-size: 1rem;
  transition: background 0.2s;
  width: 100%;
}
button:hover {
  background: var(--default-hover-color);
}

.competitions_table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  overflow-x: auto;
}

.competitions_table th,
.competitions_table td {
  padding: 12px;
  text-align: left;
}

.competitions_table th {
  background: var(--default-text-color1);
  color: #34495e;
}

.competitions_table tr:nth-child(even) {
  background: var(--default-text-color1);
}

.competitions_table tr:hover {
  background: #d6eaf8;
}

.competitions_table a {
  color: #2980b9;
  text-decoration: none;
}

.competitions_table a:hover {
  text-decoration: underline;
}

/* Wettbewerbe als Kacheln */
.competitions_list {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
  margin-top: 1em;
}

.competition_logo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #eee;
  display: block;
  margin: 0 auto;
  margin-top: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}
.competition_logo_placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 2em;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #eee;
  margin: 0 auto;
}
.competition_card_content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}
.competition_card_name {
  font-weight: bold;
  font-size: 1.1em;
  color: #293131;
}
.competition_card_dates {
  color: #5f8482;
  font-size: 0.95em;
}
.competition_card_location {
  color: #888;
  font-size: 0.95em;
}
.competition_card_actions {
  margin-top: 0.5em;
  font-size: 0.95em;
}
.competition_details_link {
  color: #2980b9;
  text-decoration: underline;
  cursor: pointer;
}
@media (max-width: 700px) {
  .competitions_list {
    flex-direction: column;
    gap: 0.7em;
  }
  .competition_card {
    flex-direction: row;
    min-width: 0;
    max-width: 100vw;
    width: 100%;
    padding: 0.7em;
  }
  .competition_logo,
  .competition_logo_placeholder {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
  .box2 {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }
}

/* Größerer Spinner */
.loader {
  border: 6px solid rgba(0, 0, 0, 0.1);
  border-left-color: #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

#boulder_filter {
  width: 50%;
  align-self: center;
  margin-left: auto;
  margin-right: auto;
}

.competition_assign_box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background-color: var(--default-background-color);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Dreh-Animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Style the main container */
.difficulty-container {
  margin: 10; /* Center align the container */
  padding: 20px;
}
/* Style the difficulty list */
.difficulty-list {
  list-style-type: none; /* Remove default list bullets */
}

/* Style each difficulty item */
.difficulty-item {
  background-color: var(
    --default-highlight-color
  ); /* Bootstrap primary color */
  color: var(--default-text-color1); /* White text */
  padding: 15px; /* Padding around text */
  margin: 10px 0; /* Space between items */
  border-radius: 5px; /* Rounded corners */
  transition: background-color 0.3s; /* Smooth transition for hover */
}

/* Change background color on hover */
.difficulty-item:hover {
  background-color: var(--default-hover-color); /* Darker shade on hover */
}

.horizontal_buttons {
  display: flex;
  justify-content: space-between;
  /* Abstand zwischen den Elementen */
  align-items: center;
  width: 100%;
  gap: 10px;
  /* Nimmt die gesamte Breite ein */
}
.horizontal_buttons > * {
  flex-grow: 1;
  /* Elemente teilen sich die Breite */

  /* Optional: Abstand zwischen den Elementen */
}

.statistics_container {
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  justify-content: center;
}

.statistics_container_item {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  flex-direction: column;
  background: var(--default-background-color);
  box-sizing: border-box;
  border-radius: 5px;
  padding: 20px;
  margin: 10px;
  width: 25%;
}

#flex-container_infokasten {
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: row-wrap;
  justify-content: center;
}

#infokasten {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  flex-direction: column;

  width: 23%;
  min-width: 250px;
  padding: 30px;
  margin: 20px;
  border: 0px solid white;
  background: var(--default-background-color);
  box-sizing: border-box;
  transition: background-color 0.3s;
  text-align: justify;
}

h1 {
  text-align: center;
  color: var(--default-text-color2);
  margin: 20px;
}

div.kreis {
  background-color: yellow;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  text-align: center;
  border: 0px solid rgba(0, 0, 0, 0.4);
}
.autocomplete-items {
  position: absolute;
  border: 1px solid #d4d4d4;
  border-bottom: none;
  border-top: none;
  z-index: 99;
  /*position the autocomplete items to be the same width as the container:*/
  top: 100%;
  left: 0;
  right: 0;
}

.autocomplete-items div {
  padding: 10px;
  cursor: pointer;
  background-color: #fff;
  border-bottom: 1px solid #d4d4d4;
}

.autocomplete-items div:hover {
  /*when hovering an item:*/
  background-color: #e9e9e9;
}

.autocomplete-active {
  /*when navigating through the items using the arrow keys:*/
  background-color: DodgerBlue !important;
  color: #ffffff;
}

.autocomplete {
  /*the container must be positioned relative:*/
  position: relative;
  display: inline-block;
  width: -webkit-fill-available;
}

body {
  background-color: var(--default-text-color1);
  margin: auto;
  padding-bottom: 60px; /* Footer height + small margin */
}

#Chart_Full {
  margin: 15%;
  background-color: var(--default-background-color);
}

.login_input {
  border-radius: 5px;
  border: 1px;
  width: 100%;
  display: inline-block;
  font-size: 17px;
  line-height: 20px;
  text-decoration: none;
  min-height: 50px;
}

.filter_input {
  border-radius: 5px;
  border: 1px;
  width: auto;
  display: inline-block;
  font-size: 17px;
  line-height: 20px;
  text-decoration: none;
  min-height: 50px;
  margin: 20px;
}

.avatar {
  height: 300px;
  width: 300px;
}

input {
  width: 100%;
  border: none;
  display: inline-block;
  font-size: 17px;
  line-height: 20px;
  text-decoration: none;
  min-height: 50px;
  padding: 10px;
}

select {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 4px;
  margin: 5px 0;
  display: inline-block;
  font-size: 17px;
  line-height: 20px;
  text-decoration: none;
}

.boulderjournal_logo {
  width: 30%;
  min-width: 300px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

p {
  color: var(--default-text-color2);
}

ul {
  padding: 0;
  margin: 0;
}

.register_button {
  opacity: 0.5;
}

.AddBoulderSummary {
  background-color: var(--default-background-color);
  border-radius: 5px;
  border: 1px;
  color: var(--default-text-color1);
  height: 40px;
  text-align: center;

  vertical-align: middle;
}

.hidden {
  display: none;
}

.login {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  vertical-align: auto;
  justify-content: center;
  align-items: center;
}

#flex-box {
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-left: 10%;
  margin-right: 10%;
  margin-top: 5%;
  margin-bottom: 5%;
  text-decoration: none;
}

.comment_send_button {
  margin-top: 0px;
}

.selected_boulder_comment_section {
  flex-direction: row;
  justify-content: center;
  margin-top: 5%;
  margin-bottom: 5%;
}

.selected_boulder_comment {
  flex-direction: row;
  justify-content: center;
  margin-left: 20%;
  text-align: right;
  background-color: white;
  padding: 20px;
  border-radius: 30px;
}

.selected_boulder_comment_others {
  flex-direction: row;
  justify-content: center;
  margin-right: 20%;
  background-color: white;
  padding: 20px;
  border-radius: 30px;
}

.selected_boulder_comment_image {
  width: 50px;
  height: 50px;
}

.selected_boulder_comment_input {
  width: 100%;
  border: none;
  display: inline-block;
  font-size: 17px;
  line-height: 20px;
  text-decoration: none;
  min-height: 50px;
  padding: 10px;
  border-radius: 5px;
  margin-top: var(--default-margin-top);
  margin-bottom: var(--default-margin-bottom);
}

#outerChartDiv {
  display: flex;
  justify-content: center;
}

#chart {
  width: 80%;
}

.profile_box2 {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  border: 0px solid;
  /*background-color: #4d6665;*/
  box-sizing: border-box;
  justify-content: left;
  flex-direction: column;
  flex-wrap: wrap;
  padding-top: 15px;
  min-width: 30%;
  align-self: center;
  color: var(--default-text-color2);
}

.selected_boulder-box {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  width: 30%;
  border: 0px solid;
  box-sizing: border-box;
  justify-content: left;
  flex-direction: column;
  flex-wrap: wrap;
  padding: 15px;
  min-width: 30%;
  color: var(--default-text-color2);
}

/*#region Feed/Home*/
.feed_image {
  align-self: center;
  width: auto;
  max-width: 50%;
  object-fit: contain;
  border-radius: 5px;
}

.feed_row::after {
  content: "";
  clear: both;
  display: table;
}

.boulder_link {
  display: flex;
  /* Aktiviert Flexbox */
  justify-content: center;
  /* Zentriert horizontal */
  align-items: center;
  /* Zentriert vertikal */
  text-decoration: none;
  /* Entfernt Unterstreichung */
  color: var(--default-text-color2);
  /* Setzt die Textfarbe */
  margin-bottom: 50px;
}

.link {
  text-decoration: none;
  color: var(--default-text-color2);
}
.link:hover,
.link:focus {
  color: var(--default-highlight-color);
}

/*#endregion Feed/Home*/

/*#region Header*/

h2 {
  vertical-align: center;
  text-align: center;
}

.menu_item {
  color: var(--default-text-color1);
  text-decoration: none;
  margin-left: 10px;
}

.profile {
  text-align: center;
}

.profile_image {
  float: left;
  text-align: start;
  width: 40%;
  min-width: 40%;
  border: 2px solid var(--default-text-color2);
  border-width: 0px;
  object-fit: contain;
  image-orientation: from-image;
  object-position: top left;
}

.dropdown {
  float: left;
  overflow: hidden;
}

.dropdown .dropbtn {
  border: none;
  outline: none;
  color: var(--default-text-color1);
  height: 100%;
}

.navbar a:hover,
.dropdown:hover .dropbtn {
  background-color: var(--default-background-color);
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--default-background-color);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

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

.top-nav {
  display: flex;
  position: sticky;
  left: 0;
  top: 0;
  z-index: 100;
  margin-bottom: 0;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background-color: #00baf0;
  background: linear-gradient(
    to left,
    var(--default-text-color2),
    var(--default-highlight-color)
  );
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  color: var(--default-text-color1);
  padding: 1em;
  width: 100%;
  height: 50px;
}

/* iOS PWA: Header unter die transparente Statusleiste */
@media (display-mode: standalone) {
  .top-nav {
    padding-top: calc(1em + env(safe-area-inset-top));
    height: calc(50px + env(safe-area-inset-top));
  }
}

.menu {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.menu > li:not(:last-child) {
  border-bottom: 1px solid var(--default-text-color2);
}

.menu-button-container {
  display: flex;
}

.menu {
  position: absolute;
  top: 0;
  margin-top: 50px;
  left: 0;
  flex-direction: column;
  width: 100%;
  justify-content: center;
  align-items: center;
}

#menu-toggle ~ .menu li {
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

#menu-toggle:checked ~ .menu li {
  border: 1px solid var(--default-text-color2);
  height: 2.5em;
  padding: 0.5em;
  transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

.menu > li {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0.5em 0;
  width: 100%;
  color: var(--default-text-color1);
  background-color: var(--default-text-color2);
}

.menu > li {
  margin: 0 1rem;
  overflow: hidden;
}

.menu-button-container {
  height: 100%;
  width: 30px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#menu-toggle {
  display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  background-color: #fff;
  position: absolute;
  height: 4px;
  width: 30px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 2px;
}

.menu-button::before {
  content: "";
  margin-top: -8px;
}

.menu-button::after {
  content: "";
  margin-top: 8px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
  margin-top: 0px;
  transform: rotate(405deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
  background: var(--default-text-color2);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
  margin-top: 0px;
  transform: rotate(-405deg);
}

/*#region Gym */
.Gym_Profile_Logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
  max-width: 300px;
  max-height: 300px;
}

.Gym_Profile {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

/*#endregion Gym */

@media (max-width: 700px) {
  .Gym_Profile {
    margin-left: auto;
    margin-right: auto;
    width: 80%;
  }

  #flex-container_infokasten {
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: row-wrap;
    justify-content: center;
  }

  .statistics_container {
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: row-wrap;
    justify-content: center;
  }

  .statistics_container_item {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    background: var(--default-background-color);
    box-sizing: border-box;
    border-radius: 5px;
    padding: 20px;
    margin: 10px;
    width: 80%;
  }

  #boulder_filter {
    width: 90%;
    align-self: center;
    margin-left: auto;
    margin-right: auto;
  }

  #infokasten {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    width: 23%;
    min-width: 350px;
    padding: 30px;
    margin: 5px;
    border: 0px solid white;
    background: var(--default-background-color);
    box-sizing: border-box;
    transition: background-color 0.3s;
    text-align: justify;
  }

  #Chart_Full {
    margin: 10%;
  }

  #flex-container1 {
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 10%;
    width: 95%;
    align-self: center;
    margin-left: auto;
    margin-right: auto;
  }

  .selected_boulder_comment_section {
    flex-direction: row;
    justify-content: center;
    margin-top: 5%;
    margin-bottom: 5%;
  }

  .selected_boulder_comment_image {
    width: 50px;
    height: 50px;
  }

  ul {
    padding: 0;
    margin: 0;
  }

  .feed_ItemDescription {
    display: block;
    width: auto;
    padding-top: 15px;
    box-sizing: border-box;
  }

  .profile_box2 {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    border: 0px solid;
    /*background-color: #4d6665;*/
    box-sizing: border-box;
    justify-content: left;
    width: auto;
    padding-top: 15px;
  }

  .selected_boulder-box {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    border: 0px solid;
    /*background-color: #4d6665;*/
    box-sizing: border-box;
    justify-content: left;
    width: auto;
    padding: 0;
  }

  .feed_image {
    float: left;
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }

  .profile_image {
    float: left;
    text-align: start;
    width: 40%;
    min-width: 40%;
    border: 2px solid var(--default-text-color2);
    border-width: 0px;
    object-fit: contain;
    image-orientation: from-image;
    object-position: top left;
  }

  .compeptitions_overview {
    max-width: 98vw;
    margin: 30px;
    margin-bottom: 20%;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
  }

  .competitions_table {
    font-size: 0.95rem;
    margin-top: 8px;
    display: block;
    width: 100%;
    overflow-x: auto;
  }

  .competitions_table th,
  .competitions_table td {
    padding: 8px;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .team_table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }
  .team_table th,
  .team_table td {
    white-space: nowrap;
    font-size: 0.95rem;
    padding: 8px;
  }

  .team_detail_overview {
    max-width: 98vw;
    margin: 30px;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
  }

  .competitions_overview_box {
    max-width: 800px;
    margin: 40px auto;
    padding: 32px;
  }

  .competitions_overview {
    max-width: 800px;
    margin: 0 auto;
    padding: 1em;
  }
}

/* Teams Übersicht Box (eigenständig, nicht competitions) */

.team_detail_overview {
  max-width: 800px;
  margin: 40px auto;
  background: #f8fafd;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  padding: 32px 32px 32px 32px;
  position: relative;
}

.team_detail_box {
  margin-bottom: 22px;
}

.team_members_list {
  background: #f7f7fa;
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 4px;
}

.team_detail_logo {
  display: block;
  margin: 0 auto 18px auto;
  width: 180px;
  height: 180px;
  max-width: 180px;
  max-height: 180px;
  border-radius: 10px;
  border: 1.5px solid #e0e0e0;
  object-fit: contain;
  background: #fff;
}

.team_members_grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  max-width: 100%;
}

.member_card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  min-width: 220px;
  max-width: 260px;
  margin-bottom: 8px;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}

.member_avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 16px;
  border: 1.5px solid #e0e0e0;
  background: #f3f3f3;
}

.member_avatar_placeholder {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  margin-right: 16px;
}

.member_info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  flex: 1;
}

.member_name {
  font-weight: bold;
  font-size: 1.1em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member_score {
  color: #4a90e2;
  font-size: 1em;
}

.member_avg_score {
  color: #e94e77;
  font-size: 0.9em;
}

.responsive_comp_table th {
  /* kein sticky mehr */
  background: #f8fafd;
  z-index: 2;
  min-width: 60px;
  max-width: 90px;
  width: 1%;
  white-space: nowrap;
}

.responsive_comp_table td:first-child {
  min-width: 60px;
  max-width: 90px;
  width: 1%;
  white-space: nowrap;
}

.responsive_comp_table {
  table-layout: auto;
  width: 100%;
  margin: 0 auto;
}

.competition_table_center {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.competition_table_box {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.boulder_status_view {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.boulder_card {
  background: #fff;
  border: 1px solid #d1e1ff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
  padding: 14px 18px 10px 14px;
  min-width: 180px;
  max-width: 260px;
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.boulder_card_id {
  font-weight: bold;
  margin-bottom: 8px;
  color: #1a3a5d;
}

.boulder_card_members {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.boulder_card_member {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1em;
}

.boulder_card_member_name {
  font-weight: 500;
  color: #333;
}

.boulder_card_status.done {
  color: green;
  font-weight: bold;
}

.boulder_card_status.open {
  color: #888;
}

.competition_list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  width: 100%;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.competition_card {
  background: #f7fafd;
  border: 1.5px solid #d1e1ff;
  border-radius: 10px;
  margin-bottom: 16px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: box-shadow 0.18s, background 0.18s;
  padding: 0;
  width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.competition_card_logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  margin-bottom: 8px;
  display: block;
}

.competition_card_content {
  padding: 18px 22px 12px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  align-items: center;
  text-align: center;
}

.competition_table_box,
.boulder_status_view {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 0 auto;
  padding-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.competition_table_header {
  position: sticky;
  top: 0;
  background: #eaf3ff;
  z-index: 10;
  padding: 18px 22px 8px 22px;
  border-radius: 10px 10px 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.competition_table_title {
  font-size: 1.18em;
  font-weight: 600;
  color: #1a3a5d;
  margin-bottom: 2px;
}

.competition_table_dates {
  font-size: 0.98em;
  color: #4a90e2;
}

.competition_card_score {
  font-size: 1.05em;
  color: #e94e77;
  margin-top: 4px;
  margin-bottom: 2px;
}

@media (max-width: 700px) {
  .competition_card_content,
  .competition_table_header {
    padding: 12px 8px 8px 8px;
  }
}

.member_edit_action_btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1.5px solid #e0e0e0;
  transition: box-shadow 0.18s, background 0.18s;
}

.member_edit_action_btn:hover {
  background: #ffeaea;
  box-shadow: 0 2px 8px rgba(233, 78, 119, 0.13);
}

.member_edit_action_icon {
  width: 20px;
  height: 20px;
  display: block;
}
.teams_overview_box {
  max-width: 800px;
  margin: 40px auto;
  padding: 32px;
  box-sizing: border-box;
  overflow: hidden;
}

.competitions_overview_box {
  max-width: 800px;
  margin: 40px auto;
  padding: 16px;
}

.teams_overview {
  max-width: 800px;
  margin: 0 auto;
  padding: 1em;
  box-sizing: border-box;
  overflow: hidden;
}

.team_table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  overflow: hidden;
}
.team_table th,
.team_table td {
  border: 1px solid #e0e0e0;
  padding: 0.5em 1em;
  text-align: center;
  vertical-align: middle;
}
.team_table th {
  background: #f5f5f5;
  font-weight: bold;
  color: #293131;
}
.team_table tr:nth-child(even) {
  background: #fafafa;
}
.team_table tr:hover {
  background: #e6f7f7;
}

/*#endregion Header*/

/*#region Footer*/
.footer_menu {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  align-items: right;
  justify-content: space-between;
  background: linear-gradient(
    to left,
    var(--default-text-color2),
    var(--default-highlight-color)
  );
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  color: var(--default-text-color1);
  height: 50px;
  z-index: 100;
}

.menu_footer {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  padding: 1em;
}

/* Team-Kacheln für mobile Ansicht */
.team_list {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  justify-content: center;
  margin-top: 1em;
}

.competition_list {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  justify-content: center;
  margin-top: 1em;
}
.team_card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  padding: 1.2em 2em;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box; /* Padding wird in Width einberechnet */
  display: flex;
  align-items: center;
  gap: 1.5em;
  margin-bottom: 0.5em;
  transition: box-shadow 0.15s, background 0.15s;
  overflow: hidden; /* Verhindert Überlauf komplett */
}
.team_card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
  background: #f5fafb;
}

.team_card_content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  min-width: 0; /* Wichtig für flex-item text overflow */
  overflow: hidden;
}
.team_card_name {
  font-weight: bold;
  font-size: 1.3em;
  color: #293131;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.2;
}
.team_card_description {
  color: #5f8482;
  font-size: 0.8em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.4;
  max-height: 4.2em; /* Begrenzt auf ~3 Zeilen */
  overflow: hidden;
}
.team_card_points {
  color: #5f8482;
  font-size: 1.1em;
  font-weight: 500;
}
.team_card_rank {
  font-size: 2em;
  font-weight: bold;
  color: #b2b2b2;
  margin-right: 1.2em;
  min-width: 48px;
  text-align: center;
}
@media (max-width: 700px) {
  .team_card {
    flex-direction: row;
    padding: 0.7em 0.3em;
    gap: 0.7em;
  }
  .team_logo_placeholder,
  .competition_logo {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    aspect-ratio: 1 / 1;
  }
  .team_card_rank {
    font-size: 1.3em;
    margin-right: 0.5em;
    min-width: 32px;
  }
}

.competition_row_link:hover {
  background: #e6f7f7 !important;
  transition: background 0.15s;
}
.competition_details_link {
  color: #2980b9;
  text-decoration: underline;
  cursor: pointer;
}
@media (max-width: 700px) {
  .competitions_table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }
  .competitions_table th,
  .competitions_table td {
    white-space: nowrap;
    font-size: 0.95rem;
    padding: 8px;
  }
  .competition_logo,
  .competition_logo_placeholder {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    margin-top: 10px;
  }
}

/* Boulder Kachel Wrapper */
.boulder_kachel_wrapper {
  position: relative;
}

/* Globale Action-Button Styles */
.action_btn {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 10;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1.5px solid #e0e0e0;
}
.action_btn:hover {
  background: #f0f4fa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.13);
}
.action_btn_icon {
  width: 22px;
  height: 22px;
  display: block;
}

/* Variante für kleinere Action-Buttons (z.B. Minus bei Mitgliedern) */
.action_btn--small {
  top: -8px;
  left: -8px;
  width: 32px;
  height: 32px;
}
.action_btn--small .action_btn_icon {
  width: 20px;
  height: 20px;
}
.action_btn--danger {
  border-color: #e94e77;
}
.action_btn--danger .action_btn_icon {
  stroke: #e94e77;
}
.action_btn--danger:hover {
  background: #ffeaea;
  box-shadow: 0 2px 8px rgba(233, 78, 119, 0.13);
}

/* Mobile Optimierung für Action Buttons */
@media (max-width: 700px) {
  .action_btn {
    top: -8px;
    right: -8px;
  }
}
/* ======= MODERN CHECKBOX STYLES ======= */
/* ======= MODERN SWITCH/TOGGLE STYLES ======= */
/* Utility-Klasse für Switch-Reihen */
.switch-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
}
.switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 28px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.switch input[type="checkbox"]:checked + .slider {
  background-color: var(--default-highlight-color);
}
.switch input[type="checkbox"]:checked + .slider:before {
  transform: translateX(20px);
}
@media (max-width: 700px) {
  .switch {
    width: 60px;
    height: 36px;
  }
  .slider:before {
    height: 28px;
    width: 28px;
    left: 4px;
    bottom: 4px;
  }
  .switch input[type="checkbox"]:checked + .slider:before {
    transform: translateX(24px);
  }
}
/* ======= MODAL STYLES FOR STATUS ======= */
.status-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(41, 49, 49, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.status-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.status-modal-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 32px rgba(41, 49, 49, 0.18);
  padding: 32px 28px 24px 28px;
  min-width: 280px;
  max-width: 90vw;
  text-align: center;
  position: relative;
  color: var(--default-text-color2);
}
.status-modal-content h3 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 1.2em;
  font-weight: 500;
}
.status-modal-content button {
  background: var(--default-highlight-color);
  color: var(--default-text-color1);
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  margin: 8px 0;
  font-size: 1em;
  cursor: pointer;
  width: 80%;
  transition: background 0.18s;
  font-weight: 400;
}
.status-modal-content button:hover {
  background: var(--default-hover-color);
}
.status-modal-content .close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.6em;
  color: #888;
  cursor: pointer;
  font-weight: 400;
  transition: color 0.18s;
}
.status-modal-content .close:hover {
  color: var(--default-highlight-color);
}

/* ========== MOBILE TOUCH OPTIMIERUNG ========== */
/* Aktiviert Textselektion für Eingabefelder und Textbereiche */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
.editable,
.selectable {
  -webkit-user-select: auto;
  -moz-user-select: auto;
  -ms-user-select: auto;
  user-select: auto;
  -webkit-touch-callout: default;
}

/* Spezielle Klasse für Bereiche wo Textselektion gewünscht ist */
.allow-select {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

/* ========== COMPETITION TABS ========== */
/* CSS-Animation für Loading-Spinner */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.competition_tabs_wrapper {
  margin: var(--default-margin-top) 0 18px 0;
}

.competition_tabs_nav {
  display: flex;
  background: var(--default-background-color);
  border-radius: 8px 8px 0 0;
  border-bottom: 2px solid var(--default-highlight-color);
  padding: 4px;
  position: sticky;
  top: 50px; /* Direkt unter dem Header */
  z-index: 50; /* Niedriger als Header */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.competition_tab_btn {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--default-text-color2);
  font-weight: 500;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  font-family: var(--default-font-family);
}

.competition_tab_btn:hover {
  background: var(--default-text-color1);
  color: var(--default-text-color2);
}

.competition_tab_btn.active {
  background: var(--default-highlight-color);
  color: var(--default-text-color1);
  box-shadow: 0 2px 8px rgba(95, 132, 130, 0.3);
  margin-left: 10px;
  margin-right: 10px;
}

.competition_tab_btn.active:hover {
  background: var(--default-hover-color);
  color: var(--default-text-color1);
}

.competition_tabs_content {
  background: var(--default-text-color1);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.competition_tab_panel {
  display: none;
  padding: 24px;
  min-height: 400px;
}

.competition_tab_panel.active {
  display: block;
}

.competition_tab_panel .teams_overview_box h2,
.competition_tab_panel .competition_boulders_box h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--default-text-color2);
  font-size: 1.8em;
  font-weight: 600;
}

/* Responsive Design für Competition Tabs */
@media (max-width: 768px) {
  .competition_tabs_nav {
    padding: 2px;
  }

  .competition_tab_btn {
    padding: 10px 12px;
    font-size: 0.9em;
  }

  .competition_tab_panel {
    padding: 16px;
  }
}

/* ===================== MIGRATION SYSTEM STYLES ===================== */

/* Modal Overlays */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.error-modal-overlay {
  z-index: 9999;
  background: rgba(0, 0, 0, 0.12);
}

/* Modal Content */
.modal-content {
  background: #fff;
  padding: 30px;
  max-width: 800px;
  width: 95vw;
  max-height: 90vh;
  border-radius: 8px;
  box-sizing: border-box;
  overflow-y: auto;
}

.error-modal-content {
  padding: 24px 20px;
  max-width: 340px;
  width: 90vw;
  border-radius: 6px;
  text-align: center;
  border: 1px solid #ccc;
}

/* Modal Headers */
.modal-header {
  margin-top: 0;
  color: #5f8482;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 10px;
}

.error-modal-header {
  margin-top: 0;
  font-size: 1.15em;
  color: #222;
  font-weight: 600;
}

/* Loading States */
.loading-container {
  text-align: center;
  padding: 40px;
}

.loading-spinner {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 3px solid #ddd;
  border-top: 3px solid #1e3a8a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Status Messages */
.error-message {
  color: #dc2626;
}

.error-message-centered {
  color: #dc2626;
  text-align: center;
  padding: 20px;
}

.warning-message {
  color: #f59e0b;
}

.success-message {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 20px;
}

.success-message h3 {
  color: #166534;
  margin-top: 0;
}

/* Buttons */
.btn-migration {
  background: #e8f4fd;
  color: #1e3a8a;
  border: 1px solid #3b82f6;
  margin-left: 10px;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-migration-status {
  background: #f0f9ff;
  color: #1e3a8a;
  border: 1px solid #3b82f6;
  padding: 8px 12px;
  margin-left: 10px;
  border-radius: 4px;
  display: inline-block;
}

.btn-migration-reset {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #d97706;
  margin-left: 10px;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-delete {
  background: #ffdddd;
  color: #a00;
}

.btn-modal-cancel {
  padding: 8px 20px;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  margin-right: 10px;
  cursor: pointer;
}

.btn-modal-primary {
  padding: 8px 20px;
  background: #1e3a8a;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: none;
}

.btn-error-close {
  padding: 7px 22px;
  background: #eee;
  color: #222;
  border-radius: 4px;
  border: 1px solid #bbb;
  font-size: 1em;
  cursor: pointer;
}

/* Modal Footer */
.modal-footer {
  margin-top: 20px;
  text-align: right;
  border-top: 1px solid #e5e7eb;
  padding-top: 15px;
}

.error-modal-message {
  margin-bottom: 16px;
  font-size: 1em;
  color: #222;
}

/* ===================== COMPETITION PAGE STYLES ===================== */

/* Animation Keyframes */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Team Toggle Cards */
.team_toggle_card {
  transition: box-shadow 0.2s;
}

.team_toggle_card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.13);
  background: #f7fafd;
}

/* Team Member Styles */
.member_in_team {
  font-size: 0.98em;
  margin-bottom: 2px;
}

.team_profile_avatar,
.avatar_logo,
.avatar_logo_placeholder {
  display: none !important;
}

/* Team Profile Button */
.team_profile_btn {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 16px;
  background: #e3f0ff;
  color: #1a3a5d;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1em;
  border: none;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.team_profile_btn:hover {
  background: #b6d6ff;
  color: #0a223a;
}

/* Edit Competition Button */
.edit_competition_btn {
  display: inline-block;
  margin: 12px 0 18px 0;
  padding: 7px 18px;
  background: #ffe3b3;
  color: #7a4a00;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.08em;
  border: none;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.edit_competition_btn:hover {
  background: #ffd18a;
  color: #4a2a00;
}

/* Team Detail Box */
.team_detail_box {
  background: #f0f4f8;
  border: 1px solid #d1e1ff;
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
}

/* Team Member Row */
.team_member_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #e1e1e1;
}

.team_member_row:last-child {
  border-bottom: none;
}

/* Team Profile Avatar */
.team_profile_avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

.avatar_logo_placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e1e1e1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

/* Team Member Info */
.team_member_name {
  flex-grow: 1;
  font-weight: 500;
  color: #333;
}

.team_member_score {
  font-size: 0.9em;
  color: #666;
}

/* Team Members Grid */
.team_members_grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

/* Member Card */
.member_card {
  background: #fff;
  border: 1px solid #d1e1ff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  padding: 12px 18px 12px 12px;
  display: flex;
  align-items: center;
  min-width: 180px;
  max-width: 220px;
}

/* Member Avatar */
.member_avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0;
}

.member_avatar_placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e1e1e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3em;
  color: #888;
  margin: 0;
}

/* Member Info */
.member_info {
  display: flex;
  flex-direction: column;
  margin-left: 10px;
}

.member_name {
  font-weight: 600;
  color: #222;
  margin-bottom: 2px;
}

.member_score {
  font-size: 0.97em;
  color: #666;
}

.member_avg_score {
  font-size: 0.93em;
  color: #888;
}

/* Switch Row */
.switch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1em;
}

.switch-row label {
  margin: 0;
  font-weight: 500;
}

/* Hidden Competition Notice */
.hidden_competition_notice {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #f59e0b;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(245, 158, 11, 0.1);
}

.hidden_competition_notice h3 {
  color: #d97706;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2em;
}

.hidden_competition_notice p {
  color: #92400e;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ===================== COMPETITIONS OVERVIEW STYLES ===================== */

/* Competition Category Titles */
.competition_category_title {
  font-size: 1.4em;
  font-weight: 600;
  color: #2d3748;
  margin: 32px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}

.competition_category_title:first-child {
  margin-top: 16px;
}

/* Finished Competition Styles */
.finished_competition {
  opacity: 0.8;
  border: 2px solid #e2e8f0 !important;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%) !important;
  position: relative;
}

.finished_indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #718096;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  z-index: 10;
}

.finished_competition:hover {
  opacity: 1;
  border-color: #a0aec0 !important;
}

/* No Competitions Message */
.no_competitions {
  text-align: center;
  color: #718096;
  font-style: italic;
  margin: 40px 0;
}

/* Hidden Competition Styles */
.hidden_competition {
  opacity: 0.7;
  border: 2px dashed #fbbf24 !important;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
  position: relative;
}

.hidden_indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #f59e0b;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  z-index: 10;
}

.hidden_status {
  color: #d97706;
  font-size: 0.85em;
  font-weight: 600;
  margin-bottom: 5px;
}

.hidden_competition:hover {
  opacity: 1;
  border-color: #f59e0b !important;
}

/* Competitions Overview Box */
.competitions_overview_box {
  position: relative;
  padding-top: 56px;
}

/* Competition Action Button (spezielle Variante für Competitions) */
.competitions_overview_box .action_btn {
  background: #e3f0ff;
  border: none;
}

.competitions_overview_box .action_btn:hover {
  background: #b6d6ff;
}

.action_btn_icon {
  pointer-events: none;
}

/* ===================== HEADER BACK BUTTON STYLES ===================== */

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.back-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  min-width: 32px;
  height: 32px;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateX(-2px);
}

.back-button:active {
  transform: translateX(-1px);
}

.back-button svg {
  pointer-events: none;
}

/* Responsive Anpassung für Back Button */
@media (max-width: 768px) {
  .nav-left {
    gap: 8px;
  }

  .back-button {
    min-width: 28px;
    height: 28px;
    padding: 4px;
  }

  .back-button svg {
    width: 16px;
    height: 16px;
  }
}

/* ===================== DIGITAL RUNSHEET STYLES (MOBILE-OPTIMIERT, MINIMAL) ===================== */

.runsheet-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 10px;
}

.runsheet-header {
  text-align: center;
  margin-bottom: 15px;
  padding: 15px;
  background: var(--default-background-color);
  border: 1.5px solid var(--default-highlight-color);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.runsheet-header h1 {
  margin: 0 0 5px 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--default-text-color2);
}

.runsheet-header p {
  margin: 0;
  color: var(--default-highlight-color);
  font-size: 0.85rem;
}

/* Runsheet Legend Styles */
.runsheet-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin: 15px 0;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}

.legend-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid;
  flex-shrink: 0;
}

.legend-circle.status-flash {
  background-color: #4caf50;
  border-color: #4caf50;
}

.legend-circle.status-top {
  background-color: #ffc107;
  border-color: #ffc107;
}

.legend-circle.status-bonus {
  background-color: #2196f3;
  border-color: #2196f3;
}

.legend-circle.status-attempt {
  background-color: #9c27b0;
  border-color: #9c27b0;
}

.legend-circle.status-none {
  background-color: #fff;
  border-color: #fff;
}

.legend-text {
  color: var(--default-text-color2);
  font-weight: bold;
}

.runsheet-filter {
  border: 1px solid;
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 15px;
}

.runsheet-filter .switch-row {
  margin: 0;
  justify-content: space-between;
}

.runsheet-filter .switch-row span {
  color: var(--default-text-color2);
  font-size: 0.9rem;
  font-weight: 500;
}

.runsheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  margin-bottom: 15px;
}

.boulder-card {
  background: #fff;
  border: 1.5px solid var(--default-highlight-color);
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  transition: box-shadow 0.15s, background 0.15s, transform 0.1s;
  cursor: pointer;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  user-select: none;
}

.boulder-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: var(--default-text-color1);
  transform: translateY(-1px);
}

.boulder-card:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.boulder-number {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 0 6px 0;
  color: var(--default-text-color2);
  line-height: 1;
}

.boulder-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  width: 100%;
  max-width: 70px;
}

/* Status Farben - positive Progression von neutral bis sehr gut */
.boulder-card.status-flash {
  border-color: #4caf50;
  background: var(--default-text-color1);
}

.boulder-card.status-flash .boulder-number {
  color: #2e7d32;
}

.boulder-card.status-flash .boulder-status {
  background: #4caf50;
  color: white;
}

.boulder-card.status-top {
  border-color: #ffc107;
  background: var(--default-text-color1);
}

.boulder-card.status-top .boulder-number {
  color: #f57f17;
}

.boulder-card.status-top .boulder-status {
  background: #ffc107;
  color: #333;
}

.boulder-card.status-bonus {
  border-color: #2196f3;
  background: var(--default-text-color1);
}

.boulder-card.status-bonus .boulder-number {
  color: #1976d2;
}

.boulder-card.status-bonus .boulder-status {
  background: #2196f3;
  color: white;
}

.boulder-card.status-attempt {
  border-color: #9c27b0;
  background: var(--default-text-color1);
}

.boulder-card.status-attempt .boulder-number {
  color: #7b1fa2;
}

.boulder-card.status-attempt .boulder-status {
  background: #9c27b0;
  color: white;
}

.boulder-card.status-none {
  border-color: var(--default-highlight-color);
  background: #fff;
}

.boulder-card.status-none .boulder-number {
  color: var(--default-highlight-color);
}

.boulder-card.status-none .boulder-status {
  background: var(--default-background-color);
  color: var(--default-text-color2);
}

/* Desktop Anpassungen */
@media (min-width: 701px) {
  .runsheet-container {
    padding: 20px;
  }

  .runsheet-header {
    padding: 20px;
    margin-bottom: 25px;
  }

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

  .runsheet-header p {
    font-size: 0.9rem;
  }

  .runsheet-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
  }

  .boulder-card {
    padding: 16px 12px;
    min-height: 90px;
    border-radius: 10px;
  }

  .boulder-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: var(--default-text-color1);
    transform: translateY(-2px);
  }

  .boulder-number {
    font-size: 2rem;
    margin-bottom: 8px;
  }

  .boulder-status {
    font-size: 0.8rem;
    padding: 4px 8px;
    max-width: 80px;
  }
}

/* Status-Modal Buttons für Runsheet */
.status-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.status-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 0 0;
  max-width: 260px;
  width: 100%;
  align-items: center;
}

.status-btn {
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
  text-align: center;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.status-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.status-btn:active {
  transform: scale(0.98);
}

.flash-btn {
  background: #4caf50;
  color: white;
  border: 2px solid #4caf50;
}

.flash-btn:hover {
  background: #388e3c;
  border-color: #388e3c;
}

.top-btn {
  background: #ffc107;
  color: #333;
  border: 2px solid #ffc107;
  font-weight: 700;
}

.top-btn:hover {
  background: #ffa000;
  border-color: #ffa000;
}

.zone-btn {
  background: #2196f3;
  color: white;
  border: 2px solid #2196f3;
}

.zone-btn:hover {
  background: #1976d2;
  border-color: #1976d2;
}

.remove-btn {
  background: #fff;
  color: var(--default-hover-color);
  border: 2px solid var(--default-hover-color);
  margin-top: 8px;
}

.remove-btn:hover {
  background: var(--default-hover-color);
  color: white;
}

@media (max-width: 700px) {
  .status-modal-buttons {
    gap: 10px;
    margin-top: 15px;
  }

  .status-btn {
    padding: 12px 16px;
    font-size: 0.9rem;
    min-height: 44px;
  }
}

/* ===================== TEAM STYLES ===================== */

/* Competition card styles */
.competition_card {
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.competition_card.active {
  box-shadow: 0 0 8px #b2d7ff;
  background: #f0f8ff;
}

/* Responsive competition table styles */
.responsive_comp_table th {
  position: sticky;
  top: 0;
  background: #f8f8f8;
  z-index: 0;
}

.responsive_comp_table tr {
  transition: background 0.2s;
}

.responsive_comp_table td,
.responsive_comp_table th {
  padding: 8px 12px;
  text-align: center;
}

.responsive_comp_table tbody tr:hover {
  background: #e6f7ff;
}

/* Pending invites styles */
.pending_invites_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.pending_invite_card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s;
  position: relative;
}

.pending_invite_card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pending_invite_info {
  margin-bottom: 10px;
}

.pending_invite_email {
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.pending_invite_date {
  font-size: 0.9em;
  color: #666;
}

.pending_invite_actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.button--small {
  padding: 6px 12px;
  font-size: 0.9em;
  display: inline-flex;
  align-items: center;
}

.resend_invite_btn {
  background: #4caf50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.resend_invite_btn:hover {
  background: #45a049;
}

.resend_invite_btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.show_qr_btn {
  background: #2196f3;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.show_qr_btn:hover {
  background: #1976d2;
}

/* QR-Code Modal styles */
.qr-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.qr-modal-content {
  background-color: #fff;
  border-radius: 8px;
  padding: 0;
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.qr-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  background-color: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.qr-modal-header h3 {
  margin: 0;
  font-size: 1.2em;
  color: #333;
}

.qr-modal-close {
  font-size: 24px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.qr-modal-close:hover {
  color: #333;
}

.qr-modal-body {
  padding: 20px;
  text-align: center;
}

.qr-invite-email {
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  font-size: 1.1em;
}

.qr-code-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.qr-code-container canvas {
  border: 2px solid #e0e0e0;
  border-radius: 4px;
}

.qr-instructions {
  margin: 15px 0;
  color: #666;
  font-size: 0.9em;
  line-height: 1.4;
}

.qr-link-container {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}

.qr-invite-link {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9em;
  background-color: #f8f9fa;
}

.qr-invite-link:focus {
  outline: none;
  border-color: #4caf50;
}

.status-flash {
  color: #4caf50 !important;
  font-weight: bold;
}
.status-top {
  color: #ffc107 !important;
  font-weight: bold;
}
.status-zone {
  color: #2196f3 !important;
  font-weight: bold;
}
.status-none {
  color: #888 !important;
  font-weight: normal;
}
