/* ===== Snow Dancer's – Neufundländer Zucht ===== */

:root {
  --primary:   #1a3a5c;   /* Dunkelblau – wie das Meer */
  --accent:    #c97d2e;   /* Goldbraun – Neufundländer Fell */
  --light:     #f4f1ec;   /* Warmes Weiß */
  --dark:      #1c1c1c;
  --text:      #333333;
  --muted:     #666666;
  --white:     #ffffff;
  --nav-h:     70px;
  --radius:    8px;
  --shadow:    0 4px 20px rgba(0,0,0,.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--light);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

/* ---------- Navigation ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.nav-brand span { color: var(--accent); }

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

.nav-links a {
  display: block;
  padding: .45rem .85rem;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,.15);
  color: var(--white);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 520px;
  background: var(--primary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/BannerKopfEasyNeu.png');
  background-size: cover;
  background-position: center top;
  filter: brightness(.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 1rem 2rem;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}

.hero-content h1 span { color: var(--accent); }

.hero-content p {
  margin-top: 1rem;
  font-size: 1.15rem;
  opacity: .9;
  max-width: 560px;
  margin-inline: auto;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

.btn {
  display: inline-block;
  margin-top: 1.75rem;
  padding: .8rem 2rem;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  border-radius: 40px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
  color: var(--white);
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2a5a8c 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 1.5rem 3rem;
}

.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero p { margin-top: .5rem; opacity: .8; font-size: 1.05rem; }

/* ---------- Section ---------- */
.section {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary);
  margin-bottom: .5rem;
  position: relative;
  padding-bottom: .75rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title.center { text-align: center; }
.section-title.center::after { left: 50%; transform: translateX(-50%); }

.section-sub {
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.section-sub.center { text-align: center; margin-inline: auto; }

/* ---------- Cards Grid ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

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

.card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,.15); }

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body { padding: 1.25rem 1.5rem 1.5rem; }

.card-body h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: .5rem; }
.card-body p  { font-size: .9rem; color: var(--muted); line-height: 1.6; }

/* ---------- Dog Profile ---------- */
.dog-profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.dog-profile.reverse { direction: rtl; }
.dog-profile.reverse > * { direction: ltr; }

.dog-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}

.dog-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.dog-info h2 { color: var(--primary); font-size: 1.6rem; margin-bottom: .35rem; }
.dog-info .dog-subtitle { color: var(--accent); font-weight: 600; margin-bottom: 1rem; font-size: .95rem; }
.dog-info p { color: var(--text); margin-bottom: .75rem; }

.dog-meta {
  list-style: none;
  margin: 1.25rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem .75rem;
}

.dog-meta li { font-size: .9rem; color: var(--text); }
.dog-meta li strong { color: var(--primary); display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Litter Table ---------- */
.litter-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2.25rem;
  margin-bottom: 2.5rem;
}

.litter-section h3 { color: var(--primary); font-size: 1.3rem; margin-bottom: .35rem; }
.litter-section .litter-meta { color: var(--muted); font-size: .9rem; margin-bottom: 1.25rem; }

.litter-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.litter-table th {
  background: var(--primary);
  color: var(--white);
  padding: .6rem .9rem;
  text-align: left;
  font-weight: 600;
}
.litter-table td { padding: .55rem .9rem; border-bottom: 1px solid #eee; vertical-align: top; }
.litter-table tr:last-child td { border-bottom: none; }
.litter-table tr:nth-child(even) td { background: #f8f7f4; }

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

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  transition: transform .2s;
}

.gallery-item:hover { transform: scale(1.02); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-height: 85vh;
  max-width: 90vw;
  border-radius: var(--radius);
  box-shadow: 0 10px 50px rgba(0,0,0,.5);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
}

/* ---------- Show Table ---------- */
.show-year { margin-bottom: 2.5rem; }
.show-year h3 { color: var(--primary); font-size: 1.2rem; margin-bottom: 1rem; padding-left: .75rem; border-left: 3px solid var(--accent); }

.show-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.show-table th {
  background: var(--primary);
  color: var(--white);
  padding: .65rem 1rem;
  text-align: left;
}
.show-table td { padding: .6rem 1rem; border-bottom: 1px solid #eee; vertical-align: top; }
.show-table tr:last-child td { border-bottom: none; }
.show-table tr:nth-child(even) td { background: #f8f7f4; }

.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
}
.badge-gold  { background: #fef3c7; color: #92400e; }
.badge-silver{ background: #f1f5f9; color: #475569; }
.badge-vorzueglich { background: #dcfce7; color: #166534; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 { color: var(--primary); font-size: 1.2rem; margin-bottom: 1.25rem; }

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
}

.contact-item p { color: var(--muted); font-size: .9rem; margin: 0; }
.contact-item strong { color: var(--text); }

.contact-form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.5rem; }
.contact-form h3 { color: var(--primary); margin-bottom: 1.5rem; font-size: 1.2rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: .4rem; font-size: .88rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--light);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.btn-submit {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: .8rem 2rem;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn-submit:hover { background: var(--accent); transform: translateY(-2px); }

/* ---------- Impressum ---------- */
.legal { max-width: 800px; margin: 0 auto; }
.legal h2 { color: var(--primary); font-size: 1.3rem; margin: 2rem 0 .75rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal ul { color: var(--text); margin-bottom: .75rem; }
.legal ul { padding-left: 1.5rem; }

/* ---------- Badges / Logos ---------- */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e0dcd5;
}

.badge-row img { height: 40px; width: auto; }

/* ---------- Footer ---------- */
footer {
  background: var(--primary);
  color: rgba(255,255,255,.75);
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
  font-size: .9rem;
}

footer a { color: var(--accent); }
footer p + p { margin-top: .35rem; }

/* ---------- Misc ---------- */
.highlight-box {
  background: var(--white);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.75rem;
  margin: 2rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.highlight-box p { margin: 0; color: var(--text); }

.divider { height: 1px; background: #e0dcd5; margin: 3rem 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .dog-profile { grid-template-columns: 1fr; }
  .dog-profile.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 1rem 1.5rem;
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero { height: 380px; }
  .litter-section { padding: 1.5rem; }

  .show-table { font-size: .82rem; }
  .show-table th, .show-table td { padding: .5rem .6rem; }
}
