/* ==========================================================================
   FRIDA Anpassungen – Aussehen
   Jeder Block gilt nur, wenn der passende Schalter ein ist (Klasse «fa-an-…» am <body>).
   Schriften der Website: ObviouslyNarrow (Titel), ObviouslyNormal (Rubrik),
   NeueHaas (Lauftext).
   ========================================================================== */

/* --- Lesezeichen-Symbol weg ---------------------------------------------- */
.fa-an-lesezeichen-weg .teaser__rememberRibbon,
.fa-an-lesezeichen-weg .lead__cta--remember { display: none !important; }

/* --- Zeichen Video / Podcast / Live -------------------------------------- */
.fa-an-zeichen .teaser__imageWrapper { position: relative; }
.fa-badge {
  position: absolute; right: 14px; bottom: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  font: 800 13px/1 ObviouslyNormal, sans-serif; text-transform: uppercase; letter-spacing: .04em;
  background: #fff; color: #1d1d1b; border: 2.5px solid #1d1d1b; border-radius: 999px;
  padding: 6px 12px 6px 10px; pointer-events: none;
}
.fa-badge i { font-style: normal; color: #ff4b00; font-size: 12px; }
@media (max-width: 767px) {
  /* Handy: oben rechts, weil die Textkarte unten über das Bild ragt */
  .fa-badge { right: 10px; top: 10px; bottom: auto; font-size: 12px; padding: 5px 10px 5px 8px; }
  /* der oberste Artikel ist randlos: mehr Abstand, sonst ragt das Zeichen über den Bildrand (seit 0.1.6) */
  .teaser__teaser--main .fa-badge { right: 16px; }
}

/* --- Text auf dem Unterstützen-Knopf ------------------------------------- */
/* Das Theme gibt Textteilen im Knopf auf Handy und Tablet einen eigenen Rand (gedacht für Knöpfe mit Symbol): hier aufheben (seit 0.1.3). */
.fa-an-knopf-text .header__cta > .fa-knopf { display: block; position: relative; margin: 0 !important; }
/* Ab Tablet sitzen die Versalien im Knopf des Themes knapp 1px zu tief: optisch einmitten. Auf dem Handy stimmt es ohne. */
@media (min-width: 768px) { .fa-an-knopf-text .header__cta > .fa-knopf { top: -.055em; } }
.fa-knopf-lang { display: none; }
/* Herz in FRIDA-Orange nach dem langen Text (Wunsch Luis, 5.12.2026). Es ist frei platziert, damit der Knopf gleich hoch bleibt.
   Beim Überfahren wird der Knopf orange, das Herz dann dunkel. */
@media (min-width: 768px) {
  .fa-an-knopf-text .fa-knopf-lang { position: relative; padding-right: 1.3em; }
  .fa-an-knopf-text .fa-knopf-lang::after {
    content: ""; position: absolute; right: 0; top: 50%; width: .95em; height: .83em; margin-top: -.31em;
    background: #ff4c00;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 21'%3E%3Cpath d='M12 21 1.8 10.9C-.6 8.5-.6 4.6 1.8 2.2 4.2-.2 8.1-.2 10.5 2.2L12 3.7l1.5-1.5c2.4-2.4 6.3-2.4 8.700 0 2.4 2.4 2.4 6.3 0 8.700z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 21'%3E%3Cpath d='M12 21 1.8 10.9C-.6 8.5-.6 4.6 1.8 2.2 4.2-.2 8.1-.2 10.5 2.2L12 3.7l1.5-1.5c2.4-2.4 6.3-2.4 8.700 0 2.4 2.4 2.4 6.3 0 8.700z'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}
.header__cta:hover .fa-knopf-lang::after, .header__cta:focus .fa-knopf-lang::after { background: currentColor; }
@media (min-width: 768px) {
  .fa-knopf-kurz { display: none; }
  .fa-knopf-lang { display: inline; }
  .fa-an-knopf-text .header__cta { white-space: nowrap; }
}

/* --- Logo «FRIDA Magazin» (ab 769 px; darunter bleibt «FRIDA») ------------
   Das Theme zeigt bis 768 px Breite (Handy, Tablet hochkant) einen schmalen Kopf mit Logo und Symbolen in einer Zeile.
   Dort bleibt alles wie bisher. Seit 0.1.6 (vorher ab 768 px: der Kopf brach bei genau 768 px um). */
@media (min-width: 769px) {
  /* Das alte Logo (Zeichenfläche und SVG des Themes) unsichtbar UND aus dem Fluss nehmen: Sonst bestimmt seine Höhe
     die Kopfhöhe mit. Bei rund 1024 px mass das Theme den Kopf beim Laden dadurch 94 px zu hoch (Lücke unter dem Kopf). Seit 0.1.8. */
  .fa-an-logo .header__logoLink .logo > svg,
  .fa-an-logo .header__logoLink .logo > canvas { visibility: hidden !important; position: absolute !important; left: 0; top: 0; width: 0 !important; height: 0 !important; overflow: hidden; }
  .fa-an-logo .header__logoLink .logo { position: relative; background: var(--fa-logo) left center / contain no-repeat !important; }
  /* grosser Kopf: Logo über die ganze Inhaltsbreite, wie im ursprünglichen Design */
  .fa-an-logo .header:not(.small) .header__logoWrapper,
  .fa-an-logo .header:not(.small) .header__logoLink { width: 100% !important; max-width: none !important; }
  .fa-an-logo .header:not(.small) .header__logoLink .logo { display: block !important; width: 100% !important; height: auto !important; aspect-ratio: 1887.68 / 257.57; }
  .fa-an-logo .header:not(.small) .header__menu { gap: 0 44px !important; }
  /* kleiner Kopf (Scrollen, Unterseiten): «FRIDA MAGAZIN» klein, ohne Seitenname */
  .fa-an-logo .header.small .header__logoLink .logo { display: block !important; width: 230px !important; height: 32px !important; }
  .fa-an-logo .header.small .header__mainnav--support { display: none !important; }
}

/* --- Kopf am Computer enger (Wunsch Luis, 5.12.2026) -----------------------
   Theme: oben 24, Logo bis Reiter 16, Reiter bis Knopf 20, unten 24 px. Neu 16 / 8 / 12 / 14 px.
   Nur im grossen Kopf ab 1025 px. Das Theme misst die Kopfhöhe beim Laden selbst und rückt den Inhalt nach. */
@media (min-width: 1025px) {
  .fa-an-kopf-enger .header:not(.small) .header__upper { padding-top: 16px !important; padding-bottom: 14px !important; }
  .fa-an-kopf-enger .header:not(.small) .header__logoWrapper { margin-bottom: 8px !important; }
  .fa-an-kopf-enger .header:not(.small) .header__cta { margin-top: 12px !important; }
}

/* --- Reiter im grossen Kopf 14 % kleiner (für die fünf neuen Reiter) ------
   Das Theme setzt die Reiter auf 3,611 % der Fensterbreite (höchstens 52 px), den Abstand auf 2,222 %.
   Ab 1440 px Breite wächst der Inhalt nicht mehr, darum die Obergrenze in px. */
@media (min-width: 1025px) {
  .fa-an-nav-kleiner .header:not(.small) .header__right .header__menu a { font-size: min(3.105vw, 44.7px) !important; }
  .fa-an-nav-kleiner .header:not(.small) .header__right .header__menu { gap: 0 min(1.911vw, 27.5px) !important; }
}

/* --- Titelbild im Artikel im 16:9-Rahmen (nur Computer) -------------------
   Querformat füllt den Rahmen, Ausschnitt oben ausgerichtet (Köpfe sind meist oben).
   Hochformat (Klasse «fa-hoch», setzt das Skript): ganzes Bild, dahinter dasselbe Bild unscharf. */
@media (min-width: 1025px) {
  .fa-an-titelbild-ganz .lead__image .image__imageWrapper { aspect-ratio: 16 / 9; overflow: hidden; position: relative; background: #1d1d1b; }
  .fa-an-titelbild-ganz .lead__image .image__image { width: 100% !important; height: 100% !important; object-fit: cover; object-position: center 18%; }
  .fa-an-titelbild-ganz .lead__image .image__imageWrapper.fa-hoch::before { content: ""; position: absolute; inset: -40px; background: var(--fa-tb) center / cover; filter: blur(28px) brightness(.55); }
  .fa-an-titelbild-ganz .lead__image .image__imageWrapper.fa-hoch .image__image { position: relative; display: block; margin: 0 auto; width: auto !important; max-width: 100%; object-fit: contain; }
}

/* --- Shop-Bilder in einheitlichen Feldern ---------------------------------
   Helle Fotos: weisses Feld, Foto ganz sichtbar mit Rand. Dunkle Fotos (Klasse «fa-dunkel», setzt das Skript,
   22 von 38 Produkten am 5.12.2026): Foto füllt das Feld, das Feld hat die Farbe des Fotos. Seit 0.1.9. */
.fa-an-shop-bilder .teaser--edition .teaser__imageWrapper {
  display: flex !important; align-items: center; justify-content: center;
  background: var(--fa-feld, #fff); overflow: hidden;
}
.fa-an-shop-bilder .teaser--edition .teaser__imageWrapper .teaser__image {
  width: 100% !important; height: 100% !important; object-fit: contain;
  padding: 7%; box-sizing: border-box; aspect-ratio: auto !important;
}
.fa-an-shop-bilder .teaser--edition .teaser__imageWrapper.fa-dunkel .teaser__image { padding: 0; object-fit: cover; }

/* --- Shop-Seite: weniger Luft über den Produkten (Wunsch Luis, 5.12.2026) ---
   Gemessen bei 1440 px: Text bis blaue Fläche 167 → 48, blaue Fläche bis Filterknöpfe 77 → 32, Knöpfe bis Produkte 132 → 32.
   Handy (375 px): 135 → 43, 52 → 30, 102 → 32. Leere Absätze im Einleitungstext markiert das Skript mit «fa-leer». */
.fa-an-shop-abstaende .text--edition p.fa-leer { display: none; }
.fa-an-shop-abstaende section.text--edition { padding-bottom: 26px !important; }
.fa-an-shop-abstaende section.teaser--edition { padding-top: 16px !important; }
.fa-an-shop-abstaende .teaser--edition .teaser__productFilter { padding-top: 0 !important; padding-bottom: 0 !important; }
.fa-an-shop-abstaende .teaser--edition .teaser__productFilterWrapper { margin-bottom: 32px !important; }

/* --- Spendenseite ohne animierte Sterne (Wunsch Luis, 5.12.2026: lenken vom Text ab) ---
   Die Sterne sind eine feste Ebene hinter dem Inhalt (main > .footer__animation). Die im Fuss der Seite bleiben. */
.fa-an-sterne-spenden.fa-spendenseite main > .footer__animation { display: none !important; }

/* --- Shop-Block auf der Startseite ---------------------------------------- */
.fa-shopblock { position: relative; z-index: 2; }
.fa-shopblock__innen {
  max-width: 1312px; margin: 32px auto; padding: 26px 32px; box-sizing: border-box;
  width: calc(100% - 128px);
  background: #37c3ff; border-radius: 20px;
  display: flex; gap: 32px; align-items: center; flex-wrap: wrap;
}
/* innerhalb eines Artikel-Blocks gibt der Block die Breite vor */
.fa-shopblock--innen { width: 100%; grid-column: 1 / -1; flex: 0 0 100%; }
.fa-shopblock--innen .fa-shopblock__innen { width: 100%; margin: 0; }
.fa-shopblock__bilder { display: flex; gap: 12px; }
.fa-shopblock__bild {
  width: 92px; height: 128px; background: #fff; border-radius: 10px;
  display: grid; place-items: center; overflow: hidden;
}
.fa-shopblock__bild img { max-width: 86%; max-height: 90%; width: auto; height: auto; object-fit: contain; }
.fa-shopblock__text { flex: 1; min-width: 260px; }
.fa-shopblock__marke { margin: 0 0 6px; font: 800 15px/1.2 ObviouslyNormal, sans-serif; color: #1d1d1b; }
.fa-shopblock__titel { margin: 0; font: 700 34px/1.05 ObviouslyNarrow, sans-serif; color: #1d1d1b; }
.fa-shopblock__knopf {
  font: 800 15px/1 ObviouslyNormal, sans-serif; text-transform: uppercase; letter-spacing: .03em;
  border: 3px solid #1d1d1b; border-radius: 999px; padding: 12px 22px;
  background: #fff; color: #1d1d1b; text-decoration: none; white-space: nowrap;
}
.fa-shopblock__knopf:hover { background: #1d1d1b; color: #fff; }
/* das Theme unterstreicht jeden Link mit einem orangen Strich (a::after): hier nicht */
.fa-shopblock a::after, .fa-fenster a::after { content: none !important; display: none !important; }
@media (max-width: 767px) {
  .fa-shopblock__innen { width: calc(100% - 32px); margin: 30px auto; padding: 20px; gap: 18px; border-radius: 16px; }
  .fa-shopblock__bild { width: 76px; height: 106px; }
  .fa-shopblock__titel { font-size: 26px; }
  .fa-shopblock__text { min-width: 0; flex-basis: 100%; }
}

/* --- Fenster für Newsletter und Spenden ----------------------------------- */
.fa-fenster {
  position: fixed; right: 24px; bottom: 24px; z-index: 9990;
  width: min(420px, calc(100vw - 48px)); box-sizing: border-box;
  background: #fff; color: #1d1d1b; border: 3px solid #1d1d1b; border-radius: 20px;
  padding: 26px 26px 22px; box-shadow: 8px 8px 0 #1d1d1b;
  transform: translateY(calc(100% + 60px)); transition: transform .45s cubic-bezier(.2, .8, .2, 1);
  font-family: NeueHaas, sans-serif;
}
.fa-fenster.fa-offen { transform: none; }
.fa-fenster__marke { margin: 0 0 8px; font: 800 14px/1.2 ObviouslyNormal, sans-serif; color: #ff4b00; text-transform: uppercase; letter-spacing: .04em; }
.fa-fenster__titel { margin: 0 34px 10px 0; font: 700 34px/1 ObviouslyNarrow, sans-serif; }
.fa-fenster__text { margin: 0 0 16px; font-size: 16px; line-height: 1.45; }
.fa-fenster__zeile { display: flex; gap: 8px; }
.fa-fenster__mail {
  flex: 1; min-width: 0; font: 16px/1.2 NeueHaas, sans-serif; color: #1d1d1b;
  border: 2.5px solid #1d1d1b; border-radius: 999px; padding: 12px 16px; background: #fff;
}
.fa-fenster__knopf {
  display: inline-block; font: 800 15px/1 ObviouslyNormal, sans-serif; text-transform: uppercase; letter-spacing: .03em;
  background: #ff4b00; color: #fff; border: 2.5px solid #ff4b00; border-radius: 999px; padding: 13px 20px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.fa-fenster__knopf:hover, .fa-fenster__knopf:focus-visible { background: #1d1d1b; border-color: #1d1d1b; }
.fa-fenster__nein {
  display: block; margin: 12px 0 0; padding: 4px 0; background: none; border: 0; cursor: pointer;
  font: 14px/1.2 NeueHaas, sans-serif; color: #6b6560; text-decoration: underline;
}
.fa-fenster__zu {
  position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 50%;
  border: 2.5px solid #1d1d1b; background: #fff; color: #1d1d1b; cursor: pointer; font: 700 20px/1 sans-serif;
  padding: 0; display: grid; place-items: center;
}
.fa-fenster :focus-visible { outline: 3px solid #37c3ff; outline-offset: 2px; }
@media (max-width: 767px) {
  /* Handy: Leiste von unten, kein Vollbild */
  .fa-fenster { right: 0; bottom: 0; left: 0; width: auto; border-radius: 20px 20px 0 0; border-width: 3px 0 0; box-shadow: none; padding: 20px 18px calc(16px + env(safe-area-inset-bottom)); }
  .fa-fenster__titel { font-size: 28px; }
  .fa-fenster__text { font-size: 15px; margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { .fa-fenster { transition: none; } }
