/* ==========================================================================
   Sternwarte Uitikon – Site stylesheet
   Used by all static pages (not by booking/ or groupbooking/, which keep w3.css)
   ========================================================================== */

:root {
  /* Brand colours (modernised from the original w3 teal / light-blue) */
  --teal:        #0f8a80;
  --teal-dark:   #0b6b63;
  --teal-soft:   #e3f3f1;
  --sky:         #7cc8e8;
  --sky-soft:    #e8f5fb;
  --navy:        #0e1b2c;
  --navy-2:      #16273d;

  --text:        #1d2733;
  --muted:       #5c6878;
  --line:        #e2e7ee;
  --bg:          #f5f7fa;
  --card:        #ffffff;

  --ok:          #1f9d55;
  --warn:        #d98a00;
  --bad:         #d64545;

  --radius:      14px;
  --radius-sm:   9px;
  --shadow:      0 1px 2px rgba(14, 27, 44, .06), 0 6px 20px rgba(14, 27, 44, .06);
  --shadow-lg:   0 10px 40px rgba(14, 27, 44, .16);

  --font-body:   "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head:   "Outfit", "Inter", system-ui, sans-serif;

  --nav-h:       64px;
  --wrap:        1160px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; font-weight: 500; }
a:hover { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; color: var(--navy); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
strong, b { font-weight: 600; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 48px 0; }
.section + .section { padding-top: 0; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: .5em; display: block; }
.text-warn { color: var(--bad); font-weight: 600; }

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 900;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; }
.brand:hover { text-decoration: none; color: var(--navy); }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .95rem; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links li { margin: 0; position: relative; }
.nav-links > li > a, .nav-links > li > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  font: 500 .95rem var(--font-body); color: var(--text);
  background: none; border: 0; cursor: pointer;
}
.nav-links > li > a:hover, .nav-links > li > button:hover { background: var(--teal-soft); color: var(--teal-dark); text-decoration: none; }
.nav-links a[aria-current="page"], .nav-links .has-current > button { color: var(--teal-dark); background: var(--teal-soft); }
.nav-links .nav-cta { background: var(--teal); color: #fff; margin-left: 8px; }
.nav-links .nav-cta:hover { background: var(--teal-dark); color: #fff; }

.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 200px;
  list-style: none; margin: 0; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s ease;
}
.dropdown-menu::before { content: ""; position: absolute; inset: -10px 0 auto 0; height: 10px; }
.has-dropdown:hover .dropdown-menu, .has-dropdown:focus-within .dropdown-menu, .has-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a { display: block; padding: 8px 12px; border-radius: 7px; color: var(--text); font-weight: 400; }
.dropdown-menu a:hover, .dropdown-menu a[aria-current="page"] { background: var(--teal-soft); color: var(--teal-dark); text-decoration: none; }
.dropdown-menu i { width: 20px; color: var(--teal); }

.nav-toggle { display: none; background: none; border: 0; font-size: 1.35rem; color: var(--navy); cursor: pointer; padding: 8px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 18px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.open .nav-links { display: flex; }
  .nav-links > li > a, .nav-links > li > button { width: 100%; border-radius: var(--radius-sm); padding: 11px 12px; }
  .has-dropdown > button { display: none !important; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0; min-width: 0; }
  .dropdown-menu::before { display: none; }
  .dropdown-menu a { padding: 11px 12px; font-weight: 500; }
  .dropdown-menu i { display: none; }
  .nav-links .nav-cta { margin: 8px 0 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--navy) url("../images/logo5.jpg") center 60% / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14, 27, 44, .82) 0%, rgba(14, 27, 44, .45) 45%, rgba(14, 27, 44, .05) 75%),
              linear-gradient(0deg, rgba(14, 27, 44, .55) 0%, rgba(14, 27, 44, 0) 45%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .25em; }
