/* ==========================================================================
   albaki.de – Anpassungsschicht über dem Template-Stylesheet
   Wird nach style.css und responsive.css geladen.

   Enthält ausschließlich:
   a) Korrekturen an Template-Regeln, die auf entfernte Demo-Bilder verwiesen
   b) neue Bausteine, für die das Template keine Entsprechung hatte
      (Ablauf-Schritte, Qur'an-Zitat, Soforthilfe-Leiste, Checklisten)
   c) Verfeinerungen für den Anwendungsfall Bestattung
   ========================================================================== */

:root {
  --arabic: var(--font-amiri), "Traditional Arabic", serif;
  --alert: #8c2f2f;
}

/* Die Schriften werden über next/font eingebunden und lokal ausgeliefert.
   Das Template erwartet die Familie unter ihrem Namen – hier wird sie auf
   die von next/font erzeugte Variable abgebildet. */
body,
h1,
h2,
h3,
h4,
h5,
h6,
input,
select,
textarea,
button {
  font-family: var(--font-lexend), -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   a) Korrekturen am Template
   -------------------------------------------------------------------------- */

/* Das Demo-Overlay der Leistungs-Sektion war eine 15-MB-Grafik und wurde
   entfernt. Die grüne Einfärbung bleibt erhalten. */
.services::before {
  background-image: none;
  background-color: rgba(29, 142, 90, 0.82);
}

/* Der Hero verwendete ein graues Platzhalterfoto. Bis echte Aufnahmen
   vorliegen, tritt ein Farbverlauf an dessen Stelle. */
.home-slider .single-slide {
  background-image: linear-gradient(115deg, #04231a 0%, #0d4a34 46%, #1d8e5a 100%);
}

.home-slider .single-slide:after {
  background-color: rgba(4, 32, 35, 0.62);
}

.main_banner {
  background-image: linear-gradient(115deg, #04231a 0%, #10553c 100%);
  background-color: #04231a;
}

.main_banner::before {
  background-color: rgba(4, 32, 35, 0.55);
}

/* Der Footer verwies auf eine nicht ausgelieferte Hintergrundgrafik. */
.footer-area {
  background-image: none;
}

/* Das Aufklapp-Symbol der Fragenliste stammte aus einer extern geladenen
   Icon-Schrift. Es wird hier ohne Fremdressource gezeichnet. */
#faq_accordion .accordion-button:after {
  font-family: inherit;
  content: "";
  background-image: none;
  position: relative;
  inset-block-start: auto;
  inset-inline-end: auto;
  transform: none;
}

#faq_accordion .accordion-button .acc_sign {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 18px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  transition: 0.4s;
}

#faq_accordion .accordion-button.collapsed .acc_sign {
  background-color: var(--yellow);
  color: var(--title);
}

#faq_accordion .accordion-button .acc_sign::before {
  content: "\2212"; /* Minuszeichen: Abschnitt ist geöffnet */
}

#faq_accordion .accordion-button.collapsed .acc_sign::before {
  content: "\002B"; /* Pluszeichen: Abschnitt ist geschlossen */
}

#faq_accordion .accordion-button {
  padding-right: 62px;
  text-align: left;
}

/* Das Template zog drei weitere Icon-Schriften von fremden Servern nach
   (themify, boxicons, phosphor). Sie sind entfernt; die betroffenen Symbole
   werden hier ohne Fremdressource gezeichnet. */

/* Pfeil hinter Menüpunkten mit Untermenü */
#navigation #main-menu .menu-item-has-children::after {
  font-family: inherit;
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--body);
  margin-top: -2px;
  transition: border-color 0.4s;
}

#navigation #main-menu .menu-item-has-children:hover::after {
  border-top-color: var(--green);
}

/* Pfeil der Schaltfläche "nach oben" */
.progress-wrap::after,
.progress-wrap::before {
  font-family: inherit;
  content: "";
  background-image: none;
  -webkit-text-fill-color: currentColor;
  background-clip: border-box;
  -webkit-background-clip: border-box;
}

.progress-wrap .pw_arrow {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 11px;
  height: 11px;
  border-left: 2px solid var(--yellow);
  border-top: 2px solid var(--yellow);
  transform: translate(-50%, -50%) rotate(45deg);
  z-index: 2;
  transition: border-color 0.4s;
}

.progress-wrap:hover .pw_arrow {
  border-color: var(--green);
}

/* Der Logo-Schriftzug wird gesetzt statt als Grafik ausgeliefert. */
.site-logo a,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.site-logo img,
.footer-logo img {
  width: 46px;
  flex: 0 0 auto;
}

