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

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

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

:root {
  --window-frame-top-border: 30px;
  --window-frame-border: 10px;
  --window-border-radius: 10px;
  --button-background: dodgerblue;
  --button-color: white;
  --font-color: #262626;
  --k: #f8f8f8;
  --m: #fb3196;
  --m-soft: #F9E0F8;
  --c1: #DF19D9;
  --c2: #e8000b;
  --c3: #FF7300;
  --ink: #000;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --paper: #fff;
  --bg: #f0f0ee;
  --beige: #faf8f4;
  --sans: 'obs', sans-serif;
  --mono: 'obs', monospace;
}

body {
  padding: 0;
  margin: 0;
  font-family: 'obs', sans-serif;
  font-size: 15px;
  background-image: url('../gfx/wallpaper.webp');
  background-repeat: no-repeat;
  background-color: rgba(255, 255, 255, 0.1);
  background-blend-mode: lighten;
  background-size: cover;
  background-attachment: fixed;
  background-position: left top;
  font-weight: 200;
  color: var(--font-color);
}

body.bye {
  background-image: url('../gfx/wallpaper-bye.webp');
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

h1 {
  font-size: 1.3rem;
}

h1.bye {
  font-size: 11.3rem;
  display: block;
  text-align: center;
  font-family: monospace;
  font-weight: bold;
  letter-spacing: -25px;
  background: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.85);
  padding-bottom: 30px;
  font-style: italic;
  transition: letter-spacing 1.6s;
}

h1.bye:hover {
  letter-spacing: 0px;
}

h2 {
  font-size: 1.1rem;
}

h2.form {
  margin-top: 3rem;
}

h2.inline {
  display: inline;
}

h3.toc {
  color: rgb(251, 49, 150);
  margin: 0px 0px 20px 15px;
}

b,
strong {
  font-weight: 600;
}

p {
  line-height: 1.5rem;
}

.bold {
  font-weight: 600;
}

.black {
  color: #000;
}

.nowrap {
  white-space: nowrap;
}

.wrap {
  white-space: normal;
}

.hide {
  display: none;
}

a {
  color: #2d2f27;
  text-decoration: none;
  font-weight: 600;
}

a.odd {
  color: #fb3196;
  text-decoration: none;
  font-weight: 200;
}

a.dark {
  color: #ff88c3;
  text-decoration: none;
  font-weight: 200;
}

ul {
  margin: 10px 10px;
  padding: 0;
}

li {
  margin-bottom: 10px;
  margin-left: 10px;
}

ul.text li {
  margin-left: 10px;
  padding: 5px;
  border-radius: 4px;
  list-style: disc;
  line-height: 1.2rem;
}

img.icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

img.logo {
  height: 15px;
  float: left;
  margin: 12px;
}

.svgicon {
  width: 30px;
  height: 30px;
  vertical-align: middle;
}

/* ==== WINDOWS ==== */

.window-container {
  position: absolute;
  top: 100px;
  right: 0px;
  left: 200px;
  z-index: 2;
  height: 0;
  text-align: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .6s;
}

.window-container-active {
  visibility: visible;
  opacity: 1;
  position: fixed;
  transition: opacity .6s;
  width: 80%;
  height: 80%;
}

.window-frame {
  display: inline-block;
  position: relative;
  text-align: left;
  border-radius: var(--window-border-radius);
  background: rgba(246, 246, 246, 1);
  width: 100%;
  height: 100%;
  box-shadow: 5px 5px 30px 2px #000;
}

.window-drag {
  height: var(--window-frame-top-border);
  background: linear-gradient(180deg, rgba(38, 38, 38, 1) 0%, rgba(38, 38, 38, 1) 100%);
  border-bottom: #000 1px solid;
  width: 100%;
  cursor: all-scroll;
  border-top-left-radius: var(--window-border-radius);
  border-top-right-radius: var(--window-border-radius);
}

.n-window-resize {
  height: var(--window-frame-border);
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  cursor: n-resize;
  border-bottom-left-radius: var(--window-border-radius);
  border-bottom-right-radius: var(--window-border-radius);
}

.w-window-resize {
  width: var(--window-frame-border);
  height: 100%;
  position: absolute;
  right: -10px;
  cursor: w-resize;
  border-top-right-radius: var(--window-border-radius);
  border-bottom-right-radius: var(--window-border-radius);
}