.hero p { color: rgba(255, 255, 255, .88); }
.hero-home { min-height: min(68vh, 620px); display: flex; align-items: flex-end; padding: 80px 0 64px; }
.hero-home .lead { font-size: 1.2rem; max-width: 34em; margin-bottom: 1.6em; }
.hero-page { padding: 72px 0 40px; }
.hero-page h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0; }
.hero-page .eyebrow { color: var(--sky); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem var(--font-body); cursor: pointer; transition: .15s ease; text-decoration: none !important;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-sky { background: var(--sky); color: var(--navy); }
.btn-sky:hover { background: #64bde2; color: var(--navy); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.btn-light { background: #fff; color: var(--text); border-color: var(--line); }
.btn-light:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Layout grids ---------- */
.layout-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.stack > * + * { margin-top: 24px; }
@media (max-width: 960px) {
  .layout-main { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 32px 0; }
}

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-body { padding: 22px 24px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.card-head h3, .card-head h4 { margin: 0; font-size: 1.1rem; }
.card-head i { color: var(--teal); }
.card-head.accent { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%); border-bottom: 0; }
.card-head.accent h3, .card-head.accent h4, .card-head.accent i { color: #fff; }
.card dl { margin: 0; }
.card dt { font-weight: 600; color: var(--navy); margin-top: 12px; }
.card dt:first-child { margin-top: 0; }
.card dd { margin: 2px 0 0; color: var(--muted); }

/* Action cards (big call-to-action tiles) */
.action-card {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  color: var(--text); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.action-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--sky); text-decoration: none; color: var(--text); }
.action-card .icon { flex: 0 0 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; background: var(--sky-soft); color: var(--teal-dark); }
.action-card h3 { font-size: 1.15rem; margin: 2px 0 6px; }
.action-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.action-card .go { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--teal); font-size: .92rem; }

/* ---------- Notices ---------- */
.notice {
  position: relative; display: flex; gap: 14px;
  padding: 16px 44px 16px 18px; margin-bottom: 24px;
  border-radius: var(--radius-sm); background: var(--teal-soft); border: 1px solid #bfe3de; color: var(--navy);
}
.notice > i { color: var(--teal); font-size: 1.2rem; margin-top: 3px; }
.notice h4 { margin: 0 0 4px; }
.notice p { margin: 0; }
.notice.warn { background: #fff6e5; border-color: #f3d9a4; }
.notice.warn > i { color: var(--warn); }
.notice.danger { background: #fdeeee; border-color: #f2c4c4; }
.notice.danger > i { color: var(--bad); }
.notice-close { position: absolute; top: 8px; right: 8px; background: none; border: 0; font-size: 1.1rem; color: var(--muted); cursor: pointer; padding: 6px 9px; border-radius: 6px; }
.notice-close:hover { background: rgba(0, 0, 0, .06); }

.callout { padding: 14px 18px; border-left: 4px solid var(--teal); background: #fff; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 1em; box-shadow: var(--shadow); }
.callout.cold { border-left-color: var(--sky); background: var(--sky-soft); box-shadow: none; }

/* ---------- Status (stustatus.js writes <font color=..> into #status) ---------- */
.status-box { text-align: center; padding: 16px; border-radius: var(--radius-sm); background: var(--bg); margin-bottom: 18px; }
.status-box .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
#status { display: block; margin-top: 6px; }
#status font { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
#status font::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
#status font[color="green"]  { color: var(--ok)   !important; background: #e5f6ec; }
#status font[color="red"]    { color: var(--bad)  !important; background: #fdeaea; }
#status font[color="orange"] { color: var(--warn) !important; background: #fff3dc; }
#statusmessage { display: block; font-size: .9rem; color: var(--muted); margin-top: 6px; }
#statusmessage:empty { display: none; }

/* ---------- Content blocks ---------- */
.prose { max-width: 72ch; }
.prose p { text-align: left; }
.chapter { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px; padding: 40px 0; border-top: 1px solid var(--line); }
.chapter.full { grid-template-columns: 1fr; }
.chapter .byline { color: var(--muted); font-size: .9rem; margin: -6px 0 16px; font-style: italic; }
.chapter figure { margin: 0 0 16px; }
.chapter figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
@media (max-width: 860px) { .chapter { grid-template-columns: 1fr; gap: 16px; } }

.toc a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); font-weight: 500; }
.toc a:hover { background: var(--teal-soft); color: var(--teal-dark); text-decoration: none; }
.toc a span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-dark); font-size: .78rem; font-weight: 700; }

.facts { list-style: none; padding: 0; }
.facts li { position: relative; padding-left: 26px; }
.facts li::before { content: "\f005"; font: var(--fa-font-solid); font-size: .7rem; position: absolute; left: 4px; top: .45em; color: var(--sky); }
ol.alpha { list-style: upper-alpha; }

