/*
Theme Name: Pfahl Camping
Theme URI: https://www.pfahl-camping.de/
Author: Pfahl Camping
Description: Maßgeschneidertes, performantes WooCommerce-Theme für Pfahl Camping.
Version: 0.13.10
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: pfahl-camping
*/

:root {
  --pc-brand: #6fae79;
  --pc-brand-dark: #347447;
  --pc-ink: #11183d;
  --pc-muted: #687083;
  --pc-sand: #eaf7ec;
  --pc-paper: #f7f8fb;
  --pc-white: #fff;
  --pc-line: rgba(15, 17, 19, .13);
  --pc-success: #247351;
  --pc-warning: #a05a24;
  --pc-radius-sm: .75rem;
  --pc-radius: 1.25rem;
  --pc-radius-lg: 2rem;
  --pc-shadow: 0 1.25rem 3.5rem rgba(15, 17, 19, .10);
  --pc-shadow-soft: 0 .75rem 2rem rgba(15, 17, 19, .07);
  --pc-shell: min(91.5rem, calc(100% - 2.5rem));
  --pc-transition: 180ms cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--pc-ink);
  background: var(--pc-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select,
textarea { font: inherit; }

a {
  color: inherit;
  text-decoration: none;
}

a:hover { color: var(--pc-brand-dark); }

:focus-visible {
  outline: .2rem solid var(--pc-brand);
  outline-offset: .2rem;
}

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

.screen-reader-text:focus {
  z-index: 100000;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  clip: auto;
  padding: .8rem 1rem;
  color: var(--pc-white);
  background: var(--pc-ink);
}

.pc-shell {
  width: var(--pc-shell);
  margin-inline: auto;
}

.pc-main { min-height: 55vh; }

.pc-section { padding-block: clamp(3.5rem, 7vw, 7rem); }
.pc-section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.pc-section--sand { background: var(--pc-sand); }
.pc-section--ink { color: var(--pc-white); background: var(--pc-ink); }

.pc-eyebrow {
  margin: 0 0 .8rem;
  color: var(--pc-brand-dark);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .17em;
  line-height: 1.3;
  text-transform: uppercase;
}

.pc-section--ink .pc-eyebrow { color: #9bc2cd; }

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 .75em;
  color: inherit;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.65rem, 7vw, 6.25rem); }
h2 { font-size: clamp(2rem, 4.5vw, 4rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.85rem); }

p { margin: 0 0 1.35rem; }

.pc-lead {
  max-width: 48rem;
  color: var(--pc-muted);
  font-size: clamp(1.06rem, 1.6vw, 1.3rem);
  line-height: 1.65;
}

.pc-section--ink .pc-lead { color: rgba(255, 255, 255, .72); }

.pc-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.pc-heading-row > :first-child { max-width: 54rem; }

.pc-button,
.button,
button[type="submit"],
input[type="submit"] {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .75rem 1.2rem;
  border: 1px solid var(--pc-ink);
  border-radius: 999px;
  color: var(--pc-white);
  background: var(--pc-ink);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--pc-transition), color var(--pc-transition), background var(--pc-transition), border-color var(--pc-transition);
}

.pc-button:hover,
.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  color: var(--pc-white);
  background: var(--pc-brand-dark);
  border-color: var(--pc-brand-dark);
  transform: translateY(-2px);
}

.pc-button--brand {
  color: var(--pc-ink);
  background: #a9ced8;
  border-color: #a9ced8;
}

.pc-button--ghost {
  color: var(--pc-ink);
  background: transparent;
  border-color: var(--pc-line);
}

.pc-section--ink .pc-button--ghost {
  color: var(--pc-white);
  border-color: rgba(255, 255, 255, .3);
}

.pc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

/* Header */
.pc-skip-link { position: absolute; left: -9999px; }
.pc-skip-link:focus { left: 1rem; }

.pc-servicebar {
  color: var(--pc-white);
  background: var(--pc-ink);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .045em;
}

.pc-servicebar__inner {
  display: flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 5vw, 4.5rem);
}

.pc-servicebar span::before {
  content: "";
  display: inline-block;
  width: .45rem;
  height: .45rem;
  margin-right: .55rem;
  border-radius: 50%;
  background: #9bc2cd;
}