.w-window-resize-left {
  width: var(--window-frame-border);
  height: 100%;
  position: absolute;
  left: 0;
  z-index: 2;
  cursor: w-resize;
  border-top-right-radius: var(--window-border-radius);
  border-bottom-right-radius: var(--window-border-radius);
}

.a-window-resize {
  width: var(--window-frame-border);
  height: var(--window-frame-border);
  position: absolute;
  right: 0;
  bottom: 0;
  cursor: nw-resize;
  border-bottom-right-radius: var(--window-border-radius);
}

.window-close {
  position: absolute;
  top: 0px;
  right: 10px;
  width: var(--window-frame-top-border);
  height: var(--window-frame-top-border);
  text-align: center;
  background: url('../gfx/window-close.svg') no-repeat center;
  background-size: 15px 15px;
  cursor: no-drop;
  display: inline;
}

.window-max {
  position: absolute;
  top: 0px;
  right: 35px;
  width: var(--window-frame-top-border);
  height: var(--window-frame-top-border);
  text-align: center;
  background: url('../gfx/window-maximize.svg') no-repeat center;
  background-size: 15px 15px;
  cursor: zoom-in;
  display: inline;
}

.window-min {
  position: absolute;
  top: 0px;
  right: 35px;
  width: var(--window-frame-top-border);
  height: var(--window-frame-top-border);
  text-align: center;
  background: url('../gfx/window-minimize.svg') no-repeat center;
  background-size: 15px 15px;
  cursor: zoom-out;
  display: none;
}

.window-right {
  position: absolute;
  top: 0px;
  right: 55px;
  width: var(--window-frame-top-border);
  height: var(--window-frame-top-border);
  text-align: center;
  background: url('../gfx/window-right-small.svg') no-repeat center;
  background-size: 20px 20px;
  cursor: col-resize;
  display: inline;
}

.window-left {
  position: absolute;
  top: 0px;
  right: 75px;
  width: var(--window-frame-top-border);
  height: var(--window-frame-top-border);
  text-align: center;
  background: url('../gfx/window-left-small.svg') no-repeat center;
  background-size: 20px 20px;
  cursor: col-resize;
  display: inline;
}

.window-contract {
  position: absolute;
  top: 0px;
  right: 95px;
  width: var(--window-frame-top-border);
  height: var(--window-frame-top-border);
  text-align: center;
  background: url('../gfx/window-contract.svg') no-repeat center;
  background-size: 20px 20px;
  cursor: pointer;
  display: inline;
}

.window-content {
  padding: 0;
  height: 100%;
}

.window-overflow {
  overflow: hidden;
  position: absolute;
  top: 30px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  border-bottom-right-radius: var(--window-border-radius);
  border-bottom-left-radius: var(--window-border-radius);
  overflow-y: auto;
}

.windowloader {
  display: block;
  margin: 100px auto;
  width: 200px;
}

.forceclose {
  cursor: no-drop;
}

div[data-reload-window] {
  cursor: pointer;
  display: block;
  margin: 40px 50px;
}

.small-window .window-frame {
  background: rgba(33, 33, 33, 0.95);
  color: #fff;
  text-align: center;
}

.small-window .ipt {
  min-width: 300px;
  max-width: 300px;
}

/* Scrollbar */

::-webkit-scrollbar {
  width: 7.5px;
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 2px #c0c0c0;
  border-radius: 0px;
}

::-webkit-scrollbar-thumb {
  background: rgb(251, 49, 150);
  border-radius: 0px;
  cursor: grab;
}

/* ==== DESKTOP ICONS ==== */

.desktop-icon {
  width: 80px;
  height: 80px;
  position: absolute;
  left: 150px;
  top: 150px;
  text-align: center;
  padding: 10px;
  border: 1px solid transparent;
  color: #fff;
  text-shadow: 1px 1px 2px #171717;
  letter-spacing: .5px;
  font-size: 12px;
}

.icontrans {
  transition: top .3s ease-in-out, left .3s ease-in-out;
}

.desktop-icon img {
  width: 50px;
}

.desktop-icon span {
  display: block;
}

.desktop-icon:hover {
  display: inline-block;
  border-radius: var(--window-border-radius);
  background: rgba(255, 255, 255, 0.25);
  padding: 10px;
  border: 1px solid #f8f8f8;
  cursor: pointer;
}

/* ==== POSITIONING ==== */

.left {
  text-align: left;
}