.brand_text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand_name {
  font-size: 27px;
  font-weight: 600;
  color: var(--title);
  letter-spacing: 0.02em;
}

.brand_claim {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 500;
}

.footer-logo .brand_name {
  color: var(--white);
}

.footer-logo .brand_claim {
  color: var(--yellow);
}

.offcanvas__logo .brand_name {
  font-size: 24px;
}

/* Die Schaltflächen des Templates blenden beim Überfahren eine schräge
   Fläche ein. Für dieses Thema wird der Effekt ruhiger gehalten. */
.green_btn::before,
.yellow_btn::before {
  transition: transform 0.5s ease;
}

/* Symbole in den Leistungs-Kreisen sind eingebettete Vektoren statt Bilder. */
.service_icon svg,
.counter_icon svg {
  width: 40px;
  height: 40px;
  color: var(--title);
}

.service_icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   b) Neue Bausteine
   -------------------------------------------------------------------------- */

/* Soforthilfe-Kasten */
.emergency_box {
  background: linear-gradient(90deg, #042023 0%, #0f5a3c 62%, #1d8e5a 100%);
  border-radius: 20px;
  padding: 45px 50px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.emergency_box h2 {
  color: var(--white);
  font-size: 32px;
  margin-bottom: 12px;
}

.emergency_box p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
  max-width: 58ch;
}

.emergency_box .em_actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.emergency_box .em_actions a {
  width: 100%;
}

.emergency_box .white_btn {
  background-color: var(--white);
  color: var(--green);
  border: 1px solid var(--white);
  padding: 11px 29px;
  border-radius: 7px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  display: inline-block;
  text-align: center;
  transition: 0.4s;
}

.emergency_box .white_btn:hover,
.emergency_box .white_btn:focus {
  background-color: var(--yellow);
  border-color: var(--yellow);
  color: var(--title);
}

.emergency_box .em_shape {
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 240px;
  opacity: 0.12;
  pointer-events: none;
}

/* Ablauf-Schritte */
.steps_list {
  list-style: none;
  counter-reset: schritt;
  margin: 0;
  padding: 0;
}

.steps_list > li {
  counter-increment: schritt;
  position: relative;
  padding: 0 0 34px 78px;
}

.steps_list > li::before {
  content: counter(schritt, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 54px;
  height: 54px;
  line-height: 54px;
  text-align: center;
  border-radius: 50%;
  background-color: var(--yellow);
  color: var(--title);
  font-weight: 600;
  font-size: 17px;
  z-index: 1;
}

.steps_list > li::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: var(--green);
}

.steps_list > li .step_line {
  position: absolute;
  left: 27px;
  top: 62px;
  bottom: 8px;
  width: 1px;
  background-color: var(--dc);
}

.steps_list > li:last-child {
  padding-bottom: 0;
}

.steps_list h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.steps_list p {
  margin-bottom: 0;
}

/* Qur'an-Zitat */
.verse_block {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.verse_arabic {
  font-family: var(--arabic);
  font-size: 40px;
  line-height: 2;
  color: var(--white);
  direction: rtl;
  margin-bottom: 22px;
}

.verse_translit {
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  margin-bottom: 12px;
}

.verse_translation {
  font-size: 21px;
  line-height: 1.75;
  color: var(--white);
  font-style: italic;
  margin-bottom: 16px;
}

.verse_source {
  display: inline-block;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 14px;
  font-weight: 600;
  font-style: normal;
}

.verse_note {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  margin-top: 16px;
  margin-bottom: 0;
}

.verse_area {
  background-color: var(--fbg);
  background-image: linear-gradient(115deg, #04231a 0%, #0d4a34 100%);
  position: relative;
  overflow: hidden;
}

.verse_area .verse_shape {
  position: absolute;
  left: -70px;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  opacity: 0.07;
}

/* Zitat im Fließtext */
.verse_inline {
  background-color: var(--f7);
  border-left: 4px solid var(--yellow);
  border-radius: 0 12px 12px 0;
  padding: 28px 32px;
  margin: 34px 0;
}

.verse_inline .verse_arabic {
  color: var(--title);
  font-size: 30px;
  text-align: right;
  margin-bottom: 16px;
  line-height: 1.9;
}

.verse_inline .verse_translation {
  color: var(--title);
  font-size: 18px;
  margin-bottom: 10px;
}

.verse_inline .verse_translit {
  color: var(--body);
  font-size: 14px;
}

.verse_inline .verse_source {
  color: var(--green);
}

/* Checkliste */
.check_list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check_list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 13px;
}

.check_list li:last-child {
  margin-bottom: 0;
}

.check_list li i {
  position: absolute;
  left: 0;
  top: 5px;
  color: var(--green);
  font-size: 17px;
}

/* Hinweiskasten */
.note_box {
  background-color: rgba(29, 142, 90, 0.06);
  border: 1px dashed var(--dc);
  border-radius: 15px;
  padding: 26px 30px;
  margin: 30px 0;
}

.note_box h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.note_box p:last-child {
  margin-bottom: 0;
}

.note_box.note_yellow {
  background-color: rgba(245, 197, 11, 0.09);
  border-color: rgba(245, 197, 11, 0.45);
}

/* Werte-Liste */
.value_list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.value_list li {
  position: relative;
  padding-left: 66px;
  margin-bottom: 28px;
}

.value_list li:last-child {
  margin-bottom: 0;
}

.value_list .val_icon {
  position: absolute;
  left: 0;
  top: 2px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--title);
  font-size: 20px;
}

.value_list h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.value_list p {
  margin-bottom: 0;
}

/* Kontaktkacheln */
.contact_tile {
  border: 1px solid var(--dc);
  border-radius: 15px;
  padding: 26px 28px;
  height: 100%;
  transition: 0.4s;
}

.contact_tile:hover {
  border-color: var(--yellow);
  box-shadow: var(--box-shadow);
}

.contact_tile .ct_icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
}

