﻿/* Globale CSS-Struktur
   01) Basis-Tokens + globale UI
   02) Tool 1
   03) Tool 2
   04) Tool 3
   05) Tool 4
   06) Tool 5/6
   07) Gemeinsame Komponenten
*/

/* Fonts */
@font-face {
  font-family: 'Quicksand';
  src: url('../fonts/Quicksand-VariableFont_wght.woff2') format('woff2-variations'),
    url('../fonts/Quicksand-VariableFont_wght.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Quicksand';
  src: url('../fonts/Quicksand-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Quicksand';
  src: url('../fonts/Quicksand-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato-Regular';
  src: url('../fonts/Lato-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Schriftarten */
  --font-body: 'Lato-Regular', sans-serif;
  --font-heading: 'Quicksand', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --text-color: var(--darkgrey);

  /* Farbsystem */
  --lightblue-50: rgba(132, 164, 216, 0.5);
  --lightblue: #84a4d8;
  --blue: #6f84b9;
  --darkblue: #536da0;

  --grey: #4B4E4D;
  --darkgrey: #232323;
  --black: #000000;
  --white: #FFFFFF;

  --alabaster: #F4EEE1;
  --alabaster-30: rgba(244, 238, 225, 0.3);

  --lightgreen-50: rgba(167, 199, 203, 0.5);
  --lightgreen: #A7C7CB;
  --green: #6DA2A8;
  --darkgreen: #397477;

  --lightred-50: rgba(235, 170, 160, 0.5);
  --lightred: #EBAAA0;
  --red: #DD7260;
  --darkred: #B54637;

  --lightyellow-50: rgba(242, 211, 170, 0.5);
  --lightyellow: #F2D3AA;
  --yellow: #EAB671;
  --darkyellow: #E29B47;

  --lightyellow-1-50: rgba(244, 239, 170, 0.5);
  --lightyellow-1: #F4EFAA;
  --yellow-1: #EDE472;
  --darkyellow-1: #DBCF63;

  /* Regale */
  --shelf-h: 240px;
  --bottle-h: 200px;
  --shelf-pad-top: 16px;
  --shelf-pad-side: 16px;
  --shelf-pad-bottom: 40px;

  /* Bewegung */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-soft: cubic-bezier(.25, .9, .25, 1);

  --dur-fast: 120ms;
  --dur-med: 180ms;
  --dur-slow: 240ms;

  --lift: -1px;
  --press: 1px;

}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

html {
  background:
    radial-gradient(circle at 20% 30%, rgba(111, 132, 185, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(234, 182, 113, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 40% 80%, rgba(109, 162, 168, 0.18) 0%, transparent 70%),
    var(--alabaster);

  min-height: 100%;

}

body {
  background: transparent;
  font-family: var(--font-body);
  color: var(--text-color);
  min-height: 100%;

  overflow-x: hidden;
  overflow-y: auto;
  padding: 2em;

}

body.tool4-aframe {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

body.tool4-aframe html {
  height: 100%;
}

body.tool4-aframe a-scene {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  touch-action: none;
}

body.tool4-aframe .rotate-hint--tool4 {
  display: none;
}

body.tool4-aframe.is-mobile-landscape .rotate-hint--tool4 {
  display: flex;
}

body.tool4-aframe.is-mobile-landscape a-scene,
body.tool4-aframe.is-mobile-landscape #speech-overlay,
body.tool4-aframe.is-mobile-landscape .bubble-hud {
  visibility: hidden;
  pointer-events: none;
}

/* =========================
   01) Basis / Global
   ========================= */
/* Überschriften – Desktop */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--text-color);
  margin: 0 0 0.6rem;
}

h1 {
  font-size: 3.125rem;
  font-weight: 400;
  line-height: 1.15;
}

h2 {
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.2;
}

h3 {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.25;
}

h4 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

p {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  margin: 0 0 1rem;
}

a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

a:hover {
  color: var(--darkblue);
}

/* Tablet */
@media (max-width: 991px) {
  h1 {
    font-size: 2.625rem;
    font-weight: 400;
  }

  h2 {
    font-size: 1.875rem;
    font-weight: 500;
  }

  h3 {
    font-size: 1.625rem;
    font-weight: 400;
  }

  h4 {
    font-size: 1.125rem;
    font-weight: 700;
  }


  p {
    font-size: 0.9375rem;
  }

}

/* Mobil */
@media (max-width: 767px) {
  h1 {
    font-size: 2.25rem;
    font-weight: 400;
  }

  h2 {
    font-size: 1.625rem;
    font-weight: 500;
  }

  h3 {
    font-size: 1.375rem;
    font-weight: 400;
  }

  h4 {
    font-size: 1rem;
    font-weight: 700;
  }


  p {
    font-size: 0.875rem;
  }

}


/* Schaltflaechen */
.btn {
  transition:
    background-color var(--dur-med) ease,
    color var(--dur-med) ease,
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.btn:hover {
  transform: translateY(var(--lift));
}

.btn:active {
  transform: translateY(var(--press)) scale(0.98);
}


.btn-theme {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.25);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 120ms cubic-bezier(.2, .8, .2, 1),
    box-shadow 120ms ease;

  --bs-btn-color: var(--btn-fg);
  --bs-btn-bg: var(--btn-bg);
  --bs-btn-border-color: transparent;

  --bs-btn-hover-color: var(--btn-fg-hover, var(--btn-fg));
  --bs-btn-hover-bg: var(--btn-bg-hover);
  --bs-btn-hover-border-color: transparent;

  --bs-btn-active-color: var(--btn-fg-active, var(--btn-fg));
  --bs-btn-active-bg: var(--btn-bg-active, var(--btn-bg));
  --bs-btn-active-border-color: transparent;

  opacity: 1;
  filter: none;
  background-image: none;

}

.btn-theme:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-fg-hover, var(--btn-fg));
  transform: translateY(-1px);
}

.btn-theme:active,
.btn-theme.active {
  background: var(--btn-bg-active, var(--btn-bg));
  color: var(--btn-fg-active, var(--btn-fg));
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  opacity: 1;
}

.btn-theme:focus {
  outline: 2px solid rgba(0, 0, 0, 0.15);
  outline-offset: 2px;
}

.btn-theme:focus-visible {
  outline: 2px solid var(--btn-focus, var(--darkblue));
  outline-offset: 3px;
}

.btn-theme:disabled,
.btn-theme[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Button-Farben */
.btn-blue {
  --btn-bg: var(--blue);
  --btn-fg: var(--black);
  --btn-bg-hover: var(--lightblue);
  --btn-bg-active: var(--darkblue);
  --btn-fg-active: var(--white);
  --btn-focus: var(--darkblue);
}

.btn-green {
  --btn-bg: var(--green);
  --btn-fg: var(--black);
  --btn-bg-hover: var(--lightgreen);
  --btn-bg-active: var(--darkgreen);
  --btn-fg-active: var(--white);
  --btn-focus: var(--darkgreen);
}

.btn-red {
  --btn-bg: var(--red);
  --btn-fg: var(--black);
  --btn-bg-hover: var(--lightred);
  --btn-bg-active: var(--darkred);
  --btn-fg-active: var(--white);
  --btn-focus: var(--darkred);
}

.btn-yellow {
  --btn-bg: var(--yellow);
  --btn-fg: var(--darkgrey);
  --btn-bg-hover: var(--lightyellow);
  --btn-bg-active: var(--darkyellow);
  --btn-fg-active: var(--black);
  --btn-focus: var(--darkyellow);
}

.btn-yellow-1 {
  --btn-bg: var(--yellow-1);
  --btn-fg: var(--darkgrey);
  --btn-bg-hover: var(--lightyellow-1);
  --btn-bg-active: var(--darkyellow-1);
  --btn-fg-active: var(--black);
  --btn-focus: var(--darkyellow-1);
}

.btn-dark {
  --btn-bg: var(--black);
  --btn-fg: var(--white);
  --btn-bg-hover: var(--darkgrey);
  --btn-bg-active: var(--darkgrey);
  --btn-fg-active: var(--white);
  --btn-focus: var(--darkgrey);
}


/* UI-Karten */
:root {
  --card-bg: rgba(244, 238, 225, 0.70);
  --card-border: rgba(35, 35, 35, 0.08);
  --card-radius: 18px;
  --card-pad: 1rem;
  --card-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.card-ui {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--card-pad);
  box-shadow: var(--card-shadow);
}

.card-ui--compact {
  padding: 0.75rem;
}

.card-ui--spacious {
  padding: 1.25rem;
}

/* Klickbare Karten (für Antwortoptionen, Rating, Auswahl) */
.card-ui.is-clickable {
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    background-color var(--dur-med) ease,
    color var(--dur-med) ease,
    border-color var(--dur-med) ease;
}

.card-ui.is-clickable:hover {
  transform: translateY(var(--lift));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}

.card-ui.is-clickable:active {
  transform: translateY(var(--press)) scale(0.99);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

/* Fokus */
.card-ui.is-clickable:focus-visible {
  outline: 2px solid rgba(35, 35, 35, 0.25);
  outline-offset: 3px;
}

.round-corners-illu {
  border-radius: 18px;
}

/* Hochformat-Hinweis */

.rotate-hint {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(244, 238, 225, 0.96);
  color: var(--darkgrey);
  padding: 24px;
  text-align: center;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1.4;
}

@media (max-width: 1366px) and (orientation: portrait) {
  .rotate-hint {
    display: flex;
  }
}

/* =====================================================
   MODAL-SYSTEM (Basis + Varianten)
   ===================================================== */

:root {
  --modal-radius: 16px;
  --modal-pad: 1.25rem;
  --modal-bg: var(--alabaster);
  --modal-header-bg: var(--blue);
  --modal-text: var(--darkgrey);
  --modal-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.modal-content {
  background-color: var(--modal-bg) !important;
  border: none !important;
  border-radius: var(--modal-radius);
  color: var(--modal-text) !important;
  box-shadow: var(--modal-shadow);
}

.modal-header {
  background-color: var(--modal-header-bg) !important;
  color: var(--modal-text) !important;
  border-bottom: none;
  padding: 0.9rem var(--modal-pad);
}

.modal-body {
  color: var(--modal-text) !important;
  font-size: 1rem !important;
  line-height: 1.5;
  padding: var(--modal-pad);
}

.modal-footer {
  border-top: none;
  background-color: transparent;
  padding: 0.9rem var(--modal-pad);
}

/* Mobil/Tablet-Hochformat */
@media (max-width: 991px) {
  .modal {
    --bs-modal-margin: 0.375rem;
    padding-right: 0 !important;
  }

  .modal .modal-dialog {
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 0.75rem);
    max-width: calc(100% - 0.75rem);
  }
}

/* =====================================================
   Modal Close Button – unified
===================================================== */

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;

  width: 36px;
  height: 36px;
  border-radius: 999px;

  background: rgba(244, 238, 225, 0.9);
  border: 1px solid rgba(35, 35, 35, 0.15);
  color: var(--darkgrey);

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);

  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    background-color var(--dur-med) ease;
}

.modal-close-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.modal-close-btn:active {
  transform: translateY(1px) scale(0.96);
}

.modal-close-btn i {
  font-size: 1rem;
}

@media (max-width: 767px) {
  .modal-close-btn {
    width: 40px;
    height: 40px;
  }
}


/* ---------- Variante: mit Medien (Text + Bild/SVG) ---------- */
.modal.modal--media .modal-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1rem;
  align-items: start;
}

.modal.modal--media .modal-media {
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
}

/* ---------- Variante: Auftrag ---------- */
.modal.modal--auftrag .modal-body {
  display: flex;
  gap: 1rem;
  align-items: center;
}

#auftragModal .modal-body {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* ---------- Variante: kompakt (kleine Dialoge) ---------- */
.modal.modal--compact .modal-dialog {
  max-width: 520px;
}

.modal.modal--compact .modal-body {
  padding: 1rem var(--modal-pad);
}

/* Responsiv */
@media (max-width: 1100px) {
  .modal.modal--media .modal-body {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .modal.modal--media .modal-media {
    max-width: 80%;
    height: auto;
    margin: 0 auto 0.75rem;
  }

  .modal.modal--auftrag .modal-body,
  #auftragModal .modal-body {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
  }

  .modal.modal--auftrag .modal-body img,
  #auftragModal .modal-body img {
    max-width: 80%;
    height: auto;
    margin-bottom: 0.75rem;
  }

  .modal.modal--auftrag .modal-body p,
  #auftragModal .modal-body p {
    font-size: 0.95rem !important;
    max-width: 90%;
  }
}

