/* ==========================================================================
   tohelp.de - Zusatz-Design für die Seite "Seite nicht gefunden" (404)
   Wird nach tohelp.css und tohelp-beitrag.css geladen.
   ========================================================================== */

.e4 h1 { max-width: 14em; }
.e4 section[id] { scroll-margin-top: 96px; }
.e4-adresse {
  display: inline-block; max-width: 100%; margin: 0 0 22px; padding: 7px 14px;
  font-size: 0.86rem; color: #55608A; background: #fff; border-radius: 999px;
  box-shadow: var(--shadow-sm); overflow-wrap: anywhere;
}
.e4-adresse[hidden] { display: none; }
.e4-adresse span { color: var(--navy); font-weight: 600; }

/* Pfeil "Weitere Möglichkeiten" */
.e4-weiter { text-align: center; margin-top: 44px; position: relative; z-index: 1; }
.e4-weiter-btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  background: none; border: 0; padding: 6px 14px; font: inherit; cursor: pointer; color: var(--navy);
}
.e4-weiter-txt { font-size: 0.92rem; font-weight: 600; color: #55608A; }
.e4-weiter-pfeil {
  width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-highlight), var(--gold-mid) 55%, var(--gold-dark)); color: #5A3B10;
  box-shadow: 0 10px 24px rgba(196, 126, 41, 0.35); animation: e4Hupf 1.7s ease-in-out infinite;
}
.e4-weiter-pfeil svg { width: 24px; height: 24px; }
.e4-weiter-btn:hover .e4-weiter-txt { color: var(--navy); }
.e4-weiter-btn:focus-visible { outline: 3px solid var(--gold-mid); outline-offset: 4px; border-radius: 18px; }
@keyframes e4Hupf { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* Wegweiser */
.e4-visual {
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, #fff 0%, #E9EFFF 70%);
  border-radius: 28px; padding: 18px 18px 6px; box-shadow: var(--shadow);
}
.e4-visual svg { width: 100%; max-width: 440px; height: auto; display: block; }
.e4-svg-404 { font: 800 190px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; fill: #01227D; opacity: 0.07; }
.e4-svg-t { font: 700 26px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; }
.e4-svg-t--gold { fill: #5A3B10; }
.e4-svg-t--navy { fill: #fff; }
.e4-svg-t--light { fill: #01227D; }

/* Vorschläge, Beliebte Beiträge */
.e4-vorschlag[hidden] { display: none; }
.e4-grid { grid-template-columns: repeat(3, 1fr); }
.e4-grid--3 { grid-template-columns: repeat(3, 1fr); }
.e4-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 780px; margin-left: auto; margin-right: auto; }
.e4-grid--1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.e4-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.e4-grid--4 .blog-card h3 { font-size: 1rem; }
.e4-grid--4 .blog-card-body { padding: 16px 18px 18px; }
.e4 .blog-card h3 a { color: inherit; text-decoration: none; }
.e4 .blog-card h3 a:hover { color: var(--blue-mid); }
.e4 .blog-card h3 a:focus-visible { outline: 2px solid var(--blue-mid); outline-offset: 3px; border-radius: 4px; }
.e4-seitenlinks { text-align: center; margin: 28px 0 0; font-size: 0.95rem; color: #55608A; }
.e4-seitenlinks[hidden] { display: none; }
.e4-seitenlinks a {
  display: inline-block; margin: 4px 4px 0; padding: 7px 16px; border-radius: 999px;
  background: #fff; color: var(--navy); font-weight: 600; text-decoration: none; box-shadow: var(--shadow-sm);
}
.e4-seitenlinks a:hover { box-shadow: var(--shadow); }

/* Drei Wege: unterschieden durch Fläche, nicht durch Randlinien */
.e4-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.e4-tile {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  padding: 30px 28px 26px; border-radius: var(--radius); border: 0; font: inherit; color: inherit;
  text-decoration: none; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.e4-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.e4-tile:focus-visible { outline: 3px solid var(--gold-mid); outline-offset: 3px; }
.e4-tile h3 { margin: 18px 0 8px; font-size: 1.3rem; color: inherit; }
.e4-tile p { margin: 0 0 22px; font-size: 0.98rem; line-height: 1.5; flex: 1; }
.e4-tile-icon { width: 54px; height: 54px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; }
.e4-tile-icon svg { width: 28px; height: 28px; }
.e4-tile-go { font-weight: 700; font-size: 0.98rem; }
.e4-tile-go span { display: inline-block; transition: transform 0.2s ease; }
.e4-tile:hover .e4-tile-go span { transform: translateX(4px); }

.e4-tile--navy { background: linear-gradient(135deg, var(--blue-light), var(--blue-dark)); color: #fff; }
.e4-tile--navy .e4-tile-icon { background: rgba(255,255,255,0.14); color: var(--gold-highlight); }
.e4-tile--navy p { color: #DCE5FB; }
.e4-tile--navy .e4-tile-go { color: var(--gold-highlight); }
.e4-tile--gold { background: linear-gradient(135deg, var(--gold-highlight), var(--gold-mid)); color: #4A3108; }
.e4-tile--gold .e4-tile-icon { background: rgba(255,255,255,0.55); color: #5A3B10; }
.e4-tile--gold p { color: #5F411A; }
.e4-tile--gold .e4-tile-go { color: #4A3108; }
.e4-tile--light { background: #fff; color: var(--navy); }
.e4-tile--light .e4-tile-icon { background: #E9EFFF; color: var(--blue-mid); }
.e4-tile--light p { color: #55608A; }
.e4-tile--light .e4-tile-go { color: var(--blue-mid); }

/* Suche */
.blog-card[hidden] { display: none; }
.e4-suchbox.e4-suchbox--liste { margin: 0 auto 45px; position: relative; }
/* Ratgeber-Übersicht: Der Hinweis liegt im festen Abstand von 45 Pixeln zur Liste und schiebt nichts. */
.e4-suchbox--liste .e4-hinweis { position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding-top: 10px; font-size: 0.95rem; line-height: 1.35; font-weight: 600; }
.blog-grid.is-gefiltert { min-height: 520px; align-content: start; }
@media (max-width: 640px) { .e4-suchbox.e4-suchbox--liste { margin-bottom: 64px; } .e4-suchbox--liste .e4-hinweis { font-size: 0.875rem; max-height: 3.4em; overflow: hidden; } }
.e4-hinweis { text-align: center; margin: 18px 0 0; font-weight: 600; color: var(--navy); }
.e4-hinweis[hidden] { display: none; }
.e4-link { font: inherit; font-weight: 700; color: var(--blue-mid); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.e4-link:focus-visible { outline: 3px solid var(--gold-mid); outline-offset: 2px; border-radius: 4px; }
.e4-suchbox { max-width: 760px; margin: 0 auto; }
.e4-feld { position: relative; }
.e4-feld-icon { position: absolute; left: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px; color: #55608A; pointer-events: none; }
.e4-eingabe {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink);
  padding: 17px 52px 17px 52px; border-radius: 999px; border: 1.5px solid #C7D3F5; background: #fff;
  box-shadow: var(--shadow-sm); appearance: none; -webkit-appearance: none;
}
.e4-eingabe::placeholder { color: #8189A8; }
.e4-eingabe:focus { outline: none; border-color: var(--blue-mid); box-shadow: 0 0 0 4px rgba(1, 47, 152, 0.14); }
.e4-eingabe::-webkit-search-cancel-button { display: none; }
.e4-loeschen {
  position: absolute; right: 12px; top: 50%; width: 34px; height: 34px; margin-top: -17px;
  border: 0; border-radius: 50%; background: #E9EFFF; color: var(--navy); font-size: 0.9rem; cursor: pointer;
}
.e4-loeschen[hidden] { display: none; }
.e4-loeschen:hover { background: #DCE5FB; }
.e4-loeschen:focus-visible, .e4-chip:focus-visible { outline: 3px solid var(--gold-mid); outline-offset: 2px; }
.e4-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.e4-chips[hidden] { display: none; }
.e4-chip {
  font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--navy); background: #fff;
  border: 0; border-radius: 999px; padding: 9px 18px; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.e4-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.e4-ergebnisse { margin-top: 14px; }
.e4-treffer { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.e4-treffer li { margin: 0; }
.e4-treffer a {
  display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-radius: 16px;
  background: #fff; color: var(--navy); text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.e4-treffer a:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.e4-treffer a:focus-visible { outline: 3px solid var(--gold-mid); outline-offset: 2px; }
.e4-treffer b { display: block; font-size: 1rem; line-height: 1.35; }
.e4-treffer small { display: block; font-size: 0.78rem; color: #8189A8; margin-top: 2px; }
.e4-treffer .e4-pfeil { margin-left: auto; font-weight: 700; color: var(--blue-mid); flex: none; }
.e4-keine {
  text-align: center; background: #fff; border-radius: 18px; padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.e4-keine p { margin: 0 0 16px; color: #3C4568; }
.e4-keine .cta-row { justify-content: center; }
.e4-mehr { text-align: center; margin: 18px 0 0; }
.e4-mehr a { font-weight: 700; color: var(--blue-mid); text-decoration: none; }

@media (max-width: 1060px) {
  .e4-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .e4-tiles { grid-template-columns: 1fr; }
  .e4-grid, .e4-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .e4-grid--1, .e4-grid--2 { max-width: none; }
  .e4-visual { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .e4-grid, .e4-grid--3, .e4-grid--2, .e4-grid--4 { grid-template-columns: 1fr; }
  .e4-grid--1 { grid-template-columns: 1fr; }
  .e4-beliebt .blog-card:nth-child(n+3) { display: none; } /* mobil nur zwei Beiträge, damit die Seite kurz bleibt */
  .e4 .cta-row .btn { width: 100%; }
  .e4-eingabe { padding-left: 48px; }
  .e4-svg-t { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .e4-weiter-pfeil { animation: none; }
  .e4-tile, .e4-chip, .e4-treffer a, .e4-tile-go span { transition: none; }
  .e4-tile:hover, .e4-chip:hover, .e4-treffer a:hover { transform: none; }
}
