/*
Theme Name: Mühlhans – Joomla-Bestand
Template: astra
Version: 1.0.2
Description: Astra-Child-Theme für den Nachbau der Mühlhans-Website.
Text Domain: muehlhans-bestand
*/
* { box-sizing: border-box; }
body.mh-site { margin: 0; background: #e4e2e2; color: #2a3440; font: 16px/1.45 Arial, Helvetica, sans-serif; }
.mh-site [hidden] { display: none !important; }
.mh-site a { color: #094271; }
.mh-site button, .mh-site input, .mh-site textarea { font: inherit; }
.mh-site :focus-visible { outline: 2px solid #096786; outline-offset: 3px; }
.mh-header { margin-top: 10px; background: #fff url(assets/hintergrund.jpg) center top no-repeat; }
.mh-wrap { width: min(1200px, 100%); margin-inline: auto; }
.mh-header-body { position: relative; height: 350px; background: url(assets/header.jpg) -9px -8px no-repeat; }
.mh-brand { display: block; position: absolute; inset: 0 0 31px; }
.mh-nav { position: absolute; right: 0; bottom: 0; }
.mh-nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 10px; margin: 0 5px; padding: 0; }
.mh-nav li { margin: 0; }
.mh-nav a { display: block; padding: 0 17px; font-size: 14px; line-height: 31px; text-transform: uppercase; text-decoration: none; }
.mh-nav a:hover, .mh-nav a[aria-current="page"] { color: #008499; }
.mh-main { min-height: 5rem; padding: 8px 10px 24px; }
.mh-main > * { margin-block: 0 20px; }
.mh-main > :last-child { margin-bottom: 0; }
.mh-main h1, .mh-main h2, .mh-main h3, .mh-main h4 { color: inherit; font-family: inherit; font-weight: normal; }
.mh-main figure { margin: 0; }
.mh-main img { display: block; max-width: 100%; height: auto; }
.mh-main > figure.mh-notdienst { margin: 20px 0 28px; }
.mh-main > figure.mh-karriere { margin: 0; }
.mh-karriere img, .mh-notdienst img { width: 100%; }
.mh-slider { position: relative; aspect-ratio: 950 / 420; overflow: hidden; }
.mh-slider img { width: 100%; height: 100%; object-fit: cover; }
.mh-slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #00788b; font-size: 42px !important; line-height: 1; cursor: pointer; }
.mh-slider-arrow:hover, .mh-slider-arrow:focus-visible { background: #fff9; color: #004d65; }
.mh-prev { left: 0; }
.mh-next { right: 0; }
.mh-slider-controls { position: absolute; bottom: 5%; right: 16%; display: flex; align-items: center; gap: 2px; }
.mh-slider-controls button { display: grid; place-items: center; padding: 0; min-width: 24px; min-height: 28px; background: transparent; border: 0; color: #fff; cursor: pointer; filter: drop-shadow(0 1px 2px #333); }
.mh-slider-controls .mh-dot::before { content: ''; width: 10px; height: 10px; border: 1px solid white; border-radius: 50%; }
.mh-slider-controls .mh-dot[aria-pressed="true"]::before { background: white; }
.mh-slider-controls .mh-pause { margin-left: 4px; }
.mh-service-intro, .mh-service-row { background: #d8d8d8; text-align: center; }
.mh-service-intro { padding: 30px 18px 34px; margin-top: 30px; }
.mh-service-intro h1 { font-size: clamp(24px, 4vw, 37px); margin: 0 0 2px; line-height: 1.2; }
.mh-service-intro p { margin: 0; font-size: clamp(17px, 2.4vw, 24px); }
.mh-service-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: center; padding: 18px; margin-top: 28px; }
.mh-service-row img { width: 100%; }
.mh-service-row figure { align-self: stretch; display: flex; align-items: center; }
.mh-service-outro { margin-bottom: 26px; }
.mh-legal { overflow-wrap: anywhere; padding: 9px 5px 25px; font-size: 14px; line-height: 1.75; }
.mh-legal h1 { font-size: 26px; }
.mh-legal h2 { font-size: 22px; }
.mh-legal h3 { font-size: 19px; }
.mh-legal h4 { font-size: 16px; }
.mh-legal h1, .mh-legal h2, .mh-legal h3, .mh-legal h4 { margin: 10px 0 0; }
.mh-legal p { margin: 13px 0; }
.mh-legal a { text-decoration: underline; }
.mh-contact { background: #fff; color: #171717; padding: 15px; border: 1px solid #d5d5d5; font-size: 13px; }
.mh-contact h2 { font-size: 27px; margin: 0 0 17px; line-height: 1.2; }
.mh-contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 75px); }
.mh-contact label { display: block; margin: 0 0 8px; }
.mh-contact label span { color: #b52924; }
.mh-contact input:not([type="hidden"]), .mh-contact textarea { display: block; width: 100%; padding: 4px 8px; min-height: 30px; background: #fff; color: #171717; border: 1px solid #aaa; border-radius: 0; }
.mh-contact textarea { min-height: 244px; resize: vertical; }
.mh-contact button { padding: 9px 18px; color: #202020; background: #eee; border: 1px solid #aaa; cursor: pointer; border-radius: 0; }
.mh-contact button:hover { background: #dedede; }
.mh-contact dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 15px; margin: 0 0 17px; }
.mh-contact dt, .mh-contact dd { margin: 0; }
.mh-contact dd { overflow-wrap: anywhere; }
.mh-contact a { text-decoration: underline; }
.mh-detail-icon { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid #777; border-radius: 50%; color: #555; margin-right: 6px; }
.mh-map-frame { width: 100%; height: 350px; border: 1px solid #ccc; display: block; }
.mh-contact-notice { padding: 8px; border-left: 4px solid #008499; background: #f2f5f6; }
.mh-contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.mh-footer { padding: 25px 12px; text-align: center; background: #737373; color: #fff; font-size: 13px; line-height: 1.75; }
.mh-footer p { margin: 0; }
.mh-footer a { color: #f0f3f6; text-decoration: none; }
.mh-footer a:hover { text-decoration: underline; }
.mh-screen-reader { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mh-skip:focus { position: absolute; z-index: 3; top: 8px; left: 8px; width: auto; height: auto; clip-path: none; background: #fff; padding: 10px; }
@media (max-width: 1210px) {
    .mh-header-body { height: auto; padding-top: 29%; background-size: 101% auto; background-position: left top; }
    .mh-brand { inset: 0; }
    .mh-nav { position: relative; }
}
@media (max-width: 720px) {
    .mh-header { margin-top: 0; background: #fff; }
    .mh-header-body { padding-top: 29%; background-image: url(assets/header-mobil.jpg); background-size: 100% auto; }
    .mh-nav ul { gap: 0 3px; background: #fff; }
    .mh-nav a { font-size: 12px; padding: 0 6px; min-height: 36px; line-height: 36px; }
    .mh-main { padding-inline: 8px; }
    .mh-service-intro { margin-top: 12px; padding: 18px 10px; }
    .mh-service-row { grid-template-columns: 1fr; gap: 8px; margin-top: 14px; padding: 12px; }
    .mh-contact-grid { grid-template-columns: 1fr; gap: 24px; }
    .mh-map-frame { height: 280px; }
}
