/*
Theme Name: Sascha Huber
Theme URI: https://sascha-huber.com
Author: Sascha Huber
Author URI: https://sascha-huber.com
Description: Custom theme for sascha-huber.com – a freelance software developer portfolio with rich blog posts, project references, testimonials and a tracking-enabled contact form. Built with reusable components.
Version: 1.0.12
Requires at least: 6.0
Tested up to: 6.5
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: sascha-huber
Tags: portfolio, blog, custom-colors, translation-ready, custom-menu, featured-images
*/

/* =========================================================================
   1. Design tokens
   ========================================================================= */
:root {
    /* Brand – matches the live site's Kadence global palette */
    --sh-accent:        #0099cc;
    --sh-accent-dark:   #0077aa;
    --sh-accent-darker: #005f88;
    --sh-accent-rgb:    0, 153, 204;

    /* Text */
    --sh-heading:  #222222;
    --sh-text:     #3b3b3b;
    --sh-muted:    #626262;

    /* Surfaces */
    --sh-bg:       #ffffff;
    --sh-bg-alt:   #f7f7f7;
    --sh-bg-soft:  #f7f7f7;
    --sh-border:   #e1e1e1;
    --sh-border-soft: #ececec;

    /* Typography – Ubuntu for text, Jost for buttons, as on the live site */
    --sh-font-body:    "Ubuntu", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --sh-font-heading: "Ubuntu", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --sh-font-btn:     "Jost", "Ubuntu", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Layout – the live site runs a 1500px content width on a 19px base */
    --sh-container-hero:   1800px;
    --sh-container-wide:   1750px;
    --sh-container:   1700px;
    --sh-container-narrow: 842px;
    --sh-header-h:    80px;
    --sh-radius:      10px;
    --sh-radius-lg:   16px;
    --sh-gap:         2rem;
    --sh-shadow:      0 6px 24px rgba(0, 0, 0, 0.06);
    --sh-shadow-lg:   0 18px 48px rgba(0, 0, 0, 0.10);
    --sh-transition:  0.2s ease;

    /* Chevron für Menüpunkte mit Dropdown (wird über mask eingefärbt) */
    --sh-chevron-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    /* Haken für die stilisierte Consent-Checkbox */
    --sh-check-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* =========================================================================
   2. Reset & base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sh-font-body);
    font-size: 19px;
    line-height: 1.6;
    color: var(--sh-text);
    background: var(--sh-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--sh-accent);
    text-decoration: none;
    transition: color var(--sh-transition);
}
a:hover { color: var(--sh-accent-dark); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sh-font-heading);
    color: var(--sh-heading);
    line-height: 1.2;
    font-weight: 600;
    margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.2em; }

ul, ol { padding-left: 1.3em; }

blockquote {
    margin: 1.8em 0;
    padding: 1.2em 1.6em;
    border-left: 4px solid var(--sh-accent);
    background: var(--sh-bg-soft);
    border-radius: 0 var(--sh-radius) var(--sh-radius) 0;
    font-size: 1.1rem;
    color: var(--sh-text);
}
blockquote p:last-child { margin-bottom: 0; }

code, pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.92em;
}
code {
    background: var(--sh-bg-alt);
    padding: 0.15em 0.4em;
    border-radius: 4px;
}
pre {
    background: #0f1720;
    color: #e6edf3;
    padding: 1.2em 1.4em;
    border-radius: var(--sh-radius);
    overflow-x: auto;
    line-height: 1.5;
}
pre code { background: none; padding: 0; color: inherit; }

hr { border: 0; border-top: 1px solid var(--sh-border); margin: 2.5em 0; }

:focus-visible { outline: 3px solid rgba(var(--sh-accent-rgb), 0.4); outline-offset: 2px; }

/* Accessibility */
.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
}
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 1000;
    background: var(--sh-accent); color: #fff; padding: 0.7em 1.2em; border-radius: 0 0 var(--sh-radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* =========================================================================
   3. Layout helpers
   ========================================================================= */
.sh-container { width: 100%; max-width: var(--sh-container); margin: 0 auto; padding: 0 24px; }
.sh-container--wide { width: 100%; max-width: var(--sh-container-wide); margin: 0 auto; padding: 0 24px; }
.sh-container--narrow { max-width: var(--sh-container-narrow); }
/* Widest band the theme has, otherwise reserved for the hero: the card rows use
   it so four cards abreast get as much width as there is to give. */
.sh-container--hero { max-width: var(--sh-container-hero); }

