*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  /*font-family: 'Poppins', sans-serif;*/
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
}

/* =========================
   Header
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1005;
  border-bottom: 1px solid #eee;
}

.site-header h1 {
  margin: 0 0 3px 0;
}

.tagline {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  color: #444;
}

.tool-steps {
  margin-top: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  color: #888;
  letter-spacing: 0.2px;
}

/* =========================
   Wettbewerb
   ========================= */

.competition-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.competition-row label {
  font-size: 14px;
  color: #444;
  white-space: nowrap;
}

.competition-row select {
  font-size: 14px;
  padding: 2px 6px;
  height: 26px;
  width: auto;
}

.competition-switch {
  display: flex;
  gap: 8px;
}

.competition-btn {
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.competition-btn.active {
  background: #e9e9e9;
  border-color: #333;
  font-weight: 600;
}

.competition-btn:hover {
  background: #efefef;
}

.competition-label {
  font-size: 14px;
  color: #444;
  margin-right: 8px;
}

/* =========================
   Allgemeine Elemente
   ========================= */

.section-divider {
  border-top: 1px solid #d6d6d6;
  margin: 18px 0 12px;
}

button {
  padding: 8px 12px;
  font-size: 15px;
  cursor: pointer;
}

textarea {
  font-family: monospace;
  width: 100%;
  margin-top: 0;
}

/* Nur Einsatz-Input ohne Spinner */
.einsatz-input::-webkit-inner-spin-button,
.einsatz-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.einsatz-input {
  -moz-appearance: textfield;
  appearance: textfield;
}

.hidden-logic {
  display: none;
}

/* =========================
   Import-Bereich
   ========================= */

.import-title {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 2px;
}

.import-description {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
  margin-bottom: 0;
  max-width: 500px;
  line-height: 1.4;
}

.import-hint-top {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
  margin-bottom: 8px;
}

.import-label {
  display: block;
  font-size: 15px;
}

.primary-btn {
  background: #4a4a4a;
  color: #fff;
  border: 1px solid #4a4a4a;
  padding: 8px 14px;
  cursor: pointer;
}

.primary-btn:hover {
  background: #222;
}

.secondary-btn {
  background: #f5f5f5;
  border: 1px solid #ccc;
  margin-top: 4px;
  padding: 6px 10px;
  font-size: 14px;
}

.clear-import {
  font-size: 12px;
  color: #666;
  cursor: pointer;
  text-decoration: underline;
}

/* =========================
   Import Method Switch
   ========================= */

.import-method-switch {
  display: flex;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  margin: 8px 0 8px;
}

.import-method-switch button {
  flex: 1;
  padding: 6px 0;
  border: none;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.import-method-switch button:not(:last-child) {
  border-right: 1px solid #ccc;
}

.import-method-switch button.active {
  background: #e9e9e9;
  border-bottom: 2px solid #333;
}

.import-method-switch button:hover {
  background: #efefef;
}

/* =========================
   Import Card
   ========================= */

.import-card {
  border: 1px solid #ddd;
  padding: 16px;
  border-radius: 8px;
  background: #fafafa;
  margin-bottom: 16px;
}

#screenshotImport,
#pasteImport {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#screenshotImport .primary-btn,
#pasteImport .primary-btn,
.import-card .primary-btn {
  align-self: flex-start;
}

#import-card input[type="file"],
#screenshotImport input[type="file"] {
  font-size: 13px;
  max-width: 280px;
}

#pasteImport textarea {
  min-height: 80px;
}

#screenshotImport label {
  margin-bottom: 2px;
}

#screenshotImport button.primary-btn {
  margin-top: 10px;
}

.import-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.import-actions .primary-btn {
  padding: 8px 14px;
}

.import-actions .clear-import {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: #666;
  text-decoration: underline;
  cursor: pointer;
}

.import-card button.primary-btn {
  min-width: 180px;
}

/* =========================
   Datei / Import-Status
   ========================= */

.file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.file-status {
  display: none;
}

.file-upload-btn {
  display: inline-block;
  align-self: flex-start;
  width: auto;
  padding: 6px 12px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
  white-space: nowrap;
}

.file-upload-btn:hover {
  background: #eee;
}