.pc-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid var(--pc-line);
  background: rgba(252, 251, 247, .92);
  backdrop-filter: blur(14px);
}

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

.pc-header__inner {
  display: grid;
  min-height: 5.25rem;
  align-items: center;
  grid-template-columns: auto minmax(18rem, 1fr) auto;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.pc-brand,
.pc-brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
  color: var(--pc-ink);
  font-weight: 800;
  letter-spacing: .075em;
  line-height: 1;
  text-decoration: none;
}

.pc-brand .custom-logo { width: auto; max-width: 100px; max-height: none; }
.pc-brand__text { white-space: nowrap; }

.pc-nav__toggle {
  display: none;
  min-height: 2.75rem;
  padding: .65rem .9rem;
  color: var(--pc-ink);
  background: transparent;
  border: 1px solid var(--pc-line);
}

.pc-nav__list,
.pc-nav__list ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.8rem, 2vw, 1.7rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pc-nav a {
  color: var(--pc-ink);
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
}

.pc-nav .current-menu-item > a,
.pc-nav a:hover { color: var(--pc-brand-dark); }

.pc-header__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .45rem;
}

.pc-tool-link {
  position: relative;
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--pc-line);
  border-radius: 50%;
  color: var(--pc-ink);
  background: var(--pc-white);
  text-decoration: none;
}

.pc-tool-link svg { width: 1.15rem; height: 1.15rem; }

.pc-cart-count {
  position: absolute;
  top: -.2rem;
  right: -.2rem;
  display: grid;
  min-width: 1.15rem;
  height: 1.15rem;
  padding-inline: .2rem;
  place-items: center;
  border-radius: 999px;
  color: var(--pc-white);
  background: var(--pc-brand-dark);
  font-size: .62rem;
  font-weight: 800;
}

/* Search */
.pc-search { position: relative; width: min(100%, 30rem); }

.pc-search__form {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--pc-line);
  border-radius: 999px;
  background: var(--pc-white);
}

.pc-search__input {
  width: 100%;
  min-height: 2.8rem;
  padding: .6rem 1rem;
  border: 0;
  outline: 0;
  color: var(--pc-ink);
  background: transparent;
}

.pc-search__submit {
  min-width: 3rem;
  min-height: 2.8rem;
  padding: .55rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--pc-ink);
}

.pc-search__submit:hover { color: var(--pc-brand-dark); background: transparent; transform: none; }

.pc-live-results {
  position: absolute;
  z-index: 1100;
  top: calc(100% + .55rem);
  right: 0;
  left: 0;
  max-height: min(34rem, 70vh);
  overflow: auto;
  padding: .55rem;
  border: 1px solid var(--pc-line);
  border-radius: 1rem;
  background: var(--pc-white);
  box-shadow: var(--pc-shadow);
}

.pc-live-results[hidden] { display: none; }

