/* Die --pico-* Variablen sind jetzt nur noch ein Mapping auf die zentralen
   Design-Tokens aus tokens.css. Werte werden ausschliesslich dort gepflegt. */
:root {
    --pico-secondary-background: var(--color-info);
    --pico-background-error: var(--color-error);
    --pico-background-success: var(--color-success);
    --pico-background-warning: var(--color-warning);
    --pico-font-size: var(--font-size-root);
    --pico-border-radius: var(--radius-md);
    --pico-topbar-height: var(--topbar-height);
    --pico-sidebar-width: var(--sidebar-width);

    --pico-box-shadow: var(--shadow-sm);
    --pico-font-family-sans-serif: var(--font-sans);
}

:root:not([data-theme=dark]), [data-theme=light],
:root:not([data-theme=light]), [data-theme=dark] {
    --pico-background-color: var(--color-bg);
    --pico-primary: var(--brand);
    --pico-color: var(--color-text);
    --pico-active-tree: #dbe4ea0d;
    --pico-primary-hover-background: var(--brand-hover);
    --dt-row-selected: 224, 224, 224, 0.1;
    --dt-row-selected-text: 220, 220, 220;

    --pico-background-color-nav: var(--color-surface-2);
    --pico-background-cardform: var(--color-cardform);
    --pico-table-th-color: var(--color-surface-2);

    --pico-h1-color: var(--color-text-strong);
    --pico-h2-color: var(--color-text-strong);
    --pico-h3-color: var(--color-text-strong);
    --pico-h4-color: var(--color-text-strong);
    --pico-h5-color: var(--color-text-strong);
    --pico-h6-color: var(--color-text-strong);
    --pico-muted-color: var(--color-text-muted);

    --pico-primary-hover: var(--brand-hover);
    --pico-form-element-border-color: var(--color-border);
    --pico-background-color-toolbar: var(--color-surface-2);

    /* Formularfelder durchgaengig auf unsere (warmen) Tokens -> kein Pico-Blau mehr.
       Fokus-Ring ist jetzt Brand-getoent statt des blauen Pico-Defaults. */
    --pico-form-element-background-color: var(--color-bg);
    --pico-form-element-active-background-color: var(--color-bg);
    --pico-form-element-active-border-color: var(--brand);
    --pico-form-element-focus-color: var(--brand);
    --pico-form-element-color: var(--color-text);
    --pico-form-element-placeholder-color: var(--color-text-muted);
    --pico-form-element-toggle: var(--color-text-muted);
    --pico-primary-focus: color-mix(in srgb, var(--brand) 22%, transparent);

    --pico-primary-background: var(--brand);
    --pico-secondary-background: var(--color-info);
    --pico-secondary-hover-background: var(--brand-hover);

    --pico-color-nav-secondary: #dfe3eb;
    --pico-color-nav: var(--pico-contrast);
    --pico-secondary-background-button-bar: var(--color-black);
    --pico-border-color-button-bar: var(--pico-secondary-background);
}

/* ===== Scrollbar CSS ===== */
  /* Firefox — Tokens, damit die Scrollbar in beiden Themes passt. */
  * {
    scrollbar-width: auto;
    scrollbar-color: var(--color-border) transparent;
  }

  /* Chrome, Edge, and Safari */
  *::-webkit-scrollbar {
    width: 10px;
  }

  *::-webkit-scrollbar-track {
    background: transparent;
  }

  *::-webkit-scrollbar-thumb {
    background-color: var(--color-border);
    border-radius: 5px;
    border: 2px solid var(--color-bg);
  }

/* Lokale, selbst gehostete variable Schrift (Geist). Eine Datei deckt alle
   Schnitte 100-900 ab; font-display:swap vermeidet unsichtbaren Text. */
@font-face {
    font-family: 'Geist';
    src: url('/assets/content/fonts/geist/Geist-Variable.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

.login label {
    position: relative;
}

section.login_header details.dropdown {
    margin: 0;
}

tr.has_child {
    background: #d4d4d5 !important;
    font-weight: bold!important;
}

tr.has_child td {
    font-weight: bold!important;
}

span.green {
    width: 10px;
    height: 10px;
    display: block;
    background: var(--pico-background-success);
    border-radius: 999px;
}

#loginReload {
    cursor: pointer;
    margin: 0;
}

form#form_login {
    padding-block-start: 1rem;
}



table [role=button] {
    all: unset;
}

.cardform_section label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 1px;
}

textarea {
    height: 44px;
    resize: none;
}

.cardform_section input, .cardform_section select, .cardform_section textarea {
    z-index: 1;
    max-width: 320px;
    margin: 0;
}

.img_container {
    width: 100%;
    max-width: 320px;
    background: var(--pico-form-element-background-color);
    z-index: 1;
    border: 1px dotted var(--pico-form-element-border-color);
    border-radius: var(--pico-border-radius);
    display: flex;
    align-items: center;
    overflow: hidden;
    height: calc(1rem* var(--pico-line-height) + var(--pico-form-element-spacing-vertical)* 2 + var(--pico-border-width)* 2);
    justify-content: space-between;
}


/* .section_group .cardform_section fieldset:not(:has(.direct_table)) {
    grid-template-columns: repeat(auto-fill, minmax(33%, 1fr));
} */

.img_container img {
    aspect-ratio: 1;
    object-fit: cover;
    max-width: 50px;
    height: 100%;
    width: 100%;
}

.img_container a[role=button]:hover {
    color: var(--pico-primary-inverse);
}

[type=checkbox] {
    border-radius: 5px;
}

.welcome_card {
    background-color: var(--pico-primary-background);
    padding: 1rem;
    border-radius: var(--pico-border-radius);
    background-image: url(/assets/content/img/welcome_card.jpg);
    background-size: cover;
    background-position: top right;
    color: white!important;
    position: relative;
}

.swiper-slide.welcome_card h2 {
    text-overflow: none;
    overflow: show;
    max-width: unset;
    white-space: unset;
}

div#close_welcome_card {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 1rem;
    cursor: pointer;
}

a.help {
    color: var(--color-text);
    background: #00000014;
    padding: 6px 13px;
    border-radius: 8px;
}
a.error:hover {
    color: white !important;
}

.welcome_card h2 {
    margin-bottom: 2px;
    line-height: 1.3;
}
.welcome_card p {
    color: white!important;
    font-size: var(--fs-xs);
    opacity: .9;
    margin-bottom: 2px;
}

.link_group a {
    color: white!important;
    font-size: var(--fs-xs);

    text-decoration: underline;
}

.link_group {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white ! Important;
}

.welcome_card_content {
    padding-right: 70px;
}

.title_welcome.welcome_card_content {
    padding-right: 60px;
}



img.table_user_image {
    max-width: 25px;
    border-radius: 999px;
    margin-right: 5px;
    height: 25px;
    object-fit: cover;
    width: 25px;
    object-position: top;
}

a.error {
    width: 100%;
}

a.primary.tips {
    width: 100%;
}

.join_content {
    padding: var(--space-4);
}

.group_titlebar h1,
.group_titlebar p {
    color: #fff;
}

.group_titlebar h1 {
    margin-bottom: var(--space-1);
}

.group_titlebar {
    background-repeat: no-repeat;
    background-size: cover;
    height: 140px;
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: var(--space-4);
    background-position: center;
    padding-right: 120px;
    margin-bottom: var(--space-4);
    /* Foto-Hintergrund -> Text immer hell (sonst im Light-Mode dunkel/unleserlich). */
    color: #fff;
}

.profil_menu_item a {
    width: 100%;
}

td.user_image img {
    max-width: 30px;
}

td.remove_user {
    text-align: center !important;
}

table#userTable tr:last-child td:last-child,
table#userTable tr:last-child td:first-child {
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.cardform_section .card .ui.table>thead>tr>th {
    background: var(--pico-background-cardform);
}

td.remove_user {
    background: var(--pico-primary) !important;
    color: white;
}

td.remove_user a {
    color: white;
}

/* .cardform_section label > span {
    z-index: 1;
    background: var(--pico-card-background-color);
    padding-right: 8px;
} */

.profil_menu_item [type=checkbox] {
    margin-block: 1rem;
}

/* .cardform_section label:before {
    content: '';
    width: 100%;
    height: 5px;
    position: absolute;
    border-bottom: 3px dotted var(--pico-form-element-border-color);
    left: 0;
    top: 50%;
    z-index: 0;
    opacity: .5;
    transform: translateY(-50%);
} */

.login_header summary.outline {
    border: 0;
    padding-right: 0;
}

#showPW, #showPW2 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 14px;
    cursor: pointer;
    color: var(--color-text-muted);
}

.container {
    padding-inline: var(--pico-spacing);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: scroll;
    background: var(--color-bg);
    font-family: var(--pico-font-family-sans-serif);
    color: var(--pico-color);
}

td, th {
    padding: unset;
    border-bottom: none;
    background-color: transparent;
}

.page_content [role="button"] {
    --pico-form-element-spacing-vertical: 7px;
    --pico-form-element-spacing-horizontal: 12px;
}

.notificationbar {
    width: 100%;
    flex: 1;
}

.column_content {
    padding-block-end: calc(var(--pico-spacing) * 1.5);
}

.bar_container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;

}

.content_description {
    padding: var(--pico-spacing);
}

.card_header.no_border {
    border: 0;
    padding: var(--pico-spacing);
}

.column_container,
.column_subcontainer {
    display: grid;
    gap: calc(var(--pico-grid-column-gap) * 1.5);
    grid-template-columns: repeat(auto-fit, minmax(25%, 1fr));
}

.column-100 {
    grid-column: span 4;
}

.column-67 {
    grid-column: span 2;
}

.column-50 {
    grid-column: span 2;
}

.column-33 {
    grid-column: span 1;
}

.column_container-20, .column_subcontainer-20 {
    display: grid;
    gap: calc(var(--pico-grid-column-gap)* 1.5);
    grid-template-columns: repeat(auto-fit, minmax(20%, 1fr));
}

a.card {
    color: var(--pico-h1-color);
}

h4.content_description {
    font-weight: 500;
    font-size: var(--fs-base);
}

.left.floated.eight.wide.column:empty {
    padding: 0;
}

input[type="file"] {
    background: var(--pico-form-element-background-color);
}

.content_description {
    padding: var(--pico-spacing);
    min-height: 60px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

input:not([type=checkbox],[type=radio]), select, textarea {
    margin-bottom: 0;
}

/* =========================================================================
   Globale Formularfelder — ruhiger, Claude-artiger Look (token-basiert).
   Niedrige Spezifitaet -> spezielle Komponenten (Login, Tippen) ueberschreiben.
   ========================================================================= */
input:not([type=checkbox],[type=radio],[type=submit],[type=button],[type=reset],[type=file],[type=color],[type=range]),
select,
textarea {
    background-color: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
input:not([type=checkbox],[type=radio],[type=submit],[type=button],[type=reset],[type=file],[type=color],[type=range]):hover:not(:focus):not([disabled]),
select:hover:not(:focus):not([disabled]),
textarea:hover:not(:focus):not([disabled]) {
    border-color: var(--color-text-muted);
}
input:not([type=checkbox],[type=radio],[type=submit],[type=button],[type=reset],[type=file],[type=color],[type=range]):focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}
input::placeholder,
textarea::placeholder {
    color: var(--color-text-muted);
    opacity: 1;
}
/* native Steuerungen (Checkbox/Radio/Range) in Markenfarbe statt Pico-Blau */
input[type=checkbox], input[type=radio], input[type=range] {
    accent-color: var(--brand);
}

.service_auslastung_person:first-child {
    font-weight: bold;
}

iframe.filegallery_frame {
    width: 100%;
    height: 95vh;
}
.service_auslastung_person {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--pico-form-element-border-color);
    padding: var(--pico-spacing);
}

.treeview {
    position: relative;
    padding-left: 20px !important;
}

span.has_parent {
    border-left: 2px solid var(--pico-primary);
    border-bottom: 2px solid var(--pico-primary);
    width: 12px;
    height: 50%;
    display: inline-block;
    position: absolute;
    left: 0;
    top: 0;
}

span.has_child {
    border-left: 2px solid var(--pico-primary);
    border-top: 2px solid var(--pico-primary);
    width: 12px;
    height: 50%;
    display: inline-block;
    position: absolute;
    left: 0;
    bottom: 0;
}

.betriebsstunden_progress {
    display: flex;
    align-items: center;
    gap: var(--pico-spacing);
}

.betriebsstunden_progress progress {
    margin: 0;
}

span.has_sibling {
    border-left: 2px solid var(--pico-primary);
    width: 12px;
    height: 50%;
    display: inline-block;
    position: absolute;
    left: 0;
    bottom: 0;
}

.service_auslastung_person:last-child {
    border: none;
}

.tippen .card_content {
    padding: var(--pico-spacing);
}

.points {
    padding: 10px 8px;
    border-radius: 999px;
    background: grey;
    line-height: 1;
}

.placeh {
    display: block;
    width: 35px;
}

.points.point_status_1 {
    background: rgb(189, 238, 144);
    color: black;
}

.points.point_status_2 {
    background: #fbd956;
    color: black;
}

.points.point_status_3 {
    background: var(--pico-background-success);
}

.faq .profil_menu_item details summary::after {
    height: 1rem;
}

.faq .profil_menu_item details summary {
    font-size: var(--fs-sm);
}

a.button_back {
    background: var(--pico-background-cardform);
    color: var(--color-text);
    border: 0;
    line-height: 1;
    padding: 15px 17px;
}

.title_group_bar {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.bezahlt {
    cursor: pointer;
}

.service_auslastung_count {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 200px;
}

.column-25 {
    grid-column: span 1;
}

.card {
    width: 100%;
    background: var(--pico-background-cardform);
    border-radius: var(--pico-border-radius);
    display: block;
    overflow: hidden;
    position: relative;
}

.card.transparent_background {
    background: transparent;
    border-radius: 0;
}

.card.transparent_background .card_content {
    background: var(--pico-background-cardform);
    border-radius: var(--pico-border-radius);
}

.card_title_intern a {
    color: var(--color-text-strong);
}

.collection_content:not(.news_image) {
    padding-inline: var(--pico-spacing);
    margin-block-end: calc(var(--pico-spacing) / 2);
}

.chart {
    padding: var(--pico-spacing);
}

hgroup>* {
    margin-bottom: var(--space-1);
}


.rules_content {
    padding: 1rem;
    color: var(--color-text);
}

.rules_content p {
    color: var(--color-text)!important;
}


.collection_content img {
    margin-bottom: var(--pico-spacing);
    height: 170px;
    object-fit: cover;
    width: 100%;
}

a.collection_list.card {
    text-decoration: unset;
    color: var(--pico-color-nav);
}

.collection_container {
    padding-block-end: var(--pico-spacing);
}

.card_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--pico-form-element-border-color);
    padding: calc(var(--pico-spacing) / 2);
    padding-inline: var(--pico-spacing);
}

div.dt-datetime table td.selectable button:hover {
    background: var(--pico-primary);
}

/* table {
    box-shadow: var(--pico-box-shadow)!important;
} */

.card_content .ui.table,
.card_content .ui.table>thead>tr:first-child>th:first-child,
.card_content table.dataTable tr:last-child td:first-child,
.card_content table.dataTable tr td:first-child {
    border-radius: 0 !important;
    border-left: 0!important;
}

