:root {
  --ink: #172223;
  --ink-soft: #506061;
  --paper: #f7f5ef;
  --white: #ffffff;
  --forest: #102c2f;
  --forest-2: #173c3f;
  --teal: #276f70;
  --teal-light: #d8e9e5;
  --sand: #e9e2d5;
  --line: rgba(23,34,35,.14);
  --accent: #1d5fa7;
  --accent-dark: #174a7e;
  --accent-light: #8ccbff;
  --accent-link-dark: #a8d8ff;
  --status-blue: #24486f;
  --status-blue-soft: #eaf2fa;
  --shadow: 0 24px 70px rgba(16,44,47,.12);
  --radius: 24px;
  --container: min(1180px, calc(100% - 40px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.container { width: var(--container); margin-inline: auto; }
.section { padding: clamp(76px, 9vw, 132px) 0; }
.section-dark { color: var(--white); background: var(--forest); }
.section-soft { background: #eeece5; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 9999; background: var(--white); color: var(--forest); padding: 10px 14px; transform: translateY(-160%); border-radius: 8px; font-weight: 800; }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; box-shadow: 0 0 0 6px var(--accent-light); }
h1,h2,h3,h4 { margin: 0 0 .65em; font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(3rem, 6vw, 6.2rem); }
h2 { font-size: clamp(2.25rem, 4vw, 4.3rem); }
h3 { font-size: clamp(1.45rem, 2vw, 2rem); }
p { margin: 0 0 1em; }
.prose > :last-child { margin-bottom: 0; }
.prose p { color: var(--ink-soft); }
.section-dark .prose p { color: rgba(255,255,255,.77); }
.prose-large { font-size: clamp(1.08rem, 1.6vw, 1.32rem); }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: .77rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.section-dark .eyebrow { color: var(--accent-light); }
.lead { max-width: 760px; font-size: clamp(1.2rem, 2vw, 1.55rem); color: rgba(255,255,255,.78); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 13px 21px; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-size: .94rem; font-weight: 800; transition: transform .2s ease, background .2s ease, border-color .2s ease; cursor: pointer; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--accent); }
.button-primary:hover { background: var(--accent-dark); }
.button-ghost { color: #fff; border-color: rgba(255,255,255,.28); background: transparent; }
.button-ghost:hover { border-color: #fff; }
.button-light { color: var(--forest); background: #fff; }
.text-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--forest); font-weight: 800; text-decoration: none; }
.text-link:hover { color: var(--accent); }

.site-header { position: sticky; top: 0; z-index: 500; color: var(--white); background: rgba(16,44,47,.94); border-bottom: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(14px); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { width: 150px; height: 66px; display: flex; align-items: center; overflow: hidden; text-decoration: none; }
.brand-logo { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { position: relative; color: rgba(255,255,255,.8); font-size: .92rem; font-weight: 750; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; }
.main-nav a[aria-current="page"]:after { content: ""; position: absolute; left: 0; right: 0; bottom: -13px; height: 2px; background: var(--accent); }
.main-nav .nav-cta { padding: 10px 18px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; }
.main-nav .nav-cta:after { display: none; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: #fff; background: transparent; }
.menu-toggle span:not(.sr-only) { display: block; width: 19px; height: 2px; margin: 4px auto; background: currentColor; transition: .2s ease; }

.hero { position: relative; overflow: hidden; padding: clamp(75px, 9vw, 130px) 0 clamp(90px, 11vw, 155px); }
.hero:before { content: ""; position: absolute; width: 640px; height: 640px; right: -290px; top: -330px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 120px rgba(255,255,255,.018), 0 0 0 240px rgba(255,255,255,.012); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0,1.12fr) minmax(380px,.88fr); gap: clamp(48px,8vw,110px); align-items: center; }
.hero-title { max-width: 890px; }
.hero-intro { max-width: 690px; font-size: clamp(1.05rem,1.5vw,1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 34px 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.68); font-size: .83rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.hero-trust li:before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--accent-light); }
.hero-media { position: relative; min-height: 600px; }
.hero-image-wrap { position: absolute; inset: 0 0 55px 35px; overflow: hidden; border-radius: 220px 220px 28px 28px; background: var(--forest-2); box-shadow: 0 32px 90px rgba(0,0,0,.2); }
.hero-image { width: 100%; height: 100%; object-fit: cover; filter: contrast(.93) grayscale(.15); }
.hero-image-wrap:after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,44,47,.52), transparent 46%); pointer-events: none; }
.hero-number { position: absolute; left: 30px; bottom: 28px; z-index: 1; font: 500 clamp(3.4rem,6vw,5.8rem)/.8 Georgia,serif; }
.hero-number-label { position: absolute; left: 32px; bottom: 82px; z-index: 1; color: rgba(255,255,255,.8); font-size: .72rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; transform: translateY(100%); }
.hero-card { position: absolute; left: 0; right: 65px; bottom: 0; z-index: 2; padding: 22px 24px; color: var(--forest); background: var(--sand); border-radius: 18px; box-shadow: var(--shadow); }
.hero-card .mini-label { display: block; margin-bottom: 5px; color: var(--accent-dark); font-size: .7rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.hero-card strong { font-family: Georgia, serif; font-size: 1.12rem; font-weight: 500; }

.section-heading { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: end; margin-bottom: 54px; }
.section-heading h2 { max-width: 760px; }
.section-intro { max-width: 500px; }
.service-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.service-card { min-height: 430px; display: flex; flex-direction: column; padding: 28px; background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 18px; transition: transform .25s ease, background .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-7px); background: #fff; box-shadow: var(--shadow); }
.service-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 55px; color: var(--teal); font-size: .78rem; font-weight: 850; }
.service-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-light); font-size: 1.35rem; }
.service-card .prose { font-size: .94rem; }
.service-card a { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 26px; color: var(--forest); font-size: .85rem; font-weight: 850; text-decoration: none; }

