/* NEU badges in mobile menu: only visible on tall devices */
.badge-neu-mob {
  display: none;
}
@media (min-height: 700px) {
  .badge-neu-mob {
    display: inline;
  }
}

/* global body padding */

body {
  padding-top:    0px;
  padding-bottom: 120px;
  background-image: url("../../assets/img/header_repeat.png");
  background-color: #f0f0f0;
  background-position: center top;
  background-size: 324px 430px;
  background-repeat: repeat-x;
}

@media (min-width: 768px) {
  body {
    padding-top:    0px;
    padding-bottom: 50px;
    margin: 0;
  }
}

@media (min-width: 768px) {
  .iconav {
    top: 50px !important;
  }
}

@media (max-width: 767px) {
  body {
    padding-top: 55px!important;
    padding-bottom: 80px !important; /* 60px bottom-nav + 20px Puffer */
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
    margin: 0;
  }
}

/* Bottom-Nav bei offenen Modals auf Mobile ausblenden */
body.modal-open .navbar.fixed-bottom {
  transform: translateY(100%);
}

@media (max-width: 1199px) {
  body {
    padding-top:    60px;
    padding-bottom: 50px;
    margin: 0;
  }
}

@media (min-width: 1200px) {
  .with-iconav {
    margin-left: -70px;
  }
}

@media (min-width: 768px) {
.nav-mobile-top {

}
}

.iconav {
  margin-top: 0px !important;
  margin-bottom: 0px !important;
}



/* global spacing overrides */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  margin-top: 0;
}
hr {
  margin-top: 30px;
  margin-bottom: 30px;
}

.navbar-fixed-top,
.navbar-static-top {
  border-bottom: 0;
}

.navbar-2mm {
  background-image: url("../../assets/img/header_repeat.png");
  background-color: #f0f0f0;
  background-position: center top;
  background-size: 324px 425px;
  background-repeat: repeat-x;
}

.sidebar-2mm-img {
  height: 100px;
  width: 100px;
  border-radius: 17px !important;
}

.sidebar-teamname {
  font-size: 1.2rem;
  font-weight: 500;
}

.sidebar-managername {
  opacity: 0.7;
}

.button-stats {
  border-radius: 17px !important;
}

.button-2mm-active {
  padding-top: 20px;
  width: 110px;
  height: 110px;
  border-radius: 17px;
}

.button-2mm {
padding-top: 20px;
width: 110px;
height: 110px;
}

a.button-2mm:hover, a.button-2mm:active {
  color: #61883c !important;
  transform: scale(1.1);
}

a.button-2mm-shorties:hover, a.button-2mm-shorties:active {
  transform: scale(1.2);
}


.button-in-2m {
  width: 100%;
  height: 100%;
}

.space-2mm {
  height: 20px;
  display: block;
}

.bg-gr {
  background-color: f0f0f0;
}

ul.timeline {
    list-style-type: none;
    position: relative;
}
ul.timeline:before {
    content: ' ';
    background: #d4d9df;
    display: inline-block;
    position: absolute;
    left: 29px;
    width: 2px;
    height: 100%;
    z-index: 400;
}
ul.timeline > li {
    margin: 20px 0;
    padding-left: 20px;
}
ul.timeline > li:before {
    content: ' ';
    background: white;
    display: inline-block;
    position: absolute;
    border-radius: 50%;
    border: 3px solid #61883c;
    left: 20px;
    width: 20px;
    height: 20px;
    z-index: 400;
}


.fadeout {
    position: relative;
    bottom: 4em;
    height: 4em;
    background: -webkit-linear-gradient(
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 1) 100%
    );
    background-image: -moz-linear-gradient(
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 1) 100%
    );
    background-image: -o-linear-gradient(
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 1) 100%
    );
    background-image: linear-gradient(
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 1) 100%
    );
    background-image: -ms-linear-gradient(
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 1) 100%
    );
}
.nav-item-width {

}

@media (max-width: 767px) {

  .alert-fixed {
      top: 50px !important;
      position:fixed;
      right: 10px;
      z-index:9999;
      border-radius:0px
  }
}

.alert-fixed {
    top: 10px;
    position:fixed;
    right: 10px;
    z-index:9999;
    border-radius:0px
}

#meldung {
  z-index: 2;
}

.vlogo {
  max-width: 180px;
  max-height: 180px;
}

.badge-todo {
}

.todo_remove {
  display: none;
}

