/* =========================================================
   frank-hilsberg.de – Grundlayout (Kirby)
   Farben:  Rot #bf113d · Blau #005f73 · Gelb #f5f1ba
            Grün #33e54c · Grau #6b7280
   Schrift: Roboto Slab (Überschriften) · Roboto (Fließtext)
   Body 17px / 1,7 · Überschriften 30px / 1,0 (aus Divi-Einstellungen)
   ========================================================= */

/* ---------- Schriften (lokal eingebunden, DSGVO-freundlich) ---------- */

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/roboto-latin-ext-400-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/roboto-latin-ext-500-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/roboto-latin-ext-700-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Roboto Slab";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/roboto-slab-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Roboto Slab";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/roboto-slab-latin-ext-400-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Roboto Slab";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/roboto-slab-latin-600-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Roboto Slab";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/roboto-slab-latin-ext-600-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Roboto Slab";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/roboto-slab-latin-700-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Roboto Slab";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/roboto-slab-latin-ext-700-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Variablen ---------- */

:root {
    --fh-red: #bf113d;
    --fh-blue: #005f73;
    --fh-yellow: #f5f1ba;
    --fh-green: #33e54c;
    --fh-grey: #6b7280;

    --fh-text: #333333;
    --fh-white: #ffffff;
    --fh-line: #e5e7eb;

    --fh-font-body: "Roboto", Arial, sans-serif;
    --fh-font-head: "Roboto Slab", Georgia, serif;

    --fh-body-size: 17px;
    --fh-body-line: 1.7;
    --fh-head-size: 30px;
    --fh-head-line: 1;

    --fh-wrap: 1400px;
    --fh-btn-hover: #004a5a;
    --fh-grey-bg: #eef0f2;
    --fh-gutter: 24px;
    --fh-radius: 15px;
}

/* ---------- Basis ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    background: var(--fh-white);
    color: var(--fh-text);
    font-family: var(--fh-font-body);
    font-size: var(--fh-body-size);
    line-height: var(--fh-body-line);
}

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

a {
    color: var(--fh-blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--fh-red);
}

:focus-visible {
    outline: 3px solid var(--fh-blue);
    outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 0.6em;
    font-family: var(--fh-font-head);
    font-weight: 700;
    letter-spacing: 0;
    line-height: var(--fh-head-line);
}

h1 { font-size: 40px; line-height: 1.1; color: var(--fh-red); }
h2 { font-size: var(--fh-head-size); color: var(--fh-grey); }
h3 { font-size: 22px; line-height: 1.2; color: var(--fh-blue); }

p {
    margin: 0 0 1em;
}

.fh-wrap {
    width: 100%;
    max-width: calc(var(--fh-wrap) + 2 * var(--fh-gutter));
    margin-inline: auto;
    padding-inline: var(--fh-gutter);
}

.fh-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 10px 16px;
    background: var(--fh-blue);
    color: var(--fh-white);
}

.fh-skip:focus {
    left: 0;
}

/* ---------- Buttons ---------- */

.fh-button {
    display: inline-block;
    padding: 12px 26px;
    border: 2px solid var(--fh-blue);
    border-radius: 10px;
    background: var(--fh-blue);
    color: var(--fh-white);
    font-family: var(--fh-font-body);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.fh-button-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 24px;
}

.fh-button:hover {
    background: var(--fh-btn-hover);
    border-color: var(--fh-btn-hover);
    color: var(--fh-white);
    transform: translateY(-2px);
}

.fh-button:active,
.fh-button:focus {
    background: var(--fh-btn-hover);
    border-color: var(--fh-btn-hover);
    color: var(--fh-white);
    transform: none;
}

.fh-button--light {
    background: var(--fh-white);
    border-color: var(--fh-white);
    color: var(--fh-blue);
}

.fh-button--light:hover,
.fh-button--light:active,
.fh-button--light:focus {
    background: #e3eef0;
    border-color: #e3eef0;
    color: var(--fh-blue);
}

/* ---------- Kopfbereich ---------- */

.fh-topbar {
    background: var(--fh-blue);
    color: var(--fh-white);
    font-size: 15px;
    line-height: 1.4;
}

