/*
Theme Name: Sarah Cinquini — Ultracycling
Theme URI: https://www.sarahcinquini.it
Author: Ride4Hope Austria, (C) Sarah Cinquini
Description: Editorial WordPress theme based on the Sarah Cinquini  brand styleguide. Includes navigation, partner, configurations, widget areas, blog/archive and page layouts and post sections. Multilanguage via polylang config for ENG (default) ITA and DEU.
Version: 2.4.1
Requires at least: 6.0
Requires PHP: 8.3.16
License: GNU General Public License v2 or later
Text Domain: sarahcinquini.it
*/
:root {
  --route-green: #53A650;
  --forest-green: #32432D;
  --paper: #F6F4EF;
  --stamp-rose: #53A650;
  --ink: #243022;
  --muted: #6d7568;
  --line: rgba(50, 67, 45, .18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Poppins", "Avenir Next", Avenir, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
}

a {
  color: var(--forest-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--route-green);
}

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

.site-shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 22px 0;
}

.site-branding {
  min-width: 220px;
}

.site-title {
  display: block;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: .04em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.site-description {
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-top: 7px;
}

.custom-logo {
  max-height: 74px;
  width: auto;
}

.primary-navigation ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-navigation a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .72rem;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--forest-green);
  background: transparent;
  color: var(--forest-green);
  padding: 8px 12px;
  font: inherit;
}

.hero {
  padding: clamp(50px, 8vw, 110px) 0 75px;
  position: relative;
  overflow: hidden;
}

.hero:after {
  content: "";
  position: absolute;
  right: -90px;
  top: 10px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(83, 166, 80, .38);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(83, 166, 80, .04), 0 0 0 58px rgba(83, 166, 80, .035);
  pointer-events: none;
}

.eyebrow,
.stamp,
.section-kicker {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--route-green);
}

.hero h1 {
  max-width: 800px;
  margin: 15px 0 20px;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: .99;
  letter-spacing: -.055em;
  font-weight: 600;
}

.hero h1 em {
  color: var(--route-green);
  font-style: normal;
}

.hero-copy {
  max-width: 610px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #596253;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button-link {
  display: inline-block;
  padding: 12px 19px;
  background: var(--forest-green);
  color: #fff;
  text-decoration: none;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.button-link:hover {
  background: var(--route-green);
  color: white;
}

.stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transform: rotate(-40deg);
  transform-origin: center;
  transition: transform .3s ease;
  opacity: var(--stamp-opacity, .88);
  pointer-events: auto;
}

/* Beim Hover über den Stempel selbst oder das Beitragsbild gerade drehen */
.stamp:hover,
.post-card .thumb:hover .stamp--card {
  transform: rotate(0deg);
}
.stamp-logo {
  display: block;
  width: 112px;
  height: auto;
  max-width: none;
  /*transform: rotate(-40deg);*/
  transform-origin: center;
  /* filter: grayscale(1) sepia(.45) saturate(1.8) hue-rotate(65deg); */
  /* filter:  grayscale(1) sepia(.5) saturate(1.5) hue-rotate(300deg); */
  filter: none;
  mix-blend-mode: multiply;
}
.stamp-caption {
  display: block;
  margin-top: 4px;
  color: var(--stamp-rose);
  font-family: var(--sans);
  font-size: .52rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;

  text-shadow: 0 0 .35px currentColor;
}
.stamp--header {
  width: 112px;
  flex-direction: column;
}
.stamp--header .stamp-logo { width: 92px; }
.stamp--card {
  flex-direction: column;
  width: 88px;
}
.stamp--card .stamp-caption {
  font-size: .43rem;
  margin-top: 2px;
}
.stamp--card {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  width: 88px;
  height: auto;
}
.stamp--card .stamp-logo { width: 88px; }

.section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 8px 0 0;
  letter-spacing: -.04em;
}

.section-kicker {
  color: var(--stamp-rose);
}

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

.post-card {
  min-width: 0;
}

.post-card .thumb {
  aspect-ratio: 4/3;
  background: #e8e6dc;
  overflow: hidden;
  margin-bottom: 16px;
}

.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.post-card:hover .thumb img {
  transform: scale(1.035);
}

.post-card h3 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 8px 0;
  letter-spacing: -.025em;
}

.post-card h3 a {
  text-decoration: none;
}

