/* ===== Hovawarte vom Wittelsbacherschloss - Static Site CSS ===== */

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

:root {
  --color-primary: #4a6741;
  --color-primary-dark: #354f2d;
  --color-primary-light: #6b8f60;
  --color-accent: #c8956c;
  --color-accent-dark: #a87649;
  --color-bg: #faf8f4;
  --color-bg-alt: #f0ece4;
  --color-text: #3a3a3a;
  --color-text-light: #6b6b6b;
  --color-white: #ffffff;
  --color-border: #ddd8d0;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

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

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

/* --- Navigation --- */
.navbar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-primary-dark);
}

.navbar-logo:hover {
  color: var(--color-primary);
}

.navbar-logo img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.navbar-logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

.navbar-logo-text small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--color-text-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-menu a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: 8px;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-primary);
  background: rgba(74, 103, 65, 0.08);
}

.nav-submenu {
  position: relative;
}

.nav-submenu > a::after {
  content: ' \25BE';
  font-size: 0.7em;
  margin-left: 4px;
  opacity: 0.5;
}

.nav-submenu ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 180px;
  padding: 0.5rem 0;
  z-index: 100;
  list-style: none;
}

.nav-submenu:hover ul,
.nav-submenu-open ul {
  display: block;
}

.nav-submenu ul a {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.nav-submenu ul a:hover {
  background: rgba(74, 103, 65, 0.12);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  z-index: 10;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* --- Hero --- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
  color: var(--color-white);
  padding: 5rem 1.5rem;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(200, 149, 108, 0.2) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.8;
  opacity: 0.95;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero-image {
  max-width: 280px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  border: 4px solid rgba(255,255,255,0.2);
}

.hero-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.hero-btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(200, 149, 108, 0.4);
}

.hero-btn:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(200, 149, 108, 0.5);
  color: var(--color-white);
}

/* --- Sections --- */
.section {
  padding: 4rem 1.5rem;
}

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

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* --- Mission / Welcome block --- */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.mission-text h2 {
  margin-bottom: 1.25rem;
}

.mission-text p {
  color: var(--color-text-light);
  font-size: 1.05rem;
}

/* --- Cards (dog pages grid) --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--color-border);
}

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

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform var(--transition);
}

.card:hover .card-img {
  transform: scale(1.03);
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary-dark);
}

.card-body p {
  color: var(--color-text-light);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.card-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(74, 103, 65, 0.1);
  color: var(--color-primary);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

/* --- Dog profile page --- */
.dog-profile {
  max-width: 960px;
  margin: 0 auto;
}

.dog-profile-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3rem;
}

.dog-profile-hero .photo-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dog-profile-hero .photo-gallery img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.dog-profile-info {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.dog-profile-info h1 {
  margin-bottom: 1.25rem;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.badge-green {
  background: rgba(74, 103, 65, 0.12);
  color: var(--color-primary);
}

.badge-brown {
  background: rgba(200, 149, 108, 0.15);
  color: var(--color-accent-dark);
}

.dog-profile-info p {
  color: var(--color-text-light);
}

/* --- Litter / Wurf section --- */
.litter-section {
  margin-bottom: 3rem;
}

.litter-section h2 {
  margin-bottom: 1rem;
}

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

.gallery-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
  height: 200px;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  
  .gallery-grid img {
    height: 180px;
  }
}

.gallery-grid img:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}

/* --- Info list / details --- */
.detail-list {
  list-style: none;
  margin: 1.5rem 0;
}

.detail-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 1rem;
  align-items: baseline;
}

.detail-list li:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 600;
  color: var(--color-primary-dark);
  min-width: 140px;
  font-size: 0.95rem;
}

.detail-value {
  color: var(--color-text-light);
}

