/*
Theme Name: Verfondern Theme
Theme URI: https://www.verfondern-schuhe.de
Author: NK Medien
Description: Maßgeschneidertes Theme für Schuhhaus Verfondern – 1:1 Nachbau des Originals, ohne Astra/Addon-Overhead.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: verfondern
*/

/* ==========================================================================
   Self-Hosted Nunito Font (identical to live site)
   ========================================================================== */

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: fallback;
  src: url('./assets/fonts/nunito-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: fallback;
  src: url('./assets/fonts/nunito-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: 'Nunito';
  font-style: normal;
  font-weight: 500;
  font-display: fallback;
  src: url('./assets/fonts/nunito-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 500;
  font-display: fallback;
  src: url('./assets/fonts/nunito-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   CSS Custom Properties (matching Astra globals)
   ========================================================================== */

:root {
  --ast-global-color-0: #0170B9;
  --ast-global-color-1: #3a3a3a;
  --ast-global-color-2: #3a3a3a;
  --ast-global-color-3: #4B4F58;
  --ast-global-color-4: #EBEBEB;
  --ast-global-color-5: #FFFFFF;
  --ast-global-color-6: #E5E5E5;
  --ast-global-color-7: #424242;
  --ast-global-color-8: #000000;

  --vf-burgundy: #7a0b0b;
  --vf-burgundy-dark: #5d0f0f;
  --vf-burgundy-sub: #7e0a0a;
  --vf-red-hover: #f74242;
  --vf-red-mobile: #920808;
  --vf-green: #18882d;
  --vf-green-active: #26b470;
  --vf-blue: #0170B9;

  /* WP Preset bridge (Astra registers these, we need them for existing block content) */
  --wp--preset--color--ast-global-color-0: #0170B9;
  --wp--preset--color--ast-global-color-1: #3a3a3a;
  --wp--preset--color--ast-global-color-2: #3a3a3a;
  --wp--preset--color--ast-global-color-3: #4B4F58;
  --wp--preset--color--ast-global-color-4: #EBEBEB;
  --wp--preset--color--ast-global-color-5: #FFFFFF;
  --wp--preset--color--ast-global-color-6: #E5E5E5;
  --wp--preset--color--ast-global-color-7: #424242;
  --wp--preset--color--ast-global-color-8: #000000;

  --vf-container: 1200px;
  --vf-above-header-h: 50px;
  --vf-primary-header-h: 70px;
}

/* ==========================================================================
   Reset & Base (matching Astra exactly)
   ========================================================================== */

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

html {
  font-size: 112.5%; /* 18px base, identical to Astra */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: #3a3a3a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  border-style: none;
}

a {
  color: var(--ast-global-color-0);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--ast-global-color-1);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  color: #3a3a3a;
  margin: 0 0 20px;
  clear: both;
}

/* Heading accent color (matching live site) */
h1, .entry-content h1,
h2, .entry-content h2,
h3, .entry-content h3 {
  color: #ba0a02;
}

h1 { font-size: 40px; font-size: 2.2222222222222rem; line-height: 1.4; }
h2 { font-size: 32px; font-size: 1.7777777777778rem; line-height: 1.3; }
h3 { font-size: 24px; font-size: 1.3333333333333rem; line-height: 1.2; }
h4 { font-size: 20px; font-size: 1.1111111111111rem; line-height: 1.2; }
h5 { font-size: 16px; font-size: 0.88888888888889rem; line-height: 1.2; }
h6 { font-size: 25px; font-size: 1.3888888888889rem; line-height: 1.2; }

p { margin: 0 0 1.6em; }

ul, ol { margin: 0 0 1.5em; padding-left: 1.5em; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* ==========================================================================
   Container
   ========================================================================== */

.ast-container,
.vf-container {
  max-width: var(--vf-container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Skip Link (Accessibility)
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: 10px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--vf-burgundy);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  top: 5px;
  color: #fff;
  outline: 2px solid #fff;
}

:focus-visible {
  outline: 2px solid var(--ast-global-color-0);
  outline-offset: 2px;
}

.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;
}

/* ==========================================================================
   HEADER – Above Header Bar (Logo + Buttons)
   ========================================================================== */

.site-header {
  position: relative;
  z-index: 50;
}

.above-header-bar {
  background: #ffffff;
  min-height: var(--vf-above-header-h);
  border-bottom: 1px solid var(--ast-global-color-6);
}

.above-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--vf-above-header-h);
  max-width: var(--vf-container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Logo */
.site-branding .custom-logo-link {
  display: inline-block;
  line-height: 0;
}

.site-branding .custom-logo {
  max-height: 65px;
  width: auto;
}

/* Header CTA Buttons */
.above-header-center,
.above-header-right {
  display: none;
}

.header-btn {
  display: inline-block;
  padding: 10px 22px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-size: 0.8333rem;
  font-weight: 400;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  line-height: 1.5;
}

.header-btn-green {
  background: var(--vf-green);
}

.header-btn-green:hover {
  background: #128d47;
  color: #fff;
}

.header-btn-blue {
  background: var(--ast-global-color-0);
}

.header-btn-blue:hover {
  background: #005a94;
  color: #fff;
}

@media (min-width: 922px) {
  .above-header-center,
  .above-header-right {
    display: block;
  }
}

/* ==========================================================================
   HEADER – Primary Header Bar (Navigation)
   ========================================================================== */

.primary-header-bar {
  background: var(--vf-burgundy);
  min-height: var(--vf-primary-header-h);
  border-bottom: 1px solid var(--vf-burgundy-dark);
  display: none;
}

.primary-header-inner {
  max-width: var(--vf-container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Main navigation */
.main-navigation {
  display: flex;
}

.main-navigation ul {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.main-navigation > ul > li {
  position: relative;
}

.main-navigation > ul > li > a {
  display: flex;
  align-items: center;
  height: var(--vf-primary-header-h);
  padding: 0 20px;
  font-family: 'Nunito', sans-serif;
  font-size: 19px;
  font-size: 1.0555555555556rem;
  font-weight: 400;
  color: var(--ast-global-color-5);
  text-decoration: none;
  transition: background 0.2s ease;
  white-space: nowrap;
  position: relative;
}

/* Hover: bright red background */
.main-navigation > ul > li > a:hover,
.main-navigation > ul > li:hover > a {
  background: var(--vf-red-hover);
  color: #fff;
}

/* Active: green background */
.main-navigation > ul > li.current-menu-item > a,
.main-navigation > ul > li.current_page_item > a,
.main-navigation > ul > li.current-menu-ancestor > a {
  background: var(--vf-green-active);
  color: #fff;
}

/* Underline hover effect (like Astra) */
.main-navigation > ul > li > a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: calc(100% - 1.2em);
  height: 1px;
  background: transparent;
  transform: scale(0, 0) translateX(-50%);
  transition: transform 0.3s ease-in-out;
}

.main-navigation > ul > li > a:hover::before {
  background: currentColor;
  transform: scale(1, 1) translateX(-50%);
}

/* Dropdown arrow for items with children */
.main-navigation .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 8px;
  margin-top: -3px;
}

/* Sub-menus */
.main-navigation .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--vf-burgundy-sub);
  border-top: 2px solid var(--ast-global-color-0);
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.1);
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 14rem;
  z-index: 60;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
  display: block;
}

.main-navigation .sub-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 19px;
  font-size: 1.0555555555556rem;
  color: var(--ast-global-color-5);
  transition: background 0.2s ease;
  white-space: nowrap;
}

