/* ============================================================
   AZUReplit — Main Stylesheet
   Design: Ultra-minimal, Mobile-first, kein Bootstrap
   Palette: Navy-Akzent #0f4c81, Grau-Skala, Weiß
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --c-accent:       #0f4c81;
  --c-accent-light: #1a6bb5;
  --c-accent-faint: #e8f1fb;
  --c-green:        #16a34a;
  --c-green-light:  #dcfce7;
  --c-warn:         #b45309;
  --c-warn-light:   #fef3c7;
  --c-danger:       #dc2626;
  --c-danger-light: #fee2e2;
  --c-text:         #111827;
  --c-text-muted:   #6b7280;
  --c-text-light:   #9ca3af;
  --c-border:       #e5e7eb;
  --c-border-dark:  #d1d5db;
  --c-bg:           #ffffff;
  --c-bg-subtle:    #f9fafb;
  --c-bg-header:    #0f4c81;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 8px 24px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.05);

  --font-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-size-base: 16px;

  --max-w:      1100px;
  --gap:        1.25rem;
  --gap-lg:     2rem;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: var(--font-size-base); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ── Layout Utilities ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  background: var(--c-bg-header);
  padding: .75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.site-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}
.site-logo__text {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

/* Header Search */
.header-search {
  flex: 1;
  min-width: 0;
  max-width: 560px;
  margin-inline: auto;
}
.header-search form {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: var(--radius-xl);
  padding: .35rem .35rem .35rem .9rem;
  transition: background .2s, border-color .2s;
}
.header-search form:focus-within {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.6);
}
.header-search input[type="search"] {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: .95rem;
  min-width: 0;
}
.header-search input::placeholder { color: rgba(255,255,255,.65); }
.header-search button[type="submit"] {
  background: rgba(255,255,255,.2);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: .4rem .8rem;
  font-size: .85rem;
  font-weight: 600;
  transition: background .2s;
  flex-shrink: 0;
}
.header-search button[type="submit"]:hover { background: rgba(255,255,255,.35); }

/* ── Hero Search (Homepage only) ────────────────────────────── */
.hero {
  background: linear-gradient(145deg, #0f4c81 0%, #1a6bb5 60%, #2980d4 100%);
  color: #fff;
  padding: 3.5rem 0 4rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-bottom: .75rem;
}
.hero p {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  opacity: .88;
  max-width: 560px;
  margin: 0 auto 2rem;
}
.hero-search {
  max-width: 600px;
  margin-inline: auto;
}
.hero-search form {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  overflow: hidden;
}
.hero-search input[type="search"] {
  flex: 1;
  border: none;
  outline: none;
  padding: .9rem 1.25rem;
  font-size: 1rem;
  color: var(--c-text);
  min-width: 0;
}
.hero-search button[type="submit"] {
  background: var(--c-accent);
  color: #fff;
  padding: .9rem 1.5rem;
  font-size: .95rem;
  font-weight: 700;
  border-radius: 0;
  transition: background .2s;
  flex-shrink: 0;
}
.hero-search button[type="submit"]:hover { background: var(--c-accent-light); }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  padding: .6rem 0;
  font-size: .8rem;
  color: var(--c-text-muted);
  border-bottom: 1px solid var(--c-border);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .25rem; }
.breadcrumb li { display: flex; align-items: center; gap: .25rem; }
.breadcrumb li + li::before { content: "›"; color: var(--c-border-dark); }
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-accent); }

/* ── Main Content Area ──────────────────────────────────────── */
.site-main { flex: 1; padding: 1.5rem 0 3rem; }

/* ── Section Headings ───────────────────────────────────────── */
.section-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -.01em;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--c-accent);
  display: inline-block;
}
.section-heading-lg {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}

/* ── Alternative Cards (Grid) ───────────────────────────────── */
.alt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}
@media (min-width: 560px) {
  .alt-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .alt-grid { grid-template-columns: repeat(3, 1fr); }
}

.alt-card {
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  text-decoration: none;
  color: inherit;
}
.alt-card:hover {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  text-decoration: none;
}
.alt-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  overflow: hidden;
  background: var(--c-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}
