/* === STYLES: Base === */
    :root {
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color-scheme: light;
    }
    body {
      margin: 0;
      display: grid;
      grid-template-columns: 360px 1fr;
      height: 100vh;
      background: #ffffff;
      color: #0f172a;
      overflow: hidden;
    }
    #ui {
      padding: 16px;
      background: linear-gradient(to bottom, #ffffff 0, #f3f4f6 60%, #e5e7eb 100%);
      border-right: 1px solid #d1d5db;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      gap: 12px;
      overflow-y: auto;
    }
    #canvas-container {
      position: relative;
      width: 100%;
      height: 100%;
      background-image:
        /* Stylisierte Farbüberlagerung, damit Foto harmonisch zum 3D-Court passt */
        linear-gradient(to top,
          rgba(15,23,42,0.70) 0%,
          rgba(15,23,42,0.55) 30%,
          rgba(15,23,42,0.30) 70%,
          rgba(30,64,175,0.12) 100%
        ),
        url("img/background-city.png");
      background-size: cover;
      background-position: center bottom;
      background-repeat: no-repeat;
      background-blend-mode: multiply;
}
    #canvas-container canvas {
      display: block;
    }
    h1 {
      font-size: 1.25rem;
      margin: 0 0 2px;
      color: #111827;
    }
    h2 {
      font-size: 0.9rem;
      margin: 10px 0 8px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: #9ca3af;
    }
    .panel {
      background: #ffffff;
      border-radius: 16px;
      padding: 10px 12px;
      box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
      border: 1px solid #e5e7eb;
    }
    .panel.compact {
      padding: 8px 10px;
    }
    .field {
      display: flex;
      flex-direction: column;
      gap: 4px;
      margin-bottom: 6px;
    }
    label {
      font-size: 0.78rem;
      color: #4b5563;
    }

        button:not(.color-swatch):not(.hoop-card) {
      border-radius: 999px;
      border: 1px solid #4b5563;
      padding: 6px 10px;
      font-size: 0.8rem;
      cursor: pointer;
      background: #111827;
      color: #e5e7eb;
      font-weight: 500;
      box-shadow: none;
      transition: transform 0.1s ease, filter 0.1s ease;
      white-space: nowrap;
    }
.color-custom {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #e5e7eb;
}
.color-custom-label {
  font-size: 0.72rem;
  color: #4b5563;
}
.color-custom-inputs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  flex-wrap: wrap; /* 3 Werte bleiben sichtbar */
}
.color-custom-inputs input[type="number"] {
  width: 52px;
  padding: 2px 4px;
  font-size: 0.65rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
}

.color-custom-inputs input[type="number"]:focus {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}
.color-custom-apply {
  padding: 1px 4px;
  font-size: 0.55rem !important;
  border-radius: 999px;
  white-space: nowrap;
  margin-left: auto;
  box-sizing: border-box;
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #ffffff;
  cursor: pointer;
}
.color-custom-apply:hover {
  filter: brightness(0.95);
}

cursor: pointer;
  white-space: nowrap;
}
.color-custom-apply:hover {
  filter: brightness(0.95);
}


    button.secondary {
      background: rgba(15, 23, 42, 0.95);
      color: #e5e7eb;
      border: 1px solid rgba(148, 163, 184, 0.6);
      box-shadow: none;
    }

   .product-button-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.product-button-row button {
  flex: 1 1 0;
}
.pdf-button.info {
  background-color: #0ea5e9;
  color: #0b1120;
  border: 1px solid #0ea5e9;
  font-size: 14px;     /* <-- identisch zur Kalkulationstaste */
  font-weight: 600;
}

button.pdf-button.info:hover {
  background-color: #0ea5e9;
}

button.pdf-button.info:active {
  background-color: #0ea5e9;
  transform: translateY(1px) scale(0.99);
}


    button:not(.color-swatch):active {
      transform: translateY(1px) scale(0.99);
      filter: brightness(0.95);
    }

    select,
    input[type="number"],
    input[type="file"] {
      width: 100%;
      box-sizing: border-box;
      padding: 6px 8px;
      border-radius: 999px;
      border: 1px solid rgba(55, 65, 81, 0.9);
      background: #0b1120;
      color: #f9fafb;
      font-size: 0.8rem;
      outline: none;
    }

    /* Spezielle Optik für COURT-GRÖSSE Auswahl */
    #courtType {
      background: #e5e7eb;
      color: #111827;
      border-color: rgba(55, 65, 81, 0.6);
    }
    #courtType option:nth-child(1) {
      background-color: #e5e7eb; /* Court grau */
      color: #111827;
    }
    #courtType option:nth-child(2) {
      background-color: #87CEFA; /* Zone hellblau */
      color: #0b1120;
    }
    #courtType option:nth-child(3) {
      background-color: #4169E1; /* Umrandung Royalblau */
      color: #f9fafb;
    }
    /* Spezielle Optik für Spielfeld-Varianten (Custom) */
    #courtVariant {
      background: #e5e7eb;
      color: #111827;
      border-color: rgba(55, 65, 81, 0.6);
    }
    #courtVariant option[value="half"] {
      background-color: #e5e7eb; /* wie Court */
      color: #111827;
    }
    #courtVariant option[value="full"] {
      background-color: #87CEFA; /* wie Zone */
      color: #0b1120;
    }


    input[type="file"] {
      padding: 4px 6px;
      border-radius: 10px;
      background: #111827;
      font-size: 0.72rem;
    }
    .inline-group {
      display: flex;
      gap: 8px;
    }
    .inline-group > * {
      flex: 1;
    }
    #status {
      font-size: 0.75rem;
      color: #6b7280;
      margin-top: 4px;
      white-space: pre-line;
    }
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.7rem;
      padding: 2px 8px;
      border-radius: 999px;
      background: #eff6ff;
      border: 1px solid #bfdbfe;
      color: #1d4ed8;
      margin-top: 4px;
    }
    .dot {
      width: 6px;
      height: 6px;
      border-radius: 999px;
      background: #ef4444;
      box-shadow: 0 0 6px rgba(248, 113, 113, 0.8);
    }
    .price-row {
      display: flex;
      justify-content: space-between;
      font-size: 0.78rem;
      margin-bottom: 2px;
    }
    .price-row span:last-child {
      font-variant-numeric: tabular-nums;
    }
    .price-row.total {
      margin-top: 4px;
      padding-top: 4px;
      border-top: 1px dashed rgba(148, 163, 184, 0.4);
      font-weight: 600;
    }
    .hint {
      font-size: 0.7rem;
      color: #9ca3af;
      margin-top: 2px;
    }
    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 4px 2px 6px;
    }
    .brand-logo {
      height: 42px;
      width: auto;
      object-fit: contain;
    }
    .brand-text {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .brand-sub {
      margin: 0;
      font-size: 0.75rem;
      color: #4b5563;
    }
    .brand-link {
      font-size: 0.72rem;
      color: #1d4ed8;
      text-decoration: none;
    }
    .brand-link:hover {
      text-decoration: underline;
    }

    .color-preview {
  width: 100%;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: #111827;
  cursor: pointer;
  margin-bottom: 4px;
}

.color-scale {
  display: none;
}
.color-scale.open {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  margin-top: 4px;
}

.color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.35);
  padding: 0;
  margin: 0;
  cursor: pointer;
  box-sizing: border-box;
  outline: none;
  background-color: transparent;
}
.color-swatch.active {
  border-color: #0f172a;
  box-shadow: 0 0 0 1px #0f172a;
}