.main-navigation .sub-menu a:hover {
  background: var(--vf-red-hover);
  color: #fff;
}

.main-navigation .sub-menu .current-menu-item > a {
  background: var(--vf-green-active);
}

@media (min-width: 922px) {
  .primary-header-bar {
    display: block;
  }
}

/* ==========================================================================
   Mobile Header
   ========================================================================== */

.mobile-header-bar {
  display: none;
}

/* Hamburger button - shown in above-header-bar on mobile */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--vf-red-mobile);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.menu-toggle:hover {
  background: var(--vf-burgundy);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 921px) {
  .menu-toggle {
    display: inline-flex;
  }
}

/* Mobile navigation dropdown */
.mobile-nav {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid var(--ast-global-color-6);
  max-height: 80vh;
  overflow-y: auto;
}

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

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav > ul > li {
  border-bottom: 1px solid #eee;
}

.mobile-nav > ul > li > a {
  display: block;
  padding: 12px 20px;
  font-size: 19px;
  font-size: 1.0555555555556rem;
  color: #3a3a3a;
  font-weight: 400;
}

.mobile-nav > ul > li > a:hover,
.mobile-nav > ul > li.current-menu-item > a {
  background: var(--vf-green-active);
  color: #fff;
}

.mobile-nav .sub-menu {
  background: #f9f9f9;
}

.mobile-nav .sub-menu a {
  display: block;
  padding: 8px 20px 8px 30px;
  font-size: 17px;
  color: #3a3a3a;
}

.mobile-nav .sub-menu a:hover {
  color: var(--ast-global-color-0);
}

@media (min-width: 922px) {
  .mobile-nav {
    display: none !important;
  }
}

/* ==========================================================================
   Header spacing – gap between logo bar and nav bar
   ========================================================================== */

.above-header-bar {
  padding: 10px 0;
}

/* ==========================================================================
   Hero Banner (replaces Astra Advanced Header)
   ========================================================================== */

