/* Platz1 GPT Ads Check: ChatGPT Dark Mode trifft Platz1 */

@font-face {
  font-family: "Montserrat P1";
  src: url("fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations"),
       url("fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

.p1gac, .p1gac-modal {
  --p1-bg: #212121;
  --p1-surface: #303030;
  --p1-surface-2: #262626;
  --p1-text: #ffffff;
  --p1-text-2: #ececec;
  --p1-muted: #b4b4b4;
  --p1-muted-2: #8f8f8f;
  --p1-line: rgba(255, 255, 255, .08);
  --p1-accent: #5764D9;
  --p1-accent-hover: #6a76e2;
  --p1-link: #9aa3f2;
  --p1-good: #3fbf7f;
  --p1-mid: #f2a93b;
  --p1-bad: #f26b5b;
  --p1-font: "Montserrat P1", Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-family: var(--p1-font);
  color: var(--p1-text);
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.p1gac.p1gac *, .p1gac-modal.p1gac-modal * { font-family: var(--p1-font); box-sizing: border-box; }
.p1gac [hidden], .p1gac-modal[hidden], .p1gac-modal [hidden] { display: none !important; }

/* Theme- und Elementor-Stile für Buttons und Felder neutralisieren */
.p1gac button, .p1gac input, .p1gac-modal button, .p1gac-modal input {
  all: unset;
  box-sizing: border-box;
  font-family: var(--p1-font);
}
.p1gac button:focus-visible, .p1gac-modal button:focus-visible, .p1gac-modal input[type=checkbox]:focus-visible {
  outline: 2px solid var(--p1-link);
  outline-offset: 2px;
}

/* Rahmen */
.p1gac {
  max-width: 860px;
  margin: 0 auto;
  background: var(--p1-bg);
  border: 1px solid var(--p1-line);
  border-radius: 20px;
  overflow: hidden;
  text-align: left;
}

/* Header */
.p1gac .p1gac-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--p1-line);
}
.p1gac .p1gac-logo { display: block; height: 26px; width: auto; max-width: 140px; object-fit: contain; }
.p1gac .p1gac-logo.is-light { filter: grayscale(1) invert(1); mix-blend-mode: screen; }
.p1gac .p1gac-gpt-logo { display: block; height: 24px; width: auto; max-width: 110px; margin-left: auto; object-fit: contain; opacity: .9; }
.p1gac .p1gac-logo-text { font-weight: 700; font-size: 18px; letter-spacing: -.01em; color: var(--p1-text); }
.p1gac .p1gac-divider { width: 1px; height: 22px; background: rgba(255, 255, 255, .18); flex: none; }
.p1gac .p1gac-header-title { min-width: 0; font-size: 15px; font-weight: 500; color: var(--p1-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p1gac .p1gac-logo, .p1gac .p1gac-gpt-logo { flex: none; }

/* Inhalt */
.p1gac .p1gac-body { padding: 52px 28px 44px; }
.p1gac .p1gac-intro { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.p1gac .p1gac-title {
  margin: 0 0 14px;
  padding: 0;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--p1-text);
  text-transform: none;
}
.p1gac .p1gac-subtitle { margin: 0 auto; max-width: 580px; font-size: 17px; line-height: 1.6; color: var(--p1-muted); }

/* Chat */
.p1gac .p1gac-chat { max-width: 680px; margin: 0 auto; }
.p1gac .p1gac-thread { display: flex; flex-direction: column; gap: 24px; }
.p1gac .p1gac-msg { display: flex; gap: 14px; align-items: flex-start; }
.p1gac .p1gac-msg.is-new { animation: p1gac-in .35s ease both; }
.p1gac-avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--p1-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  padding-right: 1px;
  user-select: none;
}
.p1gac .p1gac-bubble { min-width: 0; flex: 1; padding-top: 3px; font-size: 16px; line-height: 1.65; color: var(--p1-text-2); }
.p1gac .p1gac-bubble p { margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
.p1gac .p1gac-bubble strong { color: var(--p1-text); font-weight: 600; }
.p1gac .p1gac-msg--user { justify-content: flex-end; }
.p1gac .p1gac-msg--user .p1gac-bubble {
  flex: 0 1 auto;
  max-width: 80%;
  padding: 10px 18px;
  background: var(--p1-surface);
  border-radius: 22px;
  color: var(--p1-text);
  overflow-wrap: anywhere;
}
.p1gac .p1gac-msg--error .p1gac-bubble { color: #ffb8ad; }

/* Typewriter */
.p1gac .p1gac-type { position: relative; }
.p1gac .p1gac-type-live { position: absolute; inset: 0; }
.p1gac .p1gac-type.is-typing .p1gac-type-ghost { visibility: hidden; }
.p1gac .p1gac-type.is-typing .p1gac-type-live::after {
  content: "";
  display: inline-block;
  width: .55em;
  height: .55em;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--p1-text);
  vertical-align: middle;
  transform: translateY(-1px);
}

/* Eingabe */
.p1gac .p1gac-form { margin: 28px 0 0 46px; transition: opacity .45s ease, transform .45s ease; }
.p1gac .p1gac-form.is-waiting { opacity: 0; transform: translateY(8px); pointer-events: none; }
.p1gac .p1gac-label { display: block; margin: 0 0 12px; font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--p1-text); }
.p1gac .p1gac-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 22px;
  background: var(--p1-surface);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 28px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.p1gac .p1gac-composer:hover { border-color: rgba(255, 255, 255, .14); }
.p1gac .p1gac-composer:focus-within { border-color: rgba(255, 255, 255, .2); }
.p1gac .p1gac-url {
  flex: 1;
  min-width: 0;
  height: 44px;
  font-size: 16px;
  font-weight: 500;
  color: var(--p1-text);
  background: transparent;
  cursor: text;
}
/* Rahmen, Schatten und Abstände aus Theme oder Elementor-Kit sicher entfernen */
.p1gac.p1gac .p1gac-composer input.p1gac-url,
.p1gac.p1gac .p1gac-composer input.p1gac-url:hover,
.p1gac.p1gac .p1gac-composer input.p1gac-url:focus {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  height: 44px !important;
  min-height: 0 !important;
  width: auto !important;
  color: var(--p1-text) !important;
  font-size: 16px !important;
  line-height: 44px !important;
}
.p1gac-modal.p1gac-modal .p1gac-field, .p1gac-modal.p1gac-modal .p1gac-field:hover {
  border: 1px solid rgba(255, 255, 255, .06) !important;
  outline: none !important;
  box-shadow: none !important;
  background: var(--p1-surface) !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  height: 50px !important;
  color: var(--p1-text) !important;
}
.p1gac-modal.p1gac-modal .p1gac-field:focus { border-color: rgba(255, 255, 255, .25) !important; box-shadow: none !important; outline: none !important; background: var(--p1-surface) !important; }
.p1gac .p1gac-url::placeholder { color: var(--p1-muted-2); font-weight: 400; opacity: 1; }
.p1gac .p1gac-send {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--p1-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .2s ease, transform .1s ease, color .2s ease;
}
.p1gac .p1gac-send:hover { background: var(--p1-accent-hover); }
.p1gac .p1gac-send:active { transform: scale(.94); }
.p1gac .p1gac-send.is-empty { background: #4a4a4a; color: #a6a6a6; }
.p1gac .p1gac-send svg { display: block; }
.p1gac .p1gac-note { margin: 12px 0 0 22px; font-size: 13.5px; line-height: 1.5; color: var(--p1-muted-2); }
.p1gac .cf-turnstile { margin-top: 12px; }

/* Ladeanimation */
.p1gac .p1gac-thinking .p1gac-avatar { animation: p1gac-pulse 1.6s ease-in-out infinite; }
.p1gac .p1gac-shimmer {
  display: inline-block;
  font-weight: 500;
  color: transparent;
  background: linear-gradient(90deg, #8f8f8f 0%, #8f8f8f 38%, #ffffff 50%, #8f8f8f 62%, #8f8f8f 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: p1gac-shimmer 1.9s linear infinite;
  transition: opacity .25s ease;
}
.p1gac .p1gac-shimmer.is-fading { opacity: 0; }

/* Platzhalter hinter dem Popup */
.p1gac .p1gac-skel { display: grid; gap: 11px; margin-top: 16px; filter: blur(3px); }
.p1gac .p1gac-skel i { display: block; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .1); }

/* Ergebnis */
.p1gac .p1gac-res {
  margin-top: 16px;
  padding: 22px;
  border: 1px solid var(--p1-line);
  border-radius: 16px;
}
.p1gac .p1gac-res-top { display: flex; align-items: center; gap: 20px; }
.p1gac .p1gac-res-ring { flex: none; width: 120px; height: 120px; }
/* Themes setzen oft svg { width: 1em } – hier hart überschreiben */
.p1gac.p1gac .p1gac-res-ring svg { display: block !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; }
.p1gac .p1gac-verdict { margin: 0 0 6px !important; font-size: 19px !important; font-weight: 600; line-height: 1.3 !important; color: var(--p1-text) !important; }
.p1gac .p1gac-fazit { font-size: 15px !important; line-height: 1.6 !important; color: var(--p1-muted) !important; }
.p1gac .p1gac-bars { list-style: none; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--p1-line); display: grid; gap: 16px; }
.p1gac .p1gac-bars li { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: baseline; margin: 0; padding: 0; }
.p1gac .p1gac-bars li::before, .p1gac .p1gac-bars li::marker { content: none; }
.p1gac .p1gac-bar-label { font-size: 15px; font-weight: 500; color: var(--p1-text-2); }
.p1gac .p1gac-bar-num { font-size: 15px; font-weight: 700; }
.p1gac .p1gac-bar-track { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.p1gac .p1gac-bar-track i { display: block; height: 100%; width: 0; border-radius: 6px; transition: width 1s cubic-bezier(.2, .7, .2, 1); }
.p1gac .good { color: var(--p1-good); } .p1gac .p1gac-bar-track i.good { background: var(--p1-good); }
.p1gac .mid { color: var(--p1-mid); }   .p1gac .p1gac-bar-track i.mid { background: var(--p1-mid); }
.p1gac .bad { color: var(--p1-bad); }   .p1gac .p1gac-bar-track i.bad { background: var(--p1-bad); }
.p1gac .p1gac-ring .trk { fill: none; stroke: rgba(255, 255, 255, .1); }
.p1gac .p1gac-ring .val { fill: none; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2, .7, .2, 1); }
.p1gac .p1gac-ring.good .val { stroke: var(--p1-good); }
.p1gac .p1gac-ring.mid .val { stroke: var(--p1-mid); }
.p1gac .p1gac-ring.bad .val { stroke: var(--p1-bad); }
.p1gac .p1gac-ring text { font-family: var(--p1-font); }
.p1gac .p1gac-ring .num { fill: var(--p1-text); font-weight: 700; letter-spacing: -.02em; }
.p1gac .p1gac-ring .sub { fill: var(--p1-muted-2); font-weight: 500; }
.p1gac .p1gac-mailnote { margin-top: 18px !important; }
.p1gac .p1gac-cta { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--p1-line); }
.p1gac .p1gac-cta .p1gac-cta-text { margin: 0 0 16px !important; color: var(--p1-muted) !important; font-size: 15px !important; }
.p1gac.p1gac a.p1gac-cta-btn,
.p1gac.p1gac a.p1gac-cta-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--p1-accent) !important;
  color: #fff !important;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: 0 10px 30px rgba(87, 100, 217, .35);
  transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.p1gac.p1gac a.p1gac-cta-btn:hover { background: var(--p1-accent-hover) !important; color: #fff !important; transform: translateY(-2px); box-shadow: 0 14px 36px rgba(87, 100, 217, .45); }
.p1gac.p1gac a.p1gac-cta-btn:active { transform: translateY(0); }
.p1gac.p1gac a.p1gac-cta-btn:focus-visible { outline: 2px solid var(--p1-link); outline-offset: 3px; }
.p1gac .p1gac-cta-btn span { flex: 0 1 auto; text-align: center; white-space: nowrap; }
.p1gac .p1gac-cta-btn svg { flex: none; width: 20px !important; height: 20px !important; transition: transform .2s ease; }
.p1gac .p1gac-cta-btn:hover svg { transform: translateX(3px); }

/* Ladebildschirm */
.p1gac .p1gac-loader { padding: 2px 0 0; }
.p1gac .p1gac-loader-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.p1gac .p1gac-pct { flex: none; font-size: 15px; font-weight: 700; color: var(--p1-text); font-variant-numeric: tabular-nums; }
.p1gac .p1gac-progress { position: relative; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.p1gac .p1gac-progress i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 8px; background: var(--p1-accent); overflow: hidden; }
.p1gac .p1gac-progress i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: translateX(-100%);
  animation: p1gac-sweep 1.6s ease-in-out infinite;
}
.p1gac .p1gac-fact { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--p1-surface); }
.p1gac .p1gac-fact-label { display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--p1-link); }
.p1gac .p1gac-fact .p1gac-fact-text { margin: 0; min-height: 3.2em; font-size: 15px; line-height: 1.6; color: var(--p1-text-2); transition: opacity .3s ease; }
.p1gac .p1gac-fact .p1gac-fact-text.is-fading { opacity: 0; }