.alt-card__icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.alt-card__body { flex: 1; min-width: 0; }
.alt-card__title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: .2rem;
}
.alt-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  align-items: center;
}
.alt-card__excerpt {
  font-size: .8rem;
  color: var(--c-text-muted);
  margin-top: .25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* License Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .15rem .5rem;
  border-radius: var(--radius-sm);
  font-size: .7rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.badge--free    { background: var(--c-green-light);  color: var(--c-green); }
.badge--paid    { background: var(--c-warn-light);   color: var(--c-warn); }
.badge--os      { background: var(--c-accent-faint); color: var(--c-accent); }
.badge--unavail { background: var(--c-danger-light); color: var(--c-danger); }
.badge--ad      { background: #f3f4f6; color: var(--c-text-muted); border: 1px solid var(--c-border); }

/* ── Single Alt Page ────────────────────────────────────────── */
.single-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
}
@media (min-width: 900px) {
  .single-layout { grid-template-columns: 1fr 300px; align-items: start; }
}

/* Hero block for the subject app */
.app-hero {
  background: var(--c-bg-subtle);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: var(--gap-lg);
}
.app-hero__top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.app-hero__icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-hero__icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.app-hero__info { flex: 1; min-width: 200px; }
.app-hero__title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: .4rem;
}
.app-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin-bottom: .75rem;
}
.app-hero__desc {
  font-size: .95rem;
  color: var(--c-text-muted);
  line-height: 1.65;
}

/* CTA button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--c-accent);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  padding: .65rem 1.35rem;
  border-radius: var(--radius-xl);
  transition: background .15s, transform .1s;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--c-accent-light);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--c-bg);
  color: var(--c-accent);
  font-weight: 600;
  font-size: .9rem;
  padding: .65rem 1.35rem;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--c-accent);
  transition: background .15s;
  white-space: nowrap;
}
.btn-secondary:hover {
  background: var(--c-accent-faint);
  text-decoration: none;
}

/* App-Hero actions row */
.app-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}

/* Gallery strip */
.app-gallery {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .25rem;
  margin-top: 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border) transparent;
}
.app-gallery a {
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--c-border);
}
.app-gallery img { width: 120px; height: 72px; object-fit: cover; }

/* ── Taxonomy Tags Section ──────────────────────────────────── */
.tag-section {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin: 1rem 0;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .375rem;
}
.tag-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  min-width: 90px;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: .2rem .65rem;
  border-radius: var(--radius-xl);
  font-size: .78rem;
  font-weight: 500;
  background: var(--c-bg-subtle);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  transition: border-color .12s, background .12s;
}
.tag-pill:hover { border-color: var(--c-accent); background: var(--c-accent-faint); text-decoration: none; }
.tag-pill--category { background: var(--c-accent-faint); border-color: transparent; color: var(--c-accent); font-weight: 600; }
.tag-pill--platform { background: #f0fdf4; border-color: transparent; color: #166534; }

/* ── Alternatives List (on single page) ─────────────────────── */
.alts-list { display: flex; flex-direction: column; gap: .5rem; }

.alt-row {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .875rem 1rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
  background: var(--c-bg);
  transition: border-color .12s, box-shadow .12s, transform .1s;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.alt-row:hover {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
  text-decoration: none;
}
.alt-row__rank {
  font-size: .75rem;
  font-weight: 700;
  color: var(--c-text-light);
  min-width: 1.2rem;
  text-align: right;
  flex-shrink: 0;
}
.alt-row__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--c-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}
.alt-row__icon img { width: 44px; height: 44px; object-fit: contain; }
.alt-row__body { flex: 1; min-width: 0; }
.alt-row__title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.alt-row__sub {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .2rem;
  align-items: center;
}
.alt-row__chevron {
  color: var(--c-text-light);
  flex-shrink: 0;
  font-size: 1.1rem;
}

/* Ad row inside list */
.alt-row--ad {
  border-color: #fbbf24;
  background: #fffbeb;
}
.alt-row--ad:hover { border-color: #f59e0b; }

/* ── Sidebar ─────────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: var(--gap); }
.sidebar-widget {
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.sidebar-widget__header {
  background: var(--c-bg-subtle);
  padding: .75rem 1rem;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--c-text-muted);
  border-bottom: 1px solid var(--c-border);
}
.sidebar-widget__body { padding: 1rem; }

/* Related categories in sidebar */
.related-cats { display: flex; flex-direction: column; gap: .5rem; }
.related-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  color: var(--c-text);
  font-size: .88rem;
  padding: .25rem 0;
  border-bottom: 1px solid var(--c-border);
}
.related-cat-link:last-child { border-bottom: none; }
.related-cat-link:hover { color: var(--c-accent); text-decoration: none; }

/* ── Share Strip ────────────────────────────────────────────── */
.share-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding: .875rem 0;
  border-top: 1px solid var(--c-border);
  margin-top: 1rem;
}
.share-strip__label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-right: .25rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem .8rem;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--c-border);
  background: var(--c-bg);
  font-size: .8rem;
  font-weight: 600;
  color: var(--c-text);
  transition: border-color .12s, background .12s;
}
.share-btn:hover { border-color: var(--c-accent); background: var(--c-accent-faint); text-decoration: none; }
.share-btn svg { flex-shrink: 0; }