.card_content .ui.table,
.card_content table.dataTable tr:last-child td:last-child,
.card_content table.dataTable tr td:last-child,
.card_content .ui.table>thead>tr:first-child>th:last-child {
    border-radius: 0 !important;
    border-right: 0!important;
}

div#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    background: #00000087;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
}

#overlayLoader {
    display: none;
}

.profil_menu_item.rules label {
    border-bottom: 0;
}

.profil_menu_item.rules textarea {
    min-height: 200px;
    resize: vertical;
}

h2.group_card_title {
    display: flex;
    align-items: center;
    gap: 5px;
}

section#highlight_bar {
    background: #f1ca00;
    color: black;
    text-align: left;
    font-size: var(--fs-xs);
    line-height: 1.2;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
}

section#highlight_bar i {
    font-size: var(--fs-2xs);
}

.title_with_legend {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.title_with_legend span {
    font-size: var(--fs-2xs);
}

td.user_image img {
    border-radius: 999px;
}

.ql-editor p {
    color: black!important;
}

div#message {
    position: fixed;
    bottom: 0;
    left: 50%;
    width: 100%;
    height: 69px;
    display: flex;
    align-items: center;
    max-width: 358px;
    justify-content: center;
    transform: translateX(-50%);
    z-index: 9999;
    background: var(--pico-primary);
    padding: var(--pico-spacing);
    --pico-color: var(--pico-secondary-inverse);
    color: var(--pico-color);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    -webkit-animation: slide-top-toolbar 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both, fadeOut 1s ease 5s forwards;
    animation: slide-top-toolbar 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both, fadeOut 1s ease 5s forwards;
    pointer-events: none;
}

.left_toolbar {
    display: flex;
    gap: var(--pico-spacing);
}

.loading_line {
    display: block;
    height: 5px;
    background-color: #ffffffad;
    animation: countdown 5s linear forwards;
    position: absolute;
    bottom: 0;
    width: 100%;
    left: 0;
}

@keyframes countdown {
    0% {
        width: 100%;
    }
    100% {
        width: 0;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Reines Opacity-Fade (KEIN transform): ein zurueckbleibender transform-Wert
   (auch translateY(0)) wuerde sonst auf .page_content & Co. einen Containing
   Block erzeugen und die fixierte .action-bar an den Inhalt statt an den
   Viewport binden. Opacity-only haelt fixe Nachfahren robust viewport-relativ. */
@keyframes fadeUp {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.success,
.success_delete {
    background: var(--pico-background-success)!important;
}

.profil_menu_item textarea,
.profil_menu_item select {
    background: var(--pico-background-cardform);
    max-width: 180px;
}

.toolbar_card {
    padding: 1rem;
}

.error .profil_menu_item label:nth-child(3) {
    border: 0!important;
}

/* .error {
    background: var(--pico-background-error)!important;
} */

.login .error {
    margin: 0 0 var(--space-5);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--color-error) 14%, var(--color-surface-1))!important;
    border: 1px solid color-mix(in srgb, var(--color-error) 40%, transparent);
    color: var(--color-text-strong);
    font-size: var(--fs-sm);
    text-decoration: none;
    text-align: center;
}



.error .profil_menu_item label {
    padding-block: 1rem;
    margin: 0;
}

@-webkit-keyframes slide-top-toolbar {
    0% {
      -webkit-transform: translate(-50%, 200px);
              transform: translate(-50%, 200px);
    }
    100% {
      -webkit-transform: translate(-50%, 0);
              transform: translate(-50%, 0);
              
    }
  }
  @keyframes slide-top-toolbar {
    0% {
      -webkit-transform: translate(-50%, 200px);
              transform: translate(-50%, 200px);
    }
    100% {
      -webkit-transform: translate(-50%, 0);
              transform: translate(-50%, 0);
              
    }
  }

#loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    animation: rotate 1s linear infinite;
    display: block;
    display: none;
}

#loader::before {
content: "";
box-sizing: border-box;
position: absolute;
inset: 0px;
border-radius: 50%;
border: 5px solid #FFF;
animation: prixClipFix 2s linear infinite ;
}

.tippen .card {
    margin-bottom: 1rem;
}

@keyframes rotate {
100%   {transform: rotate(360deg)}
}

@keyframes prixClipFix {
    0%   {clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}
    25%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}
    50%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}
    75%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%)}
    100% {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)}
}

table.dataTable tr:last-child td:first-child {
    border-bottom-left-radius: var(--pico-border-radius)!important;
}

table.dataTable tr:last-child td:last-child {
    border-right: 1px solid rgba(34, 36, 38, 0.15);
    border-bottom-right-radius: var(--pico-border-radius)!important;    
}

.ui.pagination.menu .active.item {
    padding-top: 0;
}

.ui.pagination.menu .item {
    padding: 0;
    justify-content: center;
}

.ui.pagination.menu .item a {
    padding: 16px;
}

.date_filter_builder {
    background: var(--pico-background-cardform);
    border-radius: var(--pico-border-radius);
    border: 1px solid var(--pico-form-element-border-color);
    margin-bottom: var(--pico-spacing);
    margin-top: var(--pico-spacing);
    display: none;
}

div.dtsb-searchBuilder {
    background: var(--pico-background-cardform);
    border-radius: var(--pico-border-radius);
    border: 1px solid var(--pico-form-element-border-color);
    margin-bottom: 0;
    margin-top: var(--pico-spacing);
    display: none;
}

.titlebar > div {
    display: flex;
    align-items: center;
    gap: var(--pico-spacing);
    white-space: nowrap;
}

article {
    box-shadow: none;
}

div.dt-container.ui.grid>div.row



.card_header details.dropdown {
    margin: 0;
    border: none;
}

.card_header details.dropdown [role="button"] {
    border: none;
}

.card_title h3 {
    margin: 0;
}

.card_header details.dropdown summary::after {
    display: none;
}

.marquee_container {
    width: 100%; 
    overflow: hidden; 
    white-space: nowrap; 
}

.marquee_content a {
    overflow: hidden;
    width: 100%;
}

a.bug_melden {
    font-size: var(--fs-2xs);
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 5px;
}

.activity {
    margin-bottom: 10px;
}

.activity_title {
    margin-bottom: 5px;
}

.activity_number {
    font-size: var(--fs-lg);
    color: var(--color-text-strong);
}

dialog textarea {
    height: auto;
    min-height: 200px;
    width: 100%;
    resize: vertical;
    max-width: unset ! Important;
}

.card.activity_container {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
    justify-content: space-between;
}

.title_group_bar h2, .portrait {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.title_group_bar img, .portrait img {
    max-width: 25px !important;
    border-radius: 999px;
    height: 25px;
    object-fit: cover;
    display: block;
}

.not_ended {
    font-size: var(--fs-2xs);
    opacity: .5;
}

article>footer, article>header {
    padding: var(--pico-spacing);
}

dialog article>footer {
    text-align: right;
    width: -webkit-fill-available;
    float: unset;
    position: relative;
    background-color: transparent;
    margin-top: 0;
    padding-inline: 0;
    margin-left: 0px;
}

dialog article>footer button {
    width: 100%;
}

dialog article>footer:before {
    display: none;
}

.game_tip {
    display: flex;
    align-items: center;
    width: 120px;
}
.game_tip_inputs {
    display: flex;
    border: 1px solid var(--pico-primary);
    align-items: center;
    gap: 2px;
    
}

.game_tip_inputs input {
    background: transparent;
    margin: 0;
    border-radius: 0;
    padding: 0;
    text-align: center;
    height: 38px ! Important;
    color: var(--color-text-strong) !important;
    font-size: var(--fs-lg);
}

#reset {
    background: transparent;
    border: 0;
    padding: 5px;
    opacity: .6;
}



#away_team_goal, #home_team_goal {
    padding: 0;
    width: 25px;
    flex-shrink: 0;
    cursor: pointer;
    height: 40px;
    border-radius: 0;
    border: 1px solid var(--pico-primary) !important;
    background: var(--pico-primary-background);
    color: #fff;                 /* "+" liegt auf Brand-Rot -> immer weiss */
    display: flex;
    align-items: center;
    justify-content: center;

}

.disabled #away_team_goal,
.disabled #home_team_goal  {
    background: var(--color-surface-2);
    color: var(--color-text-muted);
    border-color: var(--color-border)!important;
}

.disabled input {
    color: var(--color-text-muted) !important;
}

.disabled .game_tip_inputs {
    border-color: var(--color-border);
}

#home_team_goal {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

#away_team_goal {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

/* ====================================================================
   Tippen — Match-Zeile als robustes 5-Spalten-Grid (alle Viewports).
   Spalten (= DOM-Reihenfolge): Status | Heim | Tipp | Gast | Reset.
   Die beiden 1fr-Teamspalten sind symmetrisch -> der Tipp-Block sitzt in
   JEDER Zeile exakt mittig und alle Zeilen fluchten sauber untereinander.
   Ersetzt das alte Flex + justify-content:space-between (verspringt je
   nach Namenslaenge). Eine Stelle, klar pflegbar.
   ==================================================================== */
body.tippen .game_container {
    display: grid;
    grid-template-columns: 1.75rem minmax(0, 1fr) auto minmax(0, 1fr) 1.75rem;
    align-items: center;
    column-gap: 0.5rem;
}
body.tippen .game_tip_status {
    display: flex;
    justify-content: center;
    padding: 0;
}
body.tippen .home_team {          /* fuellt die linke Spalte, rueckt an die Mitte */
    max-width: none;
    flex: unset;
    justify-content: flex-end;
}
body.tippen .away_team {          /* fuellt die rechte Spalte, rueckt an die Mitte */
    max-width: none;
    flex: unset;
    justify-content: flex-start;
}
body.tippen .game_tip {           /* zentrierter Tipp-Block, Breite aus Inhalt */
    width: auto;
    justify-content: center;
}
body.tippen .game_tip_inputs input {
    width: 2.4rem;                /* kompakte, gleich breite Ergebnisfelder */
}
body.tippen #reset {
    justify-self: center;
}

/* Dezenter Auto-Save-Indikator links auf Hoehe der Tipp-Legende.
   Im Ruhezustand unsichtbar; blitzt beim Speichern kurz auf.
   Groesse erbt von .title_with_legend span (passt zur Legende). */
.autosave_status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-weight: var(--fw-medium);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.autosave_status[data-state="saving"] { opacity: 1; color: var(--color-text-muted); }
.autosave_status[data-state="saved"]  { opacity: 1; color: var(--color-success); }
.autosave_status[data-state="error"]  { opacity: 1; color: var(--color-error); }

/* Zusatztipp-Auswahl (eine Karte je Frage): Select volle Breite, kein leeres Label */
body.tippen .card_content > label { margin: 0; }
body.tippen .card_content > label > span:empty { display: none; }
body.tippen .card_content select { margin: 0; width: 100%; }

.group_name {
    text-align: left;
    padding: var(--space-2) var(--space-2) var(--space-1) var(--space-2);
    border-bottom: 1px solid var(--color-border);
    text-transform: uppercase;
    font-size: var(--fs-2xs);
    letter-spacing: .5px;
    font-weight: bold;
}

.tippen_title {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

a.primary {
    background: var(--pico-background-success);
    border-color: var(--pico-background-success);
}

/* =========================================================================
   Action-Bar — einheitlicher, fixierter Aktionsbereich aller Formular-Seiten
   (Speichern / Beitreten / Erstellen ...). Wird zentral via action_bar()
   (core/common/common_functions.inc.php) gerendert.

   Slots (feste Reihenfolge im Markup): destruktiv (links) - sekundaer - primaer
   (rechts). Mobil: fixiert direkt ueber der unteren Icon-Nav. Desktop: spannt
   ueber den Inhaltsbereich rechts der Seitenleiste (siehe @media >=1024px).
   ========================================================================= */
/* Aeussere Leiste: fixiert + Hintergrund/Border. Mobil zentriert auf App-Breite,
   direkt ueber der unteren Icon-Nav. Traegt KEINE Polsterung/Flex (das macht
   __inner) -> Hintergrund kann auf Desktop vollflaechig spannen. */
.action-bar {
    position: fixed;
    bottom: var(--mobile-nav-height, 70px);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 360px;
    z-index: 998;                       /* unter Toast/Overlay (9999), ueber Inhalt */
    background: var(--color-surface-2);
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

/* Innerer Container: traegt Flex/Polsterung. Auf Desktop auf --content-max
   begrenzt und zentriert -> Buttons buendig zur Inhaltsspalte. */
.action-bar__inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-4);
    width: 100%;
    padding: var(--space-4);
    padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
}

/* Reserviert im normalen Fluss Platz, damit die fixe Leiste keinen Inhalt
   verdeckt: Hoehe der Leiste + untere Icon-Nav + Safe-Area. */
.action-bar-spacer {
    height: calc(var(--action-bar-h, 76px) + var(--mobile-nav-height, 70px) + env(safe-area-inset-bottom, 0px));
}

/* Buttons: einheitliche Hoehe/Polsterung, kein Eigen-Margin. Optik je Slot
   kommt aus den bestehenden Klassen button_save.primary (gruen),
   button_back (gedaempft) und button_delete (rot).
   Einheitliche Anordnung auf allen Breiten: natuerliche Breite, rechtsbuendiges
   Cluster (justify-content: flex-end am __inner). DOM-Reihenfolge destruktiv ->
   sekundaer -> primaer, d.h. Primaeraktion sitzt immer ganz rechts. */
.action-bar [role=button] {
    margin: 0;
    white-space: nowrap;
    padding: var(--space-3) var(--space-5);
    flex: 0 0 auto;
    text-align: center;
}

.tippen_title select {
    background: black;
    width: auto !important;
    margin: 0;
    padding: 10px !important;
    padding-right: 5px !important;
    appearance: auto !important;
    color: white;
}
  
.marquee_content span {
    display: inline-block;
    animation: marquee 25s linear infinite; 
}

@keyframes marquee {
    from {
      transform: translateX(0); 
    }
    to {
      transform: translateX(-100%);
    }
  }



/* .primary {
    background: #0077A5;
    border-color: #0077A5;
} */


.plant_card_detail {
    display: flex;
    justify-content: space-between;
    padding-block-end: calc(var(--pico-spacing) / 2);
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none!important;
  margin: 0!important;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield!important;
}

.plant_card_detail:last-child {
    padding-block-end: 0;
}

.primary:hover {
    --pico-primary-hover: #fff;
    color: var(--pico-primary-hover);
}

.card_title_count {
    font-size: var(--fs-xl);
}

.ql-formats [type=button]  {
    margin: 0;
}

.ql-formats [role=button] {
    background: transparent;
    color: black;
    border: 0;
    text-align: left;
    padding: 0;
}

.ql-toolbar {
    border-top-left-radius: var(--pico-border-radius);
    border-top-right-radius: var(--pico-border-radius);
}

input#open_editor {
    cursor: pointer;
}

