/* =========================================================
   Wir sind Wördern – Weiß · Orange · Rot
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg-soft: #fff6ee;
  --surface: #ffffff;
  --ink: #2a150c;
  --ink-soft: #725c51;
  --line: #f2e2d5;
  --rot: #d7192d;
  --rot-tief: #a3101f;
  --orange: #f47b0a;
  --orange-hell: #ffb056;
  --orange-soft: #fff0e2;
  --verlauf: linear-gradient(100deg, #f47b0a 0%, #e8452a 55%, #d7192d 100%);
  --verlauf-titel: linear-gradient(100deg, #ffd59a 0%, #ffab45 22%, #ff7a2f 45%, #ff4a3d 68%, #ffb056 85%, #ffd59a 100%);
  --schatten: 0 1px 2px rgba(90, 35, 10, .06), 0 8px 24px rgba(90, 35, 10, .08);
  --schatten-gross: 0 4px 10px rgba(90, 35, 10, .08), 0 22px 50px rgba(90, 35, 10, .16);
  --radius: 18px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #130c09; --bg-soft: #1a120e; --surface: #221814; --ink: #f9efe8; --ink-soft: #bea99c; --line: #3a2a22;
    --rot: #ff5a50; --rot-tief: #6e0f1a; --orange: #ff9a3c; --orange-hell: #ffbf73; --orange-soft: #3a2416;
    --schatten: 0 1px 2px rgba(0,0,0,.45), 0 8px 24px rgba(0,0,0,.35); --schatten-gross: 0 4px 10px rgba(0,0,0,.5), 0 22px 50px rgba(0,0,0,.55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #130c09; --bg-soft: #1a120e; --surface: #221814; --ink: #f9efe8; --ink-soft: #bea99c; --line: #3a2a22;
  --rot: #ff5a50; --rot-tief: #6e0f1a; --orange: #ff9a3c; --orange-hell: #ffbf73; --orange-soft: #3a2416;
  --schatten: 0 1px 2px rgba(0,0,0,.45), 0 8px 24px rgba(0,0,0,.35); --schatten-gross: 0 4px 10px rgba(0,0,0,.5), 0 22px 50px rgba(0,0,0,.55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; transition: background-color .4s var(--ease), color .4s var(--ease); }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- Banner ---------- */
.hero { position: relative; min-height: clamp(540px, 82vh, 780px); display: flex; flex-direction: column; color: #fff; overflow: hidden; isolation: isolate; background: #3a1a0e; }
.hero-foto { position: absolute; inset: 0; z-index: -2; }
.hero-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform-origin: 60% 70%; animation: kamera 28s var(--ease) both; }
@keyframes kamera { from { transform: scale(1.16); } to { transform: scale(1.02); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(25, 10, 4, .55) 0%, rgba(25, 10, 4, .08) 30%, rgba(25, 10, 4, .25) 55%, rgba(25, 10, 4, .86) 100%),
    radial-gradient(ellipse at 10% 90%, rgba(215, 25, 45, .35), transparent 55%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--verlauf); z-index: 1; }
.hero-oben { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; }
.ortmarke { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.ortmarke img { width: 40px; filter: drop-shadow(0 3px 8px rgba(0,0,0,.4)); }
.glas { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 600; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 8px 15px; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, transform .2s var(--ease); }
.glas:hover { background: rgba(255,255,255,.26); transform: translateY(-1px); }
.glas svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.glas:hover svg { transform: rotate(40deg); }
.hero-inhalt { margin-top: auto; padding-bottom: 92px; }
.hero h1 {
  font-family: var(--serif); font-weight: 800; font-size: clamp(52px, 10.5vw, 128px); line-height: .95; margin: 0 0 18px; letter-spacing: -.02em;
  background: var(--verlauf-titel); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 22px rgba(0,0,0,.5)); animation: einblenden .9s var(--ease) .1s both, glanz 9s ease-in-out 1s infinite;
}
@keyframes glanz { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero p { margin: 0; max-width: 620px; font-size: clamp(17px, 2vw, 20px); text-shadow: 0 1px 10px rgba(0,0,0,.55); animation: einblenden .9s var(--ease) .3s both; }
.zahlen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; animation: einblenden .9s var(--ease) .5s both; }
.zahlen span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 999px; padding: 6px 14px; font-size: 14.5px; }
.zahlen b { font-weight: 800; margin-right: 4px; color: var(--orange-hell); }
.fotonachweis { position: absolute; right: 14px; bottom: 14px; font-size: 11px; color: rgba(255,255,255,.75); text-decoration: none; z-index: 2; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.fotonachweis:hover { color: #fff; text-decoration: underline; }
@keyframes einblenden { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Suchleiste (schwebt über dem Bannerrand) ---------- */
.werkzeug { position: sticky; top: 10px; z-index: 20; margin-top: -58px; }
.panel { background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--schatten-gross); padding: 14px; display: grid; gap: 12px; }
.suchzeile { display: flex; gap: 10px; }
.suchfeld { position: relative; flex: 1; min-width: 0; }
.suchfeld svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--orange); pointer-events: none; }
.suche, .ortwahl { font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 16px; transition: border-color .2s, box-shadow .2s; }
.suche { width: 100%; font-size: 17px; padding-left: 46px; }
.suche:focus, .ortwahl:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 22%, transparent); }
.ortwahl { flex: none; max-width: 40%; cursor: pointer; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.chip { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 600; padding: 7px 14px 7px 11px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; transition: transform .2s var(--ease), border-color .2s, background .25s, color .25s; }
.chip .e { font-size: 17px; line-height: 1; transition: transform .35s var(--ease); }
.chip:hover { border-color: var(--orange); transform: translateY(-1px); }
.chip:hover .e { transform: scale(1.25) rotate(-8deg); }
.chip:active { transform: scale(.96); }
.chip small { font-weight: 500; opacity: .6; }
.chip[aria-pressed="true"] { background: var(--verlauf); border-color: transparent; color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--rot) 35%, transparent); }
.chip[aria-pressed="true"] small { opacity: .85; }

