/*
Theme Name: UCC Pro Child
Theme URI: https://www.uccpro.ch/
Description: Child-Theme für UCC Pro GmbH. Branding nach Style Guide v1.0 (ROT #C31521, DUNKELGRAU #767676, HELLGRAU #EEEEEE). Mobile-First, clean, technisch.
Author: UCC Pro GmbH
Author URI: https://www.uccpro.ch/
Template: astra
Version: 1.2.4
Text Domain: uccpro-child
*/

/* ============================================================
   1. UCC PRO – Design-Tokens
   Farben aus Brand-Handbuch (2026), Schrift: Inter (DIN-Pro-Fallback)
   ============================================================ */
:root,
body {
    --ucc-red:        #C31521;
    --ucc-red-link:   #A01019;
    --ucc-red-hover:  #8A0E16;
    --ucc-darkgray:   #767676;       /* NUR Linien/Borders – nicht fuer Text auf weiss (Kontrast 4.4:1, knapp unter WCAG AA) */
    --ucc-lightgray:  #EEEEEE;
    --ucc-text:       #1A1A1A;       /* Body-Text Default, 21:1 Kontrast (WCAG AAA) */
    --ucc-text-soft:  #2C2C2C;       /* sekundaerer Text, 13:1 Kontrast (WCAG AAA) */
    --ucc-text-muted: #555555;       /* nur Captions/Hinweise auf weissem Hintergrund, 7.5:1 (WCAG AA) */
    --ucc-white:      #FFFFFF;
    --ucc-bg-soft:    #F7F7F7;
    --ucc-border:     #DDDDDD;

    /* Astra-Globalpalette ueberschreiben — beim Sourdough-Demo-Import war color-2/3 = weiss
       und das vererbt sich auf h2/h3/Body-Text. Hier auf UCC-Werte pinnen. */
    --ast-global-color-0: #C31521;   /* Primary (Brand-Rot) */
    --ast-global-color-1: #1A1A1A;   /* Secondary */
    --ast-global-color-2: #1A1A1A;   /* Headlines (war #ffffff!) */
    --ast-global-color-3: #2C2C2C;   /* Body-Text  (war #ffffff!) */
    --ast-global-color-4: #EEEEEE;   /* Subtle Background */
    --ast-global-color-5: #A01019;   /* Alternate (Link-Rot) */
    --ast-global-color-6: #FFFFFF;   /* Background */
    --ast-global-color-7: #DDDDDD;   /* Border */
    --ast-global-color-8: #767676;   /* Muted */

    --ucc-font-sans:  'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --ucc-font-mono:  'JetBrains Mono', 'Menlo', 'Consolas', monospace;

    --ucc-radius:     2px;
    --ucc-shadow-sm:  0 1px 3px rgba(0,0,0,.06);
    --ucc-shadow-md:  0 4px 16px rgba(0,0,0,.08);

    --ucc-section-pad-y: clamp(48px, 6vw, 96px);
    --ucc-content-max:   1180px;
}

/* ============================================================
   2. Typografie
   ============================================================ */