.cardform_section label i {
    position: absolute;
    right: 15px;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

a.missing_translation {
    position: relative;
}

a.missing_translation i {
    right: -25px;
    top: 11px;
}

.ql-container {
    min-height: 200px;
    border-bottom-left-radius: var(--pico-border-radius);
    border-bottom-right-radius: var(--pico-border-radius);
}

.ql-editor {
    min-height: 200px;
}

.ql-snow .ql-picker-label {
    padding: 0;
    padding-left: 8px;
    padding-right: 2px;
}



.buttonbar .secondary {
    --pico-color: var(--pico-color-nav);
    background: var(--pico-secondary-background-button-bar);
    border-color: var(--pico-border-color-button-bar);
}

.buttonbar a[role=button] i {
    margin-left: 5px;
    font-size: var(--fs-xs);
    top: -1px;
    position: relative;
}

mark {
    padding: 0.125rem 0.5rem;
    background: var(--pico-active-tree);
    border-radius: calc(var(--pico-border-radius) / 1.5);
}

.register_title {
    margin-top: 10px;
}

.register_radio_group label {
    border: 1px solid var(--pico-form-element-border-color);
    padding: var(--pico-spacing);
    border-radius: var(--pico-border-radius);
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    flex: 1;
    justify-content: flex-end;
}
.register_radio_group label:hover {
    background: #f6f6f6;
}

.register_radio_group {
    display: flex;
    align-items: center;
    gap: var(--pico-spacing);
}

a.circle_button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-text);
    max-width: 20%;
    font-size: var(--fs-sm);
    gap: var(--space-1);
    line-height: var(--lh-tight);
}
/* Icons markenfarbig & theme-aware (SVGs nutzen currentColor). */
a.circle_button svg { color: var(--brand); transition: transform .15s ease, opacity .15s ease; }
a.circle_button:hover svg { transform: translateY(-2px); }
a.circle_button:active svg { transform: translateY(0); opacity: .85; }

h1 {
    font-size: var(--fs-xl);
}

h3 {
    font-size: var(--fs-base);
}

/* ====================================================================
   LOGIN / REGISTRIERUNG — zentrierte Karte, an Design-Tokens orientiert
   (ruhiger Hintergrund + Surface-Karte, sauber auf Desktop wie mobil).
   ==================================================================== */
body.login {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    background-color: var(--color-bg);
    background-image:
        radial-gradient(60rem 60rem at 85% -10%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%),
        radial-gradient(50rem 50rem at -10% 110%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 60%);
}

.login_shell {
    width: 100%;
    max-width: 420px;
    padding: 0;
    margin: 0;
}

.login_card {
    width: 100%;
    margin: 0;
    padding: var(--space-8) var(--space-7);
    background: var(--color-surface-1);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    animation: fadeUp 0.4s forwards;
}

.login_brand {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-6);
}

.login_logo {
    width: 132px;
    height: auto;
    cursor: pointer;
}

[data-theme="dark"] .login_logo {
    filter: brightness(0) invert(1);
}

.login_intro {
    text-align: center;
    margin-bottom: var(--space-6);
}

.login_intro h1 {
    margin: 0 0 var(--space-2);
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    color: var(--color-text-strong);
    padding: 0;
}

.login_intro p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
}

.login_back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    text-decoration: none;
}

.login_back:hover {
    color: var(--color-text);
}

.login_forgot {
    display: block;
    margin-top: var(--space-2);
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    text-align: right;
    text-decoration: none;
}

.login_forgot:hover {
    color: var(--color-text);
}

.login form label {
    display: block;
    margin-bottom: var(--space-1);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text);
    position: static;
}

.login_optional {
    color: var(--color-text-muted);
    font-weight: var(--fw-regular);
}

.login_password {
    position: relative;
}

.login_submit {
    width: 100%;
    margin-top: var(--space-2);
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: var(--fw-medium);
}

.login_submit:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
}

.login_theme_toggle {
    position: fixed;
    top: var(--space-5);
    right: var(--space-5);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background: var(--color-surface-1);
    color: var(--color-text-muted);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.login_theme_toggle:hover {
    color: var(--color-text);
    background: var(--color-surface-2);
}

p.error {
    color: red;
    text-decoration: underline;
}

.small_image {
    max-width: 137px;
    margin-block: 1rem;
}

#mobile-menu li.level_1.spacer {
    display: none;
}

.topbar_toolbar li.level_1 i {
    width: 12px;
}

.topbar_toolbar li.level_1 a {
    display: flex !important;
    align-items: center;
    gap: 13px;
}

.large_padding {
    padding: 40px;
}

.small_container {
    max-width: 890px;
}

    /* Hide scrollbar for Chrome, Safari and Opera */
    .tabbar::-webkit-scrollbar {
        display: none;
      }
      
      /* Hide scrollbar for IE, Edge and Firefox */
      .tabbar {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
      }

section.login_link {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.map {
    overflow: hidden;
}

main {
    padding-bottom: 200px;
}

a.link_after_table {
    padding: 11px;
    display: block;
    border-top: 1px solid var(--pico-form-element-border-color);
}

section.topbar {
    display: flex;
    width: 100%;
    background: var(--pico-primary-background);
    height: var(--pico-topbar-height);
    align-items: center;
    justify-content: space-between;
    padding: var(--pico-spacing);
    margin: 0;
    z-index: 999;
    border-bottom: 1px solid var(--pico-form-element-border-color);
}

.logo_image {
    display: block;
    width: 165px;
    max-width: 46vw;
    max-height: 34px;
    object-fit: contain;
}

/* Logo (dunkle Zeichnung) nur im Dark-Mode invertieren -> sonst weiss/unsichtbar im Light-Mode. */
[data-theme="dark"] .logo_image,
[data-theme="dark"] .login_header .small_image {
    filter: brightness(0) invert(1);
}

.leaflet-bar a,
.leaflet-control-layers-toggle {
    display: block;
}

.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
    border: none;
}

.swiper {
    width: 100%;
    height: 100%;
  }

  .swiper-slide {
    background-color: var(--pico-background-cardform);
    height: 140px;
    display: flex;
    flex-direction: column;
    gap: 35px;
    justify-content: space-between;
    padding: var(--pico-spacing);
    border-radius: var(--pico-border-radius);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 0px;
}



section.load_group_list {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    flex-wrap: wrap;
}

section.load_group_list > .swiper-slide {
    flex: 1 1 50%;
}

section.load_group_list .swiper-slide h2 {
    max-width: 100%;
}

/* Gruppen-Kacheln (Dashboard + Gruppenliste) haben einen Foto-Hintergrund ->
   gesamter Kachel-Text immer hell, sonst im Light-Mode dunkel & unleserlich.
   Scope auf .swiper-slide, da .list_item auch als helle Tabellenzeile vorkommt. */
.list_item.swiper-slide,
.list_item.swiper-slide h2,
.list_item.swiper-slide h3 {
    color: #fff;
}


.blue,
.group_image_1 {
    background-image: url(/assets/content/img/tip4sports_blue.jpg);
}
.red,
.group_image_3 {
    background-image: url(/assets/content/img/tip4sports_red.jpg);
}
.green,
.group_image_2 {
    background-image: url(/assets/content/img/tip4sports_green.jpg);
}

.profil_menu_item details {
    padding-inline: 1.5rem;
    margin-bottom: 0;
}

.profil_menu_item details summary {
    color: var(--color-text);
    font-size: var(--fs-base);
}

.profil_menu_item details summary i {
    margin-right: 10px;
    background: grey;
    padding: 7px;
    font-size: var(--fs-sm);
    border-radius: var(--pico-border-radius);
}

.quill_editor {
    color: black !important;
    background: white;
    border-radius: var(--pico-border-radius);
}

.ql-editor {
    color: black!important;
}

.error .profil_menu_item:last-child > hr {
    margin-top: 0;
}

img.team_flag_progress {
    width: 30px;
    height: 22px;
    max-width: 30px;
    margin-top: -3px;
    border-radius: 4px;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,.25));
}

.profil_image_container {
    max-width: 170px;
    margin: auto;
    margin-bottom: 1rem;
}

.profil h1 {
    font-size: var(--fs-xl);
}


.profil_image_container img {
    border-radius: 999px;
    aspect-ratio: 1;
    object-fit: cover;
    height: 170px;
}

.disabled .game_tip_status,
.disabled div#reset {
    opacity: 0;
}

hgroup.center {
    text-align: center;
}

hr {
    border-top: 1px solid var(--pico-form-element-border-color);
}

.game_tip_status {
    padding: 5px;
    display: block;
}

.game_list img {
    max-width: 20px;
}

.profil_menu_item label {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--pico-form-element-border-color);
    justify-content: space-between;
    width: 100%;
}

.profil_menu_item label:last-child  {
    border-bottom: 0;
}

.profil_menu_item input[type=text] {
    max-width: 70%;
    background: transparent;
    border: 0;
    text-align: right;
    color: var(--color-text);
}

.profil_menu_item:first-child {
    padding-top: 1rem;
}

.profil_menu_item details summary::after {
    height: 28px;
}
details[open]>summary:not([role]):not(:focus) i,
details summary:focus:not([role]) i {
    background: var(--pico-primary-background);
    color: white;
}

details[open]>summary:not([role]):not(:focus) {
    color: var(--pico-primary);
}



.group_card_info span {
    font-size: var(--fs-2xs);
    font-weight: normal;
    display: block;
    margin-bottom: 2px;
    color: white;
}

.swiper-slide p {
    color: white; 
}

.swiper-slide h2 {
    margin: 2px;
    font-size: var(--fs-md);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 75%;
}

.swiper-slide h3 {
    font-size: var(--fs-base);
    margin: 0;
}

.group_card_info {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}



span.swiper-pagination-bullet {
    padding: 0;
}

.leaflet-bar a {
    background-color: #fff;
    border-bottom: 1px solid #ccc;
    width: 26px;
    height: 26px;
    line-height: 26px !important;
    display: block;
    text-align: center;
    text-decoration: none;
    color: black;
    padding: 0;
    border-radius: 0;
    outline: none;
    border: 0;
    margin-bottom: 5px;
}

.titlebar h4 {
    margin: 0;
}

.section_group {
    display: grid;
    gap: calc(var(--pico-grid-column-gap)* 1.5);
    grid-template-columns: repeat(auto-fit, minmax(20%, 1fr));
    align-items: flex-start;
}

table.dataTable>tbody>tr.child ul.dtr-details {
    width: 100%;
}

#contactsTable td {
    white-space:nowrap;

}

#map {
    width: 100%;
    height: 96vh;
    overflow: hidden;
}

#systemMap {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.leaflet-popup-content {
    font-size: var(--fs-sm);
}

a.add_clarification {
    background: transparent;
    opacity: .5;
}

a.add_clarification:hover {
    opacity: 1;
}

:where(fieldset[disabled]) :is(input:not([type=submit],[type=button],[type=reset]),select,textarea), input:not([type=submit],[type=button],[type=reset])[disabled], label[aria-disabled=true], select[disabled], textarea[disabled] {
    opacity: 1;
    background: transparent;
    color: grey;
}

.leaflet-container a.leaflet-popup-close-button {
    padding: 0;
}

.leaflet-container .leaflet-marker-pane img, .leaflet-container .leaflet-shadow-pane img, .leaflet-container .leaflet-tile-pane img, .leaflet-container img.leaflet-image-layer, .leaflet-container .leaflet-tile {
    background: transparent;
    border: 0;
}

input#listform_search {
    max-width: 282px;
}

.change_language img {
    margin-right: 5px;
    display: block;
}

.collection_content.news_author {
    font-style: italic;
    opacity: .7;
    font-size: var(--fs-xs);
}

nav a:hover {
    color: var(--pico-primary);
}

details.change_language summary+ul li a {
    display: flex;
    align-items: center;
    width: max-content;
}

.footer_link {
    display: flex;
    gap: var(--pico-spacing);
    flex-wrap: wrap;
}

.topbar_toolbar {
    display: flex;
    align-items: center;
    gap: calc(var(--pico-spacing) / 2);
}

/* .topbar_toolbar details.dropdown summary::after {
    display: none;
} */

section.topbar details {
    margin: 0;
}

a i {
    font-size: var(--fs-xs);
}

.card_content:has(iframe) {
    padding: 0;
}

.news_title {
    -webkit-line-clamp: 2;
    overflow: hidden;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.news_teaser {
    -webkit-line-clamp: 3;
    overflow: hidden;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    padding-block-end: 0 !important;
    margin-bottom: var(--pico-spacing);
}

.topbar_toolbar details.dropdown summary+ul,
.login_header details.dropdown summary+ul,
.card_header details.dropdown summary+ul {
    left: unset;
    right: 0;
}

span.state_1 {
    background: var(--pico-background-success);
    padding: 2px 7px;
    border-radius: 5px;
    color: white;
}



span.state_0 {
    background: var(--pico-background-error);
    padding: 2px 7px;
    border-radius: 5px;
    color: white;
}

span.state_2 {
    background: var(--pico-background-warning);
    padding: 2px 7px;
    border-radius: 5px;
    color: white;
}

legend.legend_closed:before {
    rotate: 180deg;
}

.login footer {
    position: absolute;
    bottom: 0;
    left: 0;
}

.sidebar {
    width: var(--pico-sidebar-width);
    height: 100%;
    position: fixed;
    left: 0;
    top: var(--pico-topbar-height);
    background: var(--pico-background-cardform);
    padding: var(--pico-spacing);
    border-right: 1px solid var(--pico-form-element-border-color);
    padding-left: 0;
}

table ul li {
    list-style: none;
}

.ui.pagination.menu .active.item {
    color: var(--pico-color);
}

#systemTypeTable label {
    width: 100%;
    height: 100%;
}

/* #systemTypeTable label span {
    background: lightgray;
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 999px;
} */

/* table#systemTypeTable {
    table-layout: fixed;
} */

/* #systemTypeTable label .Inaktiv {
    background: var(--pico-background-error);
}

#systemTypeTable label .Aktiv {
    background: var(--pico-background-success);
} */


table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before, table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
    border-left: 10px solid var(--pico-color);
}

.ui.menu .item {
    color: var(--pico-color);
}



.app {
    max-width: 360px;
    margin: 0 auto;
    min-height: 100vh;

    background: var(--pico-background-color);
}

.sidebar nav li {
    width: 100%;
    padding: 0;
    position: relative;
}

.sidebar li.level_1 a {
    display: flex;
    align-items: center;
    gap: calc(var(--pico-spacing) / 1.5);
    line-height: 1;
    padding: 10px;
    margin: 0;
    color: var(--pico-color-nav);
    padding-left: var(--pico-spacing);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.dtsb-searchBuilder input,
.dtsb-searchBuilder select,
.dtsb-searchBuilder textarea {
    width: auto;
}

li.level_1.active_tree a {
    background: var(--pico-active-tree);
    color: var(--pico-primary);
    position: relative;
}
li.level_1 a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: var(--fs-2xs);
    line-height: 1;
    gap: 5px;
    width: 100%;
    flex: 1;
}

.card_content td.name {
    max-width: 92px;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
    overflow: hidden;
}

footer nav {
    width: 100%;
}


.sidebar li.level_1:not(.spacer) a:hover {
    background: var(--pico-active-tree);
    color: var(--pico-primary);
    position: relative;
}

.sidebar li.level_1:not(.spacer) a:hover:before {
    content: '';
    width: 3px;
    height: 100%;
    position: absolute;
    background: var(--pico-primary);
    left: 0;
    top: 0;
}

.marquee_content a:hover {
    color: var(--pico-secondary-inverse);
}



.sidebar nav ul {
    flex-direction: column;
    align-items: baseline;
    width: 100%;
    margin-left: 0;
}

.topbar_toolbar [role=button] {
    padding: 5px 10px;
    background: var(--pico-secondary-background-button-bar);
    border-color: var(--color-border);
    color: var(--color-text);
}

.sidebar li.level_1 a i {
    font-size: var(--fs-sm);
    aspect-ratio: 1;
    width: 14px;
}

li.level_1.spacer {
    margin-top: 20px;
}