/* UPDATED hoop card styles */
.hoop-group {
      display: flex;
      flex-direction: column;
      gap: 4px;
      margin-top: 6px;
    }
    .hoop-group-title {
      font-size: 0.72rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: #6b7280;
      margin: 2px 0;
    }
    .hoop-group-logo {
    width: 100%;
    height: auto;
    max-width: 420px;
    display: block;
    margin: 24px auto 12px auto;
}
    .hoop-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}
.hoop-card {
  border-radius: 12px;
  padding: 6px 6px 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.64rem;
  text-align: center;
  white-space: normal; /* Titel und Texte dürfen umbrechen */
  transition: box-shadow 0.12s ease, border-color 0.12s ease, background-color 0.12s ease, transform 0.05s ease;
}
.hoop-card:hover {
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}
.hoop-card.active {
  border-color: #1d4ed8;
  background: #eff6ff;
}
.hoop-card img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}
.floor-cards {
  grid-template-columns: 1fr;
  gap: 12px;
}
.floor-card img {
  height: 160px;
}

.hoop-card-title {
  font-weight: 600;
  font-size: 0.62rem;
  line-height: 1.25;
}
.hoop-card-article {
  font-size: 0.58rem;
  color: #6b7280;
}
.hoop-card-price {
  font-size: 0.58rem;
  color: #111827;
  font-weight: 400;
}
#hoopType {
      display: none;
    }

    .logo-row {
      border-top: 1px dashed #e5e7eb;
      padding-top: 6px;
      margin-top: 4px;
    }
    .logo-row-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.75rem;
      margin-bottom: 4px;
    }
    .logo-row-fields {
      display: grid;
      grid-template-columns: 1.4fr 1fr 1fr;
      gap: 4px;
      margin-bottom: 4px;
    }
    .logo-pos-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 4px;
      font-size: 0.72rem;
    }
    .logo-actions {
      margin-top: 4px;
      display: flex;
      gap: 4px;
      flex-wrap: wrap;
    }

    details#logoDetails summary {
      cursor: pointer;
      list-style: none;
      font-size: 0.75rem;
      padding: 4px 8px;
      border-radius: 999px;
      background: #e5e7eb;
      display: inline-block;
      margin-bottom: 4px;
    }
    details#logoDetails[open] summary {
      background: #d1d5db;
    }

    @media (max-width: 600px) {
  /* Mobile: Court fix im unteren Bereich, oberer Bereich scrollbar */
  body {
    margin: 0;
    height: 100vh;
    overflow: hidden;      /* Seite selbst scrollt nicht */
    display: block;        /* kein Grid auf Mobile */
  }
  #ui {
    position: relative;
    height: 100vh;
    overflow-y: auto;      /* nur der obere Bereich scrollt */
    padding-bottom: 45vh;  /* Platz für den fixierten Court lassen */
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #d1d5db;
    max-height: none;
  }
  #canvas-container {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: min(80vw, 45vh); /* orientiert sich an Breite, aber max. knapp halbe Höhe */
    z-index: 0;
  }

  #header-panel { margin-top: 8vh; }
}


