/* Digitales Ortsgericht – rhöncloud Style */

:root {
  --navy-950: #001124;
  --navy-900: #001124;
  --navy-800: #0b4272;
  --blue-700: #0068B4;
  --blue-600: #0068B4;
  --blue-500: #0068B4;
  --gold-500: #DBBE6F;
  --ink: #0b2747;
  --muted: #66788d;
  --line: rgba(8, 47, 87, 0.12);
  --surface: rgba(255, 255, 255, 0.88);
  --white: #ffffff;
  --danger: #a52c2c;
  --danger-bg: #fff4f4;
  --success: #0c6b51;
  --success-bg: #effbf7;
  --shadow: 0 26px 70px rgba(7, 39, 70, 0.15);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 14px;
}



.background-image-top-right {

  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 700px;

	background-image:url("web_elemente_top_right.svg");
	background-position: top right;
	background-repeat: no-repeat;
	background-size: 242px auto;

  z-index: 10;
  pointer-events: none;
}

.background-image-bottom-left {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 400px;
  height: 700px;

	background-image:url("web_elemente_bottom_left.svg");
	background-position: bottom left;
	background-repeat: no-repeat;
  background-size: 250px auto;

  z-index: 10;
  pointer-events: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #f5f9fc;
}

body {
  margin: 0;
  min-height: 100vh;

    
      font-family: "Proxima Nova", Arial, sans-serif;
    
    @font-face {
      font-family: "Proxima Nova";
      src: url("/assets/Proxima-Nova-Extrabold.woff") format("woff");
      font-weight: 700;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: "Proxima Nova";
      src: url("/assets/Proxima-Nova-Light.woff") format("woff");
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }
    
  }

  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(25, 161, 220, 0.12), transparent 34rem),
    radial-gradient(circle at 100% 85%, rgba(228, 182, 77, 0.16), transparent 32rem),
    linear-gradient(145deg, #f9fcfe 0%, #f3f8fb 48%, #edf5f9 100%);


button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.ambient {
  position: fixed;
  z-index: -2;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.ambient-one {
  width: min(46vw, 680px);
  aspect-ratio: 1;
  top: -25vw;
  left: -10vw;
  background:
    radial-gradient(circle at 40% 40%,
      rgba(8, 135, 200, 0.18),
      rgba(8, 135, 200, 0.03) 60%,
      transparent 72%);
}

.ambient-two {
  width: min(42vw, 620px);
  aspect-ratio: 1;
  right: -14vw;
  bottom: -22vw;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(228, 182, 77, 0.2),
      rgba(228, 182, 77, 0.025) 62%,
      transparent 74%);
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 8px;
}

.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 14px;
}

.brand-logo {
  display: block;
  width: clamp(260px, 38vw, 430px);
  max-width: 28%;
  height: auto;
  mix-blend-mode: multiply;
}

.main-content {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 5px 0 50px;
}

.portal-card {
  position: relative;
  width: min(100%, 600px);
  padding: clamp(30px, 5vw, 54px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.portal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background:
    linear-gradient(135deg,
      rgba(25, 161, 220, 0.27),
      rgba(255, 255, 255, 0.2) 45%,
      rgba(228, 182, 77, 0.24));
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue-500), var(--blue-700));
  box-shadow: 0 0 0 5px rgba(8, 135, 200, 0.1);
}

h1 {
  margin: 0;
  max-width: 14ch;
  color: var(--navy-900);
  font-size: clamp(2.05rem, 5vw, 3.45rem);
  line-height: 1.03;
  font-weight: 800;

 
}

.intro {
  margin: 20px 0 30px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.08rem);
  line-height: 1.4;
}

.portal-form label {
  display: block;
  margin-bottom: 9px;
  color: var(--navy-900);
  font-size: 0.92rem;
  font-weight: 750;
}

.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 21px;
  height: 21px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--blue-700);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

#customer-code {
  width: 100%;
  min-height: 58px;
  padding: 0 17px 0 50px;
  color: var(--navy-950);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(8, 47, 87, 0.16);
  border-radius: var(--radius-md);
  outline: none;
  font-size: 1.02rem;
  font-weight: 600;
  box-shadow: 0 5px 18px rgba(7, 46, 81, 0.035);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

#customer-code::placeholder {
  color: #9aabba;
  font-weight: 500;
}

#customer-code:hover {
  border-color: rgba(8, 111, 174, 0.32);
}

#customer-code:focus {
  border-color: var(--blue-600);
  box-shadow:
    0 0 0 4px rgba(8, 135, 200, 0.11),
    0 8px 26px rgba(7, 46, 81, 0.06);
}

#customer-code[aria-invalid="true"] {
  border-color: #c34d4d;
  box-shadow: 0 0 0 4px rgba(195, 77, 77, 0.09);
}

.field-help {
  margin: 9px 2px 21px;
  color: #7d8c9d;
  font-size: 0.82rem;
  line-height: 1.45;
}

.primary-button {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  color: var(--white);
  background:
    linear-gradient(115deg, var(--navy-900) 0%, var(--blue-700) 58%, var(--blue-600) 100%);
  border: 0;
  border-radius: var(--radius-md);
  box-shadow:
    0 14px 26px rgba(8, 76, 122, 0.19),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    filter 150ms ease;
}

.primary-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 150ms ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  filter: saturate(1.06);
  box-shadow:
    0 17px 32px rgba(8, 76, 122, 0.23),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.primary-button:hover svg {
  transform: translateX(3px);
}

.primary-button:active {
  transform: translateY(0);
}

.primary-button:focus-visible,
.footer-links a:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(8, 135, 200, 0.25);
  outline-offset: 4px;
}

.primary-button:disabled {
  opacity: 0.66;
  cursor: wait;
  transform: none;
}

.form-message {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.form-message.is-error {
  display: block;
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid rgba(165, 44, 44, 0.11);
}

.form-message.is-success {
  display: block;
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid rgba(12, 107, 81, 0.1);
}

.security-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 26px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}

.security-note svg {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  margin-top: 1px;
  fill: none;
  stroke: var(--blue-700);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.security-note p {
  margin: 0;
  color: #718295;
  font-size: 0.82rem;
  line-height: 1.55;
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 8px 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  color: #6f8092;
}

.hosting {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
}

.rhoencloud-logo {
  display: block;
  width: 106px;
  height: 42px;
  object-fit: contain;
  object-position: center;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .site-header {
    width: min(100% - 28px, 1180px);
    padding-top: 18px;
  }

  .brand-logo {
    width: min(86vw, 430px);
  }

  .main-content {
    width: min(100% - 28px, 1180px);
    padding: 22px 0 36px;
    place-items: start center;
  }

  .portal-card {
    padding: 30px 22px;
    border-radius: 23px;
  }

  .site-footer {
    width: min(100% - 28px, 1180px);
    padding-bottom: 24px;
    flex-direction: column;
    text-align: center;
  }

  .hosting {
    flex-direction: column;
    gap: 5px;
  }

  .rhoencloud-logo {
    width: 120px;
    height: 50px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2rem;
  }

  .intro {
    margin-top: 16px;
  }

  #customer-code,
  .primary-button {
    min-height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