li.level_1.spacer a {
    font-size: var(--fs-xs);
    font-weight: 500;
    padding-block-end: 5px!Important;
    color: var(--pico-color-nav-secondary);
}

.sidebar li.level_1.levels:after {
    width: 7px;
    height: 7px;
    transition: 0.5s;
    transform: rotate(225deg);
    position: absolute;
    cursor: pointer;
    background: transparent !important;
    border-top: 1px solid var(--pico-contrast);
    border-left: 1px solid var(--pico-contrast);
    content: '';
    top: 13px;
    right: 0px;
}

.ui.pagination.menu .item a {
    color: inherit;
}

.sidebar li.level_1.levels:hover:after {
    transform: rotate(45deg);
    top: 13px;
}

.sidebar ul.level_2 {
    position: relative;
    padding-left: 10px;
    border-left: 1px solid var(--pico-primary);
    margin-left: 15px;
    display: none;
}

.sidebar li.level_1.levels:hover ul.level_2 {
    display: block;
}

.sidebar li.level_2 {
    margin: 0;
    padding: 0;
}

.no_padding {
    padding: 0;
}

.dashboard .game_list img {
    max-width: 25px;
}

.toolbar {
    position: fixed;
    top: var(--pico-topbar-height);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - var(--pico-sidebar-width));
    z-index: 998;
    max-width: 390px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    white-space: nowrap;
    padding: var(--pico-spacing);
}

.toolbar > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--pico-spacing);
}

.toolbar details.dropdown {
    margin-bottom: 0;
}

a.toggle-vis {
    position: relative;
    padding-right: 35px !important;
}

a.toggle-vis:after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--pico-form-element-border-color);
    display: block;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 999px;
}

a.toggle-vis.active_column:after {
    background: var(--pico-background-success);
}


.table_content th {
    padding-block: 5px !important;
    font-size: var(--fs-xs);
}

div.dt-container.ui.grid > div.row:first-child {
    padding-top: 0;
    padding-bottom: 0;
}

td.table_team {
    font-size: var(--fs-xs);
    display: flex;
    align-items: center;
    color: var(--color-text);
}

img.table_team_flag {
    width: 28px;
    height: 20px;
    max-width: 28px;
    margin-right: 7px;
    border-radius: 4px;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,.25));
}

img.team_flag {
    width: 38px;
    height: 26px;
    border-radius: 4px;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,.25));
}

.tip_section  .card {
    margin-bottom: 1rem;
}

div.dt-container.ui.grid > div.row:nth-child(2) {
    padding-top: 3px;
    padding-bottom: 3px;
}

.ui.selection.dropdown {
    line-height: unset;
}

.dtsb-searchBuilder input:not([type=checkbox],[type=radio],[type=range],[type=file]),
.dtsb-searchBuilder select,
.dtsb-searchBuilder textarea {
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
}
.cardform_section label:has(input[type="checkbox"]):before {
    display: none!important;
}

div.dtsb-searchBuilder div.dtsb-titleRow,
.date_filter_builder .date_filter_builder_title_row {
    margin-bottom: 1em;
    background: var(--pico-table-th-color);
    border-top-left-radius: var(--pico-border-radius);
    border-top-right-radius: var(--pico-border-radius);
    padding: var(--pico-spacing);
    border-bottom: 1px solid var(--pico-form-element-border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
}

div.dtsb-searchBuilder div.dtsb-group div.dtsb-logicContainer button.dtsb-logic {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

div.dtsb-searchBuilder div.dtsb-group div.dtsb-logicContainer button.dtsb-clearGroup {
    border-bottom-right-radius: 0;
}

.date_filter_builder_group {
    padding: var(--pico-spacing);
    padding-top: 0;
    display: flex;
    align-items: center;
    gap: var(--pico-spacing);
    flex-wrap: wrap;
}

.toolbar .primary {
    background: var(--pico-background-success);
}

.titlebar .primary {
    background: var(--pico-background-success);
    border: 0;
}

#contactsTable table {
    border-right: 1px solid var(--pico) !important;
}

div.dtsb-searchBuilder div.dtsb-group div.dtsb-logicContainer {
    margin-left: 14px;
}

div.dtsb-searchBuilder div.dtsb-group {
    padding-inline: var(--pico-spacing);
    margin-bottom: var(--pico-spacing);
}

div.dtsb-searchBuilder div.dtsb-titleRow div.dtsb-title {
    padding-top: 0;
}

.ui.table>thead>tr>th {
    background: var(--pico-table-th-color);
    color: var(--color-text-strong);
}

.card .ui.table>thead>tr>th {
    background: transparent;
}

.ui.table>tbody>tr>td, .ui.table>tr>td {
    border-top: 1px solid var(--pico-form-element-border-color);
}

.outline {
    border: 1px solid var(--pico-form-element-border-color);
    color: var(--color-text);
    background: var(--pico-background-cardform);
}

.tabbar .outline 
{
    background: transparent;
}

.active {
    background: linear-gradient(0deg, rgba(63, 127, 171, 1) 0%, rgba(27, 65, 91, 1) 100%);
    color: #fff;
    border-color: transparent;
}

div.dt-button-split {
    border-left: 0;
    border-radius: var(--pico-border-radius);
    overflow: hidden;
}

.ui.buttons .button:first-child {
    border-top-left-radius: var(--pico-border-radius);
    border-bottom-left-radius: var(--pico-border-radius);
}

.ui.buttons .button:last-child {
    border-top-right-radius: var(--pico-border-radius);
    border-bottom-right-radius: var(--pico-border-radius);
}

div.dt-button-collection.ui.dropdown {
    background: white;
}

.ui.table>thead>tr>th {
    border-bottom: 1px solid var(--pico-form-element-border-color);
}

table.dataTable.table > tbody > tr.selected > * {
    box-shadow: inset 0 0 0 9999px rgb(var(--dt-row-selected));
    color: rgb(var(--dt-row-selected-text));
}

.ui.table,
.ui.menu {
    border-radius: var(--pico-border-radius)!important;
    background: transparent!important;
}

.page_content .divider {
    padding-block-end: var(--space-7);
}

.ui.table>thead>tr:first-child>th:last-child {
    border-radius: 0 var(--pico-border-radius) 0 0;
}

.ui.table>thead>tr:first-child>th:first-child {
    border-radius: var(--pico-border-radius) 0 0 0;
}

.ui.grid {
    grid-column-gap: 0;
    grid-row-gap: 0;
    display: inherit;
}



div.dt-container.ui.grid div.dt-search span.input {
    margin-left: 0;
}

.dt-length {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
}

.feed_content .divider {
    font-size: var(--fs-2xs);
    gap: 10px;
}

img.feed_flag {
    max-width: 20px;
    height: 20px;
    object-fit: contain;
}

a.feed_user {
    text-decoration: underline;
    color: var(--color-text);
}

.feed_content {
    padding: 1rem;
    padding-top: 0;
    padding-bottom: 0;
}

.feed_textcontent {
    display: flex;
    align-items: center;
    padding: 1rem;
    position: relative;
    border-left: 1px solid var(--pico-form-element-border-color);
    margin-left: 10px;
    padding-left: 0px;
}

.feed_text {
    font-size: var(--fs-xs);
}

.feed_date {
    position: absolute;
    right: 0;
    top: 1rem;
    font-size: var(--fs-2xs);
}

img.feed_user_image {
    max-width: 30px;
    position: relative;
    left: -15px;
    border-radius: 999px;
    object-fit: cover;
    height: 30px;
}

.feed_title {
    color: var(--color-text-strong);
    font-weight: bold;
    padding: 1rem;
    border-bottom: 1px solid var(--pico-form-element-border-color);
}

.cardform_section {
    background: var(--pico-background-cardform);
    border-radius: var(--pico-border-radius);
    border: 1px solid var(--pico-form-element-border-color);
    grid-column: span 3;
}

.cardform_section .titlebar {
    margin-top: 0;
    padding-top: 0;
}

aside {
    grid-column: span 1;
}

.toolbar .primary {
    border: 0;
}

.toolbar [role=button]:not(.primary) {
    background: var(--pico-secondary-background-button-bar);
    color: var(--pico-contrast);
    border: none;
    padding: 5px 13px;
    border-radius: 7px;
}

.toolbar .primary {
    border: 0;
}

.toolbar details.dropdown[open] summary+ul:before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--pico-dropdown-background-color);
    position: absolute;
    left: 20px;
    top: -5px;
    rotate: 45deg;
}

.tabbar [role=button] {
    border: none;
    font-weight: 600;
    color: var(--color-text)!important;
    border-radius: 0;
    padding: 5px 10px;
}

.game_score {
    background: black;
    color: #fff;
    display: inline-block;
    max-width: 50px;
    margin: 0 auto;
    width: 100%;
    padding: 5px;
    border: 1px solid #353535;
    border-radius: var(--pico-border-radius);
}

.game_score.active {
    background: var(--pico-background-success);
    display: inline-block;
    max-width: 50px;
    margin: 0 auto;
    width: 100%;
    padding: 5px;
    border: 1px solid var(--pico-background-success);
    border-radius: var(--pico-border-radius);
}

.schedule .game_score {
    background: black;
    color: #fff;
    display: inline-block;
    max-width: 57px;
    margin: 0 auto;
    width: 100%;
    padding: 8px 4px;
    font-size: var(--fs-base);
    border: 1px solid #353535;
    border-radius: var(--pico-border-radius);
}

.card_title h3 i {
    margin-right: 8px;
}

.plant_card {
    padding: var(--pico-spacing);
    font-size: var(--fs-xs);
}

.offer_card {
    padding: var(--pico-spacing);
    color: var(--pico-color-nav);
}

.offer_card > div {
    padding-block-end: calc(var(--pico-spacing) / 2);
}

.offer_article_price {
    text-align: right;
    padding-block-end: 0!important;
}

.offer_article_price_info {
    text-align: right;
    font-size: var(--fs-xs);
    padding-block-end: 0!important;
}

.plant_card_status, .card_icon {
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.without_card_content {
    border-bottom: none;
}

img.offer {
    width: 100%;
    padding: var(--pico-spacing);
    object-fit: contain;
    max-height: 250px;
    border-bottom: 1px solid var(--pico-border-color-button-bar);

}

.plant_card_status span {
    margin-block-start: 2px;
    width: 8px;
    height: 8px;
    display: block;
    border-radius: 999px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
      transform: scale(0.95);
      box-shadow: 0 0 0 0 rgba(202, 202, 202, 0.7);
    }
    
    70% {
      transform: scale(1);
      box-shadow: 0 0 0 10px rgba(226, 5, 18, 0);
    }
    
    100% {
      transform: scale(0.95);
      box-shadow: 0 0 0 0 rgba(226, 5, 18, 0);
    }
  }

#green,
#status_1 {
    background: var(--pico-background-success);
}

img.table_image {
    width: 19px;
    height: 19px;
    object-fit: contain;
}

#yellow,
#status_2 {
    background: var(--pico-background-warning);
}

#status_0 {
    background: var(--pico-background-error);
}

.plant_card_progress {
    padding: var(--pico-spacing);
}

.progress_label progress {
    margin: 0;
}

.card_group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.plant_card_progress .activity {
    margin-bottom: 0;
}

.card_group .divider {
    width: 100%;
    padding-bottom: 0;
}

.card_100 {
    flex: 1 1 100%
}
.card_33 {
    flex: 1 1 23%
}
span.progress_title {
    font-size: var(--fs-xl);
    color: var(--color-text-strong);
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.progress_label {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 74%;

}

.progress_with_title {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

.progress_with_title progress {
    margin-bottom: 0;
}

/* .cardform_section fieldset:not(:has(.direct_table)) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(31%, 1fr));
    gap: var(--pico-grid-column-gap);
    padding-bottom: var(--pico-spacing);
} */

table.dataTable input.dt-select-checkbox:checked:after {
    display: none;
}

table.dataTable>tbody>tr.selected input.dt-select-checkbox:checked {
    border: 0;
}

table.dataTable input.dt-select-checkbox {
    font-size: inherit;
}

.cardform_section fieldset legend {
    width: 100%;
    border-bottom: 1px solid var(--pico-form-element-border-color);
    padding-block-end: calc(var(--pico-spacing) / 2);
    margin-bottom: var(--pico-spacing);
    font-size: var(--fs-md);
    font-weight: 600;
    writing-mode: horizontal-tb;
    position: relative;
    cursor: pointer;
}

.cardform_section fieldset legend:before {
    width: 7px;
    height: 7px;
    transition: 0.5s;
    transform: rotate(225deg);
    position: absolute;
    cursor: pointer;
    background: transparent !important;
    border-top: 1px solid var(--pico-form-element-toggle);
    border-left: 1px solid var(--pico-form-element-toggle);
    content: '';
    top: 8px;
    right: 2px;
}

nav li a {
    color: var(--color-text);
}

a.circle_button svg {
    max-width: 55px;
}

/* Gefuellte Brand-Kreis-Buttons (Tipps abgeben / Spielplan): das innere Icon
   hat im SVG kein fill -> default schwarz. Auf dem roten Kreis explizit weiss.
   Outline-Buttons (.circle_outline) behalten ihr rotes Icon. */
a.circle_button:not(.circle_outline) svg path {
    fill: #fff;
}

li.level_1 a i {
    font-size: var(--fs-base);
}

hgroup {
    margin-bottom: var(--space-6);
}

h2 {
    --pico-font-size: var(--fs-base);
}

a.button_save.primary {
    background: var(--pico-background-success);
    border-color: var(--pico-background-success);
}
a.game_container:hover {
    color: var(--color-text);
}

.game_container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: var(--space-3);
    padding-inline: var(--space-2);
    gap: var(--space-2);
    color: var(--color-text);
    border-bottom: 1px solid var(--pico-form-element-border-color);
}

footer:before {
    content: '';
    background: linear-gradient(0deg, black, transparent);
    position: absolute;
    left: 0;
    height: 100px;
    width: 100%;
    bottom: 100%;
    pointer-events: none;
}

h2.card_title_extern span {
    font-weight: var(--fw-medium);
    font-size: var(--fs-sm);
}
/* "Mehr / Alle"-Links neben Ueberschriften: klein, ruhig, nicht so gross wie die H2 */
h2.card_title_extern span a {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
h2.card_title_extern span a:hover {
    color: var(--color-text-strong);
}

.game_container:last-child {
    border: 0;
}

h2.card_title_extern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Vertikaler Rhythmus: Luft zur eigenen Card darunter + Trennung vom
       vorigen Block darueber. Werte aus der Spacing-Skala (kein Hartwert). */
    margin: var(--space-6) 0 var(--space-3);
}
/* Erste Section-Ueberschrift braucht oben keine Extra-Luft. */
h2.card_title_extern:first-child {
    margin-top: 0;
}

.game_time {
    text-align: center;
    display: flex;
    flex-direction: column;
    color: var(--color-text-strong);
    gap: var(--space-1);
    font-size: var(--fs-sm);
    line-height: var(--lh-tight);
}

.game_time span {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
}

.tippen .home_team {
    flex: unset;
    max-width: 47px;
}

.home_team {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-xs);
    justify-content: flex-end;
    text-align: right;
    flex: 1;
    cursor: pointer;
}

.away_team {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-xs);
    justify-content: flex-start;
    text-align: left;
    flex: 1;
    cursor: pointer;
}

.tippen .away_team {
    flex: unset;
}

html {
    background-color: var(--color-bg);
}