/* Popup */
.p1gac-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 10, 10, .62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: p1gac-fade .25s ease both;
}
.p1gac-modal .p1gac-box {
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 28px 26px 22px;
  background: var(--p1-surface-2);
  border: 1px solid var(--p1-line);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
  animation: p1gac-pop .3s cubic-bezier(.2, .7, .2, 1) both;
  text-align: left;
}
.p1gac-modal .p1gac-box-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.p1gac-modal .p1gac-box-domain { font-size: 14px; font-weight: 500; color: var(--p1-muted); overflow-wrap: anywhere; }
.p1gac-modal .p1gac-box-title { margin: 0 0 8px; padding: 0; font-size: 22px; font-weight: 600; line-height: 1.3; color: var(--p1-text); text-transform: none; letter-spacing: -.01em; }
.p1gac-modal .p1gac-box-text { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: var(--p1-muted); }
.p1gac-modal .p1gac-field {
  display: block;
  width: 100%;
  height: 50px;
  margin: 0 0 10px;
  padding: 0 16px;
  background: var(--p1-surface);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 12px;
  font-size: 16px;
  color: var(--p1-text);
  cursor: text;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.p1gac-modal .p1gac-field::placeholder { color: var(--p1-muted-2); opacity: 1; }

.p1gac-modal .p1gac-check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 18px; font-size: 13.5px; line-height: 1.5; color: var(--p1-muted); cursor: pointer; }
.p1gac-modal .p1gac-check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid #6b6b6b;
  border-radius: 5px;
  background: transparent center / 12px no-repeat;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.p1gac-modal .p1gac-check input:checked {
  background-color: var(--p1-accent);
  border-color: var(--p1-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.p1gac-modal .p1gac-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  border-radius: 12px;
  background: var(--p1-accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease, transform .1s ease;
}
.p1gac-modal .p1gac-submit:hover { background: var(--p1-accent-hover); }
.p1gac-modal .p1gac-submit:active { transform: translateY(1px); }
.p1gac-modal .p1gac-submit:disabled { opacity: .6; cursor: default; }
.p1gac-modal .p1gac-error { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(242, 107, 91, .12); color: #ffb8ad; font-size: 14px; line-height: 1.5; }
.p1gac-modal .p1gac-legal { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--p1-muted-2); }
.p1gac-modal .p1gac-legal a { color: var(--p1-link); text-decoration: underline; text-underline-offset: 2px; }
.p1gac-modal .p1gac-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
html.p1gac-noscroll { overflow: hidden; }

/* Animationen */
@keyframes p1gac-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes p1gac-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes p1gac-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes p1gac-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.92); } }
@keyframes p1gac-sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes p1gac-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Tablet */
@media (max-width: 900px) {
  .p1gac .p1gac-body { padding: 44px 24px 36px; }
}

