/*
Theme Name: Blickwinkel Erzgebirge
Theme URI: https://blickwinkel-erzgebirge.de/
Author: Blickwinkel Erzgebirge
Description: Eigenständiges WordPress-Theme für den Heimatguide Blickwinkel Erzgebirge. Enthält Startseite, Heimatfinder, Veranstaltungskalender, die erweiterbare Emil-Buchreihe, Social-Media-Seite und Anfrageformular.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: blickwinkel-erzgebirge
*/

@font-face {
  font-family: "Blickwinkel Geist";
  src: url("assets/fonts/geist-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Blickwinkel Geist Mono";
  src: url("assets/fonts/geist-mono.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font-geist-sans: "Blickwinkel Geist", Arial, Helvetica, sans-serif;
  --font-geist-mono: "Blickwinkel Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

body,
body a,
body button,
body input,
body select,
body summary {
  cursor: url("assets/images/cursor.svg") 3 2, auto;
}

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

.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: 8px;
  left: 8px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 12px 16px;
  color: var(--coal);
  background: var(--cream);
}

.site-header .discover-menu > summary {
  cursor: pointer;
}

.site-header .discover-panel {
  z-index: 60;
}

.bw-page-main {
  min-height: 65vh;
}

.bw-page-hero {
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.bw-page-hero > img,
.bw-page-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bw-page-hero > img {
  object-fit: cover;
  object-position: center;
}

.bw-page-hero-shade {
  background: linear-gradient(90deg, rgba(8, 12, 14, .94), rgba(8, 12, 14, .68) 55%, rgba(8, 12, 14, .18)), linear-gradient(0deg, rgba(8, 12, 14, .92), transparent 65%);
}

.bw-page-hero-copy {
  z-index: 2;
  width: min(1320px, calc(100% - 64px));
  margin-inline: auto;
  padding-block: 100px 72px;
  position: relative;
}

.bw-page-hero-copy h1 {
  max-width: 1000px;
  margin: 18px 0 0;
  font-size: clamp(3.5rem, 7vw, 7.4rem);
  font-weight: 720;
  letter-spacing: -.07em;
  line-height: .9;
}

.bw-page-hero-copy h1 em {
  color: var(--copper-light);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.bw-page-hero-copy > p {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(243, 240, 234, .8);
  font-size: 1.02rem;
  line-height: 1.72;
}

.bw-content-section {
  padding-block: 105px;
}

.bw-content-section + .bw-content-section {
  border-top: 1px solid var(--line);
}

.bw-prose {
  max-width: 860px;
  color: var(--cream-dim);
  font-size: 1rem;
  line-height: 1.85;
}

.bw-prose > * + * {
  margin-top: 1.35em;
}

.bw-prose h2,
.bw-prose h3 {
  color: var(--cream);
  letter-spacing: -.04em;
  line-height: 1.08;
}

.bw-prose h2 {
  margin-top: 1.8em;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.bw-prose h3 {
  font-size: 1.55rem;
}

.bw-empty-state {
  border: 1px dashed var(--line);
  padding: 48px 28px;
  color: var(--slate-light);
  text-align: center;
}

.bw-directory-pagination {
  margin-top: 46px;
}

.bw-directory-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.bw-directory-pagination a,
.bw-directory-pagination span {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--cream-dim);
}

.bw-directory-pagination .current,
.bw-directory-pagination a:hover {
  color: #fff;
  border-color: var(--copper);
  background: rgba(200, 110, 63, .18);
}

.category-filter a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--cream-dim);
  font-size: .69rem;
  transition: background .18s, border-color .18s, color .18s;
}

.category-filter a:hover,
.category-filter a.active {
  border-color: var(--copper);
  background: var(--copper);
  color: #fff;
}

.filter-panel > .hero-actions {
  margin-top: 18px;
}

.filter-panel .select-row > .hero-actions {
  margin: 0;
  align-self: end;
}

.filter-panel .select-row > .hero-actions .button {
  width: 100%;
  min-height: 46px;
}

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

.bw-event-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px 34px 2px 2px;
  background: var(--coal-soft);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.bw-event-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 110, 63, .6);
  box-shadow: var(--shadow);
}

