/*
Theme Name: ESP Theme
Theme URI: https://www.exploresecretplaces.de/
Author: Explore Secret Places
Description: Mediterran-warmes Custom Theme fuer Explore Secret Places: Intent-Weiche, Trust-Dossiers und Sammlungen.
Version: 1.8.0
Requires PHP: 7.4
Text Domain: esp-theme
*/

@font-face {
  font-family: "Fraunces ESP";
  src: url("assets/fonts/fraunces-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans ESP";
  src: url("assets/fonts/instrument-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans ESP";
  src: url("assets/fonts/instrument-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --esp-petrol: #1F4E5F;
  --esp-forest: #244C3B;
  --esp-forest-dark: #15352B;
  --esp-sand: #F3E7D3;
  --esp-cream: #FFF7EA;
  --esp-coral: #E06F4F;
  --esp-coral-dark: #B84B34;
  --esp-gold: #B89245;
  --esp-brass: #D1A35D;
  --esp-ink: #13211D;
  --esp-muted: #607068;
  --esp-line: rgba(31, 78, 95, .18);
  --esp-white: #FFFFFF;
  --esp-glass: rgba(255, 247, 234, .86);
  --esp-shadow-soft: 0 18px 50px rgba(21, 53, 43, .14);
  --esp-shadow-strong: 0 32px 80px rgba(19, 33, 29, .24);
  --esp-radius-sm: 10px;
  --esp-radius: 14px;
  --esp-radius-lg: 18px;
  --esp-serif: "Fraunces ESP", Georgia, "Times New Roman", serif;
  --esp-sans: "Instrument Sans ESP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --esp-speed: 190ms;
}

* { box-sizing: border-box; }
html { background: var(--esp-cream); }
body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(243, 231, 211, .58), rgba(255, 247, 234, 0) 360px),
    var(--esp-cream);
  color: var(--esp-ink);
  font-family: var(--esp-sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body:not(.home) .site-main { padding-top: 96px; }
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--esp-petrol); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--esp-coral-dark); }
button, input, select, textarea { font: inherit; }

.shell {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -90px;
  left: 16px;
  z-index: 100000;
  padding: 11px 14px;
  border-radius: var(--esp-radius-sm);
  background: var(--esp-ink);
  color: var(--esp-cream);
}
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  color: var(--esp-ink);
  background: rgba(255, 247, 234, .94);
  border-bottom: 1px solid rgba(31, 78, 95, .12);
  box-shadow: 0 10px 30px rgba(19, 33, 29, .06);
  backdrop-filter: blur(18px);
  transition: background var(--esp-speed) ease, color var(--esp-speed) ease, box-shadow var(--esp-speed) ease, border-color var(--esp-speed) ease;
}
.home .site-header:not(.is-scrolled) {
  color: var(--esp-ink);
  background: rgba(255, 247, 234, .94);
  border-bottom-color: rgba(31, 78, 95, .12);
  box-shadow: 0 10px 30px rgba(19, 33, 29, .08);
}
.admin-bar .site-header { top: 32px; }
.header-shell {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(320px, calc(100vw - 118px));
  color: inherit;
  text-decoration: none;
}
.custom-logo {
  display: block;
  width: auto;
  max-width: min(310px, calc(100vw - 124px));
  height: auto;
  max-height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .16));
}
.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 247, 234, .34);
  border-radius: 50%;
  background: var(--esp-petrol);
  color: var(--esp-cream);
  font-family: var(--esp-serif);
  font-size: .92rem;
  font-weight: 900;
}
.site-header.is-scrolled .brand-mark,
body:not(.home) .brand-mark {
  background: var(--esp-petrol);
  border-color: rgba(31, 78, 95, .18);
}
.brand-text {
  max-width: 180px;
  color: inherit;
  font-family: var(--esp-serif);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.02;
}
.site-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}
.site-nav .menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav li { position: relative; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 999px;
  color: inherit;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--esp-speed) ease, transform var(--esp-speed) ease;
}
.site-nav a:hover {
  background: rgba(255, 247, 234, .16);
  color: inherit;
  transform: translateY(-1px);
}
.site-header.is-scrolled .site-nav a:hover,
body:not(.home) .site-nav a:hover {
  background: rgba(31, 78, 95, .09);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(31, 78, 95, .2);
  border-radius: 999px;
  background: rgba(255, 247, 234, .92);
  color: var(--esp-ink);
}
.nav-toggle span:not(.screen-reader-text) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
}