.hero-banner {
  position: relative;
  width: 100%;
  height: 75vh;
  min-height: 450px;
  max-height: 750px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: scroll;
}

/* Parallax nur auf Desktop-Browsern die es unterstützen (nicht iOS/iPadOS) */
@media (min-width: 922px) and (hover: hover) {
  .hero-banner {
    background-attachment: fixed;
  }
}

/* ==========================================================================
   Page content & Startseite
   ========================================================================== */

.site-main {
  min-height: 50vh;
}

.page-content {
  padding: 0;
}

.page-content .entry-content {
  max-width: var(--vf-container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Front page - constrained like Astra (1200px container) */
.home .page-content .entry-content {
  max-width: var(--vf-container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Allow alignfull group blocks to break out */
.page-content .entry-content > .wp-block-group.alignfull,
.page-content .entry-content > .alignfull {
  max-width: none;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 0;
}

/* Constrained content inside full-width blocks */
.page-content .alignfull > .wp-block-group__inner-container {
  max-width: var(--vf-container);
  margin: 0 auto;
  padding: 0 20px;
}

/* UAGB image block – respect alignment, don't blow out */
.wp-block-uagb-image.aligncenter {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.wp-block-uagb-image img {
  max-width: 100%;
  height: auto;
}

.page-header {
  background: var(--ast-global-color-4);
  padding: 2em 0;
  margin-bottom: 2em;
}

.page-header .vf-container {
  max-width: var(--vf-container);
  margin: 0 auto;
  padding: 0 20px;
}

.page-header h1 {
  margin: 0;
}

.entry-title {
  font-size: 26px;
  font-size: 1.4444444444444rem;
}

/* Block editor content */
.entry-content > * + * {
  margin-top: 1.5em;
}

.entry-content img {
  height: auto;
}

.entry-content .has-ast-global-color-4-background-color {
  background-color: var(--ast-global-color-4);
}

.entry-content .has-text-align-center {
  text-align: center;
}

.entry-content .has-background {
  padding: 1.25em 2.375em;
}

/* WordPress alignment */
.alignwide {
  max-width: var(--vf-container);
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100%;
  max-width: 100%;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* WordPress spacer block */
.wp-block-spacer {
  clear: both;
}

/* WordPress columns */
.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
}

.wp-block-column {
  flex: 1;
  min-width: 0;
}

/* WordPress buttons */
.wp-block-button .wp-block-button__link {
  padding: 14px 28px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 0;
}

/* Kadence blocks button compatibility */
.wp-block-kadence-advancedbtn .kb-button {
  font-family: 'Nunito', sans-serif;
}

/* ==========================================================================
   Footer (1:1 match)
   ========================================================================== */

.site-footer {
  background: var(--vf-burgundy);
  border-top: 1px solid var(--ast-global-color-6);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 100%;
  padding: 45px 35px;
  text-align: center;
}

.footer-copyright {
  color: var(--ast-global-color-5);
  font-size: 1rem;
}

.footer-copyright p {
  margin: 0;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li a {
  display: block;
  padding: 0 20px;
  color: var(--ast-global-color-5);
  font-size: 1rem;
  transition: color 0.2s ease;
}

.footer-nav li a:hover {
  color: var(--ast-global-color-5);
  text-decoration: underline;
}

@media (min-width: 922px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    align-items: center;
    gap: 12px;
  }

  .footer-nav ul {
    justify-content: center;
  }
}

/* ==========================================================================
   WordPress Admin Bar fix
   ========================================================================== */

.admin-bar .site-header {
  margin-top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    margin-top: 46px;
  }
}

/* ==========================================================================
   Astra CSS class compatibility (for existing Gutenberg content)
   ========================================================================== */

/* Astra global color classes used in page content */
.has-ast-global-color-0-color { color: var(--ast-global-color-0) !important; }
.has-ast-global-color-1-color { color: var(--ast-global-color-1) !important; }
.has-ast-global-color-2-color { color: var(--ast-global-color-2) !important; }
.has-ast-global-color-3-color { color: var(--ast-global-color-3) !important; }
.has-ast-global-color-4-color { color: var(--ast-global-color-4) !important; }
.has-ast-global-color-5-color { color: var(--ast-global-color-5) !important; }

.has-ast-global-color-0-background-color { background-color: var(--ast-global-color-0) !important; }
.has-ast-global-color-1-background-color { background-color: var(--ast-global-color-1) !important; }
.has-ast-global-color-2-background-color { background-color: var(--ast-global-color-2) !important; }
.has-ast-global-color-3-background-color { background-color: var(--ast-global-color-3) !important; }
.has-ast-global-color-4-background-color { background-color: var(--ast-global-color-4) !important; }
.has-ast-global-color-5-background-color { background-color: var(--ast-global-color-5) !important; }

.has-ast-global-color-0-border-color { border-color: var(--ast-global-color-0) !important; }
.has-ast-global-color-5-border-color { border-color: var(--ast-global-color-5) !important; }

.has-text-color { color: inherit; }
.has-background { padding: 1.25em 2.375em; }
.has-text-align-center { text-align: center; }
.has-text-align-left { text-align: left; }
.has-text-align-right { text-align: right; }
.has-border-color { border-style: solid; }

/* Custom content styles from the Startseite (verf-box cards) */
.verf-box-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding-inline: 12px;
  padding-top: 20px;
}

.verf-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 340px;
  transition: transform .2s, box-shadow .2s;
}

.verf-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
}

.verf-content {
  padding: 20px 22px 10px;
  flex: 1;
}

.verf-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .4em;
}

