/* Alliance Security – ergänzende Stile (Nachbau onepage) */
::selection { background: #F1861A; color: #fff; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* Buttons: sekundär (Umriss) wie onepage */
.wp-block-button.is-style-outline > .wp-block-button__link {
  background: transparent; color: var(--wp--preset--color--dark);
  border: 0; box-shadow: inset 0 0 0 1px var(--wp--preset--color--dark);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--dark); color: #fff; }

/* Kopfbereich */
.as-header { position: relative; z-index: 50; }
.as-header .wp-block-site-logo img { height: auto; }
.as-header .wp-block-navigation a { text-decoration: none; }
.as-header .wp-block-navigation .wp-block-navigation__submenu-container { border: 0; border-radius: 16px; padding: 16px 8px; box-shadow: 0 12px 40px rgba(6,24,34,.12); min-width: 260px; }
.as-contact-item { line-height: 1.25; font-size: 14px; }
.as-contact-item a { text-decoration: none; font-weight: 700; color: var(--wp--preset--color--dark); }
.as-contact-item small { display: block; font-size: 12px; opacity: .7; }
.as-header .wp-block-button__link { font-size: 13px; font-weight: 700; padding: 10px 20px; }

/* Fußbereich */
.as-footer a { text-decoration: none; }
.as-footer a:hover { text-decoration: underline; }
.as-footer h2, .as-footer h3 { font-size: 18px; }

/* Abschnitte */
.as-section { position: relative; }
.as-dark, .as-dark h1, .as-dark h2, .as-dark h3, .as-dark h4, .as-dark a:not(.wp-block-button__link) { color: #fff; }

/* Tablet 451–1024 px: Silbentrennung in Überschriften (wie onepage, 02.11.2026) */
@media (min-width: 451px) and (max-width: 1024px) {
  h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 12 7 9; }
}

/* Kopfbereich – Feinschliff */
.as-header { min-height: 121px; box-sizing: border-box; }
.as-header .as-logo { flex-shrink: 0; }
.as-header .wp-block-navigation { flex: 1 1 auto; color: var(--wp--preset--color--dark); }
.as-header .wp-block-navigation .wp-block-navigation-item__content { padding: 4px 0; }
.as-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 10px 16px; font-size: 15px; }
.as-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--orange); }
.as-contact { align-items: center; }
.as-contact::before { content: ""; flex: 0 0 25px; width: 25px; height: 25px; background: var(--wp--preset--color--navy);
  -webkit-mask: var(--as-icon) center / contain no-repeat; mask: var(--as-icon) center / contain no-repeat; }
