/*
Theme Name: Herz-Licht Alltagshilfe
Theme URI: https://herz-licht-alltagshilfe.de/
Author: OPSALTECH
Author URI: https://www.opsaltech.de
Description: Individuelles WordPress-Theme für die Herz-Licht Betreuungsvermittlung GbR – Onepager zur Vermittlung von 24-h-Alltagsbetreuung. Alle Inhalte sind über den Customizer pflegbar, Schriften sind DSGVO-konform selbst gehostet, das Kontaktformular versendet über WordPress (wp_mail).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: herz-licht
Tags: one-column, custom-logo, custom-menu, editor-style, translation-ready
*/

/*
 * Die eigentlichen Styles liegen in assets/css/main.css und werden über
 * functions.php eingebunden. Diese Datei enthält nur den Theme-Header sowie
 * ergänzende Styles für WordPress-eigene Klassen (Standardseiten, Blog).
 */

.wp-page {
  padding-top: calc(var(--header-height) + var(--space-8));
  padding-bottom: var(--space-12);
  background: var(--color-surface);
}

.wp-page .entry-title {
  margin-bottom: var(--space-4);
}

.wp-page .entry-content > * + * {
  margin-top: var(--space-2);
}

.wp-page .entry-content h2,
.wp-page .entry-content h3 {
  margin-top: var(--space-5);
}

.wp-page .entry-content ul,
.wp-page .entry-content ol {
  padding-left: 1.5rem;
  list-style: revert;
}

.wp-page .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.wp-page .post-list-item {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

.wp-page .post-list-item:last-child {
  border-bottom: 0;
}

/* Honeypot – für Menschen unsichtbar, für Bots ein Köder. */
.hl-honeypot {
  position: absolute !important;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  width: auto;
  height: auto;
  padding: 12px 20px;
  clip: auto;
  margin: 0;
  overflow: visible;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  color: var(--color-primary-dark);
  font-weight: 600;
}

/* Der Admin-Bar-Offset darf den Sticky-Header nicht überlagern. */
body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

/* Datenschutzhinweis unter dem Kontaktformular */
.form-privacy-note {
  margin-bottom: var(--space-2);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.form-privacy-note a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Rechtstexte als eigene Seiten */
.hl-legal .entry-content h3 {
  margin-top: var(--space-4);
  margin-bottom: var(--space-1);
}

.hl-legal .entry-content p,
.hl-legal .entry-content li {
  color: var(--color-text-muted);
  line-height: 1.7;
}
