/* Caleido Capital AG — Stylesheet */
@font-face { font-family: 'Sifonn Pro'; src: url('../fonts/sifonn-pro.otf') format('opentype'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/dmsans-latin-ext.woff2') format('woff2'); font-weight: 100 1000; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/dmsans-latin.woff2') format('woff2'); font-weight: 100 1000; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --blue: #1083C1; --navy: #0E3A54; --light: #DBECF6; --white: #FFFFFF;
  --head: 'Sifonn Pro', 'DM Sans', sans-serif;
  --hd-h: 104px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--navy); font-family: 'DM Sans', sans-serif; font-size: 17px; line-height: 1.7; overflow-x: clip; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header */
.hd { position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: var(--hd-h); padding: 0 56px; display: flex; justify-content: space-between; align-items: center; background: var(--white); }
.hd-logo { display: block; }
.hd-logo img { display: block; height: 44px; width: auto; }
.hd-nav { display: flex; align-items: center; gap: 40px; }
.hd-pe { font-family: var(--head); font-weight: 600; font-size: 13px; line-height: 1.55; letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue); text-align: right; margin: 0; }
.lang { display: flex; flex-direction: column; gap: 2px; font-size: 13px; letter-spacing: 0.1em; text-align: center; }
.lang a { color: rgba(16, 131, 193, 0.45); font-weight: 400; }
.lang a[aria-current="true"] { color: var(--blue); font-weight: 500; }
.lang a:hover { color: var(--navy); }

/* Hero */
.hero { position: relative; margin-top: var(--hd-h); aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(14, 58, 84, 0.5); pointer-events: none; }
.hero-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; text-align: center; padding: 0 40px; }
.hero h1 { margin: 0; font-family: var(--head); font-weight: 600; font-size: 52px; line-height: 1.2; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); }
.hero-claim { margin: 0; font-family: var(--head); font-weight: 600; font-size: 14px; line-height: 2; letter-spacing: 0.28em; text-transform: uppercase; color: var(--light); }

/* Main */
.main { padding: 110px 80px 120px; }
.main-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.main-inner p { margin: 0 0 20px; }
.main-inner p:last-child { margin: 0; font-weight: 700; }

/* Footer */
.ft { padding: 48px 80px; background: var(--navy); }
.ft-inner { max-width: 640px; margin: 0 auto; }
.ft-row { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.ft-row img { display: block; height: 50px; width: auto; }
.ft-link { font-size: 15px; line-height: 1.7; color: var(--light); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; }
.ft-link:hover { color: var(--white); }
.ft-links { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ft-link-sm { font-size: 14px; }
.ft-copy { margin: 0; font-size: 14px; line-height: 1.7; color: var(--light); white-space: nowrap; }
.ft-copy a { color: var(--light); text-decoration: underline; text-underline-offset: 3px; }
.ft-copy a:hover { color: var(--white); }

/* Contact modal — opens via JS, or via #kontakt anchor without JS */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.is-open, .modal:target { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(14, 58, 84, 0.55); display: block; }
.modal-box { position: relative; background: var(--white); max-width: 560px; width: 100%; max-height: calc(100vh - 48px); overflow-y: auto; padding: 56px 56px 48px; }
.modal-close { position: absolute; top: 16px; right: 16px; background: transparent; border: 0; font-size: 26px; line-height: 1; color: var(--navy); cursor: pointer; padding: 8px; text-decoration: none; }
.modal h2 { margin: 0 0 12px; font-family: var(--head); font-weight: 600; font-size: 24px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); }
.modal-intro { margin: 0 0 36px; font-size: 15px; }
.form { display: flex; flex-direction: column; gap: 28px; }
.field input, .field textarea { width: 100%; font-family: 'DM Sans', sans-serif; font-size: 16px; color: var(--navy); background: transparent; border: 0; border-bottom: 1px solid var(--navy); border-radius: 0; padding: 8px 0; outline: none; transition: border-color .2s, background-color .2s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--blue); }
.field input::placeholder, .field textarea::placeholder { color: rgba(14, 58, 84, 0.5); opacity: 1; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #B3261E; animation: shake .35s; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.hp { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 4px; display: flex; justify-content: flex-end; }
.btn { font-family: var(--head); font-weight: 600; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); background: var(--blue); border: 0; border-radius: 0; padding: 16px 40px; cursor: pointer; white-space: nowrap; transition: background-color .2s, opacity .2s; }
.btn:hover { background: var(--navy); }
.btn[disabled] { opacity: .6; cursor: default; }
.form-note { margin: 0; font-size: 13px; line-height: 1.6; color: rgba(14, 58, 84, 0.7); }
.form-note a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.form-error { margin: 0; font-size: 14px; color: #B3261E; }
.form-address { margin: 0; font-size: 14px; line-height: 1.7; color: rgba(14, 58, 84, 0.5); }
.form-success { font-size: 17px; margin: 0 0 12px; }
[hidden] { display: none !important; }

/* Legal page */
.legal { margin-top: var(--hd-h); padding: 96px 80px 120px; }
.legal-inner { max-width: 720px; margin: 0 auto; }
.legal h1 { margin: 0 0 12px; font-family: var(--head); font-weight: 600; font-size: 34px; letter-spacing: 0.1em; text-transform: uppercase; }
.legal h2 { margin: 48px 0 12px; font-family: var(--head); font-weight: 600; font-size: 16px; letter-spacing: 0.14em; text-transform: uppercase; }
.legal p, .legal li { font-size: 16px; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal .meta { color: rgba(14, 58, 84, 0.6); font-size: 14px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* Mobile */
@media (max-width: 760px) {
  :root { --hd-h: 64px; }
  .hd { padding: 0 24px; }
  .hd-logo img { height: 32px; }
  .hd-nav { gap: 16px; }
  .hd-pe { font-size: 10px; line-height: 1.54; letter-spacing: 0.14em; white-space: nowrap; }
  .lang { font-size: 11px; gap: 0; line-height: 1.4; }
  .hero { aspect-ratio: 11.2 / 9; }
  .hero-copy { gap: 16px; padding: 0 16px; }
  .hero h1 { font-size: 34px; }
  .hero-claim { font-size: 17px; line-height: 1.5; letter-spacing: 0.02em; }
  .main { padding: 64px 24px; }
  .ft { padding: 40px 24px; }
  .ft-row { gap: 24px 40px; }
  .modal-box { padding: 48px 24px 32px; }
  .legal { padding: 56px 24px 80px; }
  .legal h1 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