body,
.entry-content,
button,
input,
select,
textarea {
    font-family: var(--ucc-font-sans) !important;
    color: var(--ucc-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* WCAG AA: alle Body-Texte mindestens 7:1 Kontrast auf weiss.
   Astra-Sites-Demo hatte color-3 = weiss als Body-Default → hier hart pinnen.
   Achtung: Selektor darf NICHT zu broad sein, sonst werden Buttons (#fff auf rot)
   ungewollt geschwarzt. Daher gezielt p/li/td/blockquote/h-Elemente. */
body,
body > p,
body > li,
body > td,
body > th,
body > dd,
body > dt,
body > figcaption,
.entry-content > p,
.entry-content > ul li,
.entry-content > ol li,
.entry-content > div p,
.entry-content > div li,
.entry-content > section p,
.entry-content > section li,
.entry-content > section td,
.entry-content > section th,
.entry-content blockquote,
.entry-content :where(p, li, td, th, dd, dt, figcaption),
.site-content > main {
    color: var(--ucc-text) !important;
}

body {
    font-size: 17px;
    line-height: 1.6;
    background: var(--ucc-white);
    color: var(--ucc-text);
}

h1, h2, h3, h4, h5, h6,
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6,
.entry-content :where(h1, h2, h3, h4, h5, h6),
.entry-title,
.site-title {
    font-family: var(--ucc-font-sans) !important;
    color: var(--ucc-text) !important;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }

strong, b { font-weight: 600; color: var(--ucc-text); }

/* strong/b in Links sollen die Link-Farbe (rot) erben — nicht hart auf schwarz pinnen */
a strong, a b,
a:visited strong, a:visited b {
    color: inherit;
}

/* ============================================================
   Brand-Regel: NIE schwarz auf rot.
   Alles mit UCC-Brand-Rot oder Link-Rot als Background → weisse Schrift.
   Outline-Variante (transparent BG) ist explizit ausgenommen.
   ============================================================ */
button:not(.is-style-outline),
input[type="button"],
input[type="submit"],
input[type="reset"],
input#submit,
.menu-toggle,
.ast-button:not(.is-style-outline),
.ast-custom-button,
.button:not(.outline),
.wp-block-button:not(.is-style-outline) .wp-block-button__link,
.wp-block-button:not(.is-style-outline) > .wp-block-button__link,
.wp-block-search .wp-block-search__button,
.wp-block-file .wp-block-file__button,
.search .search-submit,
.elementor-button,
.uccpro-form__submit,
.tagcloud a:hover,
.tagcloud a:focus,
.tagcloud a.current-item,
[class*="has-ucc-red-background"],
[class*="has-brand-rot-background"] {
    color: #ffffff !important;
}

/* Childs in roten Containern erben weiss (sonst pinnen globale strong/h-Regeln schwarz) */
button:not(.is-style-outline) *,
input[type="submit"] *,
.ast-button:not(.is-style-outline) *,
.wp-block-button:not(.is-style-outline) .wp-block-button__link *,
.uccpro-form__submit *,
.elementor-button *,
[class*="has-ucc-red-background"] *,
[class*="has-brand-rot-background"] * {
    color: inherit !important;
}

/* Hover-Variante: Bleibt rot oder dunkler, Schrift weiss */
button:not(.is-style-outline):hover, button:not(.is-style-outline):focus,
input[type="submit"]:hover, input[type="submit"]:focus,
.ast-button:not(.is-style-outline):hover, .ast-button:not(.is-style-outline):focus,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:focus,
.uccpro-form__submit:hover, .uccpro-form__submit:focus {
    color: #ffffff !important;
}

/* Outline-Buttons EXPLIZIT: rote Schrift auf transparent (nicht weiss!) */
.is-style-outline .wp-block-button__link,
.is-style-outline > .wp-block-button__link,
.button.outline,
.ast-button.is-style-outline {
    color: var(--ucc-red) !important;
}
.is-style-outline .wp-block-button__link:hover,
.is-style-outline > .wp-block-button__link:hover,
.button.outline:hover,
.ast-button.is-style-outline:hover {
    color: #ffffff !important;
    background: var(--ucc-red) !important;
}

/* ============================================================
   3. Links & Akzente
   ============================================================ */
a, a:visited {
    color: var(--ucc-red-link);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .15s ease, border-color .15s ease;
}
a:hover, a:focus {
    color: var(--ucc-red-hover);
    border-bottom-color: currentColor;
}

/* Navigation-Links: kein Underline */
.main-header-menu a,
.main-navigation a,
.site-header a,
.site-footer .menu a {
    border-bottom: none !important;
}

/* Header, Body, Container hart auf weiss pinnen.
   Astra-Sites-Demo + Elementor-Theme-Builder hatten teils rote/gelbe BGs aus dem
   Sourdough-Demo, die durchschimmern koennen. Hier wird das ABSCHLIESSEND blockiert.
   Section-Modifier (--soft, --gray, --dark) greifen weiterhin auf <section>-Ebene. */
body,
html,
main,
main#main,
#page,
.site,
.site-content,
.ast-container,
.entry-content,
.entry-content.clear,
.elementor-default,
[class*="elementor-page-"],
[class*="elementor-kit-"],
/* Astra Single-Post Container-Modi (separate / narrow / plain) */
.ast-separate-container,
.ast-narrow-container,
.ast-plain-container,
.ast-page-builder-template,
.ast-content-boxed-container,
.ast-no-sidebar,
.ast-blog-single-style-1,
.single-post,
.single,
.post,
.archive,
article.post,
article {
    background-color: var(--ucc-white) !important;
    background-image: none !important;
}

/* Single-Post: Title-Bereich und Featured-Image-Wrapper */
.single-post .post-thumb-img-content,
.single-post .ast-blog-featured-section,
.single-post .ast-archive-description,
.single-post .ast-page-header,
.single-post header.entry-header {
    background-color: var(--ucc-white) !important;
}

/* ============================================================
   Related Posts (Astra Pro): roten Rahmen entfernen, neutraler
   Karten-Stil wie .ucc-card (Hellgrau-Border, Hover-Effekt)
   ============================================================ */
.ast-related-posts-wrapper,
.ast-single-related-posts-container {
    background-color: var(--ucc-white) !important;
    padding: 32px 0;
}
.ast-related-posts-title-section .ast-related-posts-title,
h2.ast-related-posts-title {
    color: var(--ucc-text) !important;
    font-size: clamp(1.4rem, 2.4vw, 1.8rem) !important;
    margin-bottom: 24px !important;
    padding-top: 12px;
    position: relative;
}
.ast-related-posts-title::before {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--ucc-red);
    margin-bottom: 14px;
}

.ast-related-post {
    background: var(--ucc-white) !important;
    border: 1px solid var(--ucc-border) !important;
    border-radius: var(--ucc-radius);
    padding: 20px !important;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.ast-related-post:hover {
    border-color: var(--ucc-red) !important;
    box-shadow: var(--ucc-shadow-md);
    transform: translateY(-2px);
}
.ast-related-post .ast-related-post-title {
    font-size: 1.05rem !important;
    margin-top: 12px !important;
    color: var(--ucc-text) !important;
}
.ast-related-post .ast-related-post-title a {
    color: var(--ucc-text) !important;
    border-bottom: none;
}
.ast-related-post .ast-related-post-title a:hover {
    color: var(--ucc-red) !important;
}
.ast-related-post .entry-meta,
.ast-related-post .entry-meta a {
    color: var(--ucc-text-muted) !important;
}

.site-header,
.main-header-bar,
#masthead,
.ast-primary-header-bar,
.ast-mobile-header-wrap,
.ast-mobile-header-content {
    background-color: var(--ucc-white) !important;
    border-bottom: 1px solid var(--ucc-border);
}
.ast-builder-menu-1 .menu-item > .menu-link,
.ast-builder-menu-1 .menu-item > .ast-menu-toggle,
.ast-builder-menu-mobile .menu-item > .menu-link,
.main-header-menu > li > a,
.ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item > .menu-link {
    color: var(--ucc-text) !important;
}
.ast-builder-menu-1 .menu-item:hover > .menu-link,
.ast-builder-menu-1 .menu-item.current-menu-item > .menu-link,
.ast-builder-menu-1 .current-menu-ancestor > .menu-link,
.main-header-menu > li:hover > a,
.main-header-menu > li.current-menu-item > a {
    color: var(--ucc-red) !important;
}
.ast-builder-menu-1 .sub-menu,
.ast-builder-menu-1 .sub-menu .menu-link {
    background-color: var(--ucc-white) !important;
    color: var(--ucc-text) !important;
}

/* ============================================================
   4. Buttons
   ============================================================ */
.wp-block-button__link,
.ast-button,
button.ast-custom-button,
.button,
input[type="submit"],
.elementor-button {
    background: var(--ucc-red) !important;
    color: #fff !important;
    border: 1px solid var(--ucc-red) !important;
    border-radius: var(--ucc-radius) !important;
    padding: 14px 28px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    text-transform: none;
    transition: background .15s ease, transform .1s ease;
    box-shadow: none;
    text-decoration: none;
}
.wp-block-button__link:hover,
.ast-button:hover,
.button:hover,
input[type="submit"]:hover,
.elementor-button:hover {
    background: var(--ucc-red-hover) !important;
    border-color: var(--ucc-red-hover) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.is-style-outline .wp-block-button__link,
.button.outline {
    background: transparent !important;
    color: var(--ucc-red) !important;
    border: 1px solid var(--ucc-red) !important;
}
.is-style-outline .wp-block-button__link:hover,
.button.outline:hover {
    background: var(--ucc-red) !important;
    color: #fff !important;
}

/* ============================================================
   5. Header / Logo / Navigation
   ============================================================ */
.site-header {
    border-bottom: 1px solid var(--ucc-border);
    background: #fff;
}
.site-logo-img img,
.custom-logo {
    max-height: 48px;
    width: auto;
}

/* ============================================================
   6. Sections / Layout-Blocks
   ============================================================ */
.ucc-section {
    padding: var(--ucc-section-pad-y) 24px;
}
.ucc-section--soft  { background: var(--ucc-bg-soft); }
.ucc-section--gray  { background: var(--ucc-lightgray); }

/* Dunkel-Section: thematisch passend zum Banktresor (Sicherheit, Massivitaet).
   Roter Akzent oben fuer Brand-Wiedererkennung.
   !important noetig, weil global ein color-Pin auf var(--ucc-text) sitzt. */
.ucc-section--dark {
    background: linear-gradient(180deg, #1A1A1A 0%, #232325 100%);
    color: #ffffff !important;
    border-top: 4px solid var(--ucc-red);
    position: relative;
}
.ucc-section--dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 20% 30%, rgba(195,21,33,0.06) 0%, transparent 45%),
      radial-gradient(circle at 80% 70%, rgba(195,21,33,0.05) 0%, transparent 50%);
    pointer-events: none;
}
.ucc-section--dark > * { position: relative; z-index: 1; }

/* Spezifitaet hoeher als globales .entry-content > section p (0,1,2):
   .entry-content .ucc-section--dark X = (0,2,2), gewinnt mit !important. */
.entry-content .ucc-section--dark h1,
.entry-content .ucc-section--dark h2,
.entry-content .ucc-section--dark h3,
.entry-content .ucc-section--dark h4,
.ucc-section--dark.ucc-section--dark h1,
.ucc-section--dark.ucc-section--dark h2,
.ucc-section--dark.ucc-section--dark h3,
.ucc-section--dark.ucc-section--dark h4 {
    color: #ffffff !important;
}
.entry-content .ucc-section--dark p,
.entry-content .ucc-section--dark li,
.entry-content .ucc-section--dark td,
.entry-content .ucc-section--dark th,
.entry-content .ucc-section--dark dd,
.entry-content .ucc-section--dark dt,
.entry-content .ucc-section--dark figcaption,
.ucc-section--dark.ucc-section--dark p,
.ucc-section--dark.ucc-section--dark li,
.ucc-section--dark.ucc-section--dark td,
.ucc-section--dark.ucc-section--dark th,
.ucc-section--dark.ucc-section--dark dd,
.ucc-section--dark.ucc-section--dark dt,
.ucc-section--dark.ucc-section--dark figcaption {
    color: rgba(255,255,255,0.92) !important;
}
.entry-content .ucc-section--dark strong,
.entry-content .ucc-section--dark b,
.ucc-section--dark.ucc-section--dark strong,
.ucc-section--dark.ucc-section--dark b {
    color: #ffffff !important;
}
.entry-content .ucc-section--dark a,
.ucc-section--dark.ucc-section--dark a {
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255,255,255,.35);
}
.entry-content .ucc-section--dark a:hover,
.entry-content .ucc-section--dark a:focus,
.ucc-section--dark.ucc-section--dark a:hover,
.ucc-section--dark.ucc-section--dark a:focus {
    color: var(--ucc-red) !important;
    border-bottom-color: var(--ucc-red);
}

/* Button-Variante fuer dunkle Sektion: weiss-outline statt vollroter Button,
   damit der Akzent nicht ueberblendet. */
.ucc-section--dark .wp-block-button__link {
    background: transparent !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}
.ucc-section--dark .wp-block-button__link:hover {
    background: var(--ucc-red) !important;
    border-color: var(--ucc-red) !important;
    color: #ffffff !important;
}

/* Akzent-Linie vor h2 in dunkler Section, wie bei den Karten */
.ucc-section--dark h2:first-child::before {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--ucc-red);
    margin-bottom: 18px;
}

.ucc-container {
    max-width: var(--ucc-content-max);
    margin: 0 auto;
}

/* Hero */
.ucc-hero {
    padding: clamp(72px, 10vw, 140px) 24px clamp(56px, 8vw, 100px);
    background: linear-gradient(180deg, #fff 0%, var(--ucc-bg-soft) 100%);
    text-align: left;
}
.ucc-hero__claim {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    color: var(--ucc-text);
}
.ucc-hero__claim .accent { color: var(--ucc-red); }
.ucc-hero__sub {
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    color: var(--ucc-text-soft);
    max-width: 680px;
    margin: 0 0 28px;
    line-height: 1.5;
}
.ucc-hero__body {
    max-width: 720px;
    color: var(--ucc-text-soft);
    font-size: 1.05rem;
}

/* 3-Spalten-Grid (Kernkompetenzen) */
.ucc-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}
.ucc-card {
    background: #fff;
    border: 1px solid var(--ucc-border);
    border-radius: var(--ucc-radius);
    padding: 32px 28px;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
    display: flex;
    flex-direction: column;
}
.ucc-card:hover {
    box-shadow: var(--ucc-shadow-md);
    border-color: var(--ucc-red);
    transform: translateY(-2px);
}
.ucc-card__title {
    font-size: 1.3rem;
    margin: 0 0 12px;
    color: var(--ucc-text);
}
.ucc-card__title::before {
    content: '';
    display: block;
    width: 32px;
    height: 3px;
    background: var(--ucc-red);
    margin-bottom: 16px;
}
.ucc-card__body {
    color: var(--ucc-text-soft);
    font-size: 0.98rem;
    line-height: 1.55;
    flex: 1;
}
.ucc-card__link {
    margin-top: 20px;
    font-weight: 600;
}

/* CTA-Section */
.ucc-cta {
    text-align: left;
    padding: clamp(48px, 6vw, 80px) 24px;
    background: var(--ucc-lightgray);
    border-top: 4px solid var(--ucc-red);
}
.ucc-cta__headline {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0 0 16px;
}
.ucc-cta__btn {
    display: inline-block;
    margin-top: 12px;
}

/* Tabellen (z.B. Paperless-Vergleichstabelle) */
.entry-content table,
.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
}
.entry-content th,
.entry-content td,
.wp-block-table th,
.wp-block-table td {
    padding: 12px 16px;
    border: 1px solid var(--ucc-border);
    text-align: left;
    vertical-align: top;
}
.entry-content th,
.wp-block-table th {
    background: var(--ucc-lightgray);
    font-weight: 600;
    color: var(--ucc-text);
}
.entry-content tbody tr:nth-child(even),
.wp-block-table tbody tr:nth-child(even) {
    background: var(--ucc-bg-soft);
}

