/* Institut für systemische Praxiskompetenz – Stylesheet
   Schriften werden lokal ausgeliefert (keine Verbindung zu Google, DSGVO-freundlich). */

@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-italic-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-800-latin.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #00b6e0;
  --accent-text: #007a99; /* dunkler, damit Text auf Weiß gut lesbar ist */
  --accent-soft: #b3e4ee;
  --text: #000;
  --muted: #605e5e;
  --bg: #fff;
  --tint: #fafafa;
  --font: "Nunito Sans", "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  --font-display: "Montserrat", "Arial Black", Arial, sans-serif;
  --container: 980px;
  --gutter: 24px;
  --header-h: 92px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }
a:hover { color: var(--accent-text); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; }

h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.3; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }

/* ---------- Header & Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}

.logo img { width: 266px; height: auto; }

.site-nav > ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li { position: relative; }

.site-nav a {
  display: block;
  padding: 10px 10px;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  color: var(--text);
  transition: color .4s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.site-nav li.is-active > a { color: var(--accent-text); }

.site-nav .sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.site-nav .has-sub:hover > .sub,
.site-nav .has-sub:focus-within > .sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.site-nav .sub a { padding: 8px 18px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border: 0;
  background: none;
  font: 400 15px var(--font);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform .25s ease, background-color .25s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Gemeinsame Bausteine ---------- */

.rule {
  display: block;
  width: 40px;
  height: 2px;
  margin-bottom: 26px;
  background: var(--text);
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  line-height: 1.25;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 20px;
  background: var(--accent);
  color: var(--text);
  font: 700 16px/1.2 var(--font);
  text-decoration: none;
  transition: background-color .4s ease, color .4s ease, box-shadow .4s ease;
}

.btn:hover {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.btn-plain {
  display: inline-block;
  padding: 8px 0;
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
  transition: color .4s ease;
}
.btn-plain:hover { color: var(--text); text-decoration: underline; }

/* ---------- Startseite ---------- */

.hero {
  padding: 56px 0 72px;
  text-align: center;
}

.hero-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
}

.hero-sub {
  margin: 14px 0 0;
  font-size: 25px;
  font-weight: 300;
}

.welcome { padding: 0 0 72px; }

.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
  gap: 16px 40px;
  align-items: start;
}

.welcome-text { padding-left: 10px; }

.welcome-title {
  margin-bottom: 26px;
  font-size: 40px;
}

.welcome-text .rt { max-width: 400px; }

.welcome-photo { margin-top: 74px; }

.signatures {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 34px 0 52px;
}
.signatures img:first-child { width: 189px; }
.signatures img:last-child { width: 173px; }
.signatures span { font-size: 26px; font-weight: 300; }

