/* Manrope (variable, 400-800), self-hosted; SIL Open Font License 1.1, see fonts/OFL.txt */
@font-face{font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url(fonts/manrope-greek.woff2) format('woff2');unicode-range:U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url(fonts/manrope-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url(fonts/manrope-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

:root{
  --bg:#ffffff; --bg-alt:#f4f6f8; --fg:#111418; --muted:#555d66;
  --accent:#0b5cad; --accent-fg:#ffffff; --border:#e2e6ea;
  --free:#0e7c86; --paid:#a3560b; --radius:10px; --max:1200px;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#111418; --bg-alt:#1a1f25; --fg:#eef1f4; --muted:#a3acb6;
    --accent:#5aa2f0; --accent-fg:#0b1118; --border:#2a313a;
  }
}
:root[data-theme="dark"]{
  --bg:#111418; --bg-alt:#1a1f25; --fg:#eef1f4; --muted:#a3acb6;
  --accent:#5aa2f0; --accent-fg:#0b1118; --border:#2a313a;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--fg);font-family:Manrope,system-ui,sans-serif;line-height:1.6;font-size:17px}
:lang(zh) body{font-family:Manrope,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC","Noto Sans SC",system-ui,sans-serif}
:lang(zh) h1{letter-spacing:0}
img{max-width:100%;height:auto;display:block}
a{color:var(--accent)}
.wrap{max-width:var(--max);margin:0 auto;padding:0 16px}
.skip{position:absolute;left:-999px}.skip:focus{left:16px;top:8px;background:var(--bg);padding:6px 10px;z-index:10}

/* header */
.banner{height:140px;background:url(img/cropped-header2-e1724754630503.png) center/cover no-repeat}
header.site{border-bottom:1px solid var(--border);background:var(--bg);position:sticky;top:0;z-index:5}
header.site .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:14px;padding-bottom:14px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--fg);font-weight:800;font-size:1.25rem}
.brand img{width:44px;height:44px}
nav ul{list-style:none;margin:0;padding:0;display:flex;gap:22px;flex-wrap:wrap}
nav a{color:var(--fg);text-decoration:none;font-weight:500}
nav a:hover{color:var(--accent)}

section{padding:72px 0}
section.alt{background:var(--bg-alt)}
h1,h2,h3{line-height:1.2;margin:0 0 .6em}
h1{font-size:clamp(2.2rem,5vw,3.6rem);font-weight:800;letter-spacing:-.02em}
h2{font-size:clamp(1.7rem,3.5vw,2.4rem);font-weight:700;letter-spacing:-.01em}
h3{font-size:1.2rem;font-weight:700}
.lead{font-size:1.25rem;color:var(--muted);max-width:60ch}
.tagline{font-size:1.5rem;font-weight:600;color:var(--accent);margin:.2em 0 .6em}

.hero{display:grid;grid-template-columns:1.2fr 1fr;gap:48px;align-items:center}
.hero-title{display:flex;align-items:flex-start;gap:20px;margin-bottom:1.2rem}
.hero-title h1{margin:0;flex:0 1 auto}
/* as high as the title: 2 lines of the h1 without JS, exact height via the script in index.html */
.hero-badge{flex:none;width:auto;font-size:clamp(2.2rem,5vw,3.6rem);line-height:1.2;height:2.4em;object-fit:contain}
.hero-main{width:100%;height:auto;max-width:560px;justify-self:end;aspect-ratio:1;object-fit:contain}

.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.card{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column}
.card img{width:100%;aspect-ratio:4/3;object-fit:cover}
.card .body{padding:20px 22px 24px}
.card p{margin:0;color:var(--muted)}
.card .body.has-cta{flex:1;display:flex;flex-direction:column}
.card .body.has-cta p{margin-bottom:18px}
.card-cta{margin-top:auto;align-self:flex-start}

.benefits{display:grid;grid-template-columns:repeat(2,1fr);gap:28px 40px;margin-top:24px}
.benefits h3{color:var(--accent)}
.benefits p{margin:0;color:var(--muted)}
.faq{margin-top:48px;display:grid;grid-template-columns:1fr 1fr;gap:28px}
.faq blockquote{margin:0;padding:20px 24px;border-left:4px solid var(--accent);background:var(--bg-alt);border-radius:0 var(--radius) var(--radius) 0}
.faq strong{display:block;margin-bottom:6px;font-size:1.05rem}

.legend{display:flex;gap:20px;margin:8px 0 28px;font-size:.95rem;color:var(--muted)}
.legend span::before{content:"";display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:6px;vertical-align:-1px}
.legend .f::before{background:var(--free)}.legend .p::before{background:var(--paid)}
.tiers-layout{display:grid;grid-template-columns:65fr 35fr;gap:48px;align-items:center}
.tiers-text p{margin:0 0 1em}
.legend{justify-content:flex-end}
.stack{display:flex;flex-direction:column;gap:12px}
.tier{border-radius:16px;padding:18px 22px;display:grid;grid-template-columns:28% 1fr 28%;gap:16px;align-items:center}
.tier h3{margin:0;font-size:1.3rem}.tier small{font-size:.85rem;opacity:.85}
.tier .mid{text-align:center}.tier .mid.big{font-size:1.15rem;font-weight:600}
.tier .end{text-align:right;font-size:.92rem}
.t-app{margin-left:24%}.t-ext{margin-left:16%}.t-core{margin-left:8%}
.t-app{background:var(--paid);color:#fff}
.t-ext{background:#f6e3cc;color:#111418}
.t-core{background:var(--free);color:#fff}
.t-solver{background:#69696933;color:var(--fg)}
.btns{display:flex;gap:14px;flex-wrap:wrap;margin-top:28px}
.btn{display:inline-block;padding:12px 24px;border-radius:999px;background:var(--accent);color:var(--accent-fg);text-decoration:none;font-weight:600;border:2px solid var(--accent)}
.btn.ghost{background:transparent;color:var(--accent)}

.cat{margin-top:40px}
.cat h3{font-size:1.4rem;border-bottom:2px solid var(--border);padding-bottom:8px;margin-bottom:20px}
.cat .card{text-decoration:none;color:var(--fg);transition:transform .15s,box-shadow .15s}
.cat .card:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(0,0,0,.08)}
.cat .card .body{padding:14px 18px}
.cat .card h4{margin:0;font-size:1rem;font-weight:600}
.card-wrap{display:flex;flex-direction:column;gap:12px}
.card-wrap .card{flex:1}
.card-btns{display:flex;flex-wrap:wrap;gap:8px}

.price{padding:28px;text-align:center}
.price .amt{font-size:2.4rem;font-weight:800;margin:.2em 0}
.price .amt small{font-size:1rem;font-weight:500;color:var(--muted)}
.price p{color:var(--muted);margin:0 0 20px}
.price .btn{align-self:center}
.price ul{text-align:left;margin:4px 0 20px;padding-left:1.2em;color:var(--muted);flex:1}
.price li{margin-bottom:6px}
.price li::marker{color:var(--accent)}

.steps{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
.steps ol{list-style:none;counter-reset:s;margin:0;padding:0;display:flex;flex-direction:column;gap:22px}
.steps li{counter-increment:s;display:grid;grid-template-columns:48px 1fr;gap:16px}
.steps li::before{content:counter(s);width:48px;height:48px;border-radius:50%;background:var(--accent);color:var(--accent-fg);display:grid;place-items:center;font-weight:800;font-size:1.2rem}
.steps img{border-radius:var(--radius)}

footer{border-top:1px solid var(--border);padding:48px 0 32px;font-size:.95rem}
footer .wrap{display:grid;grid-template-columns:2fr 1fr 1fr;gap:32px}
footer ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
footer a{color:var(--fg);text-decoration:none}footer a:hover{color:var(--accent)}
.langs{display:flex;gap:10px}.langs img{width:24px;height:18px;border:1px solid var(--border)}
.muted{color:var(--muted)}

@media (max-width:900px){
  .hero-main{justify-self:center;max-width:420px}
  .hero,.steps,.faq,.benefits,.tiers-layout{grid-template-columns:1fr}
  .grid3{grid-template-columns:1fr 1fr}
  .grid4{grid-template-columns:1fr 1fr}
  footer .wrap{grid-template-columns:1fr}
}
@media (max-width:560px){
  .grid3,.grid4{grid-template-columns:1fr}
  section{padding:48px 0}
  .banner{height:80px}
  .tier{grid-template-columns:1fr}.tier .mid,.tier .end{text-align:left}
  .t-app{margin-left:12%}.t-ext{margin-left:8%}.t-core{margin-left:4%}
}

/* article pages */
.crumbs{font-size:.92rem;color:var(--muted);margin-bottom:18px}
.crumbs a{color:var(--muted)}
.art-hero{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}
.art-hero img{border-radius:var(--radius);border:1px solid var(--border);background:#fff;width:100%;max-height:420px;object-fit:contain}
.art-meta{color:var(--muted);font-size:.95rem;margin-top:8px}
.art-meta .tag{display:inline-block;background:var(--bg-alt);border:1px solid var(--border);border-radius:999px;padding:2px 12px;margin-right:6px;font-size:.85rem;text-decoration:none;color:var(--fg)}
.prose{max-width:760px}
.prose h2{font-size:1.5rem;margin-top:1.8em}
.prose h3{font-size:1.2rem;margin-top:1.6em}
.prose ul,.prose ol{padding-left:1.3em}
.prose li{margin-bottom:.35em}
.prose li::marker{color:var(--accent)}
.prose hr{border:0;border-top:1px solid var(--border);margin:2.2em 0}
.prose blockquote{margin:1.5em 0;padding:16px 22px;border-left:4px solid var(--accent);background:var(--bg-alt);border-radius:0 var(--radius) var(--radius) 0}
.prose .wp-block-buttons{display:flex;gap:14px;flex-wrap:wrap;margin:1.5em 0}
.prose .wp-block-button__link{display:inline-block;padding:12px 24px;border-radius:999px;background:var(--accent);color:var(--accent-fg);text-decoration:none;font-weight:600}
.art-hero.no-img{grid-template-columns:1fr}
@media (max-width:900px){.art-hero{grid-template-columns:1fr}}

/* CAE blog */
.prose figure{margin:1.5em 0}
.prose figure img{display:block;max-width:100%;height:auto;border:1px solid var(--border);border-radius:var(--radius);background:#fff}
.prose .fig-row{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start;margin:1.5em 0}
.prose .fig-row figure{flex:1 1 220px;margin:0}
.prose .fig-row figure.narrow{flex:0 0 auto;max-width:120px}
.prose code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9em;background:var(--bg);border:1px solid var(--border);border-radius:4px;padding:.05em .35em}
.prose pre{overflow-x:auto;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);padding:14px 18px;line-height:1.45}
.prose pre code{background:none;border:0;padding:0;font-size:.85rem}
.prose figcaption{color:var(--muted);font-size:.9rem;margin-top:6px}
.prose .table-wrap{overflow-x:auto;margin:1.5em 0}
.prose table{border-collapse:collapse;width:100%;font-size:.95rem}
.prose th,.prose td{border:1px solid var(--border);padding:6px 10px;text-align:left;vertical-align:top}
.prose th{background:var(--bg);font-weight:600}
.blog-list .card{text-decoration:none;color:var(--fg);transition:transform .15s,box-shadow .15s}
.blog-list .card:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(0,0,0,.08)}
.blog-list .card img{object-fit:contain;background:#fff;border-bottom:1px solid var(--border)}
.blog-list time{color:var(--muted);font-size:.9rem}
.blog-list h2{font-size:1.15rem;margin:.3em 0 .5em;line-height:1.3}

/* contact page */
.contact-top{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start;margin-top:12px}
address{font-style:normal;line-height:1.8}
.contact-form{display:grid;grid-template-columns:1fr 1fr;gap:18px 28px;max-width:900px;margin-top:20px}
.contact-form label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:.95rem}
.contact-form .full{grid-column:1/-1}
.contact-form input,.contact-form textarea{font:inherit;font-weight:400;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--fg)}
.contact-form input:focus,.contact-form textarea:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent)}
.contact-form .invalid{border-color:#c0392b}
.contact-form button{font:inherit;cursor:pointer}
.form-foot{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.form-foot p{margin:0}
.small{font-size:.88rem;margin:0}
@media (max-width:900px){.contact-top,.contact-form{grid-template-columns:1fr}}
.hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.contact-form{position:relative}
.contact-form button:disabled{opacity:.6;cursor:wait}
altcha-widget{display:block;max-width:300px}
.form-msg{margin:0;font-weight:600}
.form-msg.ok{color:var(--free)}
.form-msg.err{color:#c0392b}
section .form-msg.err:not(:empty){margin-bottom:16px}

/* ship resistance enquiry */
.enquiry{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:36px;align-items:start}
.enquiry fieldset{border:1px solid var(--border);border-radius:var(--radius);background:var(--bg);padding:18px 22px 22px;margin:0 0 22px}
.enquiry legend{font-weight:700;font-size:1.1rem;padding:0 8px}
.enquiry .contact-form{margin-top:4px}
.enquiry label.full{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:.95rem}
.enquiry textarea,.enquiry select,.enquiry input[type=text],.enquiry input[type=url],.enquiry input[type=date]{font:inherit;font-weight:400;padding:9px 11px;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--fg)}
.enquiry .invalid{border-color:#c0392b!important;outline:1px solid #c0392b}
.choice{display:flex;gap:12px;align-items:flex-start;padding:10px 12px;border:1px solid var(--border);border-radius:8px;margin-top:10px;cursor:pointer;font-size:.95rem}
.choice input{margin-top:5px}
.choice:has(input:checked){border-color:var(--accent);background:var(--bg-alt)}
.geo-item{border:1px dashed var(--border);border-radius:8px;padding:12px 14px;margin:12px 0;display:flex;flex-direction:column;gap:8px}
.geo-head{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.geo-head .app-name{flex:1;min-width:160px}
.seg{display:inline-flex;border:1px solid var(--border);border-radius:999px;overflow:hidden;font-size:.9rem}
.seg label{padding:4px 12px;cursor:pointer;display:flex;gap:6px;align-items:center}
.seg label:has(input:checked){background:var(--accent);color:var(--accent-fg)}
.seg input{position:absolute;opacity:0;pointer-events:none}
.geo-file{font:inherit;font-size:.92rem}
.geo-note{margin:0;font-size:.88rem}
.geo-note.err,.upload-total.err{color:#c0392b;font-weight:600}
.upload-total{font-size:.92rem;margin:8px 0 0}
.icon-btn{border:1px solid var(--border);background:var(--bg);color:var(--fg);border-radius:50%;width:30px;height:30px;font-size:1.1rem;line-height:1;cursor:pointer}
.icon-btn:disabled{opacity:.35;cursor:default}
.small-btn{padding:7px 16px;font-size:.92rem;cursor:pointer;font-family:inherit}
.op-tools{margin-bottom:10px;font-size:.95rem}
.op-tools label{display:inline-flex;gap:10px;align-items:center;font-weight:600}
.op-scroll{overflow-x:auto;margin-bottom:12px}
.op-table{border-collapse:collapse;width:100%;min-width:520px}
.op-table th{font-size:.82rem;text-align:left;font-weight:600;padding:6px 6px;color:var(--muted);vertical-align:bottom}
.op-table th small{font-weight:400}
.op-table td{padding:4px 6px}
.op-table td.nr{font-weight:700;color:var(--muted);width:2em}
.op-table input{width:100%;min-width:70px}
.enquiry:not(.trim-frei) .free-only{display:none}
.submit-area{display:flex;flex-direction:column;gap:14px}
.submit-area progress{width:100%;max-width:420px;height:10px}
.price-box{position:sticky;top:90px;background:var(--bg);border:2px solid var(--accent);border-radius:var(--radius);padding:20px 22px}
.price-box h2{font-size:1.3rem;margin-bottom:12px}
.price-row{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid var(--border);font-size:.95rem}
.price-row span:last-child{white-space:nowrap;font-variant-numeric:tabular-nums}
.price-row.discount span:last-child{color:var(--free)}
.price-row.total{border-bottom:0;font-weight:800;font-size:1.25rem;padding-top:10px}
.hint-box{margin-top:28px;padding:16px 20px;border:1px solid var(--border);border-left:4px solid var(--accent);border-radius:0 var(--radius) var(--radius) 0;background:var(--bg-alt)}
.hint-box p{margin:0}
/* general simulation enquiry (anfrage-simulation.html) */
.enquiry.single{grid-template-columns:minmax(0,1fr);max-width:880px}
.cond{margin-top:16px;display:flex;flex-direction:column;gap:14px}
.cond>label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:.95rem;max-width:260px}
.cond>label.full{max-width:none}
.enquiry:not(.termin-ja) .termin-only,.enquiry:not(.setup-ja) .setup-only{display:none}
@media (max-width:900px){.enquiry{grid-template-columns:1fr}.price-box{position:static;order:-1}}

/* Ablauf-Flussdiagramm (index.html, Beispiel) */
.flow{width:100%;max-width:150px;justify-self:center}
.flow .ico-bg{fill:var(--accent)}
.flow .ico{fill:none;stroke:var(--accent-fg);stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.flow .arr{stroke:var(--accent);stroke-width:2.5;fill:none}
.flow .arr-head{fill:var(--accent)}