/* Listen */
.entry-content ul li,
.entry-content ol li {
    margin-bottom: 8px;
    line-height: 1.55;
}
.entry-content ul {
    list-style: none;
    padding-left: 0;
}
.entry-content ul li {
    position: relative;
    padding-left: 24px;
}
.entry-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 8px;
    height: 8px;
    background: var(--ucc-red);
    border-radius: 50%;
}

/* Blockquote */
.entry-content blockquote,
.wp-block-quote {
    border-left: 4px solid var(--ucc-red);
    padding: 8px 24px;
    margin: 32px 0;
    font-size: 1.25rem;
    font-style: normal;
    color: var(--ucc-text);
    font-weight: 500;
}

/* Two-column (Über uns) */
.ucc-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 48px;
    align-items: start;
}

/* Image placeholder */
.ucc-img-placeholder {
    background: var(--ucc-lightgray);
    border: 1px dashed var(--ucc-darkgray);
    color: var(--ucc-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    font-size: 0.9rem;
    text-align: center;
    padding: 24px;
}

/* ============================================================
   UCC Secure Vault: Zertifizierungs-Grid mit ehrlichen Status-Labels
   ============================================================ */
.ucc-cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 32px;
}
.ucc-cert {
    border: 1px solid var(--ucc-border);
    border-radius: var(--ucc-radius);
    padding: 20px 22px;
    background: var(--ucc-white);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ucc-cert__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ucc-text);
    margin: 0;
}
.ucc-cert__desc {
    font-size: 0.92rem;
    color: var(--ucc-text-soft);
    margin: 0;
    line-height: 1.45;
    flex-grow: 1;
}
.ucc-cert__status {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 2px;
    border: 1px solid currentColor;
}
.ucc-cert__status--erfuellt {
    color: #0B4A24 !important;            /* WCAG AAA auf #E8F5EE */
    background: #E8F5EE;
    border-color: #1B7E3F;
}
.ucc-cert__status--uebererfuellt {
    color: #FFFFFF !important;
    background: #1B7E3F;                 /* WCAG AAA: 6:1+ auf weisser Schrift Bold */
    border-color: #1B7E3F;
}
.ucc-cert__status--angestrebt {
    color: var(--ucc-text) !important;
    background: var(--ucc-lightgray);
    border-color: var(--ucc-darkgray);
}

