/* =========================================================
   rene jaun – Stylesheet
   Nachbau des bisherigen Designs (Farben, Schrift, Abstände)
   ========================================================= */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-700-latin.woff2") format("woff2"); }

:root {
    --dark: #163742;
    --accent: #f3edec;
    --light: #ffffff;
    --red: #953734;
    --text: rgba(22, 55, 66, .875);
    --text-soft: rgba(22, 55, 66, .75);
    --container: 1300px;
    --gutter: 5%;
    --row-pad: 80px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Barlow", sans-serif;
    font-size: 18px;
    line-height: 1.85;
    color: var(--text);
    background: var(--light);
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 400;
    color: var(--dark);
}
h1 { font-size: 59.4px; line-height: 1.1; }
h2 { font-size: 45.7px; line-height: 1.15; }
h3 { font-size: 35.15px; line-height: 1.2; }
h4 { font-size: 27.04px; line-height: 1.3; }

p { margin: 0; }
b, strong { font-weight: 700; }

a { color: var(--text-soft); }
a:hover { color: var(--dark); }

ul { margin: 18px 0; padding: 0 0 0 16px; }

/* Schriftgrössen aus dem bisherigen Editor */
.wysiwyg-font-size-14 { font-size: 14px; }
.wysiwyg-font-size-16 { font-size: 16px; }
.wysiwyg-font-size-18 { font-size: 18px; }
.wysiwyg-font-size-20 { font-size: 20px; }
.wysiwyg-font-size-24 { font-size: 24px; line-height: 1.5; }
.wysiwyg-font-size-28 { font-size: 28px; line-height: 1.4; }
.wysiwyg-font-size-30 { font-size: 30px; line-height: 1.3; }
.wysiwyg-font-size-48 { font-size: 48px; line-height: 1; }
.wysiwyg-font-size-72 { font-size: 72px; line-height: 1.1; }

