:root {
  color-scheme: light;
  --bg: #f6f2ea;
  --ink: #17211b;
  --muted: #5d6860;
  --line: rgba(23, 33, 27, 0.15);
  --surface: rgba(255, 253, 247, 0.88);
  --green: #214b38;
  --green-strong: #173629;
  --amber: #b7792f;
  --white: #fffdf8;
  --shadow: 0 24px 80px rgba(23, 33, 27, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

.landing-page {
  color: var(--white);
  background: #0c1f1e;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 5vw, 64px);
}

.landing-page .site-header {
  left: auto;
  justify-content: flex-end;
  width: auto;
  padding: 22px clamp(20px, 4vw, 48px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid rgba(255, 253, 248, 0.45);
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  box-shadow: 0 10px 32px rgba(23, 54, 41, 0.24);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--green);
}

.button-primary:hover {
  background: var(--green-strong);
}

.button-secondary {
  color: var(--ink);
  border-color: rgba(23, 33, 27, 0.18);
  background: rgba(255, 253, 248, 0.68);
  backdrop-filter: blur(18px);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: #0c1f1e;
}

.hero-image {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 0;
  width: min(66vw, 1000px);
  height: min(92vh, 870px);
  transform: translateY(-50%);
  object-fit: contain;
  object-position: left center;
}

.landing-page .hero-image {
  opacity: 0.98;
}

.auth-page .hero-image,
.private-page .hero-image {
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(12, 31, 30, 0.06) 0%, rgba(12, 31, 30, 0.18) 42%, rgba(12, 31, 30, 0.94) 72%, #0c1f1e 100%),
    linear-gradient(180deg, rgba(12, 31, 30, 0.1), rgba(12, 31, 30, 0.48));
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(560px, calc(100% - 40px));
  margin-right: clamp(20px, 7vw, 92px);
  margin-left: auto;
  padding-top: 78px;
  padding-bottom: 92px;
}

.landing-page .brand {
  color: var(--white);
}

.landing-page .brand-mark {
  border-color: rgba(255, 253, 248, 0.34);
  background: rgba(255, 253, 248, 0.08);
}

.landing-page .button-secondary {
  color: var(--white);
  border-color: rgba(255, 253, 248, 0.22);
  background: rgba(255, 253, 248, 0.08);
}

.landing-page .button-primary {
  color: #0c1f1e;
  background: #f0d6a7;
}

.landing-page .button-primary:hover {
  background: #fff0cf;
}

.landing-page .lead {
  color: rgba(255, 253, 248, 0.78);
}

.landing-page .text-link {
  color: #f0d6a7;
  text-decoration-color: rgba(240, 214, 167, 0.4);
}

.landing-page .site-footer {
  color: rgba(255, 253, 248, 0.68);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 9vw, 122px);
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 36px;
}

.text-link {
  color: var(--green-strong);
  font-size: 14px;
  font-weight: 800;
  text-decoration-color: rgba(33, 75, 56, 0.32);
  text-underline-offset: 6px;
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(20px, 5vw, 64px);
  color: rgba(23, 33, 27, 0.72);
  font-size: 13px;
}

.auth-page,
.private-page {
  display: grid;
  min-height: 100vh;
  background:
    linear-gradient(rgba(246, 242, 234, 0.88), rgba(246, 242, 234, 0.88)),
    url("assets/hero-plochberger.png") center / cover fixed;
}

.private-page {
  display: block;
}

.auth-shell,
.private-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 104px 20px 40px;
}

.private-dashboard {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 118px 0 56px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  align-items: end;
  gap: 40px;
  padding-bottom: 34px;
}

.dashboard-hero h1 {
  max-width: none;
  font-size: clamp(52px, 7vw, 96px);
}

.cost-overview {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 253, 248, 0.62);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  font-weight: 760;
}

.cost-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.summary-total {
  color: var(--green-strong);
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1;
  font-weight: 820;
}

.summary-meta,
.status-text {
  color: var(--muted);
  font-size: 14px;
}

.table-shell {
  margin-top: 24px;
  overflow-x: auto;
}

.cost-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.cost-table th,
.cost-table td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.cost-table th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cost-table td {
  font-size: 15px;
}

.cost-table .numeric {
  text-align: right;
}

.resource-list {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.auth-panel,
.private-panel {
  width: min(100%, 460px);
  padding: clamp(26px, 5vw, 42px);
  border: 1px solid rgba(255, 253, 248, 0.62);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.private-panel {
  width: min(100%, 680px);
}

.auth-panel h1,
.private-panel h1 {
  max-width: none;
  font-size: clamp(46px, 7vw, 78px);
}

.login-form {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.auth-copy {
  margin-top: 24px;
  font-size: 17px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.login-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.74);
  font: inherit;
  font-size: 16px;
}

.login-form input:focus {
  outline: 3px solid rgba(183, 121, 47, 0.22);
  border-color: rgba(183, 121, 47, 0.72);
}

@media (max-width: 760px) {
  .site-header {
    padding: 16px 18px;
  }

  .brand {
    font-size: 14px;
  }

  .button {
    min-height: 40px;
    padding: 0 14px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-image {
    top: 44px;
    left: 0;
    width: min(112vw, 760px);
    height: 58vh;
    transform: none;
    object-position: left top;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(12, 31, 30, 0.06) 0%, rgba(12, 31, 30, 0.28) 36%, #0c1f1e 66%, #0c1f1e 100%);
  }

  .hero-content {
    width: calc(100% - 36px);
    margin: 0 18px;
    align-self: end;
    padding-top: 46vh;
    padding-bottom: 56px;
  }

  h1 {
    font-size: clamp(52px, 18vw, 76px);
  }

  .lead {
    font-size: 17px;
  }

  .site-footer {
    position: static;
    padding: 20px 18px;
    background: #0c1f1e;
  }

  .private-dashboard {
    width: calc(100% - 32px);
    padding-top: 96px;
  }

  .dashboard-hero,
  .section-heading,
  .cost-summary {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
}