/* Light-blue inputs for court length/width */
#courtLength, #courtWidth {
  background: #87CEFA;
  color: #0b1120;
  border-color: rgba(55,65,81,0.6);
}


    /* Logo-Optionen: Buttons & Überschriften optisch an Farbbereich anpassen */
    #logoDetails > summary {
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      padding: 6px 10px;
      border-radius: 999px;
      background: #e5e7eb;
      color: #111827;
      font-size: 0.8rem;
      border: 1px solid #d1d5db;
      margin-top: 4px;
    }
    #logoDetails[open] > summary {
      background: #e0f2fe;
      border-color: #93c5fd;
    }
    
  .tile-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 4px;
  }
  .tile-option {
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 8px 10px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-align: left;
    transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
  }
  .tile-option:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
  }
  .tile-option:hover {
    background: #f3f4f6;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
  }
  .tile-option-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
  }
  .tile-swatch {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
  }
  .tile-swatch-a {
    background: radial-gradient(circle at 10% 10%, #f97316 0, #ea580c 35%, #7c2d12 100%);
  }
  .tile-swatch-b {
    background: radial-gradient(circle at 10% 10%, #22c55e 0, #16a34a 35%, #065f46 100%);
  }
  .tile-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .tile-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #111827;
  }
  .tile-sub {
    font-size: 0.75rem;
    color: #4b5563;
  }

.logo-row-header span {
      font-size: 0.7rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      white-space: nowrap;
    }
    /* Logo-Eingaben: Datei / Größe / Deckkraft in einer Reihe, grau hinterlegt */
    .logo-row-fields {
      display: grid;
      grid-template-columns: 1.6fr 0.6fr 0.6fr;
      gap: 6px;
      align-items: flex-start;
    }
    .logo-row-fields small {
      display: block;
      font-size: 0.68rem;
      white-space: nowrap;
    }
    .logo-row-fields input[type="file"],
    .logo-row-fields input[type="number"] {
      width: 100%;
      box-sizing: border-box;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.9);
      background: #e5e7eb;
      color: #111827;
      font-size: 0.75rem;
      padding: 4px 8px;
    }
    .logo-row-fields input[type="file"] {
      font-size: 0.65rem; /* damit "Datei auswählen" hineinpasst */
    }

    /* Positions-/Rotationsfelder: hellblau hinterlegt */
    .logo-pos-row {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 6px;
      margin-top: 4px;
    }
    .logo-pos-row small {
      display: block;
      font-size: 0.68rem;
      white-space: nowrap;
    }
    .logo-pos-row input[type="number"] {
      width: 100%;
      box-sizing: border-box;
      border-radius: 999px;
      border: 1px solid rgba(147, 197, 253, 0.9);
      background: #87CEFA;
      color: #0b1120;
      font-size: 0.75rem;
      padding: 4px 8px;
    }

    .logo-actions {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 4px;
      margin-top: 4px;
    }
    .logo-actions button {
      border-radius: 999px;
      border: 1px solid #d1d5db;
      font-size: 0.72rem;
      padding: 2px 6px;
      white-space: normal;
      flex: 1 1 0;
      box-sizing: border-box;
      text-align: center;
    }
    .logo-actions button.secondary {
      background: #fee2e2;
      color: #b91c1c;
      border-color: #fecaca;
    }
    .logo-actions button:not(.secondary) {
      background: #4169E1; /* Royalblau */
      color: #f9fafb;
      border-color: #1d4ed8;
    }

  
    /* removed default file button styling, using custom label */


  /* Override: Logo-Bereich Schriftgrößen und Buttons kompakt halten */
  .logo-row-fields small,
  .logo-pos-row small {
    font-size: 0.7rem;
    white-space: nowrap;
  }
  #logoDetails > summary {
    font-size: 0.8rem;
  }
  .logo-actions button {
    font-size: 0.6rem;
    padding: 2px 6px;
  }
  .logo-row-fields input[type="file"],
  .logo-row-fields input[type="number"] {
    font-size: 0.7rem;
  }

  /* Starke Overrides für Logo-Bereich: kompakte Schriftgrößen und Buttons */
  .logo-row-fields small,
  .logo-pos-row small {
    font-size: 0.7rem !important;
    white-space: nowrap !important;
  }
  #logoDetails > summary {
    font-size: 0.8rem !important;
  }
  .logo-actions button {
    font-size: 0.56rem !important;
    padding: 2px 6px !important;
    white-space: nowrap !important;
  }
  .logo-row-fields input[type="file"],
  .logo-row-fields input[type="number"] {
    font-size: 0.6rem !important;
  }
  #removeLogo1Btn, #addLogo2Btn,
  #removeLogo2Btn, #addLogo3Btn,
  #removeLogo3Btn, #addLogo4Btn {
    font-size: 0.56rem !important;
    padding: 2px 6px !important;
  }

  
  
  .file-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 32px;
    border-radius: 999px;
    background: #e5e7eb;
    border: 1px solid #d1d5db;
    cursor: pointer;
  }
  .file-upload-btn .upload-icon {
    width: 18px;
    height: 18px;
    display: block;
  }

  .logo-row-fields input[type="file"] {
    display: none;
  }

    #projectName {
      font-size: 0.7rem;
      background-color: #08B3E4; /* hellblau */
      border-color: rgba(37, 99, 235, 0.8);
      color: #0b1120;
    }
    #downloadPdfBtn {
      font-size: 0.6rem;
      line-height: 1.2;
      background-color: #EF4444; /* Rot */
      border-color: #B91C1C;
      color: #F9FAFB;
    }

  /* Print-Layout */
  #print-layout {
    display: none;
    padding: 24px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }
  #print-layout h1 {
    margin-top: 0;
    font-size: 22px;
    text-align: center;
  }

  #print-layout .print-logo {
    display: block;
    max-width: 420px;
    height: auto;
    margin: 0 auto 8px auto;
  }
  #print-layout .print-subtitle {
    margin-bottom: 12px;
    font-size: 14px;
    color: #4b5563;
    text-align: center;
  }

  #print-layout .print-inner {
    max-width: 420px;
    margin: 0 auto;
  }

  #print-layout .print-flex {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  #print-layout .print-court {
    width: 100%;
    min-height: 200px;
    border-radius: 16px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
  }
  #print-layout .print-kalk {
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
    box-sizing: border-box;
  }
  #print-layout .project-info {
    text-align: center;
    font-size: 13px;
    color: #4b5563;
    margin-top: 4px;
    margin-bottom: 12px;
  }

  #print-layout img.print-court-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.15);
  }

  #print-layout .print-footer {
    margin-top: 16px;
    text-align: center;
  }
  #print-layout .print-footer-line {
    border-top: 1px solid #9ca3af;
    width: 100%;
    margin: 0 auto 4px auto;
  }
  #print-layout .print-footer-text div {
    font-size: 10pt;
    line-height: 1.3;
  }

  @media print {
    body {
      margin: 0;
    }
    body > *:not(#print-layout) {
      display: none !important;
    }
    #print-layout {
      display: block !important;
      box-sizing: border-box;
    }
  }

  .tile-brand-logo {
    width: 140px;
    height: auto;
    display: block;
    margin: 6px auto 12px auto;
  }
  .tile-choices-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .tile-option-image {
    padding: 10px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    text-align: left;
    transition: 0.2s ease;
  }
  .tile-option-image:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
  }
  .tile-photo {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #fff;
    object-fit: contain;
    border: 1px solid #e5e7eb;
  }

.hoop-card-desc {
  font-size: 0.58rem;
  color: #6b7280;
  margin-top: 2px;
  margin-bottom: 2px;
}

.sponsor-offer-banner {
  margin-top: 4px;
  padding: 8px 12px;
  font-size: 0.75rem;
  border-radius: 9999px;
  background: transparent;
  color: #b91c1c;
  text-align: center;
  cursor: pointer;
  border: 1px solid #ef4444;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.sponsor-offer-banner:hover {
  transform: translateY(-1px);
}

.sponsor-offer-text {
  font-weight: 600;
}

.sponsor-offer-logo {
  height: 52px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
}
.sponsor-modal {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.sponsor-modal-content {
  position: relative;
  background: #ffffff;
  max-width: 420px;
  width: 90%;
  border-radius: 0.9rem;
  padding: 18px 20px 16px;
  box-shadow: 0 18px 45px rgba(15,23,42,0.6);
  font-size: 0.85rem;
}

.sponsor-modal-logo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.sponsor-modal-logo {
  max-width: 420px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.sponsor-modal-content p {
  margin-bottom: 8px;
  color: #374151;
}

.sponsor-modal-content ul {
  margin: 0 0 10px 1.1rem;
  padding: 0;
  color: #4b5563;
}

.sponsor-modal-content li {
  margin-bottom: 4px;
}

.sponsor-modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.sponsor-modal-buttons button {
  border-radius: 9999px;
  border: none;
  padding: 6px 14px;
  font-size: 0.8rem;
  cursor: pointer;
}

.sponsor-modal-buttons button.primary {
  background: #16a34a;
  color: #f9fafb;
}

.sponsor-modal-buttons button.secondary {
  background: #e5e7eb;
  color: #111827;
}

.sponsor-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 1rem;
  cursor: pointer;
  color: #9ca3af;
}

.sponsor-modal-close:hover {
  color: #4b5563;
}


@media print {
  #sponsorOfferTrigger {
    display: none !important;
  }
}

