/* =======================================================
   GrischaHosting Default Page 2.0
======================================================= */

:root {
  --bg: #01050d;
  --text: #f6f9ff;
  --muted: #a7b7ca;
  --blue: #058cff;
  --cyan: #26d8ff;
  --green: #39f34a;
  --line: rgba(40, 163, 255, .25);
}

* {
  box-sizing: border-box;
}

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

html {
  background: var(--bg);
}

body {
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
}

.page {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(0, 124, 255, .14), transparent 39%),
    linear-gradient(180deg, rgba(0, 5, 14, .04), rgba(0, 4, 12, .58));
}

.background {
  position: absolute;
  inset: 0;
  z-index: -10;
  background:
    linear-gradient(90deg,
      rgba(0, 4, 12, .02),
      rgba(0, 8, 20, .48) 24%,
      rgba(0, 8, 20, .84) 44%,
      rgba(0, 8, 20, .84) 56%,
      rgba(0, 8, 20, .48) 76%,
      rgba(0, 4, 12, .02)),
    linear-gradient(180deg, rgba(0, 3, 10, .05), rgba(0, 3, 10, .42)),
    url("assets/server-room.webp") center / cover no-repeat;
}

.page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -8;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 32%, rgba(0, 2, 8, .20) 65%, rgba(0, 2, 8, .76) 100%),
    linear-gradient(180deg, transparent 72%, rgba(0, 2, 8, .48));
}

.world-map {
  position: absolute;
  top: 3%;
  left: 50%;
  z-index: -6;
  width: min(1120px, 72vw);
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  opacity: .18;
  background-image: radial-gradient(circle, rgba(0, 137, 255, .9) 1.25px, transparent 1.8px);
  background-size: 12px 12px;
  mask-image: radial-gradient(ellipse at center, #000 10%, rgba(0,0,0,.9) 48%, transparent 78%);
}

.content {
  position: relative;
  z-index: 5;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(1080px, calc(100% - 70px));
  margin: 0 auto;
  padding: clamp(24px, 3.5vh, 52px) 0 14px;
  text-align: center;
}

.brand {
  margin-bottom: clamp(14px, 2vh, 26px);
}

.brand-logo {
  display: block;
  width: clamp(330px, 29vw, 520px);
  max-width: 100%;
  height: auto;
  filter:
    drop-shadow(0 14px 30px rgba(0, 0, 0, .65))
    drop-shadow(0 0 22px rgba(0, 132, 255, .25));
}

.status-card {
  width: min(800px, 100%);
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  color: #47f04f;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(57, 243, 74, .25);
}

.status-check {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: .75rem;
  line-height: 1;
}

h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3.2rem, 5.2vw, 5.8rem);
  font-weight: 800;
  line-height: .94;
  letter-spacing: -.055em;
  text-shadow: 0 12px 38px rgba(0, 0, 0, .65);
}

h1 strong {
  display: block;
  color: transparent;
  background: linear-gradient(180deg, #3ee6ff 0%, #058fff 50%, #0060d5 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.plesk-domain-page h1 {
  font-size: clamp(2.2rem, 3vw, 3.2rem) !important;
  line-height: .98;
}

.domain-name {
  margin: clamp(14px, 1.8vh, 20px) auto 0;
  color: #35cfff;
  font-size: clamp(1rem, 1.45vw, 1.3rem);
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: .015em;
  overflow-wrap: anywhere;
  text-shadow: 0 0 18px rgba(0, 157, 255, .42);
}

.intro {
  margin: clamp(16px, 2vh, 23px) auto 0;
  color: #eef4fc;
  font-size: clamp(.92rem, 1.15vw, 1.08rem);
  line-height: 1.58;
  text-shadow: 0 2px 12px #000;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 15px auto;
}

.ornament span {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #0c9aff);
}

.ornament span:last-child {
  transform: scaleX(-1);
}

.ornament i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5ce7ff;
  box-shadow: 0 0 13px #00a2ff;
}

.trust {
  margin: 0;
  color: #d7e0ec;
  font-size: clamp(.88rem, 1vw, 1rem);
}

.trust a {
  color: var(--cyan);
  font-weight: 750;
  text-decoration: none;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(940px, 100%);
  margin-top: clamp(26px, 4vh, 48px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, transparent, rgba(0, 85, 180, .06), transparent);
}

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(17px, 2vw, 27px) 18px;
}

.feature + .feature::before {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 18%;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(30, 165, 255, .43), transparent);
}