.sh-section { padding: clamp(3rem, 7vw, 6rem) 0; }
.sh-section--alt  { background: var(--sh-bg-alt); }
.sh-section--soft { background: var(--sh-bg-soft); }
.sh-section--dark {
    background: linear-gradient(135deg, #0f2733 0%, var(--sh-accent-darker) 100%);
    color: #dfeaef;
}
.sh-section--dark h1, .sh-section--dark h2, .sh-section--dark h3 { color: #fff; }

.sh-grid { display: grid; gap: var(--sh-gap); }
/* Grid-Items haben per Default min-width: auto und schrumpfen deshalb nie
   unter ihre min-content-Breite – ein langes Kompositum sprengt sonst das
   Layout. min-width: 0 gibt die Spur frei, den Umbruch macht overflow-wrap. */
.sh-grid > *, .sh-blog-layout > * { min-width: 0; }
.sh-grid--2 { grid-template-columns: repeat(2, 1fr); }
.sh-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sh-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Section header component */
.sh-section-header { max-width: 720px; margin: 0 auto 2.8rem; text-align: center; }
.sh-section-header--left { margin-left: 0; text-align: left; }
.sh-section-header__eyebrow {
    display: inline-block;
    font-family: var(--sh-font-heading);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--sh-accent);
    margin-bottom: 0.6rem;
}
.sh-section-header__title { margin: 0 0 0.5rem; }
.sh-section-header__text { color: var(--sh-muted); font-size: 1.08rem; margin: 0; }

/* =========================================================================
   4. Buttons (component)
   ========================================================================= */
.sh-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
    font-family: var(--sh-font-btn);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.6;
    border-radius: 50px;
    padding: 18px 34px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background var(--sh-transition), color var(--sh-transition), border-color var(--sh-transition), box-shadow var(--sh-transition);
    text-align: center;
}
/* The live site lifts a button with a soft drop shadow instead of moving it. */
.sh-btn:hover { box-shadow: 0 15px 25px -7px rgba(0, 0, 0, 0.1); }
.sh-btn--primary { background: var(--sh-accent); color: #fff; border-color: var(--sh-accent); }
.sh-btn--primary:hover { background: var(--sh-accent-dark); border-color: var(--sh-accent-dark); color: #fff; }
.sh-btn--outline { background: transparent; color: var(--sh-accent); border-color: var(--sh-accent); }
.sh-btn--outline:hover { background: var(--sh-accent); color: #fff; }
.sh-btn--light { background: #fff; color: var(--sh-accent); border-color: #fff; }
.sh-btn--light:hover { background: rgba(255,255,255,0.9); color: var(--sh-accent-dark); }
.sh-btn--ghost { background: transparent; color: var(--sh-heading); border-color: var(--sh-border); }
.sh-btn--ghost:hover { border-color: var(--sh-accent); color: var(--sh-accent); }
.sh-btn--sm { padding: 13px 28px; font-size: 18px; }
.sh-btn--lg { padding: 18px 34px; font-size: 21px; }
.sh-btn--block { display: flex; width: 100%; justify-content: center; }

/* =========================================================================
   5. Card (component)
   ========================================================================= */
.sh-card {
    background: var(--sh-bg);
    border: 1px solid var(--sh-border-soft);
    border-radius: var(--sh-radius-lg);
    padding: 2rem;
    box-shadow: var(--sh-shadow);
    transition: transform var(--sh-transition), box-shadow var(--sh-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.sh-card--hover:hover { transform: translateY(-5px); box-shadow: var(--sh-shadow-lg); }
.sh-card__icon {
    width: 54px; height: 54px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(var(--sh-accent-rgb), 0.1);
    color: var(--sh-accent);
    font-size: 1.5rem; margin-bottom: 1.2rem;
}
.sh-card__title { margin: 0 0 0.6rem; font-size: 1.3rem; }
.sh-card__text { color: var(--sh-muted); margin: 0 0 1.2rem; }
.sh-card__link { margin-top: auto; font-weight: 600; font-family: var(--sh-font-heading); }
.sh-card__link::after { content: " \2192"; transition: margin var(--sh-transition); display: inline-block; }
.sh-card__link:hover::after { margin-left: 4px; }

/* =========================================================================
   6. Header / navigation
   ========================================================================= */
.sh-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--sh-border-soft);
}
.sh-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--sh-header-h); }
.sh-logo { font-family: var(--sh-font-heading); font-weight: 700; font-size: 1.35rem; color: var(--sh-heading); }
.sh-logo:hover { color: var(--sh-accent); }
.sh-logo img { width: 400px; max-width: 100%; height: auto; }

/* Front page: the header floats transparently on top of the hero gradient and
   only drops in as a solid bar once the hero is scrolled past. */
.sh-header--transparent {
    position: absolute; top: 0; left: 0; right: 0;
    background: none; backdrop-filter: none; border-bottom: 0;
}
.sh-header--transparent.is-stuck {
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    animation: sh-header-drop 0.3s ease;
}
@keyframes sh-header-drop { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .sh-header--transparent.is-stuck { animation: none; } }

/* Leistungsseiten: die Leiste bleibt durchgehend oben stehen, nur ihr
   Hintergrund blendet beim Scrollen ein – ohne den Einflug der Startseite,
   der bei der kleinen Scroll-Schwelle sonst bei jedem Antippen anspringt. */
.sh-header--pinned {
    position: fixed;
    transition: background-color var(--sh-transition), box-shadow var(--sh-transition);
}
.sh-header--pinned.is-stuck { animation: none; }

.sh-nav__list { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.sh-nav__list a {
    display: block; padding: 0.6em 1.25em; color: var(--sh-heading);
    font-family: var(--sh-font-body); font-weight: 400; border-radius: 8px;
}
.sh-nav__list a:hover,
.sh-nav__list .current-menu-item > a { color: var(--sh-accent); }
.sh-nav .menu-item-has-children { position: relative; }
.sh-nav .sub-menu {
    position: absolute; top: 100%; left: 0; min-width:300px;
    background: #fff; border: 1px solid var(--sh-border-soft); border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow-lg); padding: 0.5rem; list-style: none; margin: 0;
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: all var(--sh-transition);
}
.sh-nav .menu-item-has-children:hover > .sub-menu,
.sh-nav .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sh-nav .sub-menu a { padding: 0.6em 0.9em; }

/* Menüpunkte mit Dropdown tragen ein Chevron als Hinweis auf die Unterpunkte.
   Rein per CSS, damit kein eigener Nav-Walker nötig ist – die Maske übernimmt
   die Linkfarbe (inkl. Hover/Aktiv-Zustand) automatisch. */
.sh-header .sh-nav .menu-item-has-children > a {
    display: flex; align-items: center; gap: 0.4em;
}
.sh-header .sh-nav .menu-item-has-children > a::after {
    content: ""; width: 0.7em; height: 0.7em; flex: none;
    background-color: currentColor;
    -webkit-mask: var(--sh-chevron-down) center / contain no-repeat;
    mask: var(--sh-chevron-down) center / contain no-repeat;
    transition: transform var(--sh-transition);
}
.sh-header .sh-nav .menu-item-has-children:hover > a::after,
.sh-header .sh-nav .menu-item-has-children:focus-within > a::after {
    transform: rotate(180deg);
}

.sh-header__actions { display: flex; align-items: center; gap: 0.8rem; }

.sh-nav-toggle {
    display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem;
    color: var(--sh-heading);
}
.sh-nav-toggle svg { width: 26px; height: 26px; }

/* =========================================================================
   7. Hero
   ========================================================================= */
.sh-hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.sh-hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.sh-hero__eyebrow {
    font-family: var(--sh-font-heading); font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.12em; font-size: 0.85rem; color: var(--sh-accent); margin-bottom: 1rem;
}
.sh-hero__title { margin: 0 0 0.6rem; }
.sh-hero__title .accent { color: var(--sh-accent); }
.sh-hero__lead { font-size: 1.5rem; font-weight: 600; font-family: var(--sh-font-heading); color: var(--sh-heading); margin-bottom: 1.1rem; }
.sh-hero__meta { color: var(--sh-accent); font-weight: 500; font-size: 1.02rem; display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; margin-bottom: 1.3rem; }
.sh-hero__meta span { color: var(--sh-border); }
.sh-hero__desc { font-size: 1.1rem; color: var(--sh-text); margin-bottom: 1.8rem; }
.sh-hero__desc strong { color: var(--sh-heading); }
.sh-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.sh-hero__stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.sh-stat__num { font-family: var(--sh-font-heading); font-weight: 700; font-size: 2rem; color: var(--sh-heading); line-height: 1; }
.sh-stat__label { color: var(--sh-muted); font-size: 0.95rem; }
.sh-hero__media { position: relative; }
.sh-hero__media img { border-radius: var(--sh-radius-lg); box-shadow: var(--sh-shadow-lg); width: 100%; object-fit: cover; }
.sh-hero__badge {
    position: absolute; bottom: 1.4rem; left: -1.2rem;
    background: #fff; padding: 0.9rem 1.3rem; border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow-lg); font-family: var(--sh-font-heading); font-weight: 600;
}
.sh-hero__badge span { color: var(--sh-accent); }

/* =========================================================================
   8. Testimonials (component)
   ========================================================================= */
.sh-testimonial {
    background: #fff; border: 1px solid var(--sh-border-soft);
    border-radius: var(--sh-radius-lg); padding: 2rem; box-shadow: var(--sh-shadow);
    height: 100%; display: flex; flex-direction: column;
}
.sh-testimonial__stars { color: #f5a623; margin-bottom: 0.8rem; letter-spacing: 2px; }
.sh-testimonial__quote { font-size: 1.02rem; color: var(--sh-text); margin: 0 0 1.4rem; }
.sh-testimonial__foot { display: flex; align-items: center; gap: 0.9rem; margin-top: auto; }
.sh-testimonial__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--sh-bg-alt); }
.sh-testimonial__name { font-family: var(--sh-font-heading); font-weight: 600; color: var(--sh-heading); }
.sh-testimonial__role { font-size: 0.88rem; color: var(--sh-muted); }

/* =========================================================================
   9. Projects (component)
   ========================================================================= */
.sh-project {
    background: #fff; border: 1px solid var(--sh-border-soft); border-radius: var(--sh-radius-lg);
    overflow: hidden; box-shadow: var(--sh-shadow); height: 100%; display: flex; flex-direction: column;
    transition: transform var(--sh-transition), box-shadow var(--sh-transition);
}
.sh-project:hover { transform: translateY(-5px); box-shadow: var(--sh-shadow-lg); }
.sh-project__thumb { overflow: hidden; background: var(--sh-bg-alt); }
.sh-project__thumb img { width: 100%; height: unset; object-fit: cover; transition: transform 0.4s ease; }
.sh-project:hover .sh-project__thumb img { transform: scale(1.05); }
.sh-project__body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.sh-project__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.8rem; }
.sh-tag {
    font-size: 0.75rem; font-weight: 600; font-family: var(--sh-font-heading);
    background: rgba(var(--sh-accent-rgb),0.1); color: var(--sh-accent);
    padding: 0.25em 0.7em; border-radius: 50px;
}
.sh-project__title { font-size: 1.25rem; margin: 0 0 0.5rem; }
.sh-project__excerpt { color: var(--sh-muted); font-size: 0.97rem; margin: 0 0 1.2rem; }
.sh-project__link { margin-top: auto; font-weight: 600; font-family: var(--sh-font-heading); }

/* ---- Masonry (references archive) ---- */
/* Multi-column instead of grid: in a grid every card is stretched to the height
   of the tallest one in its row, so a reference without a screenshot ends up as
   tall as one with. Columns let each card keep its own height and close the gap.
   The trade-off is the reading order, which runs down a column, not across. */
.sh-masonry { column-gap: var(--sh-gap); }
.sh-masonry--3 { column-count: 3; }
.sh-masonry--4 { column-count: 4; }
.sh-masonry > * { break-inside: avoid; margin-bottom: var(--sh-gap); }
/* The card stretches itself in a grid row – in a column it must not. */
.sh-masonry .sh-project { height: auto; }

/* ---- Centred card row (related projects) ---- */
/* For a handful of cards columns balance badly – with three cards one column
   can end up empty. A centred flex row keeps the reading order, lets every card
   keep its own height and centres a row that does not fill up. */
.sh-card-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: var(--sh-gap); }
.sh-card-row > * { flex: 0 1 calc((100% - 2 * var(--sh-gap)) / 3); }
.sh-card-row .sh-project { height: auto; }

/* =========================================================================
   10. Blog
   ========================================================================= */