.right {
  text-align: right;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.justify {
  text-align: justify;
}

/* ==== GRID SYSTEM ==== */

.grid_1_5 {
  display: grid;
  grid-template-columns: 200px 5fr;
  grid-template-rows: 1fr;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  height: inherit;
}

.grid_1_5_1 {
  display: grid;
  grid-template-columns: 200px 5fr 200px;
  grid-template-rows: 1fr;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
}

.grid_2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  grid-column-gap: 10px;
  grid-row-gap: 0px;
}

.grid_0 {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
}

.row {
  grid-row: 1;
  margin: 1rem 0;
}

aside.toc {
  background: #262626;
  border-right: 1px solid #b8b8b8;
}

div.toc_fixed {
  position: fixed;
  width: 200px;
}

ul.toc {
  top: 25px;
  padding: 0rem;
  margin: .65rem;
}

ul.toc li {
  list-style: none;
  color: #c9c9c9;
}

ul.toc li a {
  font-size: .9rem;
  padding: .5rem;
  display: block;
  color: #c9c9c9;
  font-weight: 200;
}

ul.toc li a:hover {
  background: #373737;
  border-radius: var(--window-border-radius);
}

.toc-active,
.watch-me-active {
  background: #373737;
  border-radius: var(--window-border-radius);
}

aside.spac {
  background: #d8d8d8;
  border-left: 1px solid #b8b8b8;
  padding: 1rem;
}

main.content {
  padding: 1rem;
}

/* ==== MENU ==== */

nav {
  font-size: 12px;
  padding: 0;
  margin: 0;
  background: #f5f2ec;
  height: 40px;
  border-bottom: 1px solid #9ea096;
}

nav ul {
  padding: 0;
  margin: 0;
  line-height: 1rem;
  width: 98%;
}

nav ul li {
  float: left;
  list-style: none;
  margin: 5px 10px;
  padding: 6px;
  position: relative;
  text-transform: uppercase;
}

nav ul img.user {
  height: 20px;
  padding: 5px;
  border: 1px solid #b8b8b8;
  border-radius: var(--window-border-radius);
  background: rgba(255, 255, 255, 0.35);
}

nav ul img.user:hover {
  background: rgba(255, 255, 255, 1);
}

nav ul li:last-child > ul.submenu {
  left: -150px;
}

nav ul li:last-child {
  float: right;
}

nav ul li.user {
  float: right;
  margin: 0;
  padding: 3px 2px 3px 3px;
}

/* ==== SUBMENU ==== */

ul.submenu {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 5;
  top: 35px;
  width: 180px;
  padding: .25rem;
  border-radius: var(--window-border-radius);
}

ul.submenu li {
  float: none;
  list-style: none;
  padding: 0px;
  position: relative;
  text-transform: uppercase;
  margin: 0;
}

ul.submenu li:last-child {
  float: none;
}

ul.submenu li:hover > ul.submenu {
  display: block;
  z-index: 5;
}

ul.submenu img {
  height: 20px;
  margin-left: 10px;
  vertical-align: middle;
}

ul.submenu span {
  vertical-align: middle;
  margin-left: 10px;
  display: inline-block;
  text-transform: capitalize;
  font-weight: 600;
  color: #565656;
}

ul.submenu a {
  line-height: .5rem;
  display: block;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 5px 0;
  border: 1px solid transparent;
}

ul.submenu span:hover ul.submenu a:hover {
  text-decoration: none;
}

ul.submenu a:hover {
  background: #d8d8d8;
  border: 1px solid #aaaaaa;
  border-radius: var(--window-border-radius);
}

ul.submenu a[onclick] {
  cursor: url('../gfx/icon-wand.webp'), auto;
}

#contextmenu {
  position: absolute;
  padding: .25rem;
  border-radius: var(--window-border-radius);
  z-index: 100;
  display: none;
  font-size: 12px;
}

#contextmenu > .submenu {
  display: block;
  top: 0px;
  width: 180px;
  list-style: none;
}

/* ==== SCREENSAVER ==== */

#screensaver {
  display: none;
  width: 100%;
  height: 100%;
  background: #000;
  position: absolute;
  z-index: 9999;
  top: 0;
}

#screensaver img {
  width: 200px;
  display: block;
  position: absolute;
  animation: moveX 5s linear 0s infinite alternate, moveY 6.3s linear 0s infinite alternate;
}

/* Animation keyframes */

@keyframes moveX {
  from {
    left: 0;
  }
  to {
    left: calc(100% - 200px);
  }
}

@keyframes moveY {
  from {
    top: calc(100% - 54px);
  }
  to {
    top: 0;
  }
}

/* ==== TABLES ==== */

