/* Tant Antjes Huus – Dauerwohnraum (eigenständige Verkaufsseite) */

:root {
  --bg: #f7faf8;
  --surface: #ffffff;
  --surface-soft: #f2f8f4;
  --text: #173125;
  --heading: #112a20;
  --muted: #5f7467;
  --line: #d8e5dc;
  --primary: #2f8f57;
  --primary-strong: #216741;
  --primary-soft: #dff2e6;
  --accent: #9c5c18;
  --accent-soft: #fdf1de;
  --accent-line: #e7c48c;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 12px 28px rgba(32, 68, 48, 0.08);
  --shadow-md: 0 22px 48px rgba(24, 56, 38, 0.12);
  --shadow-lg: 0 30px 64px rgba(22, 52, 36, 0.18);
  --container: 1120px;
  --gutter: clamp(1rem, 4.6vw, 2rem);
  --ease: 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  padding: 0 0 env(safe-area-inset-bottom);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.65;
  letter-spacing: 0.005em;
  background:
    radial-gradient(1200px 620px at 4% -2%, #e6f4eb 0%, rgba(230, 244, 235, 0) 58%),
    radial-gradient(1100px 620px at 104% 16%, #eef8f1 0%, rgba(238, 248, 241, 0) 54%),
    linear-gradient(180deg, #f7faf8 0%, #f3f8f5 56%, #f7faf8 100%);
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4 {
  margin: 0 0 0.8rem;
  line-height: 1.16;
  color: var(--heading);
  font-family: "Fraunces", "Palatino Linotype", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.95rem, 5.2vw, 3.15rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.45rem); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--primary-strong); }

img { max-width: 100%; height: auto; display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.narrow { max-width: 70ch; }

.section { padding: clamp(2.6rem, 6vw, 4.6rem) 0; }
.section-soft { background: rgba(255, 255, 255, 0.62); border-block: 1px solid var(--line); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  background: rgba(47, 143, 87, 0.12);
  color: #1d6040;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.4rem; height: 0.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f8f57, #7cbf97);
}

.section-lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.9vw, 1.1rem);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 250, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.1rem;
}

.brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; text-decoration: none; color: inherit; }
.brand-logo { height: 2.4rem; width: auto; }
.brand-lines { display: grid; min-width: 0; line-height: 1.2; }
.brand-name {
  font-family: "Fraunces", "Palatino Linotype", Georgia, serif;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--heading);
}
.brand-sub {
  padding-left: 0.75rem;
  border-left: 1px solid var(--line);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--primary-strong);
}

.header-cta { display: flex; align-items: center; gap: 0.8rem; flex: none; }
.header-price {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  color: var(--heading);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(33, 103, 65, 0.24);
  transition: transform var(--ease), box-shadow var(--ease);
  cursor: pointer;
}

.button:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(33, 103, 65, 0.3); }
.button:active { transform: translateY(0); }

.button-ghost {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-strong);
  border-color: rgba(47, 143, 87, 0.32);
  box-shadow: none;
}

.button-ghost:hover { background: #fff; box-shadow: var(--shadow-sm); }

.button-sm { padding: 0.5rem 0.95rem; font-size: 0.85rem; }

/* ---------- Hero ---------- */

.hero { position: relative; padding: clamp(1.4rem, 3vw, 2.4rem) 0 clamp(1.6rem, 4vw, 3rem); }

.hero-grid {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 62rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); }
}

.hero-copy h1 { margin-bottom: 0.7rem; }

.hero-lead {
  font-size: clamp(1.02rem, 2.1vw, 1.16rem);
  color: #38574a;
  max-width: 46ch;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.1rem 0 1.3rem;
  padding: 0;
  list-style: none;
}

.hero-meta li {
  padding: 0.34rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 600;
  color: #35564a;
}

.hero-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.hero-price-value {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 4.4vw, 2.5rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1;
}

.hero-price-note { font-size: 0.9rem; color: var(--muted); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.hero-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface-soft);
}

.hero-figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

.hero-figure figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1rem 0.8rem;
  background: linear-gradient(180deg, rgba(10, 33, 22, 0), rgba(10, 33, 22, 0.72));
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.82rem;
}

/* ---------- Notice ---------- */

.notice {
  border: 1px solid var(--accent-line);
  border-left-width: 6px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  padding: clamp(1.1rem, 3vw, 1.7rem);
  box-shadow: var(--shadow-sm);
}

.notice-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.notice-icon {
  flex: none;
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  border-radius: 999px;
  background: #f3d7ab;
  color: #7a4310;
  font-weight: 800;
  font-family: "Fraunces", Georgia, serif;
}