.pc-live-results__label {
  padding: .55rem .65rem;
  color: var(--pc-muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pc-live-result {
  display: grid;
  align-items: center;
  padding: .55rem;
  border-radius: .75rem;
  grid-template-columns: 3.4rem 1fr auto;
  gap: .75rem;
  color: var(--pc-ink);
  text-decoration: none;
}

.pc-live-result:hover { color: var(--pc-ink); background: var(--pc-sand); }
.pc-live-result img { width: 3.4rem; aspect-ratio: 1; border-radius: .55rem; object-fit: cover; }
.pc-live-result__title { font-size: .85rem; font-weight: 800; line-height: 1.3; }
.pc-live-result__meta { color: var(--pc-muted); font-size: .74rem; }
.pc-live-result__price { font-size: .78rem; font-weight: 800; white-space: nowrap; }

/* Home */
.pc-hero { padding-block: clamp(2rem, 5vw, 4.5rem); }

.pc-hero__panel {
  position: relative;
  display: grid;
  min-height: min(44rem, 76vh);
  overflow: hidden;
  align-items: end;
  padding: clamp(2rem, 7vw, 6.5rem);
  border-radius: var(--pc-radius-lg);
  color: var(--pc-white);
  background:
    radial-gradient(circle at 80% 18%, rgba(155, 194, 205, .35), transparent 32%),
    linear-gradient(128deg, #0f1113 0%, #1f343a 58%, #578c9b 130%);
  box-shadow: var(--pc-shadow);
  isolation: isolate;
}

.pc-hero__panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 10%;
  right: 8%;
  width: min(34vw, 29rem);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 50%;
  box-shadow: 0 0 0 2.2rem rgba(255, 255, 255, .035), 0 0 0 6rem rgba(255, 255, 255, .025);
}

.pc-hero__content { max-width: 59rem; }
.pc-hero h1 { max-width: 13ch; }
.pc-hero .pc-lead { max-width: 43rem; color: rgba(255, 255, 255, .76); }
.pc-hero__word { color: #a9ced8; font-style: italic; font-weight: 500; }

.pc-trip-grid,
.pc-story-grid,
.pc-value-grid,
.pc-post-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
}

.pc-trip-card {
  position: relative;
  display: flex;
  min-height: 20rem;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem;
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius);
  background: var(--pc-white);
  box-shadow: var(--pc-shadow-soft);
  text-decoration: none;
  transition: transform var(--pc-transition), box-shadow var(--pc-transition);
}

.pc-trip-card:nth-child(1),
.pc-trip-card:nth-child(4) { grid-column: span 4; }
.pc-trip-card:nth-child(2),
.pc-trip-card:nth-child(3) { grid-column: span 4; }
.pc-trip-card:hover { color: var(--pc-ink); transform: translateY(-.35rem); box-shadow: var(--pc-shadow); }

.pc-trip-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.pc-trip-card:hover .pc-trip-card__image { transform: scale(1.035); }

.pc-trip-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 17, 19, .78), rgba(15, 17, 19, .05) 72%);
}

.pc-trip-card__content { position: relative; z-index: 1; color: var(--pc-white); }
.pc-trip-card__count { opacity: .75; font-size: .78rem; }

.pc-story-grid { align-items: stretch; }

.pc-story__media {
  grid-column: span 6;
  min-height: 34rem;
  overflow: hidden;
  border-radius: var(--pc-radius-lg);
  background: #d8e5e8;
}

.pc-story__media img { width: 100%; height: 100%; object-fit: cover; }

/* A single-post hero follows the intrinsic 3:2 artwork without a blank mobile strip. */
.single-post .pc-story__media {
  min-height: 0;
  aspect-ratio: 3 / 2;
  background: transparent;
}

.single-post .pc-story__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pc-story__content {
  display: flex;
  grid-column: span 6;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 5rem);
}

.pc-story__signature {
  margin-top: 1.5rem;
  color: var(--pc-brand-dark);
  font-size: 1.1rem;
  font-weight: 800;
}

.pc-value-card {
  grid-column: span 3;
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--pc-radius);
  background: rgba(255, 255, 255, .05);
}

.pc-value-card__number { color: #9bc2cd; font-size: 1.8rem; font-weight: 800; }
.pc-value-card p { margin-bottom: 0; color: rgba(255, 255, 255, .7); }

.pc-post-card {
  grid-column: span 4;
  overflow: hidden;
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius);
  background: var(--pc-white);
  box-shadow: var(--pc-shadow-soft);
}

.pc-post-card__image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--pc-sand); }
.pc-post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms ease; }
.pc-post-card:hover .pc-post-card__image img { transform: scale(1.035); }
.pc-post-card__content { padding: 1.45rem; }
.pc-post-card__content h3 { font-size: 1.35rem; }
.pc-post-card__meta { color: var(--pc-muted); font-size: .78rem; font-weight: 700; }

/* Content */
.pc-page-header { padding-block: clamp(3.5rem, 7vw, 7rem) clamp(2rem, 4vw, 3.5rem); }
.pc-page-header h1 { max-width: 16ch; }
.pc-content { max-width: 52rem; margin-inline: auto; padding-bottom: clamp(4rem, 8vw, 8rem); }
.pc-content--wide { width: 100%; max-width: none; }
.pc-content > * { max-width: 100%; }
.pc-content h2 { margin-top: 1.5em; font-size: clamp(1.75rem, 3vw, 2.6rem); }
.pc-content h3 { margin-top: 1.5em; }
.pc-content .alignwide { width: min(76rem, calc(100vw - 3rem)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.pc-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }

.pc-empty-state {
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius-lg);
  background: var(--pc-sand);
  text-align: center;
}

