/*
ESECIX - EVOLUTION SECURITY CYBER INTELLIGENCE XCHANGE - DE (EU)
Bug Reports: https://www.esecix.com/security.txt
General Contact: https://www.esecix.com/index.html#contact
® Evolution Security GmbH 2020 -2026 ™
*/

:root {
  /* Standard dark theme values */
  --text-color: #fff;
  --svg-color: #c9cdd0;
  --bg-color: rgba(0, 0, 0, 0.55);
  --bg-color-content: rgba(0,0,0,0.6);
  --bg-color-dropdown: rgba(0, 0, 0, 0.85);
  --bg-form-wrapper: rgba(255,255,255,.05);
}

.light {
  --text-color: #222;
  --svg-color: #404040; 
  --bg-color: rgba(255, 255, 255, 0.85);
  --bg-color-content: rgba(255,255,255,0.6);
  --bg-color-dropdown: rgba(255, 255, 255, 0.85); 
  --bg-form-wrapper: rgba(0,0,0,.05); 
}


/* 
Typography
 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background-color: transparent;
}

::moz-selection {
  background-color: transparent;
}

::webkit-selection {
  background-color: transparent;
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.8;
  color: var(--text-color);
  font-size: large;
  min-width: 550px;
}

/* 
TOP NAVIGATION BAR (sticky, translucent dark)
 */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-color);
  backdrop-filter: blur(4px);
  z-index: 1000;
  font-size: 1.1rem;
}

/* new: flex container to host logo + menu */
.top-nav-inner {
  display: flex;
  align-items: center;
  height: 100%;  
  width: 100%;
  box-sizing: border-box;
  padding: 0 1rem;               /* horizontal padding for the bar */
}

.top-nav-logo img {
  max-height: 64px;
  max-width: 200px;
}

.nav-toggle {
  display: none;               /* <-- never shown on wide screens */
}

/* your existing menu, just slightly tightened */
.top-nav ul {
  display: flex;
  justify-content: center;       /* center li items within available space */
  list-style: none;
  margin: 0 auto;                /* centers the ul within the bar */
  padding-right: 200px;
}

.top-nav li {
  margin: 0 0.6rem;
}

.top-nav a {
  display: block;
  padding: 0.9rem 0.2rem;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}

.top-nav a:hover {
  color: #d00;   /* accent red on hover */
}

.top-nav a > img {
  vertical-align: middle;
}

/* -
   Media queries (responsive tweaks)
*/

/* Desktop only – make the <nav> expand to fill the space */
@media (min-width: 769px) {
  .top-nav-inner {
    justify-content: space-between;   /* left‑logo | centre‑nav | right‑flag */
  }

  .top-nav-menu {
    flex: 1;                          /* occupy all free width */
    display: flex;                    /* turn it into a flex container */
    justify-content: center;          /* centre its children (the <ul>) */
  }

  /* Keep the <ul> as a horizontal list */
  .top-nav-menu ul {
    display: flex;
    justify-content: center;          /* centre the list itself */
    margin: 0;
    padding: 0;
  }
}