@media (min-width: 1101px) {

  .modal.modal--auftrag .modal-body,
  #auftragModal .modal-body {
    flex-direction: row;
    align-items: center;
  }

  .modal.modal--auftrag .modal-body p,
  #auftragModal .modal-body p {
    font-size: 1.05rem;
    text-align: left;
  }
}


/* =========================
   02) Tool 1 - Getränkeregal
   ========================= */

/* Regale responsiv */
@media (max-width: 1199px) {
  :root {
    --shelf-h: 230px;
    --bottle-h: 180px;
    --shelf-pad-top: 24px;
    --shelf-pad-bottom: 80px;
  }
}

@media (max-width: 991px) {
  :root {
    --shelf-h: 200px;
    --bottle-h: 150px;
    --shelf-pad-top: 22px;
    --shelf-pad-bottom: 40px;
  }
}

@media (max-width: 767px) {
  :root {
    --shelf-h: 180px;
    --bottle-h: 130px;
    --shelf-pad-top: 18px;
    --shelf-pad-side: 12px;
    --shelf-pad-bottom: 40px;
  }
}

/* Modal-Header */
#checkModal .modal-header.modal-header--warn {
  background-color: var(--lightyellow) !important;
}

#checkModal .modal-header.modal-header--success {
  background-color: var(--lightgreen) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

