/* App-spezifische Styles, nutzt die Design-Tokens aus ../../css/style.css */

.app-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; background: rgba(247, 244, 237, 0.92);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.app-nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--green); }
.app-nav .brand img { width: 32px; height: 32px; border-radius: 8px; }
.app-nav .nav-links { display: flex; align-items: center; gap: 18px; }
.lang-select {
  appearance: none; border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 6px 12px; font: 600 13px "Inter", sans-serif; cursor: pointer;
}
.app-nav a { font-weight: 600; color: var(--ink-soft); }
.app-nav a:hover { color: var(--green); }

.page-wrap { width: min(1100px, calc(100% - 48px)); margin: 0 auto; padding: 32px 0 64px; }
.auth-wrap { width: min(440px, calc(100% - 48px)); margin: 6vh auto; }

/* Einheitliches Sticky-Footer-Layout auf allen App-Seiten */
body { min-height: 100vh; display: flex; flex-direction: column; }
.app-page { min-height: 100vh; display: flex; flex-direction: column; }
.app-main, .page-wrap { flex: 1; }

/* Einheitlicher App-Footer */
.app-footer { border-top: 1px solid var(--line); background: var(--paper-warm); margin-top: 40px; }
.app-footer-inner {
  width: min(1100px, calc(100% - 48px)); margin: 0 auto;
  padding: 22px 0; display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap;
  justify-content: space-between;
}
.app-footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--green); }
.app-footer-brand img { width: 24px; height: 24px; border-radius: 6px; }
.app-footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.app-footer-links a { color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.app-footer-links a:hover { color: var(--green); }
.app-footer-copy { color: var(--ink-soft); font-size: 13px; width: 100%; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}

h1.page-title { font-family: "Playfair Display", serif; font-size: clamp(28px, 4vw, 40px); color: var(--green); margin-bottom: 6px; }
.muted { color: var(--ink-soft); }

label { display: block; font-weight: 700; font-size: 14px; margin: 14px 0 6px; color: var(--ink); }
input, select, textarea {
  width: 100%; padding: 11px 13px; font: inherit;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-2); }
textarea { min-height: 120px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .row, .row-3 { grid-template-columns: 1fr; } }

.error { color: #b3261e; font-weight: 600; margin-top: 12px; min-height: 20px; }
.notice { background: var(--mint); color: var(--green); padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px; }

/* Tabs im Builder */
.tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tab { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; color: var(--ink-soft); }
.tab.active { background: var(--green); color: #fff; border-color: var(--green); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* KI-Button an Textfeldern */
.field-with-ai { position: relative; }
.ai-btn {
  margin-top: 8px; font-size: 13px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--gold); background: var(--gold-2); color: #5a3d12; cursor: pointer; font-weight: 700;
}
.ai-btn:disabled { opacity: .6; cursor: default; }

/* Dashboard-Liste */
.expose-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 24px; }
.expose-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 6px 22px rgba(23,72,60,.08); }
.ec-cover { height: 170px; background: var(--paper-warm) center/cover no-repeat; }
.ec-cover--empty { display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 14px; }
.ec-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.expose-card h3 { font-size: 18px; color: var(--ink); margin-top: 2px; }
.expose-card .meta { font-size: 13px; color: var(--ink-soft); }
.expose-card .badge.type { align-self: flex-start; background: var(--mint); color: var(--green); }
.ec-price { font-size: 17px; font-weight: 800; color: var(--green); margin-top: 2px; }
.ec-stats { display: flex; gap: 16px; font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.expose-card .actions { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; flex-wrap: wrap; }

/* Foto-Galerie im Builder */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 14px; }
.photo-thumb { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb button { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-weight: 700; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.pro { background: var(--green); color: #fff; }
.badge.free { background: var(--paper-warm); color: var(--ink-soft); }

/* Anfragen (Leads) */
.lead-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.lead-item--unread { border-left: 4px solid var(--green); }
.lead-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.lead-expose { color: var(--ink-soft); font-size: 14px; }
.lead-date { color: var(--ink-soft); font-size: 13px; white-space: nowrap; }
.lead-contact { margin-top: 4px; font-size: 14px; }
.lead-contact a { color: var(--green); font-weight: 600; }
.lead-msg { margin-top: 10px; background: var(--paper); border-radius: 8px; padding: 12px 14px; white-space: pre-line; font-size: 14px; }
.lead-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.lead-eckdaten { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lead-chip { background: var(--mint); color: var(--green); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.lead-chip b { font-weight: 700; }
.lead-status-sel { width: auto; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 13px; }
.lead-item--declined { opacity: .6; }
.lead-item--declined .lead-item, .lead-item--declined strong { text-decoration: none; }
.nav-badge { display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: #3f2a0c; font-size: 11px; font-weight: 800; text-align: center; line-height: 18px; margin-left: 4px; }

/* Cookie-/Analytics-Consent-Banner */
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 8000;
  background: #12211d; color: #fff; box-shadow: 0 -6px 24px rgba(0,0,0,.2);
}
.consent-inner {
  width: min(1100px, calc(100% - 48px)); margin: 0 auto; padding: 14px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.consent-text { font-size: 14px; line-height: 1.5; max-width: 720px; }
.consent-text a { color: var(--gold-2); text-decoration: underline; }
.consent-btns { display: flex; gap: 10px; flex-shrink: 0; }
.consent-btns .btn-outline { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }

/* Teilen-Modal */
.share-overlay { position: fixed; inset: 0; z-index: 9001; background: rgba(18,33,29,.45); display: none; align-items: center; justify-content: center; padding: 20px; }
.share-overlay.open { display: flex; }
.share-modal { background: #fff; width: min(460px, 100%); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.3); max-height: 90vh; overflow-y: auto; padding: 24px; }
.share-modal h2 { font-size: 20px; color: var(--green); margin-bottom: 6px; }
.share-row { display: flex; gap: 8px; margin: 16px 0 8px; }
.share-row input { flex: 1; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #f7f4ed; }
.share-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.share-qr { text-align: center; margin: 18px 0 6px; }
.share-qr img { width: 200px; height: 200px; }
.share-qr .hint { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.share-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; gap: 10px; flex-wrap: wrap; }

.color-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; }
.swatch.active { border-color: var(--ink); }

/* Kundenportal: Status-Box */
.status-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Kundenportal: Tarif-Karten */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 22px; align-items: stretch; }
.tier-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 26px 24px; display: flex; flex-direction: column;
  box-shadow: 0 6px 22px rgba(23,72,60,.07);
}
.tier-card--highlight { border-color: var(--green-2); box-shadow: 0 14px 40px rgba(23,72,60,.18); }
.tier-card--current { outline: 2px solid var(--gold); }
.tier-card h3 { font-size: 22px; color: var(--green); }
.tier-price { font-size: 32px; font-weight: 800; margin: 8px 0 2px; }
.tier-feats { margin: 16px 0 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.tier-feats li { font-size: 14px; }
.feat-ok { color: var(--ink); }
.feat-no { color: var(--ink-soft); text-decoration: none; opacity: .7; }
.tier-cta { margin-top: auto; }
.tier-current-label { text-align: center; font-weight: 700; color: var(--gold); padding: 10px 0; }
.tier-ribbon {
  position: absolute; top: 14px; right: 14px; background: var(--green); color: #fff;
  font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 999px; letter-spacing: .03em;
}
.tier-ribbon--soon { background: var(--gold); }