.hoop-group-logo {
    width: 100%;
    height: auto;
    max-width: 420px;
    display: block;
    margin: 6px auto 12px auto;
}
.hoop-group-logo {
    width: 100%;
    height: auto;
    max-width: 420px;
    display: block;
    margin: 6px auto 12px auto;
}
.panel .field label {
  margin-bottom: 4px;
}


.hoop-group-logo {
  margin-top: -14px !important;
  margin-bottom: 8px !important;
}

.panel h3 {
  margin-top: -20px !important;
}

.floor-card img {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  margin-bottom: 6px;
}


    /* Override: increase top spacing above Schelde logo */
    #ui .hoop-group-logo { margin-top: 16px !important; }

  
  
  .court-type-custom {
    margin-top: 8px;
    display: grid;
    gap: 8px;
  }
  .court-type-option {
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.9);
    background: #F1F5F9 !important;
    color: #000000 !important;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  }
  .court-type-option:hover {
    border-color: #016db6;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.12);
  }
  .court-type-option.active {
    border-color: #016db6;
    background: #e0f2fe !important;
    box-shadow: 0 0 0 2px rgba(1, 109, 182, 0.2);
  }
  .court-type-meta {
    font-size: 0.78rem;
    color: #374151 !important;
  }



button.secondary.pdf-button.info {
  background-color: #0ea5e9;
  color: #0b1120;
  border: 1px solid #0ea5e9;
}

/* STRONG ACTIVE HIGHLIGHT */
.floor-card.active,
.hoop-card.active,
.court-type-option.active,
.court-size-option.active {
  background-color: #bfe9ff !important;
  border: 3px solid #0ea5e9 !important;
  box-shadow: 0 0 10px rgba(14,165,233,0.6);
}

/* FIBA-LOGO-BEREICH im aktiven Produkt an Panelfarbe anpassen */
.floor-card.active .hoop-card-article {
  background-color: #bfe9ff !important;
}
.floor-card.active .hoop-card-article img[src*="fiba3x3approved"] {
  background-color: #bfe9ff !important;
}

/* SAM 3x3 FIBA logo background fix */
.hoop-card.active .fiba-logo {
  background-color: #bfe9ff !important;
}

/* Foto-Galerie Modal, angepasst ans Panel-Layout */
.photo-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.photo-modal:not(.hidden) {
  display: flex;
}

.photo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4); /* leicht abgedunkelt, Court weiterhin sichtbar */
}

.photo-modal-panel {
  position: relative;
  z-index: 1;
  background: #f9fafb;
  border-radius: 20px;
  padding: 24px 24px 20px 24px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
  max-width: 960px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  width: 100%;
}

.photo-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #4b5563;
}

.photo-modal-close:hover {
  color: #111827;
}

.photo-modal-back-btn {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid #0ea5e9;
  background: #0ea5e9;
  color: #0b1120;
  font-weight: 600;
  cursor: pointer;
}
.photo-modal-back-btn:hover {
  filter: brightness(0.95);
}

/* Einzelbild-Ansicht (großes Foto) */
.large-photo {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.large-photo:not(.hidden) {
  display: flex;
}

.large-photo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
}

.large-photo-panel {
  position: relative;
  z-index: 1;
  background: #f9fafb;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.45);
  max-width: 1100px;
  width: 90%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.large-photo-close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #4b5563;
}

.large-photo-close:hover {
  color: #111827;
}

.large-photo-panel img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
}

.preset-logo-btn{
  border:1px solid #0ea5e9;
  border-radius:14px;
  background:#7dd3fc !important;
  cursor:pointer;
  padding:4px;
  height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:none;
}
.preset-logo-btn img{
  background:transparent !important;
  height:34px !important;
  width:100% !important;
  object-fit:contain;
  display:block;
}


.preset-logo-btn:hover{
  background:#bae6fd;
  border-color:#0ea5e9;
}



/* --- Preset Logo Gallery (external PNGs) --- */
.logo-preset-grid{
  display:grid !important;
  grid-template-columns:repeat(5, 1fr) !important;
  gap:10px !important;
}
.preset-item{
  display:flex;
  flex-direction:column;
  align-items:center;
}
.preset-logo-btn{
  border:1px solid #0ea5e9 !important;
  border-radius:14px !important;
  background:#7dd3fc !important; /* SkyBlue */
  cursor:pointer !important;
  padding:4px !important;
  height:52px !important;
  width:100% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  box-shadow:none !important;
}
.preset-logo-btn:hover{
  background:#bae6fd !important;
}
.preset-logo-btn img{
  background:transparent !important;
  width:100% !important;
  height:32px !important;
  object-fit:contain !important;
  display:block !important;
}
.preset-caption{
  font-size:0.7rem;
  color:#9ca3af;
  margin-top:4px;
  text-align:center;
  line-height:1.1;
}

/* ===== Extracted from HTML ===== */