.services {
  padding: 0 0 56px;
  /* Ersatz für das frühere Wix-Stockfoto: ruhiger, heller Verlauf */
  background:
    radial-gradient(1200px 520px at 15% 20%, rgba(255, 255, 255, .9), transparent 60%),
    radial-gradient(900px 600px at 85% 75%, rgba(205, 220, 230, .55), transparent 65%),
    linear-gradient(160deg, #eef2f5 0%, #dfe6eb 50%, #eef1f4 100%);
}

.services { padding-top: 16px; }
.services .rule { margin-bottom: 30px; }

.services-head { padding: 0 10px; margin-bottom: 26px; }

.services-title { font-size: 30px; letter-spacing: .1em; }

.services-sub {
  margin: 4px 0 0;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -.01em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 40px 30px;
  background: rgba(255, 255, 255, .8);
  text-align: center;
}

.card h3 {
  max-width: 260px;
  margin-bottom: 18px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}

.card .rt { font-size: 16px; line-height: 1.5; }
.card .rt.small { font-size: 15px; }

.card .btn { margin-top: auto; }
.card .rt + .btn { margin-top: 26px; }

/* ---------- Unterseiten ---------- */

.page { padding: 44px 0 64px; }

.page--tinted { background: var(--tint); }

.page-head { text-align: center; margin-bottom: 48px; }

.tagline {
  max-width: 460px;
  margin: 0 auto 26px;
  font-size: 23px;
}

.page-title { font-size: 32px; }

.page-subtitle {
  max-width: 480px;
  margin: 26px auto 0;
  font-size: 19px;
}

.page-lead {
  margin: 22px auto 0;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.3;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 64px;
  max-width: 860px;
  margin: 0 auto;
}

.closing {
  margin-top: 46px;
  padding-left: 30px;
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  line-height: 2.2;
}
.page--tinted .closing { padding-left: 0; }

.cta { margin: 22px 0 0; padding-left: 30px; }
.page--tinted .cta { padding-left: 0; }

.narrow { max-width: 540px; margin: 0 auto; }
.medium { max-width: 760px; margin: 0 auto; }

.section-title {
  margin: 54px 0 22px;
  font-size: 24px;
  font-weight: 800;
}

.signature { margin: 30px 0 0; }

.links { margin-top: 24px; }
.links a { text-decoration: underline; }

/* Rich-Text aus dem Original */
.rt ul,
.rt ol { margin: 0 0 1em; padding-left: 24px; }
.rt ul:last-child,
.rt ol:last-child { margin-bottom: 0; }
.rt li { margin: 0; }
.rt ul.spaced > li + li { margin-top: 1em; }
.rt li ul { margin: 0; padding-left: 20px; list-style: circle; }
.rt a { text-decoration: underline; }

.rt.justify { text-align: justify; hyphens: auto; }

.rt h2 { margin: 2.4em 0 .6em; font-size: 16px; }
.rt h3 { margin: 1.8em 0 .3em; }
.rt h4 { margin: 1.2em 0 .2em; }
.rt h3,
.rt h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.rt h2:first-child,
.rt h3:first-child { margin-top: 0; }

.legal .rt { font-size: 16px; overflow-wrap: anywhere; }
.legal .rt h2 {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.legal-band {
  height: 40px;
  background: linear-gradient(90deg, var(--accent-soft), #c9ecf2 60%, var(--accent-soft));
}

.legal .page-head { text-align: left; margin-bottom: 18px; }
.legal-title { font-size: 20px; }

.team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 233px));
  justify-content: center;
  gap: 40px 100px;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.team-member img { width: 233px; aspect-ratio: 1; object-fit: cover; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 30px 0 46px;
  background: var(--accent);
  color: var(--text);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 40px;
  align-items: end;
}

.footer-contact { padding-left: 10px; }

.footer-title {
  margin-bottom: 22px;
  font-size: 16px;
  letter-spacing: .24em;
}

.footer-contact p { font-size: 17px; font-weight: 400; line-height: 1.4; }
.footer-contact p.footer-name { font-weight: 700; margin-bottom: 1.1em; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { color: var(--text); text-decoration: underline; }

.footer-meta { display: flex; flex-direction: column; gap: 30px; }

.copyright { margin: 0; font-size: 14px; letter-spacing: .04em; }

/* ---------- Responsiv ---------- */

@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .logo img { width: 200px; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
  }
  .site-nav.is-open { display: block; }

  .site-nav > ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .site-nav a { padding: 12px 0; font-size: 17px; }

  .site-nav .sub {
    position: static;
    min-width: 0;
    padding: 0 0 6px 16px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .site-nav .sub a { padding: 8px 0; font-size: 16px; }

  .welcome-grid { grid-template-columns: 1fr; }
  .welcome-text { padding-left: 0; }
  .welcome-text .rt { max-width: none; }
  .welcome-photo { margin-top: 0; }

  .cards { grid-template-columns: 1fr; }

  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .closing { padding-left: 0; margin-top: 28px; }
  .cta { padding-left: 0; }

  .footer-inner { grid-template-columns: 1fr; align-items: start; }
  .footer-contact { padding-left: 0; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }

  .hero { padding: 36px 0 48px; }
  .hero-title { font-size: 27px; }
  .hero-sub { font-size: 19px; }

  .welcome-title { font-size: 30px; }
  .signatures { gap: 16px; margin: 28px 0 36px; }
  .signatures img:first-child { width: 140px; }
  .signatures img:last-child { width: 128px; }

  .services-title { font-size: 21px; }
  .services-sub { font-size: 20px; }
  .services-head { padding: 0; }
  .card { padding: 26px 20px; }

  .page { padding: 32px 0 48px; }
  .tagline { font-size: 17px; }
  .page-title { font-size: 25px; overflow-wrap: anywhere; hyphens: auto; }
  .page-subtitle { font-size: 15px; }
  .page-lead { font-size: 17px; }

  .team { grid-template-columns: minmax(0, 233px); gap: 40px; }

  .rt.justify { text-align: left; }
}

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