/*
Theme Name: Hadulla Media und EDV Beratung
Theme URI: https://www.hadulla.de
Author: Christian Hadulla
Description: Block-Theme fuer die Website von Hadulla Media und EDV Beratung. Ruhiges Layout nach dem Vorbild opendesk-sme.org.
Version: 2.11.0
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.2
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hadulla-consulting
*/

/* Inter als Variable Font, einzige Schrift der Seite. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}

/* Version 2: ruhigeres Layout nach dem Vorbild opendesk-sme.org.
   Farben unveraendert aus Version 1. Grundsaetze: eine zentrierte Spalte,
   gleiche Abstaende fuer alle Abschnitte, eine Schrift, Orange nur als Akzent,
   keine Bewegung ausser auf Nutzeraktion. */

:root {
  --ink: #102a2d;
  --ink-soft: #173538;
  --paper: #f4f1e9;
  --white: #fffefa;
  --accent: #ef8f3b;
  --mint: #8bc7b3;
  --line: #d2cec2;
  --muted: #56706e;
  --muted-on-ink: #b7c8c5;
  --container: 1040px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section-y: clamp(4.5rem, 8vw, 6.5rem);
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: inherit; color: inherit; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 750; letter-spacing: -.025em; line-height: 1.2; margin-bottom: 1.1rem; }
h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; margin-bottom: .5rem; }