.contact_tile h3 {
  font-size: 19px;
  margin-bottom: 6px;
}

.contact_tile p {
  margin-bottom: 0;
}

.contact_tile .ct_main {
  font-size: 20px;
  font-weight: 600;
  color: var(--green);
}

/* Leistungsabschnitte auf der Detailseite */
.service_block {
  padding: 50px 0;
  border-top: 1px solid var(--dc);
}

.service_block:first-child {
  padding-top: 0;
  border-top: 0;
}

.service_block h2 {
  font-size: 30px;
  margin-bottom: 12px;
}

.service_block .lead_text {
  font-size: 18px;
  color: var(--title);
  margin-bottom: 18px;
}

/* Feste Soforthilfe-Leiste für Mobilgeräte */
.mobile_call_bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background-color: var(--fbg);
  padding: 8px;
  gap: 8px;
  box-shadow: 0 -4px 20px rgba(4, 32, 35, 0.25);
}

/* Feste Höhe, damit sich das Einwilligungsbanner exakt darüber setzen kann. */
.mobile_call_bar {
  height: 64px;
  align-items: center;
}

.mobile_call_bar a {
  flex: 1 1 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.mobile_call_bar .mcb_call {
  background-color: var(--yellow);
  color: var(--title);
}

.mobile_call_bar .mcb_contact {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
}

/* Einwilligungsbanner */
.consent_bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99998;
  background-color: var(--white);
  border-top: 3px solid var(--green);
  box-shadow: 0 -8px 40px rgba(4, 32, 35, 0.18);
  padding: 26px 0;
}

.consent_bar h2 {
  font-size: 21px;
  margin-bottom: 10px;
}

.consent_bar p {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.65;
}

.consent_actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.consent_actions .green_btn,
.consent_actions .green_border_btn {
  width: 100%;
  border: 1px solid var(--green);
}

@media only screen and (max-width: 767px) {
  .consent_bar {
    padding: 20px 0;
    max-height: 82vh;
    overflow-y: auto;
  }

  .consent_bar h2 {
    font-size: 18px;
  }

  .consent_bar p {
    font-size: 14px;
  }

  /* Das Banner sitzt über der Anrufleiste, damit die Soforthilfe auch
     vor der Einwilligungsentscheidung mit einem Tipp erreichbar bleibt. */
  .consent_bar {
    bottom: 64px;
    border-bottom: 1px solid var(--dc);
  }
}

/* Sprungmarke für Tastaturnutzung */
.skip_link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  background-color: var(--fbg);
  color: var(--white);
  padding: 12px 22px;
}

.skip_link:focus {
  left: 0;
  color: var(--white);
}

/* Sichtbarer Fokus für Tastaturbedienung */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

/* Nur für Screenreader */
.sr_only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Köderfeld gegen automatisierte Eintragungen */
.hp_field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Rückmeldung des Kontaktformulars */
.form_status {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 22px;
}

