/*
  Obise Website Layout
  Gemeinsames CSS fuer /de/ und /it/ PHP-Seiten.
  Lokale Bilder liegen im Root-Ordner /img/, deshalb aus /de/ oder /it/: ../img/...
*/

:root {
      --blue: #0877ff;
      --blue-strong: #006fff;
      --navy: #061c35;
      --text: #061c35;
      --text-soft: #132a44;
      --muted: #637286;
      --page: #ffffff;
      --soft: #f5f8fc;
      --line: rgba(6, 28, 53, 0.13);
      --card: rgba(6, 28, 53, 0.82);
      --card-border: rgba(8,119,255,0.72);
      --hero: url("../img/hero-clean.jpg");
      --shadow: 0 22px 60px rgba(5,22,39,0.16);
    }

    html[data-theme="dark"] {
      --blue: #4aa2ff;
      --blue-strong: #6ab2ff;
      --navy: #edf6ff;
      --text: #edf6ff;
      --text-soft: rgba(237,246,255,0.82);
      --muted: rgba(237,246,255,0.66);
      --page: #06111f;
      --soft: #081827;
      --line: rgba(255,255,255,0.15);
      --card: rgba(2,18,36,0.88);
      --card-border: rgba(74,162,255,0.72);
      --hero: url("../img/hero-clean-dark.jpg");
      --shadow: 0 24px 70px rgba(0,0,0,0.38);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: Arial, Helvetica, sans-serif;
      background: var(--page);
      color: var(--text);
      line-height: 1.45;
      overflow-x: hidden;
    }

    a { color: inherit; text-decoration: none; }
    img, svg { display: block; max-width: 100%; }

    .hero {
      min-height: 900px;
      background: var(--hero) center center / cover no-repeat;
      position: relative;
      overflow: hidden;
    }

    html[data-theme="dark"] .hero {
      background: var(--hero) center center / cover no-repeat;
    }

    .hero::after {
      content: "";
      position: absolute;
      inset: auto 0 0 0;
      height: 56px;
      background: linear-gradient(to bottom, transparent, var(--page));
      pointer-events: none;
    }



    .scroll-cue {
      position: absolute;
      left: 50%;
      bottom: 22px;
      z-index: 4;
      transform: translateX(-50%);
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      gap: 9px;
      color: rgba(6, 28, 53, 0.78);
      font-size: 13px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      text-shadow: 0 1px 12px rgba(255,255,255,0.72);
      opacity: 0.92;
      transition: opacity .2s ease, transform .2s ease;
    }

    .scroll-cue:hover {
      color: var(--blue);
      opacity: 1;
      transform: translateX(-50%) translateY(2px);
    }

    html[data-theme="dark"] .scroll-cue {
      color: rgba(237,246,255,0.88);
      text-shadow: 0 2px 14px rgba(0,0,0,0.78);
    }

    .scroll-cue-icon {
      width: 34px;
      height: 54px;
      border: 2px solid currentColor;
      border-radius: 999px;
      display: inline-flex;
      justify-content: center;
      padding-top: 10px;
      background: rgba(255,255,255,0.16);
      backdrop-filter: blur(4px);
      box-shadow: 0 10px 28px rgba(5,22,39,0.12);
    }

    .scroll-cue-dot {
      width: 5px;
      height: 9px;
      border-radius: 999px;
      background: currentColor;
      animation: scrollCueMove 1.45s ease-in-out infinite;
    }

    @keyframes scrollCueMove {
      0% { transform: translateY(0); opacity: 0.35; }
      45% { opacity: 1; }
      100% { transform: translateY(20px); opacity: 0; }
    }

    .container {
      width: min(1760px, calc(100% - 96px));
      margin: 0 auto;
      position: relative;
      z-index: 2;
    }

    .topbar {
      height: 92px;
      display: grid;
      grid-template-columns: 286px minmax(0, 1fr) 74px;
      align-items: center;
      gap: 24px;
      transform: translate(-70px, -8px);
    }

    .brand {
      display: inline-flex;
      align-items: center;
      transform: translateY(7px);
    }

    .brand img {
      width: 270px;
      max-height: 76px;
      object-fit: contain;
    }

    .brand .logo-dark { display: none; }

    html[data-theme="dark"] .brand .logo-light { display: none; }
    html[data-theme="dark"] .brand .logo-dark { display: block; }

    .nav {
      justify-self: center;
      display: flex;
      align-items: center;
      gap: 32px;
      color: #061c35;
      font-size: 18px;
      font-weight: 680;
      letter-spacing: -0.022em;
      white-space: nowrap;
      padding: 0;
      border-radius: 0;
      background: transparent;
      border: 0;
      box-shadow: none;
      backdrop-filter: none;
      text-shadow: 0 1px 10px rgba(255,255,255,0.62);
    }

    html[data-theme="dark"] .nav {
      color: rgba(237,246,255,0.94);
      background: transparent;
      border-color: transparent;
      box-shadow: none;
      text-shadow: 0 2px 14px rgba(0,0,0,0.72);
    }

    .nav a {
      position: relative;
      transition: color .2s ease;
    }

    .nav a:hover,
    .nav a.active { color: var(--blue); }

    .nav a.active { font-weight: 850; }

    .nav a.active::after {
      content: "";
      position: absolute;
      left: 8%;
      right: 8%;
      bottom: -11px;
      height: 2px;
      border-radius: 999px;
      background: var(--blue);
    }

    .support-link {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      color: var(--blue);
      font-weight: 850;
    }

    .support-icon {
      width: 24px;
      height: 24px;
      border: 2px solid currentColor;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 15px;
      font-weight: 900;
      line-height: 1;
      flex: 0 0 auto;
    }



    .menu-toggle {
      display: none;
      width: 44px;
      height: 38px;
      border: 1px solid rgba(6,28,53,0.18);
      border-radius: 999px;
      background: rgba(255,255,255,0.42);
      backdrop-filter: blur(10px);
      cursor: pointer;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 5px;
      box-shadow: 0 8px 22px rgba(7,28,53,0.10);
    }

    .menu-toggle span {
      width: 18px;
      height: 2px;
      border-radius: 999px;
      background: var(--navy);
      transition: transform .22s ease, opacity .22s ease;
    }

    html[data-theme="dark"] .menu-toggle {
      background: rgba(2,12,24,0.46);
      border-color: rgba(255,255,255,0.18);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
      opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }

    .theme-toggle {
      justify-self: end;
      width: 64px;
      height: 34px;
      border: 1px solid rgba(6,28,53,0.22);
      border-radius: 999px;
      background: rgba(255,255,255,0.76);
      backdrop-filter: blur(10px);
      cursor: pointer;
      position: relative;
      box-shadow: 0 8px 22px rgba(7,28,53,0.12);
    }

    html[data-theme="dark"] .theme-toggle {
      background: rgba(2,12,24,0.64);
      border-color: rgba(255,255,255,0.18);
    }

    .theme-toggle::before {
      content: "";
      position: absolute;
      top: 4px;
      left: 5px;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: var(--blue);
      transition: transform .2s ease;
    }

    html[data-theme="dark"] .theme-toggle::before {
      transform: translateX(29px);
    }

    .hero-content {
      width: 815px;
      max-width: 49vw;
      padding: 34px 32px 36px 0;
      margin-top: 20px;
    }

    .headline {
      color: var(--navy);
      font-size: clamp(40px, 3.25vw, 62px);
      line-height: 0.98;
      letter-spacing: -0.055em;
      font-weight: 820;
      text-transform: uppercase;
      margin-bottom: 27px;
    }

    .headline .blue {
      display: block;
      color: var(--blue-strong);
    }

    .lead {
      color: var(--text-soft);
      font-size: clamp(24px, 1.45vw, 30px);
      line-height: 1.28;
      max-width: 610px;
      letter-spacing: -0.035em;
      margin-bottom: 56px;
    }

    .feature-cards {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
      width: 815px;
      max-width: calc(100vw - 112px);
      align-items: stretch;
    }

    .feature-card {
      width: 100%;
      min-width: 0;
      min-height: 282px;
      padding: 0 15px 22px;
      border-radius: 10px;
      background:
        linear-gradient(180deg, rgba(18,78,136,0.80), rgba(2,28,55,0.95)),
        var(--card);
      border: 1.5px solid var(--card-border);
      box-shadow: var(--shadow);
      color: #fff;
      transition: transform .2s ease, box-shadow .2s ease;
      overflow: hidden;
    }

    .feature-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 30px 70px rgba(8,119,255,0.22);
    }

    .feature-media {
      position: relative;
      height: 118px;
      margin: 0 -15px 18px;
      overflow: hidden;
      border-radius: 9px 9px 0 0;
      background: #061c35;
    }

    .feature-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: saturate(0.92) contrast(1.08);
      transform: scale(1.015);
      transition: transform .28s ease, filter .28s ease;
    }

    .feature-media::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(180deg, rgba(8,119,255,0.02), rgba(4,20,42,0.76)),
        radial-gradient(circle at 24% 18%, rgba(74,162,255,0.28), transparent 42%);
      z-index: 1;
      pointer-events: none;
    }

    .feature-media::after {
      content: "";
      position: absolute;
      inset: 0;
      border-bottom: 1px solid rgba(74,162,255,0.48);
      box-shadow: inset 0 -22px 28px rgba(2,18,36,0.58);
      z-index: 2;
      pointer-events: none;
    }

    .feature-card:hover .feature-media img {
      transform: scale(1.06);
      filter: saturate(1.02) contrast(1.12);
    }

    .feature-divider {
      width: 100%;
      max-width: 118px;
      height: 1px;
      margin: 0 auto 18px;
      background: rgba(8,119,255,0.48);
    }

    .feature-card h3 {
      color: var(--blue);
      font-size: clamp(16px, 0.96vw, 19px);
      line-height: 1.12;
      font-weight: 800;
      letter-spacing: -0.04em;
      margin-bottom: 12px;
      overflow-wrap: break-word;
      hyphens: auto;
    }

    .feature-card p {
      color: rgba(255,255,255,0.95);
      font-size: clamp(15px, 0.86vw, 17px);
      line-height: 1.42;
      letter-spacing: -0.035em;
      overflow-wrap: break-word;
      hyphens: auto;
    }

    .footer-main {
      background: var(--soft);
      border-top: 1px solid var(--line);
      padding: 48px 0;
    }

    .footer-grid {
      width: min(1760px, calc(100% - 96px));
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1.15fr 1fr;
      gap: 72px;
      align-items: start;
    }

    .footer-title {
      color: var(--blue);
      font-size: 18px;
      font-weight: 900;
      text-transform: uppercase;
      margin-bottom: 24px;
    }

    .footer-title::after {
      content: "";
      display: block;
      width: 42px;
      height: 3px;
      background: var(--blue);
      margin-top: 10px;
      border-radius: 999px;
    }

    .contact-list {
      list-style: none;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 22px 34px;
    }

    .contact-item {
      display: grid;
      grid-template-columns: 34px minmax(0, 1fr);
      gap: 14px;
      color: var(--text-soft);
      font-size: 16px;
    }

    .contact-item svg {
      width: 28px;
      height: 28px;
      stroke: var(--blue);
      fill: none;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
      margin-top: 2px;
    }

    .contact-item a { color: var(--text); }

    .partner-row {
      display: flex;
      align-items: center;
      gap: 62px;
      flex-wrap: wrap;
      margin-top: 16px;
    }

    .partner-row a {
      display: inline-flex;
      align-items: center;
      transition: transform .2s ease;
    }

    .partner-row a:hover { transform: scale(1.04); }

    .partner-row img {
      max-height: 68px;
      width: auto;
      object-fit: contain;
    }

    html[data-theme="dark"] .partner-row img {
      filter: brightness(1.12);
    }

    .footer-bottom {
      background: #061d30;
      color: rgba(255,255,255,0.88);
      text-align: center;
      padding: 24px 0;
      font-size: 15px;
    }

    .footer-bottom a { color: #fff; }

    @media (max-width: 1400px) {
      .nav {
        gap: 24px;
        font-size: 17px;
      }

      .hero-content {
        width: 760px;
        max-width: 58vw;
      }

      .feature-cards {
        width: 760px;
      }
    }



    @media (max-width: 1100px) {
      .topbar {
        height: 86px;
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 12px;
        transform: translate(-38px, -6px);
      }

      .brand { transform: translateY(6px); }

      .brand img { width: 240px; }

      .menu-toggle {
        display: inline-flex;
        justify-self: end;
        order: 2;
      }

      .theme-toggle {
        order: 3;
      }

      .nav {
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        z-index: 20;
        justify-self: stretch;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: min(360px, calc(100vw - 30px));
        margin-left: auto;
        color: #061c35;
        font-size: 17px;
        white-space: normal;
        padding: 10px;
        border-radius: 18px;
        background: rgba(255,255,255,0.82);
        border: 1px solid rgba(6,28,53,0.12);
        box-shadow: 0 22px 50px rgba(5,22,39,0.18);
        backdrop-filter: blur(16px);
        text-shadow: none;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity .22s ease, transform .22s ease;
      }

      html[data-theme="dark"] .nav {
        color: rgba(237,246,255,0.96);
        background: rgba(2,12,24,0.84);
        border-color: rgba(255,255,255,0.16);
        box-shadow: 0 24px 58px rgba(0,0,0,0.34);
        text-shadow: none;
      }

      .nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
      }

      .nav a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 9px 12px;
        border-radius: 12px;
      }

      .nav a:hover,
      .nav a.active {
        background: rgba(8,119,255,0.10);
      }

      .nav a.active::after {
        display: none;
      }

      .support-link {
        justify-content: flex-start;
      }
    }

    @media (max-width: 1200px) {
      .topbar { grid-template-columns: 252px minmax(0, 1fr) 68px; }

      .nav {
        gap: 18px;
        font-size: 16px;
      }

      .hero-content { max-width: 64vw; }

      .feature-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: min(760px, 100%);
      }

      .footer-grid {
        grid-template-columns: 1fr;
        gap: 42px;
      }
    }

    @media (max-width: 820px) {
      .hero {
        min-height: auto;
        background-position: left center;
      }

      .scroll-cue {
        position: fixed;
        left: 50%;
        right: auto;
        bottom: 18px;
        transform: translateX(-50%);
        z-index: 80;
        padding: 10px 14px;
        border-radius: 999px;
        background: rgba(6, 28, 53, 0.58);
        border: 1px solid rgba(255,255,255,0.22);
        backdrop-filter: blur(10px);
        box-shadow: 0 16px 38px rgba(0,0,0,0.24);
      }

      .scroll-cue-label {
        display: inline;
        color: #fff;
        font-size: 11px;
        letter-spacing: 0.12em;
      }

      .scroll-cue.is-hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(-50%) translateY(12px);
      }

      .container,
      .footer-grid {
        width: min(100% - 30px, 1760px);
      }

      .topbar {
        height: 78px;
        grid-template-columns: minmax(0, 1fr) auto auto;
        padding: 12px 0;
        transform: none;
      }

      .brand { transform: translateY(5px); }

      .brand img { width: 210px; }

      .nav {
        top: 70px;
        width: min(340px, calc(100vw - 30px));
      }

      .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 48px 0 82px;
      }

      .headline { font-size: clamp(38px, 11vw, 56px); }

      .lead {
        font-size: 20px;
        margin-bottom: 34px;
      }

      .feature-cards,
      .contact-list {
        grid-template-columns: 1fr;
      }

      .feature-card { min-height: auto; }
    }


    .page-content {
      background: var(--page);
      padding: 72px 0 82px;
      position: relative;
      z-index: 1;
    }

    .content-wrap {
      width: min(1180px, calc(100% - 96px));
      margin: 0 auto;
    }

    .content-card {
      background: linear-gradient(180deg, rgba(245,248,252,0.96), rgba(255,255,255,0.98));
      border: 1px solid var(--line);
      border-radius: 24px;
      box-shadow: 0 22px 60px rgba(5,22,39,0.10);
      padding: clamp(28px, 4vw, 58px);
    }

    html[data-theme="dark"] .content-card {
      background: linear-gradient(180deg, rgba(8,24,39,0.96), rgba(6,17,31,0.98));
      box-shadow: 0 24px 70px rgba(0,0,0,0.26);
    }

    .content-kicker {
      color: var(--blue);
      font-size: 15px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      margin-bottom: 12px;
    }

    .content-card h2 {
      color: var(--text);
      font-size: clamp(34px, 3.2vw, 54px);
      line-height: 1.02;
      letter-spacing: -0.06em;
      margin-bottom: 26px;
    }

    .content-card h3 {
      color: var(--blue);
      font-size: clamp(21px, 1.45vw, 27px);
      line-height: 1.15;
      letter-spacing: -0.04em;
      margin: 34px 0 10px;
    }

    .content-card h4 {
      color: var(--text);
      font-size: 20px;
      line-height: 1.22;
      letter-spacing: -0.035em;
      margin: 24px 0 9px;
    }

    .content-card p {
      color: var(--text-soft);
      font-size: 18px;
      line-height: 1.65;
      max-width: 980px;
      margin-bottom: 16px;
    }

    .content-card a {
      color: var(--blue);
      font-weight: 800;
    }

    .content-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 18px 36px;
      margin-top: 20px;
    }

    .info-box {
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 24px;
      background: rgba(255,255,255,0.62);
    }

    html[data-theme="dark"] .info-box {
      background: rgba(255,255,255,0.035);
    }

    .webcam-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 22px;
      margin-top: 28px;
    }

    .webcam-card {
      display: block;
      border-radius: 18px;
      overflow: hidden;
      border: 1px solid var(--line);
      background: var(--soft);
      box-shadow: 0 14px 36px rgba(5,22,39,0.10);
      transition: transform .2s ease, box-shadow .2s ease;
    }

    .webcam-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 22px 48px rgba(8,119,255,0.18);
    }

    .webcam-card img {
      width: 100%;
      aspect-ratio: 16 / 10;
      object-fit: cover;
      background: #0b2036;
    }

    .webcam-card-body {
      padding: 16px 18px 18px;
    }

    .webcam-card h3 {
      font-size: 18px;
      margin: 0 0 7px;
      letter-spacing: -0.035em;
    }

    .webcam-card span {
      display: block;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.35;
      overflow-wrap: anywhere;
    }

    .legal-block + .legal-block {
      margin-top: 24px;
      padding-top: 10px;
    }

    @media (max-width: 1200px) {
      .webcam-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    }

    @media (max-width: 820px) {
      .page-content { padding: 48px 0 58px; }
      .content-wrap { width: min(100% - 30px, 1180px); }
      .content-card { border-radius: 18px; }
      .content-grid,
      .webcam-grid { grid-template-columns: 1fr; }
      .content-card p { font-size: 16px; }
    }