/* --- Divider --- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.divider span {
  padding: 0 1rem;
  color: var(--color-accent);
  font-size: 1.2rem;
}

/* --- Contact & Info sidebar --- */
.contact-block {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.contact-block h4 {
  margin-bottom: 1rem;
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
}

.contact-block p {
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.contact-block .logo-img {
  max-width: 160px;
  margin-bottom: 1rem;
}

/* --- Footer --- */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.footer h4 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer a {
  color: rgba(255,255,255,0.7);
}

.footer a:hover {
  color: var(--color-accent);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.9rem;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* --- Text content styles --- */
.content-block {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

.content-block h1 {
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--color-primary-dark);
}

.content-block h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.content-block p {
  margin-bottom: 1.25rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .mission-grid,
  .dog-profile-hero {
    grid-template-columns: 1fr;
  }
  
  .mission-grid img {
    height: 250px;
    object-fit: cover;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .navbar-inner {
    padding: 0 0.75rem;
  }
  
  .navbar-logo img {
    width: 36px;
    height: 36px;
  }
  
  .navbar-logo-text {
    font-size: 0.85rem;
  }
  
  .navbar-logo-text small {
    font-size: 0.55rem;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 0.75rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    gap: 0;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }
  
  .nav-menu.open {
    display: flex;
  }
  
  .nav-submenu ul {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1.5rem;
    border-radius: 0;
    min-width: 0;
  }
  
  .nav-submenu > a {
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(74, 103, 65, 0.1);
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero {
    padding: 2rem 1rem;
  }
  
  .hero-inner {
    padding: 0 0.25rem;
  }
  
  .hero h1 {
    margin-bottom: 1rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
  }
  
  .hero-image {
    margin-bottom: 1.5rem;
    max-width: 180px;
  }
  
  .hero-image img {
    height: 180px;
  }
  
  .hero-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }
  
  .section {
    padding: 2rem 0.75rem;
  }
  
  .litter-section {
    margin-bottom: 2rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .card-img {
    height: 220px;
  }
  
  .card-body {
    padding: 1.25rem;
  }
  
  .dog-profile-hero {
    gap: 1.25rem;
  }
  
  .dog-profile-hero .photo-gallery img {
    height: auto;
  }
  
  .dog-profile-info {
    padding: 1.5rem;
  }
  
  .divider {
    padding: 1.5rem 0;
  }
  
  .mission-grid img {
    height: 200px;
    object-fit: cover;
  }
  
  .footer {
    padding: 2rem 0.75rem 1rem;
  }
  
  .footer-inner {
    gap: 1.5rem;
  }
  
  .footer-img {
    max-width: 100px;
  }
}

@media (max-width: 480px) {
  .navbar {
    height: 56px;
  }
  
  .navbar-inner {
    padding: 0 0.5rem;
    gap: 0.5rem;
  }
  
  .navbar-logo img {
    width: 32px;
    height: 32px;
  }
  
  .navbar-logo-text {
    font-size: 0.8rem;
  }
  
  .navbar-logo-text small {
    font-size: 0.5rem;
  }
  
  .hero {
    padding: 1.5rem 0.75rem;
  }
  
  .hero h2 {
    margin-bottom: 0.75rem;
  }
  
  .hero p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }
  
  .hero-image {
    max-width: 140px;
  }
  
  .hero-image img {
    height: 140px;
  }
  
  .content-block {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .dog-profile-info {
    padding: 1.25rem;
  }
  
  .dog-profile-info h1 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
  }
  
  .card-img {
    height: 180px;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .card-body h3 {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.5rem;
  }
  
  .gallery-grid img {
    height: 130px;
  }
  
  .mission-grid img {
    height: 160px;
    object-fit: cover;
  }
  
  .mission-grid {
    gap: 1.5rem;
  }
  
  .badge {
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .footer {
    padding: 1.5rem 0.5rem 0.75rem;
  }
  
  .footer-inner {
    gap: 1rem;
  }
  
  .footer-img {
    max-width: 80px;
  }
  
  .footer-bottom {
    font-size: 0.75rem;
    padding-top: 1rem;
  }
}

@media (max-width: 360px) {
  .navbar {
    height: 50px;
  }
  
  .navbar-inner {
    padding: 0 0.25rem;
  }
  
  .navbar-logo-text {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .card:hover {
    transform: none;
  }
  
  .card:hover .card-img {
    transform: none;
  }
  
  .hero-btn:hover {
    transform: none;
  }
  
  .gallery-grid img:hover {
    transform: none;
  }
}