table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

table.dataTable thead th,
table.dataTable tfoot th {
  font-weight: 600;
}

table.dataTable > tbody > tr:nth-child(even) {
  background-color: #f8f8f8;
}

div.tablewrapper {
  display: block;
  width: 100%;
  overflow-x: auto;
}

table.result {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  display: inline-table;
}

table.result thead td,
table.result th {
  text-align: left;
  padding: 10px;
  font-size: .8rem;
  border: 1px solid #c0c0c0;
  font-weight: 600;
  background-color: #e4e4e4;
}

table.result tr {
  background-color: #fff;
}

table.result td {
  text-align: left;
  padding: 7px;
  border: 1px solid #c0c0c0;
  font-size: .8rem;
}

table.result a {
  font-weight: 600;
  color: #f30884;
}

table.result td.keyword {
  font-size: .9rem;
}

table.result td.rank {
  text-align: center;
  font-size: .9rem;
}

table.result td.center {
  text-align: center;
}

table.info {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  display: inline-table;
}

table.info td {
  padding: 10px;
  font-size: .8rem;
  border: 1px solid #c0c0c0;
  background-color: #fff;
}

/* ==== FORMS & INPUTS ==== */

form {
  margin: 0;
}

label small {
  display: inline-block;
  padding-left: 10px;
}

input.ipt,
textarea,
select {
  box-sizing: content-box;
  font-family: monospace;
  min-width: 400px;
  padding: 5px;
  margin: 0;
  border: 1px solid #AAA;
  border-radius: 2px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
  color: #555;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #fff;
}

td input[type="text"] {
  width: 150px;
  min-width: 150px;
  max-width: 150px;
  box-sizing: content-box;
  font-family: monospace;
  padding: 5px;
  margin: 0;
  border: 1px solid #AAA;
  border-radius: 2px;
  color: #555;
  background: #fff;
}

div.dt-container .dt-search input {
  padding: 5px;
  margin: 0;
  border: 1px solid #AAA;
  border-radius: 2px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
  font-family: monospace;
  background: #fff;
  margin-left: 10px;
}

input[readonly],
textarea[readonly] {
  background: #efe9dc;
  border: 1px solid #b8b8b8;
  color: #676767;
  cursor: not-allowed;
}

textarea {
  min-height: 90px;
}

textarea.large {
  min-height: 300px;
}