/* ===== LOGOS: neues, übersichtliches Panel ===== */
.logo-panel-top{margin-top:6px}
.logo-topline{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:6px 0 8px}
.logo-top-title{font-weight:800;letter-spacing:0.2px}
.logo-top-sub{font-size:12px;color:#7b8aa6}
.logo-panel-top{font-size:12px}
.logo-top-title{font-size:1.0rem}
.logo-top-sub{font-size:0.70rem !important}
.logo-source-buttons .logo-tab{font-size:0.70rem !important}
.logo-tip{font-size:0.64rem !important}
#logoDetails > summary{font-size:0.70rem !important}

/* FIX: kleinere Schrift im LOGOS-Panel (mobile & desktop) */
.logo-panel-top, .logo-panel-top *{ -webkit-text-size-adjust: 100%; }

.logo-slot-strip{display:flex;gap:8px;overflow:auto;padding:6px 2px 10px;scrollbar-width:thin}
.logo-slot-btn{
  flex:0 0 auto;
  width:44px;height:44px;border-radius:12px;
  border:2px solid rgba(0,0,0,0.10) !important;
  background:#c7ecff; /* SkyBlue aus Palette */
  display:grid;place-items:center;
  position:relative;
  cursor:pointer;
}
.logo-slot-btn.is-active{border-color:#0aa4e6; box-shadow:0 0 0 3px rgba(10,164,230,0.18)}
.logo-slot-btn .slot-num{
  position:absolute;top:-6px;left:-6px;
  width:18px;height:18px;border-radius:9px;
  background:#0aa4e6;color:#fff;font-weight:700;
  display:grid;place-items:center;
  font-size:11px;
}
.logo-slot-btn img{
  width:34px;height:34px;object-fit:cover;
  border-radius:10px;
  background:transparent;
  filter:drop-shadow(0 1px 0 rgba(0,0,0,0.08));
}
.logo-slot-btn .slot-empty{
  width:22px;height:22px;border-radius:8px;
  border:2px dashed rgba(0,0,0,0.20);
}

.logo-source-tabs{display:flex;gap:8px;margin:4px 0 10px}
.logo-tab{
  flex:1;
  border-radius:999px;
  border:2px solid rgba(10,164,230,0.25);
  background:#e9f7ff;
  padding:8px 10px;
  font-weight:700;
  cursor:pointer;
}
.logo-tab.is-active{
  background:#0aa4e6;
  color:#fff;
  border-color:#0aa4e6;
}

.logo-source-panel{margin-bottom:10px}
.logo-preset-grid{display:flex;gap:10px;justify-content:space-between;align-items:flex-start}
.preset-item{width:20%;min-width:0;text-align:center}
.preset-item .preset-caption{
  margin-top:6px;
  font-size:12px;
  color:#9aa8c1; /* wie Hinweistext unter Button */
}
.preset-logo-btn{
  width:100%;
  height:44px;           /* niedriger */
  border-radius:12px;
  background:#c7ecff;    /* SkyBlue statt schwarz */
  border:2px solid rgba(0,0,0,0.10);
  display:grid;place-items:center;
  padding:0;
}
.preset-logo-btn img{
  max-width:82%;
  max-height:82%;
  object-fit:contain;
  background:transparent;
}
.logo-tip{
  margin-top:10px;
  font-size:12px;
  color:#9aa8c1;
  line-height:1.35;
}
.logo-upload-card{
  border:2px solid rgba(10,164,230,0.25);
  background:#e9f7ff;
  border-radius:14px;
  padding:10px;
}
.logo-upload-text{font-size:12px;color:#9aa8c1;line-height:1.35;margin-bottom:10px}
.logo-upload-btn{
  width:100%;
  border-radius:999px;
  border:0;
  padding:10px 12px;
  font-weight:800;
  background:#0aa4e6;
  color:#fff;
  cursor:pointer;
}

/* Nur aktives Logo-Formular sichtbar (verhindert Unübersichtlichkeit) */
.logo-row{display:none !important}
.logo-row.is-active{display:block !important}

/* ===== Extracted from HTML ===== */

/* ===== LOGOS v6: Umstellungen (Slots + Modal-Galerie) ===== */
button[id^="addLogo"]{ display:none !important; } /* alte 'Logo hinzufügen'-Buttons ausblenden */
#logoPresetGrid .logo-preset-tile{
  border-radius:16px;
  border:2px solid rgba(0,0,0,0.10);
  background:#c7ecff; /* SkyBlue aus Palette */
  padding:10px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  height:110px;
}
#logoPresetGrid .logo-preset-tile:hover{
  background:#bae6fd;
  border-color:#0ea5e9;
}
#logoPresetGrid .logo-preset-tile img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  background:transparent;
  display:block;
}

/* ===== Extracted from HTML ===== */

/* ===== LOGOS v6 PATCHES (UI Fixes) ===== */
.logo-slot-btn{
  background:#c7ecff !important; /* SkyBlue */
  box-shadow:none !important;
  color:#0b1120 !important;
  color:#0b1120 !important;
  border:2px solid rgba(0,0,0,0.10) !important;
  padding:0 !important;
  box-shadow:none !important;
}
.logo-slot-btn.is-active{ border-color:#0aa4e6 !important; }

.logo-source-buttons{ display:flex !important; gap:8px !important; }
.logo-source-buttons .logo-tab{
  flex:1 1 0 !important;
  min-width:0 !important;
  font-size:0.72rem !important;
  padding:6px 8px !important;
  line-height:1.1 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  background:#e9f7ff !important;
  color:#0b1120 !important;
  border:2px solid rgba(10,164,230,0.25) !important;
}
.logo-source-buttons .logo-tab.is-active{
  background:#0aa4e6 !important;
  color:#fff !important;
  border-color:#0aa4e6 !important;
}

/* Platz sparen: Kopfzeile in den Logo-Optionen ausblenden */
.logo-row-header{ display:none !important; }

/* Grid-Alignment: Breite/Kontrast exakt über vertikal/drehen */
.logo-row-fields,
.logo-pos-row{
  grid-template-columns:repeat(3, minmax(0,1fr)) !important;
  gap:6px !important;
}
.logo-row-fields > div:first-child{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
.logo-row-fields input[type="number"],
.logo-pos-row input[type="number"]{
  width:100% !important;
}


.logo-row-fields .file-upload-btn{ display:none !important; }

/* === v6 Fix8: Slot-Ziffern groß & in der Mitte + Mini-Preview im LOGO-Detail === */
.logo-slot-btn{
  border-radius:999px !important;
  position:relative !important;
}
.logo-slot-btn .slot-num{ display:none !important; } /* alte Ecke-Badge ausblenden */
.logo-slot-btn .slot-empty{ display:none !important; }

.logo-slot-center{
  font-size:22px;
  font-weight:900;
  line-height:1;
  color:#0b1120;
  display:grid;
  place-items:center;
}

.logo-slot-thumb{
  width:34px;
  height:34px;
  object-fit:contain;
  display:block;
  background:transparent;
}

.logo-mini-btn{
  width:100%;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(148, 163, 184, 0.9);
  background:#e5e7eb !important;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 8px;
  margin-top:6px;
  cursor:pointer;
  box-sizing:border-box;
}
.logo-mini-empty{
  width:100%;
  height:20px;
  border-radius:999px;
  border:2px dashed rgba(148,163,184,0.9);
}

.logo-mini-btn img{
  max-width:100%;
  height:26px;
  object-fit:contain;
  display:block;
  background:transparent;
}
.logo-mini-btn.is-empty::after{
  content:"";
  width:22px;height:22px;border-radius:8px;
  border:2px dashed rgba(0,0,0,0.25);
  display:block;
}

.logo-slot-btn{background:#c7ecff !important; color:#0b1120 !important;}


/* === FIX18: "Logo entfernen" gleiche Größe wie Positionsfelder (horizontal/vertikal/drehen) === */
.logo-actions{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  gap:6px !important;
}
.logo-actions button{
  height:32px !important;
  border-radius:999px !important;
  padding:4px 8px !important;
  font-size:0.75rem !important;
  width:100% !important;
  box-sizing:border-box !important;
}


/* FIX: Logo-Optionen Summary immer klickbar (kein Overlap bei vielen Slots) */
#logoDetails > summary{
  position: relative !important;
  z-index: 5 !important;
}
.logo-slot-strip{
  position: relative;
  z-index: 1;
  margin-bottom: 10px; /* Luft, damit Scrollbar nichts überdeckt */
}


/* FIX24: Slot-Strip darf keine Klicks "fressen" (ab vielen Logos) */
.logo-slot-strip{
  overflow-x:auto !important;
  overflow-y:hidden !important;
  height:48px !important;
  padding-bottom:0 !important;
  margin-bottom:10px !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  position: relative;
  z-index: 1;
}
/* Scrollbar ausblenden (iOS/Android/Chrome) – verhindert dicke Leiste über dem Button */
.logo-slot-strip::-webkit-scrollbar{ height:0px !important; }
.logo-slot-strip{ scrollbar-width: none; }

/* "Logo-Optionen anzeigen" immer klickbar oberhalb */
#logoDetails > summary{
  position: relative !important;
  z-index: 20 !important;
  touch-action: manipulation;
  pointer-events: auto !important;
}

/* ===== Extracted from HTML ===== */

/* === FIX: LOGOS Panel Typography (max.4 in one line) === */
.logo-top-title{
  font-size:0.86rem !important;
  line-height:1.05 !important;
  white-space:nowrap !important;
}
.logo-top-sub{font-size:0.68rem !important;}
.logo-tip{font-size:0.60rem !important; line-height:1.25 !important;}
.logo-panel-top .hint{font-size:0.60rem !important; line-height:1.25 !important;}
#logoDetails > summary{font-size:0.68rem !important;}
.logo-source-buttons .logo-tab{font-size:0.68rem !important;}

/* Make tip text wrap nicer (aim ~2 lines) */
.logo-tip{max-width: 260px;}

/* ===== Extracted from HTML ===== */

#configPanel {
  background: #016db6 !important;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* ===== Extracted from HTML ===== */

aside#ui {
  background: #016db6;
  padding: 10px 10px 20px 10px;
}