/* Webcam gallery and robust image lightbox */
.webcam-card {
  appearance: none;
  border: 1px solid var(--line);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
}

.webcam-card-body {
  min-height: 62px;
}

.webcam-card-body h3 {
  margin-bottom: 0;
}

body.modal-open {
  overflow: hidden;
}

.webcam-modal[hidden] {
  display: none;
}

.webcam-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2.5vw, 32px);
  opacity: 0;
  transition: opacity .18s ease;
}

.webcam-modal.is-open {
  opacity: 1;
}

.webcam-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 10, 21, 0.86);
  backdrop-filter: blur(7px);
}

.webcam-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1500px, 96vw);
  height: min(900px, 92dvh);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  background: #06111f;
  box-shadow: 0 30px 100px rgba(0,0,0,0.55);
  transform: scale(.985);
  transition: transform .18s ease;
}

.webcam-modal.is-open .webcam-modal-dialog {
  transform: scale(1);
}

.webcam-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 14px 18px 14px 22px;
  color: #fff;
  background: rgba(6, 28, 53, 0.96);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.webcam-modal-header h2 {
  margin: 0;
  font-size: clamp(17px, 1.5vw, 24px);
  line-height: 1.2;
}

.webcam-modal-close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,0.08);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.webcam-modal-stage {
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(10px, 1.5vw, 24px);
  background: #020912;
}

.webcam-modal-image {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center center;
}


.webcam-modal-image[hidden] {
  display: none;
}

.webcam-modal-status {
  max-width: 560px;
  padding: 18px 22px;
  border-radius: 12px;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.08);
  text-align: center;
}

@media (max-width: 820px) {
  .webcam-modal {
    padding: 8px;
  }

  .webcam-modal-dialog {
    width: 100%;
    height: min(86dvh, 760px);
    border-radius: 14px;
  }

  .webcam-modal-header {
    min-height: 56px;
    padding: 10px 12px 10px 16px;
  }

  .webcam-modal-close {
    width: 38px;
    height: 38px;
  }
}
