/* ByteMike Site-UI – Layout-Regeln aus der Design-Durchsicht vom 02.12.2026.
   Nummern wie im Plan; jede Regel steht für sich und lässt sich einzeln entfernen. */

/* 1. Preistabelle /bytemate/: mobil passen alle drei Spalten, die Premium-Badges brechen um.
      Vorher schnitten overflow:hidden (Tabelle) und overflow:clip (Seiten-Wrapper) die Premium-Spalte ab. */
@media (max-width: 600px) {
  body .bytemate-table { table-layout: fixed !important; width: 100% !important; font-size: 13px; }
  body .bytemate-table th, body .bytemate-table td { padding: 10px 6px !important; }
  body .bytemate-table tr > :nth-child(1) { width: 46% !important; padding-left: 12px !important; }
  body .bytemate-table tr > :nth-child(2),
  body .bytemate-table tr > :nth-child(3) { width: 27% !important; }
  body .bytemate-table .premium-tag { white-space: normal !important; display: inline-block; line-height: 1.3; }
}

/* 2. Hero-Pille: auf Unterseiten ist sie ein Block und lief über die ganze Spaltenbreite. */
.entry-content .eyebrow-pill {
  width: fit-content !important;
  max-width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 3. Statistik-Leiste der Startseite: mobil 2 × 2 statt vier Zeilen untereinander. */
@media (max-width: 767px) {
  .entry-content .kt-row-column-wrap.kt-has-4-columns:has(.bytemate-countup) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    row-gap: 28px !important;
    column-gap: 12px !important;
  }
}