/* Prices */
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 10px 0; text-align: left; border-bottom: 1px solid var(--line); }
.price-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.price-table td.amount { text-align: right; font-weight: 600; color: var(--navy); white-space: nowrap; }
.price-table tr:last-child td { border-bottom: 0; }
.price-group { font-family: var(--font-head); font-weight: 600; color: var(--teal-dark); padding-top: 16px !important; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 48px; margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.steps li::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps strong { display: block; color: var(--navy); }

/* FAQ accordion */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 600; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\2b"; font: var(--fa-font-solid); position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--teal); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .answer { padding: 16px 20px 6px; }
.status-legend { list-style: none; padding: 0; }
.status-legend li { display: flex; gap: 10px; }
.dot { flex: 0 0 10px; height: 10px; border-radius: 50%; margin-top: .55em; }
.dot.ok { background: var(--ok); } .dot.bad { background: var(--bad); } .dot.warn { background: var(--warn); }

/* Gallery (masonry via CSS columns) */
.gallery { columns: 4 240px; column-gap: 14px; }
.gallery a { display: block; margin-bottom: 14px; break-inside: avoid; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.gallery img { width: 100%; transition: transform .35s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery-loading { color: var(--muted); text-align: center; padding: 40px 0; }

/* Press */
.press-card { display: flex; flex-direction: column; color: var(--text); }
.press-card:hover { text-decoration: none; color: var(--text); }
.press-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--line); }
.press-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .35s ease; }
.press-card:hover .thumb img { transform: scale(1.03); }
.press-card .card-body { flex: 1; display: flex; flex-direction: column; }
.press-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.press-card .date { color: var(--muted); font-size: .9rem; }
.press-card .go { margin-top: auto; padding-top: 12px; font-weight: 600; color: var(--teal); font-size: .9rem; }

/* Embeds */
.embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--navy); box-shadow: var(--shadow); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed.map { aspect-ratio: 4 / 3; }

/* ---------- Floating contact button ---------- */
.contact-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 950;
  display: inline-flex; align-items: center; gap: 0; height: 54px; padding: 0 17px;
  border-radius: 999px; border: 0; cursor: pointer;
  background: var(--sky); color: var(--navy); box-shadow: var(--shadow-lg);
  font: 600 1rem var(--font-body); transition: .2s ease;
}
.contact-fab i { font-size: 1.3rem; }
.contact-fab span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .25s ease, margin .25s ease; }
.contact-fab:hover span, .contact-fab:focus-visible span { max-width: 120px; margin-left: 10px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: flex-start; justify-content: center; padding: 6vh 16px; background: rgba(14, 27, 44, .55); backdrop-filter: blur(3px); overflow-y: auto; }
.modal.open { display: flex; }
.modal-dialog { width: 100%; max-width: 560px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .2s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; background: var(--sky-soft); border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; display: flex; align-items: center; gap: 10px; }
.modal-head h3 i { color: var(--teal); }
.modal-close { background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: var(--muted); padding: 6px 10px; border-radius: 8px; }
.modal-close:hover { background: rgba(0, 0, 0, .06); }
.modal-body { padding: 22px 24px 26px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
.field .req { color: var(--bad); }
.field .count { font-weight: 400; color: var(--muted); font-size: .8rem; }
.input, .w3-input {
  width: 100%; padding: 11px 13px; font: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 1px solid #cfd6df; border-radius: var(--radius-sm); outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 138, 128, .15); }
textarea.input { resize: vertical; min-height: 120px; }
/* validateForm.js toggles these w3 classes – map them to the new look */
.input.w3-border { border: 1px solid #cfd6df; }
.input.w3-border-red-error { border: 1px solid var(--bad); box-shadow: 0 0 0 3px rgba(214, 69, 69, .12); }
.g-recaptcha { display: flex; justify-content: center; margin: 6px 0 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .75); margin-top: 64px; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: rgba(255, 255, 255, .85); font-weight: 400; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .brand { color: #fff; margin-bottom: 10px; }
.site-footer .brand-mark { background: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 16px; padding-bottom: 16px; grid-template-columns: none; font-size: .85rem; color: rgba(255, 255, 255, .55); }
.footer-bottom a { color: rgba(255, 255, 255, .6); }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1100; display: none; align-items: center; justify-content: center; background: rgba(8, 14, 24, .92); padding: 56px 64px; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox figcaption { color: rgba(255, 255, 255, .85); margin-top: 14px; text-align: center; font-size: .95rem; max-width: 60ch; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox { padding: 60px 10px; } .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } }
@media (max-width: 640px) { .hero { background-position: 62% 60%; } }

/* ---------- Intern (Demonstratoren-Bereich) ---------- */
select.input { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235c6878' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; }
.input:disabled { background-color: var(--bg); color: var(--muted); cursor: not-allowed; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 8px 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.form-row:last-of-type { border-bottom: 0; }
.form-row > label { font-weight: 600; color: var(--navy); font-size: .95rem; }
.form-row > label small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.save-ok { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 8px; border-radius: var(--radius-sm); background: #e5f6ec; color: var(--ok); font-weight: 600; }
.save-ok:empty { display: none; }
.login-card { max-width: 440px; margin: 0 auto; }
.hero-page .wrap.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.doc-list { padding-left: 1.3em; margin: 0; }
.doc-list li { margin: 0; padding: 7px 0; }