.ucc-cert-disclaimer {
    margin-top: 24px;
    padding: 16px 20px;
    background: var(--ucc-bg-soft);
    border-left: 4px solid var(--ucc-red);
    font-size: 0.95rem;
    color: var(--ucc-text);
    line-height: 1.5;
}
.ucc-cert-disclaimer strong { color: var(--ucc-text); }

/* Vier-Augen-Highlight Box */
.ucc-feature-box {
    border: 1px solid var(--ucc-border);
    border-left: 4px solid var(--ucc-red);
    padding: 18px 22px;
    margin: 20px 0;
    background: var(--ucc-bg-soft);
    border-radius: 2px;
}
.ucc-feature-box h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}
.ucc-feature-box p {
    margin: 0;
    color: var(--ucc-text);
}

/* ============================================================
   UCC Pro Kontakt-Info-Spalte (/kontakt/)
   Ruhig und konsistent: schwarze Schrift, einziger roter Akzent
   ist die Linie ueber der H2 und die Telefon-Links.
   ============================================================ */
.ucc-contact-info h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    margin: 0 0 32px;
    padding-top: 18px;
    position: relative;
}
.ucc-contact-info h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
    height: 3px;
    background: var(--ucc-red);
}
.ucc-contact-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 28px 0 8px;
    color: var(--ucc-text);
}
.ucc-contact-info h3:first-of-type {
    margin-top: 0;
}
.ucc-contact-info p {
    margin: 0 0 4px;
    line-height: 1.55;
}