.fh-topbar .fh-wrap {
    display: flex;
    justify-content: flex-end;
    gap: 28px;
    padding-block: 7px;
}

.fh-topbar a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fh-white);
    text-decoration: none;
}

.fh-topbar a:hover {
    color: var(--fh-yellow);
}

.fh-topbar svg {
    width: 16px;
    height: 16px;
    flex: none;
}

.fh-header-wrap {
    display: contents;
}

.fh-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--fh-white);
    border-bottom: 1px solid var(--fh-line);
    transition: box-shadow 0.25s ease;
}

.fh-header.is-scrolled {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.1);
}

.fh-header.is-scrolled .fh-wrap {
    padding-block: 8px;
}

.fh-header.is-scrolled .fh-logo img {
    height: 46px;
}

.fh-header .fh-wrap {
    transition: padding 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 14px;
}

.fh-logo img {
    width: auto;
    height: 56px;
    transition: height 0.25s ease;
}

.fh-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fh-nav a {
    position: relative;
    display: block;
    padding: 6px 0;
    color: var(--fh-grey);
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
}

.fh-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--fh-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.fh-nav a:hover,
.fh-nav a[aria-current="page"] {
    color: var(--fh-blue);
}

.fh-nav a:hover::after,
.fh-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.fh-nav-toggle {
    display: none;
    padding: 9px 14px;
    border: 2px solid var(--fh-blue);
    border-radius: 10px;
    background: var(--fh-white);
    color: var(--fh-blue);
    font: 700 16px/1 var(--fh-font-body);
    cursor: pointer;
}

/* ---------- Startseite: Hero ---------- */

.fh-hero {
    position: relative;
    overflow: hidden;
    background: var(--fh-white);
}

.fh-hero .fh-wrap {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    padding-block: 64px;
}

.fh-hero h1 {
    margin-bottom: 14px;
    color: var(--fh-text);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.fh-hero h2 {
    margin-bottom: 22px;
    color: var(--fh-red);
    font-size: 36px;
    line-height: 1.3;
}

.fh-hero-points {
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.fh-hero-points li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    color: var(--fh-grey);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
}

.fh-hero-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--fh-red);
}

.fh-hero-image a {
    display: block;
    border-radius: var(--fh-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 95, 115, 0.15);
}

.fh-hero-image img {
    width: 100%;
}

/* ---------- Bildkarten ---------- */

.fh-cards {
    padding-block: 20px 70px;
}

.fh-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.fh-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1.5px solid var(--fh-line);
    border-radius: var(--fh-radius);
    background: var(--fh-white);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.fh-card:hover {
    transform: translateY(-3px);
    border-color: var(--fh-blue);
    box-shadow: 0 8px 22px rgba(0, 95, 115, 0.14);
    color: inherit;
}

.fh-card-media {
    aspect-ratio: 3 / 2;
    background: linear-gradient(135deg, var(--fh-blue), #0a7d95);
}

.fh-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fh-card-body {
    padding: 18px 20px 22px;
}

.fh-card-body h3 {
    margin-bottom: 8px;
    color: var(--fh-red);
    font-size: 20px;
    line-height: 1.2;
}

.fh-card-body p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

/* ---------- Abschnitte ---------- */

.fh-section {
    padding-block: 70px;
}

.fh-section--tint {
    background: var(--fh-grey-bg);
}

.fh-section-head {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.fh-section-head h2 {
    color: var(--fh-red);
}

/* ---------- Leistungsblöcke (CSS aus der bisherigen Website) ---------- */

.fh-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.fh-service-card {
    position: relative;
    display: flex;
    gap: 18px;
    width: 100%;
    min-height: 210px;
    padding: 22px 22px 20px 22px;
    background: #ffffff;
    border: 1.5px solid #005f73;
    border-radius: 15px;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fh-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 95, 115, 0.14);
}

.fh-service-icon {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border-radius: 50px;
    background: #005f73;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    line-height: 1;
}

.fh-service-icon svg,
.fh-service-icon img {
    width: 40px;
    height: 40px;
}

.fh-service-content {
    flex: 1;
    min-width: 0;
}

.fh-service-title {
    margin: 2px 0 10px 0;
    padding: 0;
    color: #005f73;
    font-size: 21px;
    line-height: 1.15;
    font-weight: 700;
}

.fh-service-list {
    margin: 0;
    padding-left: 19px;
    color: #333333;
    font-size: 16px;
    line-height: 1.45;
}

.fh-service-list li {
    margin-bottom: 2px;
}

.fh-service-list li:last-child {
    margin-bottom: 0;
}

a.fh-service-card {
    text-decoration: none;
    color: inherit;
}

a.fh-service-card:hover {
    text-decoration: none;
}

.fh-section-cta {
    margin-top: 40px;
    text-align: center;
}

/* ---------- Referenzen / Platzhalter für externe Inhalte ---------- */

.fh-consent {
    max-width: 780px;
    margin: 0 auto;
    padding: 30px 32px;
    border: 1.5px dashed var(--fh-grey);
    border-radius: var(--fh-radius);
    background: var(--fh-white);
    text-align: center;
}

.fh-consent p {
    margin-bottom: 16px;
}

.fh-consent .fh-button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---------- Rezensions-Slider ---------- */

.fh-section--beige {
    background: var(--fh-yellow);
}

.fh-section-head--left {
    margin: 0 0 36px;
    max-width: none;
    text-align: left;
}

.fh-section-head--left h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    margin-top: 16px;
    background: var(--fh-white);
}