footer {
    position: fixed;
    bottom: 0;
    max-width: 360px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-surface-3);
    height: calc(70px + env(safe-area-inset-bottom, 0px));
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 999;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

footer nav ul {
    flex-direction: row;
    width: 100%;
    padding-inline: 1rem;
    justify-content: space-between;
    gap: 1rem;
}

nav li {
    padding: 0px;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.topbar select {
    background: #000;
    appearance: auto !important;
    color: white !important;
    width: auto;
    padding-right: 0px;
}



.tabbar {
    display: flex;
    margin-bottom: var(--pico-spacing);
    border-bottom: 1px solid var(--pico-form-element-border-color);
    padding-left: 2px;
    padding-block-start: 2px;
}

.buttonbar {
    padding-block-end: var(--pico-spacing);
    display: flex;
    gap: var(--pico-spacing);
    flex: 1;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}




.titlebar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-block: var(--pico-spacing);
    justify-content: space-between;
    margin-block-start: var(--pico-spacing);
}

.titlebar h1 {
    margin: 0;
}

.tabbar [role=button]:hover {
    border-bottom: 2px solid var(--pico-secondary);
}

.page_content {
    padding-block: calc(var(--pico-spacing)* 2);
}

[role=button]:is([aria-current]:not([aria-current=false])) {
    border-bottom: 2px solid var(--pico-primary);
    color: var(--pico-primary);
}

details#mobile-menu {
    display: none;
}

.login input,
.login select {
    background-color: var(--color-bg);
    color: var(--color-text);
    border-color: var(--color-border);
}

.login input::placeholder {
    color: var(--color-text-muted);
}

.login input:focus,
.login select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent);
}

input[type="submit"] {
    background: var(--pico-primary-background);
    color: white;
}

fieldset.submit {
    padding-block-start: 1rem;
}

.login_form_container {
    min-height: 100vh;
    background: transparent;
}

.divider {
    text-align: center;
    display: flex;
    align-items: center;
    gap: var(--pico-spacing);
    padding-block: var(--pico-spacing);
    white-space: nowrap;
}

.divider:before {
    content: '';
    width: 100%;
    height: 1px;
    background: var(--pico-form-element-border-color);
    display: inline-block;
}

.game_list .divider {
    padding-block: .5rem;
    color: var(--color-text);
    background: var(--pico-form-element-border-color);

}

.game_list .divider:after, .game_list .divider:before {
    background: #656565;
}

.divider:after {
    content: '';
    width: 100%;
    height: 1px;
    background: var(--pico-form-element-border-color);
    display: inline-block;
}

section.external_links {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--pico-spacing);
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
}

a#reset_registration {
    text-decoration: none;
}

/* form#form_register,
a#reset_registration,
form#form_register_commercial {
    display: none;
    animation: fadeUp 0.5s forwards;
} */


.tip_section,
section.bar_container,
.section.column_container,
.page_content,
.register_process {
    animation: fadeUp 0.5s forwards;
}

hgroup.tippen_title h1 span {
    font-size: var(--fs-xs);
    display: block;
    font-weight: 300;
    margin-top: 6px;
}

fieldset.location,
fieldset.name {
    display: flex;
    gap: var(--pico-spacing);
}

label#input_post_code {
    max-width: 105px;
}

img.login_background {
    width: 58%;
    object-fit: cover;
}

.w-100 {
    width: 100%;
}

[data-tooltip]:not([data-position])::after {
    margin-bottom: unset!important;
}

[data-tooltip]:not([data-position])::before {
    top: unset!important;
    right: unset!important;
    margin-left: unset!important;
    margin-bottom: unset!important;
}

[data-tooltip]::after, [data-tooltip]::before {
    transition: unset!important;
}

[data-tooltip]:hover::before {
    transform: unset !important;
}

[data-tooltip]:hover::before {
    transform: translate(-50%,-.25rem) !important;
}

[data-tooltip]:not(a,button,input) {
    border-bottom: unset;
    text-decoration: unset;
    cursor: help;
}

[data-tooltip]::before {
    transform: unset !important;
    transform-origin: unset!important;
}

[data-tooltip]::before {
    width: unset!important;
    height: unset!important;
    box-shadow: unset !important;
}

[data-tooltip]::after {
    pointer-events: unset!important;
    content: inherit!important;
    position: unset!important;
    text-transform: unset!important;
    text-align: unset!important;
    text-shadow: unset!important;
    white-space: unset!important;
    border: unset!important;
    line-height: unset!important;
    max-width: unset!important;
    background: unset!important;
    padding: unset!important;
    font-weight: unset!important;
    font-style: unset!important;
    color: unset!important;
    border-radius: unset!important;
    box-shadow: unset!important;
    z-index: 1900!important;
}

a.button_delete {
    background: var(--pico-background-error) !important;
    color: white !important;
}

[data-tooltip]:hover::after, [data-tooltip]:hover::before {
    visibility: unset;
    pointer-events: unset;
    opacity: 1;
}

[data-tooltip]::after {
    transform-origin: unset;
}

[data-tooltip]:hover::after, [data-tooltip][data-position="bottom center"]:hover::after {
    transform: unset !important;
}

[data-tooltip]::after, [data-tooltip]::before, [data-tooltip][data-placement=top]::after, [data-tooltip][data-placement=top]::before {
    display: block;
    z-index: 99;
    position: absolute;
    bottom: 100%!important;
    left: 50%!important;
    padding: .25rem .5rem;
    overflow: hidden;
    transform: translate(-50%, -.25rem)!important;
    border-radius: var(--pico-border-radius);
    background: var(--pico-tooltip-background-color)!important;
    content: attr(data-tooltip);
    color: var(--pico-tooltip-color);
    font-style: normal;
    font-weight: var(--pico-font-weight);
    font-size: .875rem;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    z-index: 99999!important;
}

[data-tooltip][data-placement=right]::after, [data-tooltip][data-placement=right]::before {
    top: 50%!important;
    right: auto!important;
    bottom: auto!important;
    left: 100%!important;
    transform: translate(.25rem, -50%)!important;
}

.small_container {
    padding: 0;
}


@media (min-width: 1736px) {


    .container {
        max-width: 1620px;
    }

    .notificationbar {
        max-width: 33%;
    }

    .small_container {
        max-width: 360px;
    }
}

@media (max-width: 576px) {
    
    .container {
        max-width: 100%;
        padding-right: var(--pico-spacing);
        padding-left: var(--pico-spacing);
    }

    .small_container {
        max-width: 480px;
        padding: 0;
    }
}



@media (max-width: 1250px) {
    .cardform_section fieldset:not(:has(table)) {
        grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
    }

    aside {
        grid-column: span 3;
    }

}

@media (max-width: 1024px) {
    details#mobile-menu {
        display: block;
    }
    section.sidebar {
        display: none;
    }

    .main_content,
    footer,
    .toolbar {
        width: 100%;
    }

    .column_container,
    .column_subcontainer {
        grid-template-columns: repeat(auto-fit, minmax(50%, 1fr));
      }

      .column_container-20, .column_subcontainer-20 {
        display: grid;
        gap: calc(var(--pico-grid-column-gap)* 1.5);
        grid-template-columns: repeat(auto-fit, minmax(50%, 1fr));
    }

}

@media (max-width: 992px) {
    .cardform_section fieldset:not(:has(.direct_table)) {
        grid-template-columns: repeat(auto-fill, minmax(40%, 1fr));
    }
    footer {
        max-width: 100%;

    }

    .app {
        max-width: 100%;
    }

    .cardform_section input, .cardform_section select, .cardform_section textarea {
        max-width: 150px;
    }
}
@media (max-width: 768px) {
    .cardform_section fieldset:not(:has(table)) {
        grid-template-columns: repeat(auto-fill, minmax(50%, 1fr));
    }

    img.login_background {
        display: none;
    }

    .login_form {
        width: 100%;
    }

    .toolbar > .container {
        padding-top: var(--pico-spacing);
    }
    .column_container, .column_subcontainer {
        grid-template-columns: repeat(auto-fit, minmax(20%, 1fr));
        column-gap: 1rem;
    }
    .login footer {
        position: relative;
        bottom: unset;
        left: unset;
    }

    div.dt-container.ui.grid > div.row:first-child,
    div.dt-container.ui.grid > div.row:first-child > div {
        padding-top: 0!important;
        padding-bottom: 0!important;
    }

    div.dt-container.ui.grid > div.row:nth-child(2) {
        height: 0;
    }

    .mobile_inactive {
        display: none;
    }

    .tabbar {
        padding-block-end: 0;
    }



    .topbar_toolbar {
        gap: calc(var(--pico-spacing) / 2);
    }

    .titlebar {
        justify-content: space-between;
        flex-direction: column;
        align-items: flex-start;
        margin: 0;
        gap: var(--pico-spacing);
    }

    .toolbar {
        position: relative;
        top: unset;
        right: unset;
        padding: 0;
    }



    .cardform_section label:before {
        display: none;
    }

    section.cardform_content,
    section.listform_content {
        padding-block-start: 0;
    }

    nav {
        justify-content: center;
    }
    
    ul {
        flex-direction: column;
    }

    .cardform_section fieldset:not(:has(.direct_table)) {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }

    .section_group .cardform_section fieldset:not(:has(.direct_table)) {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }

    .cardform_section input, .cardform_section select, .cardform_section textarea {
        max-width: unset;
    }

    .login_form {
        max-width: 100%;
    }
}

@media (max-width: 300px) {
    .column_container, .column_subcontainer {
        grid-template-columns: repeat(auto-fit, minmax(50%, 1fr));
        column-gap: 0;
    }

    footer nav ul {
        gap: 5px;
    }

    nav li {
        padding: 5px;
    }

    .buttonbar {
        overflow: auto;
    }

    a.circle_button {
        word-wrap: break-word;
        word-break: break-word;
    }

    .game_container {
        padding: 5px;
        gap: 5px;
    }
}

.install_button{
    display: none;
    position: fixed;
    bottom: 0;
    max-width: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pico-primary-background);
    height: 70px;
    padding: 10px;
    z-index: 9999;
    width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: var(--fs-base);
}

.install_button_ios{
    display: none;
    position: fixed;
    bottom: 0;
    max-width: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pico-primary-background);
    height: 70px;
    padding: 10px;
    z-index: 9999;
    width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: var(--fs-base);
}

.install_button_ios i{
    color: #4183c4;
}

.team-open-slot {
    position: relative;
}

.team-open-slot .team_flag {
    opacity: .95;
}

.team-favorite-toggle {
    width: 26px;
    height: 26px;
    min-width: 26px;
    margin: 0 0 0 6px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--pico-muted-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.team-favorite-toggle:hover,
.team-favorite-toggle.is-favorite {
    border-color: rgba(238, 46, 46, .45);
    background: rgba(238, 46, 46, .12);
    color: #ee2e2e;
}

.game_container.is-favorite-match {
    border-color: rgba(238, 46, 46, .55);
    background: rgba(238, 46, 46, .08);
}

tr.is-favorite-team-row td {
    background: rgba(238, 46, 46, .10);
}

tr.is-favorite-team-row .table_team {
    color: var(--pico-primary);
    font-weight: 600;
}

.tip-deadline-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    width: 100%;
    box-sizing: border-box;
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-4);
    border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--brand) 8%, transparent);
}

.tip-deadline-banner div,
.tip-deadline-banner strong,
.tip-deadline-banner span {
    display: block;
}

.tip-deadline-banner span {
    color: var(--pico-muted-color);
    font-size: var(--fs-sm);
}

.tip-deadline-banner a {
    white-space: nowrap;
    color: var(--pico-primary);
}

.tip-deadline-banner--extra {
    border-color: color-mix(in srgb, #f59e0b 35%, transparent);
    background: color-mix(in srgb, #f59e0b 8%, transparent);
}

.ko-team-trigger {
    cursor: pointer;
}

.hidden-ko-candidates {
    display: none;
}

/* =========================================================================
   Globale Dialog-Komponente (.app-dialog)
   Native <dialog> + showModal(). Ueberschreibt Picos Vollbild-Dialog
   (min-width/height:100%) zu einer kompakten, zentrierten Karte. Einheitlicher
   Header: Titel links, X rechts. Body scrollt bei viel Inhalt.
   Pico blendet das geschlossene <dialog> via `dialog:not([open])` aus
   (hoehere Spezifitaet als .app-dialog) -> kein Always-on.
   ========================================================================= */
.app-dialog {
    position: fixed;
    inset: 0;
    margin: auto;                       /* zentriert die Karte im Viewport */
    width: min(440px, calc(100% - 2rem));
    height: fit-content;
    max-height: min(80vh, 600px);
    min-width: 0;                       /* ueberschreibt Pico (min-width:100%) */
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;               /* Pico setzt center -> Kinder sonst nicht voll breit */
    justify-content: flex-start;        /* Pico setzt center */
    gap: 0;
    padding: var(--space-5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface-1);
    color: var(--color-text);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    animation: none;                    /* Picos Overlay-Animation auf der Karte aus */
    -webkit-backdrop-filter: none;      /* Pico-Blur auf dem Dialog selbst aus */
    backdrop-filter: none;
}
.app-dialog::backdrop {
    background: rgba(0, 0, 0, .55);
}

.app-dialog__header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}
.app-dialog__title {
    margin: 0;
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    color: var(--color-text-strong);
}
.app-dialog__close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xl);
    line-height: 1;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface-2);
    color: var(--color-text-muted);
    cursor: pointer;
}
.app-dialog__close:hover {
    color: var(--color-text);
    background: var(--color-surface-3);
}
.app-dialog__body {
    overflow-y: auto;                   /* scrollt bei vielen Eintraegen */
    min-height: 0;
}
.app-dialog__body fieldset {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: var(--space-3) var(--space-4);
    margin-bottom: 0;
}
.app-dialog__body fieldset legend {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    padding: 0 var(--space-1);
}
.app-dialog__body fieldset label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}
.app-dialog__body fieldset label:last-child { margin-bottom: 0; }

/* Liste der moeglichen Teams (Kandidaten) */
.ko-candidate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: var(--space-2);
}
.ko-candidate-empty {
    margin: 0;
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
}

.ko-candidate-card {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);   /* Fahne | Name; Name kuerzt zuverlaessig */
    align-items: center;
    gap: var(--space-2);
    min-width: 0;
    padding: var(--space-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    overflow: hidden;
}

.ko-candidate-card img {
    width: 22px;
    height: 16px;
    object-fit: contain;
    border-radius: 3px;
}

.ko-candidate-card strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
}

/* Kuerzel im kompakten Layout weglassen (Fahne + Name reichen) */
.ko-candidate-card small,
.ko-candidate-card span {
    display: none;
}

/* Tippen: gesperrte K.O.-Paarung (Teams stehen noch nicht fest) */
body.tippen .game_container.ko-pending {
    opacity: .9;
}
.ko-pending-hint {
    color: var(--color-text-muted);
    font-size: var(--fs-md);
}

/* =========================================================================
   Profil-Seite (neuer Stil): Avatar + Konto-Karte. Aenderungen per Autosave
   (Name/Avatar) bzw. ueber .app-dialog (E-Mail/Passwort).
   ========================================================================= */
.profile_head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-7);
    text-align: center;
}
.profile_avatar {
    position: relative;
    width: 120px;
    height: 120px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
    cursor: pointer;
    background: var(--color-surface-2);
}
.profile_avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile_avatar_overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0, 0, 0, .45);
    font-size: var(--fs-lg);
    opacity: 0;
    transition: opacity 0.15s ease;
}
.profile_avatar:hover .profile_avatar_overlay,
.profile_avatar:focus-visible .profile_avatar_overlay { opacity: 1; }
.profile_name { margin: 0; }

