/* SwissPre AG – statische Version */

@font-face { font-family: "Source Sans Pro"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/source-sans-pro-300.woff2") format("woff2"); }
@font-face { font-family: "Source Sans Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-pro-400.woff2") format("woff2"); }
@font-face { font-family: "Source Sans Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-pro-700.woff2") format("woff2"); }

:root {
  --navy: #031d44;
  --grey: #dbdfe4;
  --text: #272626;
  --bg: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans Pro", Arial, Helvetica, sans-serif;
  font-weight: 300;
  font-size: 28px;
  line-height: 1.2;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy); }
strong { font-weight: 400; }
p { margin: 0 0 .8em; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 10px; top: 10px; z-index: 1000; background: #fff; padding: 8px 12px; font-size: 16px; }

.wrap { position: relative; }

/* ---------- Header / Logo ---------- */
.logo {
  position: absolute;
  top: 98px;
  right: max(15px, calc(50% - 505px));
  z-index: 100;
  width: 100px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 825px;
  background: url("../img/berge.jpg") 50% 10% / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(249,250,250,0) 17%, #fff 100%);
}

.headsymbol {
  position: absolute;
  left: -270px;
  top: 450px;
  width: 613px;
  opacity: .2;
  z-index: 5;
  pointer-events: none;
}

/* ---------- Inhalt ---------- */
.container { max-width: 1170px; margin: 0 auto; padding: 0 15px; position: relative; z-index: 10; }
.narrow { max-width: 980px; margin: 0 auto; }

.intro { margin: 0 auto 1.2em; }

.services { margin: 0; padding-left: 1.2em; }
.services li { margin-bottom: .2em; }

/* ---------- Karten ---------- */
.cards {
  display: flex;
  justify-content: center;
  gap: 2em;
  flex-wrap: wrap;
  margin: 124px 0 97px;
}

.card {
  position: relative;
  overflow: visible;
  flex: 0 1 415px;
  min-height: 488px;
  padding: 45px 40px;
  background: var(--grey);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
  color: var(--navy);
  transition: transform .2s;
}
.card:hover { transform: scale(1.05); }
.card:nth-child(1) { z-index: 50; }
.card:nth-child(2) { z-index: 51; }

.card p { position: relative; z-index: 9; margin: 0; }

.card .icons {
  position: relative;
  z-index: 9;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1em;
}
.card .icons img { height: 43px; width: auto; }

.coversymbol {
  position: absolute;
  top: -98px;
  right: -85px;
  width: 311px;
  z-index: 1;
  pointer-events: none;
}

/* ---------- CTA ---------- */
.cta { text-align: left; margin-bottom: 100px; }
.cta .btn-wrap { text-align: center; margin-top: .6em; }

.btn {
  display: inline-block;
  padding: 0 20px;
  border: 3px solid var(--navy);
  color: var(--navy);
  font-weight: 200;
  line-height: 1.6em;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.btn:hover, .btn:focus { background: var(--navy); color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: 30px 0 60px;
  min-height: 330px;
}
.site-footer .container { text-align: right; }
.site-footer p { margin: 0 0 .8em; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .legal { font-size: 16px; }
.site-footer .legal a + a { margin-left: 1em; }

.footersymbol {
  position: absolute;
  left: -50px;
  bottom: -295px;
  width: 613px;
  z-index: 1;
  pointer-events: none;
}

/* ---------- Unterseiten (Datenschutz / Impressum) ---------- */
.page-header {
  background: var(--navy);
  padding: 20px 0;
}
.page-header .container { display: flex; justify-content: space-between; align-items: center; }
.page-header a { color: #fff; font-size: 18px; text-decoration: none; }
.page-header a:hover { text-decoration: underline; color: #fff; }
.page-header .brand { font-size: 26px; font-weight: 700; letter-spacing: .08em; }
.page-header .brand sup { font-weight: 400; }

.legal-text {
  max-width: 900px;
  margin: 60px auto 100px;
  font-size: 18px;
  line-height: 1.45;
}
.legal-text h1 { font-size: 36px; font-weight: 700; line-height: 1.2; color: var(--navy); margin: 0 0 1em; }
.legal-text h2 { font-size: 22px; font-weight: 700; color: var(--navy); margin: 2em 0 .5em; }
.legal-text h3 { font-size: 18px; font-weight: 700; margin: 1.5em 0 .4em; }
.legal-text ul { padding-left: 1.2em; }
.legal-text li { margin-bottom: .3em; }
.legal-text .source { margin-top: 3em; font-size: 14px; color: #666; }
.legal-text .source a { color: inherit; text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  body { font-size: 22px; }
  .hero { min-height: 600px; }
  .logo { top: 60px; width: 80px; }
  .headsymbol { top: 330px; }
}

@media (max-width: 576px) {
  body { font-size: 19px; }
  .hero { min-height: 480px; }
  .logo { top: 40px; width: 64px; right: 20px; }
  .headsymbol { top: 335px; width: 400px; left: -200px; }
  .cards { margin: 70px 0 60px; gap: 2.5em; }
  .card { flex-basis: 100%; min-height: 360px; padding: 35px 30px; }
  .card:hover { transform: none; }
  .coversymbol { width: 200px; top: -60px; right: -20px; }
  .footersymbol { width: 345px; left: -125px; bottom: -165px; }
  .site-footer { min-height: 260px; }
  .legal-text { margin: 40px auto 70px; font-size: 16px; }
  .legal-text h1 { font-size: 28px; }
  .page-header .brand { font-size: 20px; }
  .page-header a { font-size: 16px; }
}