.form_status.ok {
  background-color: rgba(29, 142, 90, 0.08);
  border: 1px solid rgba(29, 142, 90, 0.35);
  color: #14603d;
}

.form_status.error {
  background-color: rgba(140, 47, 47, 0.06);
  border: 1px solid rgba(140, 47, 47, 0.3);
  color: var(--alert);
}

.req {
  color: var(--alert);
}

.field_hint {
  display: block;
  font-size: 14px;
  color: var(--ba);
  margin-top: 6px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--title);
}

.consent_row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.consent_row input {
  margin-top: 6px;
  accent-color: var(--green);
}

.consent_row label {
  font-size: 15px;
  margin-bottom: 0;
  font-weight: 400;
}

/* Rechtstexte */
.legal_text h2 {
  font-size: 24px;
  margin-top: 38px;
  margin-bottom: 14px;
}

.legal_text h2:first-child {
  margin-top: 0;
}

.legal_text h3 {
  font-size: 19px;
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal_text ul {
  padding-left: 20px;
  margin-bottom: 18px;
}

.legal_text li {
  list-style: disc;
  margin-bottom: 7px;
}

.legal_text address {
  font-style: normal;
  margin-bottom: 18px;
}

/* Fließtext auf Inhaltsseiten */
.rich_text ul,
.rich_text ol {
  padding-left: 20px;
  margin-bottom: 20px;
}

.rich_text li {
  list-style: disc;
  margin-bottom: 8px;
}

.rich_text ol li {
  list-style: decimal;
}

.rich_text h2 {
  font-size: 30px;
  margin-top: 42px;
  margin-bottom: 15px;
}

.rich_text h2:first-child {
  margin-top: 0;
}

.rich_text h3 {
  font-size: 21px;
  margin-top: 28px;
  margin-bottom: 12px;
}

/* Erreichbarkeitshinweis im Hero */
.hero_facts {
  list-style: none;
  margin: 38px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero_facts li {
  display: inline-block;
  margin-right: 28px;
  color: rgba(255, 255, 255, 0.88);
}

.hero_facts li i {
  color: var(--yellow);
  margin-right: 8px;
}

.hero_ornament {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  opacity: 0.1;
  z-index: 0;
}

/* Telefonblock in der Kopfzeile */
.header_call {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--title);
}

.header_call:hover,
.header_call:focus {
  color: var(--title);
}

.header_call .hc_icon {
  width: 47px;
  height: 47px;
  border-radius: 50%;
  background-color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--title);
  font-size: 18px;
  flex: 0 0 auto;
}

.header_call .hc_label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--body);
}

.header_call .hc_number {
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   c) Responsive Ergänzungen
   -------------------------------------------------------------------------- */

@media only screen and (max-width: 1199px) {
  .hero_ornament {
    display: none;
  }

  .slider-content {
    padding: 90px 0 170px;
  }

  .hero_facts li {
    display: block;
    margin: 0 0 10px;
  }
}

@media only screen and (max-width: 991px) {
  .emergency_box {
    padding: 34px 28px;
  }

  .emergency_box h2 {
    font-size: 26px;
  }

  .emergency_box .em_actions {
    margin-top: 24px;
  }

  .header_call .hc_text {
    display: none;
  }
}

@media only screen and (max-width: 767px) {
  .mobile_call_bar {
    display: flex;
  }

  .footer-area {
    padding-bottom: 78px;
  }

  .verse_arabic {
    font-size: 28px;
    line-height: 1.9;
  }

  .verse_translation {
    font-size: 18px;
  }

  .verse_inline {
    padding: 22px 20px;
  }

  .verse_inline .verse_arabic {
    font-size: 23px;
  }

  .steps_list > li {
    padding-left: 64px;
  }

  .steps_list > li::before,
  .steps_list > li::after {
    width: 46px;
    height: 46px;
    line-height: 46px;
    font-size: 15px;
  }

  .steps_list > li .step_line {
    left: 23px;
    top: 54px;
  }

  .service_block h2,
  .rich_text h2 {
    font-size: 25px;
  }

  .emergency_box h2 {
    font-size: 23px;
  }

  .brand_name {
    font-size: 22px;
  }

  .brand_claim {
    font-size: 10px;
  }

  .site-logo img,
  .footer-logo img {
    width: 38px;
  }

  .header_call {
    display: none;
  }
}

@media print {
  .header-top,
  .main-header,
  .mobile_call_bar,
  .progress-wrap,
  .emergency_box .em_actions {
    display: none !important;
  }
}