/* Smartphone */
@media (max-width: 640px) {
  .p1gac { border-radius: 16px; }
  .p1gac .p1gac-header { padding: 14px 16px; gap: 10px; }
  .p1gac .p1gac-logo { height: 20px; }
  .p1gac .p1gac-gpt-logo { height: 18px; }
  .p1gac .p1gac-divider { height: 18px; }
  .p1gac .p1gac-header-title { font-size: 13.5px; }
  .p1gac .p1gac-body { padding: 32px 16px 28px; }
  .p1gac .p1gac-intro { margin-bottom: 30px; }
  .p1gac .p1gac-title { font-size: 26px; }
  .p1gac .p1gac-subtitle { font-size: 15.5px; }
  .p1gac .p1gac-msg { gap: 12px; }
  .p1gac-avatar { width: 30px; height: 30px; font-size: 17px; border-radius: 8px; }
  .p1gac .p1gac-bubble { font-size: 15.5px; padding-top: 3px; }
  .p1gac .p1gac-msg--user .p1gac-bubble { max-width: 88%; padding: 9px 16px; }
  .p1gac .p1gac-form { margin: 24px 0 0; }
  .p1gac .p1gac-label { font-size: 17px; }
  .p1gac .p1gac-composer { padding: 6px 6px 6px 18px; }
  .p1gac .p1gac-note { margin-left: 18px; }
  .p1gac .p1gac-res { padding: 18px 16px; margin-left: -42px; }
  .p1gac .p1gac-res-top { display: grid; grid-template-columns: 92px 1fr; gap: 14px 16px; align-items: center; }
  .p1gac .p1gac-res-txt { display: contents; }
  .p1gac .p1gac-fazit { grid-column: 1 / -1; }
  .p1gac .p1gac-res-ring { width: 92px; height: 92px; }
  .p1gac.p1gac a.p1gac-cta-btn { display: flex; width: 100%; padding: 0 18px; gap: 10px; font-size: 15.5px; }
  .p1gac .p1gac-cta { margin-left: -42px; }
  .p1gac .p1gac-fact .p1gac-fact-text { min-height: 4.8em; }
  .p1gac .p1gac-verdict { font-size: 17px !important; }
  .p1gac-modal .p1gac-box { padding: 24px 18px 18px; border-radius: 18px; }
  .p1gac-modal .p1gac-box-title { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .p1gac *, .p1gac-modal, .p1gac-modal * { animation: none !important; transition: none !important; }
  .p1gac .p1gac-shimmer { color: var(--p1-muted); background: none; }
}