.fh-reviews {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: center;
}

.fh-reviews-summary {
    text-align: center;
    color: #1f2937;
}

.fh-reviews-summary strong {
    display: block;
    font-size: 20px;
    letter-spacing: 0.04em;
}

.fh-stars {
    color: #f6b800;
    font-size: 26px;
    letter-spacing: 2px;
    line-height: 1.2;
}

.fh-reviews-summary p {
    margin: 4px 0 0;
    font-size: 15px;
}

.fh-reviews-source {
    display: block;
    margin-top: 6px;
    font: 700 24px var(--fh-font-body);
    color: var(--fh-blue);
}

.fh-slider {
    position: relative;
    min-width: 0;
}

.fh-slider-viewport {
    overflow: hidden;
    padding: 6px 4px 14px;
}

.fh-slider-track {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    transition: transform 0.4s ease;
}

.fh-reviews-card {
    min-height: 260px;
    flex: 0 0 calc((100% - 72px) / 4);
    display: flex;
    flex-direction: column;
    padding: 22px;
    border-radius: 12px;
    background: var(--fh-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    font-size: 16px;
    line-height: 1.5;
}

.fh-reviews-card header {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.fh-reviews-card .fh-stars { font-size: 18px; }

.fh-reviews-card blockquote {
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fh-reviews-card .fh-more {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    cursor: pointer;
    margin-bottom: 12px;
    color: var(--fh-grey);
    font-size: 15px;
    text-decoration: none;
}

.fh-reviews-card .fh-more:hover {
    color: var(--fh-blue);
    text-decoration: underline;
}

.fh-reviews-card.is-open blockquote {
    display: block;
    overflow: visible;
}

.fh-reviews-card cite {
    margin-top: auto;
}

a.fh-reviews-source {
    text-decoration: none;
}

a.fh-reviews-source:hover {
    text-decoration: underline;
}

.fh-reviews-card cite {
    font-style: normal;
    font-weight: 700;
}

.fh-reviews-card small {
    color: var(--fh-grey);
}

.fh-slider-btn {
    position: absolute;
    top: 50%;
    width: 42px;
    height: 42px;
    margin-top: -26px;
    border: 0;
    border-radius: 50%;
    background: var(--fh-blue);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease, opacity 0.2s ease;
}

.fh-slider-btn:hover,
.fh-slider-btn:focus-visible { background: var(--fh-btn-hover); }
.fh-slider-btn[disabled] { opacity: 0.35; cursor: default; }
.fh-slider-prev { left: -18px; }
.fh-slider-next { right: -18px; }

.fh-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
}

.fh-slider-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 95, 115, 0.3);
    cursor: pointer;
}

.fh-slider-dots button[aria-current="true"] { background: var(--fh-blue); }

/* ---------- Standardseiten ---------- */

.fh-page {
    padding-block: 56px 80px;
}

.fh-page-inner {
    max-width: 860px;
}

