/*
Theme Name: POCLINK
Theme URI: https://poclink.de
Author: GTIT Service Bücker
Description: Vollständig bearbeitbare POCLINK Produkt- und Informationsseite als WordPress Block-Theme.
Version: 5.3.12
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: poclink-de
Requires at least: 6.6
Requires PHP: 7.4
*/

:root {
  --ink: #0d1716;
  --forest: #123a32;
  --green: #1b5145;
  --lime: #d8ff3e;
  --sage: #eaf0df;
  --cream: #f6f3ec;
  --line: #d5ddd9;
  --muted: #596864;
  --white: #fff;
  --shadow: 0 24px 70px rgba(13, 23, 22, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
#kontakt { scroll-margin-top: 132px; }
body { margin: 0; color: var(--ink); background: #fff; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
img { display: block; max-width: 100%; height: auto; }
:where(h1,h2,h3,h4,h5,h6) {
  margin-top: 0;
  letter-spacing: -.035em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: wrap;
}
:where(p,li) { overflow-wrap: break-word; word-break: normal; hyphens: manual; -webkit-hyphens: manual; text-wrap: wrap; }
.site-main, .site-main > .wp-block-post-content { margin: 0; padding: 0; }
.section { width: min(1240px, calc(100% - 48px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))); margin-inline: auto; padding: 72px 0; }
.page-hero { display: grid; min-height: 62vh; align-content: center; background: var(--sage); }
.wrap { width: min(1240px, calc(100% - 48px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))); max-width: 1240px !important; margin-inline: auto; }
.wrap > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { max-width: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 10000; width: auto; height: auto; clip: auto; margin: 10px; padding: 10px 14px; background: #fff; color: var(--ink); border-radius: 8px; }
:where(a,button,input,select,textarea,summary):focus-visible { outline: 3px solid #779400; outline-offset: 4px; }

/* Kopfbereich */
header.wp-block-template-part { position: sticky; top: 0; z-index: 50; margin: 0 !important; }
.admin-bar header.wp-block-template-part { top: 32px; }
.topline { margin: 0 !important; }
.topline p { margin: 0; color: var(--ink); font-weight: 850; letter-spacing: .1em; }
.site-header { margin: 0 !important; border-bottom: 1px solid rgba(13,23,22,.1); box-shadow: 0 8px 30px rgba(13,23,22,.04); }
.block-header { width: min(1240px, calc(100% - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))); min-height: 82px; margin-inline: auto !important; }
.brand-lockup { gap: 10px; min-width: 0; }
.brand-lockup .wp-block-site-logo { width: clamp(150px, 15vw, 190px); margin: 0; flex: 0 0 auto; }
.brand-lockup .custom-logo { width: 100% !important; height: auto !important; object-fit: contain; }
body.wp-custom-logo .brand,
.brand-lockup:has(.custom-logo) .brand { display: none; }
.brand { margin: 0; white-space: nowrap; font-weight: 900; letter-spacing: -.055em; }
.brand a { text-decoration: none; }
.header-actions { position: relative; gap: 12px; margin: 0 !important; }
.block-navigation { font-weight: 730; }
.block-navigation a { text-decoration: none; }
.block-navigation .wp-block-navigation-item:not(.nav-cta) a { position: relative; }
.block-navigation .wp-block-navigation-item:not(.nav-cta) a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: #6d8b00; transition: right .2s ease; }
.block-navigation .wp-block-navigation-item:not(.nav-cta) a:hover::after,
.block-navigation .current-menu-item a::after { right: 0; }
.block-navigation .nav-cta a { padding: 11px 18px !important; border-radius: 999px; background: var(--ink); color: #fff !important; }
.block-navigation .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
  padding: clamp(24px,5vw,36px);
  animation: none;
  transform: none;
}
.block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  width: 100%;
  align-items: flex-start;
}
.block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
  width: 100%;
  align-items: flex-start;
  gap: 24px;
  font-size: 1.15rem;
}
.poclink-floating-menu-button { display: none; }
.header-search { width: 44px; max-width: min(260px, 26vw); margin: 0 !important; transition: width .2s ease; }
.header-search .wp-block-search__inside-wrapper { position: relative; min-width: 44px; padding: 0; border: 0; }
.header-search .wp-block-search__input { width: 44px; min-width: 44px; height: 44px; margin: 0; padding: 10px 42px 10px 12px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--ink); opacity: 0; cursor: pointer; transition: width .2s ease, opacity .15s ease, border-color .2s ease, background .2s ease; }
.header-search .wp-block-search__button { position: absolute; top: 0; right: 0; display: grid; width: 44px; height: 44px; margin: 0; padding: 0; place-items: center; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--ink); }
.header-search .wp-block-search__button:hover { border-color: var(--line); background: var(--sage); }
.header-search .wp-block-search__button svg { width: 22px; height: 22px; }
.header-search.is-open { width: min(240px, 26vw); }
.header-search.is-open .wp-block-search__input { width: 100%; opacity: 1; cursor: text; border-color: #7f918a; background: #fff; }
.header-search .wp-block-search__input:focus-visible { outline: 3px solid #779400; outline-offset: 3px; }

/* Gutenberg-Seitenbereiche */
.editor-hero, .editor-section { margin-block: 0 !important; }
.editor-hero-columns { gap: clamp(36px, 6vw, 84px); }
.editor-hero-columns > .wp-block-column:first-child { flex-basis: 54%; min-width: 0; }
.editor-hero-columns > .wp-block-column:last-child { flex-basis: 46%; min-width: 0; }
.editor-hero h1 { max-width: 100%; margin: .25em 0 .32em; }
.editor-hero--dark .editor-hero-columns { gap: clamp(32px,4vw,64px); }
.editor-hero--dark .editor-hero-columns > .wp-block-column:first-child { flex-basis: 58%; }
.editor-hero--dark .editor-hero-columns > .wp-block-column:last-child { flex-basis: 42%; }
.editor-hero h1 em { color: #5e7b00; font-style: normal; }
.editor-hero--dark h1 em { color: var(--lime); }
.hero-copy { max-width: 700px; margin-bottom: 0; color: #34433f; }
.editor-hero--dark .hero-copy { color: #d7e2df; }
.eyebrow { margin-bottom: 12px; color: #5e7800; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.section--dark .eyebrow, .editor-hero--dark .eyebrow { color: var(--lime); }
.editor-section .wrap > h2 { max-width: 920px; margin: 0 0 20px; }
.editor-section .wrap > .lead { max-width: 820px; margin: 0 0 42px; color: var(--muted); }
.editor-section .wrap > .has-text-align-center { margin-inline: auto; }
.section--dark .wrap > .lead { color: #c9d8d4; }
.section--dark a:not(.wp-block-button__link) { color: #fff; }
.hero-actions { margin-top: 30px; gap: 12px; }
.wp-block-button__link { transition: transform .18s ease, background .18s ease, color .18s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); background: var(--green); }
.section--dark .wp-block-button__link { background: var(--lime); color: var(--ink); }
.section--dark .wp-block-button__link:hover { background: #fff; }
.centered-buttons { width: 100%; margin-top: auto; padding-top: 10px; }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.is-style-outline .wp-block-button__link:hover { background: var(--ink); color: #fff; }

/* Bilder: immer quadratisch, nie oval. Die sichtbare Form liegt im Bildblock. */
.editor-hero-image { width: min(100%, 560px); aspect-ratio: 1; margin: 0 auto; overflow: hidden; }
.editor-hero-image img { width: 100%; height: 100%; object-fit: contain; box-sizing: border-box; }
.editor-hero--dark .editor-hero-image { overflow: visible; background: transparent; box-shadow: none; }
.editor-hero--dark .editor-hero-image img {
  padding: clamp(26px,4vw,58px);
  background: #fff;
  box-shadow: var(--shadow);
  mix-blend-mode: normal;
}
.editor-hero:not(.hero-home):not(.editor-hero--dark) .editor-hero-image {
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.editor-hero:not(.hero-home):not(.editor-hero--dark) .editor-hero-image img {
  padding: 0;
  background: transparent;
  box-shadow: none;
  mix-blend-mode: darken;
  filter: none;
}
.hero-home .editor-hero-image {
  width: min(100%, clamp(280px, 45vw, 560px));
  overflow: visible;
  background: transparent;
}
.hero-home .editor-hero-image img {
  mix-blend-mode: darken;
  filter: none;
}
.editable-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  align-self: center;
  margin-block: -4px 8px;
  margin-inline: auto !important;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.editable-card-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.technical-data-image, .technical-data-image img { clip-path: none; mask-image: none; -webkit-mask-image: none; overflow: visible; }

/* Native Gutenberg-Raster */
.poclink-grid { display: grid !important; width: 100%; margin-top: 38px; align-items: stretch; }
.poclink-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.poclink-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.poclink-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.editable-card { display: flex !important; flex-direction: column; min-width: 0; min-height: 100%; box-shadow: 0 10px 32px rgba(13,23,22,.045); }
.editable-card > * { width: 100%; }
.editable-card > p:not(.eyebrow),
.editable-card .card-copy { display: flex !important; flex: 1; flex-direction: column; justify-content: center; }
.editable-card .card-heading { display: flex !important; flex-direction: column; align-items: stretch; }
.editable-card .card-heading > * { width: 100%; }
.editable-card > .wp-block-buttons:last-child { margin-top: auto; }
.editable-card h3 { margin: 0; line-height: 1.12; }
.editable-card p:not(.eyebrow) { margin: 0; color: var(--muted); }
.section--dark .editable-card { background: #17453c !important; border-color: #3f685f !important; color: #fff !important; box-shadow: none; }
.section--dark .editable-card p:not(.eyebrow) { color: #c8d9d5; }
.section--dark .editable-card .is-style-outline .wp-block-button__link { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.section--dark .editable-card .is-style-outline .wp-block-button__link:hover { border-color: #fff; background: #fff; }

/* Tabellen und Ratgeber */
.spec-table { margin-top: 40px; overflow-x: auto; border-color: var(--ink) !important; background: #fff; border-radius: 0 !important; }
.spec-table table { width: 100%; min-width: 620px; border: 0; border-collapse: collapse; }
.spec-table :where(th,td) { padding: 17px 20px; border: 0 !important; border-right: 1px solid var(--ink) !important; border-bottom: 1px solid var(--ink) !important; text-align: left; vertical-align: top; }
.spec-table :where(th,td):last-child { border-right: 0 !important; }
.spec-table tr:last-child :where(th,td) { border-bottom: 0 !important; }
.spec-table th { width: 36%; background: var(--sage); font-size: .86rem; letter-spacing: .04em; text-transform: uppercase; }
.product-data-note { max-width: 900px; margin: 18px 0 0; color: var(--muted); line-height: 1.55; }
.product-data-note a { color: var(--forest); font-weight: 720; text-underline-offset: .18em; }
.product-notices-content { box-shadow: 0 18px 52px rgba(13,23,22,.055); }
.product-notices-content h2 { margin-top: 34px; }
.product-notices-content h2:first-child { margin-top: 0; }
.product-notices-content p { color: var(--muted); }
.product-notices-content .lead { color: var(--ink); }
.product-notices-date { margin-top: 30px; font-weight: 720; }
.poclink-faq-directory { margin-top: 36px; }
.poclink-faq-topic-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.poclink-faq-topic-nav a { padding: 9px 14px; border: 1px solid #b8c4bf; border-radius: 999px; background: #fff; color: var(--forest); font-size: .88rem; font-weight: 720; text-decoration: none; }
.poclink-faq-topic-nav a:hover,
.poclink-faq-topic-nav a:focus-visible { border-color: var(--green); background: var(--sage); }
.poclink-faq-topic { scroll-margin-top: 150px; }
.poclink-faq-topic + .poclink-faq-topic { margin-top: 56px; }
.poclink-faq-topic > h2 { margin: 0 0 22px; font-size: clamp(1.6rem, 3vw, 2.35rem); }
.poclink-faq-list { display: grid; gap: 12px; }
.poclink-faq-item { margin: 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 8px 26px rgba(13,23,22,.035); }
.poclink-faq-item summary { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 22px; padding: 18px 22px; color: var(--ink); font-weight: 760; line-height: 1.35; cursor: pointer; list-style: none; }
.poclink-faq-item summary::-webkit-details-marker { display: none; }
.poclink-faq-item summary::after { content: "+"; display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--sage); color: var(--forest); font-size: 1.35rem; font-weight: 500; line-height: 1; transition: transform .18s ease, background .18s ease; }
.poclink-faq-item[open] summary::after { transform: rotate(45deg); background: var(--lime); }
.poclink-faq-item[open] summary { border-bottom: 1px solid var(--line); }
.poclink-faq-answer { padding: 20px 22px 22px; color: var(--muted); }
.poclink-faq-answer > :first-child { margin-top: 0; }
.poclink-faq-answer > :last-child { margin-bottom: 0; }
.poclink-faq-directory--compact { margin-top: 30px; }
.editable-faq { margin-top: 36px; }
.editable-faq h3 { margin: 0; padding: 22px 0 8px; border-top: 1px solid var(--line); }
.editable-faq h3:first-child { padding-top: 0; border-top: 0; }
.editable-faq p { margin-top: 0; color: var(--muted); }
.article-layout { gap: clamp(36px,6vw,80px); align-items: flex-start !important; }
.article-layout > .wp-block-column:first-child { flex-basis: 64%; }
.article-layout > .wp-block-column:last-child { flex-basis: 36%; }
.article-content:not(.article-content--structured) { display: grid; grid-template-columns: 52px minmax(0,1fr); column-gap: 22px; align-items: start; }
.article-content:not(.article-content--structured) > .eyebrow { grid-column: 1; grid-row: span 2; display: grid; width: 52px; height: 52px; margin: 0; place-items: center; border-radius: 50%; background: var(--lime); color: var(--ink); letter-spacing: .04em; }
.article-content:not(.article-content--structured) > h2 { grid-column: 2; margin: 0 !important; padding-top: 3px; }
.article-content:not(.article-content--structured) > .lead { grid-column: 2; margin: 12px 0 54px; }
.article-content:not(.article-content--structured) > .lead:last-child { margin-bottom: 0; }
.article-step { display: flex !important; align-items: flex-start; gap: 22px; padding: 30px 0; border-top: 1px solid var(--line); }
.article-step:first-child { padding-top: 0; border-top: 0; }
.step-number { display: flex !important; flex: 0 0 52px; width: 52px; min-width: 52px; max-width: 52px; height: 52px; min-height: 52px; padding: 0; aspect-ratio: 1; align-items: center; justify-content: center; border-radius: 50% !important; }
.step-number-value { margin: 0; white-space: nowrap; writing-mode: horizontal-tb; font-weight: 850; letter-spacing: .04em; line-height: 1; }
.article-step-content { flex: 1; min-width: 0; }
.article-step-content h2 { margin: 0; }
.article-step-content .lead { margin: 12px 0 0; }
.article-aside { position: sticky; top: 112px; }
.check-list { display: grid; gap: 12px; padding-left: 1.25em; }
.check-list li::marker { color: #789500; }
.section--dark .check-list li::marker { color: var(--lime); }

/* Kontakt */
.contact-grid { width: 100%; gap: clamp(22px,3.2vw,40px); align-items: flex-start !important; }
.contact-grid > .wp-block-column { align-self: flex-start; min-width: 0; }
.contact-grid > .wp-block-column:first-child { flex-basis: 38%; }
.contact-grid > .wp-block-column:last-child { flex-basis: 62%; }
.contact-grid .wp-block-shortcode { margin: 0; }
.contact-details-card, .contact-card { height: auto; }
.contact-details-card { background: linear-gradient(155deg,#f6f8f0 0%,#eaf0df 100%) !important; box-shadow: 0 24px 64px rgba(6,21,18,.14); }
.contact-details-card > .eyebrow { display: none; }
.contact-details-card h3 { margin: 0; }
.contact-card-intro { margin: 0; color: var(--muted); }
.contact-details-card > .contact-info-list { margin-block-start: 8px !important; }
.contact-info-item { padding: 19px 0; border-top: 1px solid #c9d4c5; }
.contact-info-item:first-child { padding-top: 0; border-top: 0; }
.contact-info-item:last-child { padding-bottom: 0; }
.contact-info-label { margin: 0 0 5px; color: #596864; font-size: .74rem !important; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-info-value { margin: 0; color: #43524e; line-height: 1.55; }
.contact-info-value span { color: #5b6965; font-size: .88em; font-weight: 700; }
.contact-info-value a { color: var(--forest) !important; font-size: 1.05em; font-weight: 800; text-decoration: none; }
/* Kompatible Abstaende fuer Kontaktkarten aus frueheren Blockversionen. */
.contact-details-card > h3 + .contact-facts { margin-block-start: 7px !important; }
.contact-details-card > h4 { margin: 24px 0 0 !important; letter-spacing: 0; }
.contact-details-card > h4 + .contact-facts { margin-block-start: 3px !important; }
.contact-facts { color: var(--muted); }
.contact-facts a { color: var(--forest) !important; font-weight: 780; text-decoration: none; }
.contact-card { padding: clamp(24px,4.2vw,46px); border: 1px solid #dce3e0; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 24px 64px rgba(6,21,18,.14); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.field { margin: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .poclink-cf7-form label { display: block; margin-bottom: 8px; font-size: .84rem; font-weight: 760; }
.field :where(input,textarea,select),
.poclink-cf7-form :where(input:not([type="checkbox"]):not([type="radio"]),textarea,select) { width: 100%; min-height: 54px; border: 1px solid #7f918a; border-radius: 12px; padding: 14px 15px; background: #f8faf8; color: var(--ink); font: inherit; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.field :where(input,textarea)::placeholder,
.poclink-cf7-form :where(input,textarea)::placeholder { color: #596864; opacity: 1; }
.field :where(input,textarea,select):focus,
.poclink-cf7-form :where(input:not([type="checkbox"]):not([type="radio"]),textarea,select):focus { border-color: #668276; outline: 0; background: #fff; box-shadow: 0 0 0 4px rgba(27,81,69,.11); }
.field textarea, .poclink-cf7-form textarea { min-height: 160px; resize: vertical; }
.consent-field { padding-top: 3px; }
.consent-field label, .poclink-cf7-form .wpcf7-acceptance label { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 11px; align-items: start; margin: 0; color: #52615d; font-size: .82rem; font-weight: 500; line-height: 1.5; text-align: left; }
.consent-field span { text-align: left; }
.consent-field input, .poclink-cf7-form .wpcf7-acceptance input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); }
.contact-card .consent-field a,
.contact-card .poclink-cf7-form .wpcf7-acceptance a {
  color: var(--green) !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
.contact-card .consent-field a:visited,
.contact-card .poclink-cf7-form .wpcf7-acceptance a:visited { color: var(--green) !important; }
.contact-card .consent-field a:hover,
.contact-card .consent-field a:focus-visible,
.contact-card .poclink-cf7-form .wpcf7-acceptance a:hover,
.contact-card .poclink-cf7-form .wpcf7-acceptance a:focus-visible { color: var(--forest) !important; }
.contact-card > form > .button, .poclink-cf7-form .wpcf7-submit { display: inline-flex; width: 100%; min-height: 54px; align-items: center; justify-content: center; margin-top: 22px; padding: 0 24px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font-weight: 760; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.contact-card > form > .button:hover, .poclink-cf7-form .wpcf7-submit:hover { transform: translateY(-2px); background: var(--green); }
.poclink-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.notice, .form-admin-note { margin: 0 0 20px; padding: 14px 16px; border-radius: 10px; background: var(--sage); color: var(--forest); font-weight: 700; }
.notice--error { background: #ffe3dd; color: #842e24; }
.cf-turnstile { display: flex; width: 100%; max-width: 100%; min-height: 65px; align-items: flex-start; justify-content: center; margin: 22px auto 0; }
.cf-turnstile > div { max-width: 100%; margin-inline: auto; }

/* Fußzeile */
footer.wp-block-template-part,
.wp-site-blocks > footer.wp-block-template-part { margin-block-start: 0 !important; }
.site-footer { margin: 0 !important; }
.footer-intro { margin-inline: auto !important; text-align: center; }
.powered-by { display: block; width: fit-content; margin: 0 auto; padding: 8px 12px; border: 1px solid #41534f; border-radius: 999px; color: #dce6e3; }
.powered-by strong { color: var(--lime); }
.footer-navigation-row { justify-content: center !important; border: 0; }
.footer-compact-links { font-weight: 720; }
.footer-compact-links .wp-block-navigation__container { justify-content: center; gap: clamp(16px,3vw,34px); }
.footer-compact-links a { color: #d1ddda; text-decoration: none; }
.footer-compact-links a:hover { color: var(--lime); }
.footer-bottom { color: #aebdb9; }
.footer-bottom p { margin: 0; }
.footer-bottom--compact { align-items: center !important; justify-content: center !important; gap: 4px; text-align: center; }
.legal-note { max-width: 760px; color: #82918e; line-height: 1.5; }

/* Suche und einzelne FAQ-Antworten */
.search-hero .wp-block-query-title { max-width: 900px; margin: 8px 0 28px; }
.search-page-form { max-width: 680px; margin: 0; }
.search-page-form .wp-block-search__inside-wrapper { padding: 5px; border: 1px solid #7f918a; border-radius: 999px; background: #fff; }
.search-page-form .wp-block-search__input { min-height: 48px; padding: 10px 16px; border: 0; background: transparent; }
.search-page-form .wp-block-search__button { margin: 0; border-radius: 999px; }
.search-results-grid { gap: 24px !important; }
.search-result-card { height: 100%; box-shadow: 0 12px 36px rgba(13,23,22,.055); }
.search-result-card h2 { margin: 0; line-height: 1.15; }
.search-result-card h2 a { text-decoration: none; }
.search-result-card h2 a:hover { color: var(--green); }
.search-result-card .wp-block-post-excerpt { color: var(--muted); }
.search-result-card .wp-block-post-excerpt__more-link { display: inline-flex; margin-top: 10px; color: var(--green); font-weight: 760; text-decoration: none; }
.poclink-search-results .wp-block-query-pagination { margin-top: 42px; }
.faq-single-hero .wp-block-post-title { max-width: 920px; margin: 8px 0 0; }
.faq-single-answer { font-size: 1.08rem; }
.faq-single-answer > .wp-block-post-content > :first-child { margin-top: 0; }
.faq-back-link { margin-top: 42px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .poclink-grid--4 { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}

@media (max-width: 1120px) {
  .editor-hero-columns { flex-direction: column; }
  .editor-hero-columns > .wp-block-column { flex-basis: auto !important; width: 100%; }
  .editor-hero-image { max-width: 520px; }
}

@media (max-width: 900px) {
  .poclink-grid--3 { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .article-layout, .contact-grid { flex-direction: column; }
  .article-aside { position: static; }
  .search-results-grid { grid-template-columns: 1fr !important; }
}

/* Die vollständige Desktop-Navigation benötigt mehr Platz als ein Tablet bietet. */
@media (max-width: 960px) {
  .block-navigation .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
  .block-navigation .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }

  .poclink-floating-menu-button {
    position: fixed;
    z-index: 80;
    top: max(12px, env(safe-area-inset-top, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    width: 50px;
    height: 50px;
    margin: 0;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(13,23,22,.16);
    border-radius: 50%;
    background: rgba(255,255,255,.96);
    color: var(--ink);
    box-shadow: 0 10px 30px rgba(13,23,22,.16);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, background .18s ease;
  }
  .poclink-floating-menu-button:not([hidden]) { display: grid; }
  .poclink-floating-menu-button:hover { background: var(--sage); }
  .poclink-floating-menu-icon,
  .poclink-floating-menu-icon::before,
  .poclink-floating-menu-icon::after {
    display: block;
    width: 23px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }
  .poclink-floating-menu-icon { position: relative; }
  .poclink-floating-menu-icon::before,
  .poclink-floating-menu-icon::after { position: absolute; left: 0; content: ""; }
  .poclink-floating-menu-icon::before { top: -7px; }
  .poclink-floating-menu-icon::after { top: 7px; }

  body.poclink-mobile-header-collapsed header.wp-block-template-part {
    pointer-events: none;
    transform: translateY(calc(-100% - 14px));
  }
  body.poclink-low-landscape.poclink-mobile-header-collapsed header.wp-block-template-part {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
  }
  body.poclink-mobile-header-collapsed .poclink-floating-menu-button {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  header.wp-block-template-part { transition: transform .22s ease; }
  .admin-bar .poclink-floating-menu-button { top: calc(44px + env(safe-area-inset-top, 0px)); }
}

@media (max-width: 680px) {
  :where(h1,h2,h3,h4,h5,h6) { overflow-wrap: break-word; text-wrap: wrap; }
  #kontakt { scroll-margin-top: 86px; }
  .editor-hero, .editor-section { padding-right: 16px !important; padding-left: 16px !important; }
  .wrap { width: min(calc(100% - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)), 1240px); }
  .editor-hero > .wrap,
  .editor-section > .wrap { width: min(100%, calc(100% - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))); }
  .topline { display: none; }
  .block-header { min-height: 70px; }
  .brand-lockup .wp-block-site-logo { width: clamp(132px, 38vw, 160px); }
  .header-actions { gap: 4px; }
  .header-search { max-width: 44px; }
  .header-search.is-open { position: absolute; top: calc(100% + 12px); right: 0; width: min(360px, calc(100vw - 32px)); max-width: none; padding: 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: var(--shadow); }
  .poclink-grid--4, .poclink-grid--3, .poclink-grid--2 { grid-template-columns: 1fr !important; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .field-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .contact-card { padding-inline: 20px; }
  .editor-hero-image { max-width: 390px; }
  .editor-hero--dark .editor-hero-image img { padding: 24px; }
  .editable-card { min-height: 0; }
  .article-content:not(.article-content--structured) { grid-template-columns: 44px minmax(0,1fr); column-gap: 16px; }
  .article-content:not(.article-content--structured) > .eyebrow,
  .step-number { width: 44px; min-width: 44px; max-width: 44px; height: 44px; min-height: 44px; flex-basis: 44px; }
  .article-step { gap: 16px; padding: 24px 0; }
  .spec-table :where(th,td) { padding: 14px; }
  .poclink-faq-topic-nav { margin-bottom: 36px; }
  .poclink-faq-topic + .poclink-faq-topic { margin-top: 44px; }
  .poclink-faq-item summary { padding: 16px 17px; }
  .poclink-faq-answer { padding: 18px 17px 20px; }
  .footer-bottom { align-items: center !important; }
  .footer-compact-links .wp-block-navigation__container { align-items: center; justify-content: center; gap: 12px 22px; }
}

/* Niedrige Smartphone-Queransichten erhalten denselben schmalen Seitenrand. */
@media (min-width: 568px) and (max-width: 960px) and (max-height: 500px) {
  .editor-hero, .editor-section { padding-right: 16px !important; padding-left: 16px !important; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* Die Produktuebersicht folgt auf Smartphones dem kompakten Shopify-Prinzip:
 * quadratische Bildflaechen, kurze Informationen und zwei Spalten im
 * Hochformat beziehungsweise drei Spalten in breiten Queransichten. */
@media (max-width: 680px), (min-width: 681px) and (max-width: 960px) and (max-height: 500px) {
  .product-grid { gap: 28px 12px !important; }
  .product-grid .editable-card {
    min-height: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none;
    gap: 9px !important;
  }
  .product-grid .card-heading { gap: 7px !important; }
  .product-grid .editable-card-image {
    aspect-ratio: 1 !important;
    margin: 0 0 7px !important;
    padding: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px !important;
    background: #fff;
  }
  .product-grid .eyebrow,
  .product-grid h3 { text-align: left !important; }
  .product-grid .eyebrow {
    margin: 0;
    font-size: clamp(.67rem, 3vw, .76rem) !important;
    line-height: 1.35;
    letter-spacing: .1em;
  }
  .product-grid h3 {
    font-size: clamp(1rem, 4.8vw, 1.18rem) !important;
    line-height: 1.12;
  }
  .product-grid .card-copy { display: none !important; }
  .product-grid .card-action {
    justify-content: flex-start !important;
    margin: 2px 0 0 !important;
  }
  .product-grid .card-action .wp-block-button,
  .product-grid .card-action .wp-block-button__link { width: 100%; }
  .product-grid .card-action .wp-block-button__link {
    min-height: 42px;
    padding: 9px 10px;
    border-width: 1px;
    font-size: clamp(.75rem, 3.4vw, .88rem);
    line-height: 1.15;
    white-space: nowrap;
  }
}

@media screen and (max-width: 782px) {
  .admin-bar header.wp-block-template-part { top: 46px; }
  .admin-bar .poclink-floating-menu-button { top: calc(58px + env(safe-area-inset-top, 0px)); }
}

@media screen and (max-width: 600px) {
  .admin-bar header.wp-block-template-part { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