.site-main { min-height: 62vh; }
.theme-hero {
  position: relative;
  min-height: min(820px, 86vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--esp-petrol);
}
.theme-hero__media,
.theme-hero__shade {
  position: absolute;
  inset: 0;
}
.theme-hero__image,
.theme-hero__media .theme-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.theme-hero__media .theme-media--fallback { height: 100%; border-radius: 0; }
.theme-hero__shade {
  background:
    linear-gradient(90deg, rgba(19, 33, 29, .86), rgba(31, 78, 95, .52) 46%, rgba(19, 33, 29, .18)),
    linear-gradient(180deg, rgba(19, 33, 29, .18), rgba(19, 33, 29, .76));
}
.theme-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, .7fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: end;
  padding: 146px 0 clamp(34px, 8vh, 74px);
  color: var(--esp-cream);
}
.theme-hero__copy {
  max-width: 730px;
  padding-bottom: 10px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--esp-coral);
  font-family: var(--esp-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.theme-hero .eyebrow,
.site-footer .eyebrow { color: var(--esp-brass); }
h1, h2, h3, h4 {
  margin: 0;
  color: inherit;
  font-family: var(--esp-serif);
  font-weight: 900;
  letter-spacing: 0;
  line-height: .98;
}
.theme-hero h1 {
  max-width: 760px;
  font-size: clamp(2.2rem, 5.7vw, 5.35rem);
}
.theme-hero p {
  max-width: 660px;
  margin: 18px 0 0;
  color: rgba(255, 247, 234, .88);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
}
.hero-seals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.hero-seals span,
.esp-badge,
.theme-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(209, 163, 93, .7);
  border-radius: 999px;
  background: rgba(255, 247, 234, .12);
  color: var(--esp-cream);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}
.theme-hero__wizard {
  padding: 14px;
  border: 1px solid rgba(255, 247, 234, .22);
  border-radius: var(--esp-radius-lg);
  background: rgba(255, 247, 234, .9);
  box-shadow: var(--esp-shadow-strong);
  color: var(--esp-ink);
}

.section-band {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0;
  background: var(--esp-cream);
}
.section-band--collections {
  margin-top: -1px;
}
.section-band--collections::before,
.mood-band::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 44' preserveAspectRatio='none'%3E%3Cpath fill='%23FFF7EA' d='M0 22c120 24 240 24 360 0s240-24 360 0 240 24 360 0 240-24 360 0v22H0z'/%3E%3C/svg%3E") center top / 100% 100% no-repeat;
}
.section-head {
  max-width: 780px;
  margin-bottom: 28px;
}
.section-head h1,
.section-head h2,
.detail-hero h1 {
  font-size: clamp(2rem, 4.5vw, 4rem);
}
.section-head p,
.detail-lede {
  margin: 14px 0 0;
  color: var(--esp-muted);
  font-size: 1.06rem;
}
.section-head--archive,
.section-head--page {
  padding: 34px 0 18px;
}

.theme-grid,
.category-tiles,
.esp-collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(16px, 2vw, 26px);
}
.theme-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(31, 78, 95, .12);
  border-radius: var(--esp-radius);
  background: var(--esp-white);
  box-shadow: var(--esp-shadow-soft);
  transition: transform var(--esp-speed) ease, box-shadow var(--esp-speed) ease, border-color var(--esp-speed) ease;
}
.theme-card:hover {
  transform: translateY(-5px);
  border-color: rgba(224, 111, 79, .28);
  box-shadow: 0 28px 70px rgba(21, 53, 43, .18);
}
.theme-card__media {
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
.theme-card .theme-media,
.theme-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 260ms ease;
}
.theme-card:hover .theme-media,
.theme-card:hover img { transform: scale(1.045); }
.theme-media--fallback {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 220px;
  border-radius: inherit;
}
.theme-media--fallback svg {
  width: 100%;
  height: 100%;
  display: block;
}
.theme-card__body {
  position: relative;
  padding: 20px 20px 22px;
}
.theme-card__body::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 20px;
  width: 58px;
  height: 4px;
  border-radius: 999px;
  background: var(--esp-coral);
}
.theme-card h3 {
  margin-bottom: 10px;
  font-size: clamp(1.28rem, 2vw, 1.7rem);
  line-height: 1.04;
}
.theme-card h3 a {
  color: var(--esp-ink);
  text-decoration: none;
}
.theme-card p {
  margin: 0;
  color: var(--esp-muted);
}