.feature-icon {
  width: 61px;
  height: 61px;
  margin-bottom: 8px;
  color: #25ceff;
  filter: drop-shadow(0 0 11px rgba(0, 161, 255, .45));
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h2 {
  margin: 0 0 5px;
  font-size: .97rem;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.5;
}

footer {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(1000px, calc(100% - 70px));
  margin: 0 auto;
  padding: 10px 0 18px;
}

footer a {
  flex: 0 0 auto;
  color: #0b94ff;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 145, 255, .82));
}

.footer-line:last-child {
  transform: scaleX(-1);
}




/* =======================================================
   Exakt skalierende Status-LEDs auf den Serverblenden
   Das SVG verwendet dieselbe Geometrie wie das Hintergrundbild.
======================================================= */

.rack-leds {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.rack-leds .led {
  opacity: .22;
  transform-box: fill-box;
  transform-origin: center;
}

.rack-leds .led-blue {
  fill: #35bfff;
  filter: drop-shadow(0 0 2px #35bfff)
          drop-shadow(0 0 6px rgba(20,155,255,.95));
}

.rack-leds .led-green {
  fill: #52ff70;
  filter: drop-shadow(0 0 2px #52ff70)
          drop-shadow(0 0 6px rgba(40,255,95,.88));
}

.rack-leds .led-amber {
  fill: #ffc53d;
  filter: drop-shadow(0 0 2px #ffc53d)
          drop-shadow(0 0 6px rgba(255,178,30,.88));
}


/* =======================================================
   Zusätzliche LED-Farben
======================================================= */

.rack-leds .led-red {
  fill: #ff4050;
  filter: drop-shadow(0 0 2px #ff4050)
          drop-shadow(0 0 7px rgba(255,35,55,.95));
}

.rack-leds .led-cyan {
  fill: #27f1ff;
  filter: drop-shadow(0 0 2px #27f1ff)
          drop-shadow(0 0 7px rgba(20,230,255,.95));
}

.rack-leds .led-white {
  fill: #ffffff;
  filter: drop-shadow(0 0 2px #fff)
          drop-shadow(0 0 7px rgba(255,255,255,.9));
}

.rack-leds .led-purple {
  fill: #bd63ff;
  filter: drop-shadow(0 0 2px #bd63ff)
          drop-shadow(0 0 7px rgba(175,65,255,.95));
}

/* =======================================================
   LED-Editor
======================================================= */

.led-editor {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 10000;
  width: min(390px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 16px;
  color: #edf8ff;
  background: rgba(2, 10, 24, .96);
  border: 1px solid rgba(30, 176, 255, .58);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.65), 0 0 28px rgba(0,135,255,.18);
  backdrop-filter: blur(18px);
  text-align: left;
}

.led-editor[hidden] {
  display: none !important;
}

.editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.editor-head strong {
  display: block;
  font-size: 1.15rem;
}

.editor-head small {
  display: block;
  margin-top: 2px;
  color: #77cfff;
}

.editor-head button {
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 1.5rem;
}

.editor-info {
  margin-bottom: 14px;
  padding: 10px 12px;
  color: #a9c5d8;
  background: rgba(15, 91, 150, .18);
  border-radius: 10px;
  font-size: .77rem;
  line-height: 1.45;
}

.led-editor label {
  display: block;
  margin-top: 11px;
  color: #b7d4e8;
  font-size: .75rem;
  font-weight: 700;
}

.led-editor input,
.led-editor select,
.led-editor button {
  width: 100%;
  min-height: 38px;
  margin-top: 5px;
  color: #eefaff;
  background: #07172a;
  border: 1px solid rgba(39, 166, 245, .42);
  border-radius: 8px;
  font: inherit;
}

.led-editor input,
.led-editor select {
  padding: 8px 10px;
}

.led-editor button {
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 750;
}

.led-editor button:hover {
  background: #0b2745;
  border-color: #30c8ff;
}

.led-editor button.danger {
  border-color: rgba(255,70,85,.55);
}

.led-editor button.danger:hover {
  background: rgba(145,20,35,.45);
}

.led-editor button.secondary {
  color: #b8ccda;
}

.editor-actions {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 7px;
}

.editor-actions-stack {
  grid-template-columns: 1fr;
  margin-top: 14px;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 0 10px;
}

.editor-coordinates {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  color: #7898ad;
  font-size: .68rem;
}

.editor-message {
  min-height: 20px;
  margin-top: 10px;
  color: #59ef83;
  font-size: .73rem;
  line-height: 1.4;
}

.editor-message.is-error {
  color: #ff6673;
}

body.led-editor-mode .rack-leds {
  z-index: 9998;
  cursor: crosshair;
}

body.led-editor-mode .rack-leds .led {
  animation-play-state: paused !important;
  opacity: .95 !important;
  cursor: grab;
  stroke: rgba(255,255,255,.72);
  stroke-width: 1.2px;
  vector-effect: non-scaling-stroke;
}

body.led-editor-mode .rack-leds .led:hover {
  stroke: #fff;
  stroke-width: 2px;
}

body.led-editor-mode .rack-leds .led.is-selected {
  stroke: #ffde45;
  stroke-width: 3px;
  filter: drop-shadow(0 0 4px #ffde45)
          drop-shadow(0 0 10px rgba(255,215,45,.95));
}

@media (max-width: 640px) {
  .led-editor {
    top: 8px;
    right: 8px;
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .editor-actions {
    grid-template-columns: 1fr;
  }
}


.editor-head {
  cursor: move;
  user-select: none;
  touch-action: none;
}

.editor-window-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.editor-window-actions button {
  width: 34px;
  min-width: 34px;
  margin-top: 0;
}

.led-editor.is-collapsed {
  width: 260px;
  max-height: none;
  padding-bottom: 10px;
  overflow: hidden;
}

.led-editor.is-collapsed > :not(.editor-head) {
  display: none !important;
}

body.editor-panel-dragging,
body.editor-panel-dragging * {
  cursor: move !important;
  user-select: none !important;
}

body.led-editor-mode .rack-leds {
  pointer-events: auto !important;
  touch-action: none;
}

body.led-editor-mode .rack-leds .led {
  pointer-events: all !important;
}

@media (max-width: 640px) {
  .led-editor {
    left: 8px;
    right: auto;
    bottom: 8px;
    top: auto;
    width: calc(100vw - 16px);
    transform: none;
  }
}