.bw-event-media {
  height: 225px;
  position: relative;
  overflow: hidden;
  background: var(--coal-lift);
}

.bw-event-media > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bw-event-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 22, 25, .8), transparent 60%);
}

.bw-event-date {
  z-index: 2;
  position: absolute;
  left: 15px;
  bottom: 14px;
  max-width: calc(100% - 30px);
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(17, 22, 25, .78);
  color: #fff;
  font-family: var(--font-geist-mono);
  font-size: .58rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.bw-event-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 23px;
}

.bw-event-copy small {
  color: var(--copper-light);
  font-family: var(--font-geist-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .56rem;
}

.bw-event-copy h3 {
  margin: 13px 0 10px;
  font-size: 1.45rem;
  letter-spacing: -.04em;
  line-height: 1.08;
}

.bw-event-copy p {
  color: var(--slate-light);
  font-size: .75rem;
  line-height: 1.65;
}

.bw-event-copy .portrait-link {
  margin-top: auto;
  padding-top: 21px;
}

.bw-content-section > .bw-emil-character-grid > .bw-event-copy {
  border: 1px solid var(--line);
  border-radius: 3px 20px 3px 3px;
  background: var(--coal-soft);
}

.bw-single-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  min-height: 640px;
  border-bottom: 1px solid var(--line);
}

.bw-single-hero-media {
  min-height: 540px;
  position: relative;
  overflow: hidden;
  background: var(--coal-lift);
}

.bw-single-hero-media > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bw-single-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, var(--coal)), linear-gradient(0deg, rgba(17, 22, 25, .8), transparent 55%);
}

.bw-single-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px clamp(34px, 6vw, 96px) 80px clamp(32px, 4vw, 70px);
}

.bw-single-hero-copy h1 {
  margin: 20px 0 0;
  font-size: clamp(3.1rem, 6vw, 6.8rem);
  font-weight: 720;
  letter-spacing: -.07em;
  line-height: .9;
}

.bw-single-hero-copy > p {
  margin: 28px 0 0;
  color: var(--cream-dim);
  line-height: 1.75;
}

.bw-facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.bw-facts-grid > div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--coal-soft);
}

.bw-facts-grid dt {
  color: var(--slate);
  font-family: var(--font-geist-mono);
  font-size: .56rem;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.bw-facts-grid dd {
  margin: 7px 0 0;
  color: var(--cream);
  font-weight: 680;
}

.bw-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .38fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: start;
}

.bw-detail-sidebar {
  position: sticky;
  top: 110px;
  border: 1px solid var(--line);
  border-radius: 3px 24px 3px 3px;
  padding: 26px;
  background: var(--coal-soft);
}

.bw-detail-sidebar > * + * {
  margin-top: 14px;
}

.bw-detail-sidebar a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--cream-dim);
  font-size: .75rem;
}

.bw-detail-sidebar a:hover {
  color: var(--copper-light);
}

.bw-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 25px;
}

.bw-feature-list span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--coal-lift);
  color: var(--cream-dim);
  font-size: .65rem;
}

.bw-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.bw-form-grid label,
.bw-form-full {
  display: grid;
  gap: 8px;
}

.bw-form-grid label > span,
.bw-form-full > span {
  color: var(--cream-dim);
  font-size: .72rem;
  font-weight: 650;
}

.bw-form-grid input,
.bw-form-grid select,
.bw-form-full textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: var(--coal-soft);
  color: var(--cream);
}

.bw-form-full {
  margin-top: 18px;
}

.bw-form-full textarea {
  min-height: 190px;
}

.bw-form-grid input:focus,
.bw-form-grid select:focus,
.bw-form-full textarea:focus {
  border-color: var(--copper);
}