@media only screen and (max-width: 1200px) {

  @media only screen and (min-width: 250px) {
    body, input, textarea, select, .btn, .input-group-text, .progress, .nachfrage_arrow {
       font-size: 2.75vw !important;
    }
    .table-sm {
      line-height: 1.2;
    }


    h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6  {
      font-size: 4vw !important; }
  }

  @media only screen and (min-width: 360px) {
    body, input, textarea, select, .btn, .input-group-text, .progress, .nachfrage_arrow {
       font-size: 3vw !important;
    }
    .table-sm {
      line-height: 1.2;
    }


    h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6  {
      font-size: 4.1vw !important; }
  }

  @media only screen and (min-width: 400px) {
    body, input, textarea, select, .btn, .input-group-text, .progress, .nachfrage_arrow {
       font-size: 2.25vw !important;
    }
    .table-sm {
      line-height: 1.2;
    }


    h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6  {
      font-size: 3vw !important; }
  }

  @media only screen and (min-width: 500px) {
    body, input, textarea, select, .btn, .input-group-text, .progress, .nachfrage_arrow {
       font-size: 2vw !important;
    }

    .table-sm {
      line-height: 1.2;
    }

    h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6  {
      font-size: 2.25vw !important; }
  }

  @media only screen and (min-width: 600px) {
    body, input, textarea, select, .btn, .input-group-text, .progress, .nachfrage_arrow {
       font-size: 1.75vw !important;
    }

    .table-sm {
      line-height: 1.2;
    }

    h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6  {
      font-size: 2vw !important; }
  }
  @media only screen and (min-width: 700px) {
    body, input, textarea, select, .btn, .input-group-text, .progress, .nachfrage_arrow {
       font-size: 1.5vw !important;
    }

    h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6  {
      font-size: 1.5vw !important; }
  }
  @media only screen and (min-width: 900px) {
    body, input, textarea, select, .btn, .input-group-text, .progress, .nachfrage_arrow {
       font-size: 1.25vw !important;
    }

    h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6  {
      font-size: 1.5vw !important; }
}
@media only screen and (min-width: 1050px) {
  body, input, textarea, select, .btn, .input-group-text, .progress, .nachfrage_arrow {
     font-size: 1.125vw !important;
  }

  h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6  {
    font-size: 1.75vw !important; }
}
}
@media only screen and (min-width: 1200px) {
  body, input, textarea, select, .btn, .input-group-text, .progress, .nachfrage_arrow {
     font-size: 0.8rem !important;
  }

  h1, .h1 {
    font-size: 1.5rem !important; }

  h2, .h2 {

  }

  h3, .h3 {
    font-size: 1.3rem !important; }

  h4, .h4 {
    font-size: 1.5rem !important; }

  h5, .h5 {
    font-size: 1.1rem !important; }

  h6, .h6 {
    font-size: 0.85rem !important;
    font-weight: 400;
   }
}

/* =====================================================
   MOBILE: randlose Ansicht + Mindest-Schriftgröße
   Gilt nur für max-width: 767px – Desktop unverändert
   ===================================================== */