.searchvolume_keywords {
  min-width: 400px;
  min-height: 200px;
}
button.cta,
input.cta {
  color: #fff;
  background: linear-gradient(270deg, #ff233d, #f30884);
  border-radius: var(--window-border-radius);
  font-size: 1rem;
  border: 0;
  text-align: center;
  padding: 10px 15px;
  text-decoration: none;
  font-weight: 600;
  font-family: monospace;
}

button.cancel,
input.cancel {
  color: #fff;
  background: #9e9e9e;
  border-radius: var(--window-border-radius);
  font-size: 1rem;
  border: 0;
  text-align: center;
  padding: 10px 15px;
  text-decoration: none;
  font-weight: 600;
  font-family: monospace;
}

.cta {
  color: #f30884;
  border: 0;
  text-decoration: none;
}

/* ==== MESSAGES, STATUS & DOWNLOADS ==== */

img.loginrequired {
  display: block;
  margin: 0 auto;
  background: none;
  border: 0;
  width: 200px;
}

.loginrequired {
  margin: 0;
  padding: 15px;
  border: 1px solid;
  background: #fb3196;
  color: #fff;
  text-align: center;
}

div.superheader {
  margin: 0px 0px 10px 0px;
  padding: 10px 0;
  border-bottom: 3px #fb3196 double;
  color: #f30884;
}

div.superspacer {
  margin: 35px 0px 10px 0;
  padding: 15px;
  border: 1px solid;
  background: #fb3196;
  color: #fff;
  border-radius: var(--window-border-radius);
}

.success-msg {
  color: #fff;
  background: green;
  border-radius: var(--window-border-radius);
  font-size: .8rem;
  border: 0;
  text-align: center;
  padding: 10px 15px;
  text-decoration: none;
  font-weight: 600;
  font-family: monospace;
  display: block;
}

.success-msg a {
  color: #fff;
  text-decoration: none;
}

.error-msg {
  color: #fff;
  background: red;
  border-radius: var(--window-border-radius);
  font-size: .8rem;
  border: 0;
  text-align: center;
  padding: 10px 15px;
  text-decoration: none;
  font-weight: 600;
  font-family: monospace;
  display: block;
}

.error-msg a {
  color: #fff;
  text-decoration: none;
}

span.xhrinfo {
  display: none;
  width: 400px;
  color: #000;
  border: 1px solid red;
  border-radius: var(--window-border-radius);
  font-size: 1rem;
  padding: 10px 15px;
  text-decoration: none;
  font-weight: 600;
  font-family: monospace;
  margin-top: 10px;
  background: #fff0f4;
}

span.csvxls {
  float: right;
  margin: 4px;
  font-size: .8rem;
}

span.docdownload,
span.docdownload2,
span.docdownload3,
span.pdfdownload,
span.pdfdownload2,
span.pdfdownload3,
span.pdfdownload4,
span.csvxls a,
span.download,
span.copy-to-clipboard {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

/* ==== DETAILS & LLM CONTENT ==== */

details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 5px 0 10px 0;
  overflow: hidden;
}

summary strong {
  display: inline-block;
  cursor: help;
}

details div.content {
  padding: 20px;
}

div.llmplain {
  background: #fff;
  border: 1px solid #c0c0c0;
  padding: 20px;
}

div.llmplain table {
  border-collapse: collapse;
  width: 100%;
}

div.llmplain table th {
  padding: 10px;
  font-size: .8rem;
  border: 1px solid #c0c0c0;
  font-weight: 600;
  background-color: #e4e4e4;
}

div.llmplain table tr {
  background-color: #fff;
}

div.llmplain table td {
  text-align: left;
  padding: 7px;
  border: 1px solid #c0c0c0;
  font-size: .8rem;
}

div.llmplain table a {
  font-weight: 600;
  color: #f30884;
  text-decoration: underline;
}

div.llmplain ol li,
div.llmplain ul li {
  padding: 3px;
  margin-left: 10px;
}

/* ==== PROGRESS & ANIMATIONS ==== */

div.progress {
  width: 250px;
  border: 2px solid #f308844a;
  background: #fff;
  padding: 10px;
  border-radius: var(--window-border-radius);
  box-shadow: 0px 0px 1px 1px #0000001a;
  animation: pulse-animation 3s infinite;
}

@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0px rgba(243, 8, 132, 0.5);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(243, 8, 132, 0);
  }
}

div.progress small {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: #f30884;
  margin-top: 5px;
  text-align: center;
}

img.progress {
  width: 60px;
  height: 60px;
  margin: -15px auto;
  display: block;
}

img.progress-small {
  width: 40px;
  height: 40px;
  margin: -13px auto;
}

/* ==== ACTIONS & TAGS ==== */

small.navbutton {
  display: block;
  float: right;
  padding: 10px;
  background: rgb(251, 49, 150);
  border-radius: 10px;
  font-family: monospace;
}

small.navbutton a {
  color: #ffffff;
  text-decoration: none;
}

[data-delete] {
  cursor: pointer;
  color: #f30884;
}

/* ==== BADGES, PILLS & CARDS ==== */

span.badge {
  display: inline-block;
  padding: 10px 15px;
  border-radius: 5px;
  background-color: #ffabd8;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 5px;
}

span.badge.active {
  background-color: #f30884;
}

.pill {
  font-weight: 600;
  letter-spacing: .04em;
  padding: 3px 9px;
  font-size: 11px;
  border-radius: 4px;
  display: inline-block;
  text-transform: uppercase;
}

.p-must {
  background: #fb3196;
  color: #fff;
}

.p-rec {
  background: #e8000b;
  color: #fff;
}

.p-opt {
  background: #ff7300;
  color: #fff;
}

.s-nein {
  background: #262626;
  color: #fff;
}

.s-teilweise {
  background: #ff0000;
  color: #fff;
}

.s-ja {
  background: #e4e4e4;
  color: #262626;
  border: 1px solid #c0c0c0;
}

.meta-card {
  background: #fff;
  color: #000;
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 16px;
}

.meta-h1 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 18px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 9px;
  overflow: hidden;
}

.meta-cell {
  background: #e4e4e4;
  padding: 10px 13px;
}

.meta-cell.full {
  grid-column: 1/-1;
}

.meta-cell .l {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ff0000;
  margin-bottom: 3px;
}

.meta-cell .v {
  font-size: 13px;
  font-weight: 600;
  color: #000;
  word-break: break-word;
}

.meta-cell .v a {
  color: #000;
  text-decoration: none;
}

/* ==== EDITABLE CONTENT & LEGENDS ==== */

