/* ============================================================
   Wellmich.de – Hauptstylesheet
   ============================================================ */

:root {
  --green-dark:   #1e4d2b;
  --green:        #2d6a3f;
  --green-light:  #4a8c5c;
  --gold:         #b8911a;
  --gold-light:   #d4aa35;
  --stone:        #f0ebe3;
  --stone-dark:   #ddd5c8;
  --text:         #1a1a1a;
  --text-muted:   #555;
  --white:        #ffffff;
  --shadow:       0 4px 24px rgba(0,0,0,.12);
  --shadow-hover: 0 8px 40px rgba(0,0,0,.18);
  --radius:       10px;
  --transition:   .3s ease;
  --max-width:    1180px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
ul { list-style: none; }

/* ── Typography ───────────────────────────────────────────── */

h1, h2, h3, h4, h5 {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.25;
  color: var(--green-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.section-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}

/* ── Layout helpers ───────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--stone);
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }

/* ── Navigation ───────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.12);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav__logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.1;
}

.nav__logo span {
  display: block;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .05em;
  color: var(--text-muted);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding-bottom: 2px;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }
.nav__links a:hover { color: var(--green-dark); }

/* Dropdown */
.nav__dropdown { position: relative; }
.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + .75rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: .5rem 0;
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-menu a {
  display: block;
  padding: .5rem 1.25rem;
  font-size: .875rem;
  color: var(--text);
}

.nav__dropdown-menu a:hover {
  background: var(--stone);
  color: var(--green-dark);
}

.nav__dropdown-menu a::after { display: none; }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  background: none;
  border: none;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--stone-dark);
}

.nav__mobile.open { display: flex; }

.nav__mobile a {
  padding: .6rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--stone-dark);
}

.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a.sub { padding-left: 1.25rem; font-size: .9rem; color: var(--text-muted); }

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/Burg-Maus-und-Kirche-Sankt-Martin-1.JPG');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.05);
  animation: heroZoom 8s ease forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,30,15,.7) 0%,
    rgba(10,30,15,.45) 50%,
    rgba(10,30,15,.3) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 700px;
  animation: heroFade .9s .2s both;
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__label {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: .75rem;
}

.hero__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: .9;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.7);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: bounce 2s 1.5s infinite;
}

.hero__scroll::before {
  content: '';
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.5);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .02em;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(45,106,63,.35);
}

.btn--primary:hover {
  background: var(--green-dark);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(45,106,63,.45);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.7);
}

.btn--outline:hover {
  background: rgba(255,255,255,.1);
  color: var(--white);
  border-color: var(--white);
}

.btn--gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(184,145,26,.35);
}

.btn--gold:hover {
  background: var(--gold-light);
  color: var(--white);
}

/* ── Cards ───────────────────────────────────────────────── */

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.card:hover .card__img img { transform: scale(1.06); }

.card__body {
  padding: 1.5rem;
}

.card__tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: .75rem;
}

.card__text {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* ── Feature boxes ───────────────────────────────────────── */

.feature {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.75rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

.feature__body h4 { margin-bottom: .35rem; }
.feature__body p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* ── Gallery ─────────────────────────────────────────────── */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery__item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.gallery__item:hover img { transform: scale(1.08); }

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.38) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C%2Fsvg%3E") center / 28px no-repeat;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery__item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 8px 60px rgba(0,0,0,.6);
  transform: scale(.95);
  transition: transform .3s;
}

.lightbox.open .lightbox__img { transform: scale(1); }

.lightbox__close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--transition);
}

.lightbox__close:hover { background: rgba(255,255,255,.25); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--transition);
}

.lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__nav--prev { left: 1.5rem; }
.lightbox__nav--next { right: 1.5rem; }

.lightbox__caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  background: rgba(0,0,0,.4);
  padding: .4rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── Page hero (inner pages) ─────────────────────────────── */

.page-hero {
  position: relative;
  height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: 70px;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,25,15,.8) 0%, rgba(10,25,15,.3) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0;
  color: var(--white);
}

.page-hero__content h1 { color: var(--white); }

.breadcrumb {
  display: flex;
  gap: .5rem;
  align-items: center;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  margin-top: .5rem;
}

.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { opacity: .5; }

/* ── Content page layout ─────────────────────────────────── */

.content-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

.sidebar__widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar__widget h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--stone-dark);
}

.sidebar__post {
  display: flex;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--stone-dark);
}

.sidebar__post:last-child { border-bottom: none; }

.sidebar__post img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.sidebar__post-title {
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: .25rem;
}

.sidebar__post-date {
  font-size: .75rem;
  color: var(--text-muted);
}

/* ── Contact form ────────────────────────────────────────── */

.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.form__label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form__input,
.form__textarea {
  padding: .85rem 1rem;
  border: 2px solid var(--stone-dark);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(74,140,92,.15);
}

.form__textarea { min-height: 140px; resize: vertical; }

/* ── Info boxes ──────────────────────────────────────────── */

.info-box {
  background: var(--stone);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.info-box strong { color: var(--green-dark); display: block; margin-bottom: .25rem; }

/* ── Footer ──────────────────────────────────────────────── */

.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.8);
  padding: 3.5rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer__logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: .35rem;
}

.footer__tagline {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 1rem;
}

.footer__desc { font-size: .875rem; color: rgba(255,255,255,.65); }

.footer__heading {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer__links { display: flex; flex-direction: column; gap: .5rem; }
.footer__links a {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--gold-light); }

.footer__address {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  line-height: 1.9;
}

.footer__address a {
  color: rgba(255,255,255,.65);
}

.footer__address a:hover { color: var(--gold-light); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}

.footer__bottom a {
  color: rgba(255,255,255,.45);
}

.footer__bottom a:hover { color: rgba(255,255,255,.8); }

/* ── Animations (scroll reveal) ──────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── Section divider ─────────────────────────────────────── */

.divider {
  width: 56px;
  height: 3px;
  background: linear-gradient(to right, var(--green), var(--gold));
  border-radius: 2px;
  margin: .75rem 0 1.5rem;
}

.divider--center { margin: .75rem auto 1.5rem; }

/* ── Page specific ───────────────────────────────────────── */

/* Veranstaltungen */
.event-placeholder {
  background: var(--stone);
  border: 2px dashed var(--stone-dark);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  color: var(--text-muted);
}

/* Blog */
.blog-card__meta {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
}

/* ── Map ─────────────────────────────────────────────────── */

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16/7;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 900px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar { order: -1; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }

  .hero { min-height: 80vh; }

  .section { padding: 3.5rem 0; }

  .page-hero { height: 280px; }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ── Print ───────────────────────────────────────────────── */
@media print {
  .nav, .hero__scroll, .lightbox, .footer { display: none; }
  .page-hero { margin-top: 0; }
}
