/* =========================================================
   arni-womo.de – FAQ
   ========================================================= */

:root {
  --faq-blue: #17304f;
  --faq-text: #25364a;
  --faq-orange: #e87722;

  --faq-light: #f5f7fa;
  --faq-white: #ffffff;

  --faq-border: rgba(23, 48, 79, 0.12);

  --faq-shadow:
    0 4px 14px
    rgba(0, 0, 0, 0.08);

  --faq-shadow-hover:
    0 10px 24px
    rgba(23, 48, 79, 0.14);

  --faq-radius: 16px;
  --faq-radius-small: 12px;

  --faq-max-width: 1100px;
}


/* =========================================================
   1. FAQ-Hauptblöcke
   ========================================================= */

body .entry-content .faq-block {
  width: calc(100% - 60px) !important;
  max-width: var(--faq-max-width) !important;

  margin: 28px auto !important;
  padding: 32px 34px;

  border-radius: var(--faq-radius);

  box-sizing: border-box;

  left: auto !important;
  right: auto !important;
  transform: none !important;

  scroll-margin-top: 120px;
}


.faq-block-grau {
  background: var(--faq-light);
}


.faq-block-orange {
  background: var(--faq-white);

  border-left: 6px solid var(--faq-orange);

  box-shadow: var(--faq-shadow);
}


/* =========================================================
   2. Überschriften und Texte
   ========================================================= */

.faq-block h2 {
  margin: 0 0 18px;

  color: var(--faq-blue);

  font-size: clamp(28px, 2.4vw, 38px);
  font-weight: 800;
  line-height: 1.2;

  hyphens: auto;
  -webkit-hyphens: auto;

  word-break: normal;
  overflow-wrap: normal;
}


.faq-block h3 {
  margin: 26px 0 14px;

  color: var(--faq-blue);

  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;

  hyphens: auto;
  -webkit-hyphens: auto;
}


.faq-block h4 {
  margin: 0 0 10px;

  color: var(--faq-blue);

  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;

  hyphens: auto;
  -webkit-hyphens: auto;
}


.faq-block p {
  margin: 0 0 16px;

  color: var(--faq-text);

  font-size: 16.5px;
  line-height: 1.7;

  hyphens: auto;
  -webkit-hyphens: auto;

  word-break: normal;
  overflow-wrap: break-word;
}


.faq-block p:last-child {
  margin-bottom: 0;
}
.faq-block,
.faq-externe-thema {
  scroll-margin-top: 120px;
}

/* =========================================================
   3. Gutenberg-Details als FAQ-Accordion
   ========================================================= */

.faq-item {
  margin: 14px 0;

  background: var(--faq-white);

  border: 1px solid var(--faq-border);
  border-radius: var(--faq-radius-small);

  box-shadow:
    0 2px 8px
    rgba(0, 0, 0, 0.045);

  overflow: hidden;

  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}


/*
 * In einem weißen/orangen Hauptblock sollen
 * die FAQ-Items leicht grau hinterlegt sein.
 */

.faq-block-orange .faq-item {
  background: var(--faq-light);
}


.faq-item:hover {
  border-color:
    rgba(232, 119, 34, 0.35);

  box-shadow:
    0 5px 16px
    rgba(23, 48, 79, 0.09);
}


/* Frage / Summary */

.faq-item summary {
  position: relative;

  display: block;

  padding:
    18px 54px 18px 20px;

  color: var(--faq-blue);

  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;

  cursor: pointer;

  list-style: none;

  hyphens: auto;
  -webkit-hyphens: auto;

  word-break: normal;
  overflow-wrap: normal;

  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}


/* Standard-Marker ausblenden */

.faq-item summary::-webkit-details-marker {
  display: none;
}


.faq-item summary::marker {
  display: none;
}


/* Plus-Zeichen */

.faq-item summary::after {
  content: "+";

  position: absolute;

  top: 50%;
  right: 20px;

  width: 28px;
  height: 28px;

  display: flex;
  align-items: center;
  justify-content: center;

  transform:
    translateY(-50%);

  background:
    var(--faq-orange);

  color:
    var(--faq-white);

  border-radius:
    50%;

  font-size:
    21px;

  font-weight:
    700;

  line-height:
    1;
}


/* Geöffnet: Minus */

.faq-item[open] summary::after {
  content: "−";
}


/* Geöffnete Frage */

.faq-item[open] summary {
  color:
    var(--faq-orange);

  border-bottom:
    1px solid var(--faq-border);
}


/* Tastaturfokus */

.faq-item summary:focus-visible {
  outline:
    3px solid
    rgba(232, 119, 34, 0.28);

  outline-offset:
    -3px;
}


/* Antwortbereich */

.faq-item > *:not(summary) {
  margin-left:
    20px;

  margin-right:
    20px;
}


.faq-item > p:first-of-type {
  margin-top:
    18px;
}


.faq-item > *:last-child {
  margin-bottom:
    20px;
}


/* Links in Antworten */

.faq-item a {
  color:
    var(--faq-orange);

  font-weight:
    700;

  text-decoration:
    underline;

  text-decoration-thickness:
    1px;

  text-underline-offset:
    3px;
}


.faq-item a:hover,
.faq-item a:focus-visible {
  color:
    var(--faq-blue);
}


/* =========================================================
   4. Externer Informationsbereich
   ========================================================= */

.faq-externe-einleitung {
  max-width:
    900px;
}


.faq-externe-thema {
  margin-top:
    34px;

  scroll-margin-top:
    120px;
}