.file-upload-btn input {
  display: none;
}

.import-success {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #eee;
  font-size: 16px;
  color: #222;
  display: flex;
  align-items: center;
  gap: 6px;
}

.import-error {
  font-size: 14px;
  color: #c62828;
}

.import-status-loading {
  font-size: 13px;
  color: #666;
}

/* =========================
   Spieltag-Zeile
   ========================= */

.spieltag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
  margin-bottom: 10px;
}

.spieltag-filter {
  display: flex;
  align-items: center;
  gap: 0;              /* 🔥 vorher 6px → jetzt 0 */
}

.spieltag-filter span {
  font-size: 14px;
  color: #444;
  margin-top: 1px;
}

#rundeSelect {
  height: 24px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.reset-inline {
  background: none;
  border: none;
  color: #777;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

.reset-inline:hover {
  opacity: 1;
}

/* =========================
   Tabelle
   ========================= */

.spiele-container {
  width: 100%;
  overflow-x: auto;
}

.spielTabelle {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0px;
  font-size: 14px;
  table-layout: fixed;
}

/* Ergebnis */
.spielTabelle th:nth-child(2),
.spielTabelle td:nth-child(2) {
  width: 80px;
  text-align: center;
}

/* Tipp Heim */
.spielTabelle th:nth-child(3),
.spielTabelle td:nth-child(3) {
  width: 120px;
  text-align: center;
}

/* Tipp Auswärts */
.spielTabelle th:nth-child(4),
.spielTabelle td:nth-child(4) {
  width: 120px;
  text-align: center;
}

/* Quote */
.spielTabelle th:nth-child(5),
.spielTabelle td:nth-child(5) {
  width: 80px;
  text-align: center;
}

.spielTabelle th,
.spielTabelle td {
  border: 1px solid #ccc;
  padding: 8px;
  vertical-align: middle;
}

.spielTabelle th {
  background: #f0f0f0;
  text-align: center;
  padding: 10px;
  border-bottom: 2px solid #ddd;
  font-weight: 600;
  white-space: nowrap;
}

.spielTabelle th:first-child {
  text-align: left;
}

.spielTabelle td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.spielTabelle input {
  text-align: center;
  width: 50px;
  padding: 2px 3px;
  font-size: 13px;

  border: 1px solid #999;   /* dünner */
  border-radius: 3px;       /* moderner Look */
  outline: none;
  background: #fafafa;
}

.spielTabelle input:focus {
  border-color: #555;
  background: #fff;
}

.spielTabelle td:nth-child(3),
.spielTabelle td:nth-child(4) {
  text-align: center;
}

.spielTabelle td:nth-child(3) input,
.spielTabelle td:nth-child(4) input {
  display: block;
  margin: 0 auto;
}

.spielTabelle tr:hover {
  background-color: #f5f7fa;
}

.spiele-container {
  display: block;
}

.spiele-cards {
  display: none;
}

/* =========================
   Sticky Bar
   ========================= */

.sticky-bar {
  position: sticky;
  bottom: 0;

  width: 100%;
  left: 0;
  right: 0;

  background: #ffffff;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;

  padding: 12px 10px;

  box-shadow: 
    0 -2px 6px rgba(0,0,0,0.05),   /* 👈 oben */
    0 2px 6px rgba(0,0,0,0.05);    /* 👈 unten */
  backdrop-filter: blur(6px);

  z-index: 1000;
}

.sticky-inner {
  display: flex;
  align-items: center;
  gap: 10px;

  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.sticky-inner label {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.sticky-inner label:first-child {
  color: #000000;
  margin-right: 4px;
}

.sticky-inner input[type="number"] {
  width: 50px;
  padding: 4px 6px;
  font-size: 14px;
  text-align: center;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  border-radius: 3px;
  border: 1px solid #bbb;
  background: #fff;
}

.sticky-inner button {
  background: #2d2d2d;
  color: #fff;
  border: none;
  padding: 10px 14px;
  font-weight: 600;
  border-radius: 6px;
}

.sticky-inner button:hover {
  background: #000;
}

/* =========================
   Auswertungsmodus
   ========================= */

#ergebnisBox {
  margin-top: 20px;
  padding: 4px 12px 2px;  

  background: #f4f7fb;
  border: 1px solid #d6e0ff;
  border-top: 2px solid #4a6cf7;
  border-radius: 5px;

  /* Animation Startzustand */
  opacity: 0;
  transform: translateY(20px) scale(0.94);
  transform-origin: top center;
  will-change: transform, opacity;

  transition: 
    opacity 0.45s ease,
    transform 0.45s ease;
}

#ergebnisBox.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.auswertungs-modus {
  margin-top: 14px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  background: transparent; 
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auswertungs-modus strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.auswertungs-modus label {
  display: block;
  margin-bottom: 4px;
  cursor: pointer;
  padding-left: 4px;
  line-height: 1.3;
  padding: 4px 4px;
}

.auswertungs-hinweis {
  margin-top: 6px;
  font-size: 12px;
  color: #777;
  line-height: 1.4;
}

.auswertung-title {
  font-size: 18px;
  font-weight: 600;
  margin-top: 14px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ddd;
}

.auswertungTop {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 10px 0 16px;
}

.stat {
  background: #ffffff;              /* 👈 WICHTIG: komplett weiß */
  border: 1px solid #e5e7eb;
  border-radius: 10px;              /* 👈 leicht moderner */
  padding: 10px 12px;               /* 👈 minimal mehr Luft */
  text-align: center;

  transition: background 0.15s ease, transform 0.15s ease;
}

.stat-label {
  display: block;
  font-size: 11px;
  color: #6b7280;                   /* 👈 etwas edleres Grau */
  margin-bottom: 4px;               /* 👈 mehr Abstand zur Zahl */
  letter-spacing: 0.2px;            /* 👈 subtil hochwertiger */
}

.stat-value {
  font-size: 16px;                  /* 👈 minimal größer */
  font-weight: 700;                 /* 👈 klarer Fokus */
  color: #111;                      /* 👈 stärkerer Kontrast */
}

/* =========================
   Buchmacher Tabelle
   ========================= */

.profit-main {
  display: block;
  text-align: right;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  box-sizing: border-box;   /* 🔥 DAS FIXT ES */
}

.profit-sub {
  display: block;
  text-align: right;
  box-sizing: border-box;   /* 🔥 auch hier */
  font-size: 13px;
  opacity: 0.7;
}

.back-to-top {
  margin-top: 16px;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #f7f7f7;
}

.back-to-top:hover {
  background: #eee;
}

.quoteCell {
  text-align: center;
  font-weight: 600;
  vertical-align: middle;
  color: #888;
}

.quoteWin {
  color: #0a8f2a;
}

.quoteLose {
  color: #c62828;
}

.auswertungTop {
  display: grid;
  gap: 6px;
  margin: 10px 0 14px;
}

.vergleichHeadline {
  margin-top: 18px;
  margin-bottom: 8px;
}

/* =========================
   Bookmaker-Tabelle
   ========================= */

.bookmakerTable {
  border-collapse: separate;
  border-spacing: 0 8px; /* Abstand zwischen Zeilen */
  width: calc(100% - 4px);   /* 🔥 verhindert Überlaufen */
  max-width: 100%;
  margin-top: 16px;
  background: #f5f6f8;
  border-radius: 0px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  overflow: visible;
  table-layout: auto;   /* 🔥 statt fixed */
}

.bookmakerTable th {
  text-align: left;
  font-size: 13px;
  background: #e3e7ed;      /* dunkler */
  color: #444;              /* stärkerer Text */
  font-weight: 600;
  padding: 8px 10px;
}

.bookmakerTable td {
  padding: 10px;
  vertical-align: middle;
  background: inherit;
  overflow: visible;          /* 🔥 verhindert Überlaufen */
}

.bookmakerTable td,
.stat-value {
  font-variant-numeric: tabular-nums;
}

.bookmakerTable tbody tr {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.bookmakerTable tbody tr:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  transition: all 0.15s ease;
}

.bookmakerTable tbody tr.bestRow:hover {
  background: #e6f7ec !important;
}

.bookmakerTable td:nth-child(3) {
  padding-right: 12px; /* 👈 schöner Abstand zum Rand */
  text-align: right;
}

.bestRow {
  background: #e6f7ec !important;
}

.bestRow td {
  background: #e6f7ec;
}

.bestRow td:first-child {
  box-shadow: inset 6px 0 0 #1e8e3e;
  border-radius: 0 !important;
}

.bestRow .affiliateBtn {
  background: #28a745;
}

/* =========================
   Bookmaker-Tabelle-Ende
   ========================= */

.rightAlign {
  text-align: right;
}

.profit {
  color: #1e8e3e;
}

.loss {
  color: #000000;
}

.maxProfit,
.best {
  font-weight: bold;
  font-size: 19px;   /* leicht größer */
}

.roi {
  font-size: 0.8em;
  opacity: 0.8;
}

/* =========================
   Spaltenbreiten NEU
   ========================= */


/* Gewinn bekommt mehr Raum */
.bookmakerTable th:nth-child(2) {
  width: 35%;
}

/* =========================
   Mobile
   ========================= */

@media (max-width: 768px), (pointer: coarse) {
  
  .main-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 0px;
  }
  
  body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  .header-top {
    padding: 10px;
  }

  .site-header h1 {
    font-size: 24px;
  }

  .tagline {
    font-size: 14px;
    line-height: 1.35;
  }

  .tool-steps {
    font-size: 11px;
    line-height: 1.35;
  }

  .spiele-container {
    width: 100%;
    overflow-x: hidden;
  }

  .sticky-bar {
    position: sticky;
    bottom: 0;

    width: 100vw;
    left: 0;
    right: 0;

    margin-left: calc(-1 * (100vw - 100%) / 2);
    margin-right: calc(-1 * (100vw - 100%) / 2);

    padding: 10px 12px;
    box-sizing: border-box;
  }

  .sticky-inner {
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  /* Button darf umbrechen */
  .sticky-inner button {

    flex: 1 1 100%;
  }

  .spielTabelle {
    width: 100%;
    table-layout: fixed;
  }

  .spielTabelle input {
    width: 60px;
    max-width: 100%;
    text-align: center;
    justify-self: end;
  }

  .spieltag-row {
    align-items: center;
    gap: 12px;
  }

  .reset-inline {
    white-space: nowrap;
  }

  /* NEU: Umschalten auf Cards */
  .spiele-container {
    display: none;
  }

  .spiele-cards {
    display: block;
  }

    /* Chrome, Safari, Edge */
  .match-tip input::-webkit-inner-spin-button,
  .match-tip input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  /* Firefox */
  .match-tip input {
    -moz-appearance: textfield;
    appearance: textfield;
  }

}

/* =========================
   Mobile Cards
   ========================= */

.spiele-cards {
  display: none;
}

.match-card {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 16px 14px;
  margin-bottom: 12px;
  background: #f7f7f7;   /* 🔥 neutral, passt zu deinem Design */
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.match-teams {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
  display: inline-flex;     /* 🔥 wichtig */
  align-items: center;
  gap: 8px;
}

.match-meta {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}

.match-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 14px;
}

.match-inline {
  display: grid;                          /* 🔥 FEHLT BEI DIR */
  grid-template-columns: 1fr auto;        /* links Ergebnis, rechts Tipp */
  row-gap: 2px;
  column-gap: 8px;
  align-items: center;
}

/* Ergebnis links */
.match-inline .left-block {
  grid-column: 1;
}

/* Tipp rechts */
.match-inline .right-block {
  grid-column: 2;
  justify-self: end;
}

/* Quote unter Tipp rechts */
.match-quote {
  grid-column: 2;          /* 🔥 entscheidend */
  justify-self: end;

  font-size: 15px;     /* leicht größer */
  font-weight: 650;    /* etwas stärker */
  margin-top: 8px;     /* mehr Luft zum Tipp */
  display: block;      /* sicher unter dem Tipp */

  white-space: nowrap;
}

.match-quote,
.quoteCell {
  opacity: 0;
  transform: scale(0.95);
}

/* 🔥 Animation aktiv */
.match-quote.animate,
.quoteCell.animate {
  animation: quotePop 0.45s ease forwards;
}

@keyframes quotePop {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.match-inline .label:nth-of-type(2) {
  margin-right: -4px;
}

.arrow {
  text-align: center;
  color: #888;
}

.score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 15px;
  font-weight: 500;
  margin-right: 16px;
  color: #333;
}

.match-quote:empty {
  visibility: hidden;
  display: none;
}

.colon {
  width: 10px;
  text-align: center;
}

.match-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.match-tip input {
  width: 36px;
  min-width: 36px;
  text-align: center;
  font-weight: 600;
  padding: 3px 4px;
  font-size: 14px;
  background: #fff;      /* 🔥 weiß */
  border-radius: 3px;
  border: 1px solid #999;
}


.match-tip .colon {
  width: 10px;
  text-align: center;
}


.match-quote:empty {
  display: none;
}

.match-quote:not(:empty)::before {
  content: "Quote: ";
  font-weight: 400;
  color: #777;
}

.match-row:not(:last-child) {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 6px;
}

.match-row .value {
  font-weight: 600;
  align-items: center;
  gap: 4px;
}

.match-card.win {
  border-color: #c8e6c9;
  background: #f1f8f2;
}

.match-card.lose {
  border-color: #f5c6c6;
  background: #fff5f5;
}

.match-quote.win {
  color: #1e8e3e;
}

.match-quote.lose {
  color: #d93025;
}

.left-block {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.left-block .label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-right: 4px;
  display: block;
}

  /*color: #777;
  font-size: 13px;*/
/*
  color: inherit;        /* gleiche Farbe wie Zahlen */
/*  font-size: 14px;       /* gleiche Größe wie Rest */
/*  font-weight: 500;      /* optional, passt gut zu Zahlen */
/*
  color: black;
  font-size: inherit;
  font-weight: inherit;
/*fast gleich stark
  color: #444;      
  font-size: 14px;
  font-weight: 500;
*/

.right-block {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  flex-shrink: 0;
}

.right-block .label {
  font-size: 14px;
  font-weight: 500;
  color: #222;
  margin-right: 4px;
  display: block;
}

.spielCell {
  width: 50%;
  padding-right: 16px;
  vertical-align: middle;
}

.spiel-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between; /* 🔥 NEU */
}

.spiel-cell .teams {
  font-weight: 600;
  line-height: 1.2;
  flex: 1;
}

.spiel-cell .meta {
  font-size: 12px;      /* leicht größer */
  color: #777;          /* deutlich kräftiger */
  font-weight: 500;     /* bisschen mehr Präsenz */
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums; 
}

.spielTabelle td:nth-child(2),
.spielTabelle th:nth-child(2) {
  text-align: center;
}

.spielTabelle input,
.match-tip input {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.flag {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;

  display: inline-block;   /* 🔥 wichtig */
  vertical-align: middle;

  position: relative;
  top: 1px;   /* 🔥 MAGIC FIX */
}

.vs {
  /* margin: 0 10px;      👉 Abstand links + rechts */
  text-align: center;
  color: #666;      /*  optional etwas dezenter */
}

.teams-grid {
  display: grid;
  grid-template-columns: auto auto 1fr; 
  align-items: center;
  column-gap: 12px;
}

.team.home {
  width: 145px;
  text-align: left;
}

.team.away {
  text-align: left;
}

.team img {
  width: 18px;
  height: 12px;
  object-fit: cover;
  vertical-align: middle;
}

.team {
  display: inline-flex;     /* 🔥 KEY */
  align-items: center;      /* 🔥 vertikal perfekt */
  gap: 8px;                 /* 🔥 statt margin */
}

.match-teams .flag {
  position: relative;
  top: 0px;
}

.match-teams span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* =========================
   Burger Menü
   ========================= */

.header-top {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-toggle {
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Dropdown Menü */
.header-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
}

.header-menu a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.header-menu a:hover {
  text-decoration: underline;
}

/* aktiv */
.header-menu.open {
  display: flex;
}

/* =========================
   Slide-In Menü
   ========================= */

/* Button */
.menu-toggle {
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Overlay (dunkler Hintergrund) */
.menu-overlay {
  position: fixed;
  top: 50px;
  left: 0;
  width: 100%;
  height: calc(100% - 50px);
  background: rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1000;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Side Menu */
.side-menu {
  position: fixed;
  top: 50px; /* 🔥 Höhe deines Headers */
  right: -220px;
  width: 220px;
  height: calc(100% - 50px);
  background: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: -2px 0 8px rgba(0,0,0,0.15);
  transition: right 0.25s ease;
  z-index: 1001;
}

.side-menu.open {
  right: 0;
}

.side-menu a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  font-weight: 500;
}

.side-menu a:hover {
  text-decoration: underline;
}

.menu-toggle {
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1003;
}

.main-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px;
}

.site-footer {
  text-align: center;
  font-size: 13px;
  color: #666;
  padding: 15px 10px;   /* vorher deutlich größer */
  margin-top: 0px;     /* kleiner Abstand nach oben */

  
  background: #fafafa;
  border-top: 1px solid #eee;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.site-footer a {
  margin: 0 12px;
  color: #666;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-note {
  margin-top: 10px;
  font-size: 12px;
  color: #888;
  text-align: center;
}

.back-to-top-link {
  display: flex;           /* 🔥 statt inline-flex */
  align-items: center;
  gap: 6px;

  margin-top: 16px;
  margin-left: auto;       /* funktioniert jetzt wieder */
  width: fit-content;

  font-size: 14px;
  color: #555;

  background: none;
  border: none;
  cursor: pointer;
}

.arrow {
  position: relative;
  top: 0;              /* kein Offset mehr nötig */
  font-size: 14px;     /* kleiner & dezenter */

}

.back-to-top-link:hover {
  text-decoration: underline;
}

.back-to-top-link:hover .arrow {
  transform: translateX(-2px);
  transition: transform 0.15s ease;
}

.error-message {
  margin-top: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #fdecea;
  color: #d32f2f;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #f5c6cb;
}

.info-message {
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 8px;

  background: #f5f7fa;          /* helles grau */
  color: #333;                 /* neutral */
  border: 1px solid #e0e3e7;
  
  background: #eef4ff;
  color: #2b4eff;
  border: 1px solid #d6e0ff;

  font-size: 14px;
  font-weight: 500;

  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.info-message.visible {
  opacity: 1;
  transform: translateY(0);
}

.auswertung-section {
  background: #ffffff;
  margin-top: 20px;
  border-top: 2px solid #e5e7eb;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  margin-top: 2px;   /* 👈 Abstand zur Linie */
  margin-bottom: 10px;
  color: #333;
}

.einsatz-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Input-Zeile */
.einsatz-input-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px; 
}

.einsatz-input-row input {
  width: 70px;
  text-align: center;
}

/* Radio-Zeile */
.einsatz-art-row {
  display: flex;
  gap: 16px;
  margin-top: 2px;
}

.einsatz-box label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.einsatz-box input[type="number"] {
  width: 50px;
  padding: 4px 6px;
  font-size: 14px;
  text-align: center;
}

.einsatz-box strong {
  margin-top: 10px;
  display: block;
}

@keyframes pulseBtn {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.berechnen-pulse {
  animation: pulseBtn 0.35s ease;
  box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
}

/* =========================
   Buchmacher Zelle (NEU)
   ========================= */

.bm-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bm-name {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Link unter Buchmacher */
.affiliateLink {
  font-size: 11px;
  color: #1a73e8;
  text-decoration: none;
  width: fit-content;
}

.affiliateLink:hover {
  text-decoration: underline;
}

/* =========================
   Spaltenbreiten FINAL
   ========================= */

/* Buchmacher */
.bookmakerTable th:nth-child(1),
.bookmakerTable td:nth-child(1) {
  width: 50%;
  white-space: nowrap;
}

.bookmakerTable th:nth-child(2),
.bookmakerTable td:nth-child(2) {
  width: 80px;
  padding: 10px 0;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
}

.bookmakerTable td:nth-child(2) input {
  display: block;
  margin: 0 auto;
}

.bookmakerTable th:nth-child(3),
.bookmakerTable td:nth-child(3) {
  text-align: right;
  white-space: nowrap;   /* 🔥 kein Umbruch */
  width: 110px;              /* 🔥 feste Breite */
  max-width: 110px;
}

/* Wrapper für Button + Badge */
.bm-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;

  width: 100%;
}

/* Button */
.bm-button {
  display: flex;
  flex-direction: column;
  justify-content: center;

  width: 160px;
  flex: none;

  height: 60px;

  padding: 8px 10px;
  border-radius: 8px;

  background: #f7fcf8;
  border: 1px solid #e3e7ef;

  text-decoration: none;
  color: inherit;
  transform: translateY(-10px);   /* 🔥 einfach nach oben schieben */
}

/* Name */
.bm-button-name {
  font-weight: 600;
}

/* CTA */
.bm-button-cta {
  font-size: 12px;
  color: #1a73e8;
}

.quote-header-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quote-header .eye-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #777;
  opacity: 0.7;
}

.quote-header .eye-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Optional Hover-Effekt */
.quote-header:hover .eye-icon {
  opacity: 1;
}

.bet-option {
  display: flex;
  align-items: center;
  gap: 8px;  
  margin: 6px 0;
  overflow: visible;
}

.bet-option label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =========================
   Tooltip (NEU)
   ========================= */

.info-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}

.info-svg {
  width: 18px;
  height: 18px;
  fill: #9ca3af;
  transition: transform 0.15s ease, fill 0.15s ease;
}

.info-icon:hover .info-svg {
  transform: scale(1.1);
  fill: #6b7280;
}

/* Tooltip Box */
.tooltip {
  position: fixed;

  background: #4a4a4a;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;

  max-width: 180px;
  white-space: normal;
  word-break: break-word;

  box-shadow: 0 4px 12px rgba(0,0,0,0.15);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;

  z-index: 9999;
  transform: translateY(-2px); /* minimal nach oben */
}

.tooltip.show {
  opacity: 1;
}

/* sichtbar */
.tooltip.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}


.tooltip.flip::after {
  left: auto;
  right: -6px;
  border-color: transparent transparent transparent #111;
}

@media (max-width: 380px) {

  /* 🔥 Button etwas kleiner */
  .bm-button {
    width: 130px;
    height: 55px;
  }

  /* 🔥 Schrift minimal kleiner */
  .bm-button-name {
    font-size: 14px;
  }

  .bm-button-cta {
    font-size: 11px;
  }

  /* 🔥 Quote enger */
  .bookmakerTable th:nth-child(2),
  .bookmakerTable td:nth-child(2) {
    width: 40px;
  }

  /* 🔥 Gewinn kompakter */
  .bookmakerTable th:nth-child(3),
  .bookmakerTable td:nth-child(3) {
    width: 85px;
  }

  .profit-main {
    font-size: 16px;
  }

  .profit-sub {
    font-size: 11px;
  }

}

#desktopScreenshotHint {
  display: inline-block;
  margin-left: 0;
  margin-top: 10px;
  margin-bottom: 6px;

  padding: 8px 12px;

  background: #eef3ff;
  border: 1px solid #d6e0ff;
  border-radius: 6px;

  font-size: 13px;
  color: #3a5edc;

  max-width: 100%;

  /* 🔥 FIX */
  opacity: 1;
  transform: none;

  align-self: flex-start;
}

