/* Katzenfundus – Mobile First, warme Magazine-Optik */
:root {
  --kf-orange: #e07c4a;
  --kf-orange-dark: #c96838;
  --kf-orange-light: #f0a078;
  --kf-brown: #5c4a3a;
  --kf-brown-light: #7d6b5c;
  --kf-cream: #faf6f2;
  --kf-cream-dark: #f0eae4;
  --kf-offwhite: #fffefc;
  --kf-white: #ffffff;
  --kf-text: #3d3530;
  --kf-text-muted: #6b6158;
  --kf-border: #e5ddd5;
  --kf-shadow: rgba(92, 74, 58, 0.08);
  --kf-shadow-strong: rgba(92, 74, 58, 0.12);
  --kf-radius: 12px;
  --kf-radius-sm: 8px;
  --kf-font: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  --kf-header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--kf-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--kf-text);
  background: var(--kf-cream);
  -webkit-font-smoothing: antialiased;
}
.kf-body { min-height: 100vh; display: flex; flex-direction: column; }
.kf-main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--kf-orange); text-decoration: none; }
a:hover { color: var(--kf-orange-dark); text-decoration: underline; }
h1, h2, h3 { color: var(--kf-brown); font-weight: 600; line-height: 1.3; margin-top: 0; }
h1 { font-size: 1.75rem; margin-bottom: 0.75em; }
h2 { font-size: 1.35rem; margin-bottom: 0.6em; }
h3 { font-size: 1.15rem; margin-bottom: 0.5em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.kf-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Wrapper */
.kf-wrapper { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.kf-section { padding: 2rem 0; }
.kf-section--alt { background: var(--kf-cream-dark); }

/* Header */
.kf-header {
  background: var(--kf-white);
  box-shadow: 0 1px 0 var(--kf-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.kf-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.kf-logo { display: flex; align-items: center; }
.kf-logo-img { height: 52px; width: auto; max-width: 220px; object-fit: contain; }
.kf-header-right { display: flex; align-items: center; gap: 0.75rem; }

/* Search header */
.kf-search-form--header { display: none; }
.kf-search-form--header .kf-search-input {
  width: 140px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--kf-border);
  border-radius: var(--kf-radius-sm);
  font-size: 0.9rem;
  background: var(--kf-offwhite);
}
.kf-search-form--header .kf-search-input:focus {
  outline: none;
  border-color: var(--kf-orange);
}
.kf-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: var(--kf-orange);
  color: var(--kf-white);
  border-radius: var(--kf-radius-sm);
  cursor: pointer;
}
.kf-search-btn:hover { background: var(--kf-orange-dark); }
.kf-search-btn svg { flex-shrink: 0; }

/* Nav toggle mobile */
.kf-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.kf-nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--kf-brown);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.kf-nav-toggle[aria-expanded="true"] .kf-nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.kf-nav-toggle[aria-expanded="true"] .kf-nav-toggle-bar:nth-child(2) { opacity: 0; }
.kf-nav-toggle[aria-expanded="true"] .kf-nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.kf-nav { display: none; }
.kf-nav[aria-hidden="false"] { display: block; }
.kf-nav-list { list-style: none; margin: 0; padding: 1rem 0; }
.kf-nav-list li { margin: 0; }
.kf-nav-link {
  display: block;
  padding: 0.5rem 0;
  color: var(--kf-brown);
  font-weight: 500;
}
.kf-nav-link:hover { color: var(--kf-orange); }
.kf-nav-link--active { color: var(--kf-orange); }

@media (min-width: 768px) {
  .kf-nav-toggle { display: none; }
  .kf-search-form--header { display: flex; align-items: center; gap: 0.25rem; }
  .kf-nav {
    display: block;
    aria-hidden: false;
  }
  .kf-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    padding: 0;
  }
  .kf-nav-link { padding: 0.35rem 0; }
}

/* Breadcrumbs */
.kf-breadcrumbs { padding: 0.75rem 1rem; background: var(--kf-offwhite); border-bottom: 1px solid var(--kf-border); font-size: 0.875rem; }
.kf-breadcrumbs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.kf-breadcrumbs-list li { display: flex; align-items: center; }
.kf-breadcrumbs-list a { color: var(--kf-text-muted); }
.kf-breadcrumbs-list a:hover { color: var(--kf-orange); }
.kf-breadcrumbs-sep { color: var(--kf-text-muted); margin-left: 0.25rem; }
.kf-breadcrumbs-list span { color: var(--kf-text); }

/* Hero */
.kf-hero {
  background: linear-gradient(135deg, var(--kf-cream-dark) 0%, var(--kf-cream) 50%, var(--kf-offwhite) 100%);
  padding: 2.5rem 0 3rem;
  text-align: center;
}
.kf-hero-title { font-size: 1.75rem; margin-bottom: 0.5em; }
.kf-hero-intro { font-size: 1.05rem; color: var(--kf-text-muted); max-width: 600px; margin-left: auto; margin-right: auto; margin-bottom: 1.5rem; }
.kf-hero .kf-search-form { max-width: 400px; margin: 0 auto 1rem; }

