@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --bg: #f8f6f2;
  --fg: #2a2f3a;
  --primary: #6f9a7a;
  --primary-light: rgba(111, 154, 122, 0.1);
  --primary-fg: #ffffff;
  --card: #ffffff;
  --card-border: #e8e5e0;
  --border: #dad7d1;
  --muted: #676c77;
  --secondary-bg: rgba(233, 229, 222, 0.3);
  --accent: #c9a275;
}

* { box-sizing: border-box; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.02em;
  color: var(--fg);
}

a { color: inherit; }
a:hover { color: var(--primary); }

.font-serif { font-family: 'Playfair Display', serif; }
.font-sans { font-family: 'Plus Jakarta Sans', sans-serif; }
.text-primary { color: var(--primary) !important; }
.text-muted-custom { color: var(--muted); }
.text-accent { color: var(--accent); }
.bg-primary { background-color: var(--primary) !important; }
.bg-primary:hover { background-color: #5f8a6a !important; }

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--primary-fg);
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: #5f8a6a;
  border-color: #5f8a6a;
  box-shadow: 0 4px 12px rgba(111, 154, 122, 0.3);
}

.btn-outline-custom {
  border: 1px solid rgba(111, 154, 122, 0.2);
  color: var(--fg);
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  background: transparent;
  transition: all 0.2s;
}
.btn-outline-custom:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.btn-dark-custom {
  background-color: var(--fg);
  color: var(--bg);
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  border: none;
  transition: all 0.2s;
}
.btn-dark-custom:hover {
  background-color: #1a1f2a;
  color: var(--bg);
}

.divider-primary {
  width: 5rem;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  border: none;
  opacity: 1;
}

.card-custom {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
  overflow: hidden;
}

.card-custom:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* --- NAVBAR --- */
.navbar-custom {
  background: rgba(248, 246, 242, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(218, 215, 209, 0.4);
  padding: 0;
}

.navbar-custom .navbar-brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
}

.navbar-custom .brand-praxis {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary);
}

.navbar-custom .brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.navbar-custom .nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(42, 47, 58, 0.8);
  transition: color 0.2s;
  padding: 0.5rem 1rem !important;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--primary);
}

.navbar-custom .navbar-toggler {
  border: none;
  padding: 0.25rem;
}
.navbar-custom .navbar-toggler:focus {
  box-shadow: none;
}

/* --- HERO --- */
.hero-section {
  min-height: 85vh;
  background-image: url('../hero-reception.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(248, 246, 242, 0.4);
}

.hero-content {
  background: rgba(248, 246, 242, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1.5rem;
  padding: 2.5rem 3rem;
  max-width: 640px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
  .hero-content { padding: 2rem 1.5rem; }
  .hero-section { background-attachment: scroll; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* --- SECTIONS --- */
.section-light {
  background: var(--bg);
  padding: 5rem 0;
}
.section-secondary {
  background: var(--secondary-bg);
  padding: 5rem 0;
}

/* --- OPENING HOURS CARD --- */
.hours-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 2.5rem;
  padding: 2.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.hours-card .calendar-icon-bg {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: rgba(111, 154, 122, 0.15);
  font-size: 4rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(218, 215, 209, 0.5);
}
.hours-row:last-child { border-bottom: none; }

/* --- NOTFALL --- */
.notfall-card {
  background: var(--card);
  border: 1px solid #fca5a5;
  border-radius: 1.5rem;
  padding: 2rem 2.5rem;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.notfall-card h3 { color: #b91c1c; }
.notfall-card .notfall-number {
  color: #b91c1c;
  font-weight: 700;
  text-decoration: none;
}
.notfall-card .notfall-number:hover { text-decoration: underline; }

/* --- ANGEBOT --- */
.angebot-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
  transition: box-shadow 0.3s;
}
.angebot-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.angebot-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* --- TEAM --- */
.team-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
  transition: box-shadow 0.3s;
}
.team-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.team-card .team-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.7s;
}
.team-card:hover .team-photo {
  transform: scale(1.05);
}
.team-card .photo-wrapper {
  overflow: hidden;
  background: rgba(233, 229, 222, 0.5);
}

.team-card-sm .team-photo {
  aspect-ratio: 1/1;
}

.team-card-sm {
  border-radius: 2rem;
}

.team-placeholder {
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(233, 229, 222, 0.3);
}

/* --- JOB OPENING --- */
.job-card {
  background: var(--primary-light);
  border: 1px solid rgba(111, 154, 122, 0.2);
  border-radius: 1.5rem;
  padding: 2rem 3rem;
  position: relative;
  overflow: hidden;
}
.job-card .job-icon-bg {
  position: absolute;
  right: -1rem;
  top: -1rem;
  font-size: 12rem;
  color: rgba(111, 154, 122, 0.08);
}

/* --- CONTACT --- */
.contact-icon {
  width: 3rem;
  height: 3rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.contact-hours-card {
  background: var(--primary-light);
  border: 1px solid rgba(111, 154, 122, 0.2);
  border-radius: 1.5rem;
  padding: 2rem;
}

.email-notice {
  background: rgba(233, 229, 222, 0.5);
  border-radius: 0.75rem;
  padding: 1rem;
}

/* --- MAP --- */
.map-wrapper {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border: 1px solid rgba(218, 215, 209, 0.5);
  min-height: 500px;
}
.map-wrapper iframe {
  filter: grayscale(30%) contrast(90%);
  opacity: 0.9;
}

/* --- GALLERY --- */
.gallery-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 0.75rem;
  cursor: pointer;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.gallery-thumb:hover img {
  transform: scale(1.05);
}

/* --- LIGHTBOX --- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay img {
  max-height: 90vh;
  max-width: 90vw;
  object-fit: contain;
  border-radius: 0.75rem;
}
.lightbox-btn {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s;
}
.lightbox-btn:hover { color: #fff; }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
}

/* --- FOOTER --- */
.footer-custom {
  background: rgba(233, 229, 222, 0.5);
  border-top: 1px solid rgba(218, 215, 209, 0.4);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-custom h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.footer-custom .footer-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-custom .footer-link:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(218, 215, 209, 0.4);
  padding-top: 2rem;
  margin-top: 3rem;
}

/* --- MODAL OVERRIDES --- */
.modal-custom .modal-content {
  border-radius: 1.5rem;
  border: none;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}

.modal-custom .modal-header {
  border-bottom: 1px solid rgba(218, 215, 209, 0.4);
  padding: 1.25rem 1.5rem;
}

.modal-custom .modal-header .modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
}

.modal-custom .btn-close:focus { box-shadow: none; }

/* --- SCROLL ANIMATIONS --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- PAGE HEADER --- */
.page-header {
  text-align: center;
  padding: 3rem 0 4rem;
}
.page-header h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .page-header h1 { font-size: 2.5rem; }
}

/* --- SECTION HEADING LEFT BORDER --- */
.section-heading-bordered {
  font-size: 1.75rem;
  padding-left: 1rem;
  border-left: 4px solid var(--primary);
  margin-bottom: 2.5rem;
}