.profile_card {
    padding-inline: var(--space-5);
}
.profile_field {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding-block: var(--space-4);
    border-bottom: 1px solid var(--color-border);
}
.profile_field label {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text);
}
.profile_field input { width: 100%; margin: 0; }

.profile_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding-block: var(--space-4);
    border-bottom: 1px solid var(--color-border);
}
.profile_row:last-child { border-bottom: 0; }
.profile_row_main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.profile_row_label { font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.profile_row_value {
    color: var(--color-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile_change {
    flex-shrink: 0;
    width: auto;
    margin: 0;
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface-2);
    color: var(--color-text);
    font-size: var(--fs-sm);
    cursor: pointer;
}
.profile_change:hover { background: var(--color-surface-3); }

/* Dialog-Formulare (E-Mail / Passwort) */
.profile_dialog_form label {
    display: block;
    margin: var(--space-3) 0 var(--space-1);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
}
.profile_dialog_form label:first-child { margin-top: 0; }
.profile_dialog_form input { width: 100%; margin: 0; }
.profile_submit {
    width: 100%;
    margin-top: var(--space-5);
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: var(--fw-medium);
}
.profile_submit:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.profile_form_error {
    margin: var(--space-3) 0 0;
    color: var(--color-error);
    font-size: var(--fs-sm);
}

/* =========================================================================
   Bug-/Wunsch-Meldung (neuer Stil): kompaktes Formular in einer Karte.
   ========================================================================= */
.report_card {
    display: flex;
    flex-direction: column;
    max-width: 560px;
    padding: var(--space-6);
}
.report_card label {
    margin: var(--space-4) 0 var(--space-1);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text);
}
.report_card label:first-of-type { margin-top: 0; }
.report_card select,
.report_card textarea { width: 100%; }
.report_card textarea { resize: vertical; min-height: 120px; }
.report_submit {
    align-self: flex-start;
    width: auto;
    margin-top: var(--space-6);
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: var(--fw-medium);
}
.report_submit:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.report_submit:disabled { opacity: .6; cursor: default; }
.report_feedback { margin: var(--space-4) 0 0; font-size: var(--fs-sm); }
.report_feedback[data-state="ok"]    { color: var(--color-success); }
.report_feedback[data-state="error"] { color: var(--color-error); }

/* =========================================================================
   Admin-Bereich (neuer Stil): KPIs, Wertungs-Karten, Feedback-Verwaltung.
   ========================================================================= */
.admin_kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-7);
}
.admin_kpi {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-5);
    background: var(--color-cardform);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}
.admin_kpi_label { font-size: var(--fs-sm); color: var(--color-text-muted); }
.admin_kpi_value { font-size: var(--fs-2xl); font-weight: var(--fw-bold); line-height: 1; color: var(--color-text-strong); }
.admin_kpi_delta { font-size: var(--fs-xs); color: var(--color-success); }

.admin_section { margin-bottom: var(--space-7); }
.admin_section_title { margin: 0 0 var(--space-3); font-size: var(--fs-lg); }
.admin_card { display: flex; flex-direction: column; padding: var(--space-5); }
.admin_card .game_list { margin-bottom: var(--space-4); }
.admin_card label { display: block; margin: var(--space-3) 0 var(--space-1); font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.admin_card label:first-of-type { margin-top: 0; }
.admin_card select, .admin_card input[type=text], .admin_card input[type=number] { width: 100%; }
.admin_hint { margin: var(--space-4) 0 0; font-size: var(--fs-sm); color: var(--color-text-muted); }
.admin_match_meta { margin: var(--space-2) 0 var(--space-4); font-size: var(--fs-sm); color: var(--color-text-muted); text-align: center; }
.admin_empty { margin: 0; color: var(--color-text-muted); }
.admin_submit {
    align-self: flex-start;
    width: auto;
    margin-top: var(--space-5);
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: var(--fw-medium);
}
.admin_submit:hover { background: var(--brand-hover); border-color: var(--brand-hover); }

/* Admin: Match-Zeile als 5-Spalten-Grid (wie Tippen) */
body.admin .game_container {
    display: grid;
    grid-template-columns: 1.75rem minmax(0, 1fr) auto minmax(0, 1fr) 1.75rem;
    align-items: center;
    column-gap: var(--space-2);
}
body.admin .game_tip_status { display: flex; justify-content: center; padding: 0; }
body.admin .home_team { justify-content: flex-end; }
body.admin .away_team { justify-content: flex-start; }
body.admin .game_tip { width: auto; justify-content: center; }
body.admin .game_tip_inputs input { width: 2.4rem; }
body.admin #reset { justify-self: center; }

/* Feedback-Liste (Bugs/Wünsche) */
.report_list { display: flex; flex-direction: column; }
.report_item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-border);
}
.report_item:first-child { padding-top: 0; }
.report_item:last-child { padding-bottom: 0; border-bottom: 0; }
.report_item.is-fixed { opacity: .55; }
.report_item_avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--radius-full); object-fit: cover; }
.report_item_body { flex: 1; min-width: 0; }
.report_item_head { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-2); margin-bottom: 3px; }
.report_item_head strong { font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.report_item_meta { font-size: var(--fs-xs); color: var(--color-text-muted); }
.report_item_text { font-size: var(--fs-sm); line-height: 1.45; color: var(--color-text); overflow-wrap: anywhere; }
.report_item_actions { display: flex; gap: var(--space-2); flex-shrink: 0; }
.report_item_actions form { margin: 0; }
.report_item_btn {
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface-2);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color .12s ease, background .12s ease, border-color .12s ease;
}
.report_item_btn:hover { color: var(--color-text); background: var(--color-surface-3); }
.report_item_btn.is-done {
    color: var(--color-success);
    border-color: color-mix(in srgb, var(--color-success) 45%, transparent);
    background: color-mix(in srgb, var(--color-success) 12%, transparent);
}
.report_item_btn--danger:hover {
    color: var(--color-error);
    border-color: color-mix(in srgb, var(--color-error) 45%, transparent);
    background: color-mix(in srgb, var(--color-error) 12%, transparent);
}

/* Admin: Nutzer & Einladungslinks */
.admin_hint {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin: 0 0 var(--space-4);
    display: flex;
    gap: var(--space-2);
    align-items: flex-start;
}
.admin_hint i { margin-top: 2px; flex-shrink: 0; }
.admin_user_table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
}
.admin_user_table thead th {
    text-align: left;
    font-weight: var(--fw-semibold);
    padding: var(--space-2) var(--space-3);
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.admin_user_table tbody td {
    padding: var(--space-3);
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}
.admin_user_table tbody tr:last-child td { border-bottom: 0; }
.admin_user_name { font-weight: var(--fw-medium); }
.admin_badge {
    display: inline-block;
    font-size: var(--fs-2xs);
    font-weight: var(--fw-semibold);
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--brand) 18%, transparent);
    color: var(--brand);
    margin-left: var(--space-1);
    vertical-align: middle;
}
.admin_user_email { color: var(--color-text-muted); }
.admin_user_date  { color: var(--color-text-muted); white-space: nowrap; }
.admin_user_email_mobile { display: none; font-size: var(--fs-xs); color: var(--color-text-muted); margin-top: 2px; }
.admin_user_actions { text-align: right; white-space: nowrap; }
.btn_copy_sso {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-sm);
    padding: var(--space-1) var(--space-3);
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-surface-2);
    color: var(--color-text);
    cursor: pointer;
    transition: background .12s, border-color .12s, color .12s;
    white-space: nowrap;
}
.btn_copy_sso:hover:not(:disabled) {
    background: var(--color-surface-3);
    border-color: var(--color-text-muted);
}
.btn_copy_sso:disabled { opacity: .55; cursor: default; }
.admin_empty { color: var(--color-text-muted); font-size: var(--fs-sm); margin: 0; }
.btn_iframe_token {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-sm);
    padding: var(--space-1) var(--space-3);
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-surface-2);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: background .12s, border-color .12s, color .12s;
    white-space: nowrap;
}
.btn_iframe_token:hover:not(:disabled) {
    background: var(--color-surface-3);
    border-color: var(--color-text-muted);
    color: var(--color-text);
}
.btn_iframe_token.has_token {
    color: var(--color-text);
    border-color: color-mix(in srgb, var(--brand) 50%, transparent);
}
.btn_iframe_token:disabled { opacity: .55; cursor: default; }
@media (max-width: 600px) {
    .hide_mobile { display: none !important; }
    .admin_user_email_mobile { display: block; }
    .admin_user_table thead th:last-child { display: none; }
    .admin_user_actions { padding-right: 0; }
    .btn_copy_sso .btn_label { display: none; }
}

.member-list {
    display: grid;
    gap: var(--space-2);
}

.member-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--hover-soft);
}

.member-avatar {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.member-meta {
    min-width: 0;
}

.member-meta strong,
.member-meta span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-meta span {
    color: var(--color-text-muted);
    font-size: var(--fs-xs);
}

.member-paid-toggle,
.member-remove {
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.member-paid-toggle {
    border: 1px solid var(--color-error);
    background: transparent;
    color: var(--color-error);
}

.member-paid-toggle.is-paid {
    border-color: var(--color-success);
    background: var(--color-success);
    color: white;
}

.member-remove {
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text-muted);
}

/* ── Invite-Block (Einladungs-Sektion in Gruppeneinstellungen) ── */
.invite-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.invite-block__label {
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-1);
}

/* Großer zentrierter Code-Chip */
.invite-code-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-3);
    text-align: center;
}

.invite-code-chip__value {
    font-family: monospace;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-text);
    user-select: all;
}

/* Copy-Schaltfläche (im Chip und am Link) */
.invite-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-4);
    background: var(--color-surface-3, var(--hover-soft));
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    white-space: nowrap;
    width: auto;
}

.invite-copy-btn:hover {
    background: var(--hover-strong);
    color: var(--color-text);
}

/* Kleiner Icon-only Copy-Button am Link */
.invite-copy-btn--sm {
    flex-shrink: 0;
    padding: var(--space-2);
    border-radius: var(--radius-md);
}

/* Link-Copy-Zeile */
.invite-link-copy {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-3);
}

.invite-link-copy__url {
    flex: 1;
    min-width: 0;
    font-size: var(--fs-xs);
    font-family: monospace;
    color: var(--color-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    user-select: all;
}

/* E-Mail-Block */
.invite-email-block {
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border);
}

.invite-email-form {
    margin-top: var(--space-2);
    margin-bottom: var(--space-1);
}

.invite-email-row {
    display: flex;
    gap: var(--space-2);
    align-items: stretch;
}

.invite-email-input {
    flex: 1 1 0;
    min-width: 0;
    width: auto !important;
    margin: 0 !important;
}

.invite-email-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0 var(--space-4);
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    width: auto !important;
    height: auto;
    margin: 0 !important;
}

