/* Startseite von FestlFlow – eigenständiges Stylesheet (kein Tailwind-Build nötig), mobil zuerst */
:root {
  --wine: #7a1f3d; --wine-dark: #3f0f20; --wine-mid: #5a1730;
  --gold: #c9a227; --gold-dark: #a8841a; --gold-soft: #f6ecc4;
  --cream: #fbf7f0; --paper: #ffffff; --ink: #241519; --muted: #6b5a5f; --line: #eadfd2;
  --radius: 18px; --shadow: 0 18px 50px rgba(63, 15, 32, .18);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream); line-height: 1.6; font-size: 17px; }
img, svg { max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 30; background: rgba(63, 15, 32, .92); backdrop-filter: blur(8px); color: #fff; transition: box-shadow .2s; }
.top.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.top .wrap { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: .2px; margin-right: auto; }
.brand img { width: 30px; height: 35px; }
.brand b { color: var(--gold); font-weight: 800; }
.top nav { display: none; gap: 1.5rem; font-size: .95rem; }
.top nav a { text-decoration: none; opacity: .85; padding: .5rem 0; }
.top nav a:hover { opacity: 1; }
@media (min-width: 820px) { .top nav { display: flex; } }

/* Logo der Energieregion Mistelbach in der Kopfzeile (verlinkt auf deren Website) */
.er-logo { display: flex; align-items: center; background: #fff; border-radius: 10px; padding: 3px 8px; transition: transform .15s, box-shadow .15s; }
.er-logo:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.er-logo img { height: 34px; width: auto; display: block; }
@media (min-width: 560px) { .er-logo img { height: 40px; } }
@media (max-width: 380px) { .brand span { display: none; } }

/* Schaltflächen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-gold { background: var(--gold); color: var(--wine-dark); }
.btn-gold:hover { background: #d8b23a; box-shadow: 0 8px 24px rgba(201, 162, 39, .4); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-wine { background: var(--wine); color: #fff; width: 100%; }
.btn-wine:hover { background: var(--wine-mid); box-shadow: 0 8px 24px rgba(122, 31, 61, .35); }
.btn[disabled] { opacity: .65; cursor: wait; }
.btn-sm { min-height: 40px; padding: .4rem 1.1rem; font-size: .95rem; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 85% -10%, #8c2b4b 0%, transparent 60%), linear-gradient(160deg, var(--wine-dark), var(--wine) 70%); padding: 3.5rem 0 5.5rem; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(201, 162, 39, .18) 1.5px, transparent 1.5px); background-size: 34px 34px; mask-image: linear-gradient(#000, transparent 80%); -webkit-mask-image: linear-gradient(#000, transparent 80%); }
.bunting { position: absolute; top: 0; left: 0; width: 100%; height: 70px; opacity: .95; pointer-events: none; }
.hero .wrap { position: relative; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 940px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; } .hero { padding: 5.5rem 0 7rem; } }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: .88rem; font-weight: 600; color: var(--gold-soft); margin: 1.2rem 0 0; }
.hero h1 { font-size: clamp(2.3rem, 7vw, 4rem); line-height: 1.05; margin: 1rem 0 1rem; letter-spacing: -.02em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--gold); }
.lead { font-size: clamp(1.05rem, 2.6vw, 1.3rem); max-width: 34rem; opacity: .92; margin: 0 0 1.6rem; }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.ticks { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .5rem; font-size: .98rem; }
.ticks li { display: flex; gap: .6rem; align-items: center; opacity: .92; }
.ticks .icon { width: 1.2rem; height: 1.2rem; color: var(--gold); stroke-width: 2.4; }

/* „powered by“ mit Logo der Energieregion Mistelbach */
.powered { display: inline-flex; align-items: center; gap: .9rem; margin-top: 1.8rem; padding: .5rem 1rem .5rem 1.1rem; border-radius: 16px; background: #fff; color: var(--muted); font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: lowercase; box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.powered img { height: 52px; width: auto; display: block; }

/* Anmeldekarte */
.login { background: var(--paper); color: var(--ink); border-radius: 24px; padding: 1.6rem; box-shadow: var(--shadow); position: relative; scroll-margin-top: 90px; }
.login::before { content: ""; position: absolute; left: 24px; right: 24px; top: -7px; height: 14px; border-radius: 8px; background: var(--gold); z-index: -1; }
.login h2 { margin: 0 0 .2rem; font-size: 1.4rem; }
.login p.sub { margin: 0 0 1.1rem; color: var(--muted); font-size: .95rem; }
.field { display: grid; gap: .3rem; margin-bottom: .9rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input { font: inherit; font-size: 16px; padding: .8rem .9rem; min-height: 48px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.field input:focus { border-color: var(--wine); }
.field small { color: var(--muted); font-size: .8rem; }
.error { background: #fde8e8; color: #8a1212; border-radius: 10px; padding: .6rem .8rem; font-size: .92rem; font-weight: 600; margin: 0 0 .9rem; }
.login .fine { margin: .9rem 0 0; font-size: .82rem; color: var(--muted); text-align: center; }

/* Abschnitte */
section { padding: 4.5rem 0; }
.kicker { color: var(--wine); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin: 0 0 .5rem; }
h2.title { font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.15; margin: 0 0 .8rem; letter-spacing: -.01em; }
.intro { color: var(--muted); max-width: 40rem; margin: 0 0 2.5rem; font-size: 1.08rem; }

.strip { background: var(--paper); border-block: 1px solid var(--line); padding: 1.3rem 0; }
.strip ul { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: center; font-weight: 600; color: var(--wine); font-size: .95rem; }
.strip li { display: flex; align-items: center; gap: .5rem; }
/* PC: vier Punkte gleichmäßig über die Breite verteilt, in einer Zeile */
@media (min-width: 1180px) {
  .strip ul { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 1rem 1.5rem; }
  .strip li { white-space: nowrap; }
}

.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(63, 15, 32, .1); }
.card .ico { width: 3rem; height: 3rem; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--wine); margin-bottom: 1rem; }
.card h3 { margin: 0 0 .4rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }

.steps { counter-reset: s; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding: 1.6rem 1.5rem 1.5rem; border-radius: var(--radius); background: var(--wine); color: #fff; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -16px; left: 1.4rem; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--wine-dark); font-weight: 800; }
.step h3 { margin: .4rem 0 .3rem; }
.step p { margin: 0; opacity: .88; font-size: .98rem; }

/* Demo direkt auf der Seite (dunkler Abschnitt; die Demo selbst ist in demo.css auf #demo begrenzt) */
.demo-section { background: #1d1218; color: #fff; padding: 4rem 0 3rem; scroll-margin-top: 64px; }
.demo-section .intro { margin-bottom: 1.6rem; }
.demo-section .player { width: 100%; padding: 0; }

/* Animierter Ablauf einer Bestellung */
.flow-title { text-align: center; margin: 3.2rem 0 1.4rem; font-size: 1.25rem; }
.flow { display: grid; gap: .4rem; align-items: stretch; }
.fnode { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem .9rem; text-align: center; animation: lit 8s infinite; animation-delay: calc(var(--i) * 1.4s); }
.fnode .fi { display: block; font-size: 1.9rem; line-height: 1.2; margin-bottom: .2rem; }
.fnode b { display: block; color: var(--wine); }
.fnode small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.35; margin-top: .15rem; }
@keyframes lit { 0%, 17% { background: var(--gold-soft); border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 12px 26px rgba(201, 162, 39, .35); } 24%, 100% { background: var(--cream); border-color: var(--line); transform: none; box-shadow: none; } }
.fline { position: relative; height: 26px; width: 4px; margin-inline: auto; border-radius: 4px; background: repeating-linear-gradient(var(--line) 0 6px, transparent 6px 12px); }
.fline i { position: absolute; left: 50%; top: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--gold); animation: run 1.8s linear infinite; }
@keyframes run { from { top: -4px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: calc(100% - 8px); opacity: 0; } }
@media (min-width: 900px) {
  .flow { grid-template-columns: 1fr 34px 1fr 34px 1fr 34px 1fr 34px 1fr; align-items: center; }
  .fline { width: 100%; height: 4px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
  .fline i { top: 50%; left: 0; margin: -6px 0 0; animation-name: runx; }
  @keyframes runx { from { left: -4px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 8px); opacity: 0; } }
}
.btn-inline { width: auto; }
@media (prefers-reduced-motion: reduce) { .fnode, .fline i { animation: none !important; } }

.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.phone { margin-inline: auto; width: min(300px, 100%); border-radius: 34px; background: #1d1218; padding: 12px; box-shadow: var(--shadow); }
.screen { border-radius: 24px; background: var(--cream); overflow: hidden; }
.screen header { background: var(--wine); color: #fff; padding: .8rem 1rem; font-weight: 700; display: flex; justify-content: space-between; }
.screen .row { display: flex; justify-content: space-between; gap: .5rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); font-size: .92rem; background: #fff; }
.screen .row b { font-weight: 700; }
.screen .row span:last-child { color: var(--muted); white-space: nowrap; }
.screen .send { margin: .9rem; padding: .75rem; border-radius: 12px; background: var(--gold); color: var(--wine-dark); text-align: center; font-weight: 800; }
.screen .ok { margin: 0 .9rem 1rem; padding: .6rem .8rem; border-radius: 10px; background: #e3f4e6; color: #1d5b2a; font-size: .88rem; font-weight: 600; }
.bullets { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .8rem; }
.bullets li { display: flex; gap: .8rem; }
.bullets .icon { color: var(--wine); margin-top: .15rem; }
.bullets b { display: block; }
.bullets span { color: var(--muted); font-size: .96rem; }

/* Kontakt */
.contact { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.contact-form { scroll-margin-top: 90px; }
.contact-form::before { display: none; }
.field textarea { font: inherit; font-size: 16px; padding: .8rem .9rem; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; resize: vertical; min-height: 96px; }
.field textarea:focus { border-color: var(--wine); outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: .7rem; align-items: flex-start; margin: 0 0 1rem; font-size: .88rem; color: var(--muted); }
.check input { width: 22px; height: 22px; margin-top: .1rem; flex: none; accent-color: var(--wine); }
.ok { background: #e3f4e6; color: #1d5b2a; border-radius: 10px; padding: .8rem 1rem; font-weight: 600; margin: 0 0 .9rem; }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chips span { padding: .5rem 1rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; font-size: .95rem; }

.band { background: linear-gradient(160deg, var(--wine-dark), var(--wine)); color: #fff; border-radius: 28px; padding: clamp(2rem, 6vw, 3.5rem); display: grid; gap: 1.5rem; text-align: center; justify-items: center; }
.band h2 { margin: 0; font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
.band p { margin: 0; max-width: 34rem; opacity: .9; }

footer { background: #1d1218; color: #d9ccd0; padding: 3rem 0 2rem; font-size: .95rem; }
footer .wrap { display: grid; gap: 1.5rem; }
footer .logos { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
footer .logos img { height: 46px; width: auto; max-width: 40%; object-fit: contain; background: #fff; border-radius: 10px; padding: 5px 9px; }
footer .logos .by { color: #9d8d92; font-size: .85rem; letter-spacing: .04em; }
footer nav { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
footer a { color: #fff; }
footer small { color: #9d8d92; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
