/* ===========================================
   DAS DORF-RUDEL — Styles
   =========================================== */

/* ---------- Custom Properties ---------- */
:root {
  --clr-bg:       #F6EFE2;
  --clr-accent:   #3F4E36;
  --clr-cta:      #C2703D;
  --clr-cta-hover:#a85e30;
  --clr-text:     #2A2118;
  --clr-secondary:#8A9676;
  --clr-card-bg:  #faf6ee;
  --clr-white:    #fffcf7;

  --ff-display: 'Fraunces', Georgia, serif;
  --ff-body:    'Hanken Grotesk', system-ui, sans-serif;

  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 2px 12px rgba(42, 33, 24, 0.08);
  --shadow-hover: 0 6px 24px rgba(42, 33, 24, 0.14);
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  /* subtle paper texture via noise */
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
ul { list-style: none; }

/* ---------- Container ---------- */
.container {
  width: min(90%, 1100px);
  margin-inline: auto;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--clr-accent);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 1rem;
}

.subsection-title {
  font-size: 1.35rem;
  text-align: center;
  margin: 2.5rem 0 1.5rem;
  font-style: italic;
}

.section-intro {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: 1.08rem;
  color: var(--clr-text);
  opacity: 0.9;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  text-align: center;
}

.btn-cta {
  background: var(--clr-cta);
  color: var(--clr-white);
}

.btn-cta:hover,
.btn-cta:focus-visible {
  background: var(--clr-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(194, 112, 61, 0.35);
}

.btn:focus-visible {
  outline: 3px solid var(--clr-cta);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 239, 226, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(63, 78, 54, 0.1);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(42, 33, 24, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--clr-accent);
  white-space: nowrap;
}

.logo-paw { color: var(--clr-cta); flex-shrink: 0; }

.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-list {
  display: flex;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-cta);
  transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

.nav-link:focus-visible {
  outline: 2px solid var(--clr-cta);
  outline-offset: 4px;
  border-radius: 2px;
}

.header-cta { font-size: 0.85rem; padding: 0.55rem 1.25rem; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}

.burger:focus-visible {
  outline: 2px solid var(--clr-cta);
  outline-offset: 4px;
  border-radius: 4px;
}

.burger-line {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--clr-accent);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.burger.open .burger-line:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open .burger-line:nth-child(2) { opacity: 0; }
.burger.open .burger-line:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-illustration {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 6rem 1rem 8rem;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  color: var(--clr-accent);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  color: var(--clr-text);
  opacity: 0.9;
}

.pill {
  display: inline-block;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  background: rgba(63, 78, 54, 0.12);
  color: var(--clr-accent);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-cta {
  font-size: 1.05rem;
  padding: 0.85rem 2.25rem;
}

/* Hero with photo */
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(42, 33, 24, 0.35) 0%,
    rgba(42, 33, 24, 0.5) 50%,
    rgba(42, 33, 24, 0.65) 100%
  );
}