/* ===== Extracted from HTML ===== */

#projectName {
  border: 2px solid #016db6 !important;
  background: #ffffff !important;
  padding: 6px 8px;
  border-radius: 6px;
  font-weight: 600;
}

/* ===== Extracted from HTML ===== */

.panel h2 {
  color: #53565A !important; /* Graphite Grey */
  font-weight: 700 !important;
}

/* ===== Extracted from HTML ===== */

.panel {
  margin-bottom: 20px !important;
}

/* ===== Extracted from HTML ===== */

/* Mobile/Touch: Stepper-Buttons für LOGO Number-Inputs (ohne Layout-Wrapping) */
@media (pointer: coarse) {
  .logo-stepper-wrap { position: relative !important; }

  /* genug Platz rechts für zwei Buttons nebeneinander */
  .logo-stepper-wrap input[type="number"] {
    padding-right: 64px !important;
  }

  .logo-stepper-btns{
    position:absolute !important;
    right:6px !important;
    top:50% !important;
    transform: translateY(-50%) !important;
    display:flex !important;
    gap:6px !important;
    z-index:3 !important;
  }

  .logo-stepper-btn{
    width: 26px !important;
    height: 26px !important;
    border-radius:999px !important;
    border:1px solid rgba(55, 65, 81, 0.35) !important;
    background:#e5e7eb !important;
    color:#111827 !important;
    font-weight:900 !important;
    font-size: 15px !important;
    line-height:1 !important;
    padding:0 !important;
    display:grid !important;
    place-items:center !important;
    cursor:pointer !important;
    user-select:none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .logo-stepper-btn:active{
    transform: translateY(1px) scale(0.98) !important;
  }
}

/* ===== Extracted from HTML ===== */

/* FIX18c: Desktop – "Logo entfernen" nicht überlaufen lassen */
.logo-actions button{
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
@media (min-width: 601px){
  .logo-actions button{
    font-size:0.62rem !important;
    padding:4px 6px !important;
  }
}

/* FIX18c: Mobile/Touch – Stepper kleiner und bündig im Feld */
@media (pointer: coarse){
  .logo-stepper-wrap input[type="number"]{
    padding-right:56px !important;
  }
  .logo-stepper-btns{
    right:4px !important;
    gap:4px !important;
  }
  .logo-stepper-btn{
    width:22px !important;
    height:22px !important;
    font-size:13px !important;
    line-height:22px !important;
  }
}

/* ===== Extracted from HTML ===== */

#logosPanel h2,
.panel h2:has(+ .logo-panel-top) {
  font-size: 15px !important;
}

.logo-top-title {
  font-size: 0.86rem !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
}

.logo-top-sub {
  font-size: 0.68rem !important;
}

.logo-tip,
.logo-panel-top .hint {
  font-size: 0.60rem !important;
  line-height: 1.25 !important;
}

#logoDetails > summary {
  font-size: 0.68rem !important;
}

.logo-source-buttons .logo-tab {
  font-size: 0.68rem !important;
}

.logo-row-fields small,
.logo-pos-row small {
  font-size: 0.70rem !important;
}

.logo-actions button {
  font-size: 0.62rem !important;
}

/* ===== Extracted from HTML ===== */

/* Fix7: hide active logo label beside heading */
#activeLogoLabel{display:none !important;}
/* Fix7: make Logo-Optionen summary look like primary buttons and same font-size */
#logoDetails > summary.logo-options-btn{
  display:block;
  width:100%;
  box-sizing:border-box;
  padding:10px 14px;
  border-radius:999px;
  border:2px solid rgba(14,165,233,0.25);
  background:#0ea5e9;
  color:#ffffff;
  font-weight:700;
  font-size:13px;
  cursor:pointer;
  margin:10px 0 0 0;
}
#logoDetails > summary.logo-options-btn::-webkit-details-marker{display:none;}
/* Fix7: unify top source buttons font and allow full text */
.logo-source-buttons .logo-tab{
  font-size:13px !important;
  padding:10px 12px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:clip !important;
}

/* ===== Extracted from HTML ===== */

/* Preise: Bodenfliesen & Korbanlagen +2px und fett */
.hoop-card.floor-card .hoop-card-article > span,
.hoop-card.floor-card .hoop-card-article span.tile-price,
.hoop-card-price{
  font-size: calc(1em + 2px) !important;
  font-weight: 700 !important;
}

/* Kalkulation: nur fett, keine Größenänderung */
#kalkulationPanel .price-row span:last-child{
  font-weight: 700 !important;
}

/* Hinweis unter Preisen */
.price-note{
  display:block;
  margin-top: 2px;
  font-size: inherit;      /* gleicher Schriftgrad wie Text oberhalb */
  font-weight: 400;
  color: #6b7280;
  line-height: 1.25;
}

/* ===== Extracted from HTML ===== */

