@import url('/tools/qr-code-generator/assets/css/qr-tool.css');
.generator-section{padding-top:clamp(18px,2.4vw,26px);padding-bottom:clamp(18px,2.4vw,26px)}
.generator-section .section-head.compact{margin-bottom:14px}.generator-section .section-head h2{font-size:clamp(1.45rem,2.2vw,2rem)}
.generator-grid{grid-template-columns:minmax(0,1.02fr) minmax(280px,390px);gap:16px}.generator-panel,.preview-panel{padding:clamp(14px,2vw,20px);border-radius:22px}
.field{gap:6px;margin-bottom:11px}.field span{font-size:.94rem}.field small{font-size:.82rem;line-height:1.32}.field input[type=number],select,input[type=range]{width:100%;min-height:44px;border-radius:15px;border:1px solid rgba(99,91,255,.16);background:rgba(255,255,255,.94);padding:10px 12px;font:inherit;color:var(--text-main,#1d2440)}input[type=range]{accent-color:var(--accent,#635bff);padding:0}.field-grid-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mode-card,.preset-card{margin:0 0 14px;border-radius:20px;border:1px solid rgba(99,91,255,.14);background:rgba(255,255,255,.72);padding:12px}.mode-card__head,.preset-card__head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}.mode-card__head small,.preset-card__head small{color:var(--text-soft,#69738d);font-size:.82rem}.mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mode-option{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start;min-height:92px;padding:12px;border-radius:17px;border:1px solid rgba(99,91,255,.14);background:rgba(255,255,255,.88);cursor:pointer}.mode-option input{margin-top:3px;accent-color:var(--accent,#635bff)}.mode-option:has(input:checked){border-color:rgba(99,91,255,.42);background:linear-gradient(135deg,rgba(99,91,255,.14),rgba(0,180,216,.10));box-shadow:0 14px 28px rgba(99,91,255,.10)}.mode-option strong{display:block;margin-bottom:4px}.mode-option small{display:block;color:var(--text-soft,#69738d);line-height:1.35}.preset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.preset-chip{appearance:none;border:1px solid rgba(99,91,255,.14);background:rgba(255,255,255,.92);color:var(--text-main,#1d2440);border-radius:14px;min-height:42px;padding:10px 12px;cursor:pointer;font:inherit;font-weight:600;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease}.preset-chip:hover,.preset-chip:focus-visible{border-color:rgba(99,91,255,.38);box-shadow:0 14px 28px rgba(99,91,255,.12);transform:translateY(-1px)}.button-row--stack-mobile{flex-wrap:wrap}.button-row--stack-mobile>*{flex:1 1 220px}.privacy-note{font-size:.86rem;line-height:1.45;color:var(--text-soft,#69738d)}.image-preview-box{min-height:280px}.image-preview-empty[hidden],#preview-image[hidden]{display:none!important}.image-preview-box img{max-width:100%;max-height:360px;object-fit:contain;border-radius:18px}.preview-hint--soft{color:var(--text-soft,#69738d);font-size:.88rem}
@media(max-width:860px){.field-grid-two,.generator-grid,.mode-options,.preset-grid{grid-template-columns:1fr}}

.helper-card{margin:0 0 14px;border-radius:20px;border:1px solid rgba(99,91,255,.14);background:rgba(255,255,255,.72);padding:12px}.helper-card__head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}.helper-card__head small{color:var(--text-soft,#69738d);font-size:.82rem}.helper-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}@media(max-width:860px){.helper-actions{grid-template-columns:1fr}}


/* v3: aufgeräumtes Skalieren-UI */
.upload-dropzone {
  border: 1px dashed rgba(99,91,255,.35);
  background: linear-gradient(135deg, rgba(99,91,255,.08), rgba(0,180,216,.06)), rgba(255,255,255,.82);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 16px 34px rgba(31,41,55,.07);
}
.upload-dropzone:hover,
.upload-dropzone.is-dragover {
  border-color: rgba(99,91,255,.62);
  background: linear-gradient(135deg, rgba(99,91,255,.13), rgba(0,180,216,.10)), rgba(255,255,255,.94);
}
.upload-dropzone input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.scale-size-card,
.preset-select-card {
  margin: 0 0 14px;
  border-radius: 20px;
  border: 1px solid rgba(99,91,255,.14);
  background: rgba(255,255,255,.72);
  padding: 13px;
}
.scale-size-card__head,
.preset-select-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.scale-size-card__head {
  align-items: baseline;
  margin-bottom: 12px;
}
.scale-size-card__head small,
.preset-select-card small,
.scale-size-card__note {
  color: var(--text-soft,#69738d);
  font-size: .83rem;
  line-height: 1.35;
}
.dimension-chain-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 54px minmax(0,1fr);
  gap: 10px;
  align-items: end;
}
.dimension-field {
  display: grid;
  gap: 6px;
}
.dimension-field span {
  font-weight: 800;
  font-size: .94rem;
  color: var(--text-main,#1d2440);
}
.dimension-field input {
  width: 100%;
  min-height: 50px;
  border-radius: 17px;
  border: 1px solid rgba(99,91,255,.16);
  background: rgba(255,255,255,.95);
  padding: 11px 12px;
  font: inherit;
  font-weight: 800;
  color: var(--text-main,#1d2440);
  text-align: center;
}
.dimension-field small {
  text-align: center;
  color: var(--text-soft,#69738d);
  font-weight: 700;
}
.chain-toggle {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(99,91,255,.20);
  background: rgba(255,255,255,.92);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.22rem;
  box-shadow: 0 12px 26px rgba(99,91,255,.09);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.chain-toggle:hover { transform: translateY(-1px); border-color: rgba(99,91,255,.42); }
.chain-toggle__unlocked { display: none; }
.chain-toggle.is-unlocked .chain-toggle__locked { display: none; }
.chain-toggle.is-unlocked .chain-toggle__unlocked { display: inline; }
.chain-toggle.is-locked { background: linear-gradient(135deg, rgba(99,91,255,.14), rgba(0,180,216,.11)); }
.scale-size-card__note { margin: 10px 0 0; }
.preset-select-card > span { display: grid; gap: 3px; }
.preset-select-card select {
  max-width: 260px;
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(99,91,255,.16);
  background: rgba(255,255,255,.95);
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
}
.helper-card,
.preset-card { display: none !important; }
@media(max-width:860px){
  .scale-size-card__head,
  .preset-select-card { align-items: stretch; flex-direction: column; }
  .preset-select-card select { max-width: none; width: 100%; }
  .dimension-chain-row { grid-template-columns: minmax(0,1fr) 48px minmax(0,1fr); }
  .chain-toggle { width: 48px; height: 50px; }
}


/* v4: Upload-Feld wie beim Bild-komprimieren-Tool, ohne unsichtbares Fullscreen-Input */
.upload-zone--scale {
  position: relative;
  border: 2px dashed rgba(79,70,229,.28);
  border-radius: 22px;
  padding: clamp(18px, 3vw, 28px);
  background: linear-gradient(180deg, rgba(79,70,229,.055), rgba(255,255,255,.72));
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 185px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
  cursor: pointer;
  overflow: hidden;
}
.upload-zone--scale:hover,
.upload-zone--scale.is-dragover {
  border-color: var(--accent, #4f46e5);
  background: rgba(79,70,229,.09);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(79,70,229,.10);
}
.upload-zone--scale input[type="file"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  inset: auto !important;
}
.upload-zone--scale .upload-zone__icon {
  display: block;
  font-size: 2.4rem;
  margin-bottom: 8px;
}
.upload-zone--scale strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.upload-zone--scale span span {
  color: var(--muted, #647089);
  line-height: 1.45;
}

/* Einheitliche Tool-Navigation: Startseite · Tools · Zum Shop bleibt auch mobil in einer Zeile. */
.header-card {
  flex-wrap: nowrap;
  align-items: center;
}
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(6px, 1.8vw, 12px);
  flex-wrap: nowrap;
  min-width: 0;
  white-space: nowrap;
}
.header-actions a {
  white-space: nowrap;
}
@media (max-width: 640px) {
  .header-card {
    border-radius: 999px;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
  }
  .brand {
    flex: 0 1 auto;
    min-width: 0;
  }
  .brand img {
    height: clamp(28px, 8vw, 38px);
    max-width: 96px;
    object-fit: contain;
  }
  .header-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
    margin-top: 0 !important;
    margin-left: auto;
    gap: clamp(5px, 1.4vw, 8px);
  }
  .plain-link {
    font-size: clamp(.72rem, 3.15vw, .9rem);
  }
  .shop-pill {
    padding: 8px clamp(8px, 2.6vw, 12px);
    font-size: clamp(.72rem, 3.15vw, .9rem);
  }
}
@media (max-width: 380px) {
  .header-card {
    padding: 7px 8px;
    gap: 6px;
  }
  .brand img {
    height: 28px;
    max-width: 82px;
  }
  .header-actions {
    gap: 5px;
  }
  .plain-link,
  .shop-pill {
    font-size: .7rem;
  }
  .shop-pill {
    padding: 7px 8px;
  }
}
