/* HostHunt AI – Farben stammen aus dem Logo: Tiefgrün (Fläche), Gold (einziger Akzent) */
:root {
  --page: #eef3f1;
  --paper: #ffffff;
  --ink: #10231f;
  --muted: #53675f;
  --line: #d3dfdb;
  --brand: #1f5f5b;
  --deep: #123b38;
  --gold: #f2b84b;
  --gold-ink: #2f2300;
  --soft: #e0eeeb;
  --link: #1f5f5b;
  --warn: #a63a2b;
  --font: "Segoe UI Variable Display", "Segoe UI", "SF Pro Display", -apple-system, "Helvetica Neue", Roboto, Inter, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0d1615; --paper: #15201e; --ink: #e6efec; --muted: #94a9a3; --line: #263633;
    --soft: #1b2e2b; --link: #7fcfc4; --warn: #e48b7d; --deep: #0a2523;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.55 var(--font); }
a { color: var(--link); }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.02em; }
p { margin: 0; }
.muted { color: var(--muted); }

/* Buttons: Gold = die eine Handlung, die zählt */
.btn {
  display: inline-block; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  padding: .65rem 1.2rem; border-radius: 999px; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none;
}
.btn:hover { border-color: var(--brand); }
.btn.primary { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn.ghost:hover { border-color: #fff; }
.btn.small { padding: .3rem .85rem; font-size: .85rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Logo + Wortmarke */
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; letter-spacing: -.03em; text-decoration: none; color: var(--ink); }
.brand img { display: block; border-radius: 10px; }
.brand .ai { color: var(--brand); }
.brand.center { display: flex; justify-content: center; margin-bottom: 1.25rem; font-size: 1.2rem; }
.brand.big { font-size: 1.5rem; }
.brand.big img { width: 48px; height: 48px; border-radius: 13px; }
.hero .brand, .topbar .brand { color: #fff; }
.hero .brand .ai, .topbar .brand .ai { color: var(--gold); }
@media (prefers-color-scheme: dark) { .brand .ai { color: var(--gold); } }

/* ───── Startseite ───── */
.hero { background: var(--deep); color: #fff; }
.hero-in {
  max-width: 1120px; margin: 0 auto; padding: clamp(2rem, 7vh, 4.5rem) 1.25rem clamp(3rem, 9vh, 5.5rem);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 6vw, 4.5rem); align-items: center;
}
.hero-copy { display: grid; gap: 1.5rem; justify-items: start; }
.hero h1 { font-size: clamp(2.8rem, 8vw, 5rem); font-weight: 850; letter-spacing: -.045em; line-height: .98; margin-top: clamp(1.5rem, 6vh, 3.5rem); }
.lead { font-size: 1.15rem; max-width: 44ch; color: rgba(255, 255, 255, .8); }
.cta { display: flex; gap: .75rem; flex-wrap: wrap; }

.demo { background: var(--paper); color: var(--ink); border-radius: 22px; padding: 1.1rem; display: grid; gap: .7rem; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.demo-bar { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .9rem; color: var(--muted); padding: 0 .2rem .2rem; }
.demo-bar img { width: 22px; height: 22px; border-radius: 6px; }
.demo .bubble { padding: .6rem .9rem; border-radius: 18px; max-width: 88%; }
.demo .b-user { justify-self: end; background: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.demo .b-bot { background: var(--soft); border-bottom-left-radius: 5px; }
.demo .listing { margin-left: 0; }
.demo-note { font-size: .78rem; color: var(--muted); padding: 0 .2rem; }
.demo .b-user, .demo .b-bot, .demo .listing { animation: rise .55s cubic-bezier(.2, .7, .2, 1) both; }
.demo .b-user { animation-delay: .25s; }
.demo .b-bot { animation-delay: .95s; }
.demo .listing { animation-delay: 1.6s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.how { max-width: 720px; margin: 0 auto; padding: clamp(3rem, 8vh, 5rem) 1.25rem; }
.how h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 2rem; }
.how ol { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.how li { counter-increment: step; position: relative; padding: 0 0 2rem 3.4rem; }
.how li:last-child { padding-bottom: 0; }
.how li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800;
}
.how li::after { content: ""; position: absolute; left: 1.15rem; top: 2.6rem; bottom: .3rem; width: 2px; background: var(--line); }
.how li:last-child::after { display: none; }
.how b { display: block; font-size: 1.15rem; letter-spacing: -.01em; }
.how span { color: var(--muted); }

/* ───── Anmelden / Registrieren ───── */
.auth-card { max-width: 420px; margin: 8vh auto; padding: 2rem; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; }
.auth-card h1 { font-size: 1.6rem; text-align: center; }
.auth-card form { display: grid; gap: 1rem; margin: 1.5rem 0; }
.auth-card label { display: grid; gap: .3rem; font-weight: 650; font-size: .9rem; }
.auth-card small { font-weight: 400; color: var(--muted); }
.auth-card .btn.primary { justify-self: stretch; text-align: center; }
.auth-card .muted { text-align: center; }
input, textarea {
  font: inherit; color: inherit; background: var(--page); border: 1.5px solid var(--line);
  border-radius: 12px; padding: .65rem .8rem; width: 100%;
}
input:focus-visible, textarea:focus-visible { outline-color: var(--brand); border-color: var(--brand); }
.alert { background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); border: 1px solid var(--warn); border-radius: 10px; padding: .6rem .8rem; margin-top: 1rem; }

/* ───── Chat ───── */
body.chat { display: grid; grid-template-rows: auto 1fr; height: 100dvh; overflow: hidden; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: .55rem 1rem; background: var(--deep); color: #fff; }
.who { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: rgba(255, 255, 255, .75); }
.who form { margin: 0; }
.topbar .btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.topbar .btn:hover { border-color: var(--gold); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; min-height: 0; }
.chatcol { display: grid; grid-template-rows: 1fr auto; min-height: 0; }
.log { overflow-y: auto; padding: 1.25rem 1rem; display: flex; flex-direction: column; gap: .9rem; scroll-behavior: smooth; }
.msg { max-width: min(740px, 94%); display: grid; gap: .6rem; }
.msg.user { align-self: flex-end; }
.bubble { padding: .65rem .95rem; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.msg.user .bubble { background: var(--brand); color: #fff; border-color: var(--brand); border-bottom-right-radius: 5px; }
.msg.assistant .bubble { border-bottom-left-radius: 5px; }
.bubble p { margin: 0 0 .5rem; } .bubble p:last-child { margin: 0; }
.bubble ul { margin: .25rem 0 .5rem 1.1rem; padding: 0; }
.msg.typing .bubble { color: var(--muted); font-style: italic; }
.msg.error .bubble { border-color: var(--warn); color: var(--warn); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .75rem; }
.listing { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: .85rem .95rem; display: grid; gap: .35rem; align-content: start; }
.listing h3 { font-size: 1rem; letter-spacing: -.01em; }
.listing .rating b { background: var(--brand); color: #fff; padding: .05rem .4rem; border-radius: 6px 6px 6px 0; margin-right: .3rem; }
.listing .rating span, .listing .total, .listing .facts, .listing .feat { font-size: .85rem; color: var(--muted); }
.listing .rating { font-size: .85rem; }
.listing .price { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--link); }
.listing .price small { font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.listing .feat:empty { display: none; }
.tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.tags span { font-size: .75rem; font-weight: 650; background: var(--soft); color: var(--brand); padding: .1rem .55rem; border-radius: 999px; }
@media (prefers-color-scheme: dark) { .tags span { color: var(--link); } }
.tags .tag-demo { background: transparent; border: 1px dashed var(--muted); color: var(--muted); }
.actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .25rem; }

.composer { display: flex; gap: .6rem; padding: .75rem 1rem 1rem; border-top: 1px solid var(--line); background: var(--paper); align-items: flex-end; }
.composer textarea { resize: none; max-height: 160px; }

.side { border-left: 1px solid var(--line); background: var(--paper); padding: 1rem; overflow-y: auto; display: grid; gap: 1.5rem; align-content: start; }
.side h2 { font-size: 1rem; margin-bottom: .6rem; }
.profile { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; font-size: .9rem; }
.profile dt { color: var(--muted); } .profile dd { margin: 0; font-weight: 650; }
.profile p { grid-column: 1 / -1; margin: 0; }
.inq { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .9rem; }
.inq li { display: grid; }
.inq span { color: var(--muted); font-size: .8rem; }

@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero h1 { margin-top: 1rem; }
  .layout { grid-template-columns: 1fr; }
  .side { display: none; }
  .who span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .log { scroll-behavior: auto; }
  .demo .b-user, .demo .b-bot, .demo .listing { animation: none; }
}

/* ───── Angemeldete Seiten: Konto, Buchungen ───── */
.nav { display: flex; gap: .25rem; margin-left: 1rem; flex: 1; }
.nav a { color: rgba(255, 255, 255, .78); text-decoration: none; padding: .35rem .8rem; border-radius: 999px; font-weight: 650; font-size: .92rem; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, .14); color: #fff; }
body.page .topbar { position: sticky; top: 0; z-index: 5; }
.wrap { max-width: 920px; margin: 0 auto; padding: 1.75rem 1rem 4rem; display: grid; gap: 1.1rem; }
.wrap > h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
.lead-sm { margin-top: -.5rem; }
.crumb { font-size: .9rem; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem 1.3rem; display: grid; gap: .8rem; scroll-margin-top: 4.5rem; }
.panel h2 { font-size: 1.15rem; }
.panel form { display: grid; gap: .8rem; }
.panel label { display: grid; gap: .3rem; font-weight: 650; font-size: .9rem; }
.panel label[hidden] { display: none; }
.panel small { font-weight: 400; color: var(--muted); }
.panel label.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; }
input[type="checkbox"] { width: auto; margin-top: .25rem; }
select { font: inherit; color: inherit; background: var(--page); border: 1.5px solid var(--line); border-radius: 12px; padding: .65rem .8rem; width: 100%; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem; }
.panel .btn.primary { justify-self: start; }
.btn.danger { color: var(--warn); border-color: var(--warn); background: transparent; }
.btn.danger:hover { background: color-mix(in srgb, var(--warn) 10%, transparent); }
.notice { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); border: 1px solid var(--brand); border-radius: 10px; padding: .6rem .8rem; }
@media (prefers-color-scheme: dark) { .notice { color: var(--link); border-color: var(--link); } }
.notice-soft { background: var(--soft); border-radius: 10px; padding: .65rem .85rem; font-size: .9rem; }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.items li { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px; }
.row-actions { display: flex; gap: .4rem; }
.row-actions form { display: block; }
.pill { font-size: .72rem; font-weight: 700; background: var(--gold); color: var(--gold-ink); padding: .08rem .5rem; border-radius: 999px; vertical-align: middle; }
details > summary { cursor: pointer; font-weight: 650; color: var(--link); padding: .2rem 0; }
details[open] > summary { margin-bottom: .7rem; }
.danger-zone { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }

.sec { font-size: 1.15rem; margin-top: .6rem; display: flex; align-items: center; gap: .5rem; }
.count { font-size: .75rem; background: var(--soft); color: var(--brand); border-radius: 999px; padding: .05rem .55rem; font-weight: 700; }
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: .9rem; }
.bk { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; display: grid; gap: .5rem; align-content: start; }
.bk h3 { font-size: 1.02rem; letter-spacing: -.01em; }
.bk h3 a { color: var(--ink); text-decoration: none; }
.bk h3 a:hover { text-decoration: underline; }
.bk .when { font-weight: 650; color: var(--link); font-size: .92rem; }
.bk-weather { font-size: .88rem; min-height: 1.3em; }
.bk-weather:empty { display: none; }
.kv { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .25rem .9rem; font-size: .9rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }
.kv.wide { font-size: .95rem; }
.small-note { font-size: .85rem; }

.thread { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.thread li { max-width: 640px; padding: .65rem .9rem; border-radius: 14px; border: 1px solid var(--line); background: var(--page); }
.thread li.me { justify-self: end; background: var(--soft); }
.thread .who-line { display: flex; gap: .6rem; align-items: baseline; font-size: .8rem; color: var(--muted); }
.thread .who-line b { color: var(--ink); }
.thread time { margin-left: auto; }
.thread p { margin: .25rem 0 0; overflow-wrap: anywhere; }
.tag-demo-inline { font-size: .7rem; border: 1px dashed var(--muted); border-radius: 999px; padding: 0 .45rem; }
.reply textarea { resize: vertical; }

/* Wetter */
.weather .wsum { margin-bottom: .6rem; }
.wdays { list-style: none; margin: 0; padding: 0 0 .4rem; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(104px, 1fr); gap: .5rem; overflow-x: auto; }
.wdays li { display: grid; gap: .1rem; justify-items: center; text-align: center; padding: .6rem .4rem; border: 1px solid var(--line); border-radius: 12px; background: var(--page); font-size: .82rem; }
.wdays li.typ { border-style: dashed; }
.wdays .ico { font-size: 1.6rem; line-height: 1.2; }
.wdays .t { font-weight: 800; font-size: 1.05rem; } .wdays .t small { color: var(--muted); font-weight: 600; font-size: .85rem; }
.wdays .r, .wdays .l, .wdays .s { color: var(--muted); }
.wdays .s { font-size: .72rem; }
.wlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; font-size: .85rem; }
.wlist li { display: grid; grid-template-columns: 5.6rem 1.6rem 1fr; align-items: center; }
.wnote { font-size: .78rem; margin-top: .5rem; }
.weather.mini .wsum { font-size: .85rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 860px) {
  .nav { margin-left: .4rem; }
  .nav a { padding: .3rem .55rem; font-size: .85rem; }
  .topbar .brand .wordmark { display: none; }
}
.grid2 { align-items: end; }

/* ───── Übersicht ───── */
.wrap.wide { max-width: 1040px; }
.welcome { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--deep); color: #fff; border-radius: 20px; padding: 1.4rem 1.5rem; }
.welcome h1 { font-size: clamp(1.5rem, 4vw, 2rem); }
.welcome .next { margin-top: .35rem; color: rgba(255, 255, 255, .85); }
.welcome .when { color: var(--gold); font-weight: 750; }
.welcome .muted { color: rgba(255, 255, 255, .7); margin-top: .35rem; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.1rem; }
.recent { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.recent li { display: grid; gap: .2rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.recent li:last-child { border: 0; padding-bottom: 0; }
.recent a { color: var(--ink); text-decoration: none; }
.recent a:hover { text-decoration: underline; }
.recent span.muted { font-size: .88rem; }
.wh { font-size: .95rem; letter-spacing: 0; margin-top: .3rem; }
#mapframe { width: 100%; height: 340px; border: 1px solid var(--line); border-radius: 12px; background: var(--page); }
#mapframe:not([src]) { display: none; }
.mapsel { max-width: 380px; margin-bottom: .6rem; }
.todo { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; }
.topbar { gap: .5rem; }
.nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav a { white-space: nowrap; }
.who { flex-shrink: 0; }
@media (max-width: 860px) { .topbar .brand img { width: 30px; height: 30px; } .nav { margin-left: 0; } .nav a { padding: .3rem .5rem; } }
@media (max-width: 520px) { .topbar .brand { display: none; } .topbar { padding-left: .5rem; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.verify-banner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: color-mix(in srgb, var(--gold) 22%, var(--paper)); border: 1px solid var(--gold); border-radius: 14px; padding: .85rem 1.1rem; }
.verify-banner form { margin: 0; }