#checkModal .modal-header.modal-header--danger {
  background-color: var(--lightred) !important;
}

.regal-frame-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: flex-start;
}

.regal-left {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
}

.regal-right {
  display: flex;
}

/* Mobil */
@media (max-width: 900px) {
  .regal-frame-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) and (orientation: landscape) {
  body.tool1-page {
    padding: 0.45rem 0.5rem;
  }

  body.tool1-page .regal-frame-grid {
    grid-template-columns: minmax(200px, 36vw) minmax(0, 1fr);
    gap: 0.55rem;
    max-width: none;
    height: calc(100vh - 0.9rem);
    align-items: stretch;
  }

  body.tool1-page .regal-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
    min-height: 0;
  }

  body.tool1-page .law-svg-container {
    max-width: 118px;
    margin: 0 auto;
    justify-self: center;
    padding: 0;
  }

  body.tool1-page .bottle-wrap {
    margin-top: 0;
    width: 100%;
    min-height: clamp(220px, 48vh, 360px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  body.tool1-page #bottle-pool {
    margin-top: 0.2rem !important;
    min-height: clamp(180px, 40vh, 300px);
    align-content: flex-start;
  }

  body.tool1-page .bottle img {
    height: clamp(110px, 24vh, 178px);
  }

  body.tool1-page .solution {
    margin-top: 0.35rem;
  }

  body.tool1-page .regal-right,
  body.tool1-page .regal,
  body.tool1-page .regal-background {
    height: 100%;
  }

  body.tool1-page .regal {
    max-width: none;
  }

  body.tool1-page .regal-background {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  body.tool1-page .shelf {
    height: calc((100vh - 1.8rem) / 3);
    padding: 10px 8px 35px;
  }

  body.tool1-page .shelf-bottom::after {
    top: -8px;
    padding: 4px 8px;
    font-size: 0.68rem;
  }

  body.tool1-page .bottle-wrap #toolHelp {
    width: min(330px, 94%);
  }


  body.tool1-page #auftragModal .modal-body {
    flex-direction: row !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 0.75rem !important;
  }

  body.tool1-page #auftragModal .modal-body img {
    max-width: 36% !important;
    max-height: 165px !important;
    margin-bottom: 0 !important;
  }

  body.tool1-page #auftragModal .modal-body p {
    max-width: none !important;
    margin-bottom: 0 !important;
    font-size: 1rem !important;
    line-height: 1.45 !important;
  }
}

@media (min-width: 993px) and (max-width: 1366px) and (orientation: landscape) {
  body.tool1-page {
    padding: 0.7rem 0.9rem;
  }

  body.tool1-page .regal-frame-grid {
    grid-template-columns: minmax(300px, 38vw) minmax(0, 1fr);
    gap: 0.95rem;
    max-width: none;
    min-height: calc(100vh - 1.4rem);
    align-items: stretch;
  }

  body.tool1-page .regal-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    min-height: 0;
  }

  body.tool1-page .law-svg-container {
    max-width: 210px;
    margin: 0 auto;
    justify-self: center;
    padding: 0;
  }

  body.tool1-page .bottle-wrap {
    margin-top: 0;
    width: 100%;
    min-height: clamp(280px, 52vh, 520px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  body.tool1-page #bottle-pool {
    margin-top: 0.35rem !important;
    min-height: clamp(220px, 44vh, 420px);
    align-content: flex-start;
  }

  body.tool1-page .bottle img {
    height: clamp(165px, 25vh, 248px);
  }

  body.tool1-page .regal-right,
  body.tool1-page .regal,
  body.tool1-page .regal-background {
    height: 100%;
  }

  body.tool1-page .regal {
    max-width: none;
  }

  body.tool1-page .regal-background {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  body.tool1-page .shelf {
    height: calc((100vh - 2.4rem) / 3);
    padding: 12px 10px 60px;
  }

  body.tool1-page .shelf-bottom::after {
    top: -9px;
    padding: 5px 9px;
    font-size: 0.75rem;
  }

  body.tool1-page .bottle-wrap #toolHelp {
    width: min(430px, 94%);
  }

  body.tool1-page #auftragModal .modal-body img {
    max-width: 38% !important;
    max-height: 190px !important;
  }

  body.tool1-page #auftragModal .modal-body p {
    font-size: 1.02rem !important;
    line-height: 1.48 !important;
  }
}

/* Regal */
.regal-frame {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  max-width: 800px;
  margin: 0 auto;
  gap: 1rem;
}

.regal {
  flex: 1;
  display: flex;
  justify-content: space-around;
  flex-direction: column;
  flex-wrap: wrap;

  position: relative;
  max-width: 800px;
  margin-inline: auto;
}

.regal::before {
  content: "";
  position: absolute;
  inset: 0;
}

.regal-background {
  inset: 0;
  z-index: 0;
  background-image: url("../img/tool-1/regal-bg.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.regal-side-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1rem;

}

.bottle-wrap {
  margin-top: 0.5rem;
  position: relative;
}


.shelf {
  height: var(--shelf-h);
  padding: var(--shelf-pad-top) var(--shelf-pad-side) var(--shelf-pad-bottom);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;

  overflow-x: hidden;
  overflow-y: hidden;
  position: relative;

  --shelf-bg: none;
}

.shelf::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background-image: var(--shelf-bg);
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: contain;

  z-index: 0;
}

.shelf>* {
  position: relative;
  z-index: 1;
}


#shelf-18 {
  --shelf-bg: url("../img/tool-1/18.png");
}

#shelf-16 {
  --shelf-bg: url("../img/tool-1/16.png");
}

#shelf-0 {
  --shelf-bg: url("../img/tool-1/u16.png");
}

.shelf-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 30px;
  width: 100%;
  border: 5px solid var(--c1);
  border-radius: 5px;
  padding-top: 4px;
}

.shelf-bottom::after {
  content: attr(data-label);
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: var(--white);
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.8rem;
  color: var(--darkgrey);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.shelf.sortable.sortable-over {
  transition: 0.2s ease;
}

/* Flaschen */
.bottle-pool {
  align-items: end;
  justify-content: center;
  --shelf-h: clamp(180px, 22vw, 500px);
}

.pool-label {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: 0.75rem;
}

.bottle {
  cursor: grab;
  position: relative;
  display: inline-block;

}

.bottle img {
  height: var(--bottle-h);
  width: auto;
  max-width: 100%;
  display: block;
}

.bottle:hover {
  transform: translateY(-6px);
}

.hidden-bottle {
  display: none !important;
}

.bottle-wrong {
  animation: wobble 0.4s ease;
}


#bottle-pool {
  display: flex;
  align-items: center;
  justify-content: center;
}