[contenteditable="true"] {
  transition: background 0.2s, outline 0.2s;
  border-radius: 4px;
  padding: 2px 4px;
}

[contenteditable="true"]:hover {
  outline: 1px dashed #ccc;
  background: #ffc7e3;
}

[contenteditable="true"]:focus {
  outline: 1px dashed #fb3196;
  background: #ffc7e3;
}

.legend {
  background: #fff;
  border-radius: var(--window-border-radius);
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.05);
}

.legend .leg-title {
  font: 600 12px / 1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
  border-bottom: 2px solid #fb3196;
  padding-bottom: 4px;
  display: inline-block;
}

.legend p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.legend .leg-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-bottom: 22px;
  align-items: center;
}

.legend .leg-label {
  font: 600 11px/1 var(--mono);
  text-transform: uppercase;
  color: var(--ink);
  width: 100px;
  flex-shrink: 0;
}

.legend .leg-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.legend .leg-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

/* ==== CONTENT BRIEFING BLOCKS ==== */

.block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

.block.lvl1 .bhead {
  background: var(--k);
}

.block.lvl1 .htitle {
  color: #000000;
  font-size: 17px;
}

.block.lvl1 .htag {
  background: var(--m);
}

.block.lvl2 .htag {
  background: var(--ink);
}

.block.lvl3 {
  margin-left: 28px;
  border-left: 3px solid var(--line);
}

.block.lvl3 .htag {
  background: #888;
}

.bhead {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: #fafafa;
  flex-wrap: wrap;
}

.htag {
  flex: 0 0 auto;
  font: 800 12px/1 var(--sans);
  color: #fff;
  border-radius: 5px;
  padding: 5px 7px;
  margin-top: 3px;
  letter-spacing: .06em;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.htag:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}

/* Delete Block button */
.delete-block-btn {
  margin-left: auto;
  cursor: pointer;
  color: #ccc;
  font-size: 24px;
  line-height: 1;
  padding: 0 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
  user-select: none;
}

.delete-block-btn:hover {
  color: #fff;
  background: var(--m);
}

/* Add Block button */
.add-block-container {
  display: flex;
  justify-content: center;
  margin: 20px 0 30px;
}

.add-block-btn {
  background: transparent;
  color: var(--m);
  border: 2px dashed var(--m);
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.add-block-btn:hover {
  background: var(--m);
  color: #fff;
  border-style: solid;
  box-shadow: 0 4px 12px rgba(255, 35, 61, 0.25);
}

.htitle {
  flex: 1 1 50%;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 2px;
  align-items: center;
}

.fields {
  padding: 2px 16px 14px;
}

.f {
  padding: 9px 0;
  border-bottom: 1px dashed #ebebeb;
}

.f:last-child {
  border-bottom: 0;
}

.fl {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ws-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: #ebebeb;
  border: 1px solid #ebebeb;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 4px;
}

.ws-cell {
  background: #fcfcfc;
  padding: 9px 11px;
}

.ws-l {
  font-size: 9px;
  font-weight: 700;
  color: #888;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ws-v {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.45;
}

.ws-hint {
  background: #fafafa;
  border: 1px dashed #d4d4d4;
  border-radius: 6px;
  padding: 11px 13px;
  margin-top: 4px;
  font-size: 13.5px;
  color: #888;
  line-height: 1.5;
  font-style: italic;
}

.row-dropped td:not(:last-child) {
  opacity: 0.5;
  text-decoration: line-through;
  text-decoration-color: #999;
}

.emp-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #ebebeb;
  border: 1px solid #ebebeb;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 4px;
}

.emp-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0;
  background: #fcfcfc;
}

.emp-l {
  font-size: 10px;
  font-weight: 600;
  color: var(--m);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 11px 12px;
  background: #f8f8f8;
  border-right: 1px solid #ebebeb;
  display: flex;
  align-items: flex-start;
}

.emp-v {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.45;
  padding: 11px 13px;
}

