/* Võ Vietnam Bern — all styling.
   Desktop (>= 1024px) reproduces the old Wix layout exactly: a 980px stage
   centred on the page, every block placed at the pixel position it had on Wix
   (inline left/top/width/height). Below 1024px the blocks stack for phones. */
:root {
  --navy: #253c57;
  --navy-dark: #18293d;
  --yellow: #ffda00;
  --blue: #bee1e6;
  --blue-light: #d3f1f5;
  --grey: #f2f2f2;
  --charcoal: #2f2e2e;
  --white: #fff;
  --font: "Jost", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
  /* distance from the stage edge to the viewport edge */
  --bleed: calc(50vw - 490px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--navy); font: 300 18px/normal var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Stage + absolute placement (desktop) ---------- */
.sec { position: relative; }
.stage { position: relative; width: 980px; height: 100%; margin: 0 auto; }
.abs { position: absolute; }
.full { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.cover { width: 100%; height: 100%; object-fit: cover; }
.to-right { right: calc(-1 * var(--bleed)); }   /* extend a block to the viewport's right edge */
.from-left { left: calc(-1 * var(--bleed)); }   /* start a block at the viewport's left edge */

/* ---------- Type ---------- */
.t120 { font-size: 120px; font-weight: 500; color: var(--white); line-height: normal; }
.t75 { font-size: 75px; text-align: center; }
.t65 { font-size: 65px; }
.t56 { font-size: 56px; line-height: 67.2px; }
.t40 { font-size: 40px; font-weight: 300; color: var(--white); }
.t29 { font-size: 29px; }
.body18 { font-size: 18px; font-weight: 300; }
.body18 p + p { margin-top: 1.2em; }
.white { color: var(--white); }
b, strong { font-weight: 500; }

/* ---------- Buttons ---------- */
.btn { display: flex; align-items: center; justify-content: center; font: 400 18px var(--font); text-decoration: none; transition: filter .2s; }
.btn:hover { filter: brightness(.94); }
.btn-yellow { background: var(--yellow); color: var(--navy-dark); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-small { font-size: 12px; font-weight: 500; }
.btn-white { background: var(--white); color: var(--navy); }

/* ---------- Header ---------- */
.site-header { height: 73px; background: var(--white); }
.brand-logo img { width: 58px; height: 50px; object-fit: contain; }
.brand-name { font-size: 20px; font-weight: 400; text-decoration: none; white-space: nowrap; }
.nav a { position: absolute; top: 7px; height: 58px; line-height: 58px; font-size: 16px; font-weight: 400; text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: #89aeb3; }
.nav-toggle { display: none; }

/* ---------- Pieces ---------- */
.social { display: flex; gap: 20px; }
.social a { width: 25px; height: 25px; color: var(--white); }
.social svg { width: 100%; height: 100%; }
.card-yellow { background: var(--yellow); }
.card-blue { background: var(--blue); }
.event { font-size: 20px; line-height: 28px; color: var(--white); }
.event b { font-weight: 600; }
.event span { font-weight: 300; }
.event a { text-decoration: none; }
.event a:hover { text-decoration: underline; }
.rule { height: 0; border-top: 1px solid var(--white); }
.list36 { font-size: 18px; line-height: 36px; font-weight: 300; }
.list36 b { font-weight: 500; }
.small15 { font-size: 15px; }

/* ---------- Slideshow (same behaviour as the Wix one) ---------- */
.slideshow { background: var(--charcoal); overflow: hidden; }
.slideshow figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s; }
.slideshow figure.active { opacity: 1; }
.slideshow img { width: 100%; height: 100%; object-fit: cover; }
.slideshow button { position: absolute; top: 50%; transform: translateY(-50%); width: 45px; height: 70px; border: 0; background: transparent; color: var(--white); cursor: pointer; display: grid; place-items: center; }
.slideshow button svg { width: 18px; height: 34px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.slideshow .prev { left: 20px; }
.slideshow .next { right: 20px; }
.slideshow .count { position: absolute; right: 16px; bottom: 10px; color: var(--white); font-size: 14px; text-shadow: 0 1px 3px rgba(0,0,0,.7); }

/* ---------- Schule: 6 Säulen ---------- */
.six { font: 700 80px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--yellow); }
.boxline { border: 2px solid var(--navy); }
.pillar { font-size: 20px; font-weight: 400; line-height: 30px; }
.note-italic { font-size: 16px; font-style: italic; color: #414141; text-align: center; line-height: 28.8px; }

/* ---------- Contact + footer ---------- */
.contact-name { font: 18px/28.8px "Jost", sans-serif; }
.contact-name span { font-family: Arial, sans-serif; }
.contact-text { font-size: 18px; line-height: 28.8px; font-weight: 300; }
.field input, .field textarea {
  width: 100%; height: 100%; padding: 4px 4px; resize: none;
  font: 300 14px var(--font); color: var(--navy);
  background: transparent; border: 0; border-bottom: 2px solid var(--navy); border-radius: 0;
}
.field input::placeholder, .field textarea::placeholder { color: var(--navy); opacity: .85; }
.field textarea { padding-top: 10px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: #89aeb3; }
.send { background: none; border: 0; font: 400 24px var(--font); color: var(--navy-dark); cursor: pointer; }
.send:hover { text-decoration: underline; }
.form-note { font-size: 15px; text-align: center; }
.footer-bar { background: var(--yellow); height: 67px; padding-top: 27px; text-align: center; font-size: 15px; font-weight: 400; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* =================== Phones and small tablets =================== */
@media (max-width: 1023px) {
  .stage { width: auto; height: auto; padding: 0 16px; }
  .sec { height: auto !important; }
  .abs { position: relative; left: auto !important; top: auto !important; right: auto !important; width: auto !important; height: auto !important; }
  .full { position: absolute; left: 0; width: 100%; }

  .t120 { font-size: 64px; }
  .t75 { font-size: 52px; }
  .t65 { font-size: 46px; }
  .t56 { font-size: 38px; line-height: 1.15; }
  .t40 { font-size: 26px; }
  .t29 { font-size: 25px; }

  /* header */
  .site-header .stage { display: flex; align-items: center; gap: 12px; height: 73px; }
  .brand-logo img { width: 44px; height: 44px; }
  .nav-toggle { display: block; margin-left: auto; background: none; border: 0; padding: 10px; color: var(--navy); cursor: pointer; }
  .nav-toggle svg { width: 26px; height: 26px; display: block; }
  .nav { display: none; position: absolute !important; top: 73px; left: 0; right: 0; background: var(--white); z-index: 20; border-bottom: 1px solid rgba(37,60,87,.12); }
  .nav.open { display: block; }
  .nav a { position: static; display: block; height: auto; line-height: 1; padding: 16px; font-size: 18px; }

  /* generic stacking */
  .btn { min-height: 64px; padding: 0 32px; display: inline-flex; }
  .m-pad { padding: 32px 24px; }
  .m-gap { margin-top: 24px !important; }
  .m-gap-s { margin-top: 12px !important; }
  .m-overlap { margin: -40px 16px 0 !important; }
  .m-hide { display: none !important; }

  /* hero */
  .hero { min-height: 560px; display: flex; flex-direction: column; justify-content: flex-end; }
  .hero .stage { padding-top: 80px; padding-bottom: 0; }
  .hero .btn { margin-top: 48px; align-self: flex-end; }
  .hero .full { height: calc(100% - 26px); }

  .band .stage { padding: 56px 16px; text-align: center; }
  .band .btn { margin: 24px auto 0; width: 160px; min-height: 42px; }
  .band .t30 { font-size: 24px; }
  .band .t37 { font-size: 30px; }

  .events .stage { padding: 56px 16px; }
  .events .rule { width: 65px !important; margin: 14px 0; }

  .contact .stage { padding: 0; }
  .contact .panel { position: relative; padding: 48px 16px; }
  .contact .field { margin-top: 20px; height: 44px !important; }
  .contact .field.msg { height: 110px !important; }
  .contact .send { margin-top: 20px; width: 100% !important; height: 54px !important; }
  .slideshow { aspect-ratio: 691 / 480; }
  .video-band { height: 56vw !important; }
  .m-title { padding: 48px 16px 40px; }
  .m-padv { padding-top: 48px; padding-bottom: 48px; }
  .card-blue, .card-yellow { display: block; }
  .card-yellow.boxline { margin-top: 0 !important; }
  .pillars { margin-top: 48px !important; }
  .m-sixhead { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
  .m-sixhead .six { background: var(--white); border: 2px solid var(--navy); padding: 18px 22px; }
  .contact .panel.from-left { padding-left: 16px; }
  .contact form.panel { display: block; }
  .footer-bar { height: auto; padding: 22px 16px; }
  .portrait { width: 200px !important; margin: -30px auto 0 !important; }
  .pillars-m { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
}
@media (min-width: 1024px) {
  .m-only { display: none !important; }
}

/* Fine-tuning to match the Wix rendering (Futura is narrower than Jost) */
.history-text { font-size: 16.8px; line-height: 23.2px; }
.history-text p + p { margin-top: 22px; }
.brand-logo img { object-fit: cover; }
.t120 { font-weight: 500; white-space: nowrap; }
.btn-small { font-size: 13px; font-weight: 600; }
.note-italic { font-size: 15px; white-space: nowrap; }
@media (max-width: 1023px) {
  .history-text { font-size: 17px; line-height: 1.5; }
  .note-italic { white-space: normal; margin: 18px 0 0 !important; }
}
@media (max-width: 1023px) { .t120 { white-space: normal; } }
