/* ===== Islamische Bestattungsvorsorge – Grundstile ===== */

/* Schriften lokal eingebunden (keine Verbindung zu Google) */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/cormorant-garamond-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/nunito-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/nunito-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/nunito-sans-latin-700-normal.woff2') format('woff2'); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #E6F6F3; }
img, svg { max-width: 100%; }
input, select, textarea, button { max-width: 100%; }
a { color: #00857B; }
a:hover { color: #00524F; }
section[id] { scroll-margin-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Ein-/Ausblenden der dynamischen Bereiche */
.if-wrap { display: contents; }
.if-wrap[hidden], [hidden] { display: none !important; }

/* Spam-Schutz-Feld (für Menschen unsichtbar) */
.hp-feld { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.btn-t, .btn-o, .btn-s, .btn-hb, .btn-hs { transition: background-color .15s ease, border-color .15s ease; }
.btn-t:hover { background: #00877D !important; }
.btn-o:hover { background: #A9853B !important; }
.btn-s:hover { background: #CDE9E4 !important; }
.btn-hb:hover { background: #A9853B !important; }
.btn-hs:hover { background: #00877D !important; border-color: #00877D !important; }
.btn-t:focus-visible, .btn-o:focus-visible, .btn-s:focus-visible, .btn-hb:focus-visible, .btn-hs:focus-visible { outline: 3px solid #00524F; outline-offset: 3px; box-shadow: 0 0 0 3px #FFFFFF; }
button[disabled] { opacity: .7; cursor: wait !important; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #00524F; outline-offset: 2px; }

/* Wellenlinien: auf schmalen Bildschirmen reduziert */
@media (max-width: 640px) { .wl-extra { display: none; } }

/* Lesefortschritt */
.lesefortschritt { transition: transform 90ms linear; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .lesefortschritt { transition: none; } }

/* Infobox im Abschnitt "Was ist ..." auf Höhe des Fließtexts */
@media (min-width: 1040px) { .was-box { margin-top: 160px; } }

/* Kleinere Überschriften auf dem Handy */
@media (max-width: 640px) {
  h1 { font-size: 34px !important; hyphens: auto; overflow-wrap: break-word; }
  h2[style*="font-size: 46px"] { font-size: 34px !important; }
  header nav { gap: 16px !important; }
}

/* Handy: feste Kopfzeile schlank halten – nur Logo und Beratungs-Button */
@media (max-width: 760px) {
  header nav a:not(.btn-t) { display: none; }
  header nav .btn-t { padding: 10px 14px !important; font-size: 15px; }
  header > div:last-child { flex-wrap: nowrap !important; padding: 12px 16px !important; }
  header img { width: 44px !important; height: 42px !important; }
  header a[aria-label] span span:first-child { font-size: 21px !important; letter-spacing: 1.6px !important; }
  header a[aria-label] span span:last-child { font-size: 11.5px !important; letter-spacing: 1.2px !important; }
  section[id] { scroll-margin-top: 76px; }
}

/* Sprunglink fuer Tastaturnutzer und Text nur fuer Screenreader */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 3000; background: #00524F; color: #FFFFFF; font-family: 'Nunito Sans', system-ui, sans-serif; font-weight: 700; padding: 12px 18px; border-radius: 6px; text-decoration: none; }
.skip-link:focus { top: 12px; color: #FFFFFF; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Sehr schmale Handys (320-360 px): Kopfzeile ohne seitliches Scrollen */
@media (max-width: 360px) {
  header > div:last-child { padding: 10px 12px !important; gap: 8px !important; }
  header img { width: 36px !important; height: 35px !important; }
  header a[aria-label] { gap: 8px !important; }
  header a[aria-label] span span:first-child { font-size: 18px !important; letter-spacing: 1px !important; }
  header a[aria-label] span span:last-child { font-size: 10px !important; letter-spacing: .6px !important; }
  header nav .btn-t { padding: 9px 10px !important; font-size: 14px; }
}
