/* The Net4You Christmas Mix 2026 – komplett auf #n4x-app begrenzt */
#n4x-app{--n4x-green:#0c3028;--n4x-gold:#edc77f;--n4x-cream:#fbf1df;--n4x-muted:#bfcebc;box-sizing:border-box;color:#fff;font:16px/1.5 system-ui,-apple-system,'Segoe UI',Arial,sans-serif;max-width:760px;margin:24px auto;background:radial-gradient(circle at 94% 1%,#345845 0,transparent 33%),linear-gradient(150deg,#10372d,#09231e);border:1px solid #53715b;border-radius:22px;box-shadow:0 18px 55px #00190f29;overflow:hidden}
#n4x-app *,#n4x-app *::before,#n4x-app *::after{box-sizing:border-box}
#n4x-app button,#n4x-app input{font:inherit}#n4x-app button{cursor:pointer}#n4x-app button:focus-visible,#n4x-app input:focus-visible{outline:3px solid #e8c278;outline-offset:3px}
#n4x-app .n4x-head{display:flex;align-items:center;gap:12px;padding:19px;border-bottom:1px solid #496653}#n4x-app .n4x-icon{height:46px;width:46px;border-radius:50%;display:grid;place-items:center;background:#e8c17e;color:#113a2e;font-size:26px;flex-shrink:0}#n4x-app .n4x-head-main{flex:1;min-width:0}#n4x-app .n4x-head h1{font-size:clamp(18px,3.5vw,25px);line-height:1.2;margin:0;color:#fff}#n4x-app .n4x-head small{font-size:12px;color:#c7d9c5}#n4x-app .n4x-round{display:grid;place-items:center;width:40px;height:40px;background:transparent;border:1px solid #b9a575;color:#f2d39d;border-radius:50%;font-size:21px}
#n4x-app .n4x-chat{padding:22px 18px;min-height:340px;max-height:620px;overflow:auto;scroll-behavior:smooth}#n4x-app .n4x-kicker{text-align:center;color:var(--n4x-gold);font-size:11px;letter-spacing:.17em;margin:0 0 18px}#n4x-app .n4x-msg{display:flex;gap:9px;margin:0 0 15px;align-items:flex-end}#n4x-app .n4x-msg.user{justify-content:flex-end}#n4x-app .n4x-avatar{background:#e8bd75;color:#163c30;border-radius:50%;height:31px;width:31px;display:grid;place-items:center;flex:0 0 31px}#n4x-app .n4x-bubble{max-width:86%;padding:12px 15px;border-radius:17px 17px 17px 4px;background:#fbf1df;color:#273b31;white-space:pre-wrap;overflow-wrap:anywhere}#n4x-app .n4x-msg.user .n4x-bubble{background:#376c55;color:#fff;border-radius:17px 17px 4px 17px}#n4x-app .n4x-options{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0 18px 41px}#n4x-app .n4x-option{border:1px solid #bda674;background:#1f4939;color:#fff;padding:10px 14px;border-radius:14px;text-align:left}#n4x-app .n4x-option:hover{background:#2d6349}#n4x-app .n4x-option:disabled{opacity:.55;cursor:not-allowed}#n4x-app .n4x-editor{padding:12px 15px 15px;display:flex;gap:9px;border-top:1px solid #496653}#n4x-app .n4x-editor input{min-width:0;flex:1;border:1px solid #728f77;background:#f9f1e5;color:#1c392c;border-radius:14px;padding:11px 13px}#n4x-app .n4x-send{background:#e9c17e;color:#103427;border:0;border-radius:12px;padding:10px 16px;font-weight:700}#n4x-app .n4x-send:disabled{opacity:.45;cursor:not-allowed}#n4x-app .n4x-footer{padding:12px 17px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #496653;color:#dec69b;font-size:12px}#n4x-app .n4x-plain{border:0;background:transparent;color:#f1d39c;text-decoration:underline;padding:5px}#n4x-app .n4x-information{padding:20px;background:#fbf1df;color:#173b2f;margin:15px;border-radius:16px}#n4x-app .n4x-information h2{font-size:22px;margin:0 0 9px;color:#173b2f}#n4x-app .n4x-info-item{padding:7px 0;border-bottom:1px solid #e7dccc}#n4x-app .n4x-information button{margin-top:13px}
#n4x-app .n4x-recipe{background:var(--n4x-cream);color:#1e3b2c;border-radius:18px;padding:15px;margin:5px 0 20px 40px}#n4x-app .n4x-recipe h2{color:#153c30;font-size:25px;line-height:1.16;margin:3px 0}#n4x-app .n4x-recipe p{margin:8px 0}#n4x-app .n4x-recipe small{color:#526c5a}#n4x-app .n4x-recipe h3{font-size:16px;margin:15px 0 6px}#n4x-app .n4x-recipe ul{padding-left:22px;margin:7px 0}#n4x-app .n4x-recipe li{margin:4px 0}#n4x-app .n4x-photo{height:auto;width:100%;max-height:310px;object-fit:contain;background:linear-gradient(160deg,#dce8d5,#a3b99e);border-radius:14px;margin:12px 0}#n4x-app .n4x-greeting{padding:14px;border-radius:12px;background:#eee0c6;color:#534832;font-style:italic;margin:14px 0}#n4x-app .n4x-alt-title{font-weight:700;color:var(--n4x-gold);margin:6px 0 8px 40px}#n4x-app .n4x-choices{display:grid;gap:8px;margin-left:40px}#n4x-app .n4x-choice{display:flex;justify-content:space-between;gap:8px;text-align:left;width:100%;border-radius:11px;border:1px solid #8b956d;background:#153a2d;color:#fff;padding:11px}#n4x-app .n4x-choice small{color:#e8c387;display:block}#n4x-app .n4x-controls{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0 0 40px}#n4x-app .n4x-smallbtn{border:1px solid #bfa46b;color:#fff;background:#214e3b;padding:8px 12px;border-radius:10px}#n4x-app .n4x-error{color:#ffe1b2;margin:8px 0 0 40px;font-size:13px}
@media(max-width:600px){#n4x-app{margin:5px auto;border-radius:13px}#n4x-app .n4x-chat{padding:17px 12px;max-height:65vh}#n4x-app .n4x-options,#n4x-app .n4x-recipe,#n4x-app .n4x-alt-title,#n4x-app .n4x-choices,#n4x-app .n4x-controls{margin-left:0}#n4x-app .n4x-bubble{max-width:87%}#n4x-app .n4x-head{padding:12px}#n4x-app .n4x-footer{font-size:11px}}

/* Popup: ausschließlich per ?christmasmix=1 vom JavaScript erzeugt */
#n4x-overlay, #n4x-overlay * { box-sizing: border-box; }
#n4x-overlay { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 18px; }
#n4x-overlay .n4x-backdrop { position: absolute; inset: 0; background: rgba(1, 13, 10, .84); }
#n4x-overlay .n4x-dialog { position: relative; z-index: 1; width: min(100%, 800px); max-height: min(94dvh, 940px); overflow: auto; border-radius: 22px; box-shadow: 0 24px 90px rgba(0,0,0,.5); }
#n4x-overlay #n4x-app { max-width: none; width: 100%; margin: 0; border-radius: 22px; }
#n4x-overlay .n4x-close { position: absolute; top: 8px; right: 8px; z-index: 10; display: grid; place-items: center; height: 35px; width: 35px; border: 1px solid #f0d6a5; border-radius: 50%; background: #0d3027; color: #fff; font: bold 25px/1 Arial,sans-serif; cursor: pointer; }
#n4x-overlay .n4x-close:focus-visible { outline: 3px solid #edc77f; outline-offset: 2px; }
#n4x-overlay #n4x-app .n4x-head { padding-right: 53px; }
@media (max-width: 600px) {
 #n4x-overlay { padding: 7px; }
 #n4x-overlay .n4x-dialog { max-height: 97dvh; border-radius: 14px; }
 #n4x-overlay #n4x-app { border-radius: 14px; }
 #n4x-overlay #n4x-app .n4x-chat { max-height: 55dvh; }
}


/* ===== Net4You Christmas Mix: Popup-Layout-Fix (Version 2026-11-18) ===== */
/* Nur der Seiten-Backdrop wird heller; die Chatfarben bleiben bewusst erhalten. */
#n4x-overlay .n4x-backdrop {
  background: rgba(9, 22, 17, .35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
/* Header, Chat, Eingabe und Fussleiste sind feste Bereiche innerhalb des Popups. */
#n4x-overlay .n4x-dialog {
  display: block;
  overflow: hidden;
  width: min(100%, 800px);
  max-height: min(94dvh, 940px);
  background: #0c3028;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .27);
}
#n4x-overlay #n4x-app {
  display: flex;
  flex-direction: column;
  height: min(94dvh, 940px);
  min-height: 0;
  max-height: min(94dvh, 940px);
  margin: 0;
  overflow: hidden;
  background: linear-gradient(160deg, #194537, #0c3028);
}
#n4x-overlay #n4x-app .n4x-head {
  position: relative;
  inset: auto;
  display: flex;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  min-height: 84px;
  padding: 14px 16px;
  margin: 0;
  border-radius: 0;
  background: #0b352b;
  border-bottom: 1px solid #557160;
  box-shadow: none;
  z-index: 2;
}
#n4x-overlay #n4x-app .n4x-head-main { flex: 1 1 auto; min-width: 0; }
#n4x-overlay #n4x-app .n4x-head h1 { color: #fff; font-size: clamp(16px, 2.6vw, 22px); margin: 0; }
#n4x-overlay #n4x-app .n4x-head small { display:block; color: #c7d9c5; line-height:1.3; }
#n4x-overlay #n4x-app .n4x-head .n4x-round,
#n4x-overlay #n4x-app .n4x-head .n4x-close { flex: 0 0 36px; }
#n4x-overlay #n4x-app .n4x-head .n4x-close {
  position: static;
  inset: auto;
  display: grid;
  place-items: center;
  height: 36px;
  width: 36px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  color: #fff;
  background: #0d3027;
  border: 1px solid #f0d6a5;
  font: bold 25px/1 Arial, sans-serif;
  cursor: pointer;
  z-index: auto;
}
#n4x-overlay #n4x-app .n4x-chat {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#n4x-overlay #n4x-app .n4x-editor,
#n4x-overlay #n4x-app .n4x-footer { flex: 0 0 auto; background: #0b3027; }
#n4x-overlay #n4x-app .n4x-information {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
#n4x-overlay #n4x-app .n4x-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  background: #294b3b;
  margin: 12px 0;
}
#n4x-overlay #n4x-app .n4x-photo-error { font-size: 13px; color: #8c563b; }
#n4x-overlay #n4x-app [hidden] { display: none !important; }
@media (max-width: 600px) {
  #n4x-overlay .n4x-dialog { max-height: 97dvh; }
  #n4x-overlay #n4x-app { height: 97dvh; max-height: 97dvh; }
  #n4x-overlay #n4x-app .n4x-head { min-height: 74px; gap: 8px; padding: 10px 11px; }
  #n4x-overlay #n4x-app .n4x-icon { height: 38px; width: 38px; }
  #n4x-overlay #n4x-app .n4x-head h1 { font-size: 16px; }
  #n4x-overlay #n4x-app .n4x-head small { font-size: 10px; }
  #n4x-overlay #n4x-app .n4x-head .n4x-round,
  #n4x-overlay #n4x-app .n4x-head .n4x-close { flex-basis: 30px; width:30px; height:30px; }
  #n4x-overlay #n4x-app .n4x-photo { max-height: 310px; }
}

/* ===== Hotfix Joomla Investa: keine semantische <header>-Kollision =====
 * Header ist in JS nun ein DIV, da Investa HTML-header global positioniert.
 * CSS zusätzlich gegen fremde Template-Positionsregeln absichern.
 */
html body #n4x-overlay .n4x-dialog #n4x-app > .n4x-head {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  float: none !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 14px 16px !important;
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  gap: 12px !important;
  background: #0b352b !important;
  color: #fff !important;
  border-bottom: 1px solid #557160 !important;
  border-radius: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 1 !important;
}
html body #n4x-overlay .n4x-dialog #n4x-app > .n4x-head .n4x-head-main h1 {
  color: #fff !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
html body #n4x-overlay .n4x-dialog #n4x-app > .n4x-head .n4x-head-main small {
  color: #c7d9c5 !important;
  opacity: 1 !important;
}
html body #n4x-overlay .n4x-dialog #n4x-app > .n4x-head > .n4x-close {
  position: static !important;
  transform: none !important;
  margin: 0 !important;
}
@media (max-width:600px) {
 html body #n4x-overlay .n4x-dialog #n4x-app > .n4x-head {
  padding: 10px 11px !important;
  gap: 8px !important;
 }
}