/* Gemeinsame Innenbreite fuer alle Abschnitte */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* Kleine Abschnittskennung ueber der Ueberschrift */
.eyebrow { margin: 0 0 .9rem; color: #2f7a6d; font-size: .9rem; font-weight: 650; letter-spacing: 0; }
.eyebrow.on-ink { color: var(--mint); }

.lead { color: var(--muted); font-size: 1.1rem; max-width: 640px; }

/* ---------- Kopf ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(16, 42, 45, .96);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: saturate(140%) blur(8px);
}
.header-inner {
  max-width: 1200px; height: 64px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 2rem;
}
.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand-mark {
  width: 34px; height: 34px; flex: none; display: block; border-radius: var(--radius-sm);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12);   /* Logo-Grund #1d1d1b hebt sich vom Kopf ab */
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-copy strong { font-size: .92rem; font-weight: 700; text-wrap: balance; }  /* langer Name: gleichmaessig auf zwei Zeilen */
.button { white-space: nowrap; }
.brand-copy small { color: #9fb4b1; font-size: .72rem; }
.site-nav { display: flex; gap: 1.75rem; font-size: .92rem; color: #d3dedc; }
.site-nav a:hover { color: var(--white); }

/* ---------- Schaltflaechen ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: 0 1.3rem; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 650; line-height: 1; border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease;
}
.button-primary { background: var(--accent); color: var(--ink); }
.button-primary:hover { background: #f5a25b; }
.button-ghost { border-color: rgba(255,255,255,.28); color: var(--white); }
.button-ghost:hover { border-color: rgba(255,255,255,.6); }
.button-small { min-height: 36px; padding: 0 .95rem; font-size: .85rem; }
.text-link { font-weight: 650; border-bottom: 1px solid var(--accent); }
.text-link:hover { color: #b8621b; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(5rem, 11vw, 8.5rem) 0 clamp(4.5rem, 8vw, 6.5rem);
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(139,199,179,.16), transparent 70%),
    radial-gradient(40% 40% at 90% 100%, rgba(139,199,179,.07), transparent 70%),
    var(--ink);
  color: var(--white); text-align: center;
}
.hero .container { max-width: 1000px; }
.badge {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 2rem;
  padding: .4rem .95rem; border: 1px solid rgba(139,199,179,.35); border-radius: 999px;
  background: rgba(139,199,179,.07); color: #cfe3dc; font-size: .85rem;
}
.badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.hero h1 em { display: block; font-style: normal; color: #cfe3dc; }
.hero-intro { max-width: 640px; margin: 0 auto; color: var(--muted-on-ink); font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin-top: 2.4rem; }
.trust-line {
  display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.6rem;
  margin: 2.6rem 0 0; padding: 0; list-style: none; color: #9fb4b1; font-size: .88rem;
}
.trust-line li { display: flex; align-items: center; gap: .4rem; }
.trust-line svg { color: var(--mint); }

/* ---------- Abschnitte ---------- */
.section { padding: var(--section-y) 0; }
/* Startseite: engere Abschnittsabstaende als der Grundwert (der gilt weiter
   fuer Rechtsseiten und Blog). --section-y steuert Abstand und Trennlinie. */
body.home main { --section-y: clamp(2.5rem, 4.4vw, 3.25rem); }
/* Kurze Trennlinie zwischen zwei hellen Abschnitten */
.section + .section:before {
  content: ""; display: block; width: 72px; height: 1px; margin: calc(var(--section-y) * -1) auto var(--section-y);
  background: var(--line);
}
.section-heading { max-width: 700px; margin-bottom: 3rem; }
.section-heading h2 { margin-bottom: 1rem; }
.section-heading p:last-child { color: var(--muted); margin-bottom: 0; }

/* Zielgruppen */
.audience .statement { max-width: 760px; font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 650; letter-spacing: -.02em; line-height: 1.35; margin-bottom: 2.5rem; }
.audience-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.audience-list li { padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.audience-list strong { display: block; color: var(--ink); font-weight: 650; }

/* Leistungen */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service-card {
  padding: 1.75rem; background: var(--white);
  border: 1px solid rgba(16,42,45,.1); border-radius: var(--radius);
}
.service-icon {
  width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 1.25rem;
  border-radius: 10px; background: rgba(139,199,179,.22); color: var(--ink);
}
.service-card p { color: var(--muted); font-size: .95rem; line-height: 1.65; margin-bottom: 1.1rem; }
.service-card ul { list-style: none; padding: 0; margin: 0; color: #345350; font-size: .87rem; }
.service-card li { display: flex; align-items: baseline; gap: .55rem; padding: .2rem 0; }
.service-card li:before { content: ""; flex: 0 0 5px; height: 5px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
/* Karte mit Detailseite: der Link liegt ueber der ganzen Karte, sie ist als
   Ganzes anklickbar und braucht trotzdem nur einen Link im Markup. */
.service-card.has-link { position: relative; transition: border-color .15s ease; }
.service-card.has-link:hover { border-color: rgba(16,42,45,.28); }
.service-more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem; font-size: .92rem; font-weight: 650; border-bottom: 1px solid var(--accent); }
.service-more:after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.service-card.has-link:hover .service-more { color: #b8621b; }
/* Karten einer Zeile sind gleich hoch: "Mehr erfahren" steht dann unten. */
.service-card.has-link { display: flex; flex-direction: column; }
.service-card.has-link .service-side { display: flex; flex-direction: column; flex: 1; }
.service-card.has-link .service-more { align-self: flex-start; margin-top: auto; }
.service-card.has-link ul { margin-bottom: 1.1rem; }

/* Vorgehen: echte Reihenfolge, daher nummeriert */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 0; padding: 0; list-style: none; }
.step { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.step-number { display: block; margin-bottom: .6rem; color: var(--muted); font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.step p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }

/* Wann ich helfen kann */
.fit-section .container { max-width: 800px; }
.fit-section ul { list-style: none; padding: 0; margin: 2rem 0 0; }
.fit-section li { display: flex; align-items: flex-start; gap: .8rem; padding: .95rem 0; border-bottom: 1px solid var(--line); color: #2f4c49; }
.fit-section li:first-child { border-top: 1px solid var(--line); }
.fit-section li svg { flex: 0 0 auto; margin-top: .3rem; color: #2f7a6d; }

/* Kontakt */
.contact-panel {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.75rem, 4vw, 3rem); background: var(--white);
  border: 1px solid rgba(16,42,45,.1); border-radius: var(--radius);
}
.contact-copy h2 { margin-bottom: 1rem; }
.contact-copy > h2 + p { color: var(--muted); margin-bottom: 0; }
.contact-card {
  align-self: start; padding: 1.75rem; border-radius: var(--radius);
  background: var(--ink); color: var(--white); display: flex; flex-direction: column;
}
.contact-card small { color: #9fb4b1; font-size: .85rem; margin-bottom: 1rem; }
.contact-card strong { font-size: 1.2rem; font-weight: 700; }
.contact-card > span { color: #a9bfbb; font-size: .9rem; }
.contact-card a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem;
  padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.14); color: var(--accent); font-weight: 650; overflow-wrap: anywhere;
}
.contact-card a:hover { color: #f5a25b; }
.contact-card p { color: #869f9b; font-size: .78rem; margin: .9rem 0 0; }

/* ---------- Fuss ---------- */
footer { background: var(--ink); color: var(--white); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 2rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap;
}
.footer-inner > p { margin: 0; color: #9bb0ad; font-size: .85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; color: #9bb0ad; font-size: .85rem; }
.footer-links a:hover, .footer-consent:hover { color: var(--white); }
/* Oeffnet das Complianz-Banner erneut (Widerruf der Auswahl) */
.footer-consent { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }

/* ---------- Mobile Navigation (ohne JavaScript) ---------- */
.mobile-menu { display: none; position: relative; }
.mobile-menu > summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 40px; height: 40px; color: #cbd8d5; }
.mobile-menu > summary::-webkit-details-marker { display: none; }
.mobile-nav {
  position: absolute; right: 0; top: calc(100% + .6rem); z-index: 40;
  display: flex; flex-direction: column; min-width: 220px; padding: .5rem;
  background: var(--ink-soft); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.mobile-nav a { padding: .7rem .85rem; border-radius: var(--radius-sm); font-size: .95rem; color: #dce5e3; }
.mobile-nav a:hover { background: rgba(255,255,255,.06); color: var(--white); }

/* ---------- Umbrueche ---------- */
/* Zwischen Handy und Desktop reicht der Platz nicht fuer Name, Menue und Knopf;
   "Kontakt" steht ohnehin im Menue. */
@media (min-width: 761px) and (max-width: 1000px) { .header-cta { display: none; } }
@media (max-width: 960px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-list { grid-template-columns: repeat(2, 1fr); }
  .contact-panel { grid-template-columns: 1fr; }
  .contact-card { max-width: 440px; }
}
@media (max-width: 760px) {
  .site-nav, .header-cta { display: none; }
  .mobile-menu { display: block; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .service-grid { grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
}
@media (max-width: 430px) {
  .brand-copy small { display: none; }
  .audience-list { grid-template-columns: 1fr; gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .service-card.has-link { transition: none; }
}

/* ---------- Rechtsseiten ----------
   Impressum, Datenschutz, Privacy Policy. Inhalt aus content/legal/*.html in
   einer Gruppe mit der Klasse "legal"; page.html setzt main.legal-page. */
main.legal-page { max-width: 800px; margin: 0 auto; padding: var(--section-y) var(--gutter); }
main.legal-page > .wp-block-post-title { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 2rem; overflow-wrap: break-word; hyphens: auto; }
/* WordPress zentriert Kinder von post-content ("is-layout-constrained") per
   margin auto !important - nur !important schlaegt das. */
.legal { max-width: 760px; margin-left: 0 !important; color: #365552; line-height: 1.75; }
.legal .eyebrow { margin-bottom: 1.5rem; }
.legal .eyebrow span { display: none; }
.legal .legal-lead { color: var(--ink); font-size: 1.1rem; line-height: 1.65; }
.legal h2 { font-size: 1.35rem; font-weight: 700; color: var(--ink); letter-spacing: -.015em; line-height: 1.3; margin: 2.75rem 0 .8rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.legal h3 { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 1.8rem 0 .5rem; }
.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.legal li { margin-bottom: .3rem; }
.legal li::marker { color: var(--accent); }
.legal a { color: var(--ink); font-weight: 650; border-bottom: 1px solid var(--accent); }
.legal a:hover { color: #b8621b; }
.legal .legal-updated { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
/* Offene Angaben in den Rechtstexten. Absichtlich auffaellig, damit keiner
   uebersehen wird; der Abnahmetest warnt, solange einer im Text steht. */
.legal mark.todo { background: #ffe3c4; color: #7a3a07; padding: .05rem .3rem; border-radius: 4px; font-weight: 600; }

/* ---------- Kontaktformular ----------
   Contact Form 7, Formular aus content/forms/kontakt.php. */
.contact-form { margin-top: 2rem; }
.hc-form label { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.1rem; color: var(--ink); font-size: .88rem; font-weight: 600; }
.hc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.1rem; }
.hc-form input[type="text"], .hc-form input[type="email"], .hc-form input[type="tel"], .hc-form textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid rgba(16,42,45,.22); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font: 400 1rem/1.5 Inter, ui-sans-serif, system-ui, sans-serif;
}
.hc-form textarea { min-height: 8.5rem; resize: vertical; }
.hc-form input:focus, .hc-form textarea:focus { outline: 2px solid rgba(47,122,109,.45); outline-offset: 0; border-color: #2f7a6d; }
.hc-form .hc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hc-form-note { color: var(--muted); font-size: .82rem; line-height: 1.6; margin: .2rem 0 1.3rem; }
.hc-form-note a { border-bottom: 1px solid var(--ink); font-weight: 600; }
/* CF7 rendert ein input[type=submit] nur mit button-primary, ohne .button */
.hc-form .button-primary { min-height: 46px; padding: 0 1.3rem; border: 0; border-radius: var(--radius-sm); cursor: pointer; font: 650 .95rem Inter, ui-sans-serif, system-ui, sans-serif; }
.hc-form .wpcf7-spinner { margin: 0 0 0 1rem; vertical-align: middle; }
.hc-form .wpcf7-not-valid-tip { color: #8a2d0c; font-size: .8rem; font-weight: 500; }
.hc-form .wpcf7-response-output { margin: 1.3rem 0 0 !important; padding: .85rem 1rem !important; border: 1px solid var(--ink) !important; border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font-size: .9rem; }
.hc-form.invalid .wpcf7-response-output, .hc-form.failed .wpcf7-response-output, .hc-form.spam .wpcf7-response-output { border-color: #8a2d0c !important; }
.hc-form.sent .wpcf7-response-output { border-color: var(--ink) !important; background: var(--ink); color: var(--white); }
@media (max-width: 760px) { .hc-form-grid { grid-template-columns: 1fr; } }

/* ---------- Blog ----------
   Uebersicht (home.html, archive.html) und Beitrag (single.html). Gleiche
   Bausteine wie die Startseite: dunkler Kopfbereich, helle Karten, eine Spalte. */
.page-hero {
  padding: clamp(4rem, 8vw, 6rem) var(--gutter) clamp(3.5rem, 6vw, 4.5rem);
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(139,199,179,.14), transparent 70%),
    var(--ink);
  color: var(--white); text-align: center;
}
.page-hero > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 1rem; }
.page-hero .eyebrow a { border-bottom: 1px solid rgba(139,199,179,.5); }
.page-hero-intro { color: var(--muted-on-ink); font-size: clamp(1.02rem, 1.5vw, 1.15rem); margin-bottom: 0; }

.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.post-card {
  display: flex; flex-direction: column; height: 100%; padding: 1.75rem; background: var(--white);
  border: 1px solid rgba(16,42,45,.1); border-radius: var(--radius);
  transition: border-color .15s ease;
}
.post-card:hover { border-color: rgba(16,42,45,.28); }
.post-card-image { margin: -1.75rem -1.75rem 1.4rem; }
.post-card-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.post-card-date { color: #2f7a6d; font-size: .85rem; font-weight: 650; margin-bottom: .5rem; font-variant-numeric: tabular-nums; }
.post-card-title { font-size: 1.3rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.3; margin: 0 0 .7rem; }
.post-card-title a:hover { color: #2f4c49; }
.post-card-excerpt { color: var(--muted); font-size: .95rem; line-height: 1.65; margin-top: auto; }
.post-card-excerpt p { margin: 0 0 1rem; }
.post-card-excerpt .wp-block-post-excerpt__more-text { margin: 0; }
.post-card-excerpt .wp-block-post-excerpt__more-link { color: var(--ink); font-weight: 650; border-bottom: 1px solid var(--accent); }
.post-card-excerpt .wp-block-post-excerpt__more-link:hover { color: #b8621b; }

.blog-pagination { margin-top: 2.5rem; font-weight: 650; font-size: .95rem; gap: 1rem; }
.blog-pagination a:hover { color: #b8621b; }
.blog-pagination .page-numbers { padding: .2rem .55rem; border-radius: 6px; }
.blog-pagination .page-numbers.current { background: var(--ink); color: var(--white); }
.blog-empty {
  max-width: 640px; margin: 0 auto; padding: 2rem; text-align: center; color: var(--muted);
  background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius);
}

/* Beitrag: Lesespalte wie die Rechtsseiten */
main.article-page { max-width: 800px; margin: 0 auto; padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) var(--section-y); }
.article-back { margin-bottom: 2rem; font-size: .92rem; font-weight: 650; }
.article-back a { color: var(--muted); }
.article-back a:hover { color: var(--ink); }
.article-meta { gap: .4rem .9rem; margin-bottom: 1rem; color: #2f7a6d; font-size: .9rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.article-meta a:hover { color: var(--ink); }
main.article-page > .wp-block-post-title { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 2rem; overflow-wrap: break-word; hyphens: auto; }
.article-image { margin: 0 0 2.5rem; }
.article-image img { display: block; width: 100%; height: auto; border-radius: var(--radius); }

/* WordPress zentriert Kinder von post-content per margin auto !important (wie bei .legal) */
.article-content { color: #2f4c49; font-size: 1.05rem; line-height: 1.8; }
.article-content > * { max-width: 100%; margin-left: 0 !important; margin-right: 0 !important; }
.article-content p { margin: 0 0 1.3rem; }
.article-content h2 { font-size: 1.6rem; font-weight: 750; color: var(--ink); letter-spacing: -.02em; line-height: 1.25; margin: 3rem 0 1rem; }
.article-content h3 { font-size: 1.2rem; font-weight: 700; color: var(--ink); margin: 2.2rem 0 .7rem; }
.article-content a { color: var(--ink); font-weight: 650; border-bottom: 1px solid var(--accent); }
.article-content a:hover { color: #b8621b; }
.article-content ul, .article-content ol { margin: 0 0 1.3rem; padding-left: 1.3rem; }
.article-content li { margin-bottom: .35rem; }
.article-content li::marker { color: var(--accent); }
.article-content blockquote {
  margin: 2rem 0; padding: .3rem 0 .3rem 1.4rem; border-left: 3px solid var(--accent);
  color: var(--ink); font-size: 1.12rem; font-weight: 550;
}
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content blockquote cite { display: block; margin-top: .6rem; color: var(--muted); font-size: .88rem; font-style: normal; font-weight: 500; }
.article-content code {
  padding: .12rem .35rem; border-radius: 5px; background: rgba(16,42,45,.07);
  font: 500 .88em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.article-content pre {
  margin: 1.8rem 0; padding: 1.2rem 1.4rem; overflow-x: auto; border-radius: var(--radius-sm);
  background: var(--ink); color: #dce5e3; font-size: .9rem; line-height: 1.6;
}
.article-content pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.article-content figure { margin: 2rem 0; }
.article-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.article-content figcaption { margin-top: .6rem; color: var(--muted); font-size: .85rem; text-align: left; }
.article-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.article-content th, .article-content td { padding: .6rem .7rem; border-bottom: 1px solid var(--line); text-align: left; }
.article-content hr { margin: 2.5rem 0; border: 0; border-top: 1px solid var(--line); }

.article-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; font-size: .85rem; }
.article-tags a { padding: .25rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.article-tags a:hover { border-color: var(--ink); color: var(--ink); }

.article-cta {
  margin: 3.5rem 0 2.5rem; padding: clamp(1.6rem, 4vw, 2.4rem); border-radius: var(--radius);
  background: var(--ink); color: var(--white);
}
.article-cta h2 { font-size: 1.45rem; margin-bottom: .6rem; }
.article-cta p { color: var(--muted-on-ink); margin-bottom: 1.4rem; }
.article-cta p:last-child { margin-bottom: 0; }

.article-nav { gap: 1rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .92rem; }
.article-nav .post-navigation-link-previous, .article-nav .post-navigation-link-next { max-width: 48%; color: var(--muted); }
.article-nav .post-navigation-link-next { margin-left: auto; text-align: right; }
.article-nav a { display: block; color: var(--ink); font-weight: 650; }
/* WordPress zeigt bei showTitle nur den Titel - die Richtung steht darueber */
.article-nav .post-navigation-link-previous:before,
.article-nav .post-navigation-link-next:before { display: block; margin-bottom: .2rem; color: var(--muted); font-size: .82rem; font-weight: 600; }
.article-nav .post-navigation-link-previous:before { content: "← Älterer Beitrag"; }
.article-nav .post-navigation-link-next:before { content: "Neuerer Beitrag →"; }
/* Ohne Nachbarbeitrag rendert WordPress einen leeren Container - dann keine Beschriftung */
.article-nav .post-navigation-link-previous:not(:has(a)):before,
.article-nav .post-navigation-link-next:not(:has(a)):before { content: none; }
.article-nav a:hover { color: #b8621b; }

@media (max-width: 760px) {
  .post-grid { grid-template-columns: 1fr; }
  .article-nav .post-navigation-link-previous, .article-nav .post-navigation-link-next { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .post-card { transition: none; } }

/* ---------- Leistungs-Detailseite ----------
   templates/page-integration-von-industriegeraeten.html mit dem Pattern
   service-integration. Kopf wie beim Blog (page-hero), darunter die Bausteine
   der Startseite; hier nur, was dort nicht vorkommt. */
.page-hero h1 { overflow-wrap: break-word; hyphens: auto; }
/* Kompakter als die Startseite: die Seite hat sechs kurze Abschnitte, mit den
   Abstaenden der Startseite bestuende sie zur Haelfte aus Zwischenraum.
   --section-y steuert Abschnittsabstand und Trennlinie gemeinsam. */
main.detail-page { --section-y: clamp(2rem, 3.6vw, 2.75rem); }
.detail-page .page-hero { padding-top: clamp(2.5rem, 4.5vw, 3.5rem); padding-bottom: clamp(2.25rem, 4vw, 3rem); }
.detail-page .page-hero h1 { margin-bottom: .8rem; }
.detail-page .page-hero .trust-line { margin-top: 1.4rem; }
.detail-page .section-heading { margin-bottom: 1.5rem; }
.detail-page .section-heading h2 { margin-bottom: .7rem; }
.detail-page .section-heading > h2:last-child { margin-bottom: 0; }
.detail-page .eyebrow { margin-bottom: .5rem; }
.detail-page .service-card { padding: 1.35rem; }
.detail-page .service-icon { margin-bottom: .9rem; }
.detail-page .audience .statement { margin-bottom: 1.4rem; }
.detail-page .audience-list { gap: 1rem 1.5rem; }
.detail-page .audience-list li { padding-top: .7rem; }
.detail-page .step { padding-top: .9rem; }
.detail-page .step-number { margin-bottom: .35rem; }
/* Ausgangslage: Text links, Schnittstellen rechts - statt untereinander mit
   leerer rechter Haelfte. */
.detail-split { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: center; }
.detail-split .section-heading { max-width: none; margin-bottom: 0; }
.chip-panel { padding: 1.35rem; background: var(--white); border: 1px solid rgba(16,42,45,.1); border-radius: var(--radius); }
.chip-label { margin: 0 0 .8rem; color: var(--muted); font-size: .88rem; font-weight: 600; }
.chip-list { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.chip-list li { padding: .35rem .95rem; border: 1px solid rgba(16,42,45,.16); border-radius: 999px; background: var(--white); font-size: .92rem; font-weight: 600; }
.chip-list .chip-more { border-style: dashed; background: none; color: var(--muted); font-weight: 500; }
.detail-uses .service-card p { margin-bottom: 0; }
.detail-note { max-width: 700px; margin: 1.1rem 0 0; color: var(--muted); font-size: .95rem; }
/* Leistungsumfang: Begriff links, Erlaeuterung rechts */
.scope-list { margin: 0; }
.scope-list > div { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: .15rem 2.5rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.scope-list > div:first-child { border-top: 1px solid var(--line); }
.scope-list dt { font-weight: 700; }
.scope-list dd { margin: 0; color: var(--muted); }
.detail-audience .audience-list { grid-template-columns: repeat(3, 1fr); }
.detail-cta .article-cta { margin: 0; }
.detail-cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
@media (max-width: 960px) {
  .detail-audience .audience-list { grid-template-columns: repeat(2, 1fr); }
  .detail-split { grid-template-columns: 1fr; }
}

/* ---------- Projektbeispiele ----------
   Karten auf der Leistungsseite (example-grid) und die Projektseiten selbst
   (hc_project_page in functions.php, main.project-page). */
.example-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.example-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--white);
  border: 1px solid rgba(16,42,45,.1); border-radius: var(--radius); transition: border-color .15s ease;
}
.example-card:hover { border-color: rgba(16,42,45,.28); }
.example-card:hover .service-more { color: #b8621b; }
/* Bildschirmfotos sind hoeher als die Karte: oberen Teil zeigen */
.example-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; border-bottom: 1px solid rgba(16,42,45,.1); }
.example-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.35rem 1.35rem; }
.example-body p { color: var(--muted); font-size: .95rem; line-height: 1.65; margin-bottom: 0; }
.example-body .service-more { align-self: flex-start; margin-top: 1rem; }
/* Uebersichtsseite einer Leistung: anonymisierte Projekt-Kurzportraits
   (hc_service_page in functions.php, main.service-page). */
.portrait { padding: 1.5rem 1.6rem; background: var(--white); border: 1px solid rgba(16,42,45,.1); border-radius: var(--radius); }
.portrait + .portrait { margin-top: 1.25rem; }
.portrait-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1.5rem; padding-bottom: 1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.portrait-head h3 { font-size: 1.3rem; font-weight: 750; letter-spacing: -.02em; margin: 0; }
.portrait-system { margin: 0; color: #2f7a6d; font-size: .9rem; font-weight: 650; }
.portrait-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1rem 2.5rem; }
.portrait h4 { margin: 0 0 .35rem; color: var(--muted); font-size: .82rem; font-weight: 650; letter-spacing: .02em; text-transform: uppercase; }
.portrait-body p { margin: 0 0 1.1rem; font-size: .97rem; line-height: 1.65; }
.portrait-body p:last-child { margin-bottom: 0; }
.portrait-body ul { list-style: none; margin: 0; padding: 0; font-size: .95rem; line-height: 1.55; }
.portrait-body li { display: flex; align-items: baseline; gap: .6rem; padding: .28rem 0; }
.portrait-body li:before { content: ""; flex: 0 0 5px; height: 5px; border-radius: 50%; background: var(--accent); transform: translateY(-3px); }
.portrait-facts { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.portrait-facts li { background: none; font-size: .85rem; padding: .25rem .8rem; }
.portrait-more { margin: 1.5rem 0 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .portrait-body { grid-template-columns: 1fr; } .portrait { padding: 1.25rem; } }
/* Profilseite (patterns/profile.php, main.profile-page): Stationen als
   Liste mit Zeitraum unter dem Unternehmen, Unternehmen nach Branche. */
.station-time { display: block; margin-top: .1rem; color: var(--muted); font-size: .86rem; font-weight: 500; }
.client-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.client-group h3 { margin: 0 0 .7rem; color: #2f7a6d; font-size: .9rem; font-weight: 650; }
.client-group .chip-list { gap: .45rem; }
.client-group .chip-list li { padding: .3rem .8rem; font-size: .88rem; }
@media (max-width: 960px) { .client-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .client-groups { grid-template-columns: 1fr; } }
/* Eckdaten neben der Ausgangslage */
.fact-panel { margin: 0; padding: .45rem 1.35rem; background: var(--white); border: 1px solid rgba(16,42,45,.1); border-radius: var(--radius); }
.fact-panel > div { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.fact-panel > div:last-child { border-bottom: 0; }
.fact-panel dt { color: #2f7a6d; font-size: .82rem; font-weight: 650; }
.fact-panel dd { margin: 0; font-size: .95rem; line-height: 1.5; }
/* Vier Loesungsschritte nebeneinander, auf mittlerer Breite 2 x 2 */
.steps.steps-4 { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
/* Bildschirmfoto mit Unterschrift; ein Klick oeffnet es in voller Groesse */
.shot { margin: 0; }
.shot a { display: block; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid rgba(16,42,45,.14); border-radius: var(--radius); }
.shot figcaption { max-width: 700px; margin-top: .8rem; color: var(--muted); font-size: .9rem; line-height: 1.6; }
@media (max-width: 960px) { .steps.steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .example-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .steps.steps-4 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .example-card { transition: none; } }
@media (max-width: 760px) { .scope-list > div { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .detail-cta-actions .button { width: 100%; } }
@media (max-width: 430px) { .detail-audience .audience-list { grid-template-columns: 1fr; } }