.fh-page h2 {
    margin-top: 1.4em;
}

.fh-page ul,
.fh-page ol {
    padding-left: 22px;
}

/* ---------- Fußbereich ---------- */

.fh-footer {
    background: var(--fh-blue) url("../images/footer-bg.webp") no-repeat right bottom / cover;
    color: var(--fh-white);
}

.fh-footer a {
    color: var(--fh-white);
    text-decoration: none;
}

.fh-footer a:hover {
    color: var(--fh-yellow);
    text-decoration: underline;
}

.fh-footer a.fh-button,
.fh-footer a.fh-button:hover {
    color: var(--fh-blue);
    text-decoration: none;
}

.fh-footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding-block: 56px 40px;
}

.fh-footer h3 {
    position: relative;
    margin-bottom: 22px;
    padding-bottom: 18px;
    color: var(--fh-white);
    font-size: 22px;
    line-height: 1.2;
}

.fh-footer h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
}

.fh-footer-about p {
    max-width: 420px;
}

.fh-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fh-footer li {
    margin-bottom: 6px;
}

.fh-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.fh-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    font-size: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.fh-social a svg { width: 18px; height: 18px; fill: currentColor; }
.fh-social li:nth-child(1) a { background: #0a66c2; }
.fh-social li:nth-child(2) a { background: #006567; }
.fh-social li:nth-child(3) a { background: #3b5998; }
.fh-social li:nth-child(4) a { background: #e1306c; }

.fh-social a:hover {
    filter: brightness(1.15);
    text-decoration: none;
}

.fh-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 15px;
}

.fh-footer-bottom .fh-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 30px;
    padding-block: 16px;
}

.fh-footer-bottom ul {
    display: flex;
    gap: 22px;
}

.fh-footer-bottom li {
    margin: 0;
}

/* ---------- Seitenanfang-Button ---------- */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

.fh-totop {
    position: fixed;
    right: 0;
    bottom: 32px;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px 0 0 8px;
    background: var(--fh-blue);
    color: var(--fh-white);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.fh-totop[hidden] {
    display: flex;
    visibility: hidden;
}

.fh-totop.is-visible {
    opacity: 1;
    transform: none;
    visibility: visible;
}

.fh-totop:hover,
.fh-totop:focus-visible {
    background: var(--fh-btn-hover);
}

.fh-totop svg {
    width: 22px;
    height: 22px;
}

/* ---------- Textseiten (Über mich, DigiVario, HLM) ---------- */

.fh-intro {
    padding-block: 64px 90px;
}

.fh-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 860px);
    gap: 56px;
}

.fh-intro-grid.has-image {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
}

.fh-eyebrow {
    margin: 0 0 14px;
    color: var(--fh-grey);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.fh-accent {
    color: var(--fh-red);
}

.fh-intro h1,
.fh-contact h1 {
    margin-bottom: 14px;
    color: var(--fh-red);
    line-height: 1.2;
}

.fh-intro h2,
.fh-contact-head h2 {
    margin-bottom: 18px;
    color: var(--fh-grey);
    font-size: 26px;
    line-height: 1.35;
}

.fh-intro-image img {
    width: 100%;
    height: auto;
    border-radius: var(--fh-radius);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.12);
}

.fh-prose > :last-child {
    margin-bottom: 0;
}

.fh-intro .fh-button {
    margin-top: 12px;
}

/* ---------- Zertifikate (Textseiten) ----------
   Die Zertifikate bleiben in ihrem echten Seitenverhältnis (kein Zuschneiden).
   flex-grow = Seitenverhältnis: alle stehen auf gleicher Höhe, Breite folgt dem Format. */

.fh-cert-list {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fh-cert {
    flex: var(--fh-ratio, 1) 1 0;
    min-width: 0;
}

.fh-cert figure {
    margin: 0;
    padding: 10px;
    background: var(--fh-white);
    border: 1.5px solid var(--fh-blue);
    border-radius: var(--fh-radius);
    box-shadow: 0 6px 18px rgba(0, 95, 115, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fh-cert figure:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 95, 115, 0.18);
}

.fh-cert a {
    display: block;
}

.fh-cert img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.fh-cert figcaption {
    padding: 10px 4px 2px;
    color: var(--fh-grey);
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 900px) {
    .fh-cert-list { flex-wrap: wrap; justify-content: center; align-items: flex-start; }
    .fh-cert { flex: 0 1 calc(50% - 12px); }
}

@media (max-width: 560px) {
    .fh-cert { flex-basis: 100%; }
}

/* ---------- Rechtstexte ---------- */

.fh-legal .fh-page-inner {
    max-width: 980px;
}

.fh-legal h1 {
    color: var(--fh-grey);
    margin-bottom: 26px;
}

.fh-toc {
    margin: 0 0 40px;
    padding: 22px 26px;
    border-left: 4px solid var(--fh-blue);
    border-radius: 0 var(--fh-radius) var(--fh-radius) 0;
    background: var(--fh-grey-bg);
}

.fh-toc-title {
    margin: 0 0 10px;
    color: var(--fh-blue);
    font-family: var(--fh-font-head);
    font-size: 18px;
    font-weight: 700;
}

.fh-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fh-toc li {
    margin-bottom: 4px;
}

.fh-legal .fh-prose h2 {
    margin-top: 2.2em;
    padding-top: 0.2em;
    color: var(--fh-grey);
    font-size: 28px;
}

.fh-legal .fh-prose h3 {
    margin-top: 1.7em;
    color: var(--fh-blue);
    font-size: 22px;
}

.fh-legal .fh-prose h4 {
    margin-top: 1.4em;
    font-size: 18px;
}

.fh-legal .fh-prose a {
    overflow-wrap: anywhere;
}

/* ---------- Kontaktseite ---------- */

.fh-contact {
    padding-block: 64px 90px;
}

.fh-contact-head {
    max-width: 860px;
    margin-bottom: 44px;
}

.fh-contact-grid {
    display: grid;
    grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.fh-contact-info {
    position: relative;
    overflow: hidden;
    padding: 38px 34px 40px;
    border-radius: var(--fh-radius);
    background: var(--fh-blue) url("../images/footer-bg.webp") no-repeat right bottom / cover;
    color: var(--fh-white);
}

.fh-contact-info h2 {
    position: relative;
    margin-bottom: 26px;
    padding-bottom: 16px;
    color: var(--fh-white);
    font-size: 24px;
}

.fh-contact-info h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70px;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
}

.fh-contact-info > ul:first-of-type {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fh-contact-info > ul:first-of-type li {
    display: flex;
    gap: 16px;
    margin-bottom: 22px;
}

.fh-contact-info li > svg {
    flex: none;
    width: 40px;
    height: 40px;
    padding: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.fh-contact-info small {
    display: block;
    opacity: 0.8;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fh-contact-info a {
    color: var(--fh-white);
    text-decoration: none;
    font-weight: 500;
}

.fh-contact-info a:hover {
    text-decoration: underline;
}

.fh-contact-info .fh-social {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.fh-contact-card {
    padding: 38px 40px 40px;
    border: 1.5px solid var(--fh-blue);
    border-radius: var(--fh-radius);
    background: var(--fh-white);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.07);
}

.fh-form h2,
.fh-form-success h2 {
    color: var(--fh-blue);
    font-size: 26px;
    margin-bottom: 22px;
}

.fh-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 22px;
}

.fh-field {
    margin-bottom: 20px;
}

.fh-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.fh-field label small,
.fh-form-note {
    color: var(--fh-grey);
    font-weight: 400;
}

.fh-field input[type="text"],
.fh-field input[type="email"],
.fh-field input[type="tel"],
.fh-field select,
.fh-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #c4cad2;
    border-radius: 10px;
    background: #fbfcfc;
    color: var(--fh-text);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fh-field textarea {
    min-height: 150px;
    resize: vertical;
}

.fh-field input:focus,
.fh-field select:focus,
.fh-field textarea:focus {
    outline: none;
    border-color: var(--fh-blue);
    box-shadow: 0 0 0 3px rgba(0, 95, 115, 0.18);
}

.fh-field.has-error input,
.fh-field.has-error select,
.fh-field.has-error textarea {
    border-color: var(--fh-red);
}

.fh-error {
    margin: 6px 0 0;
    color: var(--fh-red);
    font-size: 15px;
}

.fh-check label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.5;
}

.fh-check input {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--fh-blue);
}

.fh-form-note {
    margin: 0 0 18px;
    font-size: 14px;
}

.fh-form-alert {
    margin: 0 0 22px;
    padding: 14px 18px;
    border-left: 4px solid var(--fh-red);
    border-radius: 6px;
    background: #fbeef1;
}

.fh-form-success {
    padding: 20px 0;
}

.fh-form-success:focus {
    outline: none;
}

.fh-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Responsiv ---------- */

@media (max-width: 1100px) {
    .fh-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .fh-service-grid { grid-template-columns: repeat(2, 1fr); }
    .fh-footer-main { grid-template-columns: 1fr 1fr; }
    .fh-reviews-card { flex-basis: calc((100% - 24px) / 2); }
}

@media (max-width: 980px) {
    .fh-intro-grid.has-image { grid-template-columns: 1fr; }
    .fh-contact-grid { grid-template-columns: 1fr; }
    .fh-reviews { grid-template-columns: 1fr; }
    .fh-hero .fh-wrap {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-block: 44px;
    }

    .fh-nav-toggle {
        display: inline-block;
    }

    .fh-header .fh-wrap {
        flex-wrap: wrap;
    }

    .fh-nav {
        display: none;
        width: 100%;
    }

    .fh-nav.is-open {
        display: block;
    }

    .fh-nav ul {
        flex-direction: column;
        gap: 2px;
        padding-top: 8px;
    }

    .fh-nav a {
        padding: 10px 0;
    }
}

@media (max-width: 767px) {
    .fh-form-row { grid-template-columns: 1fr; }
    .fh-contact-card { padding: 26px 22px 28px; }
    .fh-contact-info { padding: 30px 24px; }
    .fh-intro, .fh-contact { padding-block: 40px 60px; }
    .fh-intro h2, .fh-contact-head h2 { font-size: 21px; }
    html { scroll-padding-top: 90px; }
    :root {
        --fh-gutter: 18px;
    }

    h1 { font-size: 32px; }
    h2 { font-size: 26px; }
    .fh-hero h2 { font-size: 28px; }

    .fh-topbar .fh-wrap {
        justify-content: center;
        gap: 18px;
        font-size: 14px;
    }

    .fh-logo img { height: 46px; }

    .fh-reviews-card { flex-basis: 100%; }
    .fh-slider-prev { left: -8px; }
    .fh-slider-next { right: -8px; }
    .fh-hero-points li { font-size: 20px; }

    .fh-cards-grid,
    .fh-service-grid,
    .fh-footer-main {
        grid-template-columns: 1fr;
    }

    .fh-section { padding-block: 48px; }

    .fh-service-card {
        min-height: auto;
        padding: 20px;
        gap: 15px;
    }

    .fh-service-icon {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
        font-size: 24px;
    }

    .fh-service-title { font-size: 19px; }
    .fh-service-list { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* =========================================================
   Landingpage KI-Sichtbarkeitsanalyse (Präfix fh-an-)
   Nur vorhandene Variablen und Größen der Website.
   ========================================================= */

.fh-an-sec {
    padding-block: 70px;
}

.fh-an h2 {
    margin-bottom: 22px;
    color: var(--fh-red);
    font-size: var(--fh-head-size);
    line-height: 1.25;
}

.fh-an-narrow {
    max-width: 780px;
}

.fh-wrap.fh-an-narrow {
    max-width: calc(var(--fh-wrap) + 2 * var(--fh-gutter));
}

.fh-wrap.fh-an-narrow > * {
    max-width: 780px;
}

.fh-an-center {
    text-align: center;
}

.fh-wrap.fh-an-center > * {
    margin-inline: auto;
}

.fh-an-prose p,
.fh-an-narrow p {
    margin-bottom: 1.1em;
}

.fh-an-prose > :last-child,
.fh-an-narrow > :last-child {
    margin-bottom: 0;
}

/* Knopf: gleiches Aussehen an allen drei Stellen */
.fh-an-cta p {
    margin: 0;
}

.fh-an-button {
    padding: 16px 36px;
}

.fh-an-note {
    margin-top: 14px !important;
    color: var(--fh-grey);
    font-size: 15px;
    line-height: 1.5;
}

/* 1 Oben */
.fh-an-oben {
    padding-block: 64px 80px;
}

.fh-an-oben-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: center;
}

.fh-an-oben h1 {
    margin-bottom: 20px;
    line-height: 1.2;
}

.fh-an-lead {
    margin-bottom: 30px;
    color: var(--fh-text);
    font-size: 19px;
    line-height: 1.6;
}

.fh-an-lead > :last-child {
    margin-bottom: 0;
}

.fh-an-oben-bild {
    margin: 0;
}

.fh-an-oben-bild img {
    width: 100%;
    height: auto;
    border-radius: var(--fh-radius);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.12);
}

/* Platzhalter: gestrichelt, grau, in der Größe des echten Inhalts */
.fh-an-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 20px;
    border: 2px dashed var(--fh-grey);
    border-radius: var(--fh-radius);
    background: var(--fh-grey-bg);
    color: var(--fh-grey);
    font-size: 15px;
    text-align: center;
}

.fh-an-ph-play {
    width: 64px;
    height: 64px;
}

/* 2 Problem: schmaler Text, Tabelle über die ganze Breite */
.fh-an-after {
    margin-top: 34px;
}

.fh-an-table {
    width: 100%;
    margin-top: 34px;
    border-collapse: collapse;
}

.fh-an-table th,
.fh-an-table td {
    padding: 16px 22px;
    text-align: left;
    vertical-align: top;
}

.fh-an-table th {
    background: var(--fh-grey);
    color: var(--fh-white);
    font-family: var(--fh-font-head);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
}

.fh-an-table th:last-child {
    background: var(--fh-blue);
}

.fh-an-table td {
    border-bottom: 1.5px solid var(--fh-line);
}

.fh-an-table td:last-child {
    color: var(--fh-blue);
    font-weight: 500;
}

/* 3 Messung: Überschrift links, Text rechts, leicht versetzt */
.fh-an-messung {
    background: var(--fh-grey-bg);
}

.fh-an-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
    gap: 64px;
    align-items: start;
}