.focus-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(45px,8vw,105px); align-items: center; }
.focus-gallery { min-height: 590px; display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.image-tile { overflow: hidden; border-radius: 18px; background: #ddd; box-shadow: var(--shadow); }
.image-tile-large { grid-row: 1 / span 2; border-radius: 180px 18px 18px 18px; }
.cover-image { width: 100%; height: 100%; object-fit: cover; }
.focus-copy h2 { max-width: 570px; }
.check-list { display: grid; gap: 10px; margin-top: 30px; }
.check-list span { position: relative; padding: 13px 15px 13px 45px; border-bottom: 1px solid var(--line); font-weight: 750; }
.check-list span:before { content: "✓"; position: absolute; left: 12px; color: var(--accent); font-weight: 900; }

.credentials-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(45px,8vw,110px); align-items: center; }
.credentials-copy h2 { max-width: 700px; }
.credential-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 40px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.credential-lines div { padding: 20px; background: var(--paper); }
.credential-lines strong, .credential-lines span { display: block; }
.credential-lines strong { color: var(--forest); }
.credential-lines span { color: var(--ink-soft); font-size: .86rem; }
.credential-visual { position: relative; min-height: 520px; }
.badge-card { position: absolute; display: grid; place-items: center; text-align: center; padding: 24px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); }
.badge-card:first-child { width: 230px; left: 0; top: 0; z-index: 2; }
.badge-card:first-child span { font-weight: 800; }
.badge-image { width: 150px; height: 150px; object-fit: contain; }
.bafa-badge { width: 210px; right: 0; top: 85px; z-index: 3; background: var(--accent); color: #fff; }
.bafa-badge strong { font: 500 2.6rem Georgia,serif; }
.bafa-badge span { font-size: .85rem; font-weight: 800; }
.safety-image { position: absolute; left: 70px; right: 20px; bottom: 0; height: 310px; overflow: hidden; border-radius: 18px 160px 18px 18px; }

.cta-section { padding-top: 0; }
.cta-box { display: flex; justify-content: space-between; align-items: center; gap: 50px; padding: clamp(40px,6vw,75px); color: #fff; background: var(--accent); border-radius: var(--radius); }
.cta-box h2 { max-width: 800px; font-size: clamp(2.2rem,4vw,4rem); }
.cta-box .prose p { color: rgba(255,255,255,.8); }
.cta-box .button { flex: 0 0 auto; }

.page-hero { padding: clamp(75px,9vw,125px) 0; overflow: hidden; }
.page-hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(45px,8vw,110px); align-items: center; }
.page-hero-grid h1 { font-size: clamp(3.2rem,5vw,5.6rem); }
.page-hero-image { height: 480px; overflow: hidden; border-radius: 180px 22px 22px 22px; box-shadow: 0 28px 80px rgba(0,0,0,.2); }
.service-detail-list { display: grid; }
.service-detail { display: grid; grid-template-columns: 110px 1fr; gap: 40px; padding: 55px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.service-detail:first-child { padding-top: 0; }
.service-detail:last-child { border-bottom: 0; padding-bottom: 0; }
.service-detail-icon { width: 78px; height: 78px; display: grid; place-items: center; color: var(--teal); background: var(--teal-light); border-radius: 50%; font-size: 1.8rem; }
.service-detail .prose { max-width: 830px; }
.list-layout, .education-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(50px,9vw,120px); align-items: start; }
.sticky-heading { position: sticky; top: 130px; }
.sticky-heading h2 { font-size: clamp(2.2rem,3.4vw,3.6rem); }
.feature-list { margin: 0; padding: 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; padding: 20px 0; border-bottom: 1px solid rgba(23,34,35,.17); font-size: 1.06rem; font-weight: 680; }
.feature-list li span { color: var(--accent); padding-top: 4px; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(45px,8vw,100px); align-items: center; }
.split-image { height: 500px; overflow: hidden; border-radius: 22px 180px 22px 22px; }
.split-copy p { max-width: 620px; color: var(--ink-soft); font-size: 1.1rem; }
.split-copy .button { margin-top: 20px; }

.about-layout { display: grid; grid-template-columns: .55fr 1.45fr; gap: clamp(45px,8vw,110px); }
.about-aside { display: grid; gap: 14px; align-content: start; }
.stat { padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.55); }
.stat strong, .stat span { display: block; }
.stat strong { color: var(--accent); font: 500 2.7rem Georgia,serif; }
.stat span { color: var(--ink-soft); font-size: .85rem; font-weight: 700; }
.about-bio { font-size: clamp(1.08rem,1.6vw,1.32rem); columns: 2; column-gap: 50px; }
.about-bio p { break-inside: avoid; }
.education-image { height: 310px; margin-top: 30px; overflow: hidden; border-radius: 140px 16px 16px 16px; }
.timeline { position: relative; }
.timeline:before { content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 1px; background: rgba(23,34,35,.2); }
.timeline-item { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 25px; padding: 0 0 28px; }
.timeline-item > span { position: relative; z-index: 1; width: 17px; height: 17px; margin-top: 5px; border: 4px solid #eeece5; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.timeline-item p, .timeline-item strong { margin: 0; }
.timeline-degree { font-size: 1.08rem; }
.timeline-degree > span { background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.authorization-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.authorization-card { position: relative; min-height: 320px; padding: clamp(32px,5vw,60px); overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.authorization-card h2 { max-width: 500px; font-size: clamp(2rem,3vw,3.25rem); }
.auth-mark { display: inline-block; margin-bottom: 40px; color: var(--accent); font-size: .82rem; font-weight: 900; letter-spacing: .18em; }
.auth-image { width: 120px; height: 120px; object-fit: contain; margin-bottom: 20px; }

.contact-quick { display: grid; gap: 12px; }
.contact-quick > * { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; padding: 18px; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(255,255,255,.06); }
.contact-quick svg { width: 27px; height: 27px; color: var(--accent-light); }
.contact-quick span { display: block; font-weight: 800; }
.contact-quick small { display: block; color: rgba(255,255,255,.58); font-size: .7rem; text-transform: uppercase; letter-spacing: .13em; }
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(45px,8vw,100px); align-items: start; }
.contact-form-wrap { padding: clamp(28px,4vw,50px); background: #fff; border-radius: 20px; box-shadow: var(--shadow); }
.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label:not(.checkbox) { display: grid; gap: 7px; color: var(--forest); font-size: .82rem; font-weight: 800; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid #c8cfcc; border-radius: 10px; padding: 13px 14px; color: var(--ink); background: #fafafa; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(39,111,112,.14); outline: none; }
.checkbox { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--ink-soft); font-size: .84rem; }
.checkbox input { width: 18px; height: 18px; margin-top: 4px; }
.honeypot { position: absolute; left: -9999px; }
.form-success, .form-error { margin-bottom: 20px; padding: 13px 15px; border-radius: 10px; font-weight: 750; }
.form-success { color: #164f38; background: #dcefe6; }
.form-error { color: var(--status-blue); background: var(--status-blue-soft); border-left: 4px solid var(--status-blue); }
.contact-side { display: grid; gap: 20px; }
.qr-card, .contact-note { padding: 30px; border-radius: 20px; background: #e9e2d5; }
.qr-image { width: min(260px,100%); margin: 0 auto 25px; border-radius: 12px; }
.qr-card h2 { font-size: 2rem; }
.contact-note { color: #fff; background: var(--forest); }
.contact-note strong { color: var(--accent-light); text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; }

.legal-hero { padding: 75px 0; }
.legal-hero h1 { font-size: clamp(3.1rem,5vw,5rem); }
.legal-content { max-width: 860px; }
.legal-content h2 { margin-top: 1.5em; font-size: clamp(1.8rem,3vw,2.7rem); }
.legal-content h3 { margin-top: 1.35em; font-family: inherit; font-size: 1.15rem; font-weight: 850; letter-spacing: 0; }
.legal-content p { color: #465253; }
.legal-warning { margin-bottom: 38px; padding: 18px 20px; color: var(--status-blue); background: var(--status-blue-soft); border-left: 4px solid var(--accent); border-radius: 8px; font-weight: 750; }

.site-footer { padding: 75px 0 28px; color: rgba(255,255,255,.76); background: #0c2224; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .9fr .7fr; gap: 60px; padding-bottom: 55px; }
.footer-grid h2 { color: #fff; font-family: inherit; font-size: .78rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.footer-grid a, .footer-grid p { display: block; margin: 0 0 8px; color: rgba(255,255,255,.68); text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-brand { margin-bottom: 10px; color: #fff; font-family: Georgia,serif; font-size: 1.65rem; }
.admin-link { margin-top: 25px !important; opacity: .5; font-size: .78rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.11); font-size: .76rem; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Frontend editor */
.cms-adminbar { position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 5000; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 14px 12px 18px; color: #fff; background: rgba(7,25,27,.96); border: 1px solid rgba(255,255,255,.16); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.28); backdrop-filter: blur(14px); }
.cms-adminbar strong { display: block; font-size: .9rem; }
.cms-adminbar small { display: block; color: rgba(255,255,255,.6); }
.cms-admin-actions { display: flex; gap: 8px; }
.cms-adminbar button, .cms-adminbar a { padding: 8px 12px; color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; background: transparent; text-decoration: none; cursor: pointer; }
.cms-adminbar button.is-active { color: var(--forest); background: #fff; }
.cms-edit-mode [data-edit-key], .cms-edit-mode [data-image-key] { position: relative; outline: 3px dashed var(--accent); outline-offset: 4px; box-shadow: 0 0 0 6px rgba(168,216,255,.78); cursor: pointer; }
.cms-edit-mode [data-edit-key]:hover, .cms-edit-mode [data-image-key]:hover { outline-style: solid; }
.cms-edit-badge { position: absolute; z-index: 100; width: 31px; height: 31px; display: grid; place-items: center; padding: 0; color: #fff; background: var(--accent); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 4px 15px rgba(0,0,0,.2); cursor: pointer; }
.cms-modal-backdrop { position: fixed; inset: 0; z-index: 6000; display: grid; place-items: center; padding: 20px; background: rgba(5,18,19,.72); backdrop-filter: blur(8px); }
.cms-modal { width: min(760px,100%); max-height: calc(100vh - 40px); overflow: auto; color: var(--ink); background: #fff; border-radius: 18px; box-shadow: 0 30px 100px rgba(0,0,0,.35); }
.cms-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.cms-modal-head h2 { margin: 0; font-family: inherit; font-size: 1.15rem; font-weight: 850; letter-spacing: 0; }
.cms-close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #eef0ed; cursor: pointer; }
.cms-modal-body { padding: 22px; }
.cms-toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; padding: 8px; border: 1px solid #d3d7d4; border-radius: 10px; background: #f6f7f5; }
.cms-toolbar button { min-width: 36px; height: 35px; border: 1px solid #d7dbd8; border-radius: 7px; background: #fff; font-weight: 800; cursor: pointer; }
.cms-editor-area { min-height: 220px; padding: 16px; border: 1px solid #cbd1cd; border-radius: 10px; line-height: 1.6; }
.cms-image-preview { max-height: 300px; margin: 0 auto 20px; object-fit: contain; border-radius: 10px; }
.cms-field { display: grid; gap: 7px; margin: 14px 0; font-size: .85rem; font-weight: 800; }
.cms-field input { padding: 12px; border: 1px solid #cbd1cd; border-radius: 9px; }
.cms-modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 18px 22px; border-top: 1px solid var(--line); }
.cms-modal-actions button { padding: 10px 15px; border: 1px solid #ccd1ce; border-radius: 9px; background: #fff; font-weight: 800; cursor: pointer; }
.cms-modal-actions .primary { color: #fff; border-color: var(--accent); background: var(--accent); }
.cms-message { margin-right: auto; align-self: center; color: var(--ink-soft); font-size: .85rem; }

@media (max-width: 1050px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card { min-height: 360px; }
  .hero-grid, .page-hero-grid, .credentials-grid { grid-template-columns: 1fr; }
  .hero-media { width: min(650px,100%); min-height: 580px; }
  .hero-image-wrap { inset: 0 0 55px 0; }
  .page-hero-image { width: min(660px,100%); }
  .focus-grid, .contact-grid { gap: 55px; }
}
@media (max-width: 800px) {
  :root { --container: min(100% - 28px, 1180px); }
  .section { padding: 76px 0; }
  .header-inner { min-height: 74px; }
  .brand { width: 126px; height: 56px; }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; left: 14px; right: 14px; top: 83px; display: grid; gap: 0; padding: 12px; background: #fff; border-radius: 15px; box-shadow: var(--shadow); transform: translateY(-14px); opacity: 0; visibility: hidden; transition: .2s ease; }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a, .main-nav .nav-cta { padding: 14px; color: var(--forest); border: 0; border-radius: 9px; }
  .main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--forest); background: #edf2ef; }
  .main-nav a[aria-current="page"]:after { display: none; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .hero { padding-top: 65px; }
  .hero-grid, .section-heading, .focus-grid, .credentials-grid, .list-layout, .split-grid, .about-layout, .education-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(3rem,14vw,5.4rem); }
  .hero-media { min-height: 490px; }
  .hero-image-wrap { border-radius: 150px 150px 24px 24px; }
  .section-heading { gap: 12px; }
  .focus-gallery { min-height: 500px; }
  .credential-visual { min-height: 480px; }
  .sticky-heading { position: static; }
  .about-bio { columns: 1; }
  .authorization-grid { grid-template-columns: 1fr; }
  .cta-box { display: grid; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  h1 { font-size: clamp(2.65rem,14vw,4rem); }
  h2 { font-size: clamp(2rem,10vw,3rem); }
  .button { width: 100%; }
  .hero-actions { display: grid; }
  .hero-media { min-height: 420px; }
  .hero-card { right: 16px; }
  .hero-trust { display: grid; gap: 9px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .focus-gallery { min-height: 430px; grid-template-columns: 1fr 1fr; }
  .image-tile-large { grid-column: 1 / -1; grid-row: auto; min-height: 270px; border-radius: 120px 18px 18px 18px; }
  .image-tile-small { min-height: 145px; }
  .credential-lines, .field-row { grid-template-columns: 1fr; }
  .credential-visual { min-height: 570px; }
  .badge-card:first-child { width: 200px; }
  .bafa-badge { width: 180px; top: 160px; }
  .safety-image { left: 0; right: 0; height: 280px; }
  .page-hero-image { height: 340px; border-radius: 120px 18px 18px 18px; }
  .service-detail { grid-template-columns: 1fr; gap: 20px; }
  .split-image { height: 340px; }
  .authorization-card { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { display: grid; }
  .cms-adminbar { left: 8px; right: 8px; bottom: 8px; }
  .cms-adminbar small { display: none; }
  .cms-admin-actions a { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* CMS 1.1 – Links, Editor und mobile Stabilität */
body { overflow-x:hidden; }
body.is-admin { padding-bottom:92px; }
.prose a,.legal-content a { color:var(--accent-dark); text-decoration:underline; text-decoration-thickness:.08em; text-underline-offset:.16em; }
.section-dark .prose a { color:var(--accent-link-dark); }
.prose a:hover,.legal-content a:hover { text-decoration-thickness:.14em; }
.contact-form input,.contact-form textarea { min-width:0; max-width:100%; }
.cms-plain-editor { width:100%; padding:14px; border:1px solid #cbd1cd; border-radius:10px; resize:vertical; }
.cms-editor-help { margin:0 0 10px; color:var(--ink-soft); font-size:.82rem; }
.cms-editor-area a { color:var(--accent-dark); text-decoration:underline; }
.cms-modal:focus { outline:none; }

@media (max-width:800px) {
  .site-header { backdrop-filter:none; }
  .main-nav { max-height:calc(100dvh - 100px); overflow:auto; }
  .hero-grid,.page-hero-grid,.focus-grid,.credentials-grid,.list-layout,.split-grid,.about-layout,.education-grid,.contact-grid { min-width:0; }
  .hero-copy,.hero-media,.focus-copy,.focus-gallery,.credentials-copy,.credential-visual,.contact-form-wrap,.contact-side { min-width:0; }
  .cms-modal-backdrop { padding:8px; align-items:end; }
  .cms-modal { width:100%; max-height:calc(100dvh - 16px); border-radius:17px 17px 10px 10px; }
  .cms-modal-head { position:sticky; top:0; z-index:3; padding:16px; background:#fff; }
  .cms-modal-body { padding:16px; }
  .cms-toolbar { flex-wrap:nowrap; overflow-x:auto; overscroll-behavior-inline:contain; scrollbar-width:thin; }
  .cms-toolbar button { flex:0 0 40px; }
  .cms-editor-area { min-height:42dvh; max-height:55dvh; overflow:auto; }
  .cms-modal-actions { position:sticky; bottom:0; z-index:3; flex-wrap:wrap; padding:12px 16px; background:#fff; }
  .cms-message { width:100%; margin:0 0 4px; }
  .cms-adminbar { align-items:center; }
}

@media (max-width:560px) {
  .header-inner { gap:14px; }
  .menu-toggle { flex:0 0 46px; }
  .main-nav { left:8px; right:8px; top:78px; }
  .hero { padding-top:50px; }
  .hero-media { width:100%; min-height:380px; }
  .hero-image-wrap { inset:0 0 42px 0; }
  .hero-card { left:12px; right:12px; width:auto; }
  .focus-gallery { min-height:390px; }
  .credential-visual { min-height:510px; }
  .contact-quick a,.contact-quick div { min-width:0; }
  .contact-quick span { min-width:0; overflow-wrap:anywhere; }
  .cms-adminbar { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; padding:9px; }
  .cms-adminbar > div:first-child { min-width:0; }
  .cms-adminbar strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .cms-admin-actions { gap:5px; }
  .cms-adminbar button,.cms-adminbar a { padding:8px 9px; font-size:.78rem; }
  .cms-admin-actions a:last-child { display:none; }
  .cms-admin-actions a:first-of-type { display:inline-flex; }
  .cms-edit-badge { width:34px; height:34px; }
  .cms-modal-actions button { flex:1 1 calc(50% - 6px); min-height:44px; }
  .cms-modal-actions .primary { flex-basis:100%; order:-1; }
  .cms-image-preview { max-height:34dvh; }
}
