/* DBS GmbH – Die Bürospezialisten
   Eigenes Stylesheet, ohne Vorlage und ohne Framework. */

/* ---------- Schriften (lokal, OFL) ---------- */
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-v25-latin-regular.woff2") format("woff2"), url("../fonts/montserrat-v25-latin-regular.woff") format("woff"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-v25-latin-500.woff2") format("woff2"), url("../fonts/montserrat-v25-latin-500.woff") format("woff"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-v25-latin-600.woff2") format("woff2"), url("../fonts/montserrat-v25-latin-600.woff") format("woff"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-v25-latin-700.woff2") format("woff2"), url("../fonts/montserrat-v25-latin-700.woff") format("woff"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-v34-latin-regular.woff2") format("woff2"), url("../fonts/open-sans-v34-latin-regular.woff") format("woff"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-v34-latin-600.woff2") format("woff2"), url("../fonts/open-sans-v34-latin-600.woff") format("woff"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url("../fonts/open-sans-v34-latin-700.woff2") format("woff2"), url("../fonts/open-sans-v34-latin-700.woff") format("woff"); }
@font-face { font-family: "Raleway"; font-weight: 500; font-display: swap; src: url("../fonts/raleway-v28-latin-500.woff2") format("woff2"), url("../fonts/raleway-v28-latin-500.woff") format("woff"); }
@font-face { font-family: "Raleway"; font-weight: 700; font-display: swap; src: url("../fonts/raleway-v28-latin-700.woff2") format("woff2"), url("../fonts/raleway-v28-latin-700.woff") format("woff"); }

/* ---------- Grundwerte ---------- */
:root {
  --navy: #101132;
  --navy-2: #1c1e59;
  --navy-3: #23256c;
  --violet: #7073d1;
  --lavender: #e0e0f5;
  --grey: #e8e9eb;
  --text: #2b180d;
  --f-text: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-head: "Montserrat", system-ui, sans-serif;
  --f-alt: "Raleway", system-ui, sans-serif;
  --wrap: 1140px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; overflow-x: hidden; font-family: var(--f-text); font-size: 16px; line-height: 1.5; color: var(--text); background: #fff; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 500; line-height: 1.2; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
img { max-width: 100%; }
a { color: var(--navy); text-decoration: none; transition: color .3s, background .3s; }
a:hover { color: var(--navy-2); }
.icon { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
section { padding: 80px 0; overflow: hidden; }
.sec-title { text-align: center; padding-bottom: 30px; }
.sec-title h2 { font-size: 32px; font-weight: 600; margin-bottom: 20px; padding-bottom: 20px; position: relative; }
.sec-title h2::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; margin: auto; width: 60px; height: 2px; background: var(--navy); }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 10000; }
.skip:focus { left: 8px; color: #fff; }

/* ---------- Kopfzeile ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 997; padding: 24px 0; transition: all .5s; }
.header.sticked { background: rgba(232, 233, 235, .9); padding: 12px 0; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; max-width: 1172px; }
.header .brand img { height: 70px; display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.nav a { display: block; padding: 15px 0 15px 30px; font-size: 15px; font-weight: 500; color: var(--navy); white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--violet); }
.backdrop { position: fixed; }
.nav-toggle { display: none; background: none; border: 0; padding: 4px; cursor: pointer; color: var(--navy); font-size: 32px; line-height: 0; }
@media (max-width: 1200px) { .header { padding: 12px 0; } }
@media (max-width: 1279px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; top: 0; bottom: 0; right: -100%; width: 100%; max-width: 400px; z-index: 9998; transition: right .3s; }
  .nav ul { position: absolute; inset: 0; display: block; padding: 60px 0 10px; background: rgba(16, 17, 50, .9); overflow-y: auto; }
  .nav a { padding: 10px 20px; font-weight: 600; color: rgba(255, 255, 255, .7); }
  .nav a:hover, .nav a.active { color: #fff; }
  .nav-open { overflow: hidden; }
  .nav-open .nav { right: 0; }
  .nav-open .backdrop { position: fixed; inset: 0; background: rgba(16, 17, 50, .7); z-index: 9996; }
  .nav-open .nav-toggle { position: fixed; top: 12px; right: 12px; z-index: 9999; color: rgba(255, 255, 255, .9); }
}

/* ---------- Startbereich ---------- */
.hero { position: relative; z-index: 3; min-height: 100vh; display: flex; align-items: center; padding: 120px 0; background: url("../img/hero-bg.jpg") top center / cover; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(232, 233, 235, .3); }
.hero .wrap { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; }
.hero-text { width: 33.33%; min-width: 300px; }
.hero-logo { max-width: 300px; display: block; }
.hero blockquote { margin: 40px 0; padding-left: 20px; border-left: 2px solid var(--navy); }
.hero h1 { margin: 0; font-family: var(--f-alt); font-size: 2rem; font-weight: 700; line-height: 1.2; color: var(--navy); }
.btn { display: inline-block; font-family: var(--f-alt); font-weight: 500; font-size: 15px; letter-spacing: 1px; padding: 12px 30px; border-radius: 50px; color: #fff; background: var(--navy); transition: background .5s; }
.btn:hover { color: #fff; background: rgba(16, 17, 50, .8); }
.stamp { width: 230px; transform: rotate(-2deg); }
.stamp-mobile { display: none; position: absolute; right: 50px; top: 20px; z-index: 1; }
@media (min-width: 1034px) {
  .hero::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; background: var(--grey); }
}
@media (max-width: 1034px) { .hero::before { background: rgba(232, 233, 235, .7); } }
@media (min-width: 1365px) { .hero { background-attachment: fixed; } }
@media (max-width: 991px) {
  .stamp { width: 180px; }
  .stamp-mobile { display: block; }
  .stamp-col { display: none; }
}
@media (max-width: 640px) {
  .hero-text { width: 100%; min-width: 0; }
  .hero h1 { font-size: 36px; line-height: 1; }
  .stamp-mobile { right: 16px; top: 80px; width: 150px; }
}

/* ---------- Über uns ---------- */
.about { padding-bottom: 0; }
.about-box { display: flex; }
.about-img { width: 41.66%; min-height: 500px; background: url("../img/why-us-bg.jpg") center / cover; }
.about-slides { position: relative; width: 58.34%; background: var(--lavender); display: flex; flex-direction: column; justify-content: center; }
.slider { margin: 140px 140px 120px; overflow: hidden; }
.slider-track { display: flex; transition: transform .6s ease; }
.slide { flex: 0 0 100%; }
.slide h3 { font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 1rem; }
.slide h4 { font-family: var(--f-alt); font-size: 18px; font-weight: 500; color: var(--navy-2); margin-bottom: 1rem; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--navy); opacity: .2; cursor: pointer; }
.dots button.on { opacity: 1; }
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 6px; cursor: pointer; color: var(--navy); font-size: 24px; line-height: 0; }
.slide-btn.prev { left: 80px; }
.slide-btn.next { right: 80px; }
@media (max-width: 1200px) {
  .about-img { width: 41.66%; }
  .slider { margin: 60px 60px 40px; }
  .slide-btn { display: none; }
}
@media (max-width: 1199px) {
  .about-box { flex-direction: column; }
  .about-img, .about-slides { width: 100%; }
}
@media (max-width: 575px) { .slider { margin: 40px 24px 20px; } .about-img { min-height: 360px; } }