.import-success-inline {
  margin-top: 0px;
}

.success-main {
  font-size: 15px;
  font-weight: 300;
  color: #2f7a4f;
}

.import-next-hint {
  margin-top: 4px;
  font-size: 13px;
  color: #666;
  font-weight: 500;   /* 🔥 kleiner Boost */
}

/* =========================
   Hilfe Link (Header)
   ========================= */

.help-link {
  font-size: 12px;   /* minimal kleiner */
  color: #666;
  font-weight: 500;

  padding: 6px 8px;
  border-radius: 4px;

  position: relative;
  top: -1px;  /* 👈 bewusst höher als Titel */
  text-decoration: none;
}

.help-link:hover {
  background: #f2f2f2;
}

/* =========================
   Content-Seiten (Impressum, Datenschutz, Kontakt)
   ========================= */

.main-wrapper a {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  color: #555;
}

.main-wrapper h1 {
  margin-bottom: 12px;
}

.main-wrapper h3 {
  margin-top: 16px;     /* Abstand zur vorherigen Section */
  margin-bottom: 6px;   /* 👈 weniger Abstand zum Text */
}

.main-wrapper p {
  margin-top: 0;
  margin-bottom: 10px;  /* 👈 kompakter */
  line-height: 1.5;
}

.back-link { 
  display: inline-block; 
  margin-top: 16px; 
  font-size: 14px; 
  color: #555; 
  background: none; 
  border: none; 
  cursor: pointer; 

  margin-left: 0;   /* 👈 explizit setzen */
  padding-left: 0;  /* 👈 sicherstellen */
}

