/* Ergaenzungen fuer die aus Onepage uebernommenen Seiten von janphilipberg.com */
:root { --op-orange: #ff9900; }
body { font-family: 'Manrope', -apple-system, system-ui, 'Segoe UI', Arial, sans-serif; }

/* Jede Seite enthaelt zwei Fassungen: eine fuer breite Bildschirme und eine fuers Handy
   (so hat Onepage die Seiten auch ausgeliefert). Sichtbar ist immer nur eine. */
.op-v-mobile { display: none; }
@media (max-width: 768px) {
  .op-v-desktop { display: none; }
  .op-v-mobile { display: block; }
}

/* Hervorhebungen im Text (bei Onepage per Skript gezeichnet) */
.con-kit-quark-highlight { position: relative; }
.con-kit-quark-highlight[data-highlight-type="background"],
.con-kit-quark-highlight[data-highlight-type="brush-marker"] {
  background: rgba(var(--color-bg), var(--alpha-bg)); border-radius: 4px;
  padding: 0 .18em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.con-kit-quark-highlight[data-highlight-type="marker"] {
  background: linear-gradient(transparent 55%, rgba(var(--color-border), var(--alpha-border)) 55%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.con-kit-quark-highlight[data-highlight-type="underline"],
.con-kit-quark-highlight[data-highlight-type^="hand-underlined"],
.con-kit-quark-highlight[data-highlight-type="brush-underline"] {
  text-decoration: underline; text-decoration-color: rgba(var(--color-border), var(--alpha-border));
  text-decoration-thickness: .12em; text-underline-offset: .18em; text-decoration-skip-ink: none;
}
.con-kit-quark-highlight[data-highlight-type="oval"],
.con-kit-quark-highlight[data-highlight-type="border"] {
  border: .08em solid rgba(var(--color-border), var(--alpha-border)); border-radius: 999px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.con-kit-quark-highlight[data-highlight-type="border"] { border-radius: 6px; padding: 0 .2em; }
.con-kit-quark-highlight > svg { display: none; }

/* Handy-Menue */
.op-burger {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto;
  border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; flex: none;
}
.op-burger svg { width: 26px; height: 26px; }
.op-compact .con-kit-molecule-header-v2__atoms > *:not(:first-child):not(.op-burger) { display: none !important; }
.op-compact .con-kit-molecule-header-v2__atoms { display: flex; align-items: center; justify-content: space-between; width: 100%; flex-wrap: nowrap; }
.op-compact .op-burger { display: inline-flex; background: #f2f2f2; color: #1c1c1c; }
button[data-op-href], button[data-op-scroll] { cursor: pointer; }
.op-burger:focus-visible { outline: 2px solid var(--op-orange); outline-offset: 2px; }
.op-mobile-menu {
  position: fixed; inset: 0; z-index: 100000; display: none; flex-direction: column; gap: 4px;
  padding: 76px 24px 32px; background: #fff; color: #1c1c1c; overflow: auto;
  font: 600 20px/1.3 'Manrope', Arial, sans-serif;
}
.op-mobile-menu.op-open { display: flex; }
.op-mobile-menu a { display: block; padding: 14px 4px; color: inherit; text-decoration: none; border-bottom: 1px solid #eee; }
.op-mobile-menu a:hover { color: var(--op-orange); }
.op-mobile-menu .op-mobile-cta { margin-top: 18px; padding: 16px; border: 0; border-radius: 8px; background: var(--op-orange); color: #fff; text-align: center; }
.op-mobile-menu .op-mobile-cta:hover { color: #fff; filter: brightness(1.06); }
.op-mobile-close {
  position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 8px;
  background: none; font-size: 34px; line-height: 1; color: #1c1c1c; cursor: pointer;
}
body.op-menu-open { overflow: hidden; }

/* Videos: Abspielknopf ueber dem Vorschaubild */
.op-video { position: relative; cursor: pointer; }
.op-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--op-orange); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px -6px rgba(0, 0, 0, .5); z-index: 3;
}
.op-play svg { margin-left: 4px; }
.op-play:hover { filter: brightness(1.08); }
.op-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.op-play-note {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 6px 10px;
  font: 12px/1.4 'Manrope', Arial, sans-serif; color: #fff; text-align: center; background: rgba(0, 0, 0, .55);
}
.op-video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }

/* Platzhalter fuer eingebettete Inhalte (Kalender, Podcast-Player) */
.op-embed-ph {
  box-sizing: border-box; width: 100%; padding: 36px 24px; border-radius: 12px; text-align: center;
  background: #f7f7f7; color: #1c1c1c; border: 1px solid #e6e6e6; font: 16px/1.5 'Manrope', Arial, sans-serif;
}
.op-embed-ph p { margin: 0 0 16px; }
.op-embed-ph button, .op-embed-ph a.op-embed-link {
  display: inline-block; padding: 14px 22px; border: 0; border-radius: 8px; cursor: pointer; text-decoration: none;
  background: var(--op-orange); color: #fff; font: 700 16px/1.2 'Manrope', Arial, sans-serif;
}
.op-embed-ph button:hover { filter: brightness(1.06); }
.op-embed-ph small { display: block; margin-top: 14px; color: #666; }
.op-embed-ph small a { color: inherit; }
iframe.op-embed-frame { display: block; width: 100%; border: 0; }
iframe.op-embed-frame[hidden] { display: none; }

/* Fenster mit Formular */
dialog.op-modal {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  padding: 36px 32px 28px; border: 0; border-radius: 12px; background: #fff; color: #333;
  box-shadow: 0 30px 80px -10px rgba(0, 0, 0, .5); box-sizing: border-box;
  font: 16px/1.5 'Manrope', Arial, sans-serif;
}
dialog.op-modal::backdrop { background: rgba(0, 0, 0, .6); }
dialog.op-modal h2 { font: 700 24px/1.25 'Manrope', Arial, sans-serif; margin: 0 0 20px; color: #111; padding-right: 24px; }
.op-modal-x {
  position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: none;
  font-size: 30px; line-height: 1; color: #555; cursor: pointer; border-radius: 6px;
}
.op-modal-x:hover { background: #f2f2f2; }
.op-form { display: grid; gap: 14px; }
.op-field { display: grid; gap: 6px; font-weight: 700; font-size: 14px; color: #333; }
.op-field input[type="text"], .op-field input[type="email"], .op-field input[type="tel"] {
  font: 16px/1.4 'Manrope', Arial, sans-serif; padding: 12px 14px; border: 1px solid #ccc; border-radius: 8px; width: 100%; box-sizing: border-box;
}
.op-field input:focus { outline: 2px solid var(--op-orange); outline-offset: 1px; border-color: var(--op-orange); }
.op-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #555; font-weight: 400; }
.op-check input { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--op-orange); }
.op-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.op-form-legal { margin: 0; font-size: 13px; color: #666; }
.op-form-legal a, .op-form-msg a, .op-check a { color: #c26f00; }
.op-form-btn {
  margin-top: 4px; padding: 15px 18px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--op-orange); color: #fff; font: 700 16px/1.2 'Manrope', Arial, sans-serif;
}
.op-form-btn:hover { filter: brightness(1.06); }
.op-form-msg { margin: 0; padding: 12px 14px; border-radius: 8px; background: #fff4e0; color: #5c3800; font-size: 14px; }
[data-op-modal] { cursor: pointer; }