/* ---------- Inhalt ---------- */
main { padding: 48px 0 80px; }
.trefferinfo { margin: 0 0 28px; font-size: 17px; color: var(--ink-soft); animation: einblenden .4s var(--ease) both; }
.trefferinfo b { color: var(--ink); }
.kategorie { margin-bottom: 64px; scroll-margin-top: 170px; }
.kat-kopf { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.kat-emoji { flex: none; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; background: var(--orange-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--orange) 25%, transparent); transition: transform .5s var(--ease); }
.kategorie:hover .kat-emoji { transform: rotate(-8deg) scale(1.06); }
.kat-titel { flex: 1 1 280px; min-width: 0; }
.kat-titel h2 { font-family: var(--serif); font-weight: 800; font-size: 32px; line-height: 1.1; margin: 0; }
.kat-titel p { margin: 4px 0 0; color: var(--ink-soft); font-size: 15px; }
.anzahl { font-size: 13.5px; font-weight: 700; color: var(--rot); background: color-mix(in srgb, var(--rot) 10%, transparent); padding: 5px 12px; border-radius: 999px; }

.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 20px; }

.kachel {
  --i: 0; position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--schatten);
  opacity: 0; transform: translateY(26px) scale(.98);
  transition: opacity .6s var(--ease) calc(var(--i) * 55ms), transform .6s var(--ease) calc(var(--i) * 55ms), box-shadow .3s var(--ease), border-color .3s;
}
.kachel.da { opacity: 1; transform: none; }
.kachel.da:hover { transform: translateY(-6px); box-shadow: var(--schatten-gross); border-color: color-mix(in srgb, var(--orange) 55%, var(--line)); transition-delay: 0s; }
.kachel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--verlauf); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.kachel:hover::after { transform: scaleX(1); }
.kachel-bild { position: relative; aspect-ratio: 16 / 10; background: var(--orange-soft); overflow: hidden; }
.kachel-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.kachel:hover .kachel-bild img { transform: scale(1.07); }
.platzhalter { position: absolute; inset: 0; display: grid; place-items: center; }
.platzhalter::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 15%, rgba(255,255,255,.35), transparent 50%), repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 14px, transparent 14px 28px); }
.platzhalter span { position: relative; font-size: 58px; line-height: 1; filter: drop-shadow(0 6px 12px rgba(0,0,0,.18)); transition: transform .5s var(--ease); }
.kachel:hover .platzhalter span { transform: scale(1.15) rotate(-6deg); }
.kachel-ort { position: absolute; left: 10px; top: 10px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.94); color: #7a2d0c; padding: 3px 10px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.kachel-text { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.kachel h3 { margin: 0; font-size: 16.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.branche { font-size: 13.5px; color: var(--orange); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kachel .text { font-size: 14px; color: var(--ink-soft); margin: 2px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.domain { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--ink-soft); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.domain span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfeil { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-soft); color: var(--rot); font-weight: 800; transition: transform .35s var(--ease), background .3s, color .3s; }
.kachel:hover .pfeil { background: var(--verlauf); color: #fff; transform: rotate(45deg); }

.mehr { display: flex; align-items: center; gap: 8px; margin: 26px auto 0; font: inherit; font-weight: 700; font-size: 15px; color: var(--rot); background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--rot) 45%, var(--line)); border-radius: 999px; padding: 10px 22px; cursor: pointer; transition: transform .2s var(--ease), background .25s, color .25s; }
.mehr:hover { background: var(--verlauf); color: #fff; border-color: transparent; transform: translateY(-2px); }

.leer { text-align: center; color: var(--ink-soft); padding: 70px 0; font-size: 18px; }
.leer .gross { display: block; font-size: 54px; margin-bottom: 10px; animation: wackeln 2.4s ease-in-out infinite; }
@keyframes wackeln { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }

/* ---------- Fuß ---------- */
footer { position: relative; background: var(--bg-soft); padding: 40px 0 46px; color: var(--ink-soft); font-size: 14px; }
footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--verlauf); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer .marke { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; font-size: 15px; }
footer .marke img { width: 34px; }
footer a { color: var(--rot); }
.oben-knopf { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--verlauf); color: #fff; font-size: 22px; cursor: pointer; box-shadow: var(--schatten-gross); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
.oben-knopf.zeigen { opacity: 1; transform: none; pointer-events: auto; }

@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .hero { min-height: 560px; }
  .hero-foto img { object-position: 40% 60%; }
  .hero-inhalt { padding-bottom: 84px; }
  .glas .label { display: none; }
  .werkzeug { top: 6px; margin-top: -50px; }
  .panel { padding: 10px; border-radius: 18px; gap: 10px; }
  .suchzeile { flex-direction: column; gap: 8px; }
  .ortwahl { max-width: none; padding: 10px 14px; }
  .suche { font-size: 16px; padding-top: 11px; padding-bottom: 11px; }
  main { padding-top: 34px; }
  .raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kachel-text { padding: 10px 12px 12px; }
  .kachel h3 { font-size: 15px; }
  .kachel .text { display: none; }
  .platzhalter span { font-size: 42px; }
  .kat-emoji { width: 48px; height: 48px; font-size: 25px; border-radius: 15px; }
  .kat-titel h2 { font-size: 25px; }
  .pfeil { width: 24px; height: 24px; }
}
@media (max-width: 360px) { .raster { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .kachel { opacity: 1; transform: none; }
}