/* Desktop: make the legal note more compact (mobile unchanged) */
@media (min-width: 601px){
  #sponsorOfferTrigger + .hint{
    font-size: 0.62rem !important;
    line-height: 1.18 !important;
  }
}


/* =========================
   Kontakt (Panel + Modals)
   ========================= */
#contact-panel .panel-subtitle{margin:6px 0 10px 0;font-size:0.95rem;color:#6a7a93;}
#contact-panel .contact-actions{display:flex;gap:10px;flex-wrap:wrap;}
#contact-panel .contact-actions .full{flex:1 1 240px;}
.contact-modal,/* =========================
   Kontakt-Nudge (Basketball Drop)
   ========================= */
.contact-nudge{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  width: 78px;
  height: 78px;
  display: none;
}
.contact-nudge.hidden{display:none !important;}
.contact-nudge.is-visible{display:block;}

.contact-modal.hidden,.contact-nudge.hidden{display:none !important;}
.contact-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,0.35);}
.contact-modal-card,.contact-nudge-card{position:relative;max-width:620px;margin:6vh auto;background:#fff;border-radius:18px;box-shadow:0 20px 60px rgba(0,0,0,0.25);padding:18px 18px 14px;}
.contact-nudge-card{max-width:520px;margin:10vh auto;}
.contact-modal-close{position:absolute;right:10px;top:8px;border:0;background:transparent;font-size:26px;line-height:26px;cursor:pointer;color:#6a7a93;}
.contact-modal-hint{margin:6px 0 14px 0;color:#6a7a93;font-size:0.92rem;}
.contact-form .contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.contact-form label span{display:block;font-size:0.85rem;color:#41526b;margin:0 0 4px 2px;}
.contact-form input,.contact-form textarea{width:100%;padding:10px 12px;border:1px solid rgba(28,78,140,0.25);border-radius:12px;font-size:1rem;outline:none;}
.contact-message{display:block;margin-top:10px;}
.contact-consent{display:flex;gap:10px;align-items:flex-start;margin-top:10px;color:#41526b;font-size:0.9rem;}
.contact-form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:12px;}
.contact-status{margin-top:10px;font-size:0.92rem;color:#41526b;}
@media (max-width:600px){
  .contact-modal-card,.contact-nudge-card{margin:5vh 12px;max-width:calc(100% - 24px);}
  .contact-form .contact-grid{grid-template-columns:1fr;}
}


/* ===== Contact CTA (compact) ===== */
.contact-cta-row{
  margin: 12px 0 8px;
  display: flex;
  justify-content: flex-start;
}
.contact-cta-btn{
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
}

/* ===== Contact modal reuses sponsor modal classes ===== */
.sponsor-modal-overlay.is-hidden{ display:none; }
.sponsor-modal-overlay{ position: fixed; inset: 0; z-index: 9999; }
.sponsor-modal-backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.45); }
.sponsor-modal-card{
  position: relative;
  width: min(620px, 92vw);
  max-height: 86vh;
  overflow: auto;
  margin: 7vh auto;
  background: #fff;
  border-radius: 18px;
  padding: 18px 18px 14px;
}
.sponsor-modal-close{
  position:absolute;
  right: 10px;
  top: 10px;
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}
.contact-form label{ display:block; margin: 10px 0; font-size: 0.95rem; }
.contact-form input, .contact-form textarea{
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 12px;
  font-size: 0.95rem;
}
.contact-consent{ font-size: 0.85rem; line-height: 1.25; }
.contact-consent input{ width:auto; margin-right: 8px; }
.contact-status{ margin-top: 10px; font-size: 0.9rem; }
.hp-field{ position:absolute; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden; }


/* --- Kontakt Panel Tweaks (StepC) --- */
#contact-panel .panel-subtitle{font-size:0.83rem; line-height:1.35;}
#contact-panel .panel-title{font-size:1.22rem;}
#contact-panel .contact-panel-btn{font-size:0.9rem;}
#contact-panel .contact-panel-btn, #contact-panel button{font-weight:600;}
#openContactBtn{background:linear-gradient(180deg,#18a0ff,#0b7fd1); color:#fff; border:none;}
#openContactBtn:hover{filter:brightness(0.97);}
.contact-summary{display:flex; align-items:center; gap:.55rem; margin:0.15rem 0 0.35rem; color:#6b7a99; font-size:0.9rem;}
.contact-summary input{width:16px; height:16px;}


/* === CONTACT (Modal im Sponsoring-Look) === */
.sponsor-modal-content--contact .contact-form { margin-top: 10px; }
.sponsor-modal-content--contact .contact-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.sponsor-modal-content--contact label{ display:flex; flex-direction:column; gap:6px; font-size:0.78rem; color:#4b5563; }
.sponsor-modal-content--contact label > span{ font-size:0.78rem; color:#4b5563; }
.sponsor-modal-content--contact input,
.sponsor-modal-content--contact textarea{
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  font-size: 0.9rem;
}
.sponsor-modal-content--contact textarea{ resize: vertical; min-height: 110px; }
.sponsor-modal-content--contact .contact-span-2{ grid-column: 1 / -1; }
.sponsor-modal-content--contact .contact-check{
  align-items: flex-start;
  flex-direction: row;
  gap: 10px;
  margin-top: 4px;
}
.sponsor-modal-content--contact .contact-check input{ width: 18px; height: 18px; margin-top: 2px; }
.sponsor-modal-content--contact .contact-status{
  margin-top: 10px;
  font-size: 0.85rem;
  color: #111827;
}
@media (max-width: 600px){
  .sponsor-modal-content--contact .contact-grid{ grid-template-columns: 1fr; }
}

/* Basketball-Mark (ohne Bild) */
.basketball-mark{
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.45), rgba(255,255,255,0) 38%),
    radial-gradient(circle at 55% 65%, rgba(0,0,0,0.18), rgba(0,0,0,0) 45%),
    linear-gradient(135deg, #F59E0B, #F97316);
  position: relative;
  box-shadow: 0 10px 24px rgba(15,23,42,0.18);
}
.basketball-mark::before,
.basketball-mark::after{
  content:"";
  position:absolute;
  inset: 8px;
  border-radius: 999px;
  border: 2px solid rgba(15,23,42,0.85);
  opacity: 0.65;
}
.basketball-mark::after{
  inset: 0;
  border-left: 2px solid rgba(15,23,42,0.85);
  border-right: 2px solid rgba(15,23,42,0.85);
  border-top: none;
  border-bottom: none;
  border-radius: 999px;
  opacity: 0.7;
}

/* === CONTACT NUDGE (Ball drop + Hinweis) === */
.contact-nudge{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  width: 78px;
  height: 78px;
  pointer-events: none;
}
.contact-nudge.is-hidden{ display:none; }
.contact-nudge.is-show{ pointer-events: auto; }

 .contact-nudge-ball{
  width: 78px;
  height: 78px;
  border-radius: 999px !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.45), rgba(255,255,255,0) 38%),
    radial-gradient(circle at 55% 65%, rgba(0,0,0,0.18), rgba(0,0,0,0) 45%),
    linear-gradient(135deg, #F59E0B, #F97316) !important;
  box-shadow: 0 16px 40px rgba(15,23,42,0.25);
  position: absolute;
  right: 0;
  bottom: 0;
  transform: translateY(-120vh);
}
.contact-nudge-ball::before,
.contact-nudge-ball::after{
  content:"";
  position:absolute;
  inset: 10px;
  border-radius: 999px;
  border: 2px solid rgba(15,23,42,0.88);
  opacity: 0.65;
}
.contact-nudge-ball::after{
  inset: 0;
  border-left: 2px solid rgba(15,23,42,0.88);
  border-right: 2px solid rgba(15,23,42,0.88);
  border-top: none;
  border-bottom: none;
  opacity: 0.7;
}

.contact-nudge.is-show .contact-nudge.is-drop .contact-nudge-ball{
  animation: contactDrop 1.55s ease-out forwards;
}
@keyframes contactDrop{
  0%   { transform: translateY(-120vh) rotate(0deg); }
  70%  { transform: translateY(0) rotate(420deg); }
  82%  { transform: translateY(-42px) rotate(520deg); }
  90%  { transform: translateY(0) rotate(600deg); }
  95%  { transform: translateY(-18px) rotate(660deg); }
  100% { transform: translateY(0) rotate(720deg); }
}

.contact-nudge-bubble{
  position: absolute;
  right: 92px;
  bottom: 6px;
  width: min(320px, calc(100vw - 130px));
  background: rgba(255,255,255,0.98);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(15,23,42,0.20);
  padding: 12px 12px 10px;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
}
.contact-nudge.is-open .contact-nudge-bubble{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.contact-nudge-title{
  font-weight: 700;
  font-size: 0.95rem;
  color: #111827;
  margin: 0 0 6px;
}
.contact-nudge-text{
  margin: 0 0 10px;
  font-size: 0.86rem;
  line-height: 1.35;
  color: #374151;
}
.contact-nudge-actions{ display:flex; justify-content:flex-end; gap:8px; }
.contact-nudge-close{
  position: absolute;
  right: 10px;
  top: 8px;
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: #111827;
}

@media (prefers-reduced-motion: reduce){
  .contact-nudge.is-show .contact-nudge-ball{ animation: none; transform: translateY(0); }
}




/* ===== Kontakt-Nudge Drop Animation (v5 fix) ===== */
.contact-nudge.drop .contact-nudge-ball{
  animation: contactBallDrop 1.35s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes contactBallDrop{
  0%   { transform: translateY(-420px) scale(1); }
  55%  { transform: translateY(0) scale(1); }
  70%  { transform: translateY(-46px) scale(1); }
  82%  { transform: translateY(0) scale(1); }
  90%  { transform: translateY(-18px) scale(1); }
  100% { transform: translateY(0) scale(1); }
}

/* Falls globale Button-Styles reingrätschen: Ball immer rund & ohne Border */
.contact-nudge-ball{
  background-clip: padding-box !important;
}

/* === CONTACT MODAL UX FIXES === */
.sponsor-modal-content--contact{
  max-height: min(86vh, 760px);
  overflow: auto;
}
.sponsor-modal-buttons{
  position: sticky;
  bottom: 0;
  background: rgba(255,255,255,0.98);
  padding-top: 10px;
  margin-top: 10px;
}
.contact-check span{
  font-size: 14px; /* 2px smaller */
  line-height: 1.35;
}
.contact-consent a{ text-decoration: underline; }
.contact-status{ margin-top: 10px; }


/* === UX: Projektname im Panel "Kalkulation" hervorheben ===
   Farbton identisch zur hellblauen Hervorhebung der Korbanlagen-Karten (.hoop-card.active: #eff6ff)
*/
#projectName{
  background-color: #eff6ff !important;
  border: 2px solid #1d4ed8 !important;
  color: #0b1120 !important;
  font-weight: 700 !important;
}

#projectName:focus{
  outline: none !important;
  box-shadow: 0 0 0 5px rgba(29, 78, 216, 0.28) !important;
}

#projectName::placeholder{
  color: #1f3b7a !important;
  opacity: 0.85 !important;
}


/* === Produkteinblendungen: Schalter (sichtbar/unsichtbar) === */
#products-ads-panel .btn-ads{
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

#products-ads-panel .btn-ads--on{
  background: linear-gradient(180deg, #0ea5e9, #0284c7);
  color: #ffffff;
  border: 1px solid rgba(2, 132, 199, 0.6);
}

#products-ads-panel .btn-ads--off{
  background: linear-gradient(180deg, #ef4444, #dc2626);
  color: #ffffff;
  border: 1px solid rgba(220, 38, 38, 0.6);
}

/* === AD TOAST (Werbeeinblendung rechts oben) === */
.ad-toast{
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  width: 176px;
  max-width: calc(100vw - 24px);
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  z-index: 100000;
  display: none;
}

.ad-toast.is-open{ display: block; }

.ad-toast__link{
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
}

.ad-toast__img{
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
}

.ad-toast__actions{
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 8px;
}

.ad-toast__btn{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.75);
  background: rgba(17, 24, 39, 0.55);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
  text-align: center;
  line-height: 32px;
  user-select: none;
  display: inline-block;
  padding: 0;
  backdrop-filter: blur(6px);
}

.ad-toast__btn--plus{
  background: rgba(16, 185, 129, 0.65);
  text-decoration: none;
}

.ad-toast__btn--minus{
  background: rgba(239, 68, 68, 0.55);
}

.ad-toast__btn:active{ transform: translateY(1px) scale(0.99); }

@media (max-width: 600px){
  .ad-toast{
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    width: 144px;
  }
  .ad-toast__btn{ width: 32px; height: 32px; line-height: 30px; font-size: 1rem; }
  .ad-toast__actions{ top: 6px; right: 6px; gap: 6px; }
}



/* Kein Korb: dezente rote Umrandung */
.hoop-card.none-option {
  border-color: rgba(239, 68, 68, 0.55) !important;
  background: rgba(254, 242, 242, 0.55) !important;
}
.hoop-card.none-option.active {
  border-color: rgba(239, 68, 68, 0.95) !important;
  background: rgba(254, 226, 226, 0.75) !important;
}
