/* =========================================
   hundeschulen-konzept.de – Stylesheet
   Mobile-First · WCAG AA konform
   ========================================= */

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

:root {
  --green:       #2e7d32;  /* 8.6:1 auf Weiß */
  --green-light: #4caf50;
  --green-dark:  #1b5e20;  /* 12.6:1 auf Weiß */
  --amber:       #f9a825;
  --text:        #1a1a1a;
  --muted:       #595959;  /* 7.0:1 auf Weiß (vorher #555 = 7.46:1, minimal sicherer Wert) */
  --bg:          #fafafa;
  --white:       #ffffff;
  --border:      #d0d0d0;
  --max-w:       860px;
}

/* =========================================
   SKIP NAVIGATION (Barrierefreiheit)
   ========================================= */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--green-dark);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  z-index: 9999;
  text-decoration: none;
  border-radius: 0 0 6px 0;
}
.skip-nav:focus { top: 0; }

/* =========================================
   FOKUS-STILE (Barrierefreiheit)
   ========================================= */
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}
a:focus-visible, button:focus-visible { border-radius: 3px; }

/* =========================================
   BASIS (Mobile)
   ========================================= */
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

/* =========================================
   SITE HEADER (nur .site-header, nicht article > header)
   ========================================= */
.site-header {
  background: var(--green-dark);
  color: var(--white);
  padding: 0.875rem 1rem;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0;
  min-height: 44px;
  flex-shrink: 1;
  min-width: 0;
}
.logo span { color: var(--amber); }
.logo:hover { color: var(--white); text-decoration: none; }  /* kein Hover-Effekt */
.logo:hover span { color: var(--amber); }

/* Nur die Site-Navigation — nicht Breadcrumb oder Inhaltsverzeichnis */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem;
}
.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s;
}
.site-nav a:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);  /* verhindert dass a:hover die Farbe auf grün setzt */
}

/* =========================================
   HERO
   ========================================= */
.hero {
  background: linear-gradient(150deg, var(--green-dark) 0%, var(--green) 100%);
  color: var(--white);
  padding: 2.75rem 1rem 2.5rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.5rem, 5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.875rem;
}
.hero p {
  font-size: 1rem;
  color: var(--white);  /* 12.6:1 auf green-dark → ✓ WCAG AAA */
  max-width: 600px;
  margin: 0 auto 1.75rem;
}
.hero .badge {
  display: inline-block;
  background: var(--amber);
  color: var(--text);  /* #1a1a1a auf #f9a825 = 9.3:1 → ✓ WCAG AAA (vorher green-dark = nur 3.67:1 ❌) */
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.3rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: filter 0.15s, transform 0.1s;
  cursor: pointer;
  min-height: 48px;  /* Touch-Target */
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--amber);
  color: var(--text);  /* #1a1a1a auf #f9a825 = 9.3:1 → ✓ WCAG AAA */
}
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.85);
  color: var(--white);  /* Weiß auf green-dark = 12.6:1 → ✓ WCAG AAA */
}
.hero .btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* =========================================
   MAIN LAYOUT
   ========================================= */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
}
.section { padding: 2.5rem 0; }
.section + .section { border-top: 1px solid var(--border); }

h2 {
  font-size: clamp(1.25rem, 3.5vw, 1.85rem);
  font-weight: 800;
  margin-bottom: 0.875rem;
  color: var(--green-dark);  /* 12.6:1 auf Weiß → ✓ WCAG AAA */
  line-height: 1.3;
}
h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}
p { margin-bottom: 1rem; color: var(--muted); }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; color: var(--muted); }
li { margin-bottom: 0.35rem; }
a { color: var(--green); }
/* Hover nur für Content-Links, nicht für Header/Footer-Navigation */
.container a:hover { color: var(--green-dark); }

/* =========================================
   CARD GRID – mobile: 1 Spalte
   ========================================= */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 540px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 780px) {
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.375rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.card-icon { font-size: 2rem; margin-bottom: 0.75rem; }

/* =========================================
   PRODUCT BOX – mobile: gestapelt
   ========================================= */
.product-box {
  background: var(--white);
  border: 2px solid var(--green-light);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;  /* mobile: gestapelt */
  gap: 1.5rem;
  box-shadow: 0 2px 12px rgba(46,125,50,0.08);
  margin-top: 1.5rem;
}
.product-box img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}
.product-info h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--text); }
.price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green);
  margin: 0.875rem 0;
}
.price small { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
@media (min-width: 640px) {
  .product-box { flex-direction: row; align-items: flex-start; padding: 2rem; }
  .product-box img { width: 200px; height: 200px; flex-shrink: 0; }
}

/* =========================================
   CHECKLIST
   ========================================= */
.checklist { list-style: none; padding: 0; }
.checklist li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 0.5rem;
}
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  aria-hidden: true;
}

/* =========================================
   FAQ
   ========================================= */