.fh-an-split > h2 {
    position: sticky;
    top: 120px;
    margin-bottom: 0;
}

/* 4 Paket: Liste links, Video rechts */
.fh-an-paket-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 56px;
    align-items: start;
}

.fh-an-list {
    margin: 0;
    padding-left: 1.3em;
}

.fh-an-list li {
    margin-bottom: 14px;
    padding-left: 4px;
}

.fh-an-list li::marker {
    color: var(--fh-blue);
}

.fh-an-list strong {
    color: var(--fh-blue);
}

.fh-an-video {
    position: sticky;
    top: 120px;
}

.fh-an-video h3 {
    margin-bottom: 14px;
}

.fh-an-video video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--fh-radius);
    background: var(--fh-text);
}

.fh-an-caption {
    margin: 12px 0 0;
    color: var(--fh-grey);
    font-size: 15px;
}

/* 5 Unterschied: Liste mit Linien statt Kartenraster */
.fh-an-unterschied {
    border-top: 1.5px solid var(--fh-line);
}

.fh-an-defs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 56px;
    margin: 34px 0 0;
}

.fh-an-defs > div {
    padding-top: 16px;
    border-top: 3px solid var(--fh-blue);
}

.fh-an-defs dt {
    margin-bottom: 8px;
    color: var(--fh-blue);
    font-family: var(--fh-font-head);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
}