#bottle-pool .bottle:not(.hidden-bottle) {
  position: relative;
  z-index: 1;
}

#bottle-pool .bottle:not(.hidden-bottle)::before,
#bottle-pool .bottle:not(.hidden-bottle)::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(111, 132, 185, 0.18);
  z-index: -1;
  pointer-events: none;
}

#bottle-pool .bottle:not(.hidden-bottle)::before {
  width: 90px;
  height: 90px;
  animation: tool1PulseInner 1.8s ease-in-out infinite;
}

#bottle-pool .bottle:not(.hidden-bottle)::after {
  width: 140px;
  height: 140px;
  background: rgba(111, 132, 185, 0.12);
  animation: tool1PulseOuter 2.2s ease-in-out infinite;
}

.regal-left {
  position: relative;
}

body.tool1-page .bottle-wrap #toolHelp {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1040;
  width: min(420px, 92vw);
}

body.tool1-page .bottle-wrap #toolHelp.coachmark,
body.tool1-page .bottle-wrap #toolHelp.coachmark.is-visible {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

body.tool1-page .bottle-wrap #toolHelp.coachmark.is-floating {
  animation: coachFloatY 2.8s var(--ease-soft) infinite;
  animation-fill-mode: both;
}

/* Animationen */
@keyframes wobble {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  50% {
    transform: translateX(4px);
  }

  75% {
    transform: translateX(-3px);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes tool1PulseInner {
  0% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.85;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.55;
  }

  100% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.85;
  }
}

@keyframes tool1PulseOuter {
  0% {
    transform: translate(-50%, -50%) scale(0.90);
    opacity: 0.55;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.10);
    opacity: 0.28;
  }

  100% {
    transform: translate(-50%, -50%) scale(0.90);
    opacity: 0.55;
  }
}

@media (max-width: 767px) {
  #bottle-pool .bottle:not(.hidden-bottle)::before {
    width: 72px;
    height: 72px;
  }

  #bottle-pool .bottle:not(.hidden-bottle)::after {
    width: 110px;
    height: 110px;
  }
}

@keyframes pulseSolid {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.25);
  }

  100% {
    transform: scale(1);
  }
}


.shelf-bottom.shelf-hit {
  animation: shelfHit 220ms var(--ease-out);
}

@keyframes shelfHit {
  0% {
    transform: translateY(0);
  }

  45% {
    transform: translateY(-4px);
  }

  100% {
    transform: translateY(0);
  }
}

.pool-label.pool-done {
  opacity: 0.9;
  letter-spacing: 0.02em;
}

.status-icon {
  position: absolute;
  top: 60px;
  right: 1px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.status-icon i {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.popover {
  border: none !important;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  background-color: var(--alabaster);
  font-family: var(--font-body);
}

.popover-box {
  background-color: var(--lightblue-50);
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.6rem;
}

.popover-info-list {
  margin: 0;
  padding-left: 1.1rem;
}

.popover-info-list li {
  margin: 0.2rem 0;
  padding-left: 0.2rem;
  line-height: 1.4;
}

.popover-info-list li::marker {
  color: var(--darkblue);
}

.popover-header {
  background-color: var(--lightblue);
  color: var(--darkgrey);
  border-bottom: none;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.6rem 0.9rem;
}

.popover-body p {
  padding: 0.9rem 1rem 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.popover-body p {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-bottom: 0;
}

.popover-body p i.fa-circle-arrow-right {
  color: var(--blue);
  font-size: 0.9rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.status-icon.wrong {
  background-color: #ec6a59;
  animation: pulseSolid 1.6s ease-in-out infinite;
}

.status-icon.correct {
  background-color: #5ca3a8;
}




@media (min-width: 768px) {
  .bottle-pool {
    justify-content: center;
    gap: 2rem;
  }
}


.center-btn {
  position: absolute;
  font-size: 0.3rem;
  left: 50%;
  top: auto;
  transform: translateX(-50%);
}

/* Feedback */
.solution {
  text-align: center;
}

#solution-container {
  opacity: 0;
  transition: opacity 0.5s ease;
  padding: 0.75rem 1.5rem;
}

#result {
  border-radius: 12px;
  font-size: 1rem;
}

.title {
  margin: auto;
}

/* Jugendschutzplakat */
.law-svg-container {
  cursor: pointer;
  max-width: 250px;
  margin: 0 auto;
  padding: 0.5rem;
}

.law-svg {
  width: 100%;
  height: auto;
  display: block;
}

.law-modal {
  background-color: var(--alabaster);
  color: var(--darkgrey);
}

.jugendschutz-table {
  background-color: var(--white);
  border-collapse: collapse;
  width: 100%;
}

.jugendschutz-table thead {
  background-color: var(--blue);
  color: var(--white);
  font-family: 'Quicksand', sans-serif;
}

.jugendschutz-table td,
.jugendschutz-table th {
  padding: 0.75rem;
  border: 1px solid #ddd;
}

.jugendschutz-table td.text-start {
  text-align: left;
  padding-left: 1rem;
  padding-right: 1rem;
}

.jugendschutz-table small {
  display: block;
  font-size: 0.75rem;
  color: var(--grey);
}

.juschg-wrapper {
  font-size: 0.95rem;
}

.highlight {
  background-color: var(--lightblue-50) !important;
}

.bg-red {
  background-color: var(--darkred) !important;
}

.bg-yellow {
  background-color: var(--red) !important;
}

.bg-green {
  background-color: var(--green) !important;
}

.badge.text-bg-secondary {
  background-color: var(--green);
  color: var(--white);
}

.juschg-legend-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.juschg-legend-table td {
  padding: 0.4rem 0;
  vertical-align: top;
  font-size: 0.8rem;
}

.juschg-legend-table .icon-cell {
  width: 32px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--darkgrey);
}

.juschg-legend-table .text-muted {
  margin-left: 0.5rem;
  display: inline-block;
  font-size: 0.8rem;
}

@media (max-width: 600px) {
  .juschg-legend-table td {
    font-size: 0.8rem;
  }

  .juschg-legend-table .icon-cell {
    font-size: 8rem;
  }
}

/* =========================
   03) Tool 2 - Körperkarte
   ========================= */
.tool2-stage {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 24px;
  background-image: url("../img/tool-2/yellow-BG.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

.tool2-stage.full-bleed {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: none;
  padding-left: 24px;
  padding-right: 24px;
}

.koerper-wrapper {
  width: 100%;
  max-width: min(30dvh, 72vw);
  max-height: 86dvh;
  margin: 0 auto;
  position: relative;
  overflow: visible;
}

@media (max-width: 767px) {
  body.tool2-page .tool2-stage .koerper-wrapper {
    transform: none;
  }
}

.tool2-stage #toolHelp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: min(420px, 92vw);
  max-width: 720px;
  z-index: 10;
}


.koerper-svg {
  width: 100%;
  height: auto;
  display: block;
}

.tooltip-btn {
  position: absolute;
  transform: translate(-50%, -50%);
  background: var(--lightblue);
  color: white;
  border: none;

  width: 1.7em;
  height: 1.7em;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.2rem;
  line-height: 1;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);

}

.tooltip-btn:hover {
  background: rgba(111, 132, 185, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

.tooltip-btn:focus {
  outline: 2px solid var(--yellow);
}

.tooltip-btn.visited {
  background: var(--lightgreen) !important;
  color: white !important;
  transform: translate(-50%, -50%) scale(1.0) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  opacity: 1;
}

#organPreview {
  flex-shrink: 0;
}

#organPreview img {
  max-width: 200px;
  border-radius: 18px;
}

@media (max-width: 767px) {
  #organModal .modal-body {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.9rem !important;
    text-align: left;
  }

  #organModal #organPreview {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  #organModal #organPreview img {
    max-width: min(52vw, 170px);
    width: auto;
    height: auto;
  }

  #organModal .organ-info {
    width: 100%;
  }
}