.post-meta {
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.post-excerpt {
  color: #5c6557;
  font-size: .93rem;
}

.feature-band {
  background: var(--forest-green);
  color: var(--paper);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.feature-band h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin: 8px 0 12px;
}

.feature-band p {
  max-width: 650px;
  color: rgba(246, 244, 239, .78);
  margin: 0;
}

.feature-band .button-link {
  background: var(--stamp-rose);
  color: #fff;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  padding: 56px 0 80px;
}

.entry-header {
  margin-bottom: 28px;
}

.entry-title {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -.05em;
  margin: 12px 0;
}

.entry-content {
  max-width: 760px;
}

.entry-content h2,
.entry-content h3 {
  line-height: 1.2;
  margin-top: 2em;
}

.entry-content blockquote {
  border-left: 3px solid var(--stamp-rose);
  padding: 8px 0 8px 22px;
  margin: 30px 0;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.entry-content figure {
  margin: 30px 0;
}

.entry-content figcaption {
  color: var(--muted);
  font-size: .78rem;
}

.sidebar {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.widget {
  margin: 0 0 34px;
}

.widget-title {
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.widget ul {
  padding-left: 18px;
}

.widget li {
  margin: 6px 0;
}

input,
textarea,
select {
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: transparent;
  font: inherit;
}

input[type=submit],
button {
  cursor: pointer;
}

.archive-header {
  padding: 64px 0 30px;
}

.archive-header h1 {
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -.05em;
  margin: 10px 0;
}

.pagination {
  display: flex;
  gap: 12px;
  margin-top: 36px;
}

.pagination a,
.pagination span {
  border: 1px solid var(--line);
  padding: 8px 13px;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  font-size: .78rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width:800px) {
  .header-inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .primary-navigation {
    display: none;
    width: 100%;
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .sidebar {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 28px 0 0;
  }

  .feature-band {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .footer-widgets {
    grid-template-columns: 1fr;
  }
}

@media (max-width:520px) {
  .site-shell {
    width: min(100% - 28px, 1160px);
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .hero:after {
    width: 210px;
    height: 210px;
    right: -100px;
    top: 0;
  }

  .stamp--header, .stamp--header .stamp-logo { width: 88px; }
  .stamp--card, .stamp--card .stamp-logo { width: 68px; }
  .stamp--card { right: 12px; bottom: 12px; }
}


/* Homepage hero slideshow */
.hero {
  min-height: clamp(520px, 68vw, 760px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(52px, 8vw, 110px) 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(90deg, rgba(246,244,239,.96) 0%, rgba(246,244,239,.88) 38%, rgba(246,244,239,.24) 68%, rgba(246,244,239,.02) 100%),
    var(--hero-image, url("assets/sarah-ultracycling-hero.jpg"));
  background-position: center, center 52%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 1;
  transition: opacity .8s ease-in-out;
}

.hero.is-changing::before {
  opacity: 0;
}

.hero:after {
  display: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 { max-width: 660px; }
.hero-copy { max-width: 530px; }

@media (max-width: 800px) {
  .hero { min-height: 620px; }
  .hero::before {
    background-image:
      linear-gradient(180deg, rgba(246,244,239,.94) 0%, rgba(246,244,239,.78) 38%, rgba(246,244,239,.1) 100%),
      var(--hero-image, url("assets/sarah-ultracycling-hero.jpg"));
    background-position: center, 62% center;
  }
}

@media (max-width: 520px) {
  .hero { min-height: 560px; }
}

/* Page banner: uses the page's featured image as a wide hero background. */
.page-hero {
  min-height: clamp(300px, 42vw, 520px);
  display: flex;
  align-items: center;
  color: #fff;
  background-color: var(--forest-green);
  background-position: center 45%;
  background-size: cover;
  background-repeat: no-repeat;
}
.page-hero-inner { padding-top: 64px; padding-bottom: 64px; }
.page-hero .eyebrow { color: rgba(255,255,255,.85); }
.page-hero .entry-title {
  color: #fff;
  max-width: 900px;
  margin: 14px 0 0;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  text-shadow: 0 2px 18px rgba(0,0,0,.18);
}
.page-hero-no-image {
  color: var(--paper);
  background: var(--forest-green);
}
.route-banner-wrap { padding-top: 0; padding-bottom: 64px; }
.route-banner { margin-top: 0; }
@media (max-width: 760px) {
  .page-hero { min-height: 300px; background-position: center; }
  .page-hero-inner { padding-top: 48px; padding-bottom: 48px; }
  .route-banner-wrap { padding-bottom: 36px; }
}

/* Main navigation dropdowns: automatically shown when a menu item has children. */
.primary-navigation .menu,
.primary-navigation .menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-navigation .menu > li {
  position: relative;
}
.primary-navigation .menu > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}
.primary-navigation .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: -4px 0 0 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.primary-navigation .menu-item-has-children.submenu-open > a::after {
  transform: rotate(225deg);
  margin-top: 4px;
}
.primary-navigation .sub-menu {
  display: none;
  position: absolute;
  z-index: 1000;
  top: 100%;
  left: -16px;
  min-width: 220px;
  padding: 10px !important;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(36, 48, 34, .13);
  flex-direction: column;
  align-items: stretch;
  gap: 0 !important;
}
.primary-navigation .menu-item-has-children:hover > .sub-menu,
.primary-navigation .menu-item-has-children:focus-within > .sub-menu,
.primary-navigation .menu-item-has-children.submenu-open > .sub-menu {
  display: flex;
}
.primary-navigation .sub-menu li {
  position: relative;
  width: 100%;
}
.primary-navigation .sub-menu a {
  display: block;
  padding: 10px 12px;
  line-height: 1.5;
  white-space: normal;
  letter-spacing: .06em;
}
.primary-navigation .sub-menu a:hover,
.primary-navigation .sub-menu a:focus-visible {
  background: rgba(83, 166, 80, .10);
  color: var(--forest-green);
}
.primary-navigation .sub-menu .sub-menu {
  top: -10px;
  left: 100%;
}
.submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: 4px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--forest-green);
  vertical-align: middle;
}
.submenu-toggle::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.submenu-toggle[aria-expanded="true"]::before {
  margin-top: 4px;
  transform: rotate(225deg);
}
.submenu-toggle:hover,
.submenu-toggle:focus-visible {
  background: var(--forest-green);
  color: #fff;
}
.primary-navigation a:focus-visible,
.menu-toggle:focus-visible,
.submenu-toggle:focus-visible {
  outline: 2px solid var(--route-green);
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .primary-navigation .menu,
  .primary-navigation .menu ul {
    width: 100%;
  }
  .primary-navigation .menu > li {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
  }
  .primary-navigation .menu > li > a {
    flex: 1 1 auto;
    min-width: 0;
  }
  .primary-navigation .sub-menu,
  .primary-navigation .sub-menu .sub-menu {
    position: static;
    flex: 0 0 100%;
    min-width: 0;
    margin: 0 0 6px 12px !important;
    padding: 4px 0 4px 12px !important;
    border: 0;
    border-left: 2px solid var(--route-green);
    box-shadow: none;
    background: rgba(83, 166, 80, .05);
  }
  .primary-navigation .menu-item-has-children:hover > .sub-menu {
    display: none;
  }
  .primary-navigation .menu-item-has-children.submenu-open > .sub-menu,
  .primary-navigation .menu-item-has-children:focus-within.submenu-open > .sub-menu {
    display: flex;
  }
  .primary-navigation .sub-menu a {
    padding: 8px 10px;
  }
  .primary-navigation .sub-menu .menu-item-has-children > a {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primary-navigation .menu-item-has-children > a::after,
  .submenu-toggle::before { transition: none; }
}

/* Sarah Cinquini – green highlight section */
.sarah-stats {
  background: #153D29;
  color: #fff;
  padding: 30px 24px;
  margin: 0;
}

.sarah-stats-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.sarah-stats-label {
  color: #A8D957;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 22px;
}

.sarah-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.sarah-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sarah-stat strong {
  color: #A8D957;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.1;
  font-weight: 700;
}

.sarah-stat span {
  font-size: 15px;
  font-weight: 600;
}

.sarah-stat small {
  color: #D8E4DA;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .sarah-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }

  .sarah-stats {
    padding: 26px 18px;
  }
}


/* Sarah Cinquini – palmares-inspired standard table styling */
.page-content-layout {
  display: block;
  padding: 56px 0 80px;
}
.page-article {
  width: 100%;
  min-width: 0;
}
.page-article .entry-content {
  max-width: 100%;
}

.entry-content table,
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  border-top: 1px solid #D8E3D3;
  color: #183D29;
  font-size: 14px;
  margin: 28px 0;
}

.entry-content table th,
.entry-content table td,
.wp-block-table table th,
.wp-block-table table td {
  padding: 13px 16px;
  border: 0;
  border-bottom: 1px solid #D8E3D3;
  text-align: left;
  vertical-align: middle;
}

.entry-content table thead th,
.wp-block-table table thead th {
  color: #397344;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: transparent;
}

.entry-content table tbody tr,
.wp-block-table table tbody tr {
  background: transparent;
}

.entry-content table tbody tr:hover,
.wp-block-table table tbody tr:hover {
  background: rgba(216, 227, 211, .22);
}

.entry-content table caption,
.wp-block-table figcaption {
  color: #667568;
  font-size: 12px;
  text-align: left;
  margin-top: 12px;
}

/* Keep wide tables usable on small screens without breaking the page layout. */
.entry-content .wp-block-table,
.entry-content .table-responsive {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.entry-content .wp-block-table table {
  min-width: 520px;
}

@media (max-width: 700px) {
  .page-content-layout {
    padding: 36px 0 56px;
  }

  .entry-content table th,
  .entry-content table td,
  .wp-block-table table th,
  .wp-block-table table td {
    padding: 12px 10px;
    font-size: 13px;
  }

  .entry-content table thead th,
  .wp-block-table table thead th {
    font-size: 10px;
    letter-spacing: 1px;
  }
}


/* Homepage partner and sponsor logo section */
.sarah-sponsors-section {
  padding: 56px 24px 64px;
  border-top: 1px solid var(--line, #D8E3D3);
  background: #F7F7F1;
}
.sarah-sponsors-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.sarah-sponsors-inner h2 {
  color: #183D29;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  margin: 8px 0 12px;
}
.sarah-sponsors-intro { color: #667568; max-width: 680px; margin: 0 auto 28px; }
.sarah-sponsors-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
  margin-top: 28px;
}
.sarah-sponsor-item {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  background: #fff;
  border: 1px solid #E4E9E0;
  border-radius: 3px;
  transition: border-color .2s ease, transform .2s ease;
}
.sarah-sponsor-item:hover { border-color: #A8D957; transform: translateY(-2px); }
.sarah-sponsor-link { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 76px; text-decoration: none; }
.sarah-sponsor-logo { display: block; width: auto; max-width: 100%; max-height: 76px; object-fit: contain; }
.sarah-sponsor-name { color: #183D29; font-size: 13px; line-height: 1.4; font-weight: 600; text-align: center; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .sarah-sponsors-section { padding: 40px 18px 48px; }
  .sarah-sponsors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .sarah-sponsor-item { min-height: 112px; padding: 12px; gap: 8px; }
  .sarah-sponsor-logo { max-height: 62px; }
}


/* Editable homepage section directly below the header (block widgets supported). */
.homepage-after-header {
  width: 100%;
  margin: 0;
  padding: 0;
}
.homepage-after-header > .homepage-section-widget {
  width: 100%;
  margin: 0;
}
.homepage-after-header .wp-block-group.alignfull,
.homepage-after-header .alignfull {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.homepage-after-header .wp-block-cover,
.homepage-after-header .wp-block-columns,
.homepage-after-header .wp-block-group {
  box-sizing: border-box;
}
.homepage-after-header .wp-block-image img,
.homepage-after-header .wp-block-cover img {
  max-width: 100%;
}


/* Sarah Cinquini – dotted route divider (isolated from theme-wide SVG rules) */
.sc-route-divider {
  --sc-route-color: #4caf50;
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 1.5rem 0;
  padding: 0;
  color: var(--sc-route-color);
  box-sizing: border-box;
  clear: both;
}
.sc-route-divider,
.sc-route-divider * { box-sizing: border-box; }
.sc-route-divider svg.sc-route-divider__line {
  display: block !important;
  width: 100% !important;
  height: 28px !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  color: var(--sc-route-color) !important;
  background: transparent !important;
  border: 0 !important;
}
.sc-route-divider svg.sc-route-divider__line .sc-route-divider__path {
  display: inline !important;
  fill: none !important;
  stroke: var(--sc-route-color) !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-dasharray: 0.1 8 !important;
  vector-effect: non-scaling-stroke;
}
.sc-route-divider svg.sc-route-divider__line circle {
  display: inline !important;
  fill: var(--sc-route-color) !important;
  stroke: none !important;
  r: 5.5px;
}
.sc-route-divider .sc-route-divider__labels {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 1rem;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  color: #68716a !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em !important;
  line-height: 1.4 !important;
  text-transform: uppercase !important;
  background: transparent !important;
  border: 0 !important;
}
.sc-route-divider .sc-route-divider__labels span { margin: 0; padding: 0; }
.sc-route-divider .sc-route-divider__labels span:last-child { text-align: right; }
@media (max-width: 600px) {
  .sc-route-divider { margin: 1.1rem 0; }
  .sc-route-divider .sc-route-divider__labels { font-size: 0.62rem !important; letter-spacing: 0.16em !important; }
}


/* Global route-style separators: replace structural horizontal rules with the dotted green route motif. */
:root {
  --sc-divider-green: #53A650;
  --sc-divider-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 24' preserveAspectRatio='none'%3E%3Cpath d='M7 12 C110 0 150 3 220 12 S330 21 390 12 S500 3 570 12 S700 21 770 12 S900 3 993 12' fill='none' stroke='%2353A650' stroke-width='2' stroke-dasharray='2 8' stroke-linecap='round'/%3E%3Ccircle cx='7' cy='12' r='4.5' fill='%2353A650'/%3E%3Ccircle cx='390' cy='12' r='4.5' fill='%2353A650'/%3E%3Ccircle cx='993' cy='12' r='4.5' fill='%2353A650'/%3E%3C/svg%3E");
}

.site-header,
.section,
.site-footer,
.footer-widgets,
.sarah-sponsors-section {
  border-top: 0 !important;
  border-bottom: 0 !important;
}

.site-header,
.section,
.site-footer,
.footer-widgets,
.sarah-sponsors-section {
  position: relative;
}

.site-header::after,
.section::before,
.site-footer::before,
.footer-widgets::after,
.sarah-sponsors-section::before,
hr {
  content: "";
  display: block;
  height: 24px;
  width: 100%;
  background-image: var(--sc-divider-art);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 24px;
  border: 0 !important;
}

.site-header::after {
  position: absolute;
  left: 0;
  bottom: -12px;
  pointer-events: none;
}

.section::before,
.site-footer::before,
.sarah-sponsors-section::before {
  position: absolute;
  left: 0;
  top: -12px;
  pointer-events: none;
}

.footer-widgets::after {
  margin-top: 18px;
}

hr {
  margin: 2rem 0;
}

/* Table row rules remain subtle and dotted so the data stays easy to scan. */
.entry-content table,
.wp-block-table table {
  border-top: 1px dotted #53A650 !important;
}
.entry-content table th,
.entry-content table td,
.wp-block-table table th,
.wp-block-table table td {
  border-bottom: 1px dotted #D8E3D3 !important;
}

@media (max-width: 700px) {
  .site-header::after,
  .section::before,
  .site-footer::before,
  .footer-widgets::after,
  .sarah-sponsors-section::before,
  hr {
    height: 18px;
    background-size: 100% 18px;
  }
}


/* Sarah Cinquini – Horizon Highlight Block */
.sarah-horizon {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  margin: 24px 0;
  padding: 76px 78px 80px;

  background: #FFFFFF;
  border: 2px solid #DCE7D2;
  border-radius: 30px;
  color: #183D29;
}

/* Inhalt über der Jahreszahl halten */
.sarah-horizon-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

/* Kleine grüne Überschrift */
.sarah-horizon-label {
  margin: 0 0 28px;
  color: #4C9A35;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1.3;
  text-transform: uppercase;
}

/* Hauptüberschrift */
.sarah-horizon h1,
.sarah-horizon h2,
.sarah-horizon h3 {
  margin: 0 0 36px;
  color: #172D20;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 3.5vw, 58px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -1px;
}

/* Beschreibung */
.sarah-horizon-text {
  max-width: 820px;
  margin: 0;
  color: #385541;
  font-size: clamp(18px, 1.6vw, 26px);
  font-weight: 400;
  line-height: 1.6;
}

/* Dekorative Jahreszahl */
.sarah-horizon-year {
  position: absolute;
  top: -4px;
  right: 24px;
  z-index: 0;

  color: #F3F6EE;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(90px, 10vw, 160px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -8px;

  pointer-events: none;
  user-select: none;
}

/* Tablet */
@media (max-width: 900px) {
  .sarah-horizon {
    padding: 56px 42px 60px;
    border-radius: 24px;
  }

  .sarah-horizon-label {
    font-size: 14px;
    letter-spacing: 2.5px;
  }

  .sarah-horizon h1,
  .sarah-horizon h2,
  .sarah-horizon h3 {
    max-width: 700px;
  }

  .sarah-horizon-text {
    max-width: 680px;
  }

  .sarah-horizon-year {
    right: 18px;
    font-size: 110px;
    opacity: 0.8;
  }
}

/* Smartphone */
@media (max-width: 600px) {
  .sarah-horizon {
    margin: 18px 0;
    padding: 42px 24px 44px;
    border-radius: 20px;
  }

  .sarah-horizon-label {
    margin-bottom: 22px;
    font-size: 11px;
    letter-spacing: 2px;
  }

  .sarah-horizon h1,
  .sarah-horizon h2,
  .sarah-horizon h3 {
    margin-bottom: 22px;
    font-size: clamp(30px, 8vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.5px;
  }

  .sarah-horizon-text {
    font-size: 17px;
    line-height: 1.55;
  }

  .sarah-horizon-year {
    top: 4px;
    right: 12px;
    font-size: 76px;
    letter-spacing: -4px;
    opacity: 0.65;
  }
}

/* Sarah Cinquini – zusätzlichen Pfeil neben Menüpunkten entfernen */
.primary-navigation .menu-item-has-children > a::after {
    display: none !important;
    content: none !important;
}

/* Bundled Sarah Cinquini brand logo */
.site-branding {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.site-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}
.site-logo-image {
  display: block;
  width: auto;
  height: 104px;
  max-width: 132px;
  object-fit: contain;
}
.site-branding .custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 104px;
  max-width: 132px;
}
@media (max-width: 800px) {
  .site-logo-image,
  .site-branding .custom-logo {
    max-height: 88px;
    max-width: 112px;
  }
}
@media (max-width: 520px) {
  .site-logo-image,
  .site-branding .custom-logo {
    max-height: 76px;
    max-width: 98px;
  }
}


/* Travel journal: articles presented as individual book pages */
.book-page-grid {
  align-items: stretch;
  gap: 28px;
}

.book-page-grid .post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 22px;
  overflow: hidden;
  background: #fffefa;
  border: 1px solid rgba(75, 82, 65, .16);
  box-shadow: 0 3px 8px rgba(35, 42, 32, .07), 0 14px 28px rgba(35, 42, 32, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.book-page-grid .post-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--forest-green), #8eaa83 48%, var(--route-green));
}

.book-page-grid .post-card::after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 7px;
  width: 1px;
  background: rgba(50, 67, 45, .20);
  pointer-events: none;
}

.book-page-grid .post-card:hover {
  transform: translateY(-5px) rotate(-.25deg);
  box-shadow: 0 7px 14px rgba(35, 42, 32, .09), 0 20px 34px rgba(35, 42, 32, .12);
}

.book-page-grid .post-card .thumb {
  display: block;
  flex: 0 0 auto;
  aspect-ratio: 5 / 4;
  margin: 0 0 18px;
  background: #eeeae0;
}

.book-page-grid .post-card .post-meta {
  margin: 0 2px 7px;
  font-size: .68rem;
  letter-spacing: .08em;
}

.book-page-grid .post-card h3 {
  margin: 5px 2px 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  line-height: 1.22;
}

.book-page-grid .post-card .post-excerpt {
  margin: 0 2px;
  color: #626456;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .95rem;
  line-height: 1.55;
}

.book-page-grid .post-card .post-excerpt p {
  margin-top: 0;
}

@media (max-width: 520px) {
  .book-page-grid {
    gap: 20px;
  }
  .book-page-grid .post-card {
    padding: 16px 16px 20px;
  }
}


/* Default image for posts without a featured image */
.post-card .thumb:has(.post-card-fallback-logo) {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: #fffefa;
}

.post-card .post-card-fallback-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(48%, 150px);
  max-height: 72%;
  object-fit: contain;
  box-shadow: none;
}


/* Single articles styled as pages in a travel book */
.single-book {
  position: relative;
  min-width: 0;
  padding: clamp(26px, 4vw, 54px);
  background: #fffefa;
  border: 1px solid rgba(75, 82, 65, .16);
  box-shadow: 0 4px 12px rgba(35, 42, 32, .06), 0 18px 42px rgba(35, 42, 32, .09);
}

.single-book::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, var(--route-green), #8eaa83 50%, var(--forest-green));
}

.single-book .entry-header {
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(50, 67, 45, .14);
}

.single-book-heading {
  display: flex;
  align-items: flex-start;
  gap: 26px;
}

.single-book-photo {
  flex: 0 0 180px;
  width: 180px;
  margin: 3px 0 0;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(50, 67, 45, .2);
  box-shadow: 0 3px 9px rgba(35, 42, 32, .16);
  transform: rotate(-1.5deg);
}

.single-book-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.single-book-title-wrap {
  flex: 1;
  min-width: 0;
}

.single-book .entry-title {
  margin-top: 10px;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.035em;
}

.single-book .entry-content {
  max-width: none;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.85;
}

.single-book .entry-content p {
  margin: 0 0 1.35em;
}

.single-book .entry-content img {
  border: 7px solid #fff;
  outline: 1px solid rgba(50, 67, 45, .16);
  box-shadow: 0 4px 12px rgba(35, 42, 32, .12);
}

.single-book .entry-content figure {
  margin: 32px 0;
}

@media (max-width: 640px) {
  .single-book {
    padding: 24px 20px 30px 25px;
  }
  .single-book-heading {
    gap: 16px;
  }
  .single-book-photo {
    flex-basis: 112px;
    width: 112px;
    padding: 5px;
  }
  .single-book .entry-title {
    font-size: clamp(1.65rem, 7vw, 2.4rem);
  }
}

@media (max-width: 420px) {
  .single-book-heading {
    display: block;
  }
  .single-book-photo {
    float: left;
    margin: 2px 16px 12px 0;
  }
}


/* Strong, cache-busted single-post book layout */
body.single-post main#content.content-layout > article.single-book {
  display: block;
  align-self: start;
  width: 100%;
  min-width: 0;
  padding: clamp(28px, 4.5vw, 58px);
  background: #fffefa;
  border: 1px solid rgba(75, 82, 65, .2);
  box-shadow: 0 5px 14px rgba(35, 42, 32, .07), 0 20px 46px rgba(35, 42, 32, .1);
}

body.single-post main#content.content-layout > article.single-book > .entry-header {
  margin: 0 0 30px;
  padding: 0 0 26px;
  border-bottom: 1px solid rgba(50, 67, 45, .18);
}

body.single-post .single-book-heading {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 26px;
}

body.single-post .single-book-photo {
  display: block;
  flex: 0 0 176px;
  width: 176px;
  max-width: 35%;
  margin: 5px 0 0;
  padding: 8px;
  background: #fff;
  border: 1px solid #d8d2c7;
  box-shadow: 0 3px 10px rgba(30, 35, 25, .18);
  transform: rotate(-1.4deg);
}

body.single-post .single-book-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

body.single-post .single-book-title-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

body.single-post .single-book-title-wrap .entry-title {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.035em;
}

body.single-post main#content.content-layout > article.single-book > .entry-content {
  max-width: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.85;
}

body.single-post .single-book .entry-content img {
  border: 7px solid #fff;
  outline: 1px solid rgba(50, 67, 45, .18);
  box-shadow: 0 4px 12px rgba(35, 42, 32, .13);
}

@media (max-width: 640px) {
  body.single-post main#content.content-layout > article.single-book {
    padding: 25px 20px 30px 26px;
  }
  body.single-post .single-book-heading {
    gap: 16px;
  }
  body.single-post .single-book-photo {
    flex-basis: 112px;
    width: 112px;
    max-width: 38%;
    padding: 5px;
  }
  body.single-post .single-book-title-wrap .entry-title {
    font-size: clamp(1.65rem, 7vw, 2.3rem);
  }
}

@media (max-width: 420px) {
  body.single-post .single-book-heading {
    display: block;
  }
  body.single-post .single-book-photo {
    float: left;
    margin: 2px 16px 12px 0;
  }
}


/* Keep the comments area outside the single-post book page */
body.single-post main#content.content-layout > #comments,
body.single-post main#content.content-layout > .comments-area {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  margin: 28px 0 0;
  padding: clamp(22px, 3vw, 36px);
  background: #fff;
  border: 1px solid rgba(75, 82, 65, .16);
  box-shadow: 0 3px 12px rgba(35, 42, 32, .06);
}


/* Book page-turn navigation: only render links for existing adjacent posts */
.book-page-turn {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  margin: 42px 0 4px;
  padding-top: 22px;
  border-top: 1px solid rgba(50, 67, 45, .18);
}

.book-page-turn-item {
  flex: 1 1 50%;
  min-width: 0;
}

.book-page-turn-next {
  text-align: right;
}

.book-page-turn a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 10px 12px;
  color: var(--forest-green);
  text-decoration: none;
  border: 1px solid rgba(50, 67, 45, .2);
  border-radius: 4px;
  background: rgba(83, 166, 80, .055);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.book-page-turn a:hover,
.book-page-turn a:focus-visible {
  background: rgba(83, 166, 80, .13);
  border-color: var(--route-green);
  transform: translateY(-2px);
}

.book-page-turn-arrow {
  flex: 0 0 auto;
  color: var(--route-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.3rem;
  line-height: .8;
}

.book-page-turn-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
}

.book-page-turn-label {
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.book-page-turn-title {
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: .95rem;
  line-height: 1.25;
}

@media (max-width: 520px) {
  .book-page-turn {
    gap: 8px;
  }
  .book-page-turn a {
    gap: 6px;
    padding: 9px 7px;
  }
  .book-page-turn-title {
    font-size: .82rem;
  }
}


/* Mobile-first safeguards for single travel-book pages */
@media (max-width: 640px) {
  body.single-post {
    overflow-x: hidden;
  }

  body.single-post main#content.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: calc(100% - 24px);
    max-width: 100%;
    gap: 22px;
    padding: 24px 0 42px;
    margin-inline: auto;
  }

  body.single-post main#content.content-layout > article.single-book {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 20px 15px 24px 20px;
    overflow-wrap: anywhere;
  }

  body.single-post .single-book-heading {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  body.single-post .single-book-photo {
    float: none;
    flex: 0 1 auto;
    width: min(150px, 48%);
    max-width: 48%;
    margin: 2px 0 4px;
    padding: 5px;
  }

  body.single-post .single-book-title-wrap {
    width: 100%;
    min-width: 0;
  }

  body.single-post .single-book-title-wrap .entry-title {
    font-size: clamp(1.55rem, 7.2vw, 2.15rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  body.single-post main#content.content-layout > article.single-book > .entry-content {
    width: 100%;
    max-width: 100%;
    font-size: clamp(.98rem, 4.2vw, 1.05rem);
    line-height: 1.7;
  }

  body.single-post .single-book .entry-content > *,
  body.single-post .single-book .entry-content .wp-block-group,
  body.single-post .single-book .entry-content .wp-block-columns,
  body.single-post .single-book .entry-content .wp-block-cover,
  body.single-post .single-book .entry-content .wp-block-media-text {
    max-width: 100%;
    min-width: 0;
  }

  body.single-post .single-book .entry-content img,
  body.single-post .single-book .entry-content video,
  body.single-post .single-book .entry-content iframe,
  body.single-post .single-book .entry-content embed {
    max-width: 100%;
    height: auto;
  }

  body.single-post .single-book .entry-content iframe {
    width: 100%;
  }

  body.single-post .single-book .entry-content .alignwide,
  body.single-post .single-book .entry-content .alignfull {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  body.single-post .single-book .entry-content .wp-block-columns {
    flex-wrap: wrap !important;
  }

  body.single-post .single-book .entry-content .wp-block-column {
    flex-basis: 100% !important;
    min-width: 0;
  }

  body.single-post main#content.content-layout > #comments,
  body.single-post main#content.content-layout > .comments-area {
    width: 100%;
    min-width: 0;
    padding: 18px 14px;
    overflow-wrap: anywhere;
  }

  body.single-post .book-page-turn {
    gap: 8px;
  }

  body.single-post .book-page-turn-item {
    flex: 1 1 0;
    min-width: 0;
  }

  body.single-post .book-page-turn a {
    width: 100%;
    min-width: 0;
    gap: 5px;
    padding: 8px 6px;
  }

  body.single-post .book-page-turn-title {
    font-size: .78rem;
  }
}

@media (max-width: 380px) {
  body.single-post main#content.content-layout {
    width: calc(100% - 18px);
  }

  body.single-post main#content.content-layout > article.single-book {
    padding: 17px 12px 20px 17px;
  }

  body.single-post .single-book-title-wrap .entry-title {
    font-size: 1.5rem;
  }
}


/* Passport-style travel stamp on the homepage travel-book tiles */
.book-page-grid .post-card .thumb {
  position: relative;
  display: block;
  isolation: isolate;
}

.book-page-grid .post-card .travel-book-stamp {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 8px;
  border: 2px solid rgba(50, 67, 45, .78);
  border-radius: 50%;
  color: var(--forest-green);
  background: rgba(246, 244, 239, .82);
  box-shadow: 0 1px 5px rgba(0, 0, 0, .12), inset 0 0 0 2px rgba(50, 67, 45, .16);
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
  text-align: center;
  transform: rotate(11deg);
  pointer-events: none;
}

.book-page-grid .post-card .travel-book-stamp::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(50, 67, 45, .48);
  border-radius: 50%;
}

@media (max-width: 520px) {
  .book-page-grid .post-card .travel-book-stamp {
    top: 9px;
    right: 9px;
    width: 64px;
    height: 64px;
    font-size: .5rem;
  }
}