.fh-an-defs dd {
    margin: 0;
}

/* Beleg */
.fh-an-beleg {
    background: var(--fh-yellow);
}

.fh-an-quote {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.fh-an-quote blockquote {
    margin: 0;
    color: var(--fh-blue);
    font-family: var(--fh-font-head);
    font-size: 26px;
    line-height: 1.45;
}

.fh-an-quote blockquote p {
    margin: 0;
}

.fh-an-quote figcaption {
    margin-top: 18px;
    color: var(--fh-text);
    font-weight: 500;
}

.fh-an-quote figcaption span {
    font-weight: 400;
}

.fh-an-quote--ph {
    padding: 34px 30px;
    border: 2px dashed var(--fh-grey);
    border-radius: var(--fh-radius);
}

.fh-an-quote--ph blockquote,
.fh-an-quote--ph figcaption {
    color: var(--fh-grey);
}

/* 6 Grenzen */
.fh-an-intro {
    color: var(--fh-grey);
    font-size: 19px;
}

/* 7 Eignung */
.fh-an-eignung {
    background: var(--fh-grey-bg);
}

.fh-an-eignung-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
    margin-top: 10px;
}

.fh-an-sub {
    margin-bottom: 12px;
    font-family: var(--fh-font-head);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
}

.fh-an-ja li::marker {
    color: var(--fh-blue);
}