.notice h2 { margin: 0; color: #6f3f0c; font-size: clamp(1.2rem, 2.8vw, 1.6rem); }
.notice p { color: #4d3316; }
.notice p strong { color: #3c2710; }

/* ---------- Greeting ---------- */

.greeting {
  display: grid;
  gap: clamp(1.1rem, 3vw, 2rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

@media (min-width: 54rem) {
  .greeting { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}

.greeting-body p { font-size: clamp(1rem, 1.9vw, 1.08rem); }
.greeting-body p:first-of-type { font-size: clamp(1.08rem, 2.2vw, 1.24rem); color: #2c4a3d; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(1.1rem, 2.6vw, 1.6rem);
  box-shadow: var(--shadow-sm);
}

.card h3 { margin-bottom: 0.5rem; }

/* ---------- Fakten ---------- */

.facts {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow-sm);
}

.fact { background: var(--surface); padding: 1.05rem 1.2rem; }

.fact dt {
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact dd {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--heading);
}

.fact dd small { display: block; font-size: 0.82rem; font-weight: 500; color: var(--muted); }

.fact-highlight { background: var(--primary-soft); }
.fact-highlight dt { color: #26694a; }
.fact-price dd { font-family: "Fraunces", Georgia, serif; font-size: 1.45rem; }

/* ---------- Hausschema ---------- */

.house-schema {
  display: grid;
  gap: 0.6rem;
  padding: clamp(0.9rem, 2.4vw, 1.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.house-roof {
  height: 2.2rem;
  border-radius: 12px 12px 0 0;
  background: repeating-linear-gradient(90deg, #c4705a 0 8px, #b5644f 8px 16px);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.house-floor { display: grid; gap: 0.6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.house-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.unit {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 0.75rem 0.85rem;
  min-height: 5.4rem;
}

.unit-name { font-weight: 800; font-size: 0.92rem; color: var(--heading); }
.unit-size { font-size: 0.82rem; color: var(--muted); }
.unit-use { margin-top: 0.3rem; font-size: 0.78rem; color: var(--muted); }

.unit-sale {
  border-color: rgba(47, 143, 87, 0.55);
  background: linear-gradient(150deg, #e9f8ee, #dff2e6);
  box-shadow: 0 0 0 3px rgba(47, 143, 87, 0.13);
}

.unit-sale .unit-use { color: #216741; font-weight: 700; }

.schema-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.schema-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.schema-legend i {
  width: 0.85rem; height: 0.85rem; border-radius: 4px; border: 1px solid var(--line);
  background: var(--surface-soft);
}
.schema-legend .is-sale { border-color: rgba(47, 143, 87, 0.55); background: #dff2e6; }

/* ---------- Wohnungen ---------- */

.apartments { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); }

.apartment {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.apartment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.9rem;
  padding: clamp(1.1rem, 2.6vw, 1.6rem) clamp(1.1rem, 2.6vw, 1.6rem) 0;
}

.apartment-head h3 { margin: 0; }

.apartment-size {
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #1d6040;
  font-size: 0.85rem;
  font-weight: 800;
}

.apartment-body { padding: 0.8rem clamp(1.1rem, 2.6vw, 1.6rem) clamp(1.1rem, 2.6vw, 1.6rem); }

.apartment-rooms {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin: 0.9rem 0 0; padding: 0; list-style: none;
}

.apartment-rooms li {
  padding: 0.28rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 0.82rem;
  font-weight: 600;
  color: #35564a;
}

.gallery {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  padding: 0 clamp(1.1rem, 2.6vw, 1.6rem);
}

.gallery-item {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-soft);
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  text-align: left;
}

.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--ease);
}

.gallery-item:hover img { transform: scale(1.03); }

.gallery-item span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.3rem 0.6rem 0.5rem;
  background: linear-gradient(180deg, rgba(10, 33, 22, 0), rgba(10, 33, 22, 0.7));
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
}

.gallery-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); padding: 0; }

/* ---------- Grundrisse ---------- */

.plans { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }

.plan {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.7rem;
  box-shadow: var(--shadow-sm);
}

.plan button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.plan img { width: 100%; border-radius: 12px; background: #fff; }
.plan figcaption { padding: 0.6rem 0.3rem 0.15rem; font-size: 0.85rem; color: var(--muted); }

/* ---------- Zwei Spalten (Pro/Contra) ---------- */

.columns { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }

.list-check, .list-note { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }

.list-check li, .list-note li { position: relative; padding-left: 1.75rem; }

.list-check li::before,
.list-note li::before {
  position: absolute;
  left: 0; top: 0.1rem;
  width: 1.2rem; height: 1.2rem;
  display: grid; place-items: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.list-check li::before { content: "✓"; background: var(--primary-soft); color: #1d6040; }
.list-note li::before { content: "!"; background: #f6e3c6; color: #8a5313; }

/* ---------- Zeitleiste ---------- */

.timeline { margin: 0; padding: 0 0 0 1.3rem; list-style: none; border-left: 2px solid var(--line); display: grid; gap: 1.1rem; }

.timeline li { position: relative; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -1.72rem; top: 0.45rem;
  width: 0.62rem; height: 0.62rem;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(47, 143, 87, 0.16);
}

.timeline b { display: block; font-family: "Fraunces", Georgia, serif; font-size: 1.02rem; color: var(--heading); }
.timeline span { color: var(--muted); }

.history-photos { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.history-photos figure { margin: 0; }
.history-photos img { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.history-photos figcaption { padding-top: 0.4rem; font-size: 0.8rem; color: var(--muted); }

/* ---------- Kontakt ---------- */

.contact {
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 4vw, 2.6rem);
  background: linear-gradient(150deg, #1f6042, #2f8f57);
  color: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

.contact h2 { color: #fff; }
.contact .eyebrow { background: rgba(255, 255, 255, 0.18); color: #eafaf0; }
.contact .eyebrow::before { background: #cdeeda; }
.contact p { color: rgba(255, 255, 255, 0.9); }

.contact-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  margin-top: 1.4rem;
}

.contact-tile {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  padding: 1.05rem 1.15rem;
}

.contact-tile p { margin-bottom: 0.35rem; }

.contact-tile-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #cfeeda !important;
}

.contact-tile a { color: #fff; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.contact-tile-value { font-size: 1.05rem; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }

.contact .button {
  background: #fff;
  color: var(--primary-strong);
  box-shadow: 0 12px 26px rgba(11, 44, 27, 0.28);
}

.contact .button-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.contact address { font-style: normal; color: rgba(255, 255, 255, 0.9); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  padding: clamp(1.6rem, 4vw, 2.6rem) 0 clamp(5rem, 10vw, 3rem);
  font-size: 0.87rem;
  color: var(--muted);
}

.footer-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.footer-heading { font-weight: 800; color: var(--heading); margin-bottom: 0.35rem; }
.site-footer address { font-style: normal; }

/* ---------- Sticky Mobile CTA ---------- */

.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 26px rgba(24, 56, 38, 0.1);
  transform: translateY(0);
  transition: transform var(--ease), opacity var(--ease);
}

.sticky-cta.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }

.sticky-cta-text { display: grid; line-height: 1.25; }
.sticky-cta-text strong { font-family: "Fraunces", Georgia, serif; font-size: 1.05rem; color: var(--heading); }
.sticky-cta-text small { font-size: 0.74rem; color: var(--muted); }

@media (min-width: 48rem) {
  .sticky-cta { display: none; }
}

@media (max-width: 40rem) {
  .header-price { display: none; }
}

@media (max-width: 30rem) {
  /* Auf schmalen Displays traegt das Logo allein – der Zusatz wuerde den CTA ueberlappen. */
  .brand-logo { height: 2rem; }
  .brand-lines { display: none; }
  .header-inner { min-height: 3.6rem; }
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: clamp(0.8rem, 3vw, 2rem);
  background: rgba(9, 27, 18, 0.92);
}

.lightbox[open], .lightbox.is-open { display: grid; }

.lightbox-figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: grid; gap: 0.7rem; }
.lightbox-figure img { max-height: 78vh; width: auto; margin-inline: auto; border-radius: var(--radius-sm); background: #fff; }
.lightbox-figure figcaption { text-align: center; color: rgba(255, 255, 255, 0.85); font-size: 0.88rem; }

.lightbox-close, .lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 2.9rem; height: 2.9rem;
  display: grid; place-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--ease);
}

.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, 0.24); }

.lightbox-close { top: clamp(0.6rem, 2vw, 1.2rem); right: clamp(0.6rem, 2vw, 1.2rem); }
.lightbox-prev { left: clamp(0.4rem, 2vw, 1.4rem); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: clamp(0.4rem, 2vw, 1.4rem); top: 50%; transform: translateY(-50%); }

body.has-lightbox { overflow: hidden; }

/* ---------- Passwortschutz (Vorschau) ---------- */

.gate-page {
  min-height: 100vh;
  min-height: 100dvh;
}

.gate {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(1.2rem, 5vw, 2.4rem) var(--gutter);
}

.gate-card {
  width: min(30rem, 100%);
  padding: clamp(1.5rem, 5vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(130% 130% at 100% 0%, rgba(223, 242, 230, 0.7), rgba(223, 242, 230, 0) 56%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 248, 243, 0.94));
  box-shadow: var(--shadow-lg);
  text-align: left;
}

.gate-logo {
  height: 2.6rem;
  width: auto;
  margin-bottom: 1.4rem;
}

.gate-card h1 {
  font-size: clamp(1.5rem, 4.4vw, 2rem);
  margin-bottom: 0.5rem;
}

.gate-lead {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 1.4rem;
}

.gate-error {
  margin-bottom: 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(199, 95, 79, 0.4);
  border-radius: 12px;
  background: rgba(199, 95, 79, 0.09);
  color: #8f3626;
  font-size: 0.9rem;
  font-weight: 600;
}

.gate-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.gate-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
}

.gate-input:focus-visible {
  outline: 3px solid rgba(47, 143, 87, 0.28);
  outline-offset: 1px;
  border-color: var(--primary);
}

.gate-submit {
  width: 100%;
  margin-top: 1.1rem;
  padding-block: 0.85rem;
  font-size: 1rem;
}