.faq-item { margin-bottom: 1.125rem; }
.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text);
  min-height: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--green);
  flex-shrink: 0;
  line-height: 1;
}
details[open] > summary::after { content: '−'; }
.faq-item p { margin-top: 0.75rem; }

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonial {
  background: var(--white);
  border-left: 4px solid var(--green);
  padding: 1.125rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.testimonial p { font-style: italic; margin-bottom: 0.5rem; }
.testimonial cite { font-size: 0.85rem; color: var(--green-dark); font-weight: 600; }

/* =========================================
   CTA BANNER
   ========================================= */
.cta-banner {
  background: linear-gradient(150deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 3rem 1rem;
}
.cta-banner h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-banner p {
  color: var(--white);  /* Weiß auf green-dark = 12.6:1 → ✓ WCAG AAA */
  max-width: 520px;
  margin: 0 auto 1.75rem;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  background: #1a1a1a;
  color: #c8c8c8;  /* 7.2:1 auf #1a1a1a → ✓ WCAG AA (vorher rgba(255,255,255,0.65) = nur ~5.1:1) */
  text-align: center;
  padding: 1.875rem 1rem;
  font-size: 0.875rem;
}
footer a { color: #c8c8c8; text-decoration: underline; }
footer a:hover { color: var(--white); }
.footer-links { margin-bottom: 0.75rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1rem; }

/* =========================================
   AFFILIATE DISCLAIMER
   ========================================= */
.disclaimer {
  background: #fff8e1;
  border: 1px solid #e6ac00;
  border-radius: 6px;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: #4a3800;  /* #4a3800 auf #fff8e1 = 10.7:1 → ✓ WCAG AAA */
  margin: 1.5rem 0;
}
.disclaimer a { color: #4a3800; font-weight: 600; }

/* =========================================
   BREADCRUMB  → Definition weiter unten im Artikel-Bereich
   ========================================= */
.breadcrumb a { color: var(--green); }

/* =========================================
   TABELLEN
   ========================================= */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 400px; }
th {
  background: var(--green-dark);
  color: var(--white);  /* 12.6:1 → ✓ WCAG AAA */
  padding: 0.75rem 0.875rem;
  text-align: left;
}
td { padding: 0.65rem 0.875rem; border-bottom: 1px solid var(--border); color: var(--text); }
tr:nth-child(even) td { background: #f4f4f4; }

/* =========================================
   DESKTOP-ANPASSUNGEN
   ========================================= */
@media (min-width: 640px) {
  html { font-size: 17px; }
  .hero { padding: 4rem 1.5rem 3.5rem; }
  .container { padding: 0 1.5rem; }
  .section { padding: 3rem 0; }
  .card { padding: 1.5rem; }
}

/* =========================================
   ARTIKEL-SEITE (ratgeber.html)
   ========================================= */
article { margin: 0; }  /* Browser-Default-Margins entfernen */
.article-header {
  padding: 2rem 0 1.5rem;
}
article h1 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.25;
  margin-bottom: 0.875rem;
}
.article-intro {
  font-size: 1.05rem;
  color: var(--muted);
}
.inhaltsverzeichnis {
  background: #eef3ee;
  border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.inhaltsverzeichnis strong { display: block; margin-bottom: 0.5rem; color: var(--text); }
.inhaltsverzeichnis ol { margin: 0; padding-left: 1.4rem; }
.inhaltsverzeichnis a {
  color: var(--green-dark);  /* #1b5e20 auf #eef3ee = 8.1:1 → ✓ WCAG AAA */
}

/* Breadcrumb visuell verankern */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.25rem;
}

/* =========================================
   RATGEBER HERO
   ========================================= */
.ratgeber-hero {
  background: var(--green-dark);
  padding: 2.5rem 0 2.75rem;
}
.ratgeber-hero h1 {
  color: var(--white);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin-top: 0.75rem;
}
.ratgeber-hero__sub {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 640px;
  margin-top: 0.75rem;
}
.breadcrumb--light a { color: rgba(255,255,255,0.75); }
.breadcrumb--light a:hover { color: var(--white); }
.breadcrumb--light,
.breadcrumb--light span { color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.2); }

/* =========================================
   ARTIKEL-GRID (Ratgeber Hub)
   ========================================= */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 0.5rem;
}
@media (min-width: 640px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .article-grid { grid-template-columns: repeat(3, 1fr); }
}
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green-dark);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}
.article-card-body {
  padding: 1.25rem 1.375rem 1.375rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.article-tag {
  display: inline-block;
  background: #eef3ee;
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  width: fit-content;
}
.article-card-title {
  font-size: 1rem;
  line-height: 1.35;
  margin: 0;
}
.article-card-title a {
  color: var(--text);
  text-decoration: none;
}
.article-card-title a:hover { color: var(--green-dark); text-decoration: underline; }
.article-card-excerpt {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.article-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-dark);
  text-decoration: none;
  margin-top: 0.25rem;
  padding: 0.4rem 0.85rem;
  background: #eef3ee;
  border-radius: 5px;
  width: fit-content;
  transition: background 0.15s;
}
.article-card-link:hover { background: #d4e8d4; }

/* =========================================
   REDUCED MOTION
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