.fh-an-nein li::marker {
    color: var(--fh-grey);
}

/* 8 Ablauf */
.fh-an-steps {
    margin: 0 0 22px;
    padding-left: 1.4em;
}

.fh-an-steps li {
    margin-bottom: 14px;
    padding-left: 6px;
}

.fh-an-steps li::marker {
    color: var(--fh-blue);
    font-weight: 700;
}

.fh-an-dauer {
    margin: 0;
}

/* 9 Preis: eine der lautesten Stellen */
.fh-an-preis {
    background: var(--fh-grey-bg);
}

.fh-an-preis h2 {
    font-size: 40px;
    line-height: 1.15;
}

.fh-an-preis .fh-an-prose {
    margin-bottom: 30px;
    text-align: left;
}

/* 10 Mailliste */
.fh-an-mail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 56px;
    align-items: start;
}

.fh-an-docs {
    margin: 1.1em 0;
}

.fh-an-mail-form {
    position: sticky;
    top: 120px;
}

.fh-an-small {
    margin: 14px 4px 0;
    color: var(--fh-grey);
    font-size: 15px;
    line-height: 1.5;
}

.fh-an-testmode {
    margin: 0 0 20px;
    padding: 10px 14px;
    border-radius: 6px;
    background: var(--fh-yellow);
    font-size: 15px;
}