/* 4. Icons (vom Plugin statt der Emojis) und kompakte Icon-Karten auf dem Handy. */
.entry-content .bm-icon-wrap { line-height: 1 !important; color: var(--global-palette1, #00c8ff) !important; }
.entry-content .bm-icon { width: 30px; height: 30px; display: inline-block; vertical-align: middle; }

@media (max-width: 767px) {
  /* Karte = Kadence-Spalte, deren erstes Element das Icon ist: Icon links, Titel und Text rechts. */
  .entry-content .wp-block-kadence-column:has(> .kt-inside-inner-col > .bm-icon-wrap:first-child:not(:only-child)) > .kt-inside-inner-col {
    display: grid !important;
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
    align-content: start;
    text-align: left;
    padding: 18px !important;
  }
  .entry-content .wp-block-kadence-column:has(> .kt-inside-inner-col > .bm-icon-wrap:first-child:not(:only-child)) > .kt-inside-inner-col > * {
    grid-column: 2;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .entry-content .wp-block-kadence-column:has(> .kt-inside-inner-col > .bm-icon-wrap:first-child:not(:only-child)) > .kt-inside-inner-col > .bm-icon-wrap:first-child {
    grid-column: 1;
    grid-row: 1 / span 6;
    margin: 0 !important;
    padding: 0 !important;
  }
  .entry-content .wp-block-kadence-column:has(> .kt-inside-inner-col > .bm-icon-wrap:first-child:not(:only-child)) > .kt-inside-inner-col > :nth-child(2) {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  .entry-content .wp-block-kadence-column:has(> .kt-inside-inner-col > .bm-icon-wrap:first-child:not(:only-child)) > .kt-inside-inner-col > :not(:first-child) {
    margin-bottom: 6px !important;
  }
  .entry-content .wp-block-kadence-column:has(> .kt-inside-inner-col > .bm-icon-wrap:first-child:not(:only-child)) > .kt-inside-inner-col > :last-child {
    margin-bottom: 0 !important;
  }
  .entry-content .bm-icon { width: 26px; height: 26px; }
  /* Karten-Reihen rücken enger zusammen. */
  .entry-content .kt-row-column-wrap:has(> .wp-block-kadence-column > .kt-inside-inner-col > .bm-icon-wrap:first-child:not(:only-child)) {
    row-gap: 14px !important;
  }
  /* Zweite Kartenform (Startseite IT-Services, /kontakt/): zweispaltige Zeile, links nur das Icon. Kadence stapelt
     sie mobil – hier bleiben Icon und Text nebeneinander. */
  .entry-content .kt-row-column-wrap.kt-has-2-columns:has(> .wp-block-kadence-column:first-child > .kt-inside-inner-col > .bm-icon-wrap:only-child) {
    grid-template-columns: 30px minmax(0, 1fr) !important;
    column-gap: 16px !important;
    row-gap: 0 !important;
    align-items: start !important;
  }
  .entry-content .kt-row-column-wrap.kt-has-2-columns:has(> .wp-block-kadence-column:first-child > .kt-inside-inner-col > .bm-icon-wrap:only-child) > .wp-block-kadence-column:first-child {
    align-self: start !important;
  }
  .entry-content .kt-row-column-wrap.kt-has-2-columns:has(> .wp-block-kadence-column:first-child > .kt-inside-inner-col > .bm-icon-wrap:only-child) > .wp-block-kadence-column:first-child > .kt-inside-inner-col {
    justify-content: flex-start !important;
    padding: 0 !important;
  }
  .entry-content .kt-row-column-wrap.kt-has-2-columns:has(> .wp-block-kadence-column:first-child > .kt-inside-inner-col > .bm-icon-wrap:only-child) > .wp-block-kadence-column:first-child .bm-icon-wrap {
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }
  .entry-content .kt-row-column-wrap.kt-has-2-columns:has(> .wp-block-kadence-column:first-child > .kt-inside-inner-col > .bm-icon-wrap:only-child) > .wp-block-kadence-column:last-child > .kt-inside-inner-col {
    justify-content: flex-start !important;
    padding: 0 !important;
  }
  .entry-content .kt-row-column-wrap.kt-has-2-columns:has(> .wp-block-kadence-column:first-child > .kt-inside-inner-col > .bm-icon-wrap:only-child) > .wp-block-kadence-column:last-child > .kt-inside-inner-col > * {
    text-align: left !important;
    margin-top: 0 !important;
    margin-bottom: 6px !important;
  }
  .entry-content .kt-row-column-wrap.kt-has-2-columns:has(> .wp-block-kadence-column:first-child > .kt-inside-inner-col > .bm-icon-wrap:only-child) > .wp-block-kadence-column:last-child > .kt-inside-inner-col > :last-child {
    margin-bottom: 0 !important;
  }
}
/* Titel dieser Kartenform fett (stand als normaler Absatz da). */
.entry-content .kt-row-column-wrap.kt-has-2-columns:has(> .wp-block-kadence-column:first-child > .kt-inside-inner-col > .bm-icon-wrap:only-child) > .wp-block-kadence-column:last-child > .kt-inside-inner-col > p:first-child {
  font-weight: 600 !important;
}

/* 5. Zwei Buttons nebeneinander: mobil untereinander und gleich breit. */
@media (max-width: 767px) {
  .entry-content .kb-buttons-wrap:has(> .kb-button + .kb-button) {
    flex-direction: column !important;
    align-items: center !important;
  }
  .entry-content .kb-buttons-wrap:has(> .kb-button + .kb-button) > .kb-button {
    width: 100% !important;
    max-width: 300px;
    justify-content: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* 6. Beiträge mobil: H2 klar größer als H3 (vorher beide 22 px). */
@media (max-width: 767px) {
  .single-post .entry-content h2 { font-size: 27px !important; line-height: 1.3 !important; }
  .single-post .entry-content h3 { font-size: 20px !important; line-height: 1.35 !important; }
}

/* 7. Ähnliche Beiträge: Pfeile nicht mehr über den Kartentiteln, Punkte gut treffbar. */
@media (min-width: 1100px) {
  .entry-related-carousel .splide__arrow--prev { left: -56px !important; }
  .entry-related-carousel .splide__arrow--next { right: -56px !important; }
}
@media (max-width: 1099px) {
  .entry-related-carousel .splide__arrow { display: none !important; }
}
.entry-related-carousel .splide__pagination__page {
  width: 24px !important;
  height: 24px !important;
  padding: 7px !important;
  margin: 0 !important;
  background-clip: content-box !important;
  box-sizing: border-box !important;
}

/* 8. Footer mobil: Platz unter dem Hinweistext für den CCM19-Knopf (fest unten links). */
@media (max-width: 767px) {
  #colophon .site-bottom-footer-wrap { padding-bottom: 72px !important; }
}

/* 9. Mobilmenü: Sprachlink mit Namen statt nur der Flagge. */
.mobile-navigation .lang-item > a { display: inline-flex !important; align-items: center; gap: 10px; }
.mobile-navigation .lang-item-en > a::after { content: "English"; }
.mobile-navigation .lang-item-de > a::after { content: "Deutsch"; }

/* 10. Abschnitts-Labels: /ueber-mich/ und /en/about/ an den Standard der übrigen Seiten (5 px, fett) angleichen,
       mobil überall etwas weniger gesperrt. */
.entry-content .kt-adv-heading37_f8b17f-14,
.entry-content .kt-adv-heading37_35d240-fe,
.entry-content .kt-adv-heading37_90c46b-74,
.entry-content .kt-adv-heading37_182dfc-80,
.entry-content .kt-adv-heading14942_c1566c-07,
.entry-content .kt-adv-heading14942_ea1512-31,
.entry-content .kt-adv-heading14942_ab66f6-1e,
.entry-content .kt-adv-heading14942_45aa1c-0a {
  letter-spacing: 5px !important;
  font-weight: 700 !important;
  font-size: 16px !important;
}
@media (max-width: 767px) {
  .entry-content p.wp-block-kadence-advancedheading.has-theme-palette-1-color,
  .entry-content p.has-theme-palette-1-color:has(> strong:only-child) {
    letter-spacing: 3px !important;
  }
}

/* 11. Yoast-FAQ als Akkordeon (das Plugin macht aus jeder Frage <details>/<summary>). */
.entry-content .schema-faq details.schema-faq-section {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  margin: 0 0 10px;
  padding: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.entry-content .schema-faq details.schema-faq-section[open] {
  border-color: rgba(0, 200, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
}
.entry-content .schema-faq summary.schema-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--global-palette3, #f0f4fa);
  text-align: left;
}
.entry-content .schema-faq summary.schema-faq-question::-webkit-details-marker { display: none; }
.entry-content .schema-faq summary.schema-faq-question::after {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--global-palette1, #00c8ff);
  border-bottom: 2px solid var(--global-palette1, #00c8ff);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.15s ease;
}
.entry-content .schema-faq details[open] > summary.schema-faq-question::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.entry-content .schema-faq summary.schema-faq-question:focus-visible {
  outline: 2px solid var(--global-palette1, #00c8ff);
  outline-offset: 2px;
  border-radius: 12px;
}
.entry-content .schema-faq .bm-faq-answer { padding: 0 18px 16px; text-align: left; }
.entry-content .schema-faq .bm-faq-answer > :last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
  .entry-content .schema-faq details.schema-faq-section,
  .entry-content .schema-faq summary.schema-faq-question::after { transition: none; }
}