@media (max-width: 1366px) and (orientation: portrait) {
  body.tool2-page .rotate-hint {
    display: none !important;
  }
}

@media (max-width: 767px) and (orientation: landscape) {
  body.tool2-page .rotate-hint {
    display: flex !important;
  }
}


.visited-organ {
  fill: var(--darkgrey) !important;
  opacity: 0.8;
}

.organ-info ul {
  margin: 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;

}

.organ-info ul li {

  margin: 0.35rem 0;
  line-height: 1.45;
  position: relative;
  padding-left: 0.7rem;
  font-size: 0.95rem;
}

.organ-info li {
  list-style: disc;
  position: relative;
}


.organ-info ol {
  list-style: circle !important;

}

.organ-info ol li {
  margin: 0.35rem 0;
  line-height: 1.45;
  font-size: 0.95rem;
}


ol li::marker {
  color: var(--darkgrey)
}

ul li::marker {
  color: var(--darkblue);
}

/*Lückentext*/

#lueckentext-section .dropzone {
  display: inline-block;
  min-width: 100px;
  border-bottom: 2px dashed var(--blue);
  padding: 2px 4px;
  margin: 0 4px;
}

.drop-hover {
  background: rgba(111, 132, 185, 0.15);
}

.lueckentext {
  font-size: 1.2rem;
  line-height: 1.6;
}

#lueckenModal #toolHelpLuecken.coachmark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 10px)) scale(0.98);
  width: min(420px, 92vw);
  z-index: 1080;
}

#lueckenModal #toolHelpLuecken.coachmark.is-visible {
  transform: translate(-50%, -50%) scale(1);
}

#lueckenModal #toolHelpLuecken.coachmark.is-floating {
  animation: coachFloatY 2.8s var(--ease-soft) infinite;
  animation-fill-mode: both;
}

.dropzone {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  min-width: 120px;
  min-height: 32px;
  border-bottom: 2px dashed var(--blue);
  margin: 0 4px;
  padding: 2px 6px;
  vertical-align: bottom;
  background: transparent;
  color: var(--darkblue);

  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;

}

.dropzone.dragover {
  background-color: var(--lightblue50);
  border-bottom-color: var(--darkblue);
  transform: translateY(-1px);
}

.dropzone.filled {
  font-weight: 700;
}

/* Feedback-Modal */
.gap-feedback {
  display: grid;
  gap: 0.75rem;
}

.gap-feedback__title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
}

.gap-feedback__msg {
  margin: 0;
  line-height: 1.5;
}

.gap-feedback__hint {
  background: rgba(132, 164, 216, 0.30);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
}

.gap-feedback__hint strong {
  display: block;
  margin-bottom: 0.4rem;
}

.gap-feedback__list {
  margin: 0;
  padding-left: 1.1rem;
}

.gap-feedback__list li::marker {
  color: var(--darkblue);
}

.choice {
  background: var(--lightblue);
  color: var(--darkgrey);
  padding: 0.5rem 1rem;
  border-radius: 0.85rem;
  cursor: grab;
  user-select: none;
  border: 1px solid rgba(35, 35, 35, 0.10);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;

}

.choice.dragging {
  opacity: 0.5;
  transform: scale(0.98);
}

.choice:hover {
  background: var(--darkblue);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}

#lueckenModal.tool2-select-mode .luecken-choices {
  display: none !important;
}

#lueckenModal.tool2-touch-dnd-mode .choice {
  touch-action: none;
}

#lueckenModal.tool2-select-mode .dropzone.dropzone--select {
  min-width: 132px;
  border-bottom: 0;
  padding: 0;
  margin: 0 4px;
  background: transparent;
}

#lueckenModal.tool2-select-mode .gap-select {
  width: min(40vw, 180px);
  min-height: 34px;
  border: 1px solid rgba(35, 35, 35, 0.22);
  border-radius: 10px;
  background: var(--white);
  color: var(--darkgrey);
  font-size: 0.9rem;
  line-height: 1.2;
  padding: 4px 28px 4px 10px;
}

@media (max-width: 767px) {
  #lueckenModal .luecken-choices {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 1366px) {
  #lueckenModal.tool2-touch-dnd-mode .modal-dialog {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    min-height: 100dvh;
  }

  #lueckenModal.tool2-touch-dnd-mode .modal-content {
    min-height: 100dvh;
    border-radius: 0;
  }

  #lueckenModal.tool2-touch-dnd-mode .modal-body {
    max-height: calc(100dvh - 78px);
    overflow-y: auto;
  }
}

.dropzone::before {
  content: " ";
  visibility: hidden;
}

.dropzone.filled {
  font-weight: bold;
}

.dropzone.correct {
  background: var(--lightgreen);
}

.dropzone.wrong {
  background: var(--lightred);
}

.text-wrong {
  color: var(--darkblue);
}

.text-correct {
  color: var(--darkblue);
}

.luecken-check {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  align-items: center;
}


.luecken-feedback {
  margin-top: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.9rem;
  background: var(--alabaster30);
  border: 1px solid rgba(35, 35, 35, 0.10);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.luecken-feedback i {
  margin-top: 2px;
}

.highlight-focus {
  animation: bodyPulse 0.6s ease-out;
}

@keyframes bodyPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(132, 164, 216, 0.0);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(132, 164, 216, 0.35);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(132, 164, 216, 0.0);
  }
}



/* =========================
   04) Tool 3 - Motive
   ========================= */

/* Fortschrittsbalken */
.tool-progress {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, calc(100vw - 24px));

  margin: 0;
  padding: 14px 14px 10px;

  z-index: 500;
  backdrop-filter: blur(6px);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(35, 35, 35, 0.75);
  margin-bottom: 0.25rem;
}

.progress-sm {
  height: 6px;
  background-color: rgba(35, 35, 35, 0.12);
  border-radius: 6px;
  overflow: hidden;
}