.as-ic-phone { --as-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M15.639,14.407l-2.355,2.321a19.111,19.111,0,0,1-3.4-2.613,19.353,19.353,0,0,1-2.612-3.4L9.591,8.36a1.01,1.01,0,0,0,.208-1.1L7.382,1.614A1.009,1.009,0,0,0,6.2,1.036L1.756,2.209A1.007,1.007,0,0,0,1,3.218,21.337,21.337,0,0,0,7.039,16.959,21.339,21.339,0,0,0,20.784,23a1.011,1.011,0,0,0,1.01-.756l1.172-4.44a1.009,1.009,0,0,0-.577-1.186L16.748,14.2A1.009,1.009,0,0,0,15.639,14.407Z'/></svg>"); }
.as-ic-mail { --as-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M13.4,14.6A2.3,2.3,0,0,1,12,15a2.3,2.3,0,0,1-1.4-.4L0,8.9V19a3,3,0,0,0,3,3H21a3,3,0,0,0,3-3V8.9Z'/><path d='M21,2H3A3,3,0,0,0,0,5V6a1.05,1.05,0,0,0,.5.9l11,6a.9.9,0,0,0,.5.1.9.9,0,0,0,.5-.1l11-6A1.05,1.05,0,0,0,24,6V5A3,3,0,0,0,21,2Z'/></svg>"); }
.as-contact p { margin: 0; }
.as-contact-main { font-size: 14px; font-weight: 700; line-height: 1.4; }
.as-contact-main a { color: var(--wp--preset--color--dark); text-decoration: none; }
.as-contact-sub { font-size: 11.2px; line-height: 1.5; color: var(--wp--preset--color--navy); }
@media (max-width: 1240px) { .as-header .as-contact { display: none; } }
@media (max-width: 600px) { .as-header .as-header-cta { display: none; } .as-header .as-logo { max-width: 180px; } }

/* Fußbereich – Feinschliff */
.as-footer-title { font-size: 20px !important; font-weight: 700; margin: 0 0 18px; }
.as-footer-links { list-style: none; padding: 0; margin: 0; }
.as-footer-links li { padding: 12px 0; font-size: 15.2px; font-weight: 500; line-height: 1.3; }
.as-footer-legal li { font-size: 16.8px; font-weight: 700; }
.as-footer-links a { color: var(--wp--preset--color--dark); text-decoration: none; }
.as-member-logos { align-items: center; }
.as-member-logos .wp-block-image { margin: 0; }
.as-member-logos img { height: 90px; width: auto; max-width: 100%; object-fit: contain; }
.as-copyright { font-size: 18px; font-weight: 700; margin: 0; }
@media (max-width: 781px) { .as-member-logos img { height: 64px; } }

/* Hauptmenü (Design → Menüs) */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.as-header .wp-block-shortcode, .as-header > p:has(.as-nav) { margin: 0; flex: 1 1 auto; }
.as-nav { position: relative; }
.as-nav .as-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 40px; align-items: center; font-size: 14px; }
.as-nav .as-menu > li { position: relative; }
.as-nav .as-menu a { color: var(--wp--preset--color--dark); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 16px 0; line-height: 24px; }
.as-nav .as-menu a:hover { color: var(--wp--preset--color--orange); }
.as-nav .menu-item-has-children > a::after { content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12,15c-0.256,0-0.512-0.098-0.707-0.293L6.586,10L8,8.586l4,4l4-4L17.414,10l-4.707,4.707C12.512,14.902,12.256,15,12,15z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12,15c-0.256,0-0.512-0.098-0.707-0.293L6.586,10L8,8.586l4,4l4-4L17.414,10l-4.707,4.707C12.512,14.902,12.256,15,12,15z'/></svg>") center / contain no-repeat; }
.as-nav .sub-menu { list-style: none; margin: 0; padding: 16px 8px; position: absolute; left: -16px; top: 100%; min-width: 280px; background: #fff; border-radius: 16px;
  box-shadow: 0 12px 40px rgba(6,24,34,.12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 100; }
.as-nav .sub-menu a { display: block; padding: 10px 16px; font-size: 15px; line-height: 1.4; }
.as-nav .menu-item-has-children:hover > .sub-menu, .as-nav .menu-item-has-children:focus-within > .sub-menu, .as-nav .menu-item-has-children.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.as-nav-toggle { display: none; }
@media (max-width: 1100px) {
  .as-nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; margin-left: auto; }
  .as-burger, .as-burger::before, .as-burger::after { display: block; width: 24px; height: 2px; background: var(--wp--preset--color--dark); position: relative; transition: transform .2s, background .2s; }
  .as-burger::before, .as-burger::after { content: ""; position: absolute; left: 0; }
  .as-burger::before { top: -7px; } .as-burger::after { top: 7px; }
  .as-nav.is-open .as-burger { background: transparent; }
  .as-nav.is-open .as-burger::before { transform: translateY(7px) rotate(45deg); }
  .as-nav.is-open .as-burger::after { transform: translateY(-7px) rotate(-45deg); }
  .as-nav-panel { display: none; position: absolute; right: 0; top: calc(100% + 12px); width: min(360px, calc(100vw - 32px)); background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(6,24,34,.18); padding: 12px 20px; z-index: 200; }
  .as-nav.is-open .as-nav-panel { display: block; }
  .as-nav .as-menu { flex-direction: column; align-items: stretch; gap: 0; font-size: 16px; }
  .as-nav .as-menu > li { border-bottom: 1px solid #eef1f2; }
  .as-nav .as-menu > li:last-child { border-bottom: 0; }
  .as-nav .as-menu a { padding: 14px 0; justify-content: space-between; width: 100%; }
  .as-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 8px 12px; display: none; min-width: 0; }
  .as-nav .menu-item-has-children.is-open > .sub-menu { display: block; }
  .as-nav .menu-item-has-children:hover > .sub-menu { display: none; }
  .as-nav .menu-item-has-children.is-open:hover > .sub-menu { display: block; }
}
/* Fußbereich-Menüs */
.as-footer .as-menu { list-style: none; padding: 0; margin: 0; }
.as-footer .as-menu li { padding: 12px 0; font-size: 15.2px; font-weight: 500; line-height: 1.3; }
.as-footer .as-menu--footer_legal li { font-size: 16.8px; font-weight: 700; }
.as-footer .as-menu a { color: var(--wp--preset--color--dark); text-decoration: none; }