.mood-band {
  position: relative;
  padding: clamp(52px, 7vw, 88px) 0;
  background:
    linear-gradient(145deg, rgba(31, 78, 95, .97), rgba(36, 76, 59, .96)),
    var(--esp-petrol);
  color: var(--esp-cream);
}
.mood-band .section-head p { color: rgba(255, 247, 234, .75); }
.category-tiles a {
  position: relative;
  min-height: 156px;
  display: flex;
  align-items: end;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(255, 247, 234, .16);
  border-radius: var(--esp-radius);
  background:
    linear-gradient(145deg, rgba(255, 247, 234, .1), rgba(255, 247, 234, 0)),
    var(--esp-forest);
  color: var(--esp-cream);
  text-decoration: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
  transition: transform var(--esp-speed) ease, background var(--esp-speed) ease;
}
.category-tiles a::before {
  content: "";
  position: absolute;
  inset: auto -24px -38px auto;
  width: 138px;
  height: 138px;
  border: 14px solid rgba(255, 247, 234, .16);
  border-radius: 50%;
}
.category-tiles a:nth-child(2) { background-color: var(--esp-coral-dark); }
.category-tiles a:nth-child(3) { background-color: var(--esp-gold); color: var(--esp-ink); }
.category-tiles a:nth-child(4) { background-color: var(--esp-petrol); }
.category-tiles a:nth-child(5) { background-color: #6C7652; }
.category-tiles a:hover { transform: translateY(-4px); color: inherit; }
.category-tiles span {
  position: relative;
  z-index: 1;
  font-family: var(--esp-serif);
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  font-weight: 900;
  line-height: 1;
}

.trust-line {
  background: var(--esp-sand);
  border-block: 1px solid rgba(31, 78, 95, .12);
  color: var(--esp-ink);
}
.trust-line__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 18px 0;
}
.trust-line span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: .95rem;
  font-weight: 700;
}
.trust-line strong {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--esp-petrol);
  color: var(--esp-cream);
  font-size: .74rem;
}

.page-shell {
  padding: clamp(44px, 7vw, 84px) 0 clamp(62px, 8vw, 110px);
}
.page-shell--editorial {
  background:
    linear-gradient(180deg, rgba(243, 231, 211, .78), rgba(255, 247, 234, 0) 340px),
    var(--esp-cream);
}
.content-page {
  max-width: 1000px;
}
.content-frame,
.detail-content {
  max-width: 920px;
}
.entry-content {
  font-size: 1.04rem;
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2,
.entry-content h3 {
  margin-top: 1.5em;
  margin-bottom: .45em;
}
.entry-content p,
.entry-content li { color: #26362F; }
.page-featured,
.detail-hero__media {
  overflow: hidden;
  border-radius: var(--esp-radius-lg);
  box-shadow: var(--esp-shadow-soft);
}
.detail-wrap {
  padding: 120px 0 80px;
  background: var(--esp-cream);
}
.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(340px, 1.05fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
  margin-bottom: 34px;
}
.detail-image,
.detail-hero__media .theme-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.detail-content {
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid rgba(31, 78, 95, .12);
  border-radius: var(--esp-radius-lg);
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 18px 50px rgba(21, 53, 43, .08);
}

.button,
.esp-btn,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--esp-coral);
  color: var(--esp-white);
  font-family: var(--esp-sans);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(184, 75, 52, .2);
  cursor: pointer;
  transition: transform var(--esp-speed) ease, background var(--esp-speed) ease, box-shadow var(--esp-speed) ease;
}
.button:hover,
.esp-btn:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--esp-coral-dark);
  color: var(--esp-white);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(184, 75, 52, .26);
}

