
/*
 * JK Unterseiten Final Fix
 * Dieses CSS lädt sehr spät und neutralisiert die fehlerhaften Rahmen/Overlays.
 */

/* Alte problematische Overlays ausschalten */
body .jk-clean-hero::before,
body .jk-clean-hero::after,
body .jk-sub-hero::before,
body .jk-sub-hero::after,
body .wp-block-post-content > .wp-block-group:first-child::before,
body .wp-block-post-content > .wp-block-group:first-child::after,
body .jk-card::before,
body .jk-card::after,
body .jk-feature-card::before,
body .jk-feature-card::after,
body .jk-info-card::before,
body .jk-info-card::after,
body .jk-form-card::before,
body .jk-form-card::after,
body .wp-block-post-content .wp-block-column::before,
body .wp-block-post-content .wp-block-column::after {
  display: none !important;
  content: none !important;
}

/* Grundlook */
body {
  background:
    radial-gradient(circle at 76% 8%, rgba(24,168,255,.16), transparent 34rem),
    radial-gradient(circle at 14% 16%, rgba(109,75,255,.13), transparent 28rem),
    #05070d !important;
  color: #f7f9ff;
}

.wp-site-blocks,
main,
.wp-block-post-content,
.entry-content {
  background: transparent !important;
}

/* Content sauber zentrieren */
.wp-block-post-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
}

.wp-block-post-content > * {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.wp-block-post-content > .alignwide {
  max-width: 1240px;
}

.wp-block-post-content > .alignfull {
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Doppelten kleinen ersten Titel auf Unterseiten ausblenden */
body.page:not(.home) .wp-block-post-content > h1:first-child,
body.page:not(.home) .wp-block-post-content > h2:first-child {
  display: none !important;
}

/* Seitentitel / Hero */
.wp-block-post-title,
.entry-title {
  max-width: 1120px !important;
  margin: 0 auto !important;
  padding: clamp(4.5rem, 8vw, 7rem) 1.25rem 1.2rem !important;
  color: #fff !important;
  font-size: clamp(3.3rem, 7.2vw, 6.4rem) !important;
  line-height: .9 !important;
  letter-spacing: -.06em !important;
  font-weight: 950 !important;
}

/* Erste Textsektion unter Titel */
body.page:not(.home) .wp-block-post-content > p:first-of-type {
  max-width: 820px;
  margin-left: 0;
  margin-right: auto;
  color: #d4dcf2 !important;
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.45;
  padding: 1.6rem 2rem;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
}

/* Sektionen */
.wp-block-post-content > h2 {
  margin-top: 4rem !important;
  margin-bottom: 1.25rem !important;
  color: #fff !important;
  font-size: clamp(2rem, 4vw, 3.6rem) !important;
  line-height: 1 !important;
  letter-spacing: -.045em !important;
  font-weight: 950 !important;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 2rem;
}

.wp-block-post-content > h3 {
  color: #fff !important;
}

/* Card Raster */
.wp-block-post-content .wp-block-columns {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem !important;
  margin-top: 1.5rem !important;
  margin-bottom: 2.5rem !important;
}

.wp-block-post-content .wp-block-column {
  width: auto !important;
  flex-basis: auto !important;
  min-width: 0 !important;
  padding: 1.65rem !important;
  border-radius: 24px !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)) !important;
  box-shadow:
    0 24px 70px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
  min-height: 170px;
}

.wp-block-post-content .wp-block-column:hover {
  transform: translateY(-2px);
  border-color: rgba(24,168,255,.38) !important;
  transition: .18s ease;
}

.wp-block-post-content .wp-block-column h3,
.wp-block-post-content .wp-block-column h2 {
  margin-top: 0 !important;
  margin-bottom: .8rem !important;
  padding-top: 0 !important;
  border-top: 0 !important;
  font-size: clamp(1.25rem, 2vw, 1.65rem) !important;
  line-height: 1.1 !important;
  color: #fff !important;
}

.wp-block-post-content .wp-block-column p {
  color: #c5cde3 !important;
  line-height: 1.65 !important;
  margin-bottom: 0 !important;
}

/* Ablauf / Listen als Panel */
.wp-block-post-content > ol,
.wp-block-post-content > ul {
  padding: 1.8rem 2rem 1.8rem 3.2rem !important;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
  color: #d3dcf3;
}

.wp-block-post-content li {
  margin-bottom: .55rem;
  color: #d3dcf3;
}

/* Buttons */
.wp-block-button__link,
.wp-element-button,
input[type="submit"],
button[type="submit"] {
  background: linear-gradient(135deg, #18a8ff, #6d4bff) !important;
  color: #fff !important;
  border-radius: 999px !important;
  border: 0 !important;
  padding: .95rem 1.55rem !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  box-shadow: 0 18px 44px rgba(24,168,255,.28);
}

.wp-block-button__link:hover,
.wp-element-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 54px rgba(24,168,255,.36);
}

/* Header etwas wie Startseite */
header,
.wp-block-template-part:has(header) {
  background: rgba(3,5,10,.9) !important;
  border-bottom: 1px solid rgba(255,255,255,.09) !important;
  backdrop-filter: blur(18px);
}

/* Kontaktformular */
input:not([type="submit"]),
textarea,
select,
.ff-el-form-control {
  background: rgba(255,255,255,.075) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 14px !important;
  padding: .95rem 1rem !important;
}

