/* Montserrat lokal: Die vier WOFF2-Dateien im Ordner fonts/ ergänzen. */
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-Regular.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-Medium.woff2") format("woff2"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-SemiBold.woff2") format("woff2"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-Bold.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }

:root {
  --navy: #071c43;
  --blue: #0f69bd;
  --blue-dark: #0759a7;
  --text: #22252b;
  --muted: #61656d;
  --line: #e5e8ed;
  --soft: #f5f7fa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.55;
}
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.site-header {
  background: #fff;
  position: relative;
  z-index: 10;
}
.logo-wrap {
  display: flex;
  justify-content: center;
  padding: 18px 20px 9px;
}
.logo {
  width: auto;
  height: auto;
}
.main-nav {
  height: 74px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 54px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f2f4;
}
.main-nav a {
  position: relative;
  padding: 10px 7px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.main-nav a:hover::after,
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--blue);
}
.menu-toggle { display: none; }

.hero {
  min-height: 465px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f8f9fb;
}
.hero-content {
  padding: 96px 52px 72px max(7.7vw, 60px);
  background: linear-gradient(90deg,#fbfbfc 0%,#f8f9fb 85%,rgba(248,249,251,.2) 100%);
}
.hero h1 {
  margin: 0 0 22px;
  color: var(--navy);
  font-size: clamp(38px, 5.15vw, 74px);
  line-height: .98;
  letter-spacing: .075em;
  text-transform: uppercase;
  font-weight: 600;
}
.hero h1 span { color: var(--blue); }
.hero p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: #4d525a;
}
.small-line {
  width: 42px;
  height: 2px;
  background: var(--blue);
  margin: 31px 0 31px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-width: 195px;
  padding: 15px 20px;
  color: #fff;
  background: linear-gradient(90deg,var(--blue-dark),var(--blue));
  border-radius: 2px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .06em;
  font-weight: 600;
  box-shadow: 0 5px 12px rgba(6,74,138,.15);
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(6,74,138,.22); }
.button span { font-size: 22px; font-weight: 300; line-height: 1; }
.hero-image {
  background-image: linear-gradient(90deg,rgba(248,249,251,.25),rgba(255,255,255,0) 20%), url('assets/hero.jpg');
  background-size: cover;
  background-position: center;
}