@media (max-width: 767px) {

  /* Container ohne seitliches Padding → Inhalt geht bis zum Rand */
  .container,
  .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }

  /* Row-Negativmargins entfernen */
  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Spalten-Padding entfernen */
  [class*="col-"],
  [class="col"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Cards: randlose Streifen – kein Radius, keine Seitenränder */
  .card {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
  }

  /* Card-Body und Card-Header: kompakteres Innenabstand */
  .card-body {
    padding: 0.6rem 0.75rem !important;
  }

  .card-header,
  .card-footer {
    padding: 0.4rem 0.75rem !important;
  }

  /* Tabellen: horizontales Scrollen – nur auf card-body, nicht card selbst
     (overflow auf .card würde position:absolute Badges clippen) */
  .card-body {
    overflow-x: auto;
  }

  table.table {
    min-width: 100%;
  }

  /* Weiße Content-Boxen (bg-white rounded) außerhalb von .card:
     reduziertes Padding + horizontaler Scroll für Tabellen */
  .bg-white.rounded {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
    overflow-x: auto;
    border-radius: 0 !important;
  }

  /* Badges in position-relative Buttons über allem rendern */
  .btn.position-relative .badge.position-absolute,
  .position-relative > .badge.position-absolute {
    z-index: 10;
  }

  /* Shoutbox: Abstand zwischen Vereinslogo und Name */
  .col-2.col-lg-1 {
    padding-right: 8px !important;
  }

  /* Shoutbox: Text-Spalte füllt verfügbaren Raum */
  .col-7.col-lg-9 {
    flex: 1 1 0 !important;
    max-width: 100% !important;
  }

  /* Shoutbox: Vote-Button-Spalte schmal, ganz rechts */
  .col-3.col-lg-2.text-right {
    flex: 0 0 50px !important;
    max-width: 50px !important;
  }

  /* Mobile Top-Nav: fixed + Scroll-Animation */
  .nav-mobile-top {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1030 !important;
    transition: transform 0.25s ease;
    background-color: #4f7b39 !important;
    border-bottom: 2px solid #3a5c29 !important;
  }

  .nav-mobile-top.nav-scroll-hidden {
    transform: translateY(-100%);
  }

  .nav-mobile-top .nav-link,
  .nav-mobile-top .navbar-brand {
    color: rgba(255, 255, 255, 0.9) !important;
  }

  .nav-mobile-top .nav-link:hover,
  .nav-mobile-top .nav-link:focus {
    color: #fff !important;
  }

  /* Aufgeklapptes Untermenü (collapse) ebenfalls grün */
  .nav-mobile-top .navbar-collapse,
  .nav-mobile-top #navbarNav {
    background-color: #4f7b39 !important;
  }

  /* Mobile Bottom-Nav: Tutorial-Banner-Grün + Scroll-Animation */
  nav.navbar.fixed-bottom {
    background-color: #4f7b39 !important;
    border-top: 2px solid #3a5c29 !important;
    transition: transform 0.25s ease;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  nav.navbar.fixed-bottom.nav-scroll-hidden {
    transform: translateY(100%);
  }

  nav.navbar.fixed-bottom .col .btn-light,
  nav.navbar.fixed-bottom .col button.btn {
    background-color: transparent !important;
    border-color: transparent !important;
    color: rgba(255, 255, 255, 0.85) !important;
  }

  nav.navbar.fixed-bottom .col .btn-light:hover,
  nav.navbar.fixed-bottom .col .btn-light:focus,
  nav.navbar.fixed-bottom .col button.btn:hover,
  nav.navbar.fixed-bottom .col button.btn:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
  }

  /* Kader-Tab: rechts über der Bottom-Nav */
  /* bottom wird per JS dynamisch auf bn.offsetHeight gesetzt */
  #tactic-fab {
    position: fixed;
    right: 0;
    bottom: 60px; /* Fallback, wird per JS überschrieben */
    z-index: 1070;
    transition: transform 0.25s ease;
  }

  #tactic-fab.nav-scroll-hidden {
    transform: translateY(200px);
  }

  #tactic-fab button {
    border-radius: 10px 0 0 0 !important;
    font-weight: 600;
    padding: 0.35rem 1.2rem;
    box-shadow: -2px -2px 6px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
  }

  /* Taktik-Panel: Overlay unterhalb der Top-Nav */
  #side_team {
    display: none;
    position: fixed !important;
    top: 55px;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 1500 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    transform: translateY(105%) !important;
    transition: transform 0.3s ease !important;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
  }

  #side_team.tactic-panel-open {
    transform: translateY(0) !important;
  }

  /* Panel: weißer Hintergrund + kein eigenes Padding (außer Safe Area unten) */
  #side_team {
    background-color: #fff;
    margin: 0 !important;
    padding: 0 0 60px 0 !important;
  }

  /* Panel-Inhalt: gesamtes Padding entfernen (p-3 override) */
  #side_team .bg-white {
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 100%;
  }

  /* Tabelle direkt sichtbar: nur horizontales Padding behalten */
  #side_team .card {
    margin: 0 !important;
  }

  #side_team .table-responsive {
    padding: 0 0.25rem !important;
  }

  /* Modal-Kategorie-Header auf sehr kleinen Displays (SE: 375px) ausblenden */
  @media (max-width: 390px) {
    .modal-section-header { display: none !important; }
  }

  /* Auto-Aufstellung Buttons auf kleinen Displays skalieren */
  @media (max-width: 420px) {
    #button_st_def .btn, #button_st_kontr .btn, #button_st_off .btn,
    #button_ft_def .btn, #button_ft_kontr .btn, #button_ft_off .btn {
      font-size: 13px !important;
      padding: 0.2rem 0.5rem !important;
    }
  }

  /* Aktiver Nav-Eintrag: Icon fett */
  nav.navbar.fixed-bottom .nav-bottom-active {
    color: #fff !important;
  }

  nav.navbar.fixed-bottom .nav-bottom-active .icon {
    font-weight: 900 !important;
    -webkit-text-stroke: 0.5px #fff;
    text-shadow: 0 0 6px rgba(255,255,255,0.9), 0 0 14px rgba(255,255,255,0.5);
  }

  /* Modals: volle Breite ohne Seitenabstand */
  .modal-dialog {
    margin: 0.5rem !important;
    max-width: calc(100% - 1rem) !important;
  }

  /* Fließtext, Inputs, Buttons: minimum 14px */
  body, input, textarea, select, .btn,
  .input-group-text, .progress, .nachfrage_arrow {
    font-size: 14px !important;
  }

  /* Überschriften */
  h1, .h1 { font-size: 20px !important; }
  h2, .h2 { font-size: 18px !important; }
  h3, .h3 { font-size: 17px !important; }
  h4, .h4 { font-size: 16px !important; }
  h5, .h5 { font-size: 15px !important; }
  h6, .h6 { font-size: 14px !important; }

  #tactic-close-li button {
    font-size: 24px !important;
  }

  /* Logo ausblenden wenn Taktik-Panel offen (Platz für Stats + × auf kleinen Screens) */
  body.tactic-panel-open .nav-mobile-top .navbar-brand {
    display: none !important;
  }

  /* Nav-Liste volle Breite → × mit ml-auto bleibt ganz rechts */
  body.tactic-panel-open .nav-mobile-top .nav {
    width: 100%;
  }

  /* Forum-Action-Bar: overflow visible damit Dropdown nicht geclippt wird */
  .forum-action-bar {
    overflow: visible !important;
  }

  /* Top-Nav nicht scrollbar, × immer sichtbar */
  .nav-mobile-top {
    overflow: hidden;
  }

  .nav-mobile-top .nav {
    flex-wrap: nowrap;
    overflow: hidden;
  }

  #tactic-close-li {
    flex-shrink: 0;
  }
}