.invite-email-btn:hover {
    background: var(--brand-dark, #9e3327);
}

.invite-email-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.invite-email-status {
    margin-top: var(--space-2);
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
}

/* Abstände in geöffneten details innerhalb Einstellungen */
.profil_menu_item details[open] > fieldset {
    margin-top: var(--space-3);
    margin-bottom: var(--space-2);
}
.profil_menu_item details[open] > .member-list {
    margin-top: var(--space-3);
    margin-bottom: var(--space-3);
}
.profil_menu_item details[open] > .invite-block {
    margin-top: var(--space-3);
}
.profil_menu_item details[open] > .invite-email-block {
    margin-bottom: var(--space-2);
}
/* Icon-Farbe in Einstellungs-Details passend zur Brand */
.profil_menu_item details summary i {
    background: var(--color-surface-2) !important;
    color: var(--color-text-muted);
}
.profil_menu_item details[open] > summary i,
details[open] > summary:not([role]):not(:focus) i {
    background: var(--brand) !important;
    color: #fff !important;
}

/* =========================================================================
   Spielplan/Dashboard: robuste Match-Zeilen (alle Viewports)
   Die Zeile wird als 3-Spalten-Grid gebaut: [Heim] [Zeit] [Gast].
   minmax(0,1fr) erlaubt den Team-Spalten echtes Schrumpfen, sodass lange
   Nationen-Namen zuverlaessig ausgepunktet werden statt die Zeile zu sprengen
   (das ist mit reinem Flexbox in verschachtelten Boxen unzuverlaessig).
   Nur fuer Spielplan und Dashboard, damit die Tipp-Seite unveraendert bleibt.
   ========================================================================= */
body.schedule .game_container,
body.dashboard .game_container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

/* Team-Spalten: Inhalt darf abgeschnitten werden */
body.schedule .home_team,
body.schedule .away_team,
body.dashboard .home_team,
body.dashboard .away_team {
    min-width: 0;
    overflow: hidden;
}

/* Flaggen nie schrumpfen (nur Spielplan/Dashboard) */
body.schedule .home_team .team_flag,
body.schedule .away_team .team_flag,
body.dashboard .home_team .team_flag,
body.dashboard .away_team .team_flag {
    flex-shrink: 0;
}

/* Mittlere Spalte (Zeit/Datum) fest begrenzen; Datumszeile bricht darin um */
body.schedule .game_time,
body.dashboard .game_time {
    width: 96px;
    min-width: 96px;
    max-width: 96px;
}
.game_time .game_date {
    white-space: normal;
}

/* Spielplan-Feinschliff: Spieltyp pro Zeile ist redundant (steht im Karten-Header). */
body.schedule .game_info {
    display: none;
}

/* Standings-Tabelle: Zahlenspalten zentriert, Team links, Punkte betont. */
body.schedule .table_content table th,
body.schedule .table_content table td {
    text-align: center;
    vertical-align: middle;
}
body.schedule .table_content table th:nth-child(2),
body.schedule .table_content table td:nth-child(2) {
    text-align: left;
}
body.schedule .table_content table td:last-child {
    font-weight: var(--fw-semibold);
    color: var(--color-text-strong);
}

/* Namen einzeilig + Ellipsis — NUR Spielplan/Dashboard (volle Nationen-Namen).
   Die Tipp-Seite nutzt Kurznamen in einer engen Spalte und bleibt unberuehrt. */
body.schedule .home_team_name,
body.schedule .away_team_name,
body.dashboard .home_team_name,
body.dashboard .away_team_name {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* =========================================================================
   Desktop-Layout (ab 1024px) - VOLLE BREITE
   Die App ist als schmale Handy-Spalte gebaut (max-width 360px). Ab Desktop
   nutzt sie die volle Bildschirmbreite: feste linke Seitenleiste + Inhalt
   fuellt den restlichen Platz. Handy bleibt unveraendert (Tab-Leiste unten).
   ========================================================================= */
@media (min-width: 1024px) {
    :root {
        --t4s-sidebar: 230px;   /* Breite der linken Seitenleiste */
    }

    /* App fuellt die volle Breite; links Platz fuer die feste Seitenleiste */
    .app {
        max-width: none;
        width: 100%;
        padding-left: var(--t4s-sidebar);
    }

    /* Topbar fuellt den Inhaltsbereich rechts der Seitenleiste und bleibt oben kleben */
    section.topbar {
        position: sticky;
        top: 0;
    }

    /* Einheitliche, zentrierte Inhaltsbreite auf ALLEN Seiten (ein Token).
       Deckt direkte Container, form-gewrappte Seiten und das verschachtelte
       main>form (Tippen) gleichermassen ab -> konsistenter, professioneller
       Look statt je Seite unterschiedlicher Breiten. */
    .main_content > .container,
    .main_content form > .container {
        max-width: var(--content-max);
        margin-inline: auto;
        padding-inline: clamp(16px, 2.5vw, 40px);
    }

    /* Aktions-Buttons (Home) als kompaktes Cluster statt ueber die volle Breite */
    .buttonbar {
        flex: 0 0 auto;
        justify-content: flex-start;
        gap: var(--space-6);
    }

    /* Vollflaechige Footer-Leiste: Hintergrund + Border spannen von der Sidebar
       bis zum rechten Rand. Der innere Container begrenzt die Buttons auf die
       zentrierte Inhaltsspalte (gleiche Breite/Polsterung wie .container) ->
       Primaeraktion sitzt genau ueber dem rechten Rand des Inhalts. */
    .action-bar {
        left: var(--t4s-sidebar);
        right: 0;
        bottom: 0;
        transform: none;
        width: auto;
        max-width: none;
        margin-inline: 0;
    }
    /* Inner spannt die volle Leistenbreite (Sidebar -> rechter Rand); das
       Button-Cluster wird ganz rechtsbuendig gedrueckt (justify-content:
       flex-end), NICHT auf die zentrierte Inhaltsspalte begrenzt. */
    .action-bar__inner {
        max-width: none;
        margin-inline: 0;
        padding-inline: clamp(16px, 2.5vw, 40px);
        padding-bottom: var(--space-4);
    }
    /* Desktop: keine untere Icon-Nav -> Spacer nur Leistenhoehe. */
    .action-bar-spacer {
        height: calc(var(--action-bar-h, 76px) + var(--space-4));
    }

    /* Untere Tab-Leiste -> feste linke Seitenleiste am linken Bildschirmrand */
    footer {
        top: 0;
        bottom: 0;
        left: 0;
        transform: none;
        width: var(--t4s-sidebar);
        max-width: var(--t4s-sidebar);
        height: 100vh;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 14px 10px;
        background: var(--pico-background-color-nav, #1b1f27);
        border-right: 1px solid var(--pico-form-element-border-color);
        overflow-y: auto;
    }
    footer:before { display: none; } /* Verlaufschatten der Bodenleiste entfernen */

    footer nav { width: 100%; }
    footer nav ul {
        flex-direction: column;
        width: 100%;
        padding-inline: 0;
        gap: 4px;
        justify-content: flex-start;
    }
    footer nav li,
    footer nav li.level_1 {
        width: 100%;
    }
    /* Menuepunkte als Icon + Label in einer Reihe, linksbuendig */
    footer li.level_1 a {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 12px;
        text-align: left;
        font-size: var(--fs-sm);
        padding: 12px 14px;
        border-radius: 8px;
    }
    footer li.level_1 a i,
    footer li.level_1 a .fa-solid,
    footer li.level_1 a svg {
        font-size: var(--fs-md);
        width: 22px;
        text-align: center;
        flex-shrink: 0;
    }

    /* Alle Spielplan-Tabs ueber die volle Breite kacheln (Gruppen, K.O., Tabelle)
       -> einheitlich nebeneinander statt langer Einzelspalte. */
    body.schedule section[tab-attribute] .column_content {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
        gap: calc(var(--pico-spacing) * 1.2);
        align-items: start;
    }
    /* Karten-Margin raus (Grid-gap uebernimmt den Abstand) */
    body.schedule .column_content > .card {
        margin-bottom: 0;
    }

    /* mehr Platz -> Teamnamen duerfen groesser sein */
    body.schedule .home_team,
    body.schedule .away_team {
        font-size: var(--fs-sm);
    }

    /* ----------------------------------------------------------------
       Tippen (Desktop): Karten (Gruppen A-H / K.O.-Runden) nebeneinander
       kacheln statt einer langen Spalte. Volle Breite, ruhiges Grid.
       Das Tab-Umschalten toggelt display auf der <section>, nicht auf
       .column_content -> kein Konflikt mit display:grid hier.
       Breite kommt aus der globalen .container-Regel (einheitlich). */
    body.tippen section[tab-attribute] .column_content {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
        gap: calc(var(--pico-spacing) * 1.2);
        align-items: start;
    }
    /* Titel + Legende spannen ueber alle Spalten */
    body.tippen .column_content > .title_with_legend,
    body.tippen .column_content > h2 {
        grid-column: 1 / -1;
    }
    /* Abstand kommt vom Grid-gap, nicht von Karten-Margins */
    body.tippen .column_content > .card {
        margin-bottom: 0;
    }
    /* etwas mehr Luft fuer Teamnamen, da die Karten breiter sind */
    body.tippen .home_team,
    body.tippen .away_team {
        font-size: var(--fs-sm);
    }
}

/* =========================================================================
   Typografie-System (alle Viewports)
   Klare, konsistente Hierarchie ueber die Token-Skala.
   ========================================================================= */
body {
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    line-height: var(--lh-tight);
    letter-spacing: -0.011em;
    color: var(--color-text-strong);
}
h1 { font-size: var(--fs-xl); font-weight: var(--fw-bold); }
h2 { font-size: var(--fs-lg); font-weight: var(--fw-semibold); }
h3 { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
h4 { font-size: var(--fs-base); font-weight: var(--fw-semibold); }
h5, h6 {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
}
small { font-size: var(--fs-sm); }

/* etwas Luft oben, da keine Topbar mehr existiert */
.main_content {
    padding-top: var(--space-4);
}

/* =========================================================================
   Sidebar / Navigation — Logo + Konto nur auf Desktop sichtbar.
   Auf dem Handy bleibt die untere Tab-Leiste reine Icon-Navigation.
   ========================================================================= */
.nav_logo {
    display: none;
}
.nav_account {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Button als Sidebar-Eintrag (Theme-Toggle) auf Link-Optik zuruecksetzen.
   WICHTIG: kein `font: inherit` — das setzt auch font-size/weight und wuerde
   (hoehere Spezifitaet) die .nav_secondary-Groesse ueberschreiben -> Text zu gross.
   Nur font-family erben; Groesse/Gewicht kommen aus .nav_secondary. */
button.nav_secondary {
    appearance: none;
    border: 0;
    background: transparent;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
}

@media (min-width: 1024px) {
    /* Seitenleisten-Flaeche */
    footer {
        background: var(--color-sidebar);
        padding: 16px 12px;
        gap: 2px;
    }

    /* Logo oben */
    .nav_logo {
        display: flex;
        align-items: center;
        padding: 4px 12px 14px;
    }
    .nav_logo img {
        width: 150px;
        max-width: 100%;
        max-height: 30px;
        object-fit: contain;
    }
    /* Sidebar-Logo nur im Dark-Mode invertieren. */
    [data-theme="dark"] .nav_logo img {
        filter: brightness(0) invert(1);
    }

    /* Navigationspunkte: luftig, klares Hover/Active (Claude-artig).
       Saubere, in sich abgeschlossene Blocks: explizites box-sizing, kein
       geerbtes flex:1, ul/li ohne Eigen-Margin/Padding -> kein Ueberlappen. */
    footer nav { margin-top: var(--space-5); }
    footer nav ul {
        display: flex;
        flex-direction: column;
        gap: var(--space-2);
        margin: 0;
        padding: 0;
        list-style: none;
    }
    footer li.level_1 {
        flex: 0 0 auto;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    footer li.level_1 a {
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        align-items: center;
        flex: none;
        width: 100%;
        margin: 0;
        gap: var(--space-3);
        padding: 0.7rem var(--space-4);   /* ~11px 16px -> komfortable Hoehe */
        min-height: 44px;                 /* gleichmaessige, gut klickbare Items */
        font-size: var(--fs-base);        /* 16px */
        line-height: 1.3;
        border-radius: var(--radius-sm);
        color: var(--color-text);
        font-weight: var(--fw-medium);
        transition: background 0.12s ease, color 0.12s ease;
    }
    footer li.level_1 a i {
        font-size: 1.05rem;
        color: var(--color-text-muted);
        transition: color 0.12s ease;
    }
    footer li.level_1 a:hover {
        background: color-mix(in srgb, var(--brand) 8%, transparent);
        color: var(--color-text-strong);
    }
    /* Aktive Seite: dezenter Brand-Pill (Claude-Console-Stil) */
    footer li.level_1.active_tree a {
        background: color-mix(in srgb, var(--brand) 14%, transparent);
        color: var(--color-text-strong);
        font-weight: var(--fw-semibold);
    }
    footer li.level_1.active_tree a i,
    footer li.level_1 a:hover i {
        color: var(--brand);
    }

    /* Konto-Block unten — Account-Menü (fährt nach oben aus, Claude-Stil) */
    .nav_account {
        position: relative;
        display: flex;
        flex-direction: column;
        margin-top: auto;
        padding-top: var(--space-3);
        border-top: 1px solid var(--color-border);
    }

    /* Popover mit den sekundären Aktionen — initial versteckt */
    .nav_account_menu {
        position: absolute;
        left: 0;
        right: 0;
        bottom: calc(100% + var(--space-2));
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: var(--space-2);
        background: var(--color-surface-1);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
        z-index: 50;
    }
    .nav_account.is-open .nav_account_menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav_secondary {
        display: flex;
        align-items: center;
        gap: var(--space-3);
        width: 100%;
        padding: var(--space-2) var(--space-3);
        border-radius: var(--radius-sm);
        color: var(--color-text-muted);
        font-size: var(--fs-sm);
        font-weight: var(--fw-medium);
        text-align: left;
        transition: background 0.12s ease, color 0.12s ease;
    }
    .nav_secondary:hover {
        background: var(--hover-soft);
        color: var(--color-text-strong);
    }
    .nav_account_logout:hover { color: var(--brand); }
    .nav_secondary i {
        width: 22px;
        text-align: center;
        font-size: var(--fs-base);
    }

    /* Konto-Button (Toggle des Menüs) */
    .nav_user {
        display: flex;
        align-items: center;
        gap: var(--space-3);
        width: 100%;
        padding: var(--space-2);
        appearance: none;
        border: 0;
        border-radius: var(--radius-md);
        background: var(--hover-soft);
        cursor: pointer;
        font: inherit;
        text-align: left;
        transition: background 0.12s ease;
    }
    .nav_user:hover { background: var(--hover-strong); }
    .nav_user_avatar {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
        overflow: hidden;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--brand);
        color: #fff;
        font-weight: var(--fw-semibold);
        font-size: var(--fs-sm);
    }
    .nav_user_avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .nav_user_name {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-size: var(--fs-sm);
        font-weight: var(--fw-semibold);
        color: var(--color-text-strong);
    }
    .nav_user_caret {
        flex-shrink: 0;
        color: var(--color-text-muted);
        font-size: var(--fs-xs);
        transition: transform .16s ease;
    }
    .nav_account.is-open .nav_user_caret { transform: rotate(180deg); }

    /* keine Topbar -> etwas mehr Luft oben im Inhalt */
    .main_content {
        padding-top: var(--space-6);
    }
}
/* --- Vanilla-Carousel (ersetzt Swiper): horizontaler Scroll-Snap --- */
.mySwiper { overflow: hidden; height: auto; }
.mySwiper > .swiper-wrapper {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.mySwiper > .swiper-wrapper::-webkit-scrollbar { display: none; }
/* Mehrere Slides -> Peek-Effekt (wischbar). Einzelne Slide -> volle Breite. */
.mySwiper > .swiper-wrapper > .swiper-slide {
    flex: 0 0 92%;
    scroll-snap-align: start;
}
.mySwiper > .swiper-wrapper > .swiper-slide:only-child {
    flex-basis: 100%;
}

/* Schlichte Statistik-Legende (ersetzt Chart.js im Admin) */
.stat-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.stat-legend li { display: flex; align-items: center; gap: 8px; }
.stat-legend .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.stat-legend strong { margin-left: auto; }

/* Semantic entfernt -> Tabellen mit Semantic-Restklassen normal rendern (Pico stylt <table>). */
table.ui.table { width: 100%; border-collapse: collapse; }
table.ui.table th, table.ui.table td { padding: var(--pico-spacing, .5rem) .5rem; }

/* Theme-Toggle-Button exakt wie die <a>-Sidebar-Eintraege rendern
   (Button-UA-Defaults wie text-align:center / appearance abfangen). */
button.nav_secondary {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    text-align: left;
    line-height: inherit;
    letter-spacing: inherit;
}

/* ── Sauberes Tabellen-Component ───────────────────────────────────────────
   Loest die verwaisten Semantic/DataTables-Restklassen ab. Vollstaendig
   tokenbasiert; gerundeter Rahmen kommt vom umgebenden .card (overflow:hidden). */
.data-table-wrap { width: 100%; overflow-x: auto; }
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
    color: var(--color-text);
}
.data-table th,
.data-table td {
    padding: var(--space-3);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}
.data-table thead th {
    font-size: var(--fs-2xs);
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--color-text-muted);
    font-weight: var(--fw-semibold);
    background: transparent;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--hover-soft); }
.data-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Rangliste: Spalten + dezente Hervorhebung der Top-Platzierungen */
.data-table td.rank {
    width: 2.5rem;
    color: var(--color-text-muted);
    font-weight: var(--fw-semibold);
    font-variant-numeric: tabular-nums;
}
.data-table td.points {
    font-weight: var(--fw-semibold);
    color: var(--color-text-strong);
    background: transparent;
    border-radius: 0;
    line-height: inherit;
}
.data-table tr.is-top1 td.rank { color: var(--color-warning); }
.data-table tr.is-top2 td.rank { color: var(--color-text-strong); }
.data-table tr.is-top3 td.rank { color: var(--brand); }
.data-table .table_user {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.data-table .table_user_image {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

/* Erfolgs-/Status-Icon (ersetzt Inline-Farbstyles) */
.tip-check { color: var(--color-success); }

/* Generischer Leer-Zustand fuer Listen/Tabellen */
.empty-state {
    text-align: center;
    color: var(--color-text-muted);
    padding: var(--space-5);
}

/* ── Gruppen-Detailseite: Layout der Tab-Panels sauber & einheitlich ───────
   Problem vorher: das .container war zu tief verschachtelt (greift nicht in die
   globale max-width-Regel) und .cardform_section war selbst eine Karte in einem
   5-Spalten-Grid (span 3 -> ~60% Breite, linksbuendig). Hier: Inhalt auf
   --content-max zentrieren, Panel volle Breite, und die Panel-Karte zugunsten
   der inneren .card aufloesen -> exakt das Dashboard-Muster
   (.column_content > h2.card_title_extern > .card > .card_content). */
/* Hero, Tabs und Karten teilen sich dieselbe, zentrierte Inhaltsbreite. */
body.group .cardform_content {
    max-width: var(--content-max);
    margin-inline: auto;
    padding-inline: clamp(16px, 2.5vw, 40px);
}
body.group .section_group {
    display: block;
}
/* Panel selbst ist nur ein Block -> die innere .card ist die Flaeche. */
body.group .cardform_section {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    grid-column: auto;
}
body.group .group_titlebar {
    border-radius: var(--radius-md);
}
/* Karten innerhalb eines Tab-Panels: dezenter Rahmen wie im Rest der App. */
body.group .cardform_section .card {
    border: 1px solid var(--color-border);
}
/* Letztes .column_content im Panel braucht unten keine doppelte Luft. */
body.group .cardform_section .column_content:last-child {
    padding-block-end: 0;
}

/* Workspace-Header (aktive Tippgruppe) unter dem Logo — nur Desktop-Sidebar */
.nav_workspace { display: none; }
@media (min-width: 1024px) {
    .nav_workspace {
        display: flex;
        align-items: center;
        gap: var(--space-3);
        margin-top: var(--space-2);
        padding: var(--space-2) var(--space-4);   /* inline = Nav-Items -> linksbündig */
        border-radius: var(--radius-sm);
        background: var(--hover-soft);
        color: var(--color-text);
        transition: background .12s ease;
    }
    .nav_workspace:hover { background: var(--hover-strong); }
    .nav_workspace_icon {
        width: 30px;
        height: 30px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-sm);
        background: color-mix(in srgb, var(--brand) 18%, transparent);
        color: var(--brand);
        font-size: var(--fs-sm);
    }
    .nav_workspace_text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
    .nav_workspace_label {
        font-size: var(--fs-2xs);
        color: var(--color-text-muted);
        text-transform: uppercase;
        letter-spacing: .05em;
    }
    .nav_workspace_name {
        font-size: var(--fs-sm);
        font-weight: var(--fw-semibold);
        color: var(--color-text-strong);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Navigation/Sidebar (footer): Links nie unterstreichen — auch nicht beim Hover. */
footer a,
footer a:hover { text-decoration: none; }

/* Bündigkeit Sidebar: gleiche Icon-Spaltenbreite für Nav-Items UND Workspace,
   damit Icons links und Labels auf identischer Linie starten. */
@media (min-width: 1024px) {
    footer li.level_1 a i {
        width: 28px;
        text-align: center;
        flex-shrink: 0;
    }
    .nav_workspace_icon {
        width: 28px;
        height: 28px;
    }
}

/* Workspace-Block exakt so breit wie die Nav-Items/Aktiv-Pill (voll stretchen). */
@media (min-width: 1024px) {
    .nav_workspace {
        width: 100%;
        box-sizing: border-box;
        align-self: stretch;
    }
}

/* ============================================================
   Sidebar-Bündigkeit (autoritativ): EINE identische Box fuer
   Nav-Items UND Workspace. Gewinnt ueber die historischen
   Doppel-Definitionen -> linke Kante, Icon-Spalte, Label und
   Hintergrundbreite sind garantiert deckungsgleich.
   ============================================================ */
@media (min-width: 1024px) {
    footer .nav_workspace,
    footer li.level_1 a {
        box-sizing: border-box;
        width: 100%;
        margin: 0;
        padding: 0.7rem var(--space-4);
        gap: var(--space-3);
        align-self: stretch;
    }
    footer .nav_workspace .nav_workspace_icon,
    footer li.level_1 a i {
        width: 28px;
        flex-shrink: 0;
        text-align: center;
    }
    footer .nav_workspace .nav_workspace_icon { height: 28px; }
}

/* ── Gruppenauswertung-Tab ───────────────────────────────────────────────── */

/* Wrapper */
.group-tables-tab { padding: 0; }

/* Kompakte Gruppentabelle (verwendet .data-table als Basis) */
.group-eval-table { margin-bottom: 0; }

/* Rang-Spalte grün für direkt qualifizierte Plätze */
.group-eval-table td.rank-qual {
    color: var(--color-success);
    font-weight: var(--fw-semibold);
}

/* Zeilen-Hintergrund: direkt qualifiziert (Platz 1+2) */
.group-eval-table tr.qual-direct td {
    background: color-mix(in srgb, var(--color-success) 8%, transparent);
}

/* Zeilen-Hintergrund: qualifizierter Drittplatzierter */
.group-eval-table tr.qual-third td {
    background: color-mix(in srgb, var(--color-success) 4%, transparent);
}
.group-eval-table tr.qual-third td.rank-qual {
    color: color-mix(in srgb, var(--color-success) 70%, var(--color-text-muted));
}

/* Legende unter der Tabelle */
.group-eval-legend {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-2xs);
    color: var(--color-text-muted);
    padding: var(--space-2) var(--space-3) var(--space-3);
    margin: 0;
}
.qual-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}
.qual-dot--direct { background: var(--color-success); }

/* Runde der letzten 32 */
.r32-section {
    padding: var(--space-5) 0 var(--space-3);
}
.r32-title {
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    color: var(--color-text-strong);
    margin-bottom: var(--space-4);
    padding: 0 var(--space-1);
}
.r32-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
    gap: var(--space-2);
}
.r32-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-3) var(--space-2);
    background: var(--color-surface-1);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-align: center;
}
.r32-team img.table_team_flag {
    width: 36px;
    height: 24px;
    margin-right: 0;
}
.r32-team-name {
    font-size: var(--fs-xs);
    color: var(--color-text);
    font-weight: var(--fw-medium);
    line-height: 1.2;
}

/* =========================================================================
   Mobile: Account-Icon im Bottom-Tab-Bar (unterhalb 1024px)
   ========================================================================= */
@media (max-width: 1023px) {
    .nav_user_name,
    .nav_user_caret { display: none; }

    .nav_user {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 4px;
        background: transparent;
        border: none;
        cursor: pointer;
        color: var(--color-text-muted);
        min-width: 48px;
        font-family: inherit;
        appearance: none;
    }
    .nav_user:hover { color: var(--color-text); }
    .nav_account.is-open .nav_user { color: var(--brand); }

    .nav_user_avatar {
        width: 28px;
        height: 28px;
        background: var(--color-surface-2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: var(--fs-xs);
        font-weight: 600;
        color: var(--color-text);
        overflow: hidden;
    }
    .nav_user_avatar img { width: 100%; height: 100%; object-fit: cover; }

    .nav_account_menu {
        position: fixed;
        bottom: 70px;
        right: 0;
        left: auto;
        top: auto;
        width: 220px;
        background: var(--color-surface-3);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-lg) 0 0 var(--radius-lg);
        padding: var(--space-3);
        display: flex;
        flex-direction: column;
        gap: var(--space-2);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transform: translateY(8px);
        transition: opacity 0.15s ease, transform 0.15s ease;
        visibility: hidden;
    }
    .nav_account.is-open .nav_account_menu {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        visibility: visible;
    }

    .nav_secondary {
        display: flex;
        align-items: center;
        gap: var(--space-2);
        padding: var(--space-2) var(--space-3);
        border-radius: var(--radius-md);
        color: var(--color-text);
        text-decoration: none;
        font-size: var(--fs-sm);
        font-family: inherit;
    }
    .nav_secondary:hover { background: var(--hover-strong); }

    button.nav_secondary {
        width: 100%;
        border: none;
        background: transparent;
        cursor: pointer;
        text-align: left;
    }
}

/* =========================================================================
   Invite-Landing-Page: Gruppen-Karte + Banner
   ========================================================================= */
.invite_group_card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

.invite_group_icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: color-mix(in srgb, var(--brand) 15%, transparent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    font-size: var(--fs-xl);
}

.invite_group_info {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 0;
}

.invite_group_name {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    color: var(--color-text-strong);
}

.invite_group_desc {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
}

.invite_group_members {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.invite_group_hint {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
    text-align: center;
}

/* Banner auf Login-/Register-Seite wenn ein Invite-Code aktiv ist */
.login_invite_banner {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-4);
    font-size: var(--fs-sm);
    color: var(--color-text);
}

.login_invite_banner i {
    color: var(--brand);
    flex-shrink: 0;
}

/* =========================================================================
   PWA / Standalone-Modus (iOS black-translucent + Android)
   ========================================================================= */

/* Wenn als installierte App gestartet: Status-Bar-Bereich oben freihalten.
   black-translucent überlagert sonst den oberen Content. */
@media all and (display-mode: standalone) {
    .app {
        padding-top: env(safe-area-inset-top, 0px);
    }
}

/* iOS-spezifisch (kein display-mode media query, Fallback via JS-Klasse).
   Die Klasse wird per JS gesetzt wenn navigator.standalone === true. */
body.ios-standalone .app {
    padding-top: env(safe-area-inset-top, 0px);
}

/* =========================================================================
   PWA-Installationsbanner
   Sitzt über der Tab-Leiste, zeigt sich nur im Browser (nicht in der App).
   ========================================================================= */
.pwa-banner {
    position: fixed;
    bottom: calc(70px + env(safe-area-inset-bottom, 0px) + var(--space-2));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - var(--space-6));
    max-width: 360px;
    background: var(--color-surface-1);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    z-index: 9999;
    animation: pwa-slide-up .25s ease;
}