/* Footer */
.pc-footer { color: rgba(255, 255, 255, .72); background: var(--pc-ink); }
.pc-footer__main { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.pc-footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2.5rem; }
.pc-footer h2, .pc-footer h3 { color: var(--pc-white); font-size: 1rem; letter-spacing: 0; }
.pc-footer__brand { max-width: 28rem; }
.pc-footer__brand-name { color: var(--pc-white); font-size: 1.35rem; font-weight: 800; letter-spacing: .075em; }
.pc-footer ul { margin: 0; padding: 0; list-style: none; }
.pc-footer li + li { margin-top: .55rem; }
.pc-footer a { color: inherit; text-decoration: none; }
.pc-footer a:hover { color: #9bc2cd; }
.pc-footer__bottom { padding-block: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .78rem; }
.pc-footer__bottom-inner { display: flex; justify-content: space-between; gap: 1rem; }

/* WordPress */
.pagination .nav-links,
.woocommerce-pagination ul.page-numbers {
  display: flex !important;
  justify-content: center;
  gap: .4rem;
  margin: 2rem 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  list-style: none;
}

.pagination .nav-links > .page-numbers,
.woocommerce-pagination ul.page-numbers > li > .page-numbers {
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 0 2.75rem;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  margin: 0;
  padding: 0 !important;
  border: 1px solid var(--pc-line) !important;
  border-radius: 50% !important;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.woocommerce-pagination ul.page-numbers > li {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible;
  border: 0 !important;
}

.pagination .nav-links > .page-numbers.current,
.woocommerce-pagination ul.page-numbers > li > .page-numbers.current {
  color: var(--pc-white);
  background: var(--pc-ink) !important;
}

@media (max-width: 1100px) {
  .pc-header__inner { grid-template-columns: auto 1fr auto; }
  .pc-header .pc-search { display: none; }
  .pc-trip-card:nth-child(n) { grid-column: span 6; }
  .pc-value-card { grid-column: span 6; }
}

@media (max-width: 782px) {
  :root { --pc-shell: calc(100% - 2rem); }
  .admin-bar .pc-header { top: 46px; }
  .pc-servicebar span:nth-child(n+3) { display: none; }
  .pc-header__inner { min-height: 4.6rem; grid-template-columns: auto auto 1fr; }
  .pc-nav__toggle { display: inline-flex; }
  .pc-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    padding: .65rem;
    border: 1px solid var(--pc-line);
    border-radius: 1rem;
    background: var(--pc-white);
    box-shadow: var(--pc-shadow);
  }
  .pc-nav.is-open { display: block; }
  .pc-nav__list,
  .pc-nav__list ul { align-items: stretch; flex-direction: column; gap: 0; }
  .pc-nav a { display: block; padding: .75rem; }
  .pc-heading-row { align-items: start; flex-direction: column; }
  .pc-story__media,
  .pc-story__content { grid-column: 1 / -1; }
  .pc-story__media { min-height: 25rem; }
  .pc-post-card { grid-column: span 6; }
  .pc-footer__grid { grid-template-columns: 1fr 1fr; }
  .pc-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  :root { --pc-shell: calc(100% - 1.25rem); }
  .pc-servicebar__inner { justify-content: flex-start; overflow: hidden; white-space: nowrap; }
  .pc-servicebar span:nth-child(n+2) { display: none; }
  .pc-brand__text { font-size: .8rem; }
  .pc-header__tools .pc-account-link { display: none; }
  .pc-hero { padding-top: .65rem; }
  .pc-hero__panel { min-height: 37rem; padding: 1.5rem; border-radius: 1.4rem; }
  .pc-actions { align-items: stretch; flex-direction: column; }
  .pc-actions .pc-button { width: 100%; }
  .pc-trip-card:nth-child(n),
  .pc-value-card,
  .pc-post-card { grid-column: 1 / -1; }
  .pc-trip-card { min-height: 18rem; }
  .pc-story__media { min-height: 20rem; }
  .pc-footer__grid { grid-template-columns: 1fr; }
  .pc-footer__brand { grid-column: auto; }
  .pc-footer__bottom-inner { flex-direction: column; }
}

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