/* Search form standalone */
.kf-search-form { display: flex; gap: 0.5rem; }
.kf-search-form .kf-search-input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--kf-border);
  border-radius: var(--kf-radius-sm);
  font-size: 1rem;
  background: var(--kf-white);
}
.kf-search-form .kf-search-input:focus {
  outline: none;
  border-color: var(--kf-orange);
  box-shadow: 0 0 0 3px rgba(224, 124, 74, 0.15);
}
.kf-search-form .kf-search-btn { flex-shrink: 0; }

/* Buttons */
.kf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--kf-radius-sm);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.kf-btn--primary {
  background: var(--kf-orange);
  color: var(--kf-white);
}
.kf-btn--primary:hover { background: var(--kf-orange-dark); text-decoration: none; }
.kf-btn--secondary {
  background: var(--kf-cream-dark);
  color: var(--kf-brown);
  border: 1px solid var(--kf-border);
}
.kf-btn--secondary:hover { background: var(--kf-border); color: var(--kf-brown); text-decoration: none; }

/* Cards grid */
.kf-cards { display: grid; gap: 1.25rem; }
@media (min-width: 480px) { .kf-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .kf-cards { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
@media (min-width: 1024px) { .kf-cards { grid-template-columns: repeat(4, 1fr); } }

.kf-card {
  background: var(--kf-white);
  border-radius: var(--kf-radius);
  box-shadow: 0 2px 8px var(--kf-shadow);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.kf-card:hover { box-shadow: 0 4px 16px var(--kf-shadow-strong); }
.kf-card a { text-decoration: none; color: inherit; display: block; }
.kf-card a:hover { text-decoration: none; }
.kf-card-link { color: inherit; }
.kf-card-image {
  aspect-ratio: 16/10;
  background: var(--kf-cream-dark);
  object-fit: cover;
}
.kf-card-body { padding: 1.25rem; }
.kf-card-title { font-size: 1.1rem; margin-bottom: 0.35em; }
.kf-card-teaser { font-size: 0.9rem; color: var(--kf-text-muted); margin: 0; }
.kf-card-cta { display: inline-block; margin-top: 0.5rem; font-size: 0.9rem; font-weight: 600; color: var(--kf-orange); }
.kf-card-link:hover .kf-card-cta { text-decoration: underline; }

/* Category page */
.kf-page-title { font-size: 1.75rem; margin-bottom: 0.5em; }
.kf-page-intro { font-size: 1.05rem; color: var(--kf-text-muted); margin-bottom: 2rem; }
.kf-content-section { margin-bottom: 2rem; }
.kf-content-section h2 { margin-top: 1.5rem; }
.kf-content-section p { margin-bottom: 0.75em; }

/* Product box – ohne Bild: Text nutzt volle Breite */
.kf-product-box {
  background: var(--kf-white);
  border-radius: var(--kf-radius);
  box-shadow: 0 2px 10px var(--kf-shadow);
  overflow: hidden;
  margin-bottom: 1.5rem;
  display: block;
}
.kf-product-box-body { padding: 1.25rem; display: flex; flex-direction: column; }
.kf-product-box-title { font-size: 1.15rem; margin-bottom: 0.5em; }
.kf-product-box-desc { font-size: 0.95rem; color: var(--kf-text-muted); margin-bottom: 0.75em; flex: 1; }
.kf-product-box-bullets { list-style: none; margin: 0 0 1rem; padding: 0; font-size: 0.9rem; }
.kf-product-box-bullets li { position: relative; padding-left: 1.25rem; margin-bottom: 0.35em; }
.kf-product-box-bullets li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; background: var(--kf-orange); border-radius: 50%; }
.kf-product-box-cta { margin-top: auto; }
.kf-product-box-note { font-size: 0.8rem; color: var(--kf-text-muted); margin-top: 0.5rem; }
.kf-product-meta { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-bottom: 0.5rem; }
.kf-product-rating { margin: 0; font-size: 0.9rem; }
.kf-product-stars { color: var(--kf-orange); }
.kf-product-price { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--kf-brown); }
.kf-product-bestseller { margin: 0 0 0.35em; font-size: 0.75rem; font-weight: 600; color: var(--kf-orange); }

/* FAQ block */
.kf-faq { margin-bottom: 2rem; }
.kf-faq-list { list-style: none; margin: 0; padding: 0; }
.kf-faq-item { border-bottom: 1px solid var(--kf-border); }
.kf-faq-item:first-child { border-top: 1px solid var(--kf-border); }
.kf-faq-q { font-weight: 600; font-size: 1rem; margin: 0; padding: 1rem 0 0.35rem; color: var(--kf-brown); }
.kf-faq-a { margin: 0 0 1rem; padding: 0; font-size: 0.95rem; color: var(--kf-text-muted); }

/* Info / Trust box */
.kf-info-box {
  background: var(--kf-cream-dark);
  border-radius: var(--kf-radius);
  padding: 1.25rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--kf-orange);
}
.kf-info-box h3 { margin-top: 0; font-size: 1.05rem; }
.kf-trust-box { text-align: center; padding: 2rem 1rem; background: var(--kf-offwhite); border-radius: var(--kf-radius); margin: 2rem 0; }
.kf-trust-box p { margin-bottom: 0.5em; font-size: 0.95rem; color: var(--kf-text-muted); }