.hero--photo .hero-title,
.hero--photo .hero-subtitle {
  color: var(--clr-white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero--photo .pill {
  background: rgba(255,255,255,0.2);
  color: var(--clr-white);
  backdrop-filter: blur(4px);
}

.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 2;
}

/* ---------- Sections ---------- */
.section {
  padding: 5rem 0;
}

.section:nth-child(even) {
  background: rgba(63, 78, 54, 0.04);
}

/* ---------- Photo Slots ---------- */
.photo-slot {
  max-width: 700px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem 1rem;
  background: rgba(138, 150, 118, 0.12);
  color: var(--clr-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 220px;
  border: 2px dashed rgba(138, 150, 118, 0.3);
  border-radius: var(--radius-lg);
}

.photo-slot--round {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.photo-slot--round .photo-placeholder {
  min-height: unset;
  height: 100%;
  padding: 1rem;
  border-radius: 50%;
}

.photo-slot--dog {
  max-width: 100%;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

.photo-slot--dog .photo-placeholder {
  min-height: 140px;
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
}

.placeholder-icon { opacity: 0.5; }

/* ---------- Highlights / Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.card {
  background: var(--clr-card-bg);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.card-icon {
  color: var(--clr-cta);
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--clr-accent);
}

.card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Trust ---------- */
.trust {
  padding: 3rem 0;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
  background: var(--clr-card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--clr-cta);
}

.trust-icon {
  color: var(--clr-cta);
  flex-shrink: 0;
}

.trust-text h2 {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.trust-text p {
  font-size: 0.95rem;
}

/* ---------- Rudel ---------- */
.rudel-people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.person-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--clr-card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.person-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.person-card p {
  font-size: 0.95rem;
  text-align: left;
}

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

.dog-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--clr-card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.dog-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  font-style: italic;
}

.dog-card p {
  font-size: 0.9rem;
  text-align: left;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(transparent, rgba(42, 33, 24, 0.75));
  color: var(--clr-white);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(42, 33, 24, 0.95);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}

.lightbox-caption {
  color: rgba(246, 239, 226, 0.85);
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: rgba(246, 239, 226, 0.8);
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  z-index: 10;
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.5rem;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
  line-height: 1;
  padding: 0.5rem;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-close:hover { transform: scale(1.1); }

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(246, 239, 226, 0.6);
  font-size: 0.85rem;
}

/* ---------- Preise ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.price-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--clr-card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.price-card.featured {
  border: 2px solid var(--clr-cta);
  position: relative;
}

.price-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.price-amount {
  font-family: var(--ff-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--clr-cta);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.price-unit {
  font-size: 0.85rem;
  color: var(--clr-secondary);
  font-weight: 500;
}

.price-desc {
  font-size: 0.85rem;
  color: var(--clr-text);
  opacity: 0.75;
  margin-top: 0.6rem;
  line-height: 1.45;
}

.price-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.95rem;
}

/* ---------- Kontakt ---------- */
.kontakt {
  background: #3b2a1a;
  color: #C0915C; /* oak brown */
}

.kontakt .section-title { color: #C0915C; }
.kontakt .section-intro { color: #C0915C; }
.kontakt .contact-item { color: #C0915C; }
.kontakt .contact-item a { color: #C0915C; }
.kontakt .contact-item svg { color: #C0915C; }
.kontakt address { color: #C0915C; }

.contact-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  color: #C0915C;
}

.contact-item svg {
  color: #C0915C;
  flex-shrink: 0;
}

.contact-item a {
  color: #C0915C;
}

.contact-item a:hover,
.contact-item a:focus-visible {
  color: #D8AE7B; /* lighter oak on hover */
  text-decoration: underline;
}

.contact-item a:focus-visible {
  outline: 2px solid #C0915C;
  outline-offset: 3px;
  border-radius: 2px;
}

.contact-signature {
  text-align: center;
  font-size: 1.1rem;
  margin-top: 2rem;
  font-family: var(--ff-display);
  color: #C0915C;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #3b2a1a;
  color: rgba(246, 239, 226, 0.85);
  padding: 2rem 0;
  font-size: 0.85rem;
  border-top: 1px solid rgba(246, 239, 226, 0.1);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--clr-bg);
  font-size: 0.95rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  transition: color var(--transition);
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--clr-cta);
}

.footer-legal a:focus-visible {
  outline: 2px solid var(--clr-cta);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer-credit {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(246, 239, 226, 0.1);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(246, 239, 226, 0.6);
}

.footer-credit a {
  color: rgba(246, 239, 226, 0.85);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: var(--clr-cta);
  text-decoration: underline;
}

.footer-credit a:focus-visible {
  outline: 2px solid var(--clr-cta);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Legal Modals ---------- */
.legal-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: 1rem;
}

.legal-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.legal-modal {
  background: var(--clr-bg);
  border-radius: 12px;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.legal-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--clr-text);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.legal-modal-close:hover {
  background: rgba(0, 0, 0, 0.08);
}

.legal-modal-title {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  color: var(--clr-heading);
  margin-bottom: 1.5rem;
  padding-right: 2rem;
}

.legal-modal-body {
  color: var(--clr-text);
  line-height: 1.7;
  font-size: 0.95rem;
}

.legal-modal-body p {
  margin-bottom: 1rem;
}

.legal-modal-body strong {
  color: var(--clr-heading);
}

.legal-modal-body h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--clr-heading);
}

.legal-modal-body ul, .legal-modal-body ol {
  margin: 0.5rem 0 1rem 1.5rem;
}

.legal-modal-body li {
  margin-bottom: 0.3rem;
}

/* ---------- Animations ---------- */
/* Hero fade-in on load */
.anim-fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s ease forwards;
}
.anim-delay-1 { animation-delay: 0.15s; }
.anim-delay-2 { animation-delay: 0.3s; }
.anim-delay-3 { animation-delay: 0.45s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- Paw trail decoration ---------- */
.betreuung::before {
  content: '';
  display: block;
  width: 80px;
  height: 40px;
  margin: 0 auto 1.5rem;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='40' xmlns='http://www.w3.org/2000/svg' fill='%233F4E36'%3E%3Cellipse cx='15' cy='25' rx='7' ry='5.5'/%3E%3Cellipse cx='7' cy='14' rx='3' ry='4' transform='rotate(-15 7 14)'/%3E%3Cellipse cx='15' cy='11' rx='3' ry='4'/%3E%3Cellipse cx='23' cy='14' rx='3' ry='4' transform='rotate(15 23 14)'/%3E%3Cellipse cx='50' cy='20' rx='7' ry='5.5'/%3E%3Cellipse cx='42' cy='9' rx='3' ry='4' transform='rotate(-15 42 9)'/%3E%3Cellipse cx='50' cy='6' rx='3' ry='4'/%3E%3Cellipse cx='58' cy='9' rx='3' ry='4' transform='rotate(15 58 9)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .burger { display: flex; }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100dvh;
    background: var(--clr-bg);
    padding: 5rem 2rem 2rem;
    box-shadow: -4px 0 24px rgba(42, 33, 24, 0.15);
    transition: right var(--transition);
    z-index: 105;
  }

  .main-nav.open { right: 0; }

  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
  }

  .nav-link { font-size: 1.1rem; }

  .header-cta { display: none; }

  .hero { min-height: 70vh; }
  .hero-content { padding: 4rem 1rem 6rem; }

  .card-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }

  .trust-badge {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .rudel-people { grid-template-columns: 1fr; }

  .contact-details { flex-direction: column; align-items: center; }

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

@media (max-width: 480px) {
  .price-grid { grid-template-columns: 1fr; }
  .dog-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox-prev { left: 0.25rem; font-size: 2.5rem; }
  .lightbox-next { right: 0.25rem; font-size: 2.5rem; }
}