@media (max-width: 768px) {
  /* Hide the regular horizontal list – we’ll show it vertically */
  .top-nav-menu ul {
    flex-direction: column;
    width: 100%;
  }
  
  /* The hamburger button appears */
    .nav-toggle {
      display: inline-flex;    /* now visible */
      background: transparent;
      border: none;
      color: var(--text-color);
      cursor: pointer;
      font-size: 1.5rem;
      margin-left: auto;       /* pushes it next to the flag */
      align-items: center;
      justify-content: center;
    }

  .nav-toggle .icon-hamburger { width: 24px; height: 24px; }
  
  /* Collapse the menu by default */
  .nav-collapsed { display: none; }
  
  /* When opened, the menu slides down */
  .top-nav-menu {
    position: absolute;
    top: 64px;                  /* just under the fixed bar */
    left: 0;
    right: 0;
    background: var(--bg-color-dropdown);
    animation: slideDown .25s ease-out forwards;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  
  /* Reduce spacing for the collapsed list */
  .top-nav-menu li {
    margin: .4rem 0;
    text-align: center;
  }
  
  /* Flag stays on the far right – we move it out of the <ul> flow */
  .flag-item {
    order: 2;                     /* after the hamburger */
    margin-left: auto;
  }
  .flag-item img { max-height: 32px; }   /* smaller on mobile */
  
  /* Ensure the hamburger stays left of the flag */
  .nav-toggle { order: 1; }
}

/* 
   Layout helpers
*/
section {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	text-align: justify;
	padding: 2rem;
}

/* Add top padding to compensate for the fixed nav so content isn’t hidden */
section:first-of-type { padding-top: 4rem; }

.overlay {
  background: var(--bg-color);
  padding: 2rem 3rem;
  border-radius: 8px;
}

/*
   HERO
*/
.intro {
  background: url('../img/background/even.avif') center/cover no-repeat;
}
.intro .overlay {
  max-width: 1024px;
}

/*
   Sections (Top & Feature)
*/
.section {
  background-size: cover;
  background-position: center;
}
.content {
  max-width: 980px;
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 8px;
}

h1, h2 {
  margin-bottom: .8rem;
	text-align: center;
}

h1 { font-size: 2.7rem; }
h2 { font-size: 1.7rem; }

h2 > img {
  vertical-align: middle;
}

/*
   Buttons
*/
.center {
  text-align: center;
}

.btn-primary {
  display: inline-block;
  margin-top: 1rem;
  padding: .8rem 1.5rem;
  background: #d00;          /* red */
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color .2s;
}

.btn-primary:hover {
  background: #b00;
}

/*
   Contact form
*/
.contact {
  background: #111;
}

.mandatory {
  display: none;
}

.form-wrapper {
  background: var(--bg-color-content); /* var(--bg-form-wrapper);*/
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
}

label {
  display: block;
  margin-top: .8rem;
  text-align: left;
}

select, textarea, input:not([type=checkbox]) {
  width: 100%;
  padding: .5rem;
  margin-top: .3rem;
  border: 1px solid #444;
  border-radius: 4px;
  background: #222;
  color: #fff;
  resize: vertical;
}

.invalid-select {
  border: 4px solid #d00 !important;
}

.field-checkbox {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .4rem;
  margin-top: 1.2em;
  align-self: flex-start;
}

.field-checkbox input[type=checkbox] {
  margin: 0;
  width: auto;
  vertical-align: middle;
  transform: scale(1.4);  
}

.field-checkbox span {
  margin-left: 1em;
  margin-top: -2px;
}

.field-checkbox a {
    color: #fff;          /* red */
}

.field-checkbox a:hover {
  color: #d00;          /* red */
}

button[type="submit"] {
  width: 100%;
  margin-top: 1rem;
}

.button-disabled {
  background-color: #555;
}

.success-msg {
  margin-top: .8rem;
	color: #f00;
}

/*
   SIDE BY SIDE Container 
*/

/* centers its children and gives a background / padding you can adjust */
.cube-container {
  display: flex;               /* Flex layout → children in a row */
  gap: 1rem;                   /* Space between the boxes */
  justify-content: center;     /* Center the whole group horizontally */
  align-items: stretch;        /* Make all boxes the same height */
  max-width: 960px;            /* Optional max width for the container */
  margin: -2rem auto;          /* Center container on the page */
  padding: 0.5rem;
  background: transparent;
  /* background:#f5f5f5; */
  border-radius: 8px;
}

/* SIDE BY SIDE BOXES - three identical rectangles  */
.cube-box {
  flex: 1 1 0;                 /* Grow/shrink equally, start at 0 width */
  aspect-ratio: 4 / 3;         /* Keeps a consistent rectangle shape */
  background: #ffffff00;       /* Transparent background */
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
}

/* SVG INSIDE SIDE BY SIDE BOXES  */
.cube-box > svg {
  fill: var(--svg-color);
  height: 50%;
  width: 50%;
}

/*
   Footer wrapper – fixed to the bottom of the window
*/
.footer-wrapper {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;               /* anchor to the bottom */
}

/*
   Footer
*/
/* Make the footer hover zone sticky at the bottom */
.footer-zone {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 74px; /* small transparent strip at bottom */
  background: transparent;
  z-index: 1000;
  overflow: visible;
}

* The tab handle visible at the top of the footer /
.footer-handle-area {
  position: absolute;
  top: 0px; /* a bit above the footer, so it sits on the seam */
  left: 0px;
  width: 120px; /* visible tab width; adjust as desired */
  height: 42px;
  background: transparent;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 1001;
  user-select: none;
  transform: translateX(-50%);
  transition: transform 0.25s ease;
}

.footer-handle {
  border-top: 1px solid #b00;
  border-left: 1px solid #b00;
  border-right: 1px solid #b00;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  padding: 2px 20px 2px 20px;
}

/* Hidden footer below viewport */
footer {
  position: absolute;
  bottom: -70px;
  width: 100%;
  color: #fff;
  text-align: left;
  box-sizing: border-box;
  transition: bottom 0.4s ease;
}

footer span {
  bottom: 0px;
  margin: 3em;
  padding: 0px;
  background: #d00;
  font-size: x-small;
  font-weight: bold;
}

.footer-container {
  text-align: center;
  background-color: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  margin-top: -6px;
  /* border-top: 1px dashed #d00; */
}

/* Slide in when hover over footer zone */
.footer-zone:hover footer {
  bottom: 0;
}

footer a {
    color: #f8f8ff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-content {
    margin-bottom: .5rem;
}

/*
   MODAL OVERLAY (dark translucent background)
*/
.modal-overlay {
  position: fixed;
  inset: 0;                     /* top/right/bottom/left = 0 */
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}

/*
   MODAL BOX (centered white panel)
*/
.modal-box {
  position: relative;
  width: 90%;
  max-width: 64rem;            /* roughly 32rem */
  max-height: 90vh;
  color: #3f3f3f;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,.15);  
}

/* Close button (top‑right) */
.close-btn {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: #555;
  cursor: pointer;
}

.close-btn:hover { color: #d00; }

/* Scrollable inner content */
.modal-content {
  padding: 1.5rem;
  height: 88vh;
  overflow-y: auto;
  font-size: smaller;
  text-align: justify;
}

/* Minor typographic tweaks */
.modal-content h2 { margin-top: 0; margin-bottom: 1rem; font-size: 1.5rem; }
.modal-content p { margin-bottom: 0.75rem; }
.modal-content hr { margin: 1.5rem 0; border: none; border-top: 1px solid #eee; }
.modal-content ul { margin-left: 4em; }

#imprint p { margin-bottom: 2em; }

.imprint-grid {
  display: grid;
  grid-template-columns: max-content 1fr;   /* label column, then value column */
  column-gap: 1rem;                         /* space between label & value */
  row-gap: 0;                               /* vertical spacing between rows */
  margin: 1rem 0;                           /* spacing around the whole block */
}
/* IMPRINT ADDRESS */
/* Labels – right‑aligned, bold (same visual weight as <strong>) */
.imprint-grid dt {
  font-weight: 600;
  text-align: right;
}

/* Values – left‑aligned, normal weight */
.imprint-grid dd {
  margin: 0;                /* removes the default <dd> margin */
  word-break: break-word;   /* long URLs / emails wrap nicely */
}
.imprint-grid dd a {
  color: inherit;
  text-decoration: underline solid;
}

.imprint-grid dd a:hover {
  color: #d00;
}

.copyright {
  font-size: smaller;
  padding-bottom: 8px;
}

.xsmall {
  font-size: x-small;
}
/*
   MODAL BOX (initially set all modal content topics to invisible)
*/
#imprint {
  display: none;
}

#privacy {
  display: none;
}
#terms {
  display: none;
}

