/* cartus diligens – Website-Layout (nachgebaut nach dem Wix-Original) */
@font-face { font-family: "Asap"; src: url("../fonts/asap-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Asap"; src: url("../fonts/asap-semibold.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Voces"; src: url("../fonts/voces-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --navy: #2a266b;
  --dark: #151336;
  --gold: #c2810f;
  --gold-light: #d6b273;
  --text: #555555;
  --hdr: 78px;
  --cw: 980px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hdr); }
body { margin: 0; background: #fff; color: var(--text); font: 16px/1.5 "Asap", Arial, sans-serif; padding-top: var(--hdr); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
.container { width: var(--cw); margin: 0 auto; position: relative; }

/* ---------- Kopfzeile ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; height: var(--hdr); background: #fff; z-index: 50; }
.hdr { height: 100%; display: flex; align-items: flex-start; justify-content: space-between; }
.logo { display: block; margin-top: 11px; }
.logo img { display: block; width: 248px; height: auto; }
.nav > ul { list-style: none; margin: 33px 0 0; padding: 0; display: flex; }
.nav > ul > li { position: relative; }
.nav a { display: block; text-decoration: none; color: var(--navy); font: 14px/30px "Asap", Arial, sans-serif; }
.nav > ul > li > a { padding: 0 15px; text-transform: uppercase; }
.nav > ul > li:last-child > a { padding-right: 5px; }
.nav a:hover, .nav a.is-active { color: var(--gold); }
.nav .sub { list-style: none; margin: 0; padding: 0 0 7px; position: absolute; right: 0; top: 37px; min-width: 175px; background: #fff; display: none; text-align: right; }
.nav .sub a { padding: 0 12px; line-height: 29px; white-space: nowrap; }
.nav li.has-sub:hover > .sub, .nav li.has-sub:focus-within > .sub { display: block; }
/* Unsichtbare Brücke über die 7px-Lücke zwischen Menüpunkt (30px) und Untermenü (top 37px), sonst schließt das Menü beim Hinunterfahren mit der Maus. */
.nav .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 7px; }
.nav-toggle { display: none; }

/* ---------- Rich Text ---------- */
.rt > *, .rt li > p { margin: 0; }
.rt p { font-size: 16px; line-height: normal; }
.rt h1, .rt h2 { font: 42px/1.2 "Voces", Arial, sans-serif; color: #fff; letter-spacing: 0; }
.rt h3 { font: 600 18px/normal "Asap", Arial, sans-serif; color: var(--gold); }
.rt h5 { font: 30px/normal "Voces", Arial, sans-serif; color: var(--navy); }
.rt h6 { font: 18px/2 "Voces", Arial, sans-serif; color: var(--navy); }
.rt ul, .rt ol { margin: 0; padding-left: 1.3em; }
.rt li { line-height: normal; }
.rt a { color: inherit; text-decoration: none; }
.rt a:hover { color: var(--gold); }
.rt strong { font-weight: 600; }
.box.bullets h6 { position: relative; }
.box.bullets > h6, .box.bullets > p { position: relative; }
.box.bullets > h6:not(:empty)::after { content: ""; position: absolute; left: -30px; top: 12px; width: 10px; height: 10px; background: var(--gold); }
.box.bullets > p:not(:empty)::after { content: ""; position: absolute; left: -31px; top: 7px; width: 12px; height: 12px; background: var(--gold); }

/* ---------- Blöcke ---------- */
.blk { position: relative; overflow: hidden; }
.bg-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: opacity 1.2s ease; }
.bg-img.is-fixed { background-attachment: fixed; }
.hero { height: var(--h); }
.hero-panel, .sec-panel { position: absolute; left: 0; top: 0; bottom: 0; width: calc(50% - var(--cw) / 2 + var(--pw)); }
.sec-panel { bottom: auto; }
.hero-inner { height: 100%; }
.hero-box { position: absolute; }
.hero-text { position: absolute; }
.hero-text p { font-size: 18px; line-height: normal; color: #fff; }
.hero-text :is(h1, h2) + p { margin-top: 21px; }
.hero-dots { position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%); display: flex; gap: 12px; }
.hero-dots button { width: 6px; height: 6px; border: 0; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, .45); cursor: pointer; }
.hero-dots button.is-active { background: #fff; }

.section { }
.sec-inner { position: relative; z-index: 1; }
.hero-inner { z-index: 1; }
.row { display: flex; align-items: flex-start; }
.col { flex: none; margin-left: var(--ml); width: var(--w); position: relative; }
.box { position: relative; }
.rt p:empty::before, .rt h3:empty::before, .rt h6:empty::before { content: "\200b"; }
.box-img { display: block; height: auto; margin-bottom: 16px; }
.decor { position: absolute; top: 0; left: 0; right: 0; height: 0; z-index: 1; pointer-events: none; }
.decor img { position: absolute; height: auto; }
.watermark { position: absolute; top: 40px; left: calc(50% + 206px); width: 440px; height: 380px; background: url("../img/logo-wasserzeichen.png") no-repeat left top / contain; opacity: .07; }

/* ---------- Kontaktformular ---------- */
.cform { margin-top: 22px; font-size: 14px; }
.cform label { display: block; margin-bottom: 18px; }
.cform input[type=text], .cform input[type=email], .cform input[type=tel], .cform textarea { display: block; width: 100%; margin-top: 4px; border: 1px solid transparent; background: #dedede; font: 14px "Asap", Arial, sans-serif; color: #222; padding: 4px 10px; height: 26px; border-radius: 0; }
.cform textarea { height: 90px; resize: vertical; }
.cform input:focus, .cform textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.cform .cb { display: flex; gap: 10px; align-items: flex-start; line-height: 1.3; }
.cform .cb input { margin: 2px 0 0; width: 14px; height: 14px; flex: none; }
.cf-r .cb { margin-top: 22px; margin-bottom: 18px; }
.cform .dsgvo { font-size: 12px; margin-top: 4px; }
.cform .dsgvo a { text-decoration: underline; }
.cform button { display: block; width: 100%; height: 30px; font: 14px "Asap", Arial, sans-serif; cursor: pointer; }
.cform-dark { color: #fff; }
.cform-dark button { background: transparent; color: #fff; border: 1px solid #fff; }
.cform-dark button:hover { background: #fff; color: var(--navy); }
.cform-light { color: var(--text); }
.cform-light button { background: var(--navy); color: #fff; border: 0; }
.cform-light button:hover { background: var(--gold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 18px 0 0 !important; font: 600 18px/1.3 "Asap", Arial, sans-serif; color: var(--gold); text-align: center; }
.form-msg.err { color: #e05a4f; font-size: 15px; }

/* ---------- Fuss ---------- */
.totop { background: var(--dark); height: 88px; text-align: center; border-top: 2px solid rgba(255,255,255,.85); }
.totop a { display: inline-block; padding-top: 22px; color: #fff; text-decoration: none; font-size: 16px; }
.totop a::before { content: ""; display: block; width: 18px; height: 18px; margin: 0 auto 6px; border-left: 1.5px solid #fff; border-top: 1.5px solid #fff; transform: translateY(6px) rotate(45deg) scaleY(.55); }
.site-footer { background: var(--gold); color: #fff; }
.ftr { display: flex; justify-content: space-between; align-items: center; min-height: 67px; padding: 10px 0; font-size: 14px; }
.ftr p { font-size: 14px; line-height: 1.2; }
.ftr a { color: #fff; text-decoration: none; margin-left: 18px; }
.ftr a:hover { text-decoration: underline; }

/* ---------- Mobil ---------- */
@media (max-width: 1019px) {
  :root { --hdr: 64px; }
  .container { width: auto; padding: 0 20px; }
  .logo { margin-top: 12px; }
  .logo img { width: 180px; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 22px 0 0 20px; cursor: pointer; }
  .nav-toggle span { width: 24px; height: 2px; background: var(--navy); }
  .nav > ul { display: none; position: fixed; left: 0; right: 0; top: var(--hdr); bottom: 0; background: #fff; margin: 0; padding: 10px 20px 40px; flex-direction: column; overflow: auto; }
  .nav.is-open > ul { display: flex; }
  .nav > ul > li > a { padding: 8px 0; font-size: 16px; }
  .nav .sub { display: block; position: static; text-align: left; min-width: 0; padding: 0 0 8px 16px; }
  .nav .sub a { line-height: 34px; padding: 0; }
  .nav .sub::before { display: none; }
  .hero { height: auto; min-height: min(var(--h), 520px); display: flex; align-items: center; }
  .hero-inner { height: auto; padding: 60px 20px; }
  .hero-text, .hero-box { position: static; transform: none !important; width: auto !important; }
  .hero-box { display: none; }
  .hero-panel { width: 100%; }
  .sec-panel { width: 100%; height: 100% !important; }
  .section { padding: 40px 0 !important; min-height: 0 !important; }
  .row { flex-direction: column; margin-top: 0 !important; }
  .col { margin-left: 0; width: 100%; margin-bottom: 24px; }
  .box { margin-left: 0 !important; }
  .box.bullets { padding-left: 30px; }
  .rt h1, .rt h2 { font-size: 32px; }
  .rt h5 { font-size: 25px; }
  .cf-grid { grid-template-columns: 1fr; }
  .bg-img.is-fixed { background-attachment: scroll; }
  .decor { position: absolute; top: 0; left: 0; right: 0; height: 0; z-index: 1; pointer-events: none; }
.decor img { position: absolute; height: auto; }
.watermark { display: none; }
  .ftr { flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 20px; }
  .ftr a { margin: 0 18px 0 0; }
}