/* ============================================================
   UCC Pro Kontaktformular (eigenstaendig, kein Plugin)
   ============================================================ */
.uccpro-form {
    max-width: 100%;
    margin-top: 8px;
}
.uccpro-form__row {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.uccpro-form__row label {
    font-weight: 600;
    color: var(--ucc-text);
    font-size: 0.95rem;
}
.uccpro-form__row label span[aria-hidden="true"] {
    color: var(--ucc-red);
}
.uccpro-form input[type="text"],
.uccpro-form input[type="email"],
.uccpro-form input[type="tel"],
.uccpro-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--ucc-border);
    border-radius: var(--ucc-radius);
    font-family: var(--ucc-font-sans);
    font-size: 1rem;
    color: var(--ucc-text);
    background: var(--ucc-white);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.uccpro-form input:focus,
.uccpro-form textarea:focus {
    outline: none;
    border-color: var(--ucc-red);
    box-shadow: 0 0 0 3px rgba(195, 21, 33, 0.12);
}
.uccpro-form textarea {
    resize: vertical;
    min-height: 140px;
}
.uccpro-form__row--check {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    background: var(--ucc-bg-soft);
    padding: 14px;
    border-radius: var(--ucc-radius);
}
.uccpro-form__row--check label {
    font-weight: 400;
    color: var(--ucc-text);
    font-size: 0.92rem;
    line-height: 1.45;
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.uccpro-form__row--check input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--ucc-red);
}
.uccpro-form__submit {
    background: var(--ucc-red) !important;
    color: #ffffff !important;
    border: 1px solid var(--ucc-red) !important;
    border-radius: var(--ucc-radius);
    padding: 14px 32px;
    font-family: var(--ucc-font-sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease;
    align-self: flex-start;
}
.uccpro-form__submit:hover,
.uccpro-form__submit:focus {
    background: var(--ucc-red-hover) !important;
    border-color: var(--ucc-red-hover) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}
.uccpro-form__hint {
    font-size: 0.9rem;
    color: var(--ucc-text-muted) !important;
    margin: 0 0 16px;
}

/* Screen-Reader-only Texte (visuell versteckt, fuer SR sichtbar) */
.uccpro-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Honeypot-Wrapper */
.uccpro-honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.uccpro-form__success {
    background: #E8F5EE;
    border-left: 4px solid #1B7E3F;
    color: #0B4A24;
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: var(--ucc-radius);
}
.uccpro-form__error {
    background: #FBEAEA;
    border-left: 4px solid var(--ucc-red);
    color: #5A0A0F;
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: var(--ucc-radius);
}
.uccpro-form__error ul {
    margin: 0;
    padding-left: 20px;
}
.uccpro-form__error li {
    margin-bottom: 4px;
}

/* ============================================================
   Footer (custom, per astra_footer_content_top eingehaengt)
   Astra rendert <footer> + Below-Footer-Copyright. Unser
   .ucc-footer-content steht oberhalb des Copyrights.
   ============================================================ */
.site-footer {
    background: #1C1C1E !important;
    color: #d8d8d8 !important;
    padding: 56px 0 0 !important;
    font-size: 0.95rem;
    border: none !important;
    box-shadow: none !important;
}
.site-footer * {
    border-color: transparent !important;
}
.site-footer a {
    color: #fff !important;
    border-bottom-color: transparent !important;
}
.site-footer a:hover,
.site-footer a:focus {
    color: var(--ucc-red) !important;
    border-bottom: 1px solid var(--ucc-red) !important;
}
.site-footer h2, .site-footer h3 {
    color: #fff !important;
    margin: 0 0 14px;
    font-size: 1.05rem;
}
.site-footer p { color: #d8d8d8 !important; }
.site-footer ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.site-footer ul li {
    padding-left: 0 !important;
    margin-bottom: 8px;
}
.site-footer ul li::before {
    display: none;
}

.ucc-footer-content {
    padding: 0 24px 48px;
}
.ucc-footer-content .ucc-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin: 0;
}

/* Below-Footer (Astra-Standard, Copyright + Links) */
.site-below-footer-wrap {
    background: transparent !important;
    border-top: 1px solid #333 !important;
    margin-top: 24px;
    padding: 18px 24px !important;
    font-size: 0.85rem;
    color: #999 !important;
}
.site-below-footer-wrap p { color: #999 !important; margin: 0; }
.site-below-footer-wrap a { color: #ccc !important; }

/* Mobile-Footer */
@media (max-width: 768px) {
    .site-footer { padding-top: 40px !important; }
    .ucc-footer-content { padding: 0 16px 32px; }
    .ucc-footer-content .ucc-grid-3 { gap: 28px; }
}

/* ============================================================
   Mobile-Tweaks
   Astras .ast-container hat 20px padding L+R (Theme-Default), und meine
   .ucc-section haette nochmal 20px → 40px doppelter Rand auf Mobile.
   Astra-Container-Padding auf Mobile auf 0 setzen, damit nur meine
   Section-Klasse den horizontalen Rand bestimmt.
   ============================================================ */
@media (max-width: 921px) {
    .ast-container,
    .ast-container-fluid,
    body .ast-container,
    body .ast-container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    main#main,
    .site-main,
    #primary,
    .entry-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 768px) {
    body { font-size: 16px; }
    .ucc-hero { padding-left: 16px; padding-right: 16px; }
    .ucc-section { padding-left: 16px; padding-right: 16px; }
    .ucc-cta { padding-left: 16px; padding-right: 16px; }
    .ucc-card { padding: 24px 18px; }
    .ucc-grid-2 { gap: 32px; }
    .ucc-grid-3 { gap: 16px; }
    .ucc-cert-grid { gap: 12px; }
}

@media (max-width: 480px) {
    .ucc-hero { padding-left: 14px; padding-right: 14px; }
    .ucc-section { padding-left: 14px; padding-right: 14px; }
    .ucc-cta { padding-left: 14px; padding-right: 14px; }
}

/* Astra-Sidebar in Default Pages aus */
.no-sidebar .site-content > .ast-container {
    max-width: 100%;
}

/* ============================================================
   Accessibility (WCAG 2.1 / 2.2)
   ============================================================ */

/* Skip-Link, sichtbar bei Tastatur-Fokus (WCAG 2.4.1) */
.uccpro-skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--ucc-text);
    color: #ffffff !important;
    padding: 12px 18px;
    text-decoration: none;
    font-weight: 600;
    z-index: 100000;
    border-bottom: none !important;
}
.uccpro-skip-link:focus,
.uccpro-skip-link:focus-visible {
    top: 0;
    outline: 3px solid var(--ucc-red);
    outline-offset: 0;
}

/* Reduzierte Bewegung respektieren (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .ucc-card:hover { transform: none !important; }
    .uccpro-form__submit:hover { transform: none !important; }
}

/* Accessibility: visible focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--ucc-red);
    outline-offset: 2px;
}