.fh-an-mail .fh-form-success p {
    margin: 0;
    color: var(--fh-blue);
    font-family: var(--fh-font-head);
    font-size: 21px;
    line-height: 1.4;
}

/* 11 Einwände: die leiseste Stelle, offen lesbar */
.fh-an-einwaende h2 {
    font-size: 26px;
}

.fh-an-einwaende h3 {
    margin: 26px 0 8px;
    font-size: 19px;
}

.fh-an-einwaende p {
    color: var(--fh-text);
}

/* 12 Schluss */
.fh-an-schluss {
    background: var(--fh-grey-bg);
    text-align: center;
}

@media (max-width: 980px) {
    .fh-an-oben-grid,
    .fh-an-split,
    .fh-an-paket-grid,
    .fh-an-mail-grid,
    .fh-an-eignung-grid,
    .fh-an-defs {
        grid-template-columns: 1fr;
    }

    .fh-an-split { gap: 24px; }
    .fh-an-split > h2,
    .fh-an-video,
    .fh-an-mail-form { position: static; }
    .fh-an-split > h2 { margin-bottom: 0; }
    .fh-an-oben-grid, .fh-an-paket-grid, .fh-an-mail-grid, .fh-an-eignung-grid { gap: 36px; }
}

@media (max-width: 600px) {
    .fh-an-sec { padding-block: 48px; }
    .fh-an-oben { padding-block: 40px 56px; }
    .fh-an-lead { font-size: 17px; }
    .fh-an-preis h2 { font-size: 32px; }
    .fh-an-quote blockquote { font-size: 21px; }

    /* Tabelle: jede Zeile als Paar untereinander, Spaltenbeschriftung davor */
    .fh-an-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .fh-an-table,
    .fh-an-table tbody,
    .fh-an-table tr,
    .fh-an-table td {
        display: block;
        width: 100%;
    }

    .fh-an-table tr {
        margin-bottom: 18px;
        border: 1.5px solid var(--fh-line);
        border-radius: 10px;
        overflow: hidden;
    }

    .fh-an-table td {
        padding: 12px 16px;
        border-bottom: 0;
    }

    .fh-an-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        color: var(--fh-grey);
        font-size: 14px;
        font-weight: 500;
    }

    .fh-an-table td:first-child {
        background: var(--fh-grey-bg);
    }
}
