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

:root {
  --sage: #1e3a5f;
  --sage-light: #e6ecf4;
  --sage-mid: #4a6fa5;
  --warm: #f4f6f9;
  --cream: #f8fafc;
  --text: #1a1f2e;
  --text-muted: #5a6272;
  --accent: #c17f3e;
  --white: #ffffff;
  --border: rgba(30,58,95,0.15);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(253,250,246,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  transition: height 0.3s ease, box-shadow 0.3s ease;
}

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

.logo {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--sage);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 36px; height: 36px;
  background: var(--sage);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: width 0.3s ease, height 0.3s ease, font-size 0.3s ease;
}

nav.scrolled .logo-icon {
  width: 28px; height: 28px;
  font-size: 14px;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--sage); }

.uebersiedlung-banner {
  background: #c62828;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(198,40,40,0.25);
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0%, 100% { box-shadow: 0 4px 16px rgba(198,40,40,0.25); }
  50%       { box-shadow: 0 4px 28px rgba(198,40,40,0.55); }
}

/* HERO */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 68px;
  position: relative;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 4rem 5rem 5rem;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sage-light);
  color: var(--sage);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  width: fit-content;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--sage-mid);
  border-radius: 50%;
}

h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.5rem;
  text-align: center;
}

h1 em {
  font-style: italic;
  color: var(--sage);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 420px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--sage);
  color: white;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
}

.btn-primary:hover {
  background: #163050;
  transform: translateY(-2px);
}

.btn-outline {
  color: var(--sage);
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1.5px solid var(--sage);
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--sage-light);
}

.hero-right {
  position: relative;
  background: var(--sage-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 2rem;
  gap: 1.2rem;
}

/* Paw pattern background */
.hero-right::before {
  content: '🐾';
  position: absolute;
  font-size: 200px;
  opacity: 0.06;
  bottom: -20px;
  right: -30px;
  transform: rotate(-15deg);
  filter: grayscale(1);
  pointer-events: none;
}

/* INFO CARDS */
.info-card {
  background: white;
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 4px 24px rgba(74,124,89,0.1);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.info-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.info-card-header a:not([href]) {
  width: 100%;
  margin-left: 0 !important;
  text-align: center;
}

.info-card-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.icon-vacation { background: #fff3e0; }
.icon-emergency { background: #fdecea; }

.info-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--text);
}

/* VACATION CARD */
.vacation-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
  align-items: center;
}

.vacation-form label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vacation-form input[type="date"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font-size: 0.85rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s;
}

.vacation-form input[type="date"]:focus {
  border-color: var(--sage-mid);
}

.vacation-notice {
  grid-column: 1 / -1;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  font-size: 0.8rem;
  color: #7a5800;
  display: none;
  white-space: nowrap;
}

.vacation-notice.active { display: block; }

.vacation-save-btn {
  grid-column: 1 / -1;
  background: var(--sage);
  color: white;
  border: none;
  border-radius: 100px;
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
  width: fit-content;
}

.vacation-save-btn:hover { background: #163050; }

/* EMERGENCY CARD */
.notdienst-rows {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.notdienst-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.82rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(74,124,89,0.08);
}

.notdienst-row:last-child { border-bottom: none; }

.notdienst-day {
  color: var(--text-muted);
  min-width: 120px;
}

.notdienst-time {
  color: var(--text);
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}

.addr-street::after { content: ', '; }
.addr-city { }

@media (max-width: 900px) {
  .address-split  { white-space: normal; display: flex; flex-direction: column; text-align: right; }
  .addr-street { white-space: nowrap; }
  .addr-street::after { content: ''; }
}

.notdienst-tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.9rem;
  background: #fdecea;
  color: #c0392b;
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.notdienst-tel:hover { background: #fcd2cf; }

/* PHOTO AREA */
.hero-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.photo-slot {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: rgba(74,124,89,0.12);
  border: 2px dashed rgba(74,124,89,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
}

.photo-slot:hover {
  background: rgba(74,124,89,0.18);
  border-color: var(--sage-mid);
}

.photo-slot img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.photo-slot-label {
  font-size: 0.75rem;
  color: var(--sage);
  font-weight: 500;
  text-align: center;
  padding: 0.5rem;
  z-index: 1;
}

.photo-slot-icon {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
  z-index: 1;
}

.photo-slot input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.photo-remove {
  position: absolute;
  top: 6px; right: 6px;
  background: rgba(0,0,0,0.55);
  color: white;
  border: none;
  border-radius: 50%;
  width: 22px; height: 22px;
  font-size: 12px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  line-height: 1;
}

.photo-slot.has-photo .photo-remove { display: flex; }
.photo-slot.has-photo .photo-slot-label,
.photo-slot.has-photo .photo-slot-icon { display: none; }
.photo-slot.has-photo input[type="file"] { display: none; }

.stat-number {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--sage);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* SERVICES */
.section {
  padding: 6rem 5rem;
}

#leistungen, #aktuelles {
  position: relative;
}

/* Aktuelles ausgeblendet – gilt für alle Bildschirmgrößen */
#aktuelles { display: none !important; }
#nav-aktuelles { display: none !important; }

#leistungen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../pictures/leistungen.jpg') center center / cover no-repeat;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

#leistungen > *, #aktuelles > * {
  position: relative;
  z-index: 1;
}

#aktuelles::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../pictures/aktuelles.jpg') center center / cover no-repeat;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  background: var(--sage-light);
  color: var(--sage);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--text);
  line-height: 1.2;
}