.section { padding: 36px 7vw 44px; }
.section-intro { text-align: center; }
.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.eyebrow-line {
  width: 23px;
  height: 2px;
  background: var(--blue);
  margin: 11px auto 20px;
}
.section-intro h2 {
  margin: 0 0 7px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.02em;
}
.section-intro > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.service-grid {
  max-width: 1160px;
  margin: 39px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.service-card {
  text-align: center;
  min-height: 225px;
  padding: 0 31px;
  border-left: 1px solid var(--line);
}
.service-card:first-child { border-left: none; }
.icon-wrap {
  height: 71px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 7px;
}
.icon-wrap svg,
.mail-icon svg {
  width: 55px;
  height: 55px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3 {
  margin: 8px 0 17px;
  font-size: 16px;
  font-weight: 500;
}
.service-card p {
  margin: 0;
  color: #555a62;
  font-size: 12.5px;
  line-height: 1.68;
}

.why {
  background: linear-gradient(180deg,#f5f7fa,#f9fafb);
  padding: 31px 20px 30px;
}
.section-intro.compact h2 { font-size: 28px; }
.section-intro.compact > p:last-child { font-size: 13px; }

.contact-strip {
  background: #fff;
  padding: 28px 7vw;
}
.contact-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 24px;
}
.mail-icon svg { width: 48px; height: 48px; }
.contact-copy h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 500;
}
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.contact-button { min-width: 228px; }

.footer {
  min-height: 72px;
  padding: 0 8vw;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  font-size: 11px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.footer a:hover { color: #7dbdf0; }
.divider { margin: 0 11px; opacity: .65; }

@media (max-width: 900px) {
  .logo-wrap { justify-content: flex-start; padding: 12px 18px; }
  .logo { width: 195px; }
  .menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 28px;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-size: 24px;
    cursor: pointer;
  }
  .main-nav {
    display: none;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 16px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 4px; }
  .main-nav a::after { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-content { padding: 60px 8vw 55px; }
  .hero-image { min-height: 330px; order: -1; }
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .service-card:nth-child(3) { border-left: none; }
  .contact-inner { grid-template-columns: 50px 1fr; }
  .contact-button { grid-column: 2; justify-self: start; }
}

@media (max-width: 580px) {
  .hero-image { min-height: 260px; }
  .hero h1 { font-size: 44px; }
  .hero p { font-size: 15px; }
  .section { padding-left: 22px; padding-right: 22px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card,
  .service-card:nth-child(3) {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 26px 8px 0;
  }
  .service-card:first-child { border-top: none; padding-top: 0; }
  .section-intro h2,
  .section-intro.compact h2 { font-size: 24px; }
  .section-intro br { display: none; }
  .contact-inner { grid-template-columns: 1fr; text-align: center; }
  .mail-icon { display: flex; justify-content: center; }
  .contact-button { grid-column: 1; justify-self: center; margin-top: 8px; }
  .footer { flex-direction: column; justify-content: center; text-align: center; padding: 20px; }
}


/* Separate content pages */
.subpage-main { background: #fff; min-height: 560px; }
.page-hero { background: linear-gradient(180deg,#f5f7fa,#fbfcfd); padding: 58px 7vw 50px; text-align: center; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 0 0 10px; color: var(--navy); font-size: clamp(34px,4vw,54px); line-height: 1.05; letter-spacing: .04em; font-weight: 600; text-transform: uppercase; }
.page-hero h1 span { color: var(--blue); }
.page-hero p { max-width: 760px; margin: 0 auto; color: var(--muted); font-size: 14px; }
.page-content { max-width: 940px; margin: 0 auto; padding: 54px 7vw 70px; }
.page-content h2 { color: var(--navy); margin: 0 0 14px; font-size: 24px; font-weight: 500; }
.page-content h3 { color: var(--navy); margin: 32px 0 10px; font-size: 17px; font-weight: 600; }
.page-content p { color: #555a62; font-size: 14px; line-height: 1.75; margin: 0 0 18px; }
.page-content a { color: var(--blue); }
.contact-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; }
.contact-box { border-left: 2px solid var(--blue); padding: 4px 0 4px 24px; }
.contact-box p { margin-bottom: 8px; }
.legal-content { max-width: 940px; }
@media (max-width: 700px) { .page-hero { padding: 44px 22px 38px; } .page-content { padding: 40px 22px 55px; } .contact-page-grid { grid-template-columns: 1fr; gap: 30px; } }

/* Contact page button text stays white */
.page-content a.button, .page-content a.button:visited { color: #fff; }

/* Über mich – Ergänzung im bestehenden SystemFlow-Design */
.about-page { max-width: 1120px; }
.about-intro { display:grid; grid-template-columns: 330px minmax(0,1fr); gap: 55px; align-items:start; }
.about-photo { background:var(--soft); border:1px solid var(--line); }
.about-photo img { width:100%; aspect-ratio:1/1; object-fit:cover; }
.about-photo-caption { padding:20px 22px; display:flex; flex-direction:column; gap:4px; }
.about-photo-caption strong { color:var(--navy); font-size:16px; font-weight:600; }
.about-photo-caption span { color:var(--muted); font-size:12px; }
.about-copy .about-kicker { color:var(--blue); text-transform:uppercase; font-size:11px; font-weight:700; letter-spacing:.13em; margin:0 0 12px; }
.about-copy h2 { font-size:clamp(23px,2.5vw,32px); line-height:1.3; margin-bottom:24px; }
.about-separator { border-top:1px solid var(--line); margin:52px 0 14px; }
.about-details { display:grid; grid-template-columns:1fr 1fr; gap:54px; }
.about-cta { margin-top:34px; padding:28px 32px; background:var(--soft); display:flex; align-items:center; justify-content:space-between; gap:24px; }
.about-cta strong { color:var(--navy); font-size:17px; font-weight:600; }
.about-cta p { margin:7px 0 0; }
.about-cta .button { flex-shrink:0; color:#fff; }
@media(max-width:760px){ .about-intro { grid-template-columns:1fr; gap:28px; } .about-photo { max-width:360px; } .about-details { grid-template-columns:1fr; gap:8px; } .about-cta { flex-direction:column; align-items:flex-start; padding:24px; } }


/* Bildfreies Logo: ausschließlich HTML-Text und CSS, auf allen Seiten identisch. */
.logo-text {
  width: min(443px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--navy);
  line-height: 1;
  white-space: nowrap;
}
.logo-arrows {
  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.095em;
  color: #2658e7;
  line-height: 1.2;
  margin-bottom: 11px;
}
.logo-name {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(17px, 4.5vw, 30px);
  font-weight: 500;
  letter-spacing: .18em;
  margin-right: -.18em;
}
.logo-subtitle {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 91%;
  margin-top: 13px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .46em;
  padding-left: .46em;
}
.logo-subtitle::before,
.logo-subtitle::after {
  content: "";
  height: 1px;
  flex: 1;
  background: currentColor;
}
@media (max-width: 900px) {
  .logo-text { width: min(320px, calc(100vw - 90px)); }
  .logo-arrows { font-size: 26px; margin-bottom: 8px; }
  .logo-name { font-size: clamp(15px, 3.8vw, 22px); }
  .logo-subtitle { font-size: 10px; gap: 10px; margin-top: 10px; }
}