.bw-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 22px 0;
  color: var(--slate-light);
  font-size: .72rem;
  line-height: 1.55;
}

.bw-consent input {
  flex: 0 0 auto;
  margin-top: 4px;
}

.bw-form-status {
  margin-bottom: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(115, 175, 135, .55);
  border-left: 4px solid #73af87;
  background: rgba(115, 175, 135, .1);
  color: var(--cream);
}

.bw-form-status.error {
  border-color: rgba(207, 102, 86, .55);
  border-left-color: #cf6656;
  background: rgba(207, 102, 86, .1);
}

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

.bw-social-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px 30px 2px 2px;
  background: var(--coal-soft);
}

.bw-social-card img {
  width: 100%;
  aspect-ratio: 1 / .82;
  object-fit: cover;
}

.bw-social-card div {
  padding: 22px;
}

.bw-social-card small {
  color: var(--copper-light);
  font-family: var(--font-geist-mono);
  font-size: .58rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.bw-social-card p {
  margin: 12px 0 20px;
  color: var(--cream-dim);
  font-size: .8rem;
  line-height: 1.65;
}

.bw-social-card strong {
  color: var(--cream);
  font-size: .72rem;
}

.bw-emil-story-grid,
.bw-emil-character-grid,
.bw-emil-author-grid {
  display: grid;
  gap: 24px;
}

.bw-emil-story-grid {
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
}

.bw-emil-character-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bw-emil-character-card,
.bw-emil-author-card {
  overflow: hidden;
  border: 1px solid rgba(20, 45, 32, .16);
  border-radius: 4px 28px 4px 4px;
  background: #fffaf0;
}

.bw-emil-character-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: top center;
  background: #dfe9d7;
}

.bw-emil-character-card div,
.bw-emil-author-card div {
  padding: 25px;
}

.bw-emil-character-card h3,
.bw-emil-author-card h3 {
  margin: 0;
  color: #142d20;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
}

.bw-emil-character-card p,
.bw-emil-author-card p {
  margin: 12px 0 0;
  color: #56685c;
  font-size: .78rem;
  line-height: 1.7;
}

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

.bw-emil-author-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: stretch;
}

.bw-emil-author-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.bw-emil-placeholder {
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #dfe9d7;
  color: #142d20;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.site-footer .footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer .footer-brand-lockup img {
  width: 54px;
  height: 54px;
}

.site-footer .footer-brand-lockup span {
  display: flex;
  flex-direction: column;
  text-transform: uppercase;
}

.site-footer .footer-brand-lockup strong {
  letter-spacing: .08em;
}

.site-footer .footer-brand-lockup small {
  margin-top: 5px;
  color: var(--cream-dim);
  font-size: .62rem;
  letter-spacing: .24em;
}

@media (max-width: 1120px) {
  .bw-event-grid,
  .bw-social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bw-single-hero {
    grid-template-columns: 1fr;
  }

  .bw-single-hero-media::after {
    background: linear-gradient(0deg, var(--coal), transparent 60%);
  }
}

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

  .bw-page-hero-copy {
    width: min(100% - 38px, 1320px);
  }

  .bw-detail-grid,
  .bw-emil-story-grid,
  .bw-emil-author-grid {
    grid-template-columns: 1fr;
  }

  .bw-detail-sidebar {
    position: static;
  }

  .bw-emil-character-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .bw-page-hero-copy h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .bw-content-section {
    padding-block: 72px;
  }

  .bw-event-grid,
  .bw-social-grid,
  .bw-emil-character-grid,
  .bw-form-grid,
  .bw-facts-grid {
    grid-template-columns: 1fr;
  }

  .bw-emil-author-card {
    grid-template-columns: 1fr;
  }

  .bw-emil-author-card img {
    height: 320px;
  }
}

@media (pointer: coarse) {
  body,
  body a,
  body button,
  body input,
  body select,
  body summary {
    cursor: auto;
  }
}
