/* ============================================================
   layout.css – Container, Nav, Heroes, Footer
   Hospiz Sankt Katharina
   ============================================================ */

/* ── Container & Sections ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section          { padding: var(--section-py) 0; }
.section--cream   { background: var(--color-cream); }
.section--navy    { background: var(--color-navy); color: var(--color-white); }
.section--navy h2,
.section--navy h3,
.section--navy h4 { color: var(--color-white); }
.section--white   { background: var(--color-white); }

/* ── Navigation ──────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--color-white);
  height: var(--nav-height);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(255,255,248,.97);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  gap: 1.5rem;
}

.nav-logo         { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img     { height: 56px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  padding: 0; margin: 0;
  flex: 1;
  justify-content: center;
}

.nav-menu a {
  display: block;
  padding: .5rem .9rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--color-navy);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  letter-spacing: .01em;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--color-navy);
  color: var(--color-white);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-navy);
  white-space: nowrap;
}
.nav-phone svg { flex-shrink: 0; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  cursor: pointer;
  background: none; border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--color-navy);
  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 */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--color-white);
  padding: calc(var(--nav-height) + 24px) 24px 40px;
  flex-direction: column;
  overflow-y: auto;
}

#mobile-menu.open           { display: flex; }
#mobile-menu ul             { list-style: none; padding: 0; margin: 0 0 auto; }
#mobile-menu ul li          { border-bottom: 1px solid var(--color-border); }
#mobile-menu ul a           { display: block; padding: 1rem 0; font-size: 1.1rem; font-weight: 600; color: var(--color-navy); }
#mobile-menu ul a:hover     { color: var(--color-amber); }

.mobile-contact {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

/* ── Homepage Hero ───────────────────────────────────────────── */
.home-hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  max-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: var(--nav-height);
}

.home-hero__bg {
  position: absolute; inset: 0;
  background-image: url('../wp-content/uploads/2025/02/2412_Hospiz-Garten_L1073974-scaled.jpg');
  background-size: cover;
  background-position: center left;
}

.home-hero__overlay {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.12);
}

.home-hero__content {
  position: relative; z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 720px;
}

.home-hero__content h1 {
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
  margin-bottom: .75rem;
}

.home-hero__content .subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255,255,255,.92);
  font-family: var(--font-sans);
  text-shadow: 0 1px 4px rgba(0,0,0,.25);
}

.home-hero__scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  display: flex; flex-direction: column;
  align-items: center; gap: .5rem;
  font-size: .8rem; opacity: .7;
  animation: bounce 2s infinite;
}

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

/* ── Page Hero (altes Klassen-System, noch referenziert) ───────── */
.page-hero {
  position: relative; height: 340px;
  display: flex; align-items: flex-end; padding-bottom: 48px;
  overflow: hidden; margin-top: var(--nav-height);
}
.page-hero--tall          { height: 480px; }
.page-hero__bg            { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: var(--color-navy); }
.page-hero__overlay       { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,43,69,.2), rgba(0,43,69,.7)); }
.page-hero__content       { position: relative; z-index: 1; width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; color: var(--color-white); }
.page-hero__content h1    { color: var(--color-white); }
.page-hero__content .subtitle { font-size: 1.1rem; color: rgba(255,255,255,.88); margin-top: .5rem; }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: var(--color-navy);
  color: rgba(255,255,255,.75);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img     { height: 64px; width: auto; margin-bottom: 1.25rem; border-radius: 6px; }
.footer-brand p       { font-size: .9rem; line-height: 1.7; margin-bottom: 1.5rem; }

.footer-nav h4        { color: var(--color-amber); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-nav ul        { list-style: none; padding: 0; }
.footer-nav li        { margin-bottom: .5rem; }
.footer-nav a         { color: rgba(255,255,255,.65); font-size: .9rem; transition: color var(--transition); }
.footer-nav a:hover   { color: var(--color-amber); }

.footer-contact h4    { color: var(--color-amber); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-contact p     { font-size: .9rem; line-height: 1.8; }
.footer-contact a     { color: rgba(255,255,255,.65); }
.footer-contact a:hover { color: var(--color-amber); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .75rem;
  font-size: .8rem;
}

.footer-bottom a       { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--color-amber); }
