/* Sparrebell im Stil von Raphael AI (raphael.app) */

.page-raphael {
  padding-top: 0;
}

/* Navbar – clean, transparent/subtle */
.navbar-raphael {
  background: var(--bg) !important;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}
.navbar-raphael .navbar-brand {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.btn-raphael-outline {
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
}
.btn-raphael-outline:hover {
  background: var(--bg-hover);
  border-color: var(--text-muted);
  color: var(--text);
}

/* Hero – großer Titel + Subline + Badges */
.main-raphael {
  padding-top: 0;
  padding-bottom: 4rem;
}
.hero-raphael {
  padding: 4rem 1rem 3rem;
  text-align: center;
}
.hero-raphael-title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
  line-height: 1.1;
  color: var(--text);
}
.hero-raphael-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 28em;
  margin: 0 auto 2rem;
  line-height: 1.5;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* Suchbox – wie Raphael's Prompt-Box */
.search-raphael {
  padding: 0 1rem 2rem;
  max-width: 640px;
  margin: 0 auto;
}
.search-box-raphael {
  position: relative;
  margin-bottom: 1rem;
}
.search-input-raphael {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input-raphael::placeholder {
  color: var(--text-muted);
}
.search-input-raphael:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.search-icon-raphael {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  opacity: 0.7;
}
.filters-raphael {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.filter-pill-raphael {
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}
.filter-pill-raphael:hover {
  color: var(--text);
  border-color: var(--text-muted);
  background: var(--bg-hover);
}
.filter-pill-raphael.active {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent);
}

/* Sektionen */
.section-raphael {
  padding: 3rem 0;
  scroll-margin-top: 5rem;
}
.section-raphael-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.section-raphael-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* Kategorie-Karten (wie "Probieren Sie einen Stil") */
.categories-jump {
  padding-top: 2rem;
}
.category-card-raphael {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  min-height: 120px;
}
.category-card-raphael:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--text);
  transform: translateY(-2px);
}
.category-card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}
.category-card-label {
  font-size: 1rem;
}

/* Tool-Karten (Raphael-Style) */
.tool-card-raphael {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  min-height: 90px;
}
.tool-card-raphael .card-icon {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.tool-card-raphael:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
  color: var(--text);
}
.col-6:has(.tool-card.hidden),
.col:has(.tool-card.hidden) {
  display: none !important;
}

/* Feature-Karten (Hauptmerkmale) */
.feature-card-raphael {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  height: 100%;
  transition: border-color 0.2s, background 0.2s;
}
.feature-card-raphael:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.feature-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}
.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Werbeplatz */
.ad-placeholder-raphael {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.no-results-raphael {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}
.section-raphael.category-block.hidden,
.category-block.hidden {
  display: none !important;
}
.popular-section.hidden {
  display: none !important;
}

/* FAQ Accordion */
.faq-raphael {
  padding-bottom: 4rem;
}
.accordion-raphael .accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.accordion-raphael .accordion-button {
  background: var(--bg-card) !important;
  color: var(--text) !important;
  border: none;
  font-weight: 600;
  box-shadow: none !important;
}
.accordion-raphael .accordion-button:not(.collapsed) {
  background: var(--bg-hover) !important;
}
.accordion-raphael .accordion-button::after {
  filter: invert(0);
}
[data-theme="light"] .accordion-raphael .accordion-button::after {
  filter: invert(0);
}
.accordion-raphael .accordion-body {
  background: var(--bg-card);
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* SEO-Block */
.seo-raphael .seo-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.seo-raphael .seo-text a {
  color: var(--accent);
}

/* Footer wie Raphael */
.footer-raphael {
  padding: 3rem 1rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  text-align: center;
}
.footer-raphael-brand {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.footer-raphael-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 32em;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}
.footer-raphael-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}
.footer-raphael-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-raphael-links a:hover {
  text-decoration: underline;
}
.footer-raphael-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}
.footer-raphael-legal a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}
.footer-raphael-legal a:hover {
  color: var(--accent);
}
.footer-raphael-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* Intro-Text über Kategorien */
.section-raphael-intro {
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Galerie Text-zu-Bild (Startseite) */
.t2i-gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.t2i-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== Handy- & Tablet-tauglich (responsive, alle Geräte) ========== */
html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  overflow-x: hidden;
  word-wrap: break-word;
}
img, video, iframe, canvas {
  max-width: 100%;
  height: auto;
}
.container {
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

@media (max-width: 991px) {
  .section-raphael { padding: 2rem 0; }
  .hero-raphael { padding: 3rem 0.75rem 2rem; }
  .category-card-raphael { min-height: 100px; padding: 1.25rem 0.75rem; }
  .tool-card-raphael { min-height: 80px; padding: 1rem; }
  .filter-pill-raphael, .btn-raphael-outline { min-height: 44px; padding: 0.5rem 1rem; }
}

@media (max-width: 767px) {
  .section-raphael { padding: 1.5rem 0; }
  .section-raphael-title { font-size: 1.25rem; }
  .section-raphael-intro { font-size: 0.95rem; padding: 0 0.5rem; }
  .hero-raphael { padding: 2rem 0.5rem 1.5rem; }
  .hero-raphael-title { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  .search-raphael { padding: 0 0.5rem 1.5rem; }
  .search-input-raphael { padding: 0.875rem 1rem 0.875rem 2.75rem; font-size: 16px; }
  .category-card-raphael { min-height: 88px; padding: 1rem 0.5rem; }
  .category-card-icon { font-size: 1.5rem; }
  .category-card-label { font-size: 0.9rem; }
  .tool-card-raphael { min-height: 72px; padding: 0.875rem 1rem; font-size: 0.95rem; }
  .navbar-raphael .navbar-brand { font-size: 1.2rem; }
  .filters-raphael { gap: 0.4rem; }
  .filter-pill-raphael { min-height: 44px; font-size: 0.85rem; padding: 0.5rem 0.75rem; }
  .footer-raphael-legal, .footer-raphael-copy { font-size: 0.8rem; text-align: center; }
  .footer-raphael-legal a { display: inline-block; margin: 0.2rem; }
}

@media (max-width: 575px) {
  .col-6 { flex: 0 0 100%; max-width: 100%; }
  .category-card-raphael, .tool-card-raphael { min-height: 72px; }
}