.faq-externe-thema > h3 {
  margin:
    0 0 18px;

  padding-bottom:
    10px;

  border-bottom:
    2px solid
    rgba(23, 48, 79, 0.10);
}


/* =========================================================
   5. Kartenraster externe Links
   ========================================================= */

.faq-link-grid {
  display:
    grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap:
    20px;
}


.faq-link-card {
  min-width:
    0;

  display:
    flex;

  align-items:
    flex-start;

  gap:
    16px;

  padding:
    22px;

  background:
    var(--faq-light);

  border:
    1px solid var(--faq-border);

  border-radius:
    14px;

  box-shadow:
    0 3px 10px
    rgba(0, 0, 0, 0.05);

  box-sizing:
    border-box;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}


.faq-link-card:hover,
.faq-link-card:focus-within {
  transform:
    translateY(-3px);

  border-color:
    rgba(232, 119, 34, 0.35);

  box-shadow:
    var(--faq-shadow-hover);
}


/* Icon */

.faq-link-icon {
  flex:
    0 0 auto;

  width:
    44px;

  height:
    44px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  background:
    var(--faq-white);

  border:
    1px solid var(--faq-border);

  border-radius:
    50%;

  font-size:
    23px;

  line-height:
    1;
}


/* Karteninhalt */

.faq-link-inhalt {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  flex:
    1;
}


.faq-link-inhalt p {
  flex:
    1;

  margin-bottom:
    16px;

  font-size:
    15.5px;

  line-height:
    1.6;

  hyphens:
    auto;

  -webkit-hyphens:
    auto;
}


/* Externer Link */

.faq-externer-link {
  display:
    inline-flex;

  align-items:
    center;

  gap:
    6px;

  align-self:
    flex-start;

  color:
    var(--faq-orange);

  font-weight:
    800;

  text-decoration:
    none;

  line-height:
    1.4;
}


.faq-externer-link:hover,
.faq-externer-link:focus-visible {
  color:
    var(--faq-blue);

  text-decoration:
    underline;

  text-underline-offset:
    3px;
}


/* =========================================================
   6. Hinweis zu externen Links
   ========================================================= */

.faq-externe-hinweis {
  margin-top:
    36px;

  padding:
    22px 24px;

  background:
    var(--faq-light);

  border:
    1px solid var(--faq-border);

  border-radius:
    var(--faq-radius-small);

  box-sizing:
    border-box;
}


.faq-externe-hinweis h3 {
  margin:
    0 0 12px;

  font-size:
    19px;
}


.faq-externe-hinweis p {
  font-size:
    15px;

  line-height:
    1.65;
}


/* =========================================================
   7. Listen
   ========================================================= */

.faq-block ul,
.faq-block ol {
  margin:
    14px 0 18px;

  padding-left:
    24px;
}


.faq-block li {
  margin-bottom:
    8px;

  color:
    var(--faq-text);

  font-size:
    16px;

  line-height:
    1.6;

  hyphens:
    auto;

  -webkit-hyphens:
    auto;
}


/* =========================================================
   8. Tablet
   ========================================================= */

@media (max-width: 950px) {

  .faq-link-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


/* =========================================================
   9. Mobil
   ========================================================= */

@media (max-width: 768px) {

  body .entry-content .faq-block {
    width:
      calc(100% - 32px) !important;

    max-width:
      calc(100% - 32px) !important;

    padding:
      26px 20px;
  }


  .faq-block-orange {
    border-left-width:
      5px;
  }


  .faq-item summary {
    padding:
      16px 50px 16px 16px;

    font-size:
      16px;
  }


  .faq-item summary::after {
    right:
      15px;

    width:
      26px;

    height:
      26px;

    font-size:
      19px;
  }


  .faq-item > *:not(summary) {
    margin-left:
      16px;

    margin-right:
      16px;
  }


  .faq-link-card {
    padding:
      20px;
  }

}


/* =========================================================
   10. Kleine Smartphones
   ========================================================= */

@media (max-width: 600px) {

  .faq-link-grid {
    grid-template-columns:
      1fr;
  }


  .faq-link-card {
    gap:
      13px;
  }


  .faq-link-icon {
    width:
      40px;

    height:
      40px;

    font-size:
      21px;
  }


  .faq-block h2 {
    font-size:
      27px;
  }

}


/* =========================================================
   11. Reduzierte Bewegung
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .faq-item,
  .faq-link-card {
    transition:
      none;
  }


  .faq-link-card:hover,
  .faq-link-card:focus-within {
    transform:
      none;
  }

}
/* =========================================================
   FAQ – Abschlussbereich
   ========================================================= */

body .entry-content
.faq-block.faq-abschluss {
  max-width: 1250px !important;
}


/* Button-Zeile */

.faq-abschluss-actions {
  display: flex;

  justify-content: center;
  align-items: center;

  flex-wrap: wrap;

  gap: 14px;

  margin-top: 26px;
}


/* Buttons */

.faq-abschluss-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 48px;

  padding: 13px 24px;

  background: var(--faq-orange);
  color: var(--faq-white);

  border: none;
  border-radius: 999px;

  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;

  text-align: center;
  text-decoration: none;

  box-sizing: border-box;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}


.faq-abschluss-button:visited {
  color: var(--faq-white);
}


.faq-abschluss-button:hover,
.faq-abschluss-button:focus-visible {
  background: var(--faq-blue);
  color: var(--faq-white);

  transform: translateY(-1px);

  text-decoration: none;
}