.progress-sm .progress-bar {
  background-color: var(--blue);
  transition: width 0.25s ease;
}


.tool-3-container {
  padding-top: 100px;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

body.tool3-page .tool-3-container {
  padding-top: 88px;
}

.bubble {
  --bubble-bg: var(--white);
  --bubble-radius: 20px;
  --bubble-tail-w: 28px;
  --bubble-tail-h: 18px;
  --bubble-tail-offset: 26px;
  --bubble-pad: 1.5rem;
  --bubble-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);

  background: var(--bubble-bg);
  padding: var(--bubble-pad);
  border-radius: var(--bubble-radius);

  font-size: 1.2rem;
  max-width: 600px;
  margin: 2rem auto;
  position: relative;

  text-align: center;
  box-shadow: var(--bubble-shadow);
}

.bubble::after {
  content: "";
  position: absolute;
  left: var(--bubble-tail-offset);
  bottom: calc(-1 * var(--bubble-tail-h) + 2px);
  width: var(--bubble-tail-w);
  height: var(--bubble-tail-h);
  background: var(--bubble-bg);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.10));
}

#visual-flasche {
  width: 30px;
  height: auto;
  display: block;
  margin: 0 auto;
  transform-origin: bottom center;
  transition: transform 0.35s ease, fill 0.35s ease;
}

#visual-flasche .cls-1 {
  transition: fill 0.35s ease;
}

.cls-2 {
  fill: var(--alabaster);
}

.tool-instruction {
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

#motiv-flasche {
  transition: transform 0.3s ease;
}

.motive-step {
  background-color: rgba(244, 238, 225, 0.9);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--blue);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.step-label {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--darkgrey);
}

.motive-step {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding: 1rem 1.25rem;
}

@media (max-width: 480px) {
  .motive-step {
    padding: 1rem 1rem;
    max-width: 90%;
  }
}

.motive-step,
.motive-step-rating,
.motive-step-dnd {
  display: block;
}

#motive-bubble {
  display: block;
}

body.tool3-page #motive-bubble {
  margin: 1rem auto 0.7rem;
}

body.tool3-page .motive-step.mt-3 {
  margin-top: 0.5rem !important;
}

.drag-card-wrap {
  display: flex;
  justify-content: center;
  margin: 0.75rem 0 1.25rem;
}

.drag-card {
  width: min(560px, 100%);
  background: var(--lightblue);
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.35;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  cursor: grab;
  user-select: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.drag-card:active {
  cursor: grabbing;
}

.dropzones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 0.75rem;
}

@media (max-width: 520px) {
  .dropzones {
    grid-template-columns: 1fr;
  }
}

.dropzone-card {
  border-radius: 14px;
  padding-top: 15px;
  padding-bottom: 20px;
}

.dropzone-kicker {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--darkgrey);
  margin-bottom: 8px;
  text-align: center;
}

.dropzone-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(35, 35, 35, 0.75);
  margin-bottom: 10px;
}

body.tool3-page #dnd-step .dropzone-card>.dropzone-title {
  display: none;
}

.dropzone-area {
  min-height: 200px;
  border: 2px dashed var(--blue);
  border-radius: 14px;
  position: relative;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.dropzone-area::before {
  content: attr(data-title);
  position: absolute;
  top: 0.95rem;
  left: 1rem;
  right: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(35, 35, 35, 0.75);
  margin: 0;
}

body.tool3-page #dnd-step .dropzone-area::before {
  content: none;
}

body.tool3-page #dnd-step .dropzone-area .dropzone-title {
  display: block;
  position: absolute;
  top: 0.95rem;
  left: 1rem;
  right: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(35, 35, 35, 0.75);
  margin: 0;
}

body.tool3-page #dnd-step .dropzone-area .dropzone-title strong {
  font-weight: 800;
  color: rgba(35, 35, 35, 0.95);
}

.dropzone-area::after {
  content: "";
  position: absolute;
  top: 5rem;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: rgba(35, 35, 35, 0.18);
}

.dropzone-area.dragover {
  background: rgba(106, 132, 188, 0.50);
}

.dropzone-area.drop-preview {
  background: rgba(106, 132, 188, 0.10);
  border-color: var(--blue);
}

.dropped-text-bubble {
  margin-top: 4.3em;
  background: var(--lightblue-50);
  color: var(--darkgrey);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 1.05rem;
  line-height: 1.3;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  width: fit-content;
  max-width: 100%;
}

.dnd-eval-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .dnd-eval-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.dnd-eval-col {
  background: rgba(244, 238, 225, 0.55);
  border-radius: 14px;
  padding: 1rem 1rem;
}

.eval-item {
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 6px;
  background: var(--bg-soft);
}

.eval-item.is-wrong {
  border: 2px solid var(--danger);
  background: rgba(221, 114, 96, 0.15);
}

.eval-item.is-correct {
  border: 2px solid var(--success);
  background: rgba(109, 162, 168, 0.12);
}

.motive-step-rating .step-label {
  margin-bottom: 0.75rem;
}

/* Tool 3 – Bewertungs-Dropzonen */
.rating-dropzones {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  max-width: 600px;
  margin: 0.75rem auto 1rem;
}

@media (max-width: 720px) {
  .rating-dropzones {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: 100%;
  }

  .rating-dropzone {
    padding: 10px 8px;
    font-size: 0.86rem;
    line-height: 1.15;
  }

  .rating-dropzone small {
    font-size: 0.68rem;
    line-height: 1.2;
    margin-top: 5px;
  }
}

.rating-dropzone {
  text-align: center;
  font-weight: 700;
  line-height: 1.2;
  border: 2px dashed var(--blue);
  border-radius: 14px;
  position: relative;
  padding: 18px 16px;
  user-select: none;
}

.rating-dropzone small {
  display: block;
  margin-top: 6px;
  font-weight: 500;
  opacity: 0.9;
}


.rating-dropzone.dragover {
  outline: 3px solid rgba(83, 109, 160, 0.35);
  outline-offset: 3px;
  transform: translateY(-1px);
}

/* Ergebnis-Header + Viz-Felder */
.result-head {
  max-width: 600px;
  margin: 0 auto 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.result-col-title {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  padding: 10px 12px;
}

.result-viz {
  max-width: 600px;
  margin: 0 auto 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.result-viz-box {
  min-height: 110px;
  border-radius: 14px;

}


/* Visualisierung */
.viz-dots {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(5, auto);

  gap: 5px;
  justify-content: center;
  transform: rotate(180deg) scaleX(-1);
}


.viz-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: transparent;
  border: none;
  opacity: 0;
  transform: rotate(180deg);
}

@keyframes vizPop {
  0% {
    transform: rotate(180deg) translateY(8px) scale(0.6);
    opacity: 0;
  }

  60% {
    transform: rotate(180deg) translateY(-4px) scale(1.05);
    opacity: 1;
  }

  100% {
    transform: rotate(180deg) translateY(0) scale(1);
    opacity: 1;
  }
}

.viz-dot.is-konsum,
.viz-dot.is-abstinenz {
  background: var(--darkgrey);
  opacity: 1;
  animation-name: vizPop;
  animation-duration: 420ms;
  animation-timing-function: cubic-bezier(.22, .9, .3, 1);
  animation-fill-mode: both;
}

.viz-dot.is-konsum {
  background: var(--darkgrey);
  border: none;
}

.viz-dot.is-abstinenz {
  background: var(--darkgrey);
  border: none;
}

.viz-dot.is-soft {
  opacity: 0.65;
}

.result-head,
.result-viz {
  column-gap: clamp(32px, 6vw, 72px);
}

.top-viz {
  max-width: 600px;
  margin: 0 auto 10px;
}



/* =========================
   05) Tool 4 - Nein sagen
   ========================= */

.centered {
  display: flex;
  justify-content: center;

  margin-top: 45vh !important;
}

#speech-overlay {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  z-index: 10;
  display: none;
  max-width: 90%;
}


.speech-question {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--darkgrey);
}

.speech-headline {
  margin-bottom: 1rem;
}

.speech-choice-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 0.75rem;
  background: var(--lightblue-50);
  color: var(--darkgrey);
  border: none;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease;
}

.speech-choice-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, .15);
}

.btn-back-secondary {
  margin-top: 0.5rem;
  background: transparent;
  border: none;
  color: var(--darkgrey);
  font-size: 0.9rem;
  opacity: 0.8;
}

.btn-back-secondary:hover {
  opacity: 1;
  text-decoration: underline;
}

@media (max-width: 600px) {
  body.tool4-aframe #speech-overlay {
    left: 12px;
    right: 12px;
    bottom: 12px;
    transform: none;
    width: auto;
    max-width: none;
    padding: 14px;
  }

  body.tool4-aframe #speechChoicesList .speech-choice-btn,
  body.tool4-aframe #speech-overlay button {
    width: 100%;
  }
}


.hotspot:not(.done) {
  animation: pulseHS 1.6s infinite ease-in-out;
}

@keyframes pulseHS {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.hotspot.done {
  opacity: 0;
  pointer-events: none;
  animation: none;
}

/* Mobile HUD-Sprechblase */
body.tool4-aframe .bubble-hud {
  position: fixed;
  left: 12px;
  right: 12px;
  top: auto;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  z-index: 99999;
  display: none;
  padding: 0;
}

body.tool4-aframe .bubble-hud .hud-bubble {
  position: relative;
  background: #ffffff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

body.tool4-aframe .bubble-hud .hud-bubble+.hud-bubble {
  margin-top: 8px;
}

body.tool4-aframe .bubble-hud .hud-bubble-q {
  background: var(--lightblue);
}

body.tool4-aframe .bubble-hud .hud-text {
  margin: 0;
  color: #232323;
}

body.tool4-aframe .bubble-hud .hud-q {
  font-weight: 700;
  padding-right: 24px;
}

body.tool4-aframe .bubble-hud .hud-a,
body.tool4-aframe .bubble-hud .hud-a2 {
  font-weight: 500;
}

body.tool4-aframe .bubble-hud .hud-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #232323;
  padding: 0;
}

body.tool4-aframe .bubble-hud .hud-close:hover {
  transform: translateY(-1px);
}

body.tool4-aframe .bubble-hud .hud-close:active {
  transform: translateY(0);
}

body.tool4-aframe .bubble-hud .hud-bubble {
  opacity: 0;
  transform: translateY(18px);
  will-change: transform, opacity;
  animation: hudBubbleInUp 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.tool4-aframe .bubble-hud .hud-bubble-a {
  animation-delay: 90ms;
}

body.tool4-aframe .bubble-hud .hud-bubble-a2 {
  animation-delay: 180ms;
}

body.tool4-aframe .bubble-hud .hud-bubble-a,
body.tool4-aframe .bubble-hud .hud-bubble-a2 {
  background: rgba(255, 255, 255, 0.98);
}

body.tool4-aframe .bubble-hud .hud-bubble-a2 {
  display: none;
}

@keyframes hudBubbleInUp {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 767px) {
  body.tool4-aframe .bubble-hud {
    top: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
    left: 12px;
    right: 12px;
  }
}

/* =========================
   06) Tool 5/6 - Motioncomics
   ========================= */

.tool5-video-wrap {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.tool5-video {
  width: 100%;
  height: auto;
  display: block;
}

/* Audio */
.tool5-audio {
  width: 100%;
  margin-left: auto;
}

/* Steuerung (Play + Seek) */
.tool5-audio-controls {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: center;
}

.tool5-audio-btn {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  min-width: 44px;
  justify-content: center;
}

/* Schieberegler */
.tool5-range {
  width: 100%;
  appearance: none;
  height: 10px;
  border-radius: 999px;
  background: rgba(35, 35, 35, 0.12);
  outline: none;
}

.tool5-range::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--darkblue);
  cursor: pointer;
}

.tool5-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--darkblue);
  cursor: pointer;
  border: none;
}

@media (max-width: 992px) {
  .tool5-audio {
    max-width: none;
    margin-left: 0;
  }
}

/* Audio-Header-Meta (Zeit + Lautstärke-Symbol) */
.tool5-audio-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.tool5-audio-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  position: relative;
}

.tool5-audio-time {
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
}

.tool5-vol-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(35, 35, 35, 0.16);
  background: rgba(244, 238, 225, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.tool5-vol-btn i {
  font-size: 0.9rem;
  color: var(--darkgrey);
}

.tool5-vol-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.10);
}

.tool5-vol-btn:active {
  transform: translateY(1px) scale(0.98);
}

/* Lautstärke-Dropdown */
.tool5-volume-wrap {
  position: absolute;
  right: 0;
  top: 30px;
  width: 44px;
  height: 118px;
  border-radius: 14px;
  border: 1px solid rgba(35, 35, 35, 0.14);
  background: rgba(244, 238, 225, 0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  z-index: 10;
}

/* Vertikaler Regler */
.tool5-volume-vertical {
  appearance: none;
  width: 96px;
  height: 10px;
  background: rgba(35, 35, 35, 0.12);
  border-radius: 999px;
  transform: rotate(-90deg);
}

.tool5-volume-vertical::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--darkblue);
  cursor: pointer;
}

.tool5-volume-vertical::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--darkblue);
  cursor: pointer;
  border: none;
}

@keyframes tool5Pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(111, 132, 185, 0.0);
  }

  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 8px rgba(111, 132, 185, 0.18);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(111, 132, 185, 0.0);
  }
}

#tool5PlayBtn.is-playing {
  animation: tool5Pulse 1.4s var(--ease-soft) infinite;
}