.depth-s {
  font: 700 10px/1 var(--sans);
  color: var(--c2);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.depth-m {
  font: 700 10px/1 var(--sans);
  color: var(--c3);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.depth-d {
  font: 700 10px/1 var(--sans);
  color: #1a9a1a;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.faq-wrap {
  color: var(--ink);
}

.faqtab {
  width: 100%;
  border-collapse: collapse;
}

.faqtab th {
  text-align: left;
  font: 600 12px/1 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #888;
  border-bottom: 2px solid var(--line);
  padding: 8px 8px 6px;
  background: #fafafa;
}

.faqtab td {
  font-size: 13px;
  vertical-align: top;
  border-bottom: 1px solid #f0f0f0;
  padding: 9px 8px;
  line-height: 1.4;
}

.faqtab td:first-child {
  font-weight: 600;
  color: var(--ink);
  width: 50%;
}

.faqtab .qgrund {
  font-size: 13px;
  color: #555;
}

/* ==== DETAILS WRAP ==== */

.details-wrap {
  margin-top: 24px;
  color: var(--ink);
}

details summary {
  padding: 13px 16px;
  font: 600 15px/1 var(--sans);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  background: #fafafa;
  border-bottom: 1px solid transparent;
}

details[open] summary {
  border-bottom-color: var(--line);
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::before {
  content: '>';
  font-size: 10px;
  color: var(--m);
  transition: transform .2s;
  flex-shrink: 0;
}

details[open] summary::before {
  transform: rotate(90deg);
}

details summary .sum-kicker {
  font: 600 10px/1 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #999;
  margin-left: auto;
}

.atab {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.atab th {
  text-align: left;
  font: 600 12px/1 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #888;
  border-bottom: 2px solid var(--line);
  padding: 8px 10px;
  background: #fafafa;
  white-space: nowrap;
}

.atab td {
  padding: 8px 10px;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: top;
  line-height: 1.4;
}

.atab tr:last-child td {
  border-bottom: 0;
}

.atab td:first-child {
  font-weight: 600;
  color: var(--ink);
}

/* ==== WETTBEWERBERANALYSE ==== */

.wa-wrap {
  padding: 14px 16px;
  color: var(--ink);
}

.wa-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 14px;
  overflow: hidden;
}

.wa-card:last-child {
  margin-bottom: 0;
}

.wa-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: #fafafa;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.wa-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  flex: 1 1 auto;
}

.wa-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.wa-pill {
  font: 700 9px/1 var(--sans);
  letter-spacing: .04em;
  padding: 4px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-block;
}

.ewb-auf {
  background: #e0e0e0;
  color: #555;
}

.ewb-tief {
  background: #1a9a1a;
  color: #fff;
}

.ewb-prf {
  background: var(--c3);
  color: #fff;
}

.depth-s-pill {
  background: #fdecec;
  color: var(--c2);
}

.depth-m-pill {
  background: #fff0e0;
  color: var(--c3);
}

.depth-d-pill {
  background: #e3f5e3;
  color: #1a9a1a;
}

.wa-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.wa-meta-cell {
  background: #fff;
  padding: 10px 12px;
}

.wa-l {
  font-size: 9px;
  font-weight: 700;
  color: #999;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.wa-v {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.4;
}

.wa-tab {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.wa-tab th {
  text-align: left;
  font: 600 12px/1 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #888;
  border-bottom: 1px solid var(--line);
  padding: 8px 12px;
  background: #fafafa;
}

.wa-tab td {
  padding: 9px 12px;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: top;
  line-height: 1.4;
}

.wa-tab tr:last-child td {
  border-bottom: 0;
}

.wa-tab-url a {
  color: var(--m);
  text-decoration: none;
  font-weight: 600;
  font-size: 11.5px;
}

.wa-tab-url a:hover {
  text-decoration: underline;
}

/* ==== MULTISELECT UI ==== */

.cb-multiselect-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 12px;
  background: #ffffff;
  min-width: 450px;
  max-width: 650px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}

.cb-multiselect-container::-webkit-scrollbar {
  width: 6px;
}

.cb-multiselect-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.cb-multiselect-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.cb-multiselect-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.cb-option-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  cursor: pointer;
  background: #fafafa;
  transition: all 0.2s ease;
  user-select: none;
  box-sizing: border-box;
}

.cb-option-item:hover {
  border-color: dodgerblue;
  background: #f0f7ff;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(30, 144, 255, 0.15);
}

.cb-option-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 4px;
  margin-right: 12px;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  cursor: pointer;
  background: #fff;
  margin-top: 0;
  flex-shrink: 0;
}

.cb-option-item input[type="checkbox"]:checked {
  background-color: dodgerblue;
  border-color: dodgerblue;
}

.cb-option-item input[type="checkbox"]:checked::after {
  content: "✓";
  color: #fff;
  font-size: 13px;
  font-weight: bold;
}

