/* =============================================================================
   Hundezüchterverein – Stylesheet (Astro-Design für Hugo)
   ============================================================================= */

/* ===== CSS Variables ===== */
:root {
  --color-primary: #5F8A9A;
  --color-primary-dark: #4A7485;
  --color-secondary: #6B8F6E;
  --color-accent: #8BAE8E;
  --color-bg: #F7F5F2;
  --color-bg-dark: #E8E4DE;
  --color-bg-primary: #DDD8D0;
  --color-text: #2D3436;
  --color-text-light: #636E72;
  --color-white: #fff;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 10px;
  --max-width: 1200px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 1rem; line-height: 1.6; color: var(--color-text); background: var(--color-bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.5rem; }
h1, h2, h3, h4 { line-height: 1.3; margin-bottom: 0.5em; color: var(--color-primary-dark); }
h1 { font-size: 2.2rem; } h2 { font-size: 1.75rem; margin-top: 1.5em; } h3 { font-size: 1.3rem; }
p { margin-bottom: 1em; }

/* ===== Layout ===== */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ===== Header ===== */
.header { background: var(--color-white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; }
.logo { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.2rem; color: var(--color-primary-dark); }
.logo:hover { text-decoration: none; }
.logo img { width: 50px; height: 50px; }
.club-logo { max-width: 450px; margin: 0 auto 1rem; }
.nav ul { display: flex; list-style: none; gap: 1.5rem; padding: 0; margin: 0; }
.nav > ul > li { position: relative; }
.nav a { color: var(--color-text); font-weight: 500; padding: 0.5rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { color: var(--color-primary); border-bottom-color: var(--color-primary); text-decoration: none; }
.dropdown-arrow { font-size: 0.7em; margin-left: 0.25rem; }

/* Dropdown Menu */
.has-dropdown { position: relative; }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 180px; background: var(--color-white); box-shadow: var(--shadow); border-radius: var(--radius); padding: 0.5rem 0 0.3rem; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.2s ease; flex-direction: column; gap: 0 !important; z-index: 200; }
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li { width: 100%; line-height: 1; margin: 0 !important; padding: 0; }
.dropdown a { display: block; padding: 0.1rem 1rem; border-bottom: none; white-space: nowrap; line-height: 1.5; margin: 0; }
.dropdown a:hover { background: var(--color-bg-dark); color: var(--color-primary); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { width: 25px; height: 3px; background: var(--color-text); border-radius: 2px; transition: 0.3s; }

/* ===== Hero ===== */
.hero { position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; color: var(--color-white); padding: 4rem 0; text-align: center; }
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(95, 138, 154, 0.85) 0%, rgba(74, 116, 133, 0.9) 100%); }
.hero-content { position: relative; z-index: 1; }
.hero h1 { color: var(--color-white); font-size: 2.5rem; margin-bottom: 0.5rem; }
.hero-subtitle { font-size: 1.25rem; opacity: 0.9; margin-bottom: 1.5rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* ===== Sections ===== */
.section { padding: 3rem 0; }
.section-light { background: var(--color-white); }
.section-dark { background: var(--color-bg-dark); }
.section-primary { background: var(--color-bg-primary); }
.section-title { text-align: center; margin-bottom: 2rem; }
.section-cta { text-align: center; margin-top: 2rem; }
.intro-text { font-size: 1.1rem; max-width: 800px; margin: 0 auto 2rem; text-align: center; }

/* ===== Buttons ===== */
.btn { display: inline-block; padding: 0.75rem 1.5rem; border-radius: var(--radius); font-weight: 600; text-align: center; cursor: pointer; transition: all 0.2s; border: 2px solid transparent; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: #6B8F6E; color: var(--color-white); }
.btn-primary:hover { background: #5A7A5D; }
.btn-secondary { background: var(--color-secondary); color: var(--color-white); }
.btn-secondary:hover { background: #4A7485; }
.btn-outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: var(--color-white); }

/* ===== Cards ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.card { background: var(--color-white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.card-image { width: 100%; height: 200px; object-fit: cover; }
.card-content { padding: 1.5rem; }
.card-date { display: block; font-size: 0.85rem; color: var(--color-text-light); margin-bottom: 0.5rem; }
.card-title { font-size: 1.25rem; margin-bottom: 0.75rem; }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--color-primary); }
.card-body { color: var(--color-text-light); }
.card-link { display: inline-block; margin-top: 1rem; font-weight: 600; }

/* ===== Event Cards ===== */
.events-list { display: flex; flex-direction: column; gap: 1rem; }
.event-card { display: flex; background: var(--color-white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.event-date { background: var(--color-primary); color: var(--color-white); padding: 1rem; min-width: 80px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.event-day { font-size: 1.75rem; font-weight: 700; line-height: 1; }
.event-month { font-size: 0.85rem; }
.event-info { padding: 1rem 1.5rem; flex: 1; }
.event-info h3 { margin-bottom: 0.25rem; }
.event-location { font-size: 0.9rem; color: var(--color-text-light); margin-bottom: 0.5rem; }

/* ===== Grids ===== */
.intro-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.feature-list li { padding: 0.5rem 0; font-size: 1.05rem; }

/* ===== Gallery ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.5rem; }
.gallery-item { display: block; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; }
.gallery-item:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(0,0,0,0.2); text-decoration: none; }
.gallery-item img { width: 100%; height: 120px; object-fit: cover; display: block; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.1); }

/* ===== Contact & Board ===== */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; }
.contact-info address { font-style: normal; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.board-member { background: var(--color-bg-dark); padding: 1.5rem; border-radius: var(--radius); text-align: center; }
.board-member h3 { font-size: 1rem; color: var(--color-text-light); margin-bottom: 0.5rem; }
.parents-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.parent { background: var(--color-bg-dark); padding: 1.5rem; border-radius: var(--radius); }
.parent h3 { font-size: 0.9rem; color: var(--color-text-light); margin-bottom: 0.5rem; }

/* ===== Tables & Badges ===== */
.info-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.info-table th, .info-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--color-bg-dark); }
.info-table th { width: 40%; color: var(--color-text-light); font-weight: 500; }
.status-badge { display: inline-block; background: var(--color-accent); color: var(--color-primary-dark); padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.badge { display: inline-block; background: var(--color-accent); color: var(--color-primary-dark); padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.breadcrumb { font-size: 0.9rem; color: var(--color-text-light); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--color-text-light); }
.breadcrumb a:hover { color: var(--color-primary); }

/* ===== Forms ===== */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem; border: 1px solid #ccc; border-radius: var(--radius); font-size: 1rem; font-family: inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1); }
.form-checkbox { display: flex; align-items: flex-start; gap: 0.75rem; }
.form-checkbox input { width: auto; margin-top: 0.25rem; }
.form-checkbox label { margin: 0; font-weight: normal; }
.contact-form { max-width: 600px; margin: 0 auto; }
.form-submit { background: var(--color-primary); color: var(--color-white); border: none; padding: 0.75rem 2rem; font-size: 1rem; font-weight: 600; border-radius: var(--radius); cursor: pointer; transition: background 0.2s; }
.form-submit:hover { background: var(--color-primary-dark); }
.form-note { font-size: 0.875rem; color: var(--color-text-light); margin-top: 1rem; }
.ohnehonig { position: absolute; left: -9999px; }

/* ===== News ===== */
.news-article time { display: block; color: var(--color-text-light); margin-bottom: 0.5rem; }

/* ===== Content Images ===== */
.content-image { margin: 1.5rem auto; }
.content-image.img-center { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.content-image.img-center img { display: inline-block; }
.img-row { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin: 1.5rem 0; }
.img-row .content-image { margin: 0; flex: 1 1 300px; max-width: 400px; }
.img-row .content-image img { width: 100%; }
@media (max-width: 768px) {
  .img-row { flex-direction: column; align-items: center; }
  .img-row .content-image { max-width: 100%; }
}

/* ===== Page Content ===== */
.main-content { flex: 1; }
.page { padding: 3rem 0; }
.page-header { text-align: center; margin-bottom: 2rem; }
.page-header h1 { color: var(--color-primary-dark); margin-bottom: 0.5rem; }
.featured-image { margin-bottom: 2rem; border-radius: var(--radius); overflow: hidden; }
.featured-image img { width: 100%; max-height: 500px; object-fit: cover; }
.content.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { margin-top: 2rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.prose th, .prose td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--color-bg-dark); }
.prose th { color: var(--color-text-light); font-weight: 500; }

/* ===== Listing ===== */
.listing { padding: 3rem 0; }
.listing-header { text-align: center; margin-bottom: 2rem; }
.listing-header h1 { color: var(--color-primary-dark); }
.description { color: var(--color-text-light); margin-top: 0.5rem; }

/* ===== Tags ===== */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.tag { background: var(--color-bg-dark); padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.85rem; color: var(--color-text); }
.tag:hover { background: var(--color-primary); color: var(--color-white); text-decoration: none; }

/* ===== Titel Slideshow ===== */
.titel-slideshow { 
  background: var(--color-bg-dark); 
  padding: 0; 
  overflow: hidden;
}
.slideshow-container { 
  position: relative; 
  width: 100%; 
  height: 400px;
  overflow: hidden;
}
.slide { 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  opacity: 0; 
  transition: opacity 1s ease-in-out;
}
.slide.active { 
  opacity: 1;
  z-index: 1;
}
.slide img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block;
}
@media (max-width: 768px) {
  .slideshow-container { height: 250px; }
}

/* ===== Footer ===== */
.footer { background: var(--color-primary-dark); color: var(--color-white); padding: 3rem 0 1rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { color: var(--color-accent); margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--color-white); opacity: 0.8; }
.footer-col a:hover { opacity: 1; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; text-align: center; font-size: 0.9rem; opacity: 0.7; }

/* Social Icons */
.social-icons { display: flex; gap: 1rem; }
.social-icon { display: flex; align-items: center; justify-content: center; color: var(--color-white); opacity: 0.8; transition: opacity 0.2s, transform 0.2s; }
.social-icon:hover { opacity: 1; transform: scale(1.1); text-decoration: none; }
.social-icon svg { width: 32px; height: 32px; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--color-white); box-shadow: var(--shadow); padding: 1rem; display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid var(--color-bg-dark); }
  .nav a { display: block; padding: 0.75rem 0; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding-left: 1rem; }
  .dropdown a { padding: 0.5rem 0; }
  .hero h1 { font-size: 1.75rem; }
  .intro-grid, .contact-grid { grid-template-columns: 1fr; }
  .intro-image { order: -1; text-align: center; }
  .event-card { flex-direction: column; }
  .event-date { flex-direction: row; gap: 0.5rem; }
}