h2 em {
  font-style: italic;
  color: var(--sage);
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 0.8rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: default;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(74,124,89,0.1);
}

.service-emoji {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
}

.service-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* TEAM */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.team-card {
  text-align: center;
}

.team-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--sage-mid);
  opacity: 0.4;
}

.team-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.team-card .role {
  font-size: 0.85rem;
  color: var(--sage);
  font-weight: 500;
}

.team-card .bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* HOURS */
.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
  align-items: start;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr { border-bottom: 1px solid var(--border); }
.hours-table tr:last-child { border-bottom: none; }

.hours-table td {
  padding: 0.7rem 0;
  font-size: 0.9rem;
}

.hours-table td:first-child {
  width: 50%;
}

.hours-table td:last-child {
  text-align: right;
  color: var(--sage);
  font-weight: 500;
  white-space: nowrap;
}

.day-label { color: var(--text-muted); white-space: nowrap; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 44px; height: 44px;
  background: var(--sage-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.contact-detail span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* TESTIMONIALS */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 1.8rem;
  border: 1px solid var(--border);
}

.stars {
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
}

.testimonial-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

/* EMERGENCY */
.emergency-banner {
  background: #fff3e0;
  border: 1.5px solid #f4a030;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 700px;
  margin: 3rem auto 0;
}

.emergency-icon { font-size: 1.8rem; }

.emergency-banner strong {
  display: block;
  color: #b36a00;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.emergency-banner span {
  font-size: 0.9rem;
  color: #7a4a00;
}

.emergency-phone {
  margin-left: auto;
  background: #f4a030;
  color: white;
  text-decoration: none;
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  transition: background 0.2s;
}

.emergency-phone:hover { background: #d4892a; }

/* FOOTER */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 3rem 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  color: white;
  font-weight: 400;
}

footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

footer a:hover { color: var(--sage-mid); }

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

/* SCROLL ANIMATIONS */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse-blue {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,111,165,0.5); }
  50% { box-shadow: 0 0 0 5px rgba(74,111,165,0); }
}

/* NEWS TIMELINE */
.news-timeline {
  max-width: 940px;
  margin: 0 auto;
  position: relative;
}

.news-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--sage), var(--sage-light));
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-side {
  flex: 1;
  display: flex;
}

.timeline-side.left  { justify-content: flex-end;  padding-right: 2.5rem; }
.timeline-side.right { justify-content: flex-start; padding-left: 2.5rem; }

.timeline-dot {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sage);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--sage);
  margin-top: 2rem;
  z-index: 1;
}

.timeline-card {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 2px 12px rgba(30,58,95,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 52px rgba(30,58,95,0.14);
}

.timeline-card-img-wrap {
  position: relative;
  overflow: hidden;
}

.timeline-card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.timeline-card-no-img {
  height: 280px;
  background: linear-gradient(135deg, var(--sage-light), var(--warm));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.timeline-year-badge {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: rgba(0,0,0,0.5);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.75rem;
  border-radius: 100px;
  backdrop-filter: blur(6px);
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.03em;
}

.timeline-card-body {
  padding: 1.2rem 1.4rem 1.4rem;
}

.timeline-card-body .news-date {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 0.4rem;
  font-family: 'DM Sans', sans-serif;
}

.timeline-card-body .news-category {
  display: inline-block;
  background: var(--sage);
  color: white;
  font-size: 0.63rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.55rem;
}

.timeline-card-body h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
  color: var(--text);
  line-height: 1.3;
}

.timeline-card-body p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { min-height: unset; }
  .hero-left { padding: 3rem 2rem; }
  .hero-left img { max-width: 300px; height: auto; }
  .section { padding: 4rem 2rem; }
  .services-grid, .testimonials-grid, .team-grid { grid-template-columns: 1fr; }
  .news-timeline::before { display: none; }
  .timeline-item { flex-direction: column; margin-bottom: 1.5rem; }
  .timeline-side.left, .timeline-side.right { padding: 0; justify-content: flex-start; width: 100%; }
  .timeline-side.left:empty, .timeline-side.right:empty { display: none; }
  .timeline-dot { display: none; }
  .timeline-card { max-width: 100%; border-radius: 16px; }
  .hours-grid { grid-template-columns: 1fr; }
  footer { padding: 2rem; flex-direction: column; text-align: center; }
  .nav-links { display: none; }
  .emergency-banner { flex-direction: column; text-align: center; }
  .emergency-phone { margin: 0; }

}
