/* Hovawart Klub MHEOE – public site. Colours come from the theme chosen on the
   Alapadatok page (--primary, --light are set inline in the layout). */


:root {
  --primary: #5B5930;
  --light: #F1E5D7;
  --card: #EDEDED;
  --white: #fff;
  --text: var(--primary);
  --font: 'Nunito Sans', 'Avenir Next', Avenir, 'Segoe UI', system-ui, sans-serif;
  --display: 'Cormorant Garamond', 'Didot', Georgia, serif;
  --wrap: 1200px;
  --radius: 18px;
  --shadow: 0 10px 24px rgba(0, 0, 0, .18);
  --header-h: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.2; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Buttons & small type ─────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: .4em; background: var(--primary); color: #fff; text-decoration: none; text-transform: uppercase;
  font-size: 15px; letter-spacing: .02em; padding: .45em 1.6em; border-radius: 999px; border: 0; cursor: pointer; transition: filter .15s, transform .15s; line-height: 1.4; }
.btn:hover { filter: brightness(1.18); }
.btn-wide { min-width: 205px; }
.btn-sm { font-size: 12px; padding: .35em 1em; border-radius: 7px; min-width: 112px; }
.btn-ghost { background: var(--card); color: var(--primary); }
.eyebrow { text-transform: uppercase; font-size: 21px; font-weight: 300; letter-spacing: .02em; margin-bottom: .2em; }
.heading { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.22; margin-bottom: .7em; }
.lead { font-size: 19px; }
.rich { font-size: 18px; line-height: 1.7; }
.rich h2 { font-size: 30px; margin: 1.2em 0 .5em; }
.rich h3 { font-size: 24px; margin: 1.1em 0 .4em; }
.rich ul, .rich ol { padding-left: 1.4em; margin: 0 0 1em; }
.rich blockquote { margin: 1em 0; padding: .3em 1.2em; border-left: 4px solid var(--primary); background: color-mix(in srgb, var(--light) 60%, #fff); }
.rich a { color: var(--primary); text-decoration: underline; }
/* Formatting classes produced by the editor */
.ql-font-display { font-family: var(--display); }
.ql-font-serif { font-family: Georgia, 'Times New Roman', serif; }
.ql-font-mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.ql-size-small { font-size: .8em; }
.ql-size-large { font-size: 1.4em; }
.ql-size-huge { font-size: 2em; line-height: 1.2; }
.ql-align-center { text-align: center; }
.ql-align-right { text-align: right; }
.ql-align-justify { text-align: justify; }
.ql-indent-1 { padding-left: 2em; } .ql-indent-2 { padding-left: 4em; } .ql-indent-3 { padding-left: 6em; }

/* ── Header ───────────────────────────────────────────────────────── */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s, box-shadow .25s, padding .25s; padding: 14px 0; }
.site-header.solid, .site-header.scrolled { background: var(--primary); box-shadow: 0 4px 18px rgba(0, 0, 0, .18); padding: 4px 0; }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; width: min(1240px, 100% - 32px); margin-inline: auto; }
.nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: clamp(14px, 2.4vw, 38px); }
.nav .left { justify-content: flex-end; }
.nav .right { justify-content: flex-start; align-items: center; }
.nav a.item { color: #fff; text-decoration: none; text-transform: uppercase; font-size: 19px; font-weight: 400; letter-spacing: .01em; white-space: nowrap; text-shadow: 0 1px 6px rgba(0, 0, 0, .25); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a.item:hover, .nav a.item.active { border-bottom-color: rgba(255, 255, 255, .8); }
.logo { display: block; width: 96px; height: 96px; border-radius: 50%; background: #fff; box-shadow: 3px 4px 0 rgba(0, 0, 0, .55); overflow: hidden; transition: width .25s, height .25s; }
.logo img { width: 100%; height: 100%; object-fit: contain; padding: 10%; }
.site-header.scrolled .logo, .site-header.solid .logo { width: 70px; height: 70px; }
.langs { display: flex; gap: 6px; margin-left: 10px; }
.langs a { font-size: 20px; text-decoration: none; opacity: .55; filter: saturate(.7); line-height: 1; }
.langs a.on, .langs a:hover { opacity: 1; filter: none; }
.burger { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; justify-self: end; }
.burger svg { width: 30px; height: 30px; }
.mobile-menu { display: none; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: min(780px, 100vh); background-size: max(150%, 1700px) auto; background-position: 18% 52%; color: #fff; display: grid; place-items: center; text-align: center; padding: 150px 20px 190px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .12) 40%, rgba(0, 0, 0, .18) 100%); }
.hero::after { content: ''; position: absolute; left: -10%; right: -10%; bottom: -120px; height: 200px; background: var(--light); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.hero-inner { position: relative; z-index: 1; max-width: 1000px; }
.hero h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(44px, 6.4vw, 92px); line-height: 1.02; letter-spacing: .01em; text-shadow: 3px 3px 6px rgba(0, 0, 0, .55); }
.hero .sub { text-transform: uppercase; font-weight: 600; font-size: clamp(14px, 1.45vw, 20px); margin: 10px 0 28px; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }

.hero .text { max-width: 760px; margin-inline: auto; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.4; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.hero .text p { margin: 0; }

/* ── Feature cards ────────────────────────────────────────────────── */
.features-wrap { background: var(--light); padding-bottom: 50px; }
.features { position: relative; z-index: 2; margin-top: -150px; background: #fff; border-radius: 16px; box-shadow: 6px 8px 0 rgba(0, 0, 0, .12), var(--shadow); display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding: 40px 48px 56px; }
.feature { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; }
.dot { width: 64px; height: 64px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; color: #fff; flex: none; }
.dot svg { width: 30px; height: 30px; opacity: .92; }
.feature h3 { font-size: clamp(28px, 2.7vw, 40px); text-transform: uppercase; align-self: center; }
.feature p { grid-column: 2; font-size: 17px; line-height: 1.4; margin: 14px 0 30px; }
.feature .btn { grid-column: 2; justify-self: start; }

/* ── Sections ─────────────────────────────────────────────────────── */
.section { padding: 80px 0; }
.bg-light { background: var(--light); }
.bg-white { background: #fff; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

.club-photos { position: relative; aspect-ratio: 1 / 1.12; }
.club-photos img { position: absolute; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.club-photos .big { left: 0; top: 0; width: 72%; height: 76%; }
.club-photos .small { right: 0; bottom: 0; width: 55%; height: 52%; }
.club .text { padding-top: 0; }

.news-head { text-align: center; }
.tabs { display: flex; justify-content: center; gap: 32px; margin: 4px 0 26px; }
.tab { min-width: 230px; justify-content: center; font-size: 18px; }
.tab:not(.active) { background: var(--card); color: var(--primary); }
.news-panel { background: var(--light); border-radius: 24px; padding: 26px 36px 30px; }
.posts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; min-height: 300px; transition: opacity .2s; }
.posts.loading { opacity: .4; }
.post-featured { grid-row: span 2; position: relative; overflow: hidden; background: #fff; padding: 8px; min-height: 480px; display: flex; }
.post-featured .slider { position: absolute; inset: 8px; }
.post-featured .shade { position: absolute; inset: 8px; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, .78) 88%); pointer-events: none; }
.post-featured .info { position: relative; margin-top: auto; padding: 0 18px 10px; z-index: 2; }
.post-featured h3 { font-size: clamp(22px, 2vw, 27px); margin-bottom: 8px; }
.post-featured .meta { display: flex; align-items: center; gap: 14px; font-size: 20px; }
.post-side { display: grid; grid-template-columns: 54% 1fr; background: var(--card); min-height: 230px; }
.post-side .img { background-size: cover; background-position: center; min-height: 100%; }
.post-side .info { padding: 30px 18px 22px; display: flex; flex-direction: column; }
.post-side h3 { font-size: 20px; line-height: 1.35; }
.post-side .date { margin: auto 0 14px; font-size: 18px; }
.post-side .btn { align-self: flex-start; }
.post-loc { font-size: 15px; opacity: .85; }
.empty { grid-column: 1 / -1; text-align: center; padding: 60px 0; opacity: .7; }
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 22px; font-size: 18px; flex-wrap: wrap; }
.pager a, .pager span { text-decoration: none; padding: 0 2px; }
.pager .current { text-decoration: underline; text-underline-offset: 5px; }
.pager .more { text-transform: uppercase; margin-left: 6px; }

.gallery-head { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-bottom: 34px; align-items: start; }
.gallery-head .heading { margin-bottom: 0; }
.gallery { display: grid; grid-template-columns: 2.33fr 1fr; gap: 16px; }
.gallery img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: var(--radius); min-height: 0; }
.gallery .g1, .gallery .g2, .gallery .g3, .gallery .g4 { height: 445px; }
.gallery .g2 { grid-column: 2; }
.gallery .row2 { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 2.33fr; gap: 16px; }

.partners { background: #fff; padding: 22px 0; border-top: 6px solid var(--light); }
.partners .wrap { display: flex; justify-content: center; align-items: center; gap: clamp(20px, 4vw, 56px); flex-wrap: wrap; }
.partners a { display: block; transition: transform .2s; }
.partners a:hover { transform: scale(1.05); }
.partners img { height: 104px; width: auto; max-width: 200px; object-fit: contain; }

.standard .photo img { width: 100%; aspect-ratio: 1.02; object-fit: cover; border-radius: var(--radius); }
.standard { padding: 100px 0 140px; }
.standard .heading { margin-bottom: 1.2em; }

.puppy .split { grid-template-columns: 1fr 1.05fr; }
.puppy .text .heading { font-size: clamp(30px, 3.2vw, 44px); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card { background: var(--light); border-radius: var(--radius); padding: 20px 22px 22px; display: flex; flex-direction: column; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { font-size: 26px; margin: 14px 0 10px; }
.card p { font-size: 15.5px; line-height: 1.32; margin: 0 0 10px; }
.card .link { margin-top: auto; text-decoration: underline; font-size: 16px; }

/* Hidden-for-visitors preview (editors only) */
[data-preview-hidden] { position: relative; outline: 3px dashed #c0392b; outline-offset: -3px; }
[data-preview-hidden]::before { content: attr(data-hidden-note); position: absolute; z-index: 5; top: 8px; left: 50%; transform: translateX(-50%); background: #c0392b; color: #fff; font-size: 13px; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.hidden-banner { background: #c0392b; color: #fff; text-align: center; padding: 8px; font-size: 14px; }

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer { background: var(--primary); color: #fff; padding: 64px 0 46px; }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: start; }
.site-footer .logo { width: 122px; height: 122px; }
.site-footer .title { font-family: var(--display); text-transform: uppercase; font-size: clamp(20px, 2vw, 27px); line-height: 1.05; margin: 8px 0 14px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .big-links a { display: block; font-size: 26px; font-weight: 300; line-height: 1.8; }
.site-footer .links a { display: block; font-size: 20px; line-height: 2.2; }
.copyright { grid-column: 1 / -1; font-size: 13px; opacity: .7; border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 18px; margin-top: 26px; }

/* ── Subpages ─────────────────────────────────────────────────────── */
.page-hero { background: var(--primary); color: #fff; padding: 150px 0 60px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; left: -10%; right: -10%; bottom: -70px; height: 110px; background: var(--light); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.page-hero .crumb { font-size: 15px; opacity: .85; text-decoration: none; }
.page-hero h1 { font-family: var(--display); text-transform: uppercase; font-size: clamp(40px, 5vw, 70px); margin-top: 6px; }
.page-body { background: var(--light); padding: 30px 0 90px; }
.page-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.page-grid .photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3.2; object-fit: cover; }
.page-grid .photo { position: sticky; top: 110px; }
.page-lead { font-size: 22px; line-height: 1.5; margin-bottom: 1.2em; }
.entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; margin-top: 56px; }
.entry { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 14px rgba(0, 0, 0, .06); display: flex; flex-direction: column; }
.entry img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.entry .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.entry h3 { font-size: 26px; }
.entry .sub { font-size: 15px; opacity: .8; text-transform: uppercase; letter-spacing: .03em; }
.entry .rich { font-size: 16px; margin-top: 8px; }
.entry .contact { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--light); font-size: 15px; display: grid; gap: 2px; }
.section-title { font-size: 32px; margin: 64px 0 0; }

.post-page .meta { font-size: 18px; margin-bottom: 18px; display: flex; gap: 18px; flex-wrap: wrap; opacity: .9; }
.post-media { margin-bottom: 34px; }
.post-media .slider { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #222; }
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.post-list .entry .date { font-size: 15px; opacity: .8; }
.post-list .entry h3 { font-size: 23px; }
.post-list a.entry { text-decoration: none; transition: transform .2s; }
.post-list a.entry:hover { transform: translateY(-3px); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-box { background: #fff; border-radius: var(--radius); padding: 30px 34px; }
.contact-box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 14px 22px; font-size: 18px; }
.contact-box dt { text-transform: uppercase; font-size: 14px; letter-spacing: .05em; opacity: .75; padding-top: 3px; }
.contact-box dd { margin: 0; }
.contact-box dd a { text-decoration: underline; text-underline-offset: 3px; }
.contact-box :target, .contact-box .flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 40% { background: color-mix(in srgb, var(--primary) 18%, transparent); } 100% { background: transparent; } }
.leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 18px; }
.leader { background: #fff; border-radius: 14px; padding: 20px 22px; }
.leader .role { text-transform: uppercase; font-size: 13px; letter-spacing: .06em; opacity: .75; }
.leader .name { font-size: 22px; margin: 2px 0 8px; }
.leader a { display: block; font-size: 15px; }

/* ── Slider (news photos) ─────────────────────────────────────────── */
.slider { position: relative; overflow: hidden; touch-action: pan-y; user-select: none; }
.slider .track { display: flex; height: 100%; transition: transform .5s ease; }
.slider .slide { flex: 0 0 100%; height: 100%; }
.slider .slide img, .slider .slide video { width: 100%; height: 100%; object-fit: cover; }
.post-media .slider .slide img { object-fit: contain; background: #111; }
.slider .arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .38); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .15s; }
.slider .arrow:hover { background: rgba(0, 0, 0, .6); }
.slider .arrow svg { width: 22px; height: 22px; }
.slider .prev { left: 10px; } .slider .next { right: 10px; }
.slider .dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.slider .dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .55); cursor: pointer; box-shadow: 0 0 3px rgba(0, 0, 0, .4); transition: width .2s, background .2s; }
.slider .dots button.on { background: #fff; width: 24px; border-radius: 6px; }
.post-featured .slider .dots { bottom: auto; top: 14px; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .nav a.item { font-size: 16px; }
  .nav ul { gap: 18px; }
}
@media (max-width: 960px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav .left, .nav .right { display: none; }
  .nav .logo { grid-column: 1; width: 64px; height: 64px; }
  .burger { display: block; grid-column: 3; }
  .site-header { background: var(--primary); padding: 6px 0; }
  .site-header .logo { width: 60px !important; height: 60px !important; }
  .mobile-menu { position: fixed; inset: 72px 0 auto; background: var(--primary); padding: 10px 24px 24px; box-shadow: 0 12px 20px rgba(0, 0, 0, .25); }
  .mobile-menu.open { display: block; }
  .mobile-menu a.item { display: block; color: #fff; text-decoration: none; text-transform: uppercase; font-size: 19px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
  .mobile-menu .langs { margin: 14px 0 0; }
  .hero { padding: 130px 20px 170px; background-size: cover; background-position: 60% 50%; }
  .features { grid-template-columns: 1fr; padding: 30px 26px 40px; gap: 30px; margin-top: -120px; }
  .split, .gallery-head, .page-grid, .contact-grid, .puppy .split { grid-template-columns: 1fr; gap: 34px; }
  .club-photos { max-width: 520px; }
  .page-grid .photo { position: static; }
  .posts { grid-template-columns: 1fr; }
  .post-featured { grid-row: auto; min-height: 380px; }
  .news-panel { padding: 18px; }
  .gallery .g1, .gallery .g2, .gallery .g3, .gallery .g4 { height: 300px; }
  .site-footer .wrap { grid-template-columns: auto 1fr; }
  .site-footer .links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 26px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .section { padding: 56px 0; }
  .tabs { gap: 12px; }
  .tab { min-width: 0; flex: 1; }
  .post-side { grid-template-columns: 1fr; }
  .post-side .img { min-height: 200px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .g2 { grid-column: 1; }
  .gallery .row2 { grid-template-columns: 1fr; }
  .gallery .g1, .gallery .g2, .gallery .g3, .gallery .g4 { height: 240px; }
  .cards { grid-template-columns: 1fr; }
  .partners img { height: 70px; max-width: 140px; }
  .site-footer .wrap { grid-template-columns: 1fr; text-align: left; }
  .site-footer .logo { width: 96px; height: 96px; }
  .contact-box dl { grid-template-columns: 1fr; gap: 2px; }
  .contact-box dd { margin-bottom: 12px; }
}
