/* ===================================================================
   HeadUpHigh — KI-Automatisierung für Architektur- & Ingenieurbüros
   Markenfarben: Waldgrün #1F2E28 · Creme #FBF7EC · Gold #C9A961 · Salbei #6B7B6E
   Schrift: Cormorant Garamond (Headlines) + Inter (Fließtext)
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink:        #1F2E28;
  --ink-soft:   #3c4f46;
  --muted:      #6B7B6E;
  --line:       #E5DDD0;
  --bg:         #FBF7EC;
  --bg-soft:    #f4eede;
  --bg-softer:  #ece3cf;
  --paper:      #FBF7EC;

  --forest:     #1F2E28;
  --forest-2:   #243831;
  --forest-3:   #182420;
  --gold:       #C9A961;
  --gold-dark:  #a8863f;
  --gold-soft:  #f1e6c9;
  --sage:       #6B7B6E;
  --sage-light: #8BA090;

  --primary:      #2c4a3d;
  --primary-dark: #1F2E28;
  --primary-soft: #e4ece4;
  --accent:       #C9A961;

  --green:      #3f7256;
  --green-soft: #e0ece2;
  --amber:      #b8893a;
  --amber-soft: #f1e6cc;
  --rose:       #a8503c;
  --rose-soft:  #f0ddd5;
  --slate:      #6B7B6E;
  --slate-soft: #e2e4da;

  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 10px 30px -12px rgba(31, 46, 40, .18);
  --shadow-lg: 0 24px 60px -18px rgba(31, 46, 40, .26);
  --maxw:      1120px;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Cormorant Garamond', 'Fraunces', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .4em; font-weight: 700; letter-spacing: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.5rem; font-weight: 600; }
p  { margin: 0 0 1rem; color: var(--ink-soft); }
a  { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,236,.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: baseline; gap: 9px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; color: var(--forest); line-height: 1; letter-spacing: .005em; }
.brand-mark .up { color: var(--gold); font-style: italic; }
.brand small { font-weight: 500; font-size: .7rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; align-self: center; }
.brand--light .brand-mark { color: var(--paper); }
.brand--light small { color: #b9c2b5; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  font-family: var(--font); color: var(--ink-soft); font-weight: 600; font-size: .92rem;
  padding: 8px 14px; border-radius: 10px;
}
.nav-links a:hover { background: var(--bg-softer); text-decoration: none; color: var(--ink); }
.nav-links a.cta { background: var(--forest); color: var(--paper); }
.nav-links a.cta:hover { background: var(--forest-2); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--forest); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(900px 420px at 82% -8%, rgba(201,169,97,.16) 0%, transparent 62%),
              linear-gradient(180deg, #1F2E28 0%, #243831 55%, #182420 100%);
  color: #e7ddc6;
  padding: 96px 0 104px;
}
.hero h1 { color: var(--paper); }
.hero .lead { font-size: 1.22rem; color: #d8cdb3; max-width: 640px; font-family: var(--font); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,169,97,.14); color: #e3cf9c;
  border: 1px solid rgba(201,169,97,.36);
  padding: 7px 16px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  margin-bottom: 24px; letter-spacing: .04em; font-family: var(--font);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font);
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 12px; font-weight: 700; font-size: .96rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--forest); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--gold-dark); color: var(--forest-3); }
.btn-ghost { background: rgba(251,247,236,.06); color: var(--paper); border-color: rgba(251,247,236,.34); }
.btn-ghost:hover { background: rgba(251,247,236,.14); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--forest); border-color: var(--line); box-shadow: var(--shadow); }
.btn-light:hover { background: var(--bg-soft); color: var(--forest); }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 740px; margin-bottom: 50px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .kicker { font-family: var(--font); color: var(--gold-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin-bottom: 12px; }
.section-head p { font-size: 1.1rem; }

/* ---------- Generic cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fffdf8; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.card.link-card { display: flex; flex-direction: column; }
.card.link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.card .icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 18px;
  background: var(--primary-soft); color: var(--forest);
}
.card h3 { color: var(--ink); }
.card p { margin-bottom: 0; }
.card .more { margin-top: 18px; font-weight: 700; color: var(--gold-dark); display: inline-flex; align-items: center; gap: 6px; font-family: var(--font); font-size: .92rem; }

/* ---------- Feasibility (Analyse) ---------- */
.feas { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: #fffdf8; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.feas-head { font-family: var(--font); padding: 20px 24px; display: flex; align-items: center; gap: 12px; color: var(--paper); font-weight: 700; font-size: 1.1rem; }
.feas-head .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--paper); opacity: .9; }
.feas.green  .feas-head { background: var(--green); }
.feas.amber  .feas-head { background: var(--amber); }
.feas.rose   .feas-head { background: var(--sage); }
.feas-body { padding: 8px 24px 20px; }
.feas-body ul { list-style: none; margin: 0; padding: 0; }
.feas-body li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: .95rem; display: flex; gap: 10px; align-items: flex-start; }
.feas-body li:last-child { border-bottom: 0; }
.feas-body li::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; }
.feas.green .feas-body li::before { background: var(--green); }
.feas.amber .feas-body li::before { background: var(--amber); }
.feas.rose  .feas-body li::before { background: var(--sage); }
.feas .tag { font-family: var(--font); margin: 0 24px 20px; font-size: .82rem; color: var(--muted); }