.verf-footer {
  padding: 0 22px 20px;
}

.verf-btn {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}

.verf-btn:hover {
  background: #a93226;
  color: #fff;
}

/* WP block groups - constrained layout */
.wp-block-group.alignfull {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.wp-block-group__inner-container,
.is-layout-constrained > * {
  max-width: var(--vf-container);
  margin-left: auto;
  margin-right: auto;
}

.is-layout-constrained > .alignwide {
  max-width: var(--vf-container);
}

.is-layout-constrained > .alignfull {
  max-width: none;
}

/* Media-text block */
.wp-block-media-text {
  display: grid;
  grid-template-columns: 50% 1fr;
  gap: 0;
  align-items: center;
}

.wp-block-media-text.is-stacked-on-mobile {
  grid-template-columns: 50% 1fr;
}

.wp-block-media-text__media img,
.wp-block-media-text__media video {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.wp-block-media-text__content {
  padding: 0 8%;
}

@media (max-width: 600px) {
  .wp-block-media-text.is-stacked-on-mobile {
    grid-template-columns: 1fr;
  }
  .wp-block-media-text__content {
    padding: 1.5em;
  }
}

/* Image block */
.wp-block-image {
  margin: 0 0 1em;
}

.wp-block-image img {
  height: auto;
}

/* Images inside columns fill the column width (like Astra) */
.wp-block-column img {
  width: 100%;
  height: auto;
}

.wp-block-column figure {
  margin: 0;
}

.wp-block-column .wp-block-image {
  margin: 0;
}

/* Don't constrain content inside columns */
.wp-block-column .is-layout-constrained > * {
  max-width: none;
}

.wp-block-column .wp-block-group__inner-container {
  max-width: none;
  padding: 0;
}

/* Remove excessive padding from groups inside columns */
.wp-block-column .wp-block-group.has-background {
  padding: 0;
}

/* On the team page, the alternating gray rows aren't needed */
.page-id-88 .wp-block-group.alignfull.has-ast-global-color-4-background-color {
  background-color: transparent !important;
}

/* Image captions – clean layout below photos */
figcaption,
.wp-block-image figcaption {
  margin-top: 0.5em;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #3a3a3a;
  text-align: center;
}

.wp-block-image.alignleft {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1em;
}

.wp-block-image.alignright {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1em;
}

.wp-block-image.aligncenter {
  text-align: center;
}

/* Gallery block */
.wp-block-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  list-style: none;
  padding: 0;
}

.wp-block-gallery .wp-block-image {
  flex: 1;
  min-width: 200px;
}

/* Video block */
.wp-block-video video {
  width: 100%;
  height: auto;
}

/* Separator */
.wp-block-separator {
  border: none;
  border-top: 2px solid var(--ast-global-color-6);
  margin: 2em auto;
  width: 100px;
}

.wp-block-separator.is-style-wide {
  width: 100%;
}

/* ==========================================================================
   Cookie Notice (lightweight, no plugin needed)
   ========================================================================== */

.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #2d2d2d;
  color: #fff;
  padding: 16px 20px;
  font-size: 0.875rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.cookie-notice-inner {
  max-width: var(--vf-container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-notice p {
  margin: 0;
  line-height: 1.5;
}

.cookie-notice a {
  color: #8cb4ff;
  text-decoration: underline;
}

.cookie-accept-btn {
  background: var(--vf-green);
  color: #fff;
  border: none;
  padding: 10px 28px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.cookie-accept-btn:hover {
  background: #128d47;
}

/* ==========================================================================
   Scroll-to-Top Button
   ========================================================================== */

.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  width: 50px;
  height: 50px;
  background: var(--vf-green);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.2s ease;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background: #128d47;
}

.scroll-top-btn:focus-visible {
  outline: 3px solid var(--vf-green);
  outline-offset: 3px;
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .site-header,
  .site-footer,
  .menu-toggle,
  .mobile-nav {
    display: none !important;
  }
}