/* ---------- Layout-Grundlagen ---------- */
.container {
    width: calc(100% - 2 * var(--gutter));
    max-width: var(--container);
    margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header { background: var(--dark); color: #fff; position: relative; z-index: 10; }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 25px 0;
}
.brand {
    color: #fff;
    text-decoration: none;
    font-size: 32px;
    line-height: 1.1;
    white-space: nowrap;
}
.brand:hover { color: #fff; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a {
    display: block;
    padding: 8px 12px;
    font-size: 17px;
    line-height: 1;
    color: #fff;
    text-decoration: none;
    transition: opacity .2s;
}
.main-nav a:hover { color: #fff; opacity: .7; }
.main-nav .active a { color: #fff; }

.nav-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    background: none;
    border: 0;
    color: #fff;
    font: inherit;
    font-size: 17px;
    cursor: pointer;
    padding: 8px 0;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    position: relative;
    transition: transform .2s, background .2s;
}
.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-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Reihen (Sections) ---------- */
.row { position: relative; padding: var(--row-pad) 0; }
.row.style-light  { background: var(--light); }
.row.style-accent { background: var(--accent); }
.row.style-dark   { background: var(--dark); color: rgba(255, 255, 255, .875); }
.row.style-dark h1, .row.style-dark h2, .row.style-dark h3, .row.style-dark h4 { color: #fff; }
.row.style-dark a { color: rgba(255, 255, 255, .875); }

/* Aufeinanderfolgende Reihen gleicher Farbe: kein doppelter Abstand */
.row.h-default.style-accent + .row.h-default.style-accent,
.row.h-default.style-light + .row.h-default.style-light { padding-top: 0; }

.row.h-thin { padding: 25px 0; }
.row.h-no-padding { padding: 0; }
.row.h-large { padding: var(--row-pad) 0; min-height: 700px; display: flex; flex-direction: column; justify-content: center; }
.row.h-large > .container { width: calc(100% - 2 * var(--gutter)); }

/* Hero mit Hintergrundbild */
.row.has-bg {
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    color: #fff;
}
.row.has-bg .overlay { position: absolute; inset: 0; background: #000; pointer-events: none; }
.row.has-bg > .container { position: relative; z-index: 1; }
.row.has-bg .cg-body, .row.has-bg h1 { color: #fff; }
.row.has-bg .cg-body { margin-top: 12px; }
.layout-hero-1a h1 { text-transform: none; }

/* ---------- Content-Gruppen ---------- */
.cg { color: var(--text); }
.cg.text-center { text-align: center; }
.cg.text-right { text-align: right; }
.cg-heading + .cg-body { margin-top: 12px; }
.cg-image + .cg-text { margin-top: 24px; }
.cg-body ul { text-align: left; }

/* Bilder */
.img { margin: 0; }
.img.align-center img { margin-left: auto; margin-right: auto; }
.img.align-right img { margin-left: auto; }
.img.w-original img { width: auto; }
.img.w-50 img { width: 50%; aspect-ratio: 1 / 1; object-fit: cover; }
.img a { display: block; }
.img a.lightbox { cursor: zoom-in; }

/* Zwei Spalten */
.cols { display: flex; gap: 47px; align-items: flex-start; }
.cols > .col { flex: 1 1 0; min-width: 0; }
.v-center .cols { align-items: center; }
.cols > .col > * + * { margin-top: 24px; }
.layout-reverse .cols { flex-direction: row-reverse; }

/* Bild/Text-Karten (Startseite): 50/50 volle Breite */
.w-no-padding > .container { width: 100%; max-width: none; }
.cg-inline { display: flex; align-items: stretch; min-height: 500px; }
.cg-inline .cg-image, .cg-inline .cg-text { flex: 0 0 50%; max-width: 50%; }
.cg-inline .cg-image .img, .cg-inline .cg-image a { height: 100%; }
.cg-inline .cg-image img { width: 100%; height: 100%; object-fit: cover; }
.cg-inline .cg-text {
    margin: 0;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.layout-image-text-5b .cg-inline { flex-direction: row-reverse; }
.h-large .cg-inline { min-height: 700px; }
.row.h-large.w-no-padding { padding: 0; }
.cg-inline .cg-body { color: var(--text-soft); }

/* Startseite: Bilder in den Karten (PNG-Grafiken nicht beschneiden) */
.cg-inline .cg-image img[src$=".png"] { object-fit: cover; }

/* Über mich: grosses Bild rechts, weisse Karte überlappend links */
.layout-overlap .container { position: relative; }
.layout-overlap .cg { display: flex; align-items: center; justify-content: flex-end; position: relative; min-height: 709px; }
.layout-overlap .cg-image { width: 58.3%; flex: 0 0 auto; }
.layout-overlap .cg-image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.layout-overlap .cg-text {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    margin: 0;
    background: #fff;
    padding: 48px 56px;
}

/* Mediation-Kopf: quadratisches Bild */
.layout-image-text-12a .col:first-child img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* SPF: Bilder neben Text */
.layout-image-text-1a .img img, .layout-reverse .cols .img img { width: 100%; }

/* Coaching: Bilder über den Spalten */
.layout-text-4a .img img { width: 50%; }

/* Text-Reihen mit Innenabstand (Über mich) */
.layout-text-1b .cg-text { padding: 60px; }

/* ---------- Buttons ---------- */
.btn-wrap.align-center { text-align: center; }
.btn-wrap.align-right { text-align: right; }
.cg + .btn-wrap, .cols + .btn-wrap { margin-top: 24px; }
.btn {
    display: inline-block;
    background: #fff;
    color: var(--dark);
    border: 0;
    border-radius: 0;
    padding: 20px 35px;
    font: 600 14px/1 "Barlow", sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.btn:hover { background: var(--dark); color: #fff; }
.style-light .btn { background: var(--accent); }
.style-light .btn:hover { background: var(--dark); color: #fff; }
.style-dark .btn:hover { background: var(--accent); color: var(--dark); }

.spacer { height: 30px; }

/* ---------- Kontakt ---------- */
.map iframe { display: block; width: 100%; height: 420px; border: 0; }
.contactform label { display: block; font-size: 14px; line-height: 1.4; margin-bottom: 6px; color: #fff; }
.contactform .form-group { margin-bottom: 20px; }
.contactform input[type="email"], .contactform input[type="text"], .contactform textarea {
    width: 100%;
    padding: 10px 14px;
    font: 16px/1.5 "Barlow", sans-serif;
    color: var(--dark);
    background: #fff;
    border: 1px solid rgba(22, 55, 66, .25);
    border-radius: 0;
}
.contactform textarea { min-height: 150px; resize: vertical; }
.contactform input:focus, .contactform textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.contactform [aria-invalid="true"] { border-color: #e57373; }
.form-error { display: block; color: #ffb4b4; font-size: 14px; margin-top: 4px; }
.form-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 14px 18px; margin-bottom: 20px; font-size: 16px; line-height: 1.5; }
.form-msg--ok { background: #e3f1e6; color: #1d4d2a; }
.form-msg--error { background: #fbe4e4; color: #7a1d1d; }
.form-msg a { color: inherit; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .875); }
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding: 25px 0;
    font-size: 16px;
}
.site-footer a { color: rgba(255, 255, 255, .875); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, .9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4vh 4vw;
    cursor: zoom-out;
}
.lightbox-overlay[hidden] { display: none; }
.lightbox-overlay img { max-width: 100%; max-height: 92vh; width: auto; }
.lightbox-close {
    position: absolute;
    top: 12px;
    right: 18px;
    background: none;
    border: 0;
    color: #fff;
    font-size: 44px;
    line-height: 1;
    cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .nav-toggle { display: inline-flex; }
    .header-inner { flex-wrap: wrap; }
    .main-nav { flex-basis: 100%; display: none; }
    .nav-open .main-nav { display: block; }
    .main-nav ul { flex-direction: column; padding: 12px 0 4px; }
    .main-nav a { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
}

@media (max-width: 1024px) {
    :root { --row-pad: 60px; }
    h1 { font-size: 46px; }
    h2 { font-size: 38px; }
    h3 { font-size: 30px; }
    h4 { font-size: 24px; }
    .wysiwyg-font-size-48 { font-size: 40px; }
    .wysiwyg-font-size-72 { font-size: 56px; }
    .cg-inline .cg-text { padding: 40px; }
    .layout-overlap .cg { flex-direction: column; min-height: 0; }
    .layout-overlap .cg-image { width: 100%; }
    .layout-overlap .cg-text { position: relative; top: auto; transform: none; width: 90%; margin: -80px auto 0; }
}

@media (max-width: 767px) {
    :root { --row-pad: 48px; }
    body { font-size: 17px; }
    .brand { font-size: 26px; }
    h1 { font-size: 36px; }
    h2 { font-size: 30px; }
    h3 { font-size: 26px; }
    h4 { font-size: 22px; }
    .wysiwyg-font-size-28, .wysiwyg-font-size-30 { font-size: 23px; }
    .wysiwyg-font-size-24 { font-size: 21px; }
    .wysiwyg-font-size-48 { font-size: 32px; }
    .wysiwyg-font-size-72 { font-size: 40px; }
    .cols, .layout-reverse .cols { flex-direction: column; gap: 32px; }
    .cols > .col { width: 100%; flex: none; }
    .cg-inline, .layout-image-text-5b .cg-inline { flex-direction: column; min-height: 0; }
    .h-large .cg-inline { min-height: 0; }
    .cg-inline .cg-image, .cg-inline .cg-text { flex: none; max-width: 100%; width: 100%; }
    .cg-inline .cg-image .img, .cg-inline .cg-image a { height: auto; }
    .cg-inline .cg-image img { height: auto; aspect-ratio: 4 / 3; }
    .row.h-large.w-no-padding { min-height: 0; display: block; }
    .cg-inline .cg-text { padding: 40px var(--gutter) 48px; }
    .row.h-large { min-height: 480px; }
    .layout-text-1b .cg-text { padding: 0; }
    .layout-overlap .cg-text { width: 100%; margin-top: 0; padding: 32px 24px; }
    .layout-text-4a .img img, .img.w-50 img { width: 100%; }
    .map iframe { height: 320px; }
    .btn { padding: 18px 26px; letter-spacing: 1.5px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .cg-body [style*="text-align: justify"] { text-align: left !important; }
}