.cb-option-item label {
  cursor: pointer;
  font-weight: 600;
  color: #262626;
  flex-grow: 1;
  font-family: inherit;
  font-size: 14px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cb-option-item.active {
  border-color: dodgerblue;
  background: #eff6ff;
}

.cb-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.cb-badge.system {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.cb-badge.custom {
  background-color: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}

.cb-badge.default {
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

/* ==== AI MONITOR ELEMENTS ==== */

div.chartbox {
  padding: 20px;
  background: #fff;
  border-radius: var(--window-border-radius);
  border: 1px solid #c0c0c0;
}

.compfound {
  background: #de121221;
}

.brandfound {
  background: #12de2421;
}

p.aioverview {
  border: 1px solid #c5c5c5;
  padding: 10px;
  background: #fff;
}

div.plusmention {
  position: relative;
  display: inline;
}

span.plusmention {
  display: inline-block;
  border: 1px solid #c0c0c0;
  background: #f8f8f8;
  padding: 0 2px;
  border-radius: 4px;
  font-size: .7rem;
  position: absolute;
  margin-left: 8px;
  margin-top: 5px;
  line-height: 20px;
}

.tags-input {
  display: inline-block;
  position: relative;
  padding: 5px;
  width: 150px;
}

.tags-input ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 150px;
}

.tags-input li {
  display: inline-block;
  background-color: #f2f2f2;
  color: #333;
  border-radius: 7px;
  padding: 3px 6px;
  margin-right: 3px;
  margin-bottom: 3px;
  font-size: 14px;
}

.tags-input li span,
.tags-input li button {
  white-space: nowrap;
}

.tags-input input[type="text"] {
  border: none;
  outline: none;
  padding: 5px;
  font-size: 14px;
  background: transparent;
}

.tags-input input[type="text"]:focus {
  outline: none;
}

.tags-input .delete-button {
  background-color: transparent;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 12px;
  line-height: 0;
  margin: 0;
  height: 0;
  padding: 4px;
}

.kwcomment {
  position: relative;
  width: 245px;
  display: inline-block;
  margin: 10px;
}

.kwcomment textarea {
  width: 210px;
  min-width: 210px;
  height: 60px;
  min-height: 60px;
}

.kwcomment img {
  width: 20px;
  height: 20px;
}

.kwcommentdelete {
  cursor: pointer;
  position: absolute;
  right: 0px;
  top: 0px;
}

.kwsaving,
.kwsaved {
  position: absolute;
  right: 0px;
  top: 22px;
  display: none;
}

/* ==== MOBILE RESPONSIVE ==== */

@media only screen and (max-width: 800px) {
  .grid_1_5,
  .grid_1_5_1,
  .grid_0,
  .grid_2 {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
  }

  .row {
    grid-row: 1;
    margin: 1rem 0;
  }

  input.ipt,
  textarea,
  select {
    min-width: 95%;
  }

  aside.toc {
    border: 0;
  }

  ul.toc {
    padding: 0rem;
    margin: .2rem 1.5rem 1rem 1rem;
  }

  div.toc_fixed {
    position: relative;
    width: 100%;
  }

  .window-frame,
  .w-window-resize,
  .w-window-resize-left,
  .window-drag,
  .window-overflow,
  .n-window-resize,
  .a-window-resize {
    box-shadow: none;
    border-radius: 0;
  }

  nav ul li {
    margin: 5px 5px;
  }

  nav ul li > ul.submenu {
    left: -75px;
  }

  .window-content {
    height: inherit;
  }

  main.content {
    padding-bottom: 3rem;
  }
}

@media (max-width: 680px) {
  .emp-row {
    grid-template-columns: 1fr;
  }

  .emp-l {
    border-right: 0;
    border-bottom: 1px solid #ebebeb;
    padding-bottom: 4px;
  }

  .emp-v {
    padding-top: 6px;
  }
}

/* TF-IDF Keyphrase Tags styling */
.tfidf-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0 25px 0;
}
.tfidf-tag {
  display: flex;
  align-items: center;
  background: #f5f5f7;
  border: 1px solid #b3b3b3;
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 13px;
  color: #333;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}
.tfidf-tag:hover {
  background: #ebebeb;
  border-color: #999;
}
.tfidf-tag.active {
  background: var(--button-background, #1a73e8);
  color: #fff;
  border-color: var(--button-background, #1a73e8);
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.25);
}
.tfidf-tag input[type="checkbox"] {
  display: none;
}

.block-type-toggle-btn:hover {
  background: var(--button-background, #1a73e8);
  color: #fff !important;
}
