/* =============================================================================
   Kinder / ECIBS Kindertick caretaker page — static presentation for IIS wwwroot
   No frameworks, no build tooling, no JavaScript required.
   Independent of maintenance.css
   ============================================================================= */

:root {
  /* Surfaces */
  --color-page: #d6d6d6;
  --color-stage: #e4d5ea;
  --color-notice: #77278b;

  /* Text */
  --color-notice-text: #ffffff;

  /* Shape */
  --radius-stage: 1rem;
  --radius-notice: 0.75rem;

  /* Layout */
  --page-gutter: clamp(0.75rem, 3vw, 2rem);
  --stage-pad-x: clamp(1rem, 4vw, 3rem);
  --stage-pad-y: clamp(1.25rem, 4vh, 2.75rem);
  --stage-max: 72rem;
  --notice-max: 36rem;

  /* Typography — Open Sans with system fallbacks */
  --font-sans: "Open Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-title: clamp(1.125rem, 0.95rem + 1.1vw, 1.625rem);
  --text-body: clamp(0.9375rem, 0.88rem + 0.35vw, 1.125rem);
  --leading-title: 1.35;
  --leading-body: 1.55;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-notice-text);
  background-color: var(--color-page);
  overflow-x: hidden;
}

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

/* ----- Page shell (gray outer field) ----- */

.page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--page-gutter);
}

/* ----- Lavender stage ----- */

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--stage-max);
  min-height: min(36rem, calc(100dvh - (2 * var(--page-gutter))));
  overflow: hidden;
  border-radius: var(--radius-stage);
  background-color: var(--color-stage);
  isolation: isolate;
}

.stage__geometry {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: right center;
  pointer-events: none;
  user-select: none;
}

.stage__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(1.5rem, 5vh, 3.5rem);
  width: 100%;
  padding:
    var(--stage-pad-y)
    var(--stage-pad-x)
    clamp(1.75rem, 5vh, 3rem);
}

/* ----- Brand lockup ----- */

.brand {
  display: flex;
  justify-content: center;
  width: 100%;
  flex-shrink: 0;
}

.brand__logo {
  width: auto;
  max-width: min(17.5rem, 78vw);
  max-height: 3.25rem;
  object-fit: contain;
  object-position: center;
}

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

.main {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.notice {
  width: 100%;
  max-width: var(--notice-max);
  margin: 0;
  padding:
    clamp(1.35rem, 1.1rem + 1.5vw, 2.25rem)
    clamp(1.1rem, 0.9rem + 1.4vw, 2rem);
  border-radius: var(--radius-notice);
  background-color: var(--color-notice);
  text-align: center;
  color: var(--color-notice-text);
}

.notice__title {
  margin: 0 0 0.85rem;
  font-size: var(--text-title);
  font-weight: 700;
  line-height: var(--leading-title);
  letter-spacing: -0.01em;
}

.notice__body {
  margin: 0;
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-body);
}

/* ----- Tablet ----- */

@media (min-width: 40rem) {
  :root {
    --radius-stage: 1.15rem;
    --radius-notice: 0.85rem;
    --notice-max: 28rem;
  }

  .stage {
    min-height: min(40rem, calc(100dvh - (2 * var(--page-gutter))));
  }

  .brand__logo {
    max-width: min(20rem, 55vw);
    max-height: 3.6rem;
  }

  .stage__content {
    gap: clamp(2rem, 6vh, 4rem);
    padding-top: clamp(1.75rem, 5vh, 3.25rem);
  }
}

/* ----- Desktop ----- */

@media (min-width: 64rem) {
  :root {
    --page-gutter: clamp(1.25rem, 3vw, 2.5rem);
    --stage-pad-x: clamp(2rem, 5vw, 4rem);
    --stage-pad-y: clamp(2rem, 5vh, 3.5rem);
    --stage-max: 78rem;
    --notice-max: 32rem;
    --radius-stage: 1.25rem;
    --radius-notice: 0.9rem;
    --text-title: clamp(1.35rem, 1.1rem + 0.55vw, 1.75rem);
    --text-body: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  }

  .page {
    /* Keep a visible gray frame around the stage on large screens */
    padding: clamp(1.5rem, 4vh, 3rem) var(--page-gutter);
  }

  .stage {
    min-height: min(44rem, calc(100dvh - (2 * var(--page-gutter))));
    max-height: none;
  }

  .brand__logo {
    max-width: min(22rem, 36vw);
    max-height: 4rem;
  }

  .stage__content {
    gap: clamp(2.5rem, 7vh, 5rem);
  }

  .notice {
    padding: 2.25rem 2.5rem;
  }

  .notice__title {
    margin-bottom: 1rem;
  }
}

/* ----- Wide desktops ----- */

@media (min-width: 80rem) {
  :root {
    --stage-max: 84rem;
    --notice-max: 34rem;
  }

  .brand__logo {
    max-width: 24rem;
  }
}

/* ----- Motion preference ----- */

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

/* ----- High-contrast / forced colors ----- */

@media (forced-colors: active) {
  .stage {
    border: 1px solid CanvasText;
  }

  .notice {
    border: 1px solid CanvasText;
    background-color: Canvas;
    color: CanvasText;
    forced-color-adjust: none;
  }

  .notice__title,
  .notice__body {
    color: CanvasText;
  }
}