@media (max-width: 992px) {
  .tool5-text {
    display: flex;
    flex-direction: column;
  }

  #tool5RestartBtn {
    order: 99;
    margin-top: 1.5rem;
  }
}

/* =========================
   07) Gemeinsame Komponenten (Coachmarks/Hilfe-UI)
   ========================= */

/* Coachmark (Tool-Hinweis) */

.coachmark-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1040;

  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(35, 35, 35, 0.16);
  background: rgba(244, 238, 225, 0.85);
  color: var(--darkgrey);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);

  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    background-color var(--dur-med) ease;
}

.coachmark-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}

.coachmark-toggle:active {
  transform: translateY(1px) scale(0.98);
}

.coachmark {
  --cm-bg: rgba(132, 164, 216, 0.5);
  --cm-fg: black;

  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 9999;

  max-width: min(420px, 92vw);
  background: var(--cm-bg);
  color: var(--cm-fg);

  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);

  opacity: 0;
  pointer-events: none;

  transform: translate(-50%, calc(-50% + 10px)) scale(0.98);
  transition: opacity var(--dur-slow) var(--ease-soft);

  will-change: transform, opacity;
}

.coachmark.is-visible {
  opacity: 1;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
}

coachmark.is-visible .coachmark-close,
.coachmark.is-visible button,
.coachmark.is-visible a {
  pointer-events: auto;
}

.coachmark::before {
  content: none !important;
}

.coachmark.is-floating {
  animation: coachFloatY 2.8s var(--ease-soft) infinite;
  animation-fill-mode: both;
}

body.tool4-aframe #toolHelp.coachmark {
  --cm-bg: rgba(132, 164, 216, 0.64);
}


@keyframes coachFloatY {
  0% {
    transform: translate(-50%, -50%);
  }

  50% {
    transform: translate(-50%, calc(-50% - 4px));
  }

  100% {
    transform: translate(-50%, -50%);
  }
}

@keyframes coachFloatYTool1 {
  0% {
    transform: translateX(-50%);
  }

  50% {
    transform: translate(-50%, -4px);
  }

  100% {
    transform: translateX(-50%);
  }
}


.coachmark-content strong {
  display: block;
  margin-bottom: 6px;
}

.coachmark-content {
  line-height: 1.5;
  font-size: 0.9rem;
}

.coachmark-hint {
  margin-top: 8px;
  font-size: 0.7rem;
  opacity: 0.85;
}

.coachmark-close {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 30px;
  height: 30px;
  border-radius: 999px;

  border: 1px solid rgba(35, 35, 35, 0.14);
  background: rgba(244, 238, 225, 0.55);
  color: var(--darkgrey);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.coachmark-close:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.coachmark-close:active {
  transform: translateY(1px) scale(0.98);
}

@media (max-width: 767px) {
  .coachmark-toggle {
    width: 44px;
    height: 44px;
    top: 12px;
    right: 12px;
  }

  body.tool1-page #toolHelp.coachmark,
  body.tool2-page #toolHelp.coachmark,
  body.tool2-page #toolHelpLuecken.coachmark,
  body.tool3-page #toolHelp.coachmark,
  body.tool3-page #toolHelpStep2.coachmark,
  body.tool4-aframe #toolHelp.coachmark {
    top: 50%;
    width: 96vw;
    max-width: 96vw;
  }

  body.tool3-page .drag-card {
    width: min(94vw, 420px);
    padding: 14px 12px;
    font-size: 1.02rem;
    line-height: 1.28;
    border-radius: 14px;
  }

  body.tool3-page {
    padding: 0.75rem 0.5rem 1rem;
  }

  body.tool3-page .tool-progress {
    top: 6px;
    width: calc(100vw - 12px);
    padding: 10px 10px 8px;
  }

  body.tool3-page .tool-3-container {
    padding-top: 74px;
  }

  body.tool3-page #motive-bubble {
    margin: 0.5rem auto 0.45rem;
  }

  body.tool3-page .motive-step.mt-3 {
    margin-top: 0.35rem !important;
  }

  body.tool3-page #auftragModal .modal-body {
    flex-direction: row !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 0.65rem !important;
    padding: 0.8rem 0.9rem !important;
  }

  body.tool3-page #auftragModal .modal-body img {
    max-width: 34% !important;
    max-height: 110px !important;
    margin-bottom: 0 !important;
  }

  body.tool3-page #auftragModal .modal-body p {
    font-size: 0.84rem !important;
    line-height: 1.35 !important;
    max-width: none !important;
    margin-bottom: 0 !important;
  }

  body.tool3-page #auftragModal .modal-header,
  body.tool3-page #auftragModal .modal-footer {
    padding: 0.65rem 0.9rem !important;
  }

  body.tool3-page #dnd-step.motive-step {
    padding: 0.7rem 0.75rem;
    max-width: 96%;
  }

  body.tool3-page #dnd-step .step-label {
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
  }

  body.tool3-page #dnd-step .dropzones {
    gap: 10px;
    margin-top: 0.35rem;
  }

  body.tool3-page #dnd-step .dropzone-area {
    min-height: 148px;
    padding: 12px 10px;
  }

  body.tool3-page #dnd-step .dropzone-area::before {
    top: 0.65rem;
    font-size: 0.82rem;
  }

  body.tool3-page #dnd-step .dropzone-area::after {
    top: 3.6rem;
  }

  body.tool3-page #dnd-step .dropped-text-bubble {
    margin-top: 4.2em;
    margin-left: auto;
    margin-right: auto;
    align-self: center;
    padding: 8px 10px;
    font-size: 0.92rem;
    line-height: 1.2;
    text-align: center;
  }

  body.tool3-page #dnd-step .drag-card-wrap {
    margin: 0.45rem 0 0.75rem;
  }

  body.tool3-page #dnd-step .drag-card {
    width: min(92vw, 360px);
    padding: 10px 10px;
    font-size: 0.94rem;
    line-height: 1.22;
  }

  body.tool3-page #rating-step {
    margin-top: 0.15rem !important;
  }

  body.tool3-page #top-viz {
    margin-top: 0.1rem;
    margin-bottom: 0.35rem;
  }

  body.tool3-page #top-viz .result-head {
    margin-bottom: 4px;
    gap: 8px;
  }

  body.tool3-page #top-viz .result-col-title {
    font-size: 0.9rem;
    line-height: 1.15;
    padding: 4px 6px;
  }

  body.tool3-page #top-viz .result-viz {
    margin-bottom: 4px;
    gap: 8px;
  }
}

@keyframes helpPulse {
  0% {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12), 0 0 0 0 rgba(111, 132, 185, 0.18);
  }

  70% {
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14), 0 0 0 10px rgba(111, 132, 185, 0);
  }

  100% {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12), 0 0 0 0 rgba(111, 132, 185, 0);
  }
}

.coachmark-toggle.is-pulsing {
  animation: helpPulse 1.2s var(--ease-soft) infinite;
}