/* Article card: no thumbnail, generous padding, soft all-round shadow. */
.sh-post-card {
    background: #fff; border: 0; border-radius: 15px;
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.2); height: 100%; display: flex; flex-direction: column;
    transition: box-shadow var(--sh-transition);
}
.sh-post-card:hover { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.26); }
.sh-post-card__body { padding: 45px; display: flex; flex-direction: column; flex: 1; }
.sh-post-card__title {
    font-size: 28px; line-height: 1.43; font-weight: 800; margin: 0 0 5px;
    overflow-wrap: break-word; hyphens: auto;
}
.sh-post-card__title a { color: var(--sh-heading); }
.sh-post-card__title a:hover { color: var(--sh-accent); }
.sh-post-card__meta { display: block; font-size: 14px; color: var(--sh-text); margin-bottom: 1rem; }
.sh-post-card__excerpt { color: var(--sh-text); font-size: 1em; margin: 0 0 15px; }
/* Small rounded button, hugging its label at the bottom of the card. */
.sh-post-card__more {
    margin-top: auto; align-self: flex-start;
    background: var(--sh-accent); color: #fff;
    font-size: 1em; font-weight: 400; line-height: 1.6;
    border-radius: 15px; padding: 5px 16px;
    transition: background var(--sh-transition);
}
.sh-post-card__more:hover { background: var(--sh-accent-dark); color: #fff; }

/* Single post: plain white masthead, compact centred title, no thumbnail.
   Scoped to .sh-article so it beats the generic .sh-page-hero band below. */
.sh-article .sh-page-hero--post { background: #fff; border-bottom: 0; padding: clamp(2.5rem, 5vw, 3.5rem) 0 0; }
.sh-article .sh-page-hero--post .sh-page-hero__title { font-size: 32px; line-height: 1.5; font-weight: 900; margin: 0; }
.sh-article__cats { margin-bottom: 0.4rem; }
.sh-article__cats a { color: var(--sh-accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; }
.sh-article__meta { color: var(--sh-muted); font-size: 14px; margin-top: 0.4rem; display: flex; gap: 1rem; justify-content: center; align-items: center; flex-wrap: wrap; }

/* Article body: the live site colours its section headings in brand blue. */
.sh-article .sh-content { font-size: 20px; line-height: 1.6; }
.sh-article .sh-content h2 { font-size: 40px; line-height: 1.5; font-weight: 800; color: var(--sh-accent); margin: 60px 0 20px; }
.sh-article .sh-content h3 { font-size: 24px; line-height: 1.5; font-weight: 800; color: var(--sh-accent-dark); margin: 40px 0 10px; }
.sh-article .sh-content p { margin: 0 0 32px; }
.sh-article__meta > * + *::before { content: "•"; margin-right: 1rem; color: var(--sh-border-soft); }
.sh-article__meta-label { margin-right: 0.3rem; }
/* Still used by the service, project and page templates. */
.sh-article__hero { margin: 0 0 2.5rem; border-radius: var(--sh-radius-lg); overflow: hidden; box-shadow: var(--sh-shadow); }
.sh-article__hero img { width: 100%; }

.sh-content { font-size: 1.08rem; }
.sh-content > * { max-width: none; margin-left: auto; margin-right: auto; }
.sh-content > .alignwide { max-width: 1040px; }
.sh-content > .alignfull { max-width: none; }
.sh-content h2 { margin-top: 2em; }
.sh-content h3 { margin-top: 1.6em; }
.sh-content img, .sh-content figure { border-radius: var(--sh-radius); }

/* Prose rendered inside a block section already sits in its own container. */
.sh-content--flush > * { max-width: none; margin-left: 0; margin-right: 0; }
.sh-content--flush > h3:first-child { margin-top: 0; }

.sh-content figure { margin: 2em auto; }
.sh-content figcaption { text-align: center; font-size: 0.9rem; color: var(--sh-muted); margin-top: 0.6rem; }
.sh-content ul li, .sh-content ol li { margin-bottom: 0.5em; }
.sh-content a { text-decoration: underline; text-underline-offset: 3px; }
.sh-content .wp-block-pullquote,
.sh-content .wp-block-quote { border-left: 4px solid var(--sh-accent); }

/* --- Rich article elements (mirrors the live article layout) ------------- */

/* Styled by the theme's custom blocks (sascha-huber/*), which carry these
 * .sh-* classes:
 *   .sh-lead      – sascha-huber/lead
 *   .sh-callout   – sascha-huber/callout
 *   .sh-table     – sascha-huber/table
 *   .sh-icon-list – sascha-huber/icon-list                                    */

/* Lead paragraph: the intro rendered one size up, as on the live site. */
.sh-article .sh-content .sh-lead { font-size: 1.2em; line-height: 1.55; color: var(--sh-heading); margin-bottom: 40px; }

/* Callout / highlight boxes ("Praxis-Tipp", "Wichtig zu wissen", …). */
.sh-content .sh-callout {
	background: rgba(var(--sh-accent-rgb), 0.06);
	border-left: 4px solid var(--sh-accent);
	border-radius: 0 var(--sh-radius) var(--sh-radius) 0;
	padding: 1.4rem 1.6rem;
	margin: 2em auto;
}
.sh-content .sh-callout > :first-child { margin-top: 0; }
.sh-content .sh-callout > :last-child { margin-bottom: 0; }
.sh-article .sh-content .sh-callout p { margin-bottom: 1rem; }
.sh-content .sh-callout :is(h2, h3, h4) { margin-top: 0; margin-bottom: 0.8rem; font-size: 1.15rem; color: var(--sh-accent-dark); }

/* Comparison tables. Scroll horizontally inside their own box on narrow screens. */
.sh-content .sh-table { margin: 2.4em auto; overflow-x: auto; border-radius: var(--sh-radius); border: 1px solid var(--sh-border-soft); }
.sh-content .sh-table table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: transparent; }
.sh-content .sh-table th,
.sh-content .sh-table td { padding: 0.85rem 1rem; text-align: left; vertical-align: top; border: none; border-bottom: 1px solid var(--sh-border-soft); }
.sh-content .sh-table thead th { background: var(--sh-accent); color: #fff; font-weight: 700; border-bottom: none; }
.sh-content .sh-table tbody tr:nth-child(even) { background: var(--sh-bg-alt); }
.sh-content .sh-table tbody tr:last-child td { border-bottom: none; }

/* Icon lists: brand-blue check marks instead of default bullets. */
.sh-content .sh-icon-list { list-style: none; padding-left: 0; margin: 1.4em auto; }
.sh-content .sh-icon-list li { position: relative; padding-left: 2rem; margin-bottom: 0.7em; }
.sh-content .sh-icon-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.15em;
	width: 1.25rem;
	height: 1.25rem;
	background: var(--sh-accent);
	border-radius: 50%;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='white' d='M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zM227 387l184-184c6-6 6-16 0-23l-22-22c-6-6-17-6-23 0L216 308l-70-70c-6-6-17-6-23 0l-22 22c-6 6-6 17 0 23l104 104c6 6 16 6 22 0z'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='white' d='M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zM227 387l184-184c6-6 6-16 0-23l-22-22c-6-6-17-6-23 0L216 308l-70-70c-6-6-17-6-23 0l-22 22c-6 6-6 17 0 23l104 104c6 6 16 6 22 0z'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}

/* Code blocks. */
.sh-content pre.wp-block-code {
	background: #1e293b;
	color: #e2e8f0;
	padding: 1.2rem 1.4rem;
	border-radius: var(--sh-radius);
	overflow-x: auto;
	font-size: 0.9rem;
	line-height: 1.6;
	margin: 2em auto;
}
.sh-content pre.wp-block-code code { font-family: "SFMono-Regular", "Consolas", "Liberation Mono", "Menlo", monospace; white-space: pre; }
.sh-content :not(pre) > code { background: rgba(var(--sh-accent-rgb), 0.09); color: var(--sh-accent-darker); padding: 0.12em 0.4em; border-radius: 4px; font-size: 0.88em; }

.sh-tags-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2.5rem auto 0; }


/* Sidebar / archive layout */
.sh-blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
.sh-blog-layout--full { grid-template-columns: 1fr; }
.sh-widget { background: #fff; border: 1px solid var(--sh-border-soft); border-radius: var(--sh-radius); padding: 1.5rem; margin-bottom: 1.6rem; }
.sh-widget__title { font-size: 1.1rem; margin: 0 0 1rem; }
.sh-widget ul { list-style: none; padding: 0; margin: 0; }
.sh-widget li { padding: 0.4em 0; border-bottom: 1px solid var(--sh-border-soft); }
.sh-widget li:last-child { border-bottom: 0; }

/* Pagination */
.sh-pagination { display: flex; justify-content: center; gap: 0.4rem; margin-top: 3rem; }
.sh-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px;
    padding: 0 0.7em; border: 1px solid var(--sh-border); border-radius: 8px; color: var(--sh-heading);
    font-family: var(--sh-font-heading); font-weight: 500;
}
.sh-pagination .page-numbers.current,
.sh-pagination .page-numbers:hover { background: var(--sh-accent); color: #fff; border-color: var(--sh-accent); }

/* =========================================================================
   11. Contact form (component)
   ========================================================================= */
.sh-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.sh-contact-info__item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.6rem; }
.sh-contact-info__icon {
    flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(var(--sh-accent-rgb),0.12);
    color: var(--sh-accent); display: flex; align-items: center; justify-content: center;
}
.sh-contact-info__label { font-family: var(--sh-font-heading); font-weight: 600; color: var(--sh-heading); }

.sh-form { background: #fff; border: 1px solid var(--sh-border-soft); border-radius: var(--sh-radius-lg); padding: 2.2rem; box-shadow: var(--sh-shadow); }
.sh-section--dark .sh-form { color: var(--sh-text); }
.sh-field { margin-bottom: 1.2rem; }
.sh-field label { display: block; font-family: var(--sh-font-heading); font-weight: 600; margin-bottom: 0.4rem; color: var(--sh-heading); font-size: 0.95rem; }
.sh-field .req { color: var(--sh-accent); }
.sh-field input, .sh-field textarea, .sh-field select {
    width: 100%; padding: 0.85em 1em; font-family: var(--sh-font-body); font-size: 1rem;
    border: 1px solid var(--sh-border); border-radius: var(--sh-radius); background: var(--sh-bg-soft);
    color: var(--sh-text); transition: border-color var(--sh-transition), box-shadow var(--sh-transition);
}
.sh-field input:focus, .sh-field textarea:focus, .sh-field select:focus {
    outline: none; border-color: var(--sh-accent); box-shadow: 0 0 0 3px rgba(var(--sh-accent-rgb),0.15); background: #fff;
}
.sh-field textarea { min-height: 150px; resize: vertical; }
/* Nach einem Fehler-Redirect: das beanstandete Feld traegt die Farbe der
   Fehlermeldung, damit die Meldung und das gemeinte Feld zusammenfinden. */
.sh-field--invalid input, .sh-field--invalid textarea { border-color: #d05252; background: #fdf6f6; }
.sh-field--invalid > label, .sh-field--invalid .sh-field--check__body label { color: #b02a2a; }
.sh-field--check { display: flex; gap: 0.7rem; align-items: flex-start; }
.sh-field--check input { width: auto; margin-top: 0.35em; }
.sh-field--check label { font-weight: 400; font-family: var(--sh-font-body); font-size: 0.9rem; color: var(--sh-muted); }
.sh-form__hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

.sh-notice { padding: 1em 1.3em; border-radius: var(--sh-radius); margin-bottom: 1.4rem; font-size: 0.98rem; }
.sh-notice--success { background: #e7f6ec; color: #1a7a3f; border: 1px solid #b8e2c6; }
.sh-notice--error { background: #fdecec; color: #b02a2a; border: 1px solid #f3c2c2; }

/* =========================================================================
   12. Logos strip
   ========================================================================= */
.sh-logos { display: flex; flex-wrap: wrap; gap: 1.6rem 2rem; align-items: center; justify-content: center; margin-top: 3rem; }
.sh-logos img { height: 46px; width: auto; opacity: 0.9; transition: transform var(--sh-transition), opacity var(--sh-transition); }
.sh-logos img:hover { opacity: 1; transform: translateY(-3px) scale(1.08); }

/* Skills list */
.sh-skills {
    list-style: none; padding: 0; margin: 0 auto; max-width: 760px;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem 2rem;
}
.sh-skills li {
    position: relative; padding-left: 1.9rem;
    font-family: var(--sh-font-heading); font-weight: 500; color: var(--sh-heading);
}
.sh-skills li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    width: 1.35rem; height: 1.35rem; border-radius: 50%;
    background: rgba(var(--sh-accent-rgb), 0.12); color: var(--sh-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700;
}
@media (max-width: 640px) { .sh-skills { grid-template-columns: 1fr; } }

/* =========================================================================
   13. CTA banner
   ========================================================================= */
.sh-cta { text-align: center; }
.sh-cta__title { color: #fff; margin-bottom: 0.6rem; }
.sh-cta__text { color: rgba(255,255,255,0.85); max-width: 640px; margin: 0 auto 1.8rem; font-size: 1.1rem; }

/* =========================================================================
   14. Footer
   ========================================================================= */
.sh-footer { background: var(--sh-heading); color: #fff; padding: 4rem 0 0; }
.sh-footer a { color: #fff; }
.sh-footer a:hover { color: var(--sh-accent-dark); }
.sh-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; padding-bottom: 3rem; }
.sh-footer__brand { font-family: var(--sh-font-heading); font-weight: 800; font-size: 1.4rem; color: #fff; margin-bottom: 0.8rem; display: inline-block; }
.sh-footer__title { color: #fff; font-size: 20px; font-weight: 800; text-transform: uppercase; margin: 0 0 10px; }
.sh-footer__col ul { list-style: none; padding: 0; margin: 0; }
.sh-footer__col li { margin-bottom: 0; }
.sh-footer__col li a { display: block; padding: 1.9px 0; line-height: 1.8; }
/* Single centred credit line, separated from the columns by a hairline rule. */
.sh-footer__bottom {
    display: flex; justify-content: center; align-items: center; gap: 0.5rem; flex-wrap: wrap;
    padding: 2rem 0; border-top: 1px solid var(--sh-text); font-size: 1em;
}
.sh-footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }
.sh-footer__bottom .sh-nav__list { gap: 0.5rem; }
/* Widerrufs-Link: sieht aus wie die übrigen Footer-Links, ist aber ein Button,
   weil er keine Seite öffnet, sondern die Abfrage erneut einblendet. */
.sh-footer__consent-link {
    background: none; border: 0; padding: 0; cursor: pointer;
    font-family: var(--sh-font-body); font-size: inherit; color: #fff;
    text-decoration: underline; text-underline-offset: 2px;
}
.sh-footer__consent-link:hover { color: var(--sh-accent); }
.sh-footer__bottom .sh-nav__list a { display: inline; padding: 0; color: #fff; }
.sh-footer__bottom .sh-nav__list li + li::before { content: "|"; margin-right: 0.5rem; color: var(--sh-muted); }
/* Mobil untereinander: Copyright oben, darunter "Impressum | Datenschutz" in einer
   Zeile. Das Legal-Menü teilt sich die Klasse mit der Hauptnavigation, die mobil
   auf Spalte umschaltet – hier bleibt es deshalb ausdrücklich eine Reihe. */
@media (max-width: 782px) {
    .sh-footer__bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
    .sh-footer__bottom .sh-nav__list {
        flex-direction: row; align-items: center; justify-content: center;
        flex-wrap: wrap; padding: 0; gap: 0.5rem;
    }
}

/* =========================================================================
   15. Page header (inner pages)
   ========================================================================= */
.sh-page-hero { background: var(--sh-bg-alt); padding: clamp(2.5rem, 5vw, 4rem) 0; text-align: center; border-bottom: 1px solid var(--sh-border-soft); }
.sh-page-hero__title { margin: 0 0 0.5rem; }
.sh-breadcrumbs { font-size: 0.9rem; color: var(--sh-muted); }
.sh-breadcrumbs a { color: var(--sh-muted); }
.sh-breadcrumbs a:hover { color: var(--sh-accent); }

/* ---- Danke-Seite (Conversion-Ziel des Kontaktformulars) ----
   Der grüne Haken ist die eigentliche Botschaft der Seite: Die Anfrage ist
   raus. Er steht deshalb über der Überschrift und nicht neben ihr. */
.sh-thanks__badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; margin-bottom: 1.2rem; border-radius: 50%;
    background: rgba(var(--sh-accent-rgb), 0.12); color: var(--sh-accent);
}
.sh-thanks__badge-icon { width: 32px; height: 32px; }
.sh-thanks__meta {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.4rem;
    color: var(--sh-muted); margin: 1.2rem 0 0;
}
.sh-thanks__meta strong { color: var(--sh-heading); }
.sh-thanks__hint { color: var(--sh-muted); font-size: 0.95rem; margin: 0.6rem 0 0; }
.sh-thanks__next { text-align: center; }
.sh-thanks__next h2 { margin-bottom: 0.5rem; }
.sh-thanks__contact {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1rem;
    font-size: 1.15rem; margin: 0.4rem 0 2rem;
}
.sh-thanks__contact span { color: var(--sh-border); }
.sh-thanks__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* =========================================================================
   16. Responsive
   ========================================================================= */

@media (max-width: 1200px) {
    .sh-masonry--3 { column-count: 2; }
    .sh-masonry--4 { column-count: 3; }
}

@media (max-width: 992px) {
    .sh-hero__grid { grid-template-columns: 1fr; }
    .sh-hero__media { order: 0; max-width: 420px; }
    .sh-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .sh-card-row > * { flex-basis: calc((100% - var(--sh-gap)) / 2); }
    .sh-blog-layout { grid-template-columns: 1fr; }
    .sh-footer__grid { grid-template-columns: 1fr 1fr; }

    .sh-masonry--4 { column-count: 2; }
}
@media (max-width: 782px) {
    body { font-size: 16px; }
    .sh-nav-toggle { display: block; }
    /*
     * Geschlossen liegt das Menü als fixiertes Element oberhalb des Viewports.
     * iOS malt beim Überscrollen (Rubberband nach oben) auch diesen Bereich,
     * wodurch das Menü kurz über der Seite aufblitzte. `visibility: hidden`
     * nimmt es aus dem Rendering; die Umschaltung wird bis zum Ende der
     * Slide-Animation verzögert, damit das Zuklappen sichtbar bleibt.
     */
    .sh-nav {
        position: fixed; inset: 74px 0 auto 0; background: #fff; border-bottom: 1px solid var(--sh-border-soft);
        transform: translateY(-120%); box-shadow: var(--sh-shadow-lg);
        transition: transform 0.3s ease, visibility 0s linear 0.3s;
        visibility: hidden; pointer-events: none;
        max-height: calc(100vh - 74px); overflow-y: auto;
    }
    .sh-nav.is-open {
        transform: translateY(0);
        visibility: visible; pointer-events: auto;
        transition: transform 0.3s ease, visibility 0s;
    }
    .sh-nav__list { flex-direction: column; align-items: stretch; padding: 1rem; gap: 0.2rem; }
    .sh-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 1rem; }
    .sh-header .sh-nav .menu-item-has-children > a::after { transform: rotate(180deg); }
    .sh-header__actions .sh-btn { display: none; }
    .sh-grid--2, .sh-grid--3, .sh-grid--4 { grid-template-columns: 1fr; }
    .sh-masonry--3 { column-count: 1; }
    .sh-masonry--4 { column-count: 1; }
    .sh-card-row > * { flex-basis: 100%; }
    .sh-contact-grid { grid-template-columns: 1fr; }
    .sh-hero__stats { gap: 1.5rem; }
}
@media (max-width: 560px) {
    .sh-footer__grid { grid-template-columns: 1fr; }
    .sh-hero__badge { left: 0; }
}

/* =========================================================================
   17. Live-site match overrides (sascha-huber.com)
   ========================================================================= */

/* Headings carry the live site's heavy Ubuntu weight */
h1, h2, h3, h4, h5, h6 { font-weight: 800; }
.sh-section-header { max-width: 860px; margin-bottom: 3rem; }
.sh-section-header__title { font-weight: 800; font-size: clamp(2.1rem, 3.4vw, 48px); line-height: 1.1; margin-bottom: 24px; }
.sh-section-header--light .sh-section-header__title { color: #fff; }

/* Inline accent link used across sections */
.sh-link { color: var(--sh-accent); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.sh-link:hover { color: var(--sh-accent-dark); }

.sh-center { text-align: center; margin-top: 2.8rem; }

/* Header CTA sits 20px off the menu, as on the live site. */
.sh-header__actions { gap: 0; }
.sh-header__actions .sh-btn { margin-left: 20px; }
/* Header labels are short by design – never let them wrap onto a second line. */
.sh-header .sh-btn__label, .sh-nav__list > li > a { white-space: nowrap; }
.sh-btn__icon { width: 1.4em; height: 1.4em; flex: none; }
.sh-btn--outline { background: transparent; color: var(--sh-accent); border-color: var(--sh-accent); }
.sh-btn--outline:hover { background: rgba(var(--sh-accent-rgb), 0.08); color: var(--sh-accent-dark); border-color: var(--sh-accent); }

/* ---- HERO (centered copy, aurora gradient background, circular photo) ---- */
/* The transparent header floats on top, so the hero carries its own top inset. */
.sh-hero { position: relative; padding: clamp(7rem, 13vw, 200px) 0 clamp(5rem, 11vw, 170px); background: #fff; overflow: hidden; }
.sh-hero::before { content: ""; position: absolute; inset: 0; background: var(--sh-hero-bg) center / cover no-repeat; opacity: 0.7; z-index: 0; }
.sh-hero > .sh-container, .sh-hero > .sh-container--wide { position: relative; z-index: 1; }
/* The hero runs wider than the content sections, as on the live site. */
.sh-hero > .sh-container { max-width: var(--sh-container-hero); }
/* The tinted area bulges downwards, so the white below rises at both edges. */
.sh-hero::before { border-bottom-left-radius: 50% 70px; border-bottom-right-radius: 50% 70px; }
.sh-hero--service { padding-bottom: clamp(5rem, 10vw, 8rem); }
.sh-hero--service .sh-container--wide { max-width: 1800px; }
.sh-hero__grid { grid-template-columns: 63% 1fr; gap: 1.5rem; align-items: center; }
.sh-hero__content { text-align: center; }
.sh-hero__title { font-weight: 900; font-size: clamp(2.6rem, 5.3vw, 76px); line-height: 1; margin: 0 0 2.2rem; }
.sh-hero__lead { font-size: clamp(1.4rem, 2vw, 28px); line-height: 1.5; font-weight: 800; font-family: var(--sh-font-heading); color: var(--sh-heading); margin: 0 0 14px; }
.sh-hero__meta { justify-content: center; color: var(--sh-accent); font-weight: 700; font-size: 1em; display: block; margin-bottom: 1.4rem; }
.sh-hero__desc { font-size: 1em; color: var(--sh-text); margin: 0 auto 0; max-width: none; }
/* Both CTAs share one row, centred under the copy, with a wide gutter. The
   labels are long: the gutter and the type close up first, and if the row still
   runs out of width the buttons stack – a label never breaks into two lines.
   (flex-wrap: nowrap would instead shrink the buttons below their text width.) */
.sh-hero__actions { justify-content: center; gap: clamp(1rem, 2.2vw, 32px); margin: 40px 0 0; flex-wrap: wrap; }
.sh-hero__actions .sh-btn { font-size: clamp(16px, 1.4vw, 20px); padding: 18px clamp(18px, 2.1vw, 30px); }
.sh-hero__actions .sh-btn__label { white-space: nowrap; }
.sh-hero__media { display: flex; justify-content: center; }
.sh-hero__media img.sh-hero__photo { border-radius: 50%; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; max-width: 550px; box-shadow: none; }

@media (max-width: 860px) {
    .sh-hero__actions { gap: 1rem; }
}
/* On a phone the row is stacked anyway and the viewport is the tighter limit –
   there a wrapped label beats a button running off the side of the screen. */
@media (max-width: 640px) {
    .sh-hero__actions .sh-btn__label { white-space: normal; }
}

/* ---- TESTIMONIAL CAROUSEL ---- */
.sh-carousel { position: relative; padding: 0 2.5rem; }
.sh-carousel__viewport { overflow: hidden; }
/* Slides are top-aligned instead of stretched, so every speech bubble is only
   as tall as the review it holds. */
/* pan-y hands vertical gestures back to the page – only the horizontal swipe
   belongs to the carousel. */
.sh-carousel__track { display: flex; align-items: center; gap: 1.6rem; transition: transform 0.45s ease; touch-action: pan-y; }
/* While a finger is on the track the quote must not turn into a selection. */
.sh-carousel.is-dragging .sh-carousel__track { user-select: none; }
.sh-carousel__slide { flex: 0 0 calc((100% - 3.2rem) / 3); box-sizing: border-box; padding: 0.6rem 0.3rem 1rem; }
/* Bare chevrons outside the cards, as on the live site – no button chrome. */
.sh-carousel__arrow { position: absolute; top: 38%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 0; background: none; color: var(--sh-heading); font-size: 2rem; line-height: 1; cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center; box-shadow: none; transition: color var(--sh-transition); }
.sh-carousel__arrow:hover { color: var(--sh-accent); }
.sh-carousel__arrow--prev { left: -0.5rem; }
.sh-carousel__arrow--next { right: -0.5rem; }
.sh-carousel__dots { display: flex; justify-content: center; gap: 0.55rem; margin-top: 2.4rem; }
.sh-carousel__dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--sh-muted); background: transparent; padding: 0; cursor: pointer; transition: all var(--sh-transition); }
.sh-carousel__dot.is-active { background: var(--sh-heading); border-color: var(--sh-heading); }

/* Testimonial card: thumbs-up badge straddling the top edge, speech bubble,
   author name and role left-aligned underneath. */
.sh-testimonial { display: flex; flex-direction: column; background: none; border: 0; box-shadow: none; padding: 25px 0 0; }
.sh-testimonial__card {
    position: relative; display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--sh-border-soft); border-radius: 10px;
    padding: 2.4rem 1.8rem 1.9rem;
    box-shadow: 0 4px 20px rgba(15, 40, 55, 0.06);
    transition: transform var(--sh-transition), box-shadow var(--sh-transition), border-color var(--sh-transition);
}
.sh-testimonial__card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(15, 40, 55, 0.12); border-color: rgba(var(--sh-accent-rgb), 0.28); }
.sh-testimonial__card::after {
    content: ""; position: absolute; left: 40px; bottom: -9px; width: 18px; height: 18px;
    background: #fff; border-right: 1px solid var(--sh-border-soft); border-bottom: 1px solid var(--sh-border-soft);
    transform: rotate(45deg); transition: border-color var(--sh-transition);
}
.sh-testimonial__card:hover::after { border-color: rgba(var(--sh-accent-rgb), 0.28); }
.sh-testimonial__badge {
    position: absolute; top: -25px; left: 30px;
    display: flex; align-items: center; justify-content: center; flex: none;
    width: 50px; height: 50px; border-radius: 50%;
    border: 1px solid var(--sh-border); background: #fff; color: var(--sh-heading);
    margin: 0; transition: background var(--sh-transition), color var(--sh-transition), border-color var(--sh-transition);
}
.sh-testimonial__card:hover .sh-testimonial__badge { background: var(--sh-accent); border-color: var(--sh-accent); color: #fff; }
.sh-testimonial__badge svg { width: 22px; height: 22px; }
.sh-testimonial__quote { position: static; margin: 0; padding: 0; border: 0; background: none; border-radius: 0; font-size: 1em; line-height: 1.6; color: var(--sh-heading); }
.sh-testimonial__foot { display: block; text-align: left; margin: 1.6rem 0 0; padding: 0 0 0 20px; }
.sh-testimonial__name { display: block; font-family: var(--sh-font-body); font-weight: 400; font-size: 1em; color: var(--sh-heading); }
.sh-testimonial__role { display: block; font-size: 0.85em; color: var(--sh-heading); }

/* ---- SPLIT layout (About & Skills) ---- */
.sh-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
/* A few sections on the live site flip the illustration to the right. */
.sh-split--media-right .sh-split__media { order: 2; }
.sh-split__media--illus { display: flex; justify-content: center; }
.sh-split__media--illus img { max-width: 500px; width: 100%; height: auto; box-shadow: none; }
.sh-split__title { font-weight: 800; font-size: clamp(1.5rem, 2vw, 28px); line-height: 1.5; margin: 0 0 14px; }
.sh-split__title--lg { font-size: clamp(1.9rem, 2.8vw, 40px); }
.sh-split__body p { color: var(--sh-text); }
.sh-split__body .sh-btn { margin-top: 1rem; }

/* ---- TECH MARQUEE (large, full-colour logos on plain white) ---- */
.sh-marquee { overflow: hidden; padding: 3rem 0; background: #fff; }
.sh-marquee__track { display: flex; gap: 4rem; width: max-content; align-items: center; animation: sh-marquee 70s linear infinite; }
.sh-marquee__track img { height: 80px; width: auto; object-fit: contain; flex: none; }
@keyframes sh-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .sh-marquee__track { animation: none; } }

/* ---- PROJECT / REFERENCE cards (centered) ---- */
.sh-project { border-radius: 10px; }
.sh-project__body { text-align: center; padding: 1.6rem; }
.sh-project__title { font-size: 24px; line-height: 1.4; margin: 0 0 0.5rem; }
.sh-project__title a { color: var(--sh-heading); }
.sh-project__title a:hover { color: var(--sh-accent); }
.sh-project__tech { font-family: var(--sh-font-body); font-weight: 700; color: var(--sh-heading); font-size: 1em; margin: 0 0 0.8rem; }
.sh-project__excerpt { color: var(--sh-text); font-size: 1em; margin: 0; }

/* ---- SERVICES (brand band, centered cards, white glyphs) ---- */
.sh-section--brand { background: linear-gradient(90deg, var(--sh-accent) 12%, var(--sh-accent-dark) 100%); padding: 80px 0 130px; }
.sh-services { gap: 32px; }
.sh-service { background: #fff; border-radius: 10px; padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center; box-shadow: 0 0 30px rgba(0,0,0,0.2); height: 100%; }
.sh-service__icon { width: 66px; height: 66px; border-radius: 50%; background: var(--sh-accent); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.sh-service__icon svg { width: 32px; height: 32px; }
.sh-service__title { font-weight: 700; font-size: 24px; line-height: 1.5; margin: 5px 0 10px; }
.sh-service__text { color: var(--sh-text); font-size: 1em; margin: 0 0 10px; }
/* The learn-more button is a small rounded rectangle, not a pill. */
.sh-service__more {
    margin-top: auto; display: inline-block;
    background: var(--sh-accent); color: #fff;
    font-family: var(--sh-font-body); font-weight: 400; font-size: 1em; line-height: 1.6;
    border-radius: 12px; padding: 4px 12px;
    transition: background var(--sh-transition);
}
.sh-service__more:hover { background: var(--sh-accent-dark); color: #fff; }

/* ---- SKILLS list (single column, filled check, accent links) ---- */
#skills .sh-skills { grid-template-columns: 1fr; max-width: none; margin: 1.4rem 0 2rem; gap: 0.7rem; }
#skills .sh-skills li { padding-left: 2.3rem; font-family: var(--sh-font-body); font-weight: 400; color: var(--sh-text); }
#skills .sh-skills li::before { content: "✓"; background: var(--sh-accent); color: #fff; width: 1.55rem; height: 1.55rem; font-size: 0.85rem; }

/* ---- CONTACT (grey band, curved top, illustration, inline form) ---- */
.sh-contact { background: var(--sh-bg-alt); border-top-left-radius: 50% 70px; border-top-right-radius: 50% 70px; }
/* Die geschwungene Oberkante schneidet das graue Band gegen den weißen Seiten-
   grund frei. Sitzt darüber selbst eine getönte, dunkle oder farbige Sektion,
   bliebe an der Kurve eine weiße Sichel stehen – dann läuft die Kante gerade.
   Die :has()-Zeilen decken den Fall ab, dass die Sektion darüber in einem
   Wrapper steckt (z. B. das <article> der Leistungsseiten). */
.sh-page-hero + .sh-contact,
.sh-section--alt + .sh-contact,
.sh-section--soft + .sh-contact,
.sh-section--dark + .sh-contact,
.sh-section--brand + .sh-contact,
:has(> .sh-page-hero:last-child) + .sh-contact,
:has(> .sh-section--alt:last-child) + .sh-contact,
:has(> .sh-section--soft:last-child) + .sh-contact,
:has(> .sh-section--dark:last-child) + .sh-contact,
:has(> .sh-section--brand:last-child) + .sh-contact {
    border-top-left-radius: 0; border-top-right-radius: 0;
}
.sh-contact__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center; }
.sh-contact__title { font-weight: 700; font-size: clamp(1.9rem, 3vw, 2.4rem); margin: 0 0 1.3rem; }
.sh-contact__phone { margin: 1.2rem 0 1.8rem; }
.sh-contact__media { display: flex; justify-content: center; }
.sh-contact__media img { width: 100%; max-width: 520px; height: auto; }

/* Das Formular sitzt als weiße Karte im grauen Kontaktband: klare Kante zur
   Fläche, weicher Schatten und ein Akzentstreifen an der Oberkante. */
.sh-contact .sh-form {
    position: relative; overflow: hidden;
    background: #fff; border: 1px solid var(--sh-border-soft);
    border-radius: var(--sh-radius-lg);
    box-shadow: 0 20px 50px -22px rgba(0, 0, 0, 0.22);
    padding: clamp(1.5rem, 3vw, 2.4rem);
}
.sh-contact .sh-form::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: linear-gradient(90deg, var(--sh-accent), var(--sh-accent-darker));
}
.sh-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
/* Ruhige Felder: getönter Grund, weiche Ecken – der Fokus hebt das Feld auf
   Weiß und legt einen Akzentring darum. Die Consent-Box wird separat gestylt. */
.sh-form input:not([type="checkbox"]), .sh-form textarea {
    background: #f8fafb; border: 1px solid var(--sh-border); border-radius: 10px;
    padding: 14px 16px; font-size: 1em; color: var(--sh-text);
    transition: border-color var(--sh-transition), background-color var(--sh-transition), box-shadow var(--sh-transition);
}
.sh-form input::placeholder, .sh-form textarea::placeholder { color: #9aa3ad; }
.sh-form input:not([type="checkbox"]):hover, .sh-form textarea:hover { border-color: #c7ced6; }
.sh-form input:not([type="checkbox"]):focus, .sh-form textarea:focus {
    background: #fff; border-color: var(--sh-accent); outline: none;
    box-shadow: 0 0 0 4px rgba(var(--sh-accent-rgb), 0.14);
}
.sh-form textarea { min-height: 130px; }

/* Feldbeschriftungen bleiben für Screenreader erhalten, sichtbar führen die
   Platzhalter – das Layout soll luftig bleiben. */
.sh-form .sh-field__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Einwilligung als eigener, leicht abgesetzter Block – sie ist Pflichtfeld und
   soll nicht wie eine Fußnote unter dem Formular verschwinden. */
.sh-form .sh-field--check {
    background: #f8fafb; border: 1px solid var(--sh-border-soft); border-radius: 10px;
    padding: 0.9rem 1rem; gap: 0.75rem; margin-bottom: 1.4rem;
}
.sh-form .sh-field--check label { color: var(--sh-text); font-size: 0.9rem; line-height: 1.5; margin: 0; }
.sh-form .sh-field--check input[type="checkbox"] {
    appearance: none; -webkit-appearance: none;
    width: 1.15rem; height: 1.15rem; flex: none; margin-top: 0.15em;
    border: 1px solid #a8b1bb; border-radius: 5px; background: #fff; cursor: pointer;
    transition: background-color var(--sh-transition), border-color var(--sh-transition);
}
.sh-form .sh-field--check input[type="checkbox"]:checked {
    background: var(--sh-accent) var(--sh-check-mark) center / 0.75rem no-repeat;
    border-color: var(--sh-accent);
}
.sh-form .sh-field--check input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--sh-accent-dark); outline-offset: 2px;
}
.sh-form .sh-field--check__body { display: grid; gap: 0.2rem; }
.sh-form__privacy-link { margin: 0; font-size: 0.85rem; }
.sh-form__privacy-link a { color: var(--sh-muted); text-decoration: underline; text-underline-offset: 2px; }
.sh-form__privacy-link a:hover { color: var(--sh-accent); }

/* Absenden: gleiche Pillenform wie alle Buttons der Seite, auf schmalen
   Viewports über die volle Breite. */
.sh-form .sh-btn[type="submit"] { width: 100%; padding: 16px 32px; }
.sh-form .sh-btn[type="submit"]:hover { box-shadow: 0 15px 25px -7px rgba(var(--sh-accent-rgb), 0.45); }
@media (min-width: 641px) {
    .sh-form .sh-btn[type="submit"] { width: auto; }
}

/* Vertrauenspunkte direkt über dem Formular: die drei Fragen, die einen
   Besucher vor dem Absenden bremsen, vorweg beantwortet. */
.sh-contact__reassurance { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 0.45rem; }
.sh-contact__reassurance li {
    position: relative; padding-left: 1.6rem;
    font-size: 0.95rem; color: var(--sh-muted);
}
.sh-contact__reassurance li::before {
    content: ""; position: absolute; left: 0; top: 0.6em;
    width: 0.52rem; height: 0.28rem;
    border-left: 2px solid var(--sh-accent); border-bottom: 2px solid var(--sh-accent);
    transform: rotate(-45deg);
}

/* Anfrage-Typ als Klickauswahl. Ersetzt den Kaltstart im leeren Textfeld –
   ein Klick genügt jetzt für eine verwertbare Anfrage. */
.sh-field--choices { border: 0; padding: 0; margin: 0 0 1.2rem; }
.sh-field--choices legend {
    padding: 0; margin-bottom: 0.55rem;
    font-family: var(--sh-font-heading); font-weight: 600;
    font-size: 0.95rem; color: var(--sh-heading);
}
.sh-choices { position: relative; display: flex; flex-wrap: wrap; gap: 0.5rem; }
/* Die Radios werden visuell versteckt, die Labels sind die Buttons. Die
   Selektor-Spezifitaet muss ".sh-field input" (width: 100%) schlagen, sonst
   spannt das absolut positionierte Input die volle Viewport-Breite auf. */
.sh-choices .sh-choice__input {
    position: absolute; top: 0; left: 0;
    width: 1px; height: 1px; padding: 0; margin: 0; border: 0;
    opacity: 0; pointer-events: none;
}
.sh-choice {
    display: inline-block; cursor: pointer;
    padding: 9px 18px; border: 1px solid var(--sh-border); border-radius: 50px;
    background: #f8fafb; font-size: 0.93rem; line-height: 1.2; color: var(--sh-text);
    transition: border-color 0.15s, background-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.sh-choice:hover { border-color: var(--sh-accent); background: #fff; color: var(--sh-accent-dark); }
.sh-choice__input:checked + .sh-choice {
    background: var(--sh-accent); border-color: var(--sh-accent); color: #fff;
    box-shadow: 0 8px 18px -8px rgba(var(--sh-accent-rgb), 0.75);
}
.sh-choice__input:focus-visible + .sh-choice {
    outline: 2px solid var(--sh-accent-dark); outline-offset: 2px;
}

/* =========================================================================
   Leistung (service) page blocks
   ========================================================================= */

/* A button row is a component, not running text – links inside must not pick
   up the underline that .sh-content a applies. */
.sh-btn-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin: 2.5rem 0 0; }
.sh-btn, .sh-btn:hover { text-decoration: none; }

/* ---- Service boxes (white cards with a round icon badge) ---- */
/* The live grid sits in a narrower row than the surrounding content. */
.sh-service-boxes { gap: 32px; margin-top: 1rem; max-width: 1150px; margin-left: auto; margin-right: auto; }
.sh-service-box {
    background: #fff; border-radius: 10px; padding: 30px; text-align: center;
    display: flex; flex-direction: column; align-items: center; height: 100%;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.03);
}
.sh-service-box__icon {
    display: flex; align-items: center; justify-content: center; flex: none;
    width: 66px; height: 66px; border-radius: 50%;
    background: var(--sh-accent); color: #fff; margin-bottom: 1rem;
}
.sh-service-box__icon svg { width: 30px; height: 30px; }
/* The heading element itself is regular weight on the live site, but its label
   sits in a <strong>, so the title reads bold. */
.sh-service-box__title { font-weight: 700; font-size: 24px; line-height: 1.5; margin: 5px 0 10px; }
.sh-service-box__text { color: var(--sh-text); font-size: 1em; margin: 0; }

/* On the white bands the cards need an outline instead of a drop shadow. */
.sh-section--alt .sh-service-box { box-shadow: var(--sh-shadow); border: 1px solid var(--sh-border-soft); }

/* ---- Card list (grouped term lists, "Technologien für …") ---- */
/* Both card rows are built from one card width, so the technology cards and the
   process steps read as the same module. The four-card row is what limits that
   width, so both sections run in the widest container the theme has, on a tighter
   gutter than the rest of the page – with four cards abreast there is no more
   room to give. The
   three-column row then sits centred beneath it. No align-items – the default
   stretch is what keeps the cards of a row on one height, however many entries
   each of them lists. */
.sh-cards, .sh-steps {
    --sh-card-gap: 24px;
    --sh-card-w: calc((min(100%, var(--sh-container-hero)) - 3 * var(--sh-card-gap)) / 4);
    justify-content: center;
}
.sh-cards {
    display: grid; gap: var(--sh-card-gap); margin: 2.5rem auto 0;
    max-width: var(--sh-container-hero);
}
.sh-cards--2 { grid-template-columns: repeat(2, minmax(0, var(--sh-card-w))); }
.sh-cards--3 { grid-template-columns: repeat(3, minmax(0, var(--sh-card-w))); }
/* Subgrid puts every head in one row track and every list in the next, so the
   lists start on one line even when a category name wraps and its neighbours do
   not. Browsers without subgrid simply keep their own two auto rows. */
.sh-card {
    display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 1.4rem;
    background: #fff; border: 1px solid var(--sh-border-soft);
    border-radius: var(--sh-radius); padding: 30px;
    box-shadow: var(--sh-shadow);
}
.sh-card__head { display: flex; align-items: center; gap: 0.9rem; }
/* Tinted rather than filled: the icon labels the group, it is not the headline. */
.sh-card__icon {
    display: flex; align-items: center; justify-content: center; flex: none;
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(var(--sh-accent-rgb), 0.1); color: var(--sh-accent);
}
.sh-card__icon svg { width: 24px; height: 24px; }
/* min-width/hyphens: a German compound ("Automatisierungsplattformen") is wider
   than the column it sits in and carries no break opportunity of its own. */
.sh-card__title {
    font-weight: 700; font-size: 20px; line-height: 1.3; margin: 0;
    min-width: 0; overflow-wrap: break-word; hyphens: auto;
}
.sh-card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.sh-card__list li { position: relative; padding-left: 1.1rem; line-height: 1.5; }
.sh-card__list li::before {
    content: ""; position: absolute; left: 0; top: 0.6em;
    width: 6px; height: 6px; border-radius: 50%; background: var(--sh-accent);
}
.sh-card__term { display: block; color: var(--sh-heading); font-weight: 700; }
.sh-card__desc { color: var(--sh-muted); font-size: 0.95em; }

/* ---- Steps (numbered process flow, "So starten wir …") ---- */
.sh-steps {
    list-style: none; padding: 0; margin: 2.5rem auto 0;
    max-width: var(--sh-container-hero); display: grid; gap: var(--sh-card-gap);
}
.sh-steps--3 { grid-template-columns: repeat(3, minmax(0, var(--sh-card-w))); }
.sh-steps--4 { grid-template-columns: repeat(4, minmax(0, var(--sh-card-w))); }
.sh-step {
    position: relative; background: #fff; border: 1px solid var(--sh-border-soft);
    border-radius: var(--sh-radius); padding: 30px 24px; text-align: center;
    display: flex; flex-direction: column; align-items: center; height: 100%;
    box-shadow: var(--sh-shadow);
}
.sh-step__num {
    display: flex; align-items: center; justify-content: center; flex: none;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--sh-accent); color: #fff;
    font-size: 24px; font-weight: 700; line-height: 1; margin-bottom: 1rem;
}
.sh-step__title { font-weight: 700; font-size: 20px; line-height: 1.4; margin: 0 0 0.6rem; }
/* The bottom margin is the minimum gap to the pill below; the pill's auto top
   margin eats the rest, so the pills line up across cards of unequal copy. */
.sh-step__text { color: var(--sh-text); font-size: 1em; margin: 0 0 1rem; }
.sh-step__meta {
    margin-top: auto; padding: 5px 14px; border-radius: 999px;
    background: rgba(var(--sh-accent-rgb), 0.1); color: var(--sh-accent-dark);
    font-size: 0.85em; font-weight: 700; line-height: 1.4;
}
.sh-step:not(:has(.sh-step__meta)) .sh-step__text { margin-bottom: 0; }

/* Connector between the number badges – only while the row is unwrapped, and
   aligned with the badge centre (30px padding + half of 56px). */
@media (min-width: 993px) {
    .sh-step:not(:last-child)::after {
        content: ""; position: absolute; top: 58px;
        right: calc(-1 * var(--sh-card-gap)); width: var(--sh-card-gap);
        border-top: 2px dashed var(--sh-border);
    }
}

/* ---- Leistung page: the live heading scale differs from the front page ---- */
/* Section headings run at 28px, except the testimonial rail (48px) and the
   sections the live site enlarges to 40px – those carry the "lg" modifier,
   which the seeded block data sets per section. */
.single-sh_service .sh-section-header__title { font-size: 28px; line-height: 1.5; }
.single-sh_service #kundenstimmen .sh-section-header__title { font-size: 48px; line-height: 1; }
.single-sh_service .sh-section-header--lg .sh-section-header__title { font-size: 40px; line-height: 1.5; }
/* Body copy on a Leistung page runs in a narrow, centred column, not full width. */
.single-sh_service .sh-faq,
.single-sh_service .sh-faq + *,
.single-sh_service #faq .sh-section-header { max-width: 850px; margin-left: auto; margin-right: auto; }
.single-sh_service .sh-faq__q { font-size: 24px; line-height: 1.5; font-weight: 800; }
.single-sh_service .sh-faq__a { font-size: 1em; }

/* The contact heading is a plain section heading on the live site, not a display size. */
.sh-contact__title { font-size: 28px; line-height: 1.5; font-weight: 800; }

/* Copy framing a box grid, e.g. the pricing intro and its small print. */
.sh-boxes__intro, .sh-boxes__outro { max-width: 820px; margin: 0 auto; text-align: center; }
.sh-boxes__intro { margin-bottom: 2.5rem; margin-top: -1rem; }
.sh-boxes__outro { margin-top: 2.5rem; }
.sh-section--brand .sh-boxes__intro, .sh-section--brand .sh-boxes__outro { color: rgba(255,255,255,0.92); }
.sh-section--brand .sh-boxes__intro a, .sh-section--brand .sh-boxes__outro a { color: #fff; }

/* ---- Check list (filled accent circle + white tick) ---- */
.sh-check-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.9rem; }
.sh-check-list li { position: relative; padding-left: 2.4rem; color: var(--sh-text); }
.sh-check-list li::before {
    content: ""; position: absolute; left: 0; top: 0.15em;
    width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--sh-accent);
    /* white tick, drawn so it stays crisp at any font size */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12.5 10 17.5 19 7'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center; background-size: 0.95rem;
}
.sh-check-list li > strong:first-child { color: var(--sh-heading); }

/* ---- FAQ ---- */
.sh-faq { display: grid; gap: 2rem; }
.sh-faq__q { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.6rem; }

/* Collapsible variant: the questions are <summary> elements with a chevron. */
.sh-faq--accordion { gap: 0; }
.sh-faq--accordion .sh-faq__item { border-bottom: 1px solid var(--sh-border); }
.sh-faq--accordion .sh-faq__q {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    margin: 0; padding: 1.1rem 0; cursor: pointer; list-style: none;
    transition: color var(--sh-transition);
}
.sh-faq--accordion .sh-faq__q::-webkit-details-marker { display: none; }
.sh-faq--accordion .sh-faq__q::after {
    content: ""; flex: none; width: 0.75em; height: 0.75em;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-0.15em, -0.15em);
    transition: transform var(--sh-transition);
}
.sh-faq--accordion .sh-faq__item[open] > .sh-faq__q::after { transform: rotate(-135deg) translate(-0.15em, -0.15em); }
.sh-faq--accordion .sh-faq__q:hover { color: var(--sh-accent); }
.sh-faq--accordion .sh-faq__a { padding: 0 0 1.3rem; }
.sh-faq__a { color: var(--sh-text); }
.sh-faq__a p { margin: 0 0 0.8rem; }
.sh-faq__a p:last-child { margin-bottom: 0; }

/* ---- Responsive overrides ---- */
@media (max-width: 992px) {
    .sh-hero__grid { grid-template-columns: 1fr; }
    /* Auf schmalen Viewports zaehlt zuerst die Botschaft: Das Portrait bleibt in
       der Quellreihenfolge, rutscht damit unter die CTAs und wird kleiner. */
    .sh-hero__media { order: 0; max-width: none; margin-top: 2.5rem; }
    .sh-split { grid-template-columns: 1fr; gap: 2rem; }
    .sh-split__media--illus { order: -1; }
    .sh-contact__grid { grid-template-columns: 1fr; }
    .sh-contact__media { order: -1; max-width: 380px; margin: 0 auto; }
    .sh-carousel__slide { flex-basis: calc((100% - 1.6rem) / 2); }
    .sh-services { grid-template-columns: 1fr 1fr; }
    .sh-service-boxes { grid-template-columns: 1fr 1fr; }
    .sh-steps--3, .sh-steps--4 { grid-template-columns: 1fr 1fr; }
    .sh-cards--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .sh-hero__media { margin-top: 2rem; }
    .sh-carousel { padding: 0 1.2rem; }
    .sh-carousel__slide { flex-basis: 100%; }
    .sh-carousel__arrow { display: none; }
    /* Auf Handybreite scrollt der Browser die Kundenstimmen selbst: die erste
       Wischbewegung greift sofort, mit Schwung und Einrasten. Die Kopien fuer
       den Endlos-Lauf stoeren dabei und bleiben ausgeblendet. */
    .sh-carousel__viewport {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .sh-carousel__viewport::-webkit-scrollbar { display: none; }
    .sh-carousel__track { transform: none !important; transition: none; touch-action: auto; }
    .sh-carousel__slide { scroll-snap-align: start; }
    .sh-carousel__slide[aria-hidden="true"] { display: none; }
    .sh-services { grid-template-columns: 1fr; }
    /* Muss hier stehen, nicht im 782px-Block: die Zweispalter-Regel weiter
       oben (max-width: 992px) kommt spaeter in der Datei und wuerde gewinnen. */
    .sh-service-boxes { grid-template-columns: 1fr; }
    .sh-steps--3, .sh-steps--4 { grid-template-columns: 1fr; }
    .sh-cards--2, .sh-cards--3 { grid-template-columns: 1fr; }
    .sh-field-row { grid-template-columns: 1fr; }
    /* 2x45px Innenabstand fressen auf Handybreite ein Viertel der Karte. */
    .sh-post-card__body { padding: 28px; }
    .sh-post-card__title { font-size: 24px; }
}

/* =========================================================================
   18. Technology grid (service pages)
   ========================================================================= */
.sh-page-hero__subtitle { font-size: 1.15rem; font-weight: 400; color: var(--sh-muted); margin: 0.4rem 0 0.8rem; }

/* Blog page hero: tagline + intro paragraph + CTA, like the live site. */
.sh-page-hero__intro { max-width: var(--sh-container-narrow); margin: 0 auto 1.6rem; }
.sh-page-hero__intro h2 { font-size: 1.35rem; font-weight: 400; color: var(--sh-muted); margin: 0 0 1rem; }
.sh-page-hero__intro p { color: var(--sh-muted); margin: 0; }
.sh-page-hero--blog .sh-breadcrumbs { margin-top: 1.6rem; }

.sh-techgrid {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1.5rem;
}
.sh-techgrid__item {
    display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
    background: #fff; border: 1px solid var(--sh-border-soft); border-radius: var(--sh-radius-lg);
    padding: 1.6rem 1rem; box-shadow: var(--sh-shadow);
    transition: transform var(--sh-transition), box-shadow var(--sh-transition);
}
.sh-techgrid__item:hover { transform: translateY(-4px); box-shadow: var(--sh-shadow-lg); }
.sh-techgrid__logo { height: 60px; display: flex; align-items: center; justify-content: center; }
.sh-techgrid__logo img { max-height: 60px; width: auto; object-fit: contain; }
.sh-techgrid__name { font-family: var(--sh-font-heading); font-weight: 600; font-size: 0.95rem; color: var(--sh-heading); text-align: center; }
SOllte das Styling für
/* =========================================================================
   19. Cookie-Banner (consent-mode-kit)
   =========================================================================
   Das Plugin haengt sein gesamtes Aussehen an --cmk-*-Variablen und erwartet,
   dass ein Theme sie auf :root ueberschreibt. Genau das passiert hier: kein
   Selektor des Plugins wird nachgebaut, nur seine Tokens auf die der Seite
   gemappt.

   Die Tokens stehen auf .cmk und nicht auf :root - obwohl das Plugin :root
   dokumentiert. Grund: das Plugin setzt sie selbst auf :root, und bei gleicher
   Spezifitaet entscheidet die Ladereihenfolge. Dass sh-style nach cmk-banner
   laeuft, ist ein Zufall der Enqueue-Reihenfolge; ein Plugin, das Stylesheets
   zusammenfasst, kippt sie. Auf .cmk deklariert gewinnt der Wert dagegen immer:
   Custom Properties vererben, und eine Deklaration am Element selbst schlaegt
   jeden geerbten Wert - unabhaengig von Reihenfolge und Spezifitaet.
   .cmk-embed steht ausserhalb von .cmk und braucht die Tokens deshalb ebenfalls.

   Achtung: Accent und Radius sind im Plugin auch im Backend einstellbar
   (Einstellungen -> Consent Mode Kit). Diese Regeln gewinnen darueber. Das ist
   Absicht - das Banner soll aussehen wie die Seite, nicht wie ein
   Fremdkoerper. Wer die Backend-Regler wieder wirksam machen will, loescht die
   drei Zeilen unter "Farben" und setzt die Werte dort.
   ========================================================================= */
.cmk,
.cmk-embed {
    /* --- Farben ---
       Nicht --sh-accent, sondern die dunklere Stufe: Weiss auf #0099cc kommt
       nur auf 3,3:1 und faellt damit unter die 4,5:1 der WCAG AA. #0077aa
       liegt bei 5,0:1 und liest sich im Banner immer noch als dasselbe Cyan. */
    --cmk-accent:          var(--sh-accent-dark);
    --cmk-accent-hover:    var(--sh-accent-darker);
    --cmk-accent-contrast: #ffffff;

    /* Ablehnen bleibt eine gefuellte Flaeche in gleicher Groesse und gleichem
       Gewicht wie Zustimmen - nur in der dunkelsten Neutralfarbe der Seite
       statt im Blaugrau des Plugins. Ein Outline-Button waere schwaecher und
       nach den EDSA-Leitlinien angreifbar. */
    --cmk-neutral:          var(--sh-heading);
    --cmk-neutral-contrast: #ffffff;

    --cmk-fg:      var(--sh-heading);
    --cmk-muted:   var(--sh-muted);
    --cmk-bg:      var(--sh-bg);
    --cmk-border:  var(--sh-border-soft);
    --cmk-surface: var(--sh-bg-soft);

    /* --- Form ---
       Panel wie eine Karte (16px), Buttons als Pillen wie .sh-btn. Dafuer gibt
       es im Plugin seit dieser Anpassung zwei getrennte Radien. */
    --cmk-btn-radius: 50px;
    --cmk-radius:     var(--sh-radius-lg);
    --cmk-font-btn:   var(--sh-font-btn);

    --cmk-shadow:       0 -10px 30px -12px rgba(0, 0, 0, 0.18);
    --cmk-shadow-modal: var(--sh-shadow-lg);
    --cmk-backdrop:     rgba(15, 32, 41, 0.55);
}

/* Jost laeuft kleiner als Ubuntu - 0.9rem wirkt darin gedrungen. */
.cmk .cmk__btn { font-size: 0.95rem; font-weight: 500; padding: 0.8rem 1.25rem; }

/* Die Seite hebt Buttons per Schatten statt per Bewegung an. */
.cmk .cmk__btn--primary:hover,
.cmk .cmk__btn--secondary:hover { box-shadow: 0 15px 25px -7px rgba(0, 0, 0, 0.1); }
.cmk .cmk__btn--secondary:hover { filter: none; background: #000000; }

/* Der Datenschutz-Link steht auf 0.85rem - in --sh-accent waere er auf Weiss
   bei 3,3:1 und damit zu schwach fuer Fliesstext-Groesse. */
.cmk .cmk__links a { color: var(--sh-accent-darker); }

.cmk .cmk__title { font-family: var(--sh-font-heading); font-size: 1.2rem; }