.search-form {
  display: flex;
  gap: 10px;
  width: min(100%, 620px);
}
.search-form label { flex: 1; }
.search-field,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="password"],
input[type="search"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(31, 78, 95, .18);
  border-radius: var(--esp-radius-sm);
  background: rgba(255, 255, 255, .82);
  color: var(--esp-ink);
  padding: 11px 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}
textarea { min-height: 120px; resize: vertical; }

.not-found-panel {
  max-width: 720px;
  padding: clamp(28px, 5vw, 54px);
  border-radius: var(--esp-radius-lg);
  background: var(--esp-white);
  box-shadow: var(--esp-shadow-soft);
}
.not-found-panel h1 { font-size: clamp(2rem, 5vw, 4rem); }

.pagination {
  margin-top: 34px;
}
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pagination a,
.pagination span {
  min-width: 38px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(31, 78, 95, .08);
  color: var(--esp-ink);
  text-decoration: none;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(19, 33, 29, .44), rgba(19, 33, 29, 0)),
    var(--esp-petrol);
  color: var(--esp-cream);
  padding: 0 0 44px;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 247, 234, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 247, 234, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.75), transparent);
}
.footer-trust {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 247, 234, .16);
}
.footer-trust span {
  color: rgba(255, 247, 234, .82);
  font-size: .92rem;
  font-weight: 700;
}
.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(180px, .55fr) minmax(160px, .45fr);
  gap: clamp(22px, 4vw, 54px);
  padding-top: 42px;
}
.footer-brand h2 {
  max-width: 600px;
  font-size: clamp(1.7rem, 3.2vw, 3rem);
}
.footer-brand p:not(.eyebrow) {
  max-width: 540px;
  color: rgba(255, 247, 234, .76);
}
.footer-menu {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-nav a,
.footer-language a {
  color: var(--esp-cream);
  text-decoration: none;
}
.footer-nav a {
  display: inline-flex;
  padding-block: 4px;
}
.footer-nav a:hover,
.footer-language a:hover {
  color: var(--esp-brass);
}
.footer-language p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 247, 234, .78);
  font-weight: 700;
  letter-spacing: 0;
}
#gt_float_wrapper,
#esp-region-badge {
  display: none !important;
}
.gtranslate_wrapper .gt_float_switcher {
  max-width: min(100vw - 28px, 180px) !important;
  border-radius: var(--esp-radius-sm) !important;
  box-shadow: 0 14px 32px rgba(19, 33, 29, .18) !important;
}

.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;
}
:focus-visible {
  outline: 3px solid var(--esp-gold);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  body:not(.home) .site-main { padding-top: 82px; }
  .header-shell { min-height: 72px; }
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute;
    top: 72px;
    left: 18px;
    right: 18px;
    display: none;
    padding: 14px;
    border: 1px solid rgba(31, 78, 95, .16);
    border-radius: var(--esp-radius);
    background: rgba(255, 247, 234, .98);
    color: var(--esp-ink);
    box-shadow: var(--esp-shadow-soft);
  }
  .site-nav.is-open { display: block; }
  .site-nav .menu {
    display: grid;
    gap: 4px;
  }
  .site-nav a { width: 100%; }
  .theme-hero { min-height: auto; }
  .theme-hero__inner {
    grid-template-columns: 1fr;
    padding-top: 116px;
  }
  .theme-hero__wizard { max-width: 680px; }
  .detail-hero {
    grid-template-columns: 1fr;
  }
  .trust-line__inner,
  .footer-trust,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 28px, 1180px); }
  .header-shell { min-height: 70px; }
  .brand { max-width: calc(100vw - 104px); }
  .custom-logo {
    max-width: min(250px, calc(100vw - 112px));
    max-height: 48px;
  }
  .site-nav { top: 70px; }
  .theme-hero__inner { padding-bottom: 32px; }
  .theme-hero__wizard { padding: 10px; border-radius: var(--esp-radius); }
  .category-tiles { grid-template-columns: 1fr; }
  .search-form { flex-direction: column; }
  .detail-wrap { padding-top: 96px; }
  .detail-content { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
