/*
Theme Name: Hello Elementor Child
Theme URI: https://www.webtonia.de/
Description: Child-Theme für Paul Herkt GmbH. Enthält projektspezifische Anpassungen; das Parent-Theme bleibt unberührt und updatefähig.
Author: webtonia
Template: hello-elementor
Version: 1.3.0
License: GNU General Public License v3 or later
Text Domain: hello-elementor-child
*/

/* Projektspezifisches CSS ab hier. */

/* ==========================================================================
   Lokale Schriften (statt Google Fonts, 2026-11-12)
   ========================================================================== */

/* Google Sans Flex: dieselbe Datei wie die Elementor-Custom-Font (Post 12),
   aber MIT Gewichtsbereich. Elementor Pro schreibt bei variablen Fonts kein
   font-weight ins @font-face – ohne diese Regel werden fette Schnitte nur
   kuenstlich verdickt. Gleiche URL -> der Browser laedt die Datei nur einmal.
   Achsen laut fvar: wght 1–1000, wdth 25–151, opsz 6–144 (opsz regelt der
   Browser automatisch ueber font-optical-sizing). */
@font-face {
  font-family: 'Google Sans Flex';
  src: url('/wp-content/uploads/GoogleSansFlex-VariableFont_GRADRONDopszslntwdthwght.ttf') format('truetype');
  font-weight: 1 1000;
  font-stretch: 25% 151%;
  font-style: normal;
  font-display: swap;
}

/* Plus Jakarta Sans (Zaehler-Block der Startseite, HTML-Widget 84a5836):
   variable woff2 von Google, lokal abgelegt in fonts/. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Tablet / Handy – seitenweiter Feinschliff (2026-11-12)
   ========================================================================== */

/* Lange Links und Woerter (Impressum, Datenschutz) brechen um,
   statt ueber den Bildschirmrand zu laufen. */
.elementor-widget-text-editor { overflow-wrap: break-word; }
.elementor-widget-text-editor a { overflow-wrap: anywhere; }

@media (max-width: 1024px) {
  /* Lange Komposita (Hochleistungsriemen, Foerderanlagentechnik …) in
     schmalen Karten trennen. Erst ab 14 bzw. 15 Zeichen, damit normale
     Woerter (Generationen, Leidenschaft) nicht zerhackt werden. Braucht <html lang="de">. */
  .elementor-heading-title {
    -webkit-hyphens: auto; hyphens: auto;
    hyphenate-limit-chars: 14 6 5;
  }
  .elementor-widget-text-editor p,
  .elementor-icon-list-text {
    -webkit-hyphens: auto; hyphens: auto;
    hyphenate-limit-chars: 15 6 6;
  }

  /* Haekchen-Listen: Icon an die erste Zeile statt mittig an mehrzeilige
     Punkte haengen. */
  .elementor-icon-list-items .elementor-icon-list-item,
  .elementor-icon-list-items .elementor-icon-list-item > a { align-items: flex-start; }
  .elementor-icon-list-items .elementor-icon-list-icon { margin-top: .3em; }
}

/* Beitragsseiten (Hello-Vorlage, kein Elementor-Layout): Platz unter dem
   absolut positionierten Header. */
body.single-post .site-main { padding-top: 140px; }
@media (max-width: 767px) {
  body.single-post .site-main { padding-top: 110px; }
}

/* Beitragsseiten: Typografie und Bilder an die Website angleichen
   (Titel-Einblendung + Rücklink: functions.php). */
body.single-post .site-main {
  max-width: 820px; margin-left: auto; margin-right: auto;
  padding-left: 20px; padding-right: 20px; padding-bottom: 72px;
  font-family: "Google Sans Flex", sans-serif;
  font-size: 1.0625rem; line-height: 1.65; color: #1d1d1f;
}
body.single-post .site-main .entry-title {
  font-family: inherit; font-weight: 700; color: #2E3D87;
  font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.15;
  margin: 0 0 .75em;
}
body.single-post .page-content h2 {
  font-family: inherit; font-weight: 700; color: #2E3D87;
  font-size: 1.5rem; line-height: 1.25; margin: 1.6em 0 .6em;
}
body.single-post .page-content > h2:first-child { margin-top: 0; }
body.single-post .page-content p { margin: 0 0 1.1em; }
body.single-post .page-content ul { margin: 0 0 1.2em; padding-left: 1.25em; }
body.single-post .page-content li { margin: 0 0 .35em; }
body.single-post .page-content a { color: #E50019; }
body.single-post .ph-news-figure { margin: 2em 0; }
body.single-post .ph-news-figure img {
  display: block; width: 100%; height: auto; border-radius: 14px;
}
body.single-post .ph-news-figure figcaption {
  margin-top: .7em; font-size: .9rem; line-height: 1.5;
  font-style: normal; color: #5b5f6b;
}
body.single-post .ph-back-link { margin-top: 2.5em; }
/* Hello-Schlagwortzeile („Verschlagwortet …“) auf Beitragsseiten ausblenden */
body.single-post .post-tags { display: none; }
body.single-post .ph-back-link a {
  font-weight: 600; color: #2E3D87; text-decoration: none;
}
body.single-post .ph-back-link a:hover { color: #E50019; }
@media (max-width: 767px) {
  body.single-post .site-main { font-size: 1rem; }
  body.single-post .page-content h2 { font-size: 1.3rem; }
}