/* ── Inline Suggest Form ────────────────────────────────────── */
.suggest-box {
  background: var(--c-bg-subtle);
  border: 1.5px dashed var(--c-border-dark);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.5rem;
}
.suggest-box h3 { font-size: .95rem; font-weight: 700; margin-bottom: .75rem; }
.suggest-box input,
.suggest-box textarea {
  width: 100%;
  padding: .6rem .85rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-family: inherit;
  margin-bottom: .5rem;
  background: var(--c-bg);
  color: var(--c-text);
  transition: border-color .12s;
}
.suggest-box input:focus,
.suggest-box textarea:focus {
  border-color: var(--c-accent);
  outline: none;
}
.suggest-box textarea { resize: vertical; min-height: 70px; }
.suggest-box .btn-primary { font-size: .85rem; padding: .55rem 1.1rem; }

/* ── Homepage Category Grid ─────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .625rem;
}
@media (min-width: 480px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }

.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: 1rem .5rem;
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: .82rem;
  font-weight: 600;
  color: var(--c-text);
  transition: border-color .12s, box-shadow .12s, transform .1s;
  min-height: 80px;
}
.cat-tile:hover {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  text-decoration: none;
}
.cat-tile__icon { font-size: 1.5rem; line-height: 1; }

/* ── Taxonomy Archive Page ──────────────────────────────────── */
.taxonomy-hero {
  padding: 1.5rem 0 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--c-border);
}
.taxonomy-hero h1 {
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: .5rem;
}
.taxonomy-hero p { font-size: .95rem; color: var(--c-text-muted); max-width: 640px; }

/* ── Status Banner ──────────────────────────────────────────── */
.status-banner {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  padding: .875rem 1rem;
  border-radius: var(--radius-md);
  font-size: .88rem;
  margin-bottom: 1rem;
}
.status-banner--warn {
  background: var(--c-warn-light);
  border: 1px solid #fcd34d;
  color: var(--c-warn);
}
.status-banner--danger {
  background: var(--c-danger-light);
  border: 1px solid #fca5a5;
  color: var(--c-danger);
}
.status-banner__icon { font-size: 1.1rem; flex-shrink: 0; }

/* ── Content Prose (post content) ──────────────────────────── */
.prose {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--c-text);
  max-width: 68ch;
}
.prose h2, .prose h3 { font-weight: 700; margin: 1.4em 0 .5em; letter-spacing: -.015em; }
.prose h2 { font-size: 1.2rem; }
.prose h3 { font-size: 1.05rem; }
.prose p { margin-bottom: .9em; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: .9em; }
.prose li { margin-bottom: .35em; }
.prose a { color: var(--c-accent); }
.prose strong { font-weight: 700; }

/* readmore collapse */
.content-collapse { position: relative; max-height: 8rem; overflow: hidden; }
.content-collapse::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4rem;
  background: linear-gradient(transparent, var(--c-bg-subtle));
}
.content-collapse.expanded { max-height: none; }
.content-collapse.expanded::after { display: none; }
.readmore-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--c-accent);
  background: none;
  border: none;
  padding: .25rem 0;
  margin-top: .4rem;
  cursor: pointer;
}
.readmore-btn:hover { text-decoration: underline; }

/* ── Cookie Consent override ────────────────────────────────── */
#cc-main .cm { border-radius: var(--radius-lg) !important; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: #111827;
  color: #d1d5db;
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-brand img { height: 32px; width: auto; margin-bottom: .75rem; filter: brightness(0) invert(1); opacity: .8; }
.footer-brand p { font-size: .83rem; line-height: 1.65; color: #9ca3af; }
.footer-heading { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; margin-bottom: .875rem; }
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { font-size: .88rem; color: #9ca3af; transition: color .12s; }
.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  font-size: .78rem;
  color: #6b7280;
}
.footer-social { display: flex; gap: .625rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1f2937;
  color: #9ca3af;
  transition: background .12s, color .12s;
}
.footer-social a:hover { background: var(--c-accent); color: #fff; text-decoration: none; }

/* Scroll-to-top */
.scroll-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1f2937;
  color: #9ca3af;
  font-size: 1rem;
  transition: background .12s, color .12s;
}
.scroll-top:hover { background: var(--c-accent); color: #fff; text-decoration: none; }

/* ── Lightbox (Vorschlag / Offline melden) ──────────────────── */
.azu-modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.55);
  padding: 1rem;
  align-items: center;
  justify-content: center;
}
.azu-modal-overlay.open { display: flex; }
.azu-modal {
  background: var(--c-bg);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modal-in .2s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.azu-modal__close {
  position: absolute;
  top: .875rem; right: .875rem;
  background: var(--c-bg-subtle);
  border: 1px solid var(--c-border);
  border-radius: 50%;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  color: var(--c-text-muted);
  cursor: pointer;
  transition: background .12s;
}
.azu-modal__close:hover { background: var(--c-border); }
.azu-modal h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.azu-modal input,
.azu-modal textarea {
  width: 100%;
  padding: .6rem .85rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-family: inherit;
  margin-bottom: .625rem;
  color: var(--c-text);
  background: var(--c-bg);
}
.azu-modal input:focus,
.azu-modal textarea:focus { border-color: var(--c-accent); outline: none; }
.azu-modal textarea { resize: vertical; min-height: 80px; }
.form-msg { padding: .5rem .75rem; border-radius: var(--radius-sm); font-size: .83rem; display: none; margin-top: .25rem; }
.form-msg--success { background: var(--c-green-light); color: var(--c-green); }
.form-msg--error   { background: var(--c-danger-light); color: var(--c-danger); }

/* ── Rating Stars (from plugin) ─────────────────────────────── */
.azu-stars { display: inline-flex; gap: 2px; align-items: center; }
.azu-stars svg { width: 14px; height: 14px; }

/* ── Responsive Utilities ───────────────────────────────────── */
@media (max-width: 639px) {
  .hide-mobile { display: none !important; }
  .app-hero { padding: 1rem; }
  .app-hero__icon { width: 56px; height: 56px; }
  .app-hero__icon img { width: 56px; height: 56px; }
}
@media (min-width: 640px) {
  .hide-desktop { display: none !important; }
}

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: .375rem;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 2rem;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 .625rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--c-border);
  font-size: .85rem;
  font-weight: 600;
  color: var(--c-text);
  transition: border-color .12s, background .12s;
}
.pagination a:hover { border-color: var(--c-accent); background: var(--c-accent-faint); text-decoration: none; }
.pagination .current { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }

/* ── Schema/SEO invisible structured data ───────────────────── */
.azu-sd { display: none; }

/* ── Ad container ───────────────────────────────────────────── */
.ad-container { margin: 1.5rem 0; }
.ad-label { font-size: .68rem; color: var(--c-text-light); text-align: center; margin-bottom: .3rem; text-transform: uppercase; letter-spacing: .05em; }

/* ── Search Suggestions Dropdown ───────────────────────────── */
.search-suggest-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.search-suggest-wrap form {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: var(--radius-xl);
  padding: .35rem .35rem .35rem .9rem;
  transition: background .2s, border-color .2s;
}
.search-suggest-wrap form:focus-within {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.6);
}
.search-suggest-wrap input[type="search"] {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: .95rem;
  min-width: 0;
}
.search-suggest-wrap input::placeholder { color: rgba(255,255,255,.65); }
.search-suggest-wrap button[type="submit"] {
  background: rgba(255,255,255,.2);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: .4rem .75rem;
  font-size: .85rem;
  font-weight: 600;
  transition: background .2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.search-suggest-wrap button[type="submit"]:hover { background: rgba(255,255,255,.35); }

/* Suggestions list (header) */
.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  overflow: hidden;
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border) transparent;
}
.search-suggestions[hidden] { display: none; }

.suggest-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .65rem .875rem;
  color: var(--c-text);
  text-decoration: none;
  font-size: .875rem;
  border-bottom: 1px solid var(--c-border);
  transition: background .1s;
}
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover,
.suggest-item.is-active {
  background: var(--c-accent-faint);
  color: var(--c-accent);
  text-decoration: none;
}
.suggest-item img {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  flex-shrink: 0;
  background: var(--c-bg-subtle);
}
.suggest-item__placeholder {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--c-bg-subtle);
  flex-shrink: 0;
}
.suggest-item__title {
  flex: 1;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.suggest-item__arrow {
  color: var(--c-text-light);
  flex-shrink: 0;
  font-size: 1rem;
}

/* ── Hero Search Suggestions ────────────────────────────────── */
.search-suggest-wrap--hero {
  max-width: 100%;
}
.search-suggest-wrap--hero form {
  background: #fff;
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  overflow: visible;
  padding: 0;
}
.search-suggest-wrap--hero input[type="search"] {
  color: var(--c-text);
  font-size: 1rem;
  padding: .9rem 1.25rem;
}
.search-suggest-wrap--hero input::placeholder { color: var(--c-text-muted); }
.search-suggest-wrap--hero button[type="submit"] {
  background: var(--c-accent);
  color: #fff;
  padding: .9rem 1.35rem;
  font-size: .95rem;
  font-weight: 700;
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  gap: .5rem;
}
.search-suggest-wrap--hero button[type="submit"]:hover { background: var(--c-accent-light); }

.search-suggestions--hero {
  top: calc(100% + 8px);
  border-radius: var(--radius-md);
}

/* Override: remove old header-search form styles when inside search-suggest-wrap */
.header-search .search-suggest-wrap form {
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
}
.header-search .search-suggest-wrap form:focus-within {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.6);
}
