:root {
  --paper: #f7f2e9;
  --ink: #5c4336;
  --muted-ink: #806b5c;
  --line: rgba(92, 67, 54, 0.3);
  --text-gap: clamp(1.5rem, 3.8vh, 2.8rem);
}

* { box-sizing: border-box; }

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

button { font: inherit; }

.landing-page {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.background-art,
.background-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.background-art {
  z-index: -3;
  background-image: url("steinerkontor-hintergrund.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: sepia(0.9) saturate(0.95) hue-rotate(345deg) contrast(1.14);
  opacity: 0.91;
}

.background-veil {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(250, 248, 243, 0.74) 0%, rgba(250, 248, 243, 0.46) 31%, rgba(250, 248, 243, 0.08) 68%, rgba(250, 248, 243, 0.02) 100%),
    linear-gradient(180deg, rgba(250, 248, 243, 0.04), rgba(250, 248, 243, 0.12));
}

.intro {
  position: absolute;
  top: clamp(3rem, 8.5vh, 6.5rem);
  left: clamp(1.6rem, 7vw, 7.5rem);
  width: min(42rem, calc(100vw - 3.2rem));
}

.brand {
  margin: 0 0 var(--text-gap);
  font-size: clamp(0.82rem, 1.1vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  width: max-content;
  max-width: 100%;
  font-size: clamp(1.4rem, 2.8vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.03;
}

h1 span {
  display: block;
  white-space: nowrap;
}

.principle {
  margin: var(--text-gap) 0 0;
  color: var(--muted-ink);
  font-size: clamp(0.85rem, 1vw, 1rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
}

.login-button {
  position: absolute;
  bottom: clamp(2rem, 7vh, 5.5rem);
  left: clamp(1.6rem, 7vw, 7.5rem);
  display: inline-flex;
  min-width: 10.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 0.9rem 1.1rem 0.9rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(250, 248, 243, 0.18);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.login-arrow {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0;
}

.login-dialog {
  width: min(27rem, calc(100vw - 2rem));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(247, 242, 233, 0.97);
  color: var(--ink);
  box-shadow: 0 1.5rem 4rem rgba(55, 36, 27, 0.18);
}

.login-dialog::backdrop {
  background: rgba(51, 35, 27, 0.28);
  backdrop-filter: blur(2px);
}

.login-panel {
  position: relative;
  padding: 2.2rem;
}

.login-close {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.login-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.login-panel h2 {
  margin: 0 0 1.8rem;
  font-size: 1.55rem;
  font-weight: 600;
}

.login-form,
.login-form label {
  display: grid;
  gap: 0.55rem;
}

.login-form { gap: 1.15rem; }

.login-form label span {
  font-size: 0.78rem;
  font-weight: 600;
}

.login-form input {
  width: 100%;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: rgba(255, 253, 248, 0.78);
  color: var(--ink);
  font: inherit;
}

.login-form input:focus { border-color: var(--ink); }

.login-submit {
  margin-top: 0.3rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.login-result {
  margin: 0.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: #7a2f25;
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 720px) {
  .background-art { background-position: 58% center; }
  .background-veil { background: linear-gradient(90deg, rgba(250, 248, 243, 0.74), rgba(250, 248, 243, 0.25)); }
  .intro { top: 2.5rem; }
  .brand { margin-bottom: var(--text-gap); }
  h1 { font-size: clamp(1.25rem, 6.3vw, 1.65rem); }
}
