/* Cookie-Einwilligung. Steht über den mobilen Bewerbungsleisten (z-index 70/90),
   aber nur, bis eine Entscheidung gefallen ist. */

.pcn-cb[hidden], .pcn-cb [hidden] { display: none !important; }

.pcn-cb {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  padding: 0 1rem calc(1rem + env(safe-area-inset-bottom));
  pointer-events: none;
}
.pcn-cb__box {
  position: relative; pointer-events: auto;
  width: min(760px, 100%); margin-inline: auto; max-height: calc(100vh - 2rem); overflow-y: auto;
  background: var(--bg-3, #1c1c24); color: var(--text, #f2f0ee);
  border: 1px solid var(--line, #2a2a34); border-radius: var(--radius, 14px);
  box-shadow: var(--schatten, 0 18px 50px rgba(0, 0, 0, .45));
  padding: 1.3rem 1.5rem 1.2rem; font-size: .95rem; line-height: 1.55;
}
.pcn-cb__box:focus { outline: none; }
.pcn-cb__box:focus-visible { outline: 2px solid var(--akzent-hell, #e0a95f); outline-offset: 3px; }

.pcn-cb__titel {
  font-family: var(--display, Georgia, serif); font-weight: 700; font-size: 1.2rem;
  margin: 0 2rem .45rem 0; color: var(--text, #f2f0ee);
}
.pcn-cb__text { margin: 0 0 1rem; color: var(--text-2, #b4b0ac); }
.pcn-cb__text a { color: var(--akzent-hell, #e0a95f); text-decoration: underline; text-underline-offset: 2px; }

.pcn-cb__einst { border-top: 1px solid var(--line, #2a2a34); margin: 0 0 1rem; padding-top: .9rem; display: grid; gap: .8rem; }
.pcn-cb__kat p { margin: .2rem 0 0 1.9rem; color: var(--text-2, #b4b0ac); font-size: .88rem; }
.pcn-cb__schalter { display: flex; align-items: center; gap: .6rem; font-weight: 600; cursor: pointer; }
.pcn-cb__schalter small { font-weight: 400; color: var(--text-3, #86827e); margin-left: .4rem; }
.pcn-cb__schalter input { width: 1.25rem; height: 1.25rem; accent-color: var(--akzent, #c9873f); margin: 0; flex: none; }
.pcn-cb__schalter input:disabled { opacity: .7; }

.pcn-cb__knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
/* Beide Entscheidungen sehen gleich aus und wiegen gleich – kein Dark Pattern. */
.pcn-cb__knopf {
  flex: 1 1 11rem; min-height: 2.9rem; padding: .7rem 1.2rem; border-radius: 100px;
  font: 600 .95rem/1.2 var(--schrift, sans-serif); cursor: pointer;
  background: var(--text, #f2f0ee); color: #16100a; border: 1px solid var(--text, #f2f0ee);
  transition: background .18s, border-color .18s;
}
.pcn-cb__knopf:hover { background: #fff; border-color: #fff; }
.pcn-cb__mehr {
  flex: 0 0 auto; min-height: 2.9rem; padding: .7rem .6rem; background: none; border: 0; cursor: pointer;
  font: 500 .92rem/1.2 var(--schrift, sans-serif); color: var(--text-2, #b4b0ac);
  text-decoration: underline; text-underline-offset: 3px;
}
.pcn-cb__mehr:hover { color: var(--akzent-hell, #e0a95f); }
.pcn-cb__zu {
  position: absolute; top: .55rem; right: .6rem; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: none; border: 0; color: var(--text-2, #b4b0ac); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.pcn-cb__zu:hover { color: var(--text, #f2f0ee); background: rgba(255, 255, 255, .06); }
.pcn-cb button:focus-visible, .pcn-cb a:focus-visible, .pcn-cb input:focus-visible, .pcn-cb-oeffnen:focus-visible {
  outline: 2px solid var(--akzent-hell, #e0a95f); outline-offset: 2px;
}

.pcn-cb-oeffnen {
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left;
  font: inherit; color: var(--text-2, #b4b0ac);
}
.pcn-cb-oeffnen:hover { color: var(--akzent-hell, #e0a95f); }

.pcn-cb-status {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (max-width: 760px) {
  .pcn-cb { padding: 0 0 0; }
  .pcn-cb__box {
    border-radius: var(--radius, 14px) var(--radius, 14px) 0 0; border-bottom: 0;
    max-height: 82vh; padding: 1.1rem 1.1rem calc(1rem + env(safe-area-inset-bottom)); font-size: .9rem;
  }
  .pcn-cb__titel { font-size: 1.08rem; }
  .pcn-cb__text { margin-bottom: .85rem; }
  .pcn-cb__knopf { flex: 1 1 40%; padding: .65rem .8rem; font-size: .9rem; }
  .pcn-cb__mehr { flex-basis: 100%; min-height: 2.4rem; padding: .3rem; }
}

@media print { .pcn-cb { display: none !important; } }

/* App-Statistik: nur in der App */
.pcn-cb__kat--app { display: none; }
html.pcn-in-app .pcn-cb__kat--app { display: block; }