.back-to-top-link {
  display: flex;           /* 🔥 statt inline-flex */
  align-items: center;
  gap: 6px;

  margin-top: 16px;
  margin-left: auto;       /* funktioniert jetzt wieder */
  width: fit-content;

  font-size: 14px;
  color: #555;

  background: none;
  border: none;
  cursor: pointer;
}

.back-link:hover {
  text-decoration: underline;
}

.spacer-small {
  margin: 8px 0;   /* fein einstellbar */
}

/* =========================
   So funktioniert’s Modal
   ========================= */

.help-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.help-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.help-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.help-modal-dialog {
  position: relative;
  z-index: 1;

  width: min(640px, calc(100vw - 24px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;

  margin: 20px auto;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #ddd;

  box-shadow: 0 8px 30px rgba(0,0,0,0.2);

  transform: translateY(10px) scale(0.98);
  transition: transform 0.2s ease;
}

.help-modal.open .help-modal-dialog {
  transform: translateY(0) scale(1);
}

.help-modal-content {
  padding: 22px;
}

.help-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #666;
}

.help-modal-close:hover {
  background: #f2f2f2;
}

body.modal-open {
  overflow: hidden;
}

.help-note-block {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.help-note-block h3 {
  font-size: 14px;
  color: #666;
  margin-bottom: 6px;
}

.help-step h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 10px;

  background: #f7f7f7;
  padding: 6px 10px;
  border-radius: 6px;
}

.import-info {
  color: #666;
}

#ocrStatus,
#pasteStatus {
  margin-top: 12px;
  padding-top: 10px;
}

