:root {
  --blue-900: #0a255b;
  --blue-700: #0451c8;
  --blue-500: #2d76dc;
  --blue-100: #e8f1ff;
  --green-950: #0f2619;
  --green-800: #1b422f;
  --green-650: #2c684c;
  --cream: #f4f7fb;
  --paper: #ffffff;
  --ink: #182537;
  --muted: #5f6c7c;
  --line: #d8e1ee;
  --shadow: 0 18px 55px rgba(10, 37, 91, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
a { color: inherit; }
img { display: block; width: 100%; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: #fff; padding: 10px 14px; }
.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(4, 81, 200, .14);
  backdrop-filter: blur(12px);
}
.header-row { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; font-weight: 800; line-height: 1.1; }
.brand-logo { width: 62px; height: 62px; flex: 0 0 62px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 4px rgba(4,81,200,.13); }
.brand small { display: block; color: var(--blue-700); margin-top: 5px; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 5px; }
.nav a { text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 13px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--blue-700); color: #fff; }
.menu-btn { display: none; border: 0; border-radius: 10px; padding: 10px 12px; background: var(--blue-700); color: #fff; font-size: 16px; font-weight: 700; }

.hero { position: relative; min-height: 660px; display: grid; align-items: end; overflow: hidden; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,37,91,.92) 0%, rgba(15,38,25,.58) 50%, rgba(15,38,25,.10) 80%), url("images/pfarrkirche-luftaufnahme.jpg") center/cover no-repeat; transform: scale(1.01); }
.hero-content { position: relative; max-width: 760px; padding: 105px 0 90px; }
.eyebrow { display: inline-block; color: var(--blue-700); font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.12; margin-top: 0; color: var(--blue-900); }
.hero .eyebrow, .tourism-home .eyebrow, .tourism-hero .eyebrow, .page-intro .eyebrow { color: #9bc6ff; }
.hero h1 { color: #fff; font-size: clamp(44px, 7vw, 78px); max-width: 780px; margin: 18px 0 22px; }
.hero p { font-size: clamp(19px, 2vw, 23px); max-width: 660px; margin: 0 0 34px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 21px; border-radius: 8px; background: var(--blue-700); color: #fff; font-weight: 800; text-decoration: none; border: 2px solid transparent; box-shadow: 0 8px 24px rgba(4,81,200,.18); }
.button.secondary { background: transparent; border-color: rgba(255,255,255,.65); color: #fff; }
.button:hover { transform: translateY(-1px); filter: brightness(1.04); }
.button, .nav a, .text-link { transition: transform .22s ease, background-color .22s ease, color .22s ease, box-shadow .22s ease, filter .22s ease; }
.button:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(4,81,200,.24); }
.text-link:hover { color: var(--blue-900); }

.section { padding: 92px 0; }
.section.white { background: var(--paper); }
.section.tint { background: var(--blue-100); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 38px; }
.section-head h2, .page-intro h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 12px; }
.section-head p { max-width: 630px; margin: 0; color: var(--muted); }
.lead-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.lead-grid h2 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 20px; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.value { background: #fff; padding: 27px; border-left: 5px solid var(--blue-700); box-shadow: 0 10px 30px rgba(10,37,91,.07); }
.value h3 { margin-bottom: 8px; font-size: 23px; }
.value p { margin: 0; color: var(--muted); font-size: 16px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(10,37,91,.07); }
.card-icon { height: 180px; display: grid; place-items: center; color: #fff; background: var(--blue-700); }
.card:nth-child(2) .card-icon { background: var(--blue-900); }
.card:nth-child(3) .card-icon { background: var(--green-800); }
.card-icon svg { width: 82px; height: 82px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.card-body { padding: 25px; }
.card h3 { font-size: 26px; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; }
.card, .tourism-card, .project, .event-card, .value { transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease; }
.card:hover, .tourism-card:hover, .project:hover, .event-card:hover, .value:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(10,37,91,.14); }
.project-visual img, .tourism-card img, .tourism-home-image img, .discover-grid figure img { transition: transform .7s cubic-bezier(.2,.65,.25,1); }
.project:hover .project-visual img, .tourism-card:hover img, .tourism-home-image:hover img, .discover-grid figure:hover img { transform: scale(1.045); }
.text-link { color: var(--blue-700); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.tourism-home { background: var(--green-950); color: #fff; }
.tourism-home-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
.tourism-home-image { margin: 0; min-height: 470px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.tourism-home-image img { width: 100%; height: 100%; min-height: 470px; object-fit: cover; }
.tourism-home h2 { color: #fff; font-size: clamp(38px, 5vw, 58px); margin: 15px 0 20px; }
.tourism-home p { color: #dce9e2; font-size: 19px; }
.tourism-points { display: flex; flex-wrap: wrap; gap: 10px; margin: 25px 0 30px; }
.tourism-points span { padding: 8px 13px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: #fff; font-size: 14px; font-weight: 700; }

.tourism-hero { min-height: 560px; display: grid; align-items: end; color: #fff; background: linear-gradient(90deg, rgba(10,37,91,.90), rgba(15,38,25,.30)), url("images/pfarrkirche-luftaufnahme.jpg") center/cover no-repeat; }
.tourism-hero-content { padding: 100px 0 70px; max-width: 760px; }
.tourism-hero h1 { color: #fff; font-size: clamp(48px, 7vw, 78px); margin: 14px 0 16px; }
.tourism-hero p { max-width: 680px; margin: 0; font-size: 22px; }
.tourism-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.tourism-intro h2 { font-size: clamp(38px, 5vw, 56px); margin: 13px 0 0; }
.tourism-intro p:first-child { margin-top: 0; }
.tourism-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tourism-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 12px 34px rgba(10,37,91,.09); }
.tourism-card img { height: 230px; object-fit: cover; }
.tourism-card > div { padding: 25px; }
.tourism-number { display: block; color: var(--blue-700); font-weight: 900; letter-spacing: .1em; margin-bottom: 9px; }
.tourism-card h3 { font-size: 27px; margin-bottom: 10px; }
.tourism-card p { margin: 0; color: var(--muted); }
.discover-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.discover-grid figure { margin: 0; height: 480px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.discover-grid figure img { height: 100%; object-fit: cover; }
.discover-grid h2 { font-size: clamp(38px, 5vw, 56px); margin: 14px 0 18px; }
.tourism-link { align-self: center; }

.event-preview { display: grid; grid-template-columns: 180px 1fr auto; gap: 25px; align-items: center; background: #fff; padding: 25px; border-radius: 14px; border: 1px solid var(--line); }
.event-date { text-align: center; padding: 12px; border-right: 1px solid var(--line); color: var(--blue-700); font-weight: 800; }
.event-date strong { display: block; font: 700 30px/1.2 Georgia, serif; }
.event-preview h3 { margin-bottom: 5px; font-size: 27px; }
.event-preview p { margin: 0; color: var(--muted); }

.contact-section { background: var(--blue-100); scroll-margin-top: 85px; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 65px; align-items: start; }
.contact-copy h2 { font-size: clamp(38px, 5vw, 56px); margin: 14px 0 20px; }
.contact-copy > p { color: var(--muted); font-size: 18px; }
.contact-direct { margin: 30px 0 18px; padding: 20px 22px; background: var(--blue-900); color: #fff; border-radius: 12px; }
.contact-direct span { display: block; margin-bottom: 4px; color: #9bc6ff; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-direct a { color: #fff; font-size: 19px; font-weight: 800; overflow-wrap: anywhere; }
.contact-note { font-size: 15px !important; }
.contact-form { display: grid; gap: 18px; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.contact-form label { display: grid; gap: 7px; font-weight: 800; font-size: 15px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid #b9c6d8; border-radius: 8px; padding: 12px 13px; background: #fff; color: var(--ink); font: inherit; }
.contact-form textarea { resize: vertical; min-height: 145px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid rgba(4,81,200,.18); border-color: var(--blue-700); }
.contact-form .consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-weight: 400; color: var(--muted); }
.contact-form .consent input { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--blue-700); }
.contact-form .button { justify-self: start; cursor: pointer; font-size: 16px; }
.form-status { min-height: 24px; margin: 0; color: var(--green-650); font-weight: 700; }

.page-intro { padding: 85px 0 60px; background: var(--green-950); color: #fff; }
.page-intro h1 { color: #fff; max-width: 800px; margin: 12px 0 16px; }
.page-intro p { max-width: 720px; font-size: 20px; color: #dce9e2; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.project { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.project-visual { position: relative; height: 270px; margin: 0; overflow: hidden; background: var(--green-800); }
.project-visual img { width: 100%; height: 100%; object-fit: cover; }
.project-visual img.fit-top { object-position: center 30%; }
.project.featured { grid-column: span 2; }
.project.featured .project-visual { height: 360px; }
.project-body { padding: 28px; }
.project h2 { font-size: 30px; margin-bottom: 12px; }
.project p { margin: 0; color: var(--muted); }

.event-list { display: grid; gap: 18px; }
.event-card { display: grid; grid-template-columns: 190px 1fr; gap: 30px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px; }
.event-card .season { color: var(--blue-700); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.event-card h2 { font-size: 30px; margin-bottom: 10px; }
.event-card p { margin: 0; color: var(--muted); }
.event-calendar-date { display: grid; place-items: center; min-height: 112px; padding: 15px; border-radius: 11px; background: var(--blue-900); color: #fff; text-align: center; }
.event-calendar-date time { display: grid; line-height: 1; }
.event-calendar-date strong { font: 700 31px/1.05 Georgia, serif; }
.event-calendar-date span { margin-top: 7px; color: #b9d6ff; font-weight: 800; letter-spacing: .12em; }
.event-details { display: flex; flex-wrap: wrap; gap: 10px; }
.event-details span { padding: 7px 11px; border-radius: 999px; background: var(--blue-100); color: var(--blue-900); font-weight: 800; font-size: 14px; }
.event-highlight { border-color: var(--blue-700); box-shadow: 0 16px 38px rgba(4,81,200,.13); }
.event-highlight .event-calendar-date { background: var(--blue-700); }
.event-badge { display: inline-block; margin-bottom: 8px; padding: 6px 10px; border-radius: 999px; background: var(--green-800); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.notice { margin-top: 35px; background: var(--blue-100); border-left: 5px solid var(--blue-700); padding: 22px 25px; }
.notice strong { color: var(--blue-900); }

.cta { background: var(--blue-700); color: #fff; padding: 60px 0; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.cta h2 { color: #fff; font-size: 38px; margin-bottom: 8px; }
.cta p { margin: 0; color: #dce9e2; }
.site-footer { background: var(--green-950); color: #e1e9e5; padding: 45px 0; border-top: 5px solid var(--blue-700); }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 76px; height: 76px; flex: 0 0 76px; border-radius: 50%; object-fit: cover; background: #fff; }
.footer-brand p { margin: 0; }
.footer-row { display: flex; justify-content: space-between; gap: 30px; align-items: end; }
.footer-row p { margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a { color: #fff; }
.footer-croatian { color: #b9cec2; font-size: 14px; }

.site-header { transition: box-shadow .25s ease, background-color .25s ease; }
.site-header.scrolled { box-shadow: 0 9px 26px rgba(10,37,91,.11); }
.brand-logo { transition: transform .35s ease, box-shadow .35s ease; }
.brand:hover .brand-logo { transform: rotate(-3deg) scale(1.04); box-shadow: 0 0 0 5px rgba(4,81,200,.18); }
.hero::before { animation: hero-breathe 16s ease-in-out infinite alternate; }
.hero-content, .tourism-hero-content { animation: intro-rise .9s ease both; }
.motion-ready .reveal-item { opacity: 0; transform: translateY(28px); transition: opacity .7s ease var(--reveal-delay, 0ms), transform .7s cubic-bezier(.2,.65,.25,1) var(--reveal-delay, 0ms); }
.motion-ready .reveal-item.is-visible { opacity: 1; transform: translateY(0); }

@keyframes hero-breathe {
  from { transform: scale(1.01); }
  to { transform: scale(1.075); }
}

@keyframes intro-rise {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 820px) {
  .wrap { width: min(100% - 28px, 720px); }
  .header-row { min-height: 74px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 74px; background: var(--paper); padding: 14px; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .nav a { border-radius: 7px; }
  .hero { min-height: 610px; }
  .hero::before { background: linear-gradient(0deg, rgba(10,37,91,.92), rgba(15,38,25,.24)), url("images/pfarrkirche-luftaufnahme.jpg") center/cover no-repeat; }
  .hero-content { padding: 135px 0 60px; }
  .lead-grid, .gallery-grid, .tourism-home-grid, .tourism-intro, .discover-grid, .contact-grid { grid-template-columns: 1fr; gap: 35px; }
  .project.featured { grid-column: auto; }
  .project.featured .project-visual { height: 270px; }
  .cards { grid-template-columns: 1fr; }
  .tourism-cards { grid-template-columns: 1fr; }
  .tourism-home-image, .tourism-home-image img { min-height: 330px; }
  .discover-grid figure { height: 330px; }
  .section { padding: 66px 0; }
  .section-head, .cta-row, .footer-row { align-items: flex-start; flex-direction: column; }
  .event-preview { grid-template-columns: 1fr; }
  .event-date { text-align: left; border-right: 0; border-bottom: 1px solid var(--line); }
  .event-card { grid-template-columns: 1fr; gap: 12px; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand span:last-child { max-width: 205px; }
  .brand small { font-size: 12px; }
  .brand-logo { width: 52px; height: 52px; flex-basis: 52px; }
  .footer-brand img { width: 64px; height: 64px; flex-basis: 64px; }
  .hero h1 { font-size: 43px; }
  .values { grid-template-columns: 1fr; }
  .button-row, .button { width: 100%; }
  .project-visual { height: 220px; }
  .contact-form { padding: 23px; }
}

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