/* ---------- Unser Service ---------- */
.services .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 24px; }
.service { display: flex; }
.service .icon { font-size: 32px; margin-right: 20px; }
.service h3 { font-size: 18px; font-weight: 700; margin-bottom: 5px; }
.service p { font-size: 14px; line-height: 24px; margin: 0; }
@media (max-width: 767px) { .services .grid { grid-template-columns: 1fr; } }

/* ---------- Handlungsaufruf ---------- */
.cta { text-align: center; padding: 100px 0; background: linear-gradient(rgba(16, 17, 50, .8), rgba(16, 17, 50, .8)), url("../img/cta-bg.jpg") center / cover; }
@media (min-width: 1365px) { .cta { background-attachment: fixed; } }
.cta .inner { max-width: 570px; margin: 0 auto; }
.cta h2 { color: #fff; font-size: 28px; font-weight: 700; margin-bottom: 25px; }
.cta p { color: #fff; margin-bottom: 25px; }
.cta-btn { display: inline-block; font-weight: 500; font-size: 16px; letter-spacing: 1px; padding: 12px 40px; border-radius: 50px; margin: 10px; color: #fff; background: #04040b; transition: background .5s; }
.cta-btn:hover { color: #fff; background: var(--navy); }

/* ---------- Partner ---------- */
.partner { text-align: center; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; }
.logos a { width: 25%; padding: 0 12px; }
.logos img { height: 100px; max-width: 100%; padding: 15px 0; transition: transform .4s ease-in-out; }
.logos a:hover img { transform: scale(1.2); }
@media (max-width: 991px) { .logos a { width: 100%; } .logos img { height: auto; width: 40%; } }
@media (max-width: 550px) { .logos img { width: 60%; } }

/* ---------- Kontakt ---------- */
.contact { position: relative; background: url("../img/contact-bg.png") left top / contain no-repeat; }
.contact::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .7); }
.contact .wrap { position: relative; }
.contact-grid { display: flex; justify-content: flex-end; gap: 24px; }
.contact-info { width: 41.66%; }
.contact-cta { width: 50%; display: flex; flex-direction: column; justify-content: center; }
.info { display: flex; align-items: flex-start; }
.info + .info { margin-top: 40px; }
.info .bubble { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; margin-right: 15px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 20px; }
.info h3 { font-size: 20px; font-weight: 700; margin-bottom: 5px; color: #000; }
.info p { font-size: 14px; margin: 0; }
.info a { text-decoration: underline; text-underline-offset: 3px; }
.contact-cta p { font-size: 15px; }
.contact-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn-dark { display: inline-flex; align-items: center; gap: 10px; padding: 12px 28px; background: #000; color: #fff; font-weight: 600; font-size: 15px; }
.btn-dark:hover { background: var(--navy); color: #fff; }
@media (max-width: 991px) {
  .contact-grid { flex-direction: column; }
  .contact-info, .contact-cta { width: 100%; }
}
@media (max-width: 640px) { .contact { background-position: center 50px; } }

/* ---------- Rechtstexte ---------- */
.legal { padding: 130px 0 60px; }
.legal h1, .legal h2, .legal h3 { overflow-wrap: break-word; hyphens: auto; }
.legal h1 { font-size: 2.5rem; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid #ccc; }
.legal h2 { font-size: 1.75rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #ccc; }
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal h3 { font-size: 1.25rem; margin-top: 1.5rem; }
.legal .logo { max-width: 200px; margin: 8px 0 16px; display: block; }
.legal ul { padding-left: 1.2rem; }
.legal .plain { list-style: none; padding: 0; }
.legal address { font-style: normal; margin-bottom: 1rem; }
@media (max-width: 640px) { .legal h1 { font-size: 1.9rem; } .legal h2 { font-size: 1.4rem; } }
.legal .stand { margin-top: 2rem; color: #555; font-size: 14px; }

/* ---------- Fußzeile ---------- */
.footer { font-size: 14px; }
.footer-top { background: var(--lavender); padding: 60px 0 30px; }
.footer-top .wrap { display: grid; grid-template-columns: 5fr 2fr 2fr 3fr; gap: 24px; }
.footer-logo img { min-height: 150px; display: block; margin-bottom: 25px; }
.footer-top p { font-family: var(--f-head); font-size: 15px; color: var(--navy); margin: 0; }
.footer h4 { font-size: 16px; font-weight: 700; color: var(--navy-2); padding-bottom: 12px; margin: 0; }
.footer ul { list-style: none; padding: 0; margin: 0 0 30px; }
.footer li { display: flex; align-items: center; padding: 10px 0; }
.footer li:first-child { padding-top: 0; }
.footer li .icon { font-size: 16px; color: var(--navy); margin-right: 2px; }
.footer li a { color: var(--navy-3); line-height: 1; }
.footer li a:hover { color: var(--navy); }
.footer-contact p { font-family: var(--f-text); font-size: 14px; line-height: 26px; }
.footer-bottom { background: #fff; padding: 30px 0; text-align: center; color: var(--navy); }
@media (max-width: 991px) {
  .footer-top .wrap { grid-template-columns: 1fr 1fr; }
  .footer-info, .footer-contact { grid-column: 1 / -1; }
  .footer-contact { text-align: center; }
}

/* ---------- Nach-oben-Button ---------- */
.to-top { position: fixed; right: 15px; bottom: 15px; z-index: 99999; width: 40px; height: 40px; border-radius: 4px; display: flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; font-size: 24px; opacity: 0; visibility: hidden; transition: all .4s; }
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: rgba(16, 17, 50, .8); color: #fff; }

/* ---------- Ladeanzeige ---------- */
#preloader { position: fixed; inset: 0; z-index: 9999; background: #fff; transition: opacity .6s ease-out; }
#preloader::before { content: ""; position: fixed; top: calc(50% - 30px); left: calc(50% - 30px); width: 60px; height: 60px; border: 6px solid var(--navy); border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; }
#preloader.hide { opacity: 0; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Einblend-Animationen ---------- */
.js [data-anim] { opacity: 0; transition: opacity .8s ease, transform .8s ease; }
.js [data-anim="up"] { transform: translateY(100px); }
.js [data-anim="zoom"] { transform: scale(.6); }
.js [data-anim].in { opacity: 1; transform: none; }
@media (max-width: 768px) { .js [data-anim] { transition-delay: 0s !important; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-anim] { opacity: 1; transform: none; transition: none; }
  .slider-track { transition: none; }
}