#privacy h3 {
  margin: 32px 0 18px 0;
}
#privacy h4 {
  margin: 12px 0 10px 0;
}
#privacy h5 {
  margin: 10px 0 6px 0;
}

/*
Back‑to‑top button
*/
.back-to-top {
  position: fixed;                 /* fixed to the viewport */
  bottom: 3em;                     /* margin from bottom */
  right: 3em;                      /* margin from right */
  width: 48px;
  height: 48px;
  background: #333;                /* button background */
  color: #fff;                     /* chevron colour */
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;                   /* stay on top of everything */
  opacity: 0;                      /* start invisible */
  pointer-events: none;            /* ignore clicks while invisible */
  transition: opacity 0.3s ease;
}
.back-to-top:hover {
  color: #f00;  
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;            /* re‑enable clicks when shown */
}

/* Simple chevron using CSS borders */
.chevron-up {
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 16px solid currentColor;
}

/* -------------------------------------------------
   Vertical toggle switch
   ------------------------------------------------- */

.switch-wrapper {
  margin-top: 56%;
}

/* Container (rotated to vertical) */
.switch-vertical {
  display: inline-block;
  vertical-align: middle;
  transform: translateY(-50%) rotate(-90deg);
  width: 25px;   /* length of the slider */
  height: 14px;  /* thickness of the slider */
}

/* Hide the native checkbox */
.switch-vertical input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Track */
.switch-vertical .slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: var(--text-color);
  border-radius: 34px;
  transition: background 0.3s;
}

/* Knob – size proportional to the track */
.switch-vertical .slider::before {
  content: "";
  position: absolute;
  height: 10px;               /* slightly smaller than track height */
  width: 10px;
  left: 2px;                  /* left padding inside the track */
  bottom: 2px;                /* bottom padding inside the track */
  background: var(--bg-color);
  border-radius: 50%;
  transition: transform 0.3s, background 0.3s;
}

/* Checked state – move knob to the opposite side */
.switch-vertical input:checked + .slider::before {
  /* Translate by (track width – knob width – 2*padding) */
  /* 25px (track) - 10px (knob) - 4px (2×padding) = 11px */
  transform: translateX(11px);
}

/* Optional focus outline for accessibility */
.switch-vertical input:focus + .slider {
  box-shadow: 0 0 0 3px rgba(100, 150, 250, 0.5);
}