/* DieSuche.de - Moderierter Webkatalog seit 2002 */

:root {
  --navy: #1a2744;
  --navy-light: #243352;
  --navy-muted: #3d5175;
  --orange: #e5531c;
  --orange-hover: #d04815;
  --orange-light: #fef4f0;
  --bg: #fafaf7;
  --bg-warm: #f3f1ec;
  --white: #ffffff;
  --text: #1a2744;
  --text-mid: #4a5568;
  --text-light: #7a8599;
  --border: #e2dfd8;
  --radius: 10px;
  --font-head: 'Inter', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* Skip Link */
.skip-link { position: absolute; top: -100%; left: 0; background: var(--orange); color: #fff; padding: 12px 24px; font-weight: 600; z-index: 200; }
.skip-link:focus { top: 0; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Header */
.site-header { background: var(--navy); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo-icon { height: 28px; width: auto; }
.logo-text { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.logo-text em { color: var(--orange); font-style: normal; }
.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav a { color: rgba(255,255,255,.65); font-size: 0.85rem; font-weight: 500; transition: color 0.2s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; }
.header-badge { font-size: 0.68rem; color: rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.15); padding: 0.15rem 0.55rem; border-radius: 20px; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; transition: 0.2s; }

/* Hero */
.hero { background: var(--navy); padding: 3rem 0 3.5rem; text-align: center; }
.hero-claim { color: rgba(255,255,255,.45); font-family: var(--font-body); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem; }
.hero h1 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 0.5rem; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-sub { color: rgba(255,255,255,.5); font-size: 0.92rem; margin-bottom: 2rem; max-width: 460px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* Trust Bar */
.trust-bar { display: flex; justify-content: center; gap: 2rem; padding: 0.85rem 0; border-top: 1px solid rgba(255,255,255,.08); margin-top: 1.5rem; flex-wrap: wrap; }
.trust-bar-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; color: rgba(255,255,255,.4); }
.trust-bar-item svg { opacity: 0.5; }

/* Search */
.search-wrap { max-width: 580px; margin: 0 auto; position: relative; }
.search-wrap input { width: 100%; padding: 0.9rem 1.2rem 0.9rem 1.2rem; padding-right: 3.5rem; font-family: var(--font-body); font-size: 0.95rem; border: 2px solid rgba(255,255,255,.15); border-radius: 50px; background: rgba(255,255,255,.08); color: #fff; outline: none; transition: border-color 0.3s, background 0.3s; }
.search-wrap input::placeholder { color: rgba(255,255,255,.3); }
.search-wrap input:focus { border-color: var(--orange); background: rgba(255,255,255,.12); }
.search-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: var(--orange); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.search-btn:hover { background: var(--orange-hover); }
.search-btn svg { stroke: #fff; }

#search-suggestions { display: none; position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; z-index: 50; box-shadow: 0 8px 24px rgba(26,39,68,.12); }
#search-suggestions .sq { padding: 0.7rem 1.2rem; font-size: 0.88rem; color: var(--text); cursor: pointer; border-bottom: 1px solid var(--border); transition: background 0.15s; }
#search-suggestions .sq:last-child { border-bottom: none; }
#search-suggestions .sq:hover { background: var(--bg-warm); color: var(--orange); }

.search-shortcuts { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1rem; flex-wrap: wrap; }
.search-shortcuts a { font-size: 0.76rem; color: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.1); padding: 0.25rem 0.7rem; border-radius: 20px; transition: all 0.2s; }
.search-shortcuts a:hover { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.25); }

/* Category Grid */
.section-label { font-size: 0.78rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.25rem; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }
.cat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.15rem; transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s; display: flex; align-items: flex-start; gap: 0.8rem; }
.cat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,39,68,.07); }
.cat-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-warm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--navy-muted); transition: background 0.2s, color 0.2s; }
.cat-card:hover .cat-icon { background: var(--orange); color: #fff; }
.cat-info h3 { font-size: 0.88rem; font-weight: 700; margin-bottom: 0.1rem; letter-spacing: -0.01em; }
.cat-info p { font-size: 0.76rem; color: var(--text-light); line-height: 1.35; }
.cat-count { font-size: 0.68rem; color: var(--text-light); background: var(--bg-warm); padding: 0.12rem 0.45rem; border-radius: 6px; margin-top: 0.3rem; display: inline-block; }

/* Ratgeber Slider */
.slider-wrap { position: relative; }
.slider-track { display: flex; gap: 0.85rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0.25rem 0; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-card { flex: 0 0 calc(33.333% - 0.57rem); scroll-snap-align: start; min-width: 240px; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--white); color: var(--text-mid); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(26,39,68,.08); transition: all 0.2s; }
.slider-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.slider-prev { left: -18px; }
.slider-next { right: -18px; }
@media (max-width: 900px) {
  .slider-card { flex: 0 0 calc(50% - 0.43rem); }
  .slider-prev { left: -12px; }
  .slider-next { right: -12px; }
}
@media (max-width: 600px) {
  .slider-card { flex: 0 0 85%; }
  .slider-btn { display: none; }
}

/* Page Header */
.page-header { background: var(--navy); padding: 1.75rem 0 2rem; }
.breadcrumb { font-size: 0.78rem; color: rgba(255,255,255,.4); margin-bottom: 0.6rem; }
.breadcrumb a { color: rgba(255,255,255,.5); transition: color 0.2s; }
.breadcrumb a:hover { color: rgba(255,255,255,.8); }
.breadcrumb .sep { margin: 0 0.35rem; }
.page-header h1 { color: #fff; font-size: clamp(1.3rem, 2.8vw, 1.85rem); font-weight: 800; letter-spacing: -0.02em; }
.page-header p { color: rgba(255,255,255,.5); font-size: 0.88rem; margin-top: 0.25rem; }
.page-header .badge-checked { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; color: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.15); padding: 0.2rem 0.6rem; border-radius: 20px; margin-top: 0.5rem; }
.page-header .badge-checked svg { stroke: rgba(255,255,255,.5); }

/* Link Grid (Kategorie-Unterseiten) */
.link-section { margin-bottom: 2.25rem; }
.link-section h2 { font-size: 0.8rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.85rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--border); }
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.65rem; }
.link-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0.85rem; background: var(--white); border: 1px solid var(--border); border-radius: 8px; transition: all 0.2s cubic-bezier(0.16,1,0.3,1); }
.link-item:hover { border-color: var(--orange); transform: translateY(-1px); }
.link-favicon { width: 30px; height: 30px; border-radius: 7px; background: var(--bg-warm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.7rem; font-weight: 700; color: var(--navy-muted); font-family: var(--font-head); }
.link-item:hover .link-favicon { background: var(--orange); color: #fff; }
.link-name { font-size: 0.88rem; font-weight: 600; }
.link-url { font-size: 0.7rem; color: var(--text-light); }
.link-item-wrap { display: flex; flex-direction: column; }
.link-help { font-size: 0.68rem; color: var(--orange); font-weight: 500; margin-top: 0.1rem; padding-left: 0.85rem; }
.link-external { font-size: 0.68rem; color: var(--text-light); margin-left: auto; opacity: 0; transition: opacity 0.2s; flex-shrink: 0; }
.link-item:hover .link-external { opacity: 1; }

/* Info Box */
.info-box { background: var(--bg-warm); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.info-box h3 { font-size: 0.92rem; font-weight: 700; margin-bottom: 0.35rem; }
.info-box p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.6; margin: 0; }
.info-box a { color: var(--orange); font-weight: 600; }

/* Sidebar */
.page-grid { display: grid; grid-template-columns: 1fr 280px; gap: 2.5rem; align-items: start; }
.sidebar { position: sticky; top: 72px; }
.sidebar-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.15rem; margin-bottom: 0.85rem; }
.sidebar-card h3 { font-size: 0.82rem; font-weight: 700; margin-bottom: 0.6rem; }
.sidebar-card a { display: block; font-size: 0.82rem; padding: 0.3rem 0; color: var(--text-mid); transition: color 0.2s; }
.sidebar-card a:hover { color: var(--orange); }
.sidebar-cta { background: var(--navy); border-radius: var(--radius); padding: 1.25rem; color: rgba(255,255,255,.7); }
.sidebar-cta h3 { color: #fff; font-size: 0.88rem; margin-bottom: 0.4rem; }
.sidebar-cta p { font-size: 0.8rem; line-height: 1.5; margin-bottom: 0.65rem; }
.sidebar-cta a { display: inline-block; background: var(--orange); color: #fff; padding: 0.4rem 0.9rem; border-radius: 6px; font-size: 0.8rem; font-weight: 600; transition: background 0.2s; }
.sidebar-cta a:hover { background: var(--orange-hover); }

/* Featured */
.featured { background: var(--bg-warm); padding: 2.5rem 0; }
.featured-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.featured-header h2 { font-size: 1.05rem; font-weight: 700; }
.featured-header a { font-size: 0.8rem; color: var(--orange); font-weight: 600; }
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
.featured-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.15rem; transition: transform 0.25s cubic-bezier(0.16,1,0.3,1); }
.featured-card:hover { transform: translateY(-2px); }
.featured-card .tag { font-size: 0.68rem; font-weight: 600; color: var(--orange); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.featured-card h3 { font-size: 0.92rem; font-weight: 700; margin-bottom: 0.3rem; line-height: 1.3; }
.featured-card p { font-size: 0.8rem; color: var(--text-mid); line-height: 1.5; }

/* Article */
.article { max-width: 700px; }
.article p { color: var(--text-mid); margin-bottom: 1.15rem; font-size: 1rem; line-height: 1.7; }
.article h2 { font-size: 1.15rem; font-weight: 700; margin: 1.75rem 0 0.65rem; }
.article ul, .article ol { margin: 0 0 1.15rem 1.5rem; color: var(--text-mid); }
.article li { margin-bottom: 0.35rem; font-size: 0.95rem; }
.article strong { color: var(--text); }
.article a { color: var(--orange); font-weight: 600; }
.article-meta { font-size: 0.78rem; color: rgba(255,255,255,.4); margin-top: 0.35rem; }
.article-intro { font-size: 1.05rem; color: var(--text); font-weight: 500; line-height: 1.6; border-left: 3px solid var(--orange); padding-left: 1.15rem; margin-bottom: 1.75rem; }
.article-tags { display: flex; gap: 0.4rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.article-tags span { font-size: 0.75rem; background: var(--bg-warm); padding: 0.2rem 0.55rem; border-radius: 5px; color: var(--text-light); }

/* About page */
.about { max-width: 740px; margin: 0 auto; }
.about p { color: var(--text-mid); margin-bottom: 1.15rem; font-size: 1rem; line-height: 1.7; }
.about h2 { font-size: 1.1rem; font-weight: 700; margin: 2.25rem 0 0.65rem; }
.about a { color: var(--orange); font-weight: 600; }
.about-lead { font-size: 1.1rem; color: var(--text); font-weight: 500; line-height: 1.6; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin: 1.25rem 0; }
.value-item { background: var(--bg-warm); border-radius: var(--radius); padding: 1.15rem; }
.value-item h3 { font-size: 0.88rem; font-weight: 700; margin-bottom: 0.2rem; }
.value-item p { font-size: 0.82rem; color: var(--text-mid); margin: 0; line-height: 1.45; }
.about-timeline { list-style: none; margin: 1.5rem 0; }
.about-timeline li { display: grid; grid-template-columns: 72px 1fr; gap: 0.85rem; padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
.about-timeline li:last-child { border-bottom: none; }
.about-timeline .year { font-size: 0.82rem; font-weight: 700; color: var(--orange); }
.about-timeline .event { font-size: 0.88rem; color: var(--text-mid); }
.about-timeline .event strong { color: var(--text); }
.about-contact { background: var(--navy); border-radius: var(--radius); padding: 1.75rem; margin-top: 2.5rem; color: rgba(255,255,255,.7); }
.about-contact h2 { color: #fff; font-size: 1.05rem; margin: 0 0 0.4rem; }
.about-contact p { font-size: 0.88rem; margin: 0; }
.about-contact a { color: var(--orange); }

/* Legal */
.legal { max-width: 740px; }
.legal h2 { font-size: 1.05rem; margin: 1.75rem 0 0.4rem; }
.legal h3 { font-size: 0.92rem; margin: 1.25rem 0 0.35rem; }
.legal p { color: var(--text-mid); margin-bottom: 0.65rem; font-size: 0.92rem; }
.legal ul { margin: 0.35rem 0 0.85rem 1.5rem; color: var(--text-mid); font-size: 0.92rem; }
.legal a { color: var(--orange); }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.4); padding: 2.5rem 0 0; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand p { font-size: 0.8rem; line-height: 1.55; margin-top: 0.4rem; max-width: 260px; }
.footer-col h4 { color: rgba(255,255,255,.6); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.6rem; }
.footer-col a { display: block; font-size: 0.8rem; padding: 0.15rem 0; transition: color 0.2s; }
.footer-col a:hover { color: rgba(255,255,255,.8); }
.footer-trust { display: flex; gap: 1.5rem; padding: 1rem 0; margin-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; color: rgba(255,255,255,.35); }
.trust-item svg { stroke: currentColor; opacity: 0.6; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; margin-top: 0.5rem; border-top: 1px solid rgba(255,255,255,.06); font-size: 0.72rem; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-counter { color: rgba(255,255,255,.25); }

/* Responsive */
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .link-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: 1fr; }
  .page-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main-nav { position: fixed; top: 56px; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 1.25rem; border-bottom: 1px solid rgba(255,255,255,.1); transform: translateY(-110%); opacity: 0; transition: transform 0.3s, opacity 0.3s; pointer-events: none; gap: 0.4rem; }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .main-nav a { padding: 0.6rem 0; font-size: 0.95rem; }
  .nav-toggle { display: flex; }
  .header-badge { display: none; }
}
@media (max-width: 600px) {
  .cat-grid { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.45rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-trust { justify-content: center; }
}