label,
.ff-el-input--label label {
  color: #dce6fa !important;
  font-weight: 750 !important;
}

/* Adminbar Abstand nicht zerstören */
body.admin-bar header {
  margin-top: 0;
}

/* Editor Fix */
.editor-styles-wrapper {
  background: #05070d !important;
}

.editor-styles-wrapper .wp-block-column {
  outline: 1px solid rgba(255,255,255,.12);
}

/* Mobile */
@media (max-width: 900px) {
  .wp-block-post-content .wp-block-columns {
    grid-template-columns: 1fr !important;
  }

  .wp-block-post-title,
  .entry-title {
    font-size: clamp(2.8rem, 14vw, 4.6rem) !important;
  }

  body.page:not(.home) .wp-block-post-content > p:first-of-type {
    padding: 1.2rem;
    font-size: 1.15rem;
  }
}


/* JK Kontaktformular */
.jk-contact-section,
.jk-contact-section * {
  box-sizing: border-box;
}

.jk-contact-section {
  width: 100%;
  margin: 0;
  padding: 0;
  color: #fff;
  background: transparent;
}

.jk-contact-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.jk-contact-header {
  max-width: 820px;
  margin: 0 0 48px;
}

.jk-contact-kicker {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
  color: #c4b5fd;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.jk-contact-kicker::before {
  content: "";
  width: 38px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #60a5fa);
}

.jk-contact-title {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.055em;
}

.jk-contact-title span {
  display: block;
  background: linear-gradient(90deg, #fff 4%, #a78bfa 50%, #60a5fa 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.jk-contact-intro {
  max-width: 720px;
  margin: 0;
  color: #b8c0d0;
  font-size: 1.08rem;
  line-height: 1.75;
}

.jk-contact-grid {
  display: grid;
  grid-template-columns: minmax(300px, .88fr) minmax(0, 1.25fr);
  gap: 28px;
}

.jk-contact-info,
.jk-contact-form-wrap {
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(19,25,43,.97), rgba(13,18,32,.97));
  box-shadow: 0 28px 80px rgba(0,0,0,.38);
}

.jk-contact-info {
  display: flex;
  flex-direction: column;
  padding: 36px;
}

.jk-contact-form-wrap {
  padding: 36px;
}

.jk-contact-info h3,
.jk-contact-form-wrap h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.55rem;
}

.jk-contact-info > p,
.jk-contact-form-wrap > p {
  margin: 0 0 30px;
  color: #b8c0d0;
  line-height: 1.7;
}

.jk-contact-cards {
  display: grid;
  gap: 14px;
}

.jk-contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 17px;
  background: rgba(255,255,255,.035);
}

.jk-contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124,58,237,.68);
  background: rgba(124,58,237,.11);
}

.jk-contact-icon {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(124,58,237,.32), rgba(37,99,235,.28));
}

.jk-contact-card small {
  display: block;
  margin-bottom: 5px;
  color: #858da0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.jk-contact-card strong {
  display: block;
  color: #fff;
  overflow-wrap: anywhere;
}

.jk-contact-highlight {
  margin-top: auto;
  padding-top: 30px;
}

.jk-contact-highlight-box {
  padding: 20px;
  border: 1px solid rgba(56,217,150,.24);
  border-radius: 18px;
  background: rgba(56,217,150,.07);
}

.jk-contact-highlight-box strong {
  display: block;
  margin-bottom: 7px;
  color: #8df0c2;
}

.jk-contact-highlight-box span {
  color: #b8c0d0;
  line-height: 1.6;
}

.jk-contact-form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 19px;
}

.jk-form-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.jk-form-group.full {
  grid-column: 1 / -1;
}

.jk-form-group label {
  color: #edf0f7 !important;
  font-size: .86rem;
  font-weight: 700;
}

.jk-form-group input,
.jk-form-group select,
.jk-form-group textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.13) !important;
  border-radius: 14px !important;
  padding: 15px 16px !important;
  color: #fff !important;
  background: rgba(255,255,255,.045) !important;
  outline: none;
}

.jk-form-group input:focus,
.jk-form-group select:focus,
.jk-form-group textarea:focus {
  border-color: #a78bfa !important;
  box-shadow: 0 0 0 4px rgba(124,58,237,.13);
}

.jk-form-group select option {
  color: #111827;
  background: #fff;
}

.jk-form-group textarea {
  min-height: 155px;
  resize: vertical;
}

.jk-contact-submit {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 17px;
}

.jk-contact-button {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 15px 28px;
  color: #fff;
  background: linear-gradient(90deg, #7c3aed, #2563eb);
  cursor: pointer;
  font-weight: 800;
}

.jk-contact-button[disabled] {
  opacity: .6;
  cursor: wait;
}

.jk-contact-note {
  flex: 1 1 260px;
  color: #858da0;
  font-size: .79rem;
  line-height: 1.55;
}

.jk-form-status {
  grid-column: 1 / -1;
  min-height: 24px;
}

.jk-form-status.is-success {
  color: #8df0c2;
}

.jk-form-status.is-error {
  color: #ff9aa8;
}

.jk-contact-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 900px) {
  .jk-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .jk-contact-info,
  .jk-contact-form-wrap {
    padding: 23px;
  }

  .jk-contact-form {
    grid-template-columns: 1fr;
  }

  .jk-form-group,
  .jk-form-group.full,
  .jk-contact-submit {
    grid-column: 1;
  }

  .jk-contact-button {
    width: 100%;
  }
}