/* Related links */
.kf-related { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--kf-border); }
.kf-related-title { font-size: 1.1rem; margin-bottom: 0.75rem; }
.kf-related-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.kf-related-list a { font-size: 0.95rem; }
.kf-longtail { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--kf-border); }
.kf-longtail-list { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; color: var(--kf-text-muted); }
.kf-longtail-list li { margin-bottom: 0.35rem; }
.kf-longtail-list a { color: var(--kf-brown); text-decoration: none; }
.kf-longtail-list a:hover { text-decoration: underline; }
.kf-tips-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.kf-tips-list li { position: relative; padding-left: 1.25rem; margin-bottom: 0.5em; }
.kf-tips-list li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; background: var(--kf-orange); border-radius: 50%; }
.kf-related-list--center { justify-content: center; }
.kf-trust-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.kf-trust-list li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; font-size: 0.95rem; }
.kf-trust-list li::before { content: '✓'; position: absolute; left: 0; color: var(--kf-orange); font-weight: 700; }
.kf-link-list { list-style: none; margin: 0; padding: 0; }
.kf-link-list li { margin-bottom: 0.5rem; }
.kf-link-list a { font-size: 1rem; }
.kf-article-list { list-style: none; margin: 0; padding: 0; }
.kf-article-list li { margin-bottom: 0.5rem; }
.kf-article-list a { font-size: 1rem; }
.kf-section-cta { text-align: center; margin-top: 1.5rem; margin-bottom: 0; }

/* Transparenz */
.kf-transparenz-inline {
  font-size: 0.875rem;
  color: var(--kf-text-muted);
  background: var(--kf-cream-dark);
  padding: 1rem;
  border-radius: var(--kf-radius-sm);
  margin: 1.5rem 0;
}

/* Footer */
.kf-footer {
  background: var(--kf-brown);
  color: var(--kf-cream);
  margin-top: 3rem;
  padding: 2rem 0;
}
.kf-footer a { color: var(--kf-orange-light); }
.kf-footer a:hover { color: var(--kf-white); }
.kf-footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.kf-footer-brand { margin-bottom: 1.5rem; }
.kf-footer-logo img { display: block; height: 48px; width: auto; max-width: 200px; object-fit: contain; }
.kf-footer-tagline { font-size: 0.9rem; opacity: 0.9; margin: 0.35em 0 0; }
.kf-footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-bottom: 1rem; font-size: 0.9rem; }
.kf-footer-popular { margin-bottom: 1rem; }
.kf-footer-heading { font-size: 0.95rem; margin: 0 0 0.5rem; font-weight: 600; color: var(--kf-cream); }
.kf-footer-categories { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; font-size: 0.9rem; }
.kf-footer-legal { margin-bottom: 1rem; font-size: 0.9rem; }
.kf-footer-legal a { margin-right: 1rem; }
.kf-footer-transparenz { margin-bottom: 1rem; font-size: 0.85rem; opacity: 0.9; max-width: 560px; }
.kf-transparenz-text { margin: 0; }
.kf-footer-copy { font-size: 0.8rem; opacity: 0.75; margin: 0; }

/* Search results page */
.kf-search-result-item { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--kf-border); }
.kf-search-result-item:last-child { border-bottom: none; }
.kf-search-result-title { font-size: 1.1rem; margin-bottom: 0.25em; }
.kf-search-result-title a { color: var(--kf-brown); }
.kf-search-result-title a:hover { color: var(--kf-orange); }
.kf-search-result-teaser { font-size: 0.9rem; color: var(--kf-text-muted); margin: 0; }
.kf-search-no-results { text-align: center; padding: 2rem 1rem; }
.kf-search-no-results h2 { margin-bottom: 0.5em; }
.kf-search-suggestions { margin-top: 1.5rem; }
.kf-search-suggestions .kf-cards { margin-top: 1rem; }

/* Static pages (Impressum, Datenschutz) */
.kf-static-page { padding: 2rem 0 3rem; }
.kf-static-page h2 { margin-top: 1.5rem; }
.kf-static-page .kf-page-intro { margin-bottom: 1.5rem; }

/* Placeholder image */
.kf-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 120px;
  background: linear-gradient(135deg, var(--kf-cream-dark) 0%, var(--kf-border) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kf-text-muted);
  font-size: 0.75rem;
}