@keyframes pwa-slide-up {
    from { opacity: 0; transform: translateX(-50%) translateY(12px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.pwa-banner__text {
    flex: 1;
    font-size: var(--fs-sm);
    line-height: 1.4;
}

.pwa-banner__install {
    flex: 0 0 auto;
    width: auto !important;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    background: var(--brand);
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: 600;
    border: none;
    cursor: pointer;
    margin: 0 !important;
}

.pwa-banner__close {
    flex: 0 0 auto;
    width: auto !important;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: var(--space-1);
    margin: 0 !important;
}

/* =========================================================================
   LIVE-Badge (Spielplan, Dashboard, Ergebniskarten)
   ========================================================================= */
.live-badge {
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--brand);
    padding: 2px 5px;
    border-radius: var(--radius-sm);
    line-height: 1;
    animation: live-pulse 1.8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.55; }
}

.is-live-match {
    outline: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
}

.tips-card--live {
    outline: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
}

.tips-card--live .tips-card__teams {
    background: color-mix(in srgb, var(--brand) 6%, var(--color-surface-2));
}

/* =========================================================================
   Getippt-Indikator (Dashboard: kommende Spiele)
   ========================================================================= */
.game_container {
    position: relative;
}

.game_container.is-tipped {
    background: color-mix(in srgb, var(--pico-background-success) 8%, transparent);
}

.tipped-corner {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    line-height: 1;
}

.tipped-corner--yes {
    background: color-mix(in srgb, var(--pico-background-success) 18%, transparent);
    color: var(--pico-background-success);
    border: 1px solid color-mix(in srgb, var(--pico-background-success) 40%, transparent);
}

.tipped-corner--no {
    background: color-mix(in srgb, var(--pico-color-red-400, #e05252) 14%, transparent);
    color: var(--pico-color-red-400, #e05252);
    border: 1px solid color-mix(in srgb, var(--pico-color-red-400, #e05252) 35%, transparent);
}

/* =========================================================================
   Tips-Liste (Ergebnisseite eines Nutzers)
   Kompakte Karten statt dem 5-spaltigen game_container-Layout.
   ========================================================================= */
.tips-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-2) 0;
}

.tips-card {
    position: relative;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-surface-1);
}

.tips-card--points-3 { border-color: var(--pico-background-success); }
.tips-card--points-2 { border-color: #fbd956; }
.tips-card--points-1 { border-color: rgb(189, 238, 144); }
.tips-card--no-tip   { opacity: 0.6; }

/* Kompakte einzeilige Tipp-Zeile innerhalb tips-card */
.tips-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
}

.tips-row__team {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.tips-row__team--away {
    justify-content: flex-end;
}

.tips-row__name {
    font-size: var(--fs-xs);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tips-row__scores {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    font-size: var(--fs-xs);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.tips-row__real {
    font-weight: 700;
}

.tips-row__sep {
    color: var(--color-text-muted);
    font-weight: 400;
    margin: 0 1px;
}

.tips-row__tip {
    color: var(--color-text-muted);
}

.tips-row__pts {
    flex-shrink: 0;
    min-width: 2.2rem;
    text-align: right;
}

.tips-row__pts .points {
    font-size: var(--fs-xs);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    font-weight: 700;
    white-space: nowrap;
}

.tips-card__extra-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tips-card__no-tip {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    font-style: italic;
}

/* =========================================================================
   Per-Match Ergebnisseite (dashboard_list_tips.php)
   ========================================================================= */
.match-tips-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--space-1) 0;
}

.match-tip-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
    transition: background 0.15s;
}

.match-tip-row.point_status_3 {
    border-left-color: var(--pico-background-success);
    background: color-mix(in srgb, var(--pico-background-success) 6%, transparent);
}
.match-tip-row.point_status_2 {
    border-left-color: #fbd956;
    background: color-mix(in srgb, #fbd956 6%, transparent);
}
.match-tip-row.point_status_1 {
    border-left-color: #9bc96a;
    background: color-mix(in srgb, #9bc96a 5%, transparent);
}
.match-tip-row.point_status_0 {
    opacity: 0.75;
}

.match-tip-user {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex: 1;
    min-width: 0;
}

.match-tip-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.match-tip-name {
    font-size: var(--fs-sm);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-tip-score {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
}

.match-tip-flag img {
    display: block;
}

.match-tip-result {
    font-size: var(--fs-sm);
    font-weight: 700;
    min-width: 3.2ch;
    text-align: center;
    letter-spacing: 0.05em;
}

.match-tip-pts {
    flex-shrink: 0;
    min-width: 2.4rem;
    text-align: right;
    font-size: var(--fs-xs);
    font-weight: 700;
}

.match-tip-pts--live {
    color: var(--pico-background-success);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
}

/* =========================================================================
   Per-Match Navigationsleiste
   ========================================================================= */
.match-detail-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-2) 0 var(--space-1);
}

.match-detail-nav select {
    flex: 1;
    max-width: 200px;
    margin: 0;
    padding: 6px 10px;
    font-size: var(--fs-xs);
}

.match-detail-nav button {
    flex-shrink: 0;
    padding: 6px 12px;
    margin: 0;
}

/* =========================================================================
   Per-Match Hero — prominente Spieldarstellung
   ========================================================================= */
.match-hero {
    position: relative;
    text-align: center;
    padding: var(--space-4) var(--space-3) var(--space-3);
    margin-bottom: var(--space-3);
    background: var(--color-surface-1);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.match-hero--live {
    border-color: color-mix(in srgb, var(--brand) 45%, transparent);
    background: color-mix(in srgb, var(--brand) 4%, var(--color-surface-1));
}

.match-hero__teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.match-hero__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    flex: 1;
    min-width: 0;
}

.match-hero__team--away {
    align-items: center;
}

.match-hero__flag {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 3px;
}

.match-hero__name {
    font-size: var(--fs-xs);
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.match-hero__score {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-2xl);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    color: var(--color-text-strong);
}

.match-hero__score-sep {
    font-weight: 300;
    opacity: 0.5;
}

.match-hero__kickoff {
    font-size: var(--fs-xl);
    font-weight: 700;
    flex-shrink: 0;
    color: var(--color-text-strong);
}

.match-hero__meta {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}

.match-hero__dot {
    opacity: 0.4;
}

/* =========================================================================
   Zusatztipps-Liste (group_list_tips.php)
   ========================================================================= */
.extra-tips-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--space-1) 0;
}

.extra-tip-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
}

.extra-tip-row--pts-3 {
    border-left-color: var(--pico-background-success);
    background: color-mix(in srgb, var(--pico-background-success) 6%, transparent);
}

.extra-tip-label {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 7rem;
}

.extra-tip-values {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    font-size: var(--fs-xs);
    overflow: hidden;
}

.extra-tip-result {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.extra-tip-sep {
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.extra-tip-tipp {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.extra-tip-pts-placeholder {
    min-width: 2rem;
}

.extra-tip-row .points {
    flex-shrink: 0;
    font-size: var(--fs-xs);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    font-weight: 700;
}