#ocrStatus:not(:empty),
#pasteStatus:not(:empty) {
  border-top: 1px solid #eee;
}

#ocrStatus:empty,
#pasteStatus:empty {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.spieltag-arrow {
  border: 1px solid #ddd;
  background: #fff;

  height: 34px;              /* 🔥 feste Höhe */
  width: 34px;               /* 🔥 quadratisch */

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;                /* 🔥 wichtig */
  font-size: 14px;
  cursor: pointer;

  border-radius: 0;          /* 🔥 erstmal neutral */
  font-size: 12px;
}

/* nur links abgerundet */
#prevSpieltag {
  border-radius: 6px 0 0 6px;
}

/* nur rechts abgerundet */
#nextSpieltag {
  border-radius: 0 6px 6px 0;
}

.spieltag-arrow:hover {
  background: #f2f2f2;
}

.spieltag-arrow.disabled {
  opacity: 0.4;
  cursor: default;
}

.spieltag-display {
  height: 34px;                 /* 🔥 gleiche Höhe */
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 14px;
  min-width: 125px;

  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;

  border-left: none;
  border-right: none;

  background: #fff;
  font-weight: 600;
  font-size: 14px;
}

.spieltag-display:hover {
  background: #f5f5f5;
}

/* verstecktes select */
.spieltag-select-hidden {
  position: absolute;
  inset: 0;              /* 🔥 ersetzt left/top/width/height sauber */

  width: 100%;
  height: 100%;

  opacity: 0;
  cursor: pointer;

  z-index: 2;            /* 🔥 GANZ WICHTIG */
}

.spieltag-select-wrapper {
  position: relative;
  display: flex; 
}

/* 🔥 Spieltag Highlight nach Import */
.highlight-spieltag {
  animation: spieltagGlow 1.5s ease;
}

@keyframes spieltagGlow {
  0%   { box-shadow: 0 0 0 0 rgba(30, 126, 52, 0.4); }
  70%  { box-shadow: 0 0 0 8px rgba(30, 126, 52, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 126, 52, 0); }
}

.competition-btn,
.import-method-switch button,
.spieltag-arrow {
  color: #222;
  -webkit-text-fill-color: #222;
}