/* ---------- Badges ---------- */
.badge { font-family: var(--font); display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .01em; }
.badge.green { background: var(--green-soft); color: #2c5340; }
.badge.amber { background: var(--amber-soft); color: #7a5a1e; }
.badge.rose  { background: var(--rose-soft);  color: #8a3322; }
.badge.blue  { background: var(--primary-soft); color: var(--forest); }
.badge.slate { background: var(--slate-soft); color: #515849; }

/* ---------- Flow diagram ---------- */
.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin: 8px 0 4px; }
.flow .step {
  font-family: var(--font);
  flex: 1 1 150px; background: #fffdf8; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 16px; text-align: center; box-shadow: var(--shadow); position: relative;
}
.flow .step .n { font-size: 1.5rem; margin-bottom: 6px; }
.flow .step strong { display: block; font-size: .95rem; color: var(--ink); }
.flow .step span { font-size: .8rem; color: var(--muted); }
.flow .arrow { align-self: center; color: var(--gold-dark); font-size: 1.5rem; font-weight: 700; }

/* ---------- Demo page header ---------- */
.demo-hero { background: linear-gradient(170deg, #1F2E28, #243831); color: #e7ddc6; padding: 60px 0 70px; }
.demo-hero h1 { color: var(--paper); }
.demo-hero .lead { color: #d8cdb3; max-width: 660px; font-size: 1.14rem; font-family: var(--font); }
.back-link { font-family: var(--font); color: #d9c38f; font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.back-link:hover { color: #ecdcb2; }

/* ---------- Bautagebuch report sheet ---------- */
.sheet { background: #fffdf8; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.sheet-top { background: linear-gradient(120deg, var(--forest), var(--forest-2)); color: var(--paper); padding: 28px 30px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.sheet-top h3 { color: var(--paper); margin-bottom: 4px; font-size: 1.7rem; }
.sheet-top .meta { font-size: .9rem; opacity: .9; font-family: var(--font); }
.sheet-weather { text-align: right; font-size: .9rem; font-family: var(--font); }
.sheet-weather .temp { font-size: 1.9rem; font-weight: 700; color: var(--gold); font-family: var(--font-head); }
.sheet-body { padding: 28px 30px; }
.sheet-section { margin-bottom: 28px; }
.sheet-section h4 { font-family: var(--font); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-dark); border-bottom: 2px solid var(--line); padding-bottom: 8px; margin-bottom: 14px; font-weight: 700; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; font-family: var(--font); }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: .8rem; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--bg-softer); }
.progress-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; font-family: var(--font); }
.progress-row .pname { flex: 0 0 150px; font-size: .9rem; font-weight: 600; }
.progress-track { flex: 1; height: 12px; background: var(--bg-softer); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--sage), var(--gold)); }
.progress-row .pval { flex: 0 0 48px; text-align: right; font-weight: 700; font-size: .88rem; color: var(--forest); }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.photo {
  font-family: var(--font);
  aspect-ratio: 4/3; border-radius: 10px; display: grid; place-items: center; color: var(--paper); font-size: .8rem; font-weight: 600; text-align: center; padding: 4px;
  background: linear-gradient(135deg, #1F2E28, #3f6f54);
}
.photo:nth-child(2){ background: linear-gradient(135deg,#243831,#6B7B6E);}
.photo:nth-child(3){ background: linear-gradient(135deg,#8a6a2f,#C9A961);}
.photo:nth-child(4){ background: linear-gradient(135deg,#3f7256,#8BA090);}

/* ---------- Portal / Login mock ---------- */
.portal-mock { font-family: var(--font); max-width: 380px; margin: 0 auto; background: #fffdf8; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 34px; text-align: center; }
.portal-mock .lock { font-size: 2.4rem; }
.portal-mock h3 { font-family: var(--font-head); }
.portal-mock input { width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: 1.1rem; text-align: center; letter-spacing: .3em; margin: 14px 0; font-family: var(--font); background: var(--bg); color: var(--ink); }
.portal-note { font-size: .82rem; color: var(--muted); }

/* ---------- E-Mail inbox ---------- */
.inbox { font-family: var(--font); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fffdf8; }
.inbox-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s ease; }
.inbox-row:last-child { border-bottom: 0; }
.inbox-row:hover { background: var(--bg-soft); }
.inbox-row .from { font-weight: 700; font-size: .95rem; color: var(--ink); }
.inbox-row .subj { color: var(--ink-soft); font-size: .9rem; }
.inbox-row .tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.inbox-detail { display: none; grid-column: 1 / -1; margin-top: 14px; padding: 16px; background: var(--bg-soft); border-radius: var(--radius-sm); border: 1px dashed var(--line); }
.inbox-detail.open { display: block; }
.inbox-detail .ai-line { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.inbox-detail .draft { background: #fffdf8; border: 1px solid var(--line); border-radius: 10px; padding: 14px; font-size: .9rem; color: var(--ink-soft); }
.inbox-detail .draft strong { color: var(--ink); }
.mode-auto, .mode-draft { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font); font-size: .78rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; margin-bottom: 12px; }
.mode-auto  { background: var(--green-soft); color: #2c5340; }
.mode-draft { background: var(--amber-soft); color: #7a5a1e; }

/* ---------- Code / Node-Liste ---------- */
code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .9em; background: var(--bg-softer); padding: 1px 6px; border-radius: 6px; color: var(--forest); }
.codebox { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; background: #fffdf8; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; padding: 14px 16px; font-size: .82rem; line-height: 1.6; overflow-x: auto; color: var(--ink-soft); margin: 0; white-space: pre; }
.nodelist { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; background: var(--forest); color: #e7ddc6; border-radius: var(--radius); padding: 22px 24px; font-size: .85rem; line-height: 1.75; overflow-x: auto; margin: 0; white-space: pre; }
.nodelist .h { color: var(--gold); font-weight: 700; }

/* ---------- Carousel ---------- */
.carousel-wrap { max-width: 460px; margin: 0 auto; }
.carousel { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; }
.slides { display: flex; height: 100%; transition: transform .4s cubic-bezier(.4,0,.2,1); }
.slide { min-width: 100%; height: 100%; padding: 44px 38px; display: flex; flex-direction: column; justify-content: space-between; color: var(--paper); }
.slide h3 { color: var(--paper); font-size: 2rem; line-height: 1.12; }
.slide p { color: rgba(251,247,236,.92); font-size: 1.04rem; font-family: var(--font); }
.slide .s-num { font-family: var(--font); font-size: .82rem; font-weight: 700; letter-spacing: .14em; opacity: .8; }
.slide .s-foot { font-family: var(--font); font-size: .85rem; font-weight: 600; opacity: .85; }
.slide.s1 { background: linear-gradient(150deg,#1F2E28,#3f6f54); }
.slide.s2 { background: linear-gradient(150deg,#243831,#6B7B6E); }
.slide.s3 { background: linear-gradient(150deg,#1F2E28,#C9A961); }
.slide.s4 { background: linear-gradient(150deg,#3f7256,#8BA090); }
.slide.s5 { background: linear-gradient(150deg,#243831,#a8863f); }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(251,247,236,.92); color: var(--forest); font-size: 1.3rem; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); }
.carousel-btn:hover { background: var(--paper); }
.carousel-btn.prev { left: 12px; } .carousel-btn.next { right: 12px; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; }
.dots button.active { background: var(--gold); width: 26px; border-radius: 999px; }

/* ---------- Callout ---------- */
.callout { font-family: var(--font); background: var(--primary-soft); border: 1px solid #cad9cd; border-radius: var(--radius); padding: 24px 28px; color: #284338; }
.callout strong { color: var(--forest); }
.callout.warn { background: var(--gold-soft); border-color: #e5cf95; color: #6e521c; }
.callout.warn strong { color: #5a4214; }

/* ---------- Capabilities two-col ---------- */
.cap { font-family: var(--font); display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cap > div { padding: 30px 32px; }
.cap .can { background: #fffdf8; }
.cap .cant { background: var(--bg-soft); border-left: 1px solid var(--line); }
.cap h3 { display: flex; align-items: center; gap: 10px; }
.cap ul { list-style: none; padding: 0; margin: 0; }
.cap li { padding: 9px 0; font-size: .94rem; color: var(--ink-soft); display: flex; gap: 10px; }
.cap .can li::before { content: "✓"; color: var(--green); font-weight: 800; }
.cap .cant li::before { content: "✕"; color: var(--rose); font-weight: 800; }

/* ---------- Footer ---------- */
.footer { background: #182420; color: #b9c2b5; padding: 44px 0; font-size: .9rem; font-family: var(--font); }
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
.footer a { color: #d8cdb3; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .grid-3, .grid-2, .cap { grid-template-columns: 1fr; }
  .cap .cant { border-left: 0; border-top: 1px solid var(--line); }
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px; gap: 4px; display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .flow .arrow { transform: rotate(90deg); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Print (PDF look for Bautagebuch) ---------- */
@media print {
  .nav, .footer, .no-print { display: none !important; }
  body { background: #fff; }
  .sheet { box-shadow: none; border: 0; }
  section { padding: 0; }
}

/* ---------- PIN-Sperre (Zugangsschutz) ---------- */
.gate { position: fixed; inset: 0; z-index: 9999; background: linear-gradient(180deg,#1F2E28,#182420); display: grid; place-items: center; padding: 24px; }
.gate-box { font-family: var(--font); background: #fffdf8; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 42px 36px; max-width: 360px; width: 100%; text-align: center; }
.gate-logo { font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; color: var(--forest); margin-bottom: 20px; line-height: 1; }
.gate-logo span { color: var(--gold); font-style: italic; }
.gate-box h2 { font-family: var(--font-head); margin-bottom: 4px; }
.gate-box p { color: var(--muted); font-size: .92rem; margin-bottom: 4px; }
.gate-box input { width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: 1.3rem; text-align: center; letter-spacing: .35em; margin: 18px 0 6px; font-family: var(--font); background: var(--bg); color: var(--ink); }
.gate-box .btn { width: 100%; justify-content: center; margin-top: 12px; }
.gate-err { color: var(--rose); font-size: .85rem; margin-top: 12px; min-height: 1.1